1 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
3 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
5 (Re): Emit a warning if called without `.Rs'.
6 (doc-finish-reference): Use parameter for decreasing
8 (doc-print-reference): Pass specific count parameters to
9 `doc-finish-reference'.
11 2005-01-21 Werner LEMBERG <wl@gnu.org>
13 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
14 Reset pointers to zero after deallocation. This fixes a crash
15 if a driver is called with multiple output files. Reported by
16 Ken Chilton <ken@chiltonfamily.org>.
18 * src/devices/grops/grops.man: Add more info on DSC.
20 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
22 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
25 2004-01-17 Werner LEMBERG <wl@gnu.org>
27 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
28 against division by zero.
30 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
32 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
34 2004-12-19 Werner LEMBERG <wl@gnu.org>
36 * install-sh: New version; taken from texinfo CVS.
38 2004-12-17 Werner LEMBERG <wl@gnu.org>
40 * tmac/devtag.tmac: Protect against loading twice.
41 Protect agains compatibility mode.
42 * tmac/www.tmac: Protect against loading twice.
43 Load `devtag.tmac' before switching off compatibility mode.
44 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
46 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
48 * configure.ac: Produce `contrib/gdiffml/tests/runtests'.
51 2004-12-15 Thomas Klausner <wiz@netbsd.org>
53 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
55 2004-12-15 Werner LEMBERG <wl@gnu.org>
57 Make `test-groff' work again -- previously, wrong paths have been
58 used. Additionally, it can now be called from anywhere.
60 * test-groff.in: Don't test for groff binary. This is no longer
61 necessary since the proper paths are determined by `configure'.
62 (EXEEXT): Removed. No longer used.
63 (srcdir, builddir): Use values provided by the configure script.
64 (XENVIRONMENT): Updated.
68 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
70 Make .tag and .taga work for all devices (but only grohtml actually
73 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
74 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
75 html_printer::handle_assertion): Don't use hard-coded string
77 (html_printer::lookahead_for_table): Reset `tbl' properly if
79 (html_printer::devtag): New function, handling `devtag'.
80 (html_printer::special): Don't handle `html-tag'.
82 * src/include/printer.h, src/libs/libdriver/printer.cpp
83 (printer::devtag): New virtual function.
85 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
88 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
89 src/roff/troff/node.cpp: s/html-tag/devtag/.
91 * src/roff/troff/input.cpp (tag, taga): Always call
94 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
95 macros instead of HTML-TAG*.
97 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
99 * tmac/www.tmac: Load devtag.tmac.
100 Replace HTML-TAG* macros with DEVTAG* macros.
101 (HTML, HTML-NS): Changed definitions.
103 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
105 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
107 2004-12-10 Werner LEMBERG <wl@gnu.org>
109 Import Mike's `gdiffmk' package.
111 * contrib/gdiffmk/*: New files.
112 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
115 2004-12-08 Werner LEMBERG <wl@gnu.org>
117 Import Keith's `pdfmark' package. Integration is very preliminary.
119 * contrib/pdfmark/*: New files.
120 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
123 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
125 Fix a bug with title handling in HTML.
127 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
128 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
130 (html_printer::handle_tag_within_title): New function.
131 (html_printer::do_title): Use it.
133 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
134 (cov*tl-au-print): Emit `.eo.tl' tag.
136 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
138 * man/groff_char.man: Minor imrovements.
140 2004-12-04 Werner LEMBERG <wl@gnu.org>
142 * src/preproc/eqn/eqn.man: Revised.
144 2004-11-25 Werner LEMBERG <wl@gnu.org>
146 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
150 Remove X_NOT_STDC_ENV conditional.
151 (Version_string, program_name): New global variables.
152 (groff_flag): Removed.
154 (usage): Take a stream as argument.
157 (main): Add `long_options' array for `--help' and `--version'.
158 Make `-g' a dummy option.
159 Handle `-v' and unknown options.
160 Remove unused `position' variable.
162 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
163 (XLIBS): Add LIBGROFF.
165 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
168 * src/devices/xditview/Dvi.c (default_font_map): Split into three
169 parts to avoid compiler warning.
170 (resources): Don't initialize with `default_font_map'.
171 (ClassInitialize): Initialize first element of `resources'.
173 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
176 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
177 src/utils/pfbtops/pfbtops.man: Revised, updated.
179 * configure.ac: Generate src/utils/xtotroff/Makefile.
180 * configure: Regenerated.
182 2004-11-24 Werner LEMBERG <wl@gnu.org>
184 First fixes to get produce HTML.
186 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
189 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
190 (HR, LI): Use `HTML</p>', not `HTML'.
192 * doc/webpage.ms: Minor updates.
194 2004-11-23 Larry Kollar <kollar@alltel.net>
196 Add option -S grohtml to determine the file split level.
198 * src/devices/grohtml/post-html.cpp (split_level): New global
200 (html_header::determine_header_level): Use split_level.
201 (main): Handle `-S' command line option.
204 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
206 * src/devices/grohtml/grohtml.man: Document it.
211 2004-11-23 Y T <doarhop@hotmail.com>
213 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
214 the volume and number refer entries.
216 2004-11-22 Werner LEMBERG <wl@gnu.org>
218 * src/devices/grohtml/html-table.cpp
219 (html_table::emit_table_header): Don't emit `cols' attribute which
220 doesn't exist in HTML 4.0 and is thus invalid.
222 * NEWS: More minor fixes and updates.
224 2004-11-18 Werner LEMBERG <wl@gnu.org>
226 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
227 (HTML</p>): Minor clean-up.
229 * tmac/groff_www.man: Updated.
231 * src/devices/grohtml/grohtml.man: Revised and updated.
235 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
237 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
239 (html_printer::do_links): Fix rules generation around automatic
242 * tmac/www.tmac (LK): Use HTML-TAG-NS.
244 No longer emit empty line for non-HTML devices.
246 2004-11-17 Werner LEMBERG <wl@gnu.org>
248 * doc/Makefile.in (prepare_examples, webpage.html): Handle
251 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
252 prepare_examples, webpage.html): Handle `groff.css'.
254 2004-11-15 Werner LEMBERG <wl@gnu.org>
256 * NEWS, README, doc/webpage.ms: Updated.
258 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
260 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
262 * src/include/printer.h (printer): Remove virtual function
264 Update all source files.
266 * src/devices/grohtml/post-html.cpp (html_printer): New member
267 function `round_width'.
269 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
271 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
272 column key letter suffix.
274 2004-10-14 Werner LEMBERG <wl@gnu.org>
276 * Makefile.in (check): Depend on `site.exp' and `docheck'.
277 (docheck): Run dejagnu's `runtest' if it exists.
278 (site.exp): Create dejagnu configuration file.
280 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
282 2004-10-13 Werner LEMBERG <wl@gnu.org>
284 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
285 src/devices/grohtml/post-html.cpp (make_val,
286 html_printer::handle_state_assertion): Fix compiler warnings.
288 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
289 (diversion::diversion): Fix order of initializers.
291 * src/roff/troff/div.h: Don't include `mtsm.h'.
293 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
294 (environment::environment): Fix order of initializers.
295 (environment::make_tag, environment::construct_format_state): Fix
298 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
299 (input_iterator::input_iterator, macro::macro): Fix order of
302 * src/roff/troff/mtsm.cpp: Include only necessary header files.
303 (state_set::add, state_set::val): Fix compiler warnings.
305 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
306 (bool_value_state, int_value_state, units_value_state,
307 string_value_state): Remove comma after last element which causes
308 an error with g++ 3.3.3.
310 * src/roff/troff/node.cpp: Include `stringclass.h'.
311 (hline_node::hline_node, vline_node::vline_node,
312 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
314 (zero_width_node::zero_width_node): Fix order of initializers.
316 * src/roff/troff/node.h: Don't include `mtsm.h'.
317 (hmotion_node): Fix compiler warnings.
319 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
321 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
323 * doc/groff.css: New file.
325 * doc/webpage.ms: Use `groff.css'.
328 * tmac/an-old.tmac (need_eo_h): New number register.
329 (TH): Emit `.eo.tl' tag after title.
330 (SH): Set `need_eo_h'.
331 (an-trap): Handle `need_eo_h'.
332 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
334 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
335 (TL): Always start diversion.
337 (@AI): Always call `par@reset'.
338 (@AB): Update code for -Thtml.
339 (cov*tl-au-print): Handle -Thtml.
340 (par@reset): Handle `need_eo_tl', `need_eo_h'.
343 (@SH): Set `need_eo_h' for -Thtml.
344 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
346 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
347 Set `need_eo_h' for -Thtml.
348 (@EQ, @EN): Don't handle -Thtml specially.
349 (par@load-init): Don't handle -Thtml specially.
351 * tmac/www.tmac (www:paraspace): New macro.
352 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
353 (HTML</p>, HTML-TAG-NEXT): New macros.
354 (HnE): Emit tag `.eo.h' instead of break.
355 (HR): s/HTML-NS/HTML/.
356 (www-end-nowhere): End diversion only if `www-html' not set.
358 (ULS, ULE): s|HTML|HTML</p>|.
359 (LI): Call `www:paraspace'.
362 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
364 * src/roff/troff/request.h (macro): Make `p' public.
365 New variable `is_a_diversion'.
366 New member function `is_diversion'.
369 * src/devices/grohtml/html.h (simple_output): New member function
372 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
373 computation of `total'.
374 (tabs::check_init): New function.
375 (html_table::emit_table_header): Emit style data.
376 (html_table::insert_column): Improved.
378 * src/devices/grohtml/html-table.h: Updated.
380 * src/devices/grohtml/html-text.cpp (html_text::html_text):
381 Initialize `start_space' with TRUE.
382 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
384 (html_text::flush_text): Set `start_space' flag.
385 (html_text::uses_indent, html_text::remove_para_space,
386 html_text::get_alignment): New functions.
387 (html_text::push_para): Updated.
388 (html_text::do_para): Check for empty argument.
389 Don't set `space_emitted'.
390 (html_text::do_space, html_text::emit_space): Updated.
392 * src/devices/grohtml/html-text.h (tag_definition): New variable
394 (html_text): New member function `uses_indent', `remove_para_space',
397 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
399 (simple_output:nl): Always emit `\n'.
401 * src/devices/grohtml/post-html.cpp: Include `string.h'.
402 (BASE_POINT_SIZE): Removed.
403 (base_point_size, head_info): New global variables.
404 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
406 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
408 (page::add_and_encode): Pass additional parameter for tag flag.
409 (assert_pos): New structure.
410 (assert_state): New class.
411 (html_printer): Remove `indentation', `prev_indent'.
412 Add variables `troff_indent', `device_indent', `temp_indent'.
413 Add variables `seen_indent', `next_indent', `seen_pageoffset',
414 `next_pageoffset', `seen_linelenght', `next_linelength',
415 `seen_center', `next_center', `seen_space', `seen_break', `as'.
416 Add member functions `do_check_center', `do_space', `do_head',
417 `get_troff_indent', `restore_troff_indent', `handle_assertion',
418 `handle_state_assertion', `do_end_para', `set_char_and_width'.
419 Change argument to `do_fill' to `char *'.
421 (html_printer::emit_raw): Call `shutdown_table'.
423 (html_printer::do_center): Simplified.
424 (html_printer::do_title): Improved.
425 (html_printer::write_header): Emit one more newline.
427 (html_printer::do_heading, html_printer::do_indent,
428 html_printer::do_eol, html_printer::do_tab_ts,
429 html_printer::do_tab, html_printer::do_tab0,
430 html_printer::calc_po_in, html_printer::next_horiz_pos,
431 html_printer::remove_courier_tabs,
432 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
434 (html_printer::do_linelength, html_printer::do_pageoffset,
435 html_printer::do_indentation, html_printer::do_tempindent,
436 html_printer::do_tab_te): Simplified.
437 (html_printer::do_pointsize): Check whether point size is really
438 associated a `.tl' tag.
439 (html_printer::do_break): Rewritten.
440 (html_printer::troff_tag): Improved.
441 (html_printer::flush_globs): Updated.
442 (html_printer::lookahead_for_tables): Handle `is_br'.
444 (html_printer::set_char): Check `sbuf_style.f'.
445 (html_printer::write_navigation): Use string comparison.
446 (html_printer::~html_printer): Emit `head_info'.
447 (html_printer::special): Rewritten.
448 (get_str, make_val): New functions.
449 (main): New option `s' to set the base point size.
451 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
453 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
455 * src/roff/troff/node.cpp: New extern `debug_state'.
456 Include `stringclass.h' and `mtsm.h'.
457 Implement new classes and class members from `node.h'.
458 (real_output_file): Make `fp' public.
459 (troff_output_file): New variables `cur_div_level' and `tag_list'.
461 (troff_output_file::really_print_line): Check whether we should push
462 the current troff state and use the state at the start of the
463 invocation of this diversion.
464 (troff_output_file::add_to_tag_list): New member function.
465 (node::add_char): Handle `glyph_comp_np'.
467 * src/roff/troff/node.h: Include `mtsm.h'.
468 (node): New variables `state', `push_state', `div_nest_level',
469 `is_special'. Update constructors, all descendants.
470 Pass additional argument to `add_char' member function.
471 New virtual member functions `is_tag', `debug_node',
472 `debug_node_list'. Update all descendants.
473 (tag_node): New class for handling tags.
474 (output_file): Add variable `state'.
476 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
478 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
479 providing a minimal troff state machine to emit meta tags for the
480 post-grohtml device driver.
482 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
485 2004-10-09 Werner LEMBERG <wl@gnu.org>
487 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
489 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
491 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
493 * src/roff/troff/div.h: Include `mtsm.h'.
494 (diversion): New variables `any_chars_added', `needs_push',
495 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
496 `saved_suppress_next_eol', `modified_tag'.
497 New virtual member function `is_diversion'. Update all descendants.
499 * src/roff/troff/div.cpp (diversion::diversion,
500 macro_diversion::macro_diversion): Updated.
501 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
503 (top_level_diversion::space): Handle `curenv->seen_space'.
504 (page_offset): Update tag handling.
505 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
507 * src/roff/troff/env.h (environment): Make `tabs' public.
508 Remove `ignore_next_eol', `emitted_node'.
509 Update `output_line', `output'.
510 New variables `seen_space', `seen_eol', `suppress_next_eol',
512 New member functions `construct_state', `make_tag',
513 `construct_format_state, `construct_new_line_state,
515 Remove `add_html_tag', `make_html_tag'.
517 * src/roff/troff/env.cpp: New externs `suppress_push',
518 `get_diversion_state', `global_diverted_space'.
519 (pending_output_line): New variable `was_centered'.
520 Update constructor and all callers.
521 (pending_output_line::output): Call `curenv->construct_format_state'.
522 (environment::environment, environment::copy): Updated.
523 (environment::output): Handle `was_centered'.
524 (environment::add_char): Handle construct and diversion state.
525 (environment::add_node): Handle construct state.
526 (environment::newline): Handle `was_centered'.
527 (environment::output_line): Updated.
528 (environment::possibly_break_line): Updated.
530 (environment::add_html_tag): Replaced with...
531 (environment::make_tag): New function.
532 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
533 (environment::dump_troff_state): New debugging function.
534 (environment::construct_state, environment::construct_format_state,
535 environment::construct_new_line_state): New functions.
536 (environment::do_break): Updated.
537 Handle `global_diverted_space'.
538 (environment::handle_tag): Update tag handling.
539 (point_size, fill, do_break_request): Don't call `add_html_tag'.
540 (no_fill): Don't call `add_html_tag'.
541 Set `suppress_next_eol'.
542 (center, right_justify, line_length, indent, temporary_indent,
546 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
547 (input_iterator): New variables `is_diversion', `diversion_state'.
549 (input_stack): New member functions `get_div_level',
550 `get_diversion_state', `check_end_diversion'.
551 New variables `div_level', `diversion_state'. Initialize them.
552 (suppress_push, global_diverted_space): New global variables.
553 (input_stack::finish_get, input_stack::finish_peek,
554 input_stack::remove_boundary, input_stack::end_file,
555 input_stack::clear, input_stack::pop_macro): Call
556 `check_end_diversion'.
557 (input_stack::push): Handle `div_level' and `diversion_state'.
558 (get_diversion_state): New function.
559 (diverted_space_node::reread): Handle `global_diverted_space'.
560 (macro::macro): Update constructors.
561 (macro::is_diversion): New function.
562 (macro::operator=): Set `is_a_diversion'.
563 (string_iterator): New member function `is_diversion'.
564 (string_iterator::string_iterator): Update constructors.
565 (string_iterator::fill): Set `div_nest_level'.
566 (macro_iterator): New member function `is_diversion'.
567 (do_if_request): Handle `suppress_push'.
568 (tag, taga): New functions.
569 (init_input_requests): Add `tag' and `taga' requests.
571 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
573 * src/include/font.h (font): New member function
574 `get_image_generator'.
575 New variables `unscaled_charwidths' and `image_generator'.
577 * src/libs/libgroff/font.cpp (font::get_width): Always return the
578 character's unscaled width if `font::unscaled_charwidths' is set.
579 (font::get_image_generator): New function.
580 (font::load_desc): Check the `unscaled_charwidths' and
581 `image_generator' keywords.
583 * src/libs/libgroff/fontfile.cpp: Initialize
584 `font::unscaled_charwidths' and `font::image_generator'.
586 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
588 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
590 * man/groff_font.man: Document `unscaled_charwidths' and
593 * src/preproc/html/pre-html.cpp: Include `device.h'.
594 (image_gen): New global variable.
595 (imageList::createPage): Use `image_gen'.
596 (main): Use `image_generator' keyword.
598 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
600 * tmac/html.tmac: Handle \[sqrtex].
602 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
604 * src/include/printer.h (printer): New virtual method `round_width'.
606 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
607 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
608 src/devices/grotty/tty.cpp (printer::round_width): New function
611 * src/devices/grohtml/post-html.cpp (printer::round_width): New
613 (html_printer::set_numbered_char): Use it.
615 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
617 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
619 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
621 * configure: Regenerated.
623 * Makefile.in (GHOSTSCRIPT): New variable.
624 (MDEFINES): Add GHOSTSCRIPT.
626 2004-10-03 Werner LEMBERG <wl@gnu.org>
628 * INSTALL.gen: Updated (taken from texinfo CVS).
630 2004-09-28 Werner LEMBERG <wl@gnu.org>
634 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
636 * tmac/groff_www.man: Revised and updated.
638 2004-09-26 Werner LEMBERG <wl@gnu.org>
640 Fix \$@ and \$* to handle any number of arguments.
642 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
645 * src/roff/troff/input.cpp (input_iterator::internal_level):
647 (input_stack): New member functions `increase_level' and
649 (input_stack::get_level): Don't use `internal_level'.
650 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
651 (end_quote_iterator): Completely removed.
652 (interpolate_arg): Build string for \$@ and \$* which is then
653 pushed onto the input stack.
655 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
657 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
660 2004-09-23 Werner LEMBERG <wl@gnu.org>
662 * tmac/an-old.tmac (ne): Using default scaling operator.
664 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
666 This change implements the following features:
669 New numeric register: Defines number of lines following LP, PP,
670 QP, IP or XP, which must be kept together, before any automatic
671 page break. If insufficient space remains on the current page, a
672 page break is forced before the new paragraph begins.
675 New numeric register: Sets number of lines of following paragraph
676 which must be kept with a heading, defined by NH or SH, before any
677 automatic page break. If insufficient space remains on the
678 current page, a page break is forced before the heading.
681 (Thanks to Joerg van den Hoff, for this idea).
683 New numeric register: Sets the first level of heading (set with
684 NH), which will keep the same point size as body text; e.g. if
685 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
686 point size specified by \n[PS], but .NH 2 and .NH 1 will have
687 progressively larger point sizes, determined by \n[PSINCR] (see
691 New numeric register: Sets the point size increment for each level
692 of heading, (set with NH), below the threshold level set by
693 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
694 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
695 and all other levels will remain at 10pt, (because \n[PS] = 10).
698 Existing macro now accepts a numeric argument, to make heading
699 size match that of NH with same argument value, when the
700 GROWPS/PSINCR feature is enabled.
703 New string, set by NH macro, replaces the existing (undocumented)
704 use of SN, to represent the assigned section number.
707 New string, set by NH macro, represents the assigned section
708 number, but omits the terminal period (periods at intermediate
709 levels are retained).
712 String set by NH macro, originally undocumented, now implemented
713 as an alias for SN-DOT (which reproduces original behaviour).
715 * tmac/s.tmac (PORPHANS): New register.
717 (HORPHANS, GROWPS, PSINCR): New registers.
718 (SH-NO-TAG, @SH): Use them.
721 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
723 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
724 of `Ds' and `De' macros.
726 2004-09-10 Werner LEMBERG <wl@gnu.org>
728 In tbl, handle \a as an interpreted leader character if in
731 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
732 LEADER_CHAR): New macros.
733 (compatible_flag): New declaration.
735 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
736 LEADER_3, and LEADER_4 to `state'.
737 (table_input::get): Handle `\a'.
739 * src/preproc/tbl/table.cpp (PREFIX): Removed.
740 (LEADER_REG): New macro.
741 (table::init_output): Define LEADER_REG string register if in
744 * src/preproc/tbl/tbl.man: Document it.
746 2004-08-18 Werner LEMBERG <wl@gnu.org>
748 * tmac/doc.tmac (An): Fix error message.
750 2004-08-06 Werner LEMBERG <wl@gnu.org>
752 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
753 file can't be opened. UNIX tbl has the same behaviour.
755 2004-08-05 Y T <doarhop@hotmail.com>
757 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
758 (DBRead): If in compatibility mode, take into account the text
759 when computing figure boundaries.
761 2004-08-05 Werner LEMBERG <wl@gnu.org>
763 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
764 from Tadziu Hoffmann.
766 2004-08-03 Werner LEMBERG <wl@gnu.org>
768 * doc/meref.me: Document `_M' register.
770 2004-08-03 Martin Husemann <martin@duskware.de>
772 Make hpftodit work correctly on big-endian systems.
774 * src/utils/hpftodit/hpftodit.cpp (File): New method
775 `get_uint32(char *)'.
776 (entry): New member `orig_value'.
777 (read_tags): Use new method.
778 (output_font_name, read_and_output_pcltypeface, dump_ascii):
781 2004-08-01 Werner LEMBERG <wl@gnu.org>
783 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
784 are already in X11's `macros.t' file.
786 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
788 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
790 (read_and_output_pcltypeface): Handle strings with length <= 4.
792 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
794 * tmac/s.tmac (pg@top): Don't save `PO' register.
795 (pg*end-col, pg*end-page): Directly use `PO' register.
797 2004-07-27 Werner LEMBERG <wl@gnu.org>
799 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
801 * src/preproc/refer/refer.cpp (output_references): Check for
803 * src/preproc/refer/refer.man: Improve documentation of
804 `bibliography' command.
806 2004-07-26 Werner LEMBERG <wl@gnu.org>
808 Add requests `fcolor' and `gcolor'.
810 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
812 (init_env_requests): Add `fcolor' and `gcolor'.
814 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
816 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
817 Document new requests.
819 2004-07-24 Werner LEMBERG <wl@gnu.org>
821 Add support for fractional point sizes in ms macros. A value for
822 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
823 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
825 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
826 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
828 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
830 2004-07-19 Werner LEMBERG <wl@gnu.org>
832 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
834 (do_for, for_input::get, for_input::peek): Handle negative `by'.
835 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
837 2004-07-08 Thomas Klausner <wiz@netbsd.org>
839 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
840 * tmac/groff_mdoc.man: Updated.
842 2004-07-05 Werner LEMBERG <wl@gnu.org>
844 * doc/groff.texinfo: Further improve documentation of `hcode'.
846 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
848 Improve appearance of arrows in pic.
850 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
852 Use two line segments for drawing non-filled arrow head.
853 (line_object::print, spline_object::print): Shorten line length to
854 avoid arrow sticking.
855 (arc_object::print): Take arrow direction into account.
857 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
859 * tmac/groff_www.man: Update documentation of .MPIMG.
861 2004-07-03 Werner LEMBERG <wl@gnu.org>
863 * tmac/an-old.tmac (RI): Always start with font `R'.
864 (RI, IR): Properly end with font `R'.
866 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
868 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
869 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
870 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
871 Don't pass more than six arguments to .R, .I, .B, etc., for
872 compatibility with traditional troff macros.
874 2004-07-02 Werner LEMBERG <wl@gnu.org>
876 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
877 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
879 (PUSH_COMP_MODE): New internal character constant.
882 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
883 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
884 (token::next, macro::append): Handle PUSH_COMP_MODE.
885 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
886 POP_GROFFCOMP after each of the decoded arguments to make them
887 independent from the compatibility mode status.
888 (comp_mode): Add `COMP_ENABLE'.
889 (do_define_string, do_define_macro): Handle COMP_ENABLE.
890 (define_string, append_string, define_macro, define_indirect_macro,
891 append_macro, append_indirect_macro): Handle `compatible_flag'.
892 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
894 * man/groff_diff.man, doc/groff.texinfo: Updated.
896 2004-07-01 Werner LEMBERG <wl@gnu.org>
898 * doc/groff.texinfo: Improve documentation of `hcode'.
899 Use @documentencoding and convert document to latin-1; to do that
900 make latin characters active and assign proper macros (within a
901 @tex...@end tex environment).
902 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
903 * doc/Makefile.sub (groff): Ditto.
905 2004-06-29 Werner LEMBERG <wl@gnu.org>
907 Implement two new conditional operators `F <name>' and `S <name>'
908 which check whether <name> is a valid font or style, respectively.
910 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
911 (text_file::text_file): Updated.
912 (text_file::error): Don't emit message if `silent' is set.
913 (font::load_font): Add optional third argument (which is directly
915 (font::load): Add optional second argument to check the header of
916 a font only, without emitting warning or error messages.
917 * src/include/font.h (font): Updated.
919 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
921 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
922 fourth argument to check a font without mounting.
923 (check_font, check_style): New functions.
924 * src/roff/troff/node.h: Updated.
926 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
929 2004-06-27 Werner LEMBERG <wl@gnu.org>
931 Implement new string-valued register `.sty' to return the current
934 * env.cpp (environment::get_style_name_string): New function.
935 (init_env_requests): Add `.sty' register.
936 * env.h (environment): Updated.
937 * node.cpp (font_info): Make `get_style_name' a friend.
938 (get_style_name): New function.
941 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
944 2004-06-15 Werner LEMBERG <wl@gnu.org>
946 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
949 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
951 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
952 and \n[mo] to avoid dependency on current date.
954 2004-06-08 Werner LEMBERG <wl@gnu.org>
956 * Makefile.sub (install_data): New target.
958 2004-06-04 Werner LEMBERG <wl@gnu.org>
960 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
962 2004-06-03 Werner LEMBERG <wl@gnu.org>
964 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
966 (install_data): Add $(srcdir).
968 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
971 2004-06-02 Werner LEMBERG <wl@gnu.org>
973 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
974 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
975 Add test for Xmu library.
976 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
977 GROFF_APPRESDIR_DEFAULT): New macros.
979 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
980 and GROFF_APPRESDIR_DEFAULT.
982 * configure: Regenerated.
984 * Makefile.in (appresdir): New variable.
985 (MDEFINES): Add appresdir.
987 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
989 (install_data, uninstall_sub): New targets to handle GXditview.ad.
991 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
992 `$(srcdir)/eign', not `eign'.
994 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
996 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
997 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
998 Protect (g)xditview with `\%' to avoid hyphenation.
999 Other minor formatting.
1001 2004-06-01 Werner LEMBERG <wl@gnu.org>
1003 Integrate gxditview into groff's standard directory hierarchy.
1005 * src/xditview/*: Moved to ...
1006 * src/devices/xditview/*: Here.
1007 Moved DviChar.h and XFontName.h to src/include.
1008 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1009 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1010 Moved xtotroff.c to new directory src/utils/xtotroff.
1011 Provide proper Makefile.sub files (reusing the stuff from
1013 DESC renamed to DESC.in.
1014 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1015 Converted everything from K&R to ANSI C.
1016 Decorated with const where appropriate.
1017 Cast string constants with `String' and `char *' where appropriate.
1018 Made it compile with C++ (used as a C compiler).
1019 Removed other minor compiler warnings.
1021 * src/devices/xditview/device.c: Include config.h, string.h, and
1023 Don't declare `exit', `strtok', `strchr', and `getenv'.
1026 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1029 * src/devices/xditview/xditview.c: Include config.h.
1030 Include stdio.h earlier.
1031 Protect declaration of `popen' and `pclose' with
1032 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1033 Replace `caddr_t' with `XtPointer'.
1034 (MakePromptFunc): New typedef.
1035 (DoPrint): Use RETSIGTYPE.
1036 (promptfunction): Change type to MakePromptFunc.
1037 (MakePrompt): Use MakePromptFunc for third argument.
1040 * src/devices/xditview/ad2c: Add casts to `String'.
1042 * src/include/XFontName.h (XFontNameString): Don't use array
1044 Add prototypes for `XParseFontName', `XFormatFontName',
1045 `XCompareFontName', and `XCopyFontName'.
1047 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1050 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1051 Don't declare `XParseFontName' and `XFormatFontName'.
1053 (main): Remove `optind' and `optarg'.
1055 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1056 (to select programs which need X).
1057 Make XDEVIDIRS depend on `FORCE'.
1058 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1060 (MDEFINES): Updated.
1061 (LIBDIRS): Use XLIBDIRS.
1062 (CPROGDIRS): Use XPROGDIRS.
1063 (DEVDIRS): Remove font directories for gxditview.
1064 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1065 (EXTRADIRS): Remove src/xditview.
1067 * Makefile.sub (DISCLEANFILES): Updated.
1069 * Makefile.comm (LIBXUTIL): New variable.
1070 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1071 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1073 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1075 * aclocal.m4 (GROFF_X11): New function.
1077 * configure.ac: Call GROFF_X11.
1078 Don't create src/xditview/Imakefile.
1079 Don't emit notice how to build gxditview.
1081 * configure: Regenerated.
1083 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1085 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1087 * Makefile.in (CPPFLAGS): Define.
1088 (MDEFINES): Add CPPFLAGS.
1090 2004-05-27 Werner LEMBERG <wl@gnu.org>
1092 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1094 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1096 Fix problems with `friend name injections'.
1098 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1099 make_script_box), src/roff/troff/div.h (end_diversions),
1100 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1103 2004-05-25 Bernd Warken <bwarken@mayn.de>
1105 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1107 2004-05-25 Werner LEMBERG <wl@gnu.org>
1109 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1110 src/libs/libgroff/color.cpp: Include lib.h.
1112 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1114 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1115 through Forte 6u1, and for how to get GNU make on Solaris.
1117 2004-05-24 Werner LEMBERG <wl@gnu.org>
1119 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1122 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1124 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1127 2005-05-14 Werner LEMBERG <wl@gnu.org>
1129 * REVISION: Set to 2.
1131 * aclocal.m4 (GROFF_STDINT_H): Removed.
1132 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1134 * configure.ac: Updated.
1135 * configure, src/include/config.hin: Regenerated.
1137 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1138 inttypes.h conditionally.
1140 2003-05-13 Werner LEMBERG <wl@gnu.org>
1142 Version 1.19.1 released
1143 =======================
1145 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1147 * src/preproc/refer/label.y (same_author_last_name,
1148 same_author_name): Handle empty sort keys.
1150 2004-05-10 Werner LEMBERG <wl@gnu.org>
1152 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1155 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1156 doc-str-Lb-librt): Reset font.
1157 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1158 Provide `doc-str-Lb' to reset font.
1159 * tmac/groff_mdoc.man: Updated.
1161 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1163 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1164 snprintf versions which don't conform to ANSI C 99 (this is,
1165 counting the string's trailing null byte in the return value).
1167 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1169 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1170 that all implementations of sprintf handle null pointers correctly.
1172 2004-05-04 Werner LEMBERG <wl@gnu.org>
1174 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1175 Document `.U' register.
1177 * src/roff/troff/env.cpp (environment::mark_last_line)
1178 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1180 2004-05-04 Larry Kollar <kollar@alltel.net>
1182 New read-only register `.U'; it returns 1 in safer mode and 0
1185 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1188 2004-05-03 Werner LEMBERG <wl@gnu.org>
1190 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1192 2004-04-17 Werner LEMBERG <wl@gnu.org>
1194 * src/include/font.h (font): Use `int' for ch_index.
1195 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1196 font::compact): Updated.
1198 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1201 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1202 (hyphen_word): Fix compiler warnings.
1203 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1206 (get_delim_number, get_line_arg): Change second argument type to
1208 (macro_header::copy, token::next, do_define_string,
1209 do_define_character, substring_request, asciify_macro,
1210 unformat_macro, read_size, non_interpreted_node::interpret,
1211 while_request, main: Fix compiler warnings.
1212 (read_color_draw_node): Initialize `col'.
1214 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1215 `start_col' and `end_col' of type `int'.
1216 (vertical_rule): Make `col' of type `int'.
1218 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1221 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1223 (format_serial): Use them to remove dependency on ASCII.
1225 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1227 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1230 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1232 (glyph): Change type of `hpos' to `int'.
1234 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1235 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1237 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1239 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1241 2004-04-16 Werner LEMBERG <wl@gnu.org>
1243 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1244 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1245 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1246 `double' instead of `float' everywhere.
1247 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1249 (main): Add return value.
1250 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1252 Update all user functions.
1254 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1255 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1256 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1257 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1258 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1259 src/roff/troff/input.cpp, src/roff/troff/request.h,
1260 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1263 * src/utils/indxbib/signal.c: Include stdlib.h.
1265 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1267 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1268 before the first page.
1270 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1272 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1273 (doc-operating-system-*): Updated.
1274 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1275 (doc-str-Lb-*): Add more library names.
1277 2004-04-10 Art Haas <ahaas@airmail.net>
1279 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1282 2004-04-09 Art Haas <ahaas@airmail.net>
1284 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1286 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1288 * arch/misc/shdeps.sh: Generate better comment for sed script.
1290 2004-04-08 Art Haas <ahaas@airmail.net>
1292 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1293 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1294 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1295 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1296 (polyfill), src/preproc/grn/main.cpp (polyfill),
1297 src/preproc/refer/command.cpp (command_table),
1298 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1299 gcc 3.5 doesn't like).
1301 2004-04-08 Werner LEMBERG <wl@gnu.org>
1303 Removing many compiler warnings. groff should now compile with
1304 a C++ compiler used for C files also. [Simple variable renamings
1305 to avoid shadowing aren't logged in detail.]
1307 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1308 (draw_dvi_printer::draw) ['c']: Enclose in block.
1310 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1311 (page::add_line): Fix typos.
1312 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1314 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1315 Some local variable renamings.
1316 * src/devices/grolbp/lbp.h: Some local variable renamings.
1318 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1321 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1322 Remove redundant local variable declaration.
1323 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1324 Don't use `caddr_t' but `void *'.
1325 Enclose functions with `extern "C"' for C++.
1327 * src/libs/libdriver/input.cpp (remember_filename,
1328 remember_source_filename): Use cast for string constant.
1330 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1331 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1332 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1333 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1335 Enclose functions with `extern "C"' for C++.
1336 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1337 (needs_quoting): Return `int'.
1338 (quote_arg): Add proper casts to malloc and realloc.
1339 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1340 various MS Windows environments.
1341 (spawnvp_wrapper): Add proper cast to malloc.
1343 * src/preproc/eqn/box.h: Remove redundant declarations of
1344 `make_script_box', `make_mark_box' and `make_lineup_box'.
1345 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1346 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1349 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1350 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1351 (dx, dy): Renamed functions to...
1352 (deltax, deltay): This.
1353 * src/preproc/grn/main.cpp: Some local variable renamings.
1354 (deffont): Add `const'.
1355 (initpic, conv): Use cast for string constant.
1357 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1358 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1359 (char_buffer::run_output_filter): Second argument is unused.
1360 * src/preproc/html/pushback.cpp: Some local variable renamings.
1362 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1363 * src/preproc/pic/object.cpp: Some local variable renamings.
1365 * src/preproc/refer/label.y (lookup_label): Remove redundant
1366 declaration of local variable.
1368 * src/preproc/soelim.cpp: Remove redundant declaration of
1369 `interpret_lf_args'.
1371 * src/preproc/tbl/main.cpp: Some local variable renamings.
1373 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1374 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1375 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1376 Don't use C++-style comments.
1378 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1379 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1380 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1382 * src/roff/troff/div.h: Remove redundant declaration of
1384 * src/roff/troff/troff.h: Remove redundant declaration of
1386 * src/roff/troff/input.cpp: Remove redundant declaration of
1387 `handle_first_page_transition' and `process_input_stack'.
1389 * src/utils/hpftodit.cpp: Some local variable renamings.
1391 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1393 Don't define RETSIGTYPE.
1394 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1396 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1397 (error): Use `const' in argument.
1398 (main): Remove redundant declaration of `optind'.
1399 Move declaration of `Version_string' to top-level.
1401 * PROBLEMS: Document difficulties compiling signal.c if a C++
1402 compiler is used for C.
1404 2004-04-07 Werner LEMBERG <wl@gnu.org>
1406 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1408 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1410 Make scripts like nroff.sh and neqn.sh portable across various
1411 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1412 non-POSIX path separators. The idea is to extend those scripts to
1413 decide at run-time (of the script) which path separator to use.
1415 * arch/misc/Makefile.sub: New file.
1416 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1417 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1418 a proper definition of the variable `GROFF_RUNTIME'.
1420 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1421 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1422 (PROGDEPDIRS): New variable.
1424 (PROGDIRS): Add PROGDEPDIRS.
1426 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1427 Don't substitute @SEP@ and @BINDIR@.
1428 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1429 (PATH): Use GROFF_RUNTIME.
1431 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1432 Don't substitute @SEP@ and @BINDIR@.
1433 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1434 (PATH): Use GROFF_RUNTIME.
1436 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1438 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1439 Cygwin which doesn't handle stderr correctly.
1441 2004-03-08 Werner LEMBERG <wl@gnu.org>
1443 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1444 against empty argument. Problem reported by <cgd@broadcom.com>.
1446 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1448 * Makefile.in (SEP): Replaced with...
1449 (RT_SEP, SH_SEP): Separators for the target platform's native path
1450 separator and the build environment, respectively.
1451 (fontpath, tmacpath): Use RT_SEP.
1452 (MDEFINES): Updated.
1454 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1455 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1456 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1457 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1459 2004-03-05 Werner LEMBERG <wl@gnu.org>
1461 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1462 reduce alignment problems with newer printers which use built-in
1463 TrueType fonts (instead of the older Intellifonts). The ideal
1464 solution is to provide a second set of groff metric files, but this
1465 is extremely time-consuming to produce, given that HP's metric
1466 files are very rudimentary.
1468 2004-03-01 Werner LEMBERG <wl@gnu.org>
1470 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1471 s/operand/argument/ in error message.
1473 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1475 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1478 2004-03-01 Antti Kantee <pooka@netbsd.org>
1480 * tmac/s.tmac (XE): Fix error message.
1482 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1484 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1487 * src/roff/groff/pipeline.c: Declare strcasecmp.
1488 (run_pipeline) [_WIN32]: Use function name variants which don't
1490 Fix stream handling.
1492 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1494 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1495 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1496 for platforms which use the native Win32 runtime libraries.
1497 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1499 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1500 QUOTE_ARG_REALLOC_ERROR): Fix string.
1502 * src/preproc/html/pre-html.cpp: Remove declaration of
1504 Don't use __MINGW32__.
1505 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1506 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1507 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1508 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1509 calls to `set_redirection' and `WAIT'.
1510 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1511 Fix calls to `set_redirection' and `save_and_redirect'.
1512 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1513 to `set_redirection' and `save_and_redirect'.
1514 (usage): Fix message.
1515 (makeTempFiles, main): Use `DEBUG_FILE'.
1517 2004-02-21 Werner LEMBERG <wl@gnu.org>
1519 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1521 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1523 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1524 quoting for MSVC's spawn* and exec* functions.
1525 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1526 spawnvp with proper quoting for MSVC.
1528 * src/libs/libgroff/assert.cpp (program_name),
1529 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1530 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1532 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1534 * src/include/error.h (program_name): Declare as `extern "C"'.
1535 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1537 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1539 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1541 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1543 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1545 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1547 (sbasename) [__MSDOS__ || ...]: New function.
1548 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1550 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1551 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1553 Use STDOUT_FILENO instead of hardcoded file handle.
1554 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1556 2004-02-19 Werner LEMBERG <wl@gnu.org>
1558 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1559 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1561 2004-02-18 Werner LEMBERG <wl@gnu.org>
1563 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1564 new font and mapping files.
1566 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1567 Keith Marshall <keith.d.marshall@ntlworld.com>
1569 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1570 an input pipe. This is needed for the MSVC compiler to make troff's
1573 * src/roff/troff/div.cpp: Include nonposix.h.
1574 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1576 2004-02-17 Werner LEMBERG <wl@gnu.org>
1578 * font/devlj4/generate/special.awk: New script.
1579 * font/devlj4/generate/Makefile (S): Use special.awk.
1580 * font/devlj4/*: Regenerated, including the following new files:
1581 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1582 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1583 * NEWS: Document new lj4 fonts and revised hpftodit.
1585 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1587 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1589 2004-01-25 Werner LEMBERG <wl@gnu.org>
1591 * src/libs/libgroff/progname.cpp: Replaced with...
1592 * src/libs/libgroff/progname.c: New file.
1593 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1595 2004-01-17 Werner LEMBERG <wl@gnu.org>
1597 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1599 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1601 * font/devlj4/generate/wingdings.map,
1602 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1603 Use groff glyph names where possible.
1604 * src/devices/grolj4/lj4_font.man: Minor updates.
1606 2004-01-13 Werner LEMBERG <wl@gnu.org>
1608 * tmac/www.tmac (DC): Handle TTY devices.
1610 * doc/webpage.ms: Document viewCVS from ffii.org.
1611 * NEWS, README: Updated.
1613 * src/roff/groff/groff.man: Mention lj4_font man page.
1615 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1617 (FONTS): Add SYMBOL and WINGDINGS.
1618 (SYMBOL, WINGDINGS): New targets.
1620 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1622 * src/devices/grolj4/lj4_font.man: New man page.
1623 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1624 * src/devices/grolj4.man: Mention lj4_font man page.
1626 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1627 * src/utils/hpftodit/hpftodit.man: Document it.
1629 Remove details about fonts (which are now in lj4_font.man).
1631 * font/devlj4/generate/symbol.map,
1632 font/devlj4/generate/wingdings.map: New files.
1634 2004-01-12 Werner LEMBERG <wl@gnu.org>
1636 * README: Mention ffii's viewcvs access.
1638 2004-01-09 Werner LEMBERG <wl@gnu.org>
1640 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1642 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1644 Revert most of the change from 2004-01-03 to better control used
1647 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1648 (text_symbol_sets, special_symbol_sets): New arrays.
1649 (symbol_set_table): New global variable.
1650 (read_symbol_sets): Use search order given in the text_symbol_sets
1651 and special_symbol_sets arrays. If command line flag -a is not
1652 given, search both arrays.
1653 (output_charset): Require x_height_tag only for command line flag -i.
1655 2004-01-06 Werner LEMBERG <wl@gnu.org>
1657 Implement string-valued registers \n[.m] and \n[.M] to return the
1658 name of the current drawing and background color, respectively.
1660 * src/roff/troff/symbol.h: Moved to...
1661 * src/include/symbol.h: Here.
1662 Small fixes to make it work outside of the `troff' directory.
1663 * src/roff/troff/symbol.cpp: Moved to...
1664 * src/libs/libgroff/symbol.cpp: Here.
1665 Small fixes to make it work outside of the `troff' directory.
1667 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1668 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1671 * src/include/color.h: Include symbol.h.
1672 (color): Add new field `nm'.
1673 * src/libs/libgroff/color.cpp (color::color): Updated.
1675 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1676 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1677 src/roff/troff/reg.cpp: Don't include symbol.h.
1679 * src/roff/troff/env.cpp: Don't include symbol.h.
1680 (environment::get_glyph_color_string,
1681 environment_get_fill_color_string): New member functions.
1682 (init_env_requests): Handle `.m' and `.M' registers.
1683 * src/roff/troff/input.cpp: Don't include symbol.h.
1684 (default_symbol): Moved to symbol.cpp/symbol.h.
1685 (do_glyph_color, do_fill_color, define_color): Pass symbol name
1686 to color constructor.
1687 * src/roff/troff/env.h: Updated.
1689 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1690 Document new registers.
1692 2004-01-05 Werner LEMBERG <wl@gnu.org>
1694 * src/roff/troff/node.cpp (space_node::get_breakpoints,
1695 space_node::nbreaks): Protect against zero `next' field.
1697 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
1699 In hpftodit, use the symbol sets offered in the TFM.
1701 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1702 (symbol_set, text_symbol_sets, special_symbol_sets,
1703 symbol_set_table): Removed.
1704 (get_printcode): Removed.
1705 (read_symbol_sets): Initialize `symbol_set' field with
1707 Simplify code to just use the `kind' value.
1708 (output_charset): Improve output formatting.
1709 (dump_symbols): Simplified.
1711 2004-01-02 Werner LEMBERG <wl@gnu.org>
1713 * font/devlj4/generate/text.map: Add more MSL numbers.
1715 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
1717 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1718 (text_symbol_sets): Add more symbol sets.
1719 (debug_flag): New static variable (moved from `main').
1720 (get_printcode, show_symset): New functions.
1721 (main): Remove `debug_flag'.
1722 (output_charset): Use `show_symset'.
1723 (dump_symbols): Use `show_symset'.
1724 Print symsets for all glyphs.
1725 (read_map): Actually call `unicode_to_ucode_make' but this time
1728 2004-01-01 Werner LEMBERG <wl@gnu.org>
1730 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1731 Fix placement of comments.
1733 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
1735 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1736 option `-d' is given.
1737 (output_charset): Improve warning messages to give more information.
1738 (dump_symbols): Make information more precise.
1740 (read_map): Don't call unicode_to_ucode_name; the glyph names must
1741 appear as-is and shouldn't be decomposed.
1743 2003-12-31 Werner LEMBERG <wl@gnu.org>
1745 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1746 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1747 (FONTS): Add TrueType font families Arial and Times New Roman.
1748 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1749 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1752 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
1754 * test-groff.in (SEP): Quote value.
1755 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1756 `tem' to `char*' to avoid deallocation of a pointer to a constant
1757 object which some compilers don't like.
1759 2003-12-31 Werner LEMBERG <wl@gnu.org>
1761 * font/devlj4/generate (text.map, special.map): Rewritten to work
1762 with the new hpftodit version.
1764 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
1766 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1767 set and 8bit character code for all glyphs also.
1769 2003-12-30 Werner LEMBERG <wl@gnu.org>
1771 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1773 2003-12-29 Werner LEMBERG <wl@gnu.org>
1775 More fixes for MSVC compiler.
1777 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1780 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1781 STDERR_FILENO) [_MSC_VER]: Define conditionally.
1782 (getpid) [_MSC_VER]: Remove.
1783 Include direct.h and process.h conditionally.
1785 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1786 parentheses for a_delete.
1788 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1790 * test-groff: Replaced with...
1791 * test-groff.in: This new template to handle path separator
1794 * configure.ac: Check for direct.h and process.h.
1795 Generate test-groff script.
1796 * configure, src/include/config.hin: Regenerated.
1798 2003-12-28 Werner LEMBERG <wl@gnu.org>
1800 Add integral extension glyph.
1801 Add new option `-x' to afmtodit to suppress use of built-in AGL.
1803 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1805 * font/devps/generate/textmap: Provide entry for `integralex' to
1806 override (old) PUA value of the AGL.
1807 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1808 * font/devps/*: Regenerated.
1810 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1811 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1813 2003-12-27 Werner LEMBERG <wl@gnu.org>
1815 Add forgotten `coproduct' symbol (already available for DVI).
1817 * font/devhtml/R.proto, font/devps/generate/textmap,
1818 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1819 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1820 U+2210 (\[coproduct]).
1822 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
1824 hpftodit has been extended to handle TrueType metric files and
1825 more glyphs. See hpftodit.man for more details.
1827 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
1828 ctype.h, and unicode.h.
1829 s/msl/charcode/ everywhere since we now handle Unicode values also.
1830 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1831 Use it where appropriate.
1832 (MULTIPLIER): Replaced with...
1833 (multiplier): New global static variable.
1835 (tag_type): Add more TFM tags.
1836 (tag_name): New array.
1837 (ENUM_TYPE, FLOAT_TYPE): Removed.
1838 (BYTE_TYPE): New value assigned.
1839 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1840 (text_symbol_sets, special_symbol_sets): Extended to cover more
1842 (check_type): Add return value.
1843 (check_units): Add parameters to get ppi and upem values.
1844 Handle TrueType TFM data.
1845 (output_font_name): New function.
1846 (output_charset): Add parameter to handle TFM type.
1847 Handle TrueType TFMs also.
1848 (em_fract): New macro.
1849 (dump_tags): Be much more verbose and handle more tags.
1850 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1851 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1853 (read_map): Add parameter to handle TFM type.
1854 Handle both MSL and Unicode mappings.
1855 (main): Add two new command line options `-a' and `-q'.
1856 Updated to make use of new functions.
1859 * src/utils/hpftodit/hpuni.cpp: New file.
1861 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1864 2003-12-25 Werner LEMBERG <wl@gnu.org>
1866 * src/include/nonposix.h (read) [_MSC_VER]: Define.
1868 2003-12-24 Werner LEMBERG <wl@gnu.org>
1870 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1871 by Michail Vidiassov <master@iaas.msu.ru>.
1873 2003-12-20 Werner LEMBERG <wl@gnu.org>
1875 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1877 Add missing latin-2 glyphs.
1878 * font/devutf8/R.proto: Add missing latin-2 glyphs.
1880 * tmac/troffrc: Load `composite.tmac' earlier.
1882 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1883 u00{53,73}_0327, and u0049_0307.
1884 * tmac/X.tmac: Add u00{47,67}_0306.
1885 * tmac/tty-char.tmac: Use composite glyph names for readability.
1889 * src/include/unicode.h: Remove `extern' keywords.
1891 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
1893 * tmac/latin5.tmac: New file.
1895 2003-12-19 Werner LEMBERG <wl@gnu.org>
1897 Add some glyphs needed for Turkish.
1899 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1902 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
1903 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1904 u00{53,73}_0327, and u0049_0307.
1906 2003-12-18 Werner LEMBERG <wl@gnu.org>
1908 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1910 Remove trailing zeros.
1912 2003-12-17 Werner LEMBERG <wl@gnu.org>
1914 Make \? transparent to end-of-sentence recognition.
1916 * src/roff/troff/input.cc (non_interpreted_node): Add
1917 `ends_sentence' member function.
1919 2003-12-16 Werner LEMBERG <wl@gnu.org>
1921 * doc/groff.texinfo: Document `dt' request correctly.
1922 Other minor typographical improvements.
1924 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
1926 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1928 2003-12-10 Richard Stallman <rms@gnu.org>
1930 * LICENSE: Better wording.
1932 2003-12-09 Werner LEMBERG <wl@gnu.org>
1934 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1935 * configure, NEWS: Updated.
1937 2003-12-08 Werner LEMBERG <wl@gnu.org>
1939 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1941 2003-12-07 Bernd Warken <bwarken@mayn.de>
1945 2003-12-07 Werner LEMBERG <wl@gnu.org>
1947 * INSTALL: Improved.
1949 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1951 Use path separator character of target platform for compiled-in
1954 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1955 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1956 * configure: Regenerated.
1957 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1959 2003-12-05 Werner LEMBERG <wl@gnu.org>
1961 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1962 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1964 2003-12-04 Bernd Warken <bwarken@mayn.de>
1966 * LICENSE: New file.
1968 2003-12-03 Werner LEMBERG <wl@gnu.org>
1970 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1971 ligatures present in AFM files since groff currently only
1972 understands some standard ligatures and nothing else.
1974 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
1976 * src/roff/groff/groff.cpp (main): Don't run the spooler if
1979 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1982 Don't use Unix wait flags.
1984 2003-12-02 Werner LEMBERG <wl@gnu.org>
1986 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1987 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1988 src/roff/troff/uniuni.cpp: Moved to...
1989 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1990 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1991 src/libs/libgroff/uniuni.cpp: Here.
1993 * src/include/Makefile.sub.old (HDRS),
1994 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1995 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1997 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1999 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2003 2003-12-01 Werner LEMBERG <wl@gnu.org>
2005 * groff.texinfo: Document special behaviour of `.vs 0'.
2006 Improve documentation of `cflags' request.
2009 2003-11-29 Werner LEMBERG <wl@gnu.org>
2011 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2012 * font/devlj4/CORONET: Regenerated.
2014 2003-11-24 Werner LEMBERG <wl@gnu.org>
2016 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2017 if processing hyphenation patterns in traditional mode.
2018 Improve error messages.
2020 2003-11-20 Werner LEMBERG <wl@gnu.org>
2022 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2023 troff_output_file::put_char): Fix type of local variable `c'.
2025 2003-11-19 Werner LEMBERG <wl@gnu.org>
2027 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2029 (i_to_a): Removed. libgroff already provides this function.
2030 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2032 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2034 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2037 2003-11-17 Werner LEMBERG <wl@gnu.org>
2039 * COPYING: Use correct version.
2041 2003-11-11 Werner LEMBERG <wl@gnu.org>
2043 LynxOS 4.0.0 doesn't declare vfprintf.
2045 * configure.ac: Check for vfprintf.
2046 * configure: Regenerated.
2047 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2048 * src/include/config.hin: Regenerated.
2050 2003-11-10 Werner LEMBERG <wl@gnu.org>
2052 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2054 * configure.ac: Check for vsnprintf.
2055 * configure: Regenerated.
2056 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2058 * src/include/config.hin: Regenerated.
2060 2003-11-09 Werner LEMBERG <wl@gnu.org>
2062 * aclocal.m4: Updated syntax to autoconf 2.59.
2063 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2064 Don't check for gsos2.
2065 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2066 working abs_top_srcdir and abs_top_builddir.
2068 * configure.ac: Updated syntax to autoconf 2.59.
2069 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2070 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2071 * configure: Regenerated.
2073 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2074 s/@groff_top_builddir@/@abs_top_builddir@/.
2076 * src/roff/groff/pipeline.c (xstrsignal):
2077 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2079 2003-11-07 Werner LEMBERG <wl@gnu.org>
2081 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2082 make start angle smaller than end angle to circumvent a bug in tpic
2083 handling of some versions of dvipdfm (and dvipdfmx).
2085 2003-10-30 Werner LEMBERG <wl@gnu.org>
2087 * src/devices/grops/grops.man: Improve section on creating EPS.
2089 2003-10-29 Werner LEMBERG <wl@gnu.org>
2091 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2094 2003-10-28 Werner LEMBERG <wl@gnu.org>
2096 * doc/groff.texinfo: Fix documentation of `.if'.
2098 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2100 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2101 the form `uniXXXX' also.
2103 2003-10-27 Werner LEMBERG <wl@gnu.org>
2105 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2106 contrib/pic2graph/pic2graph.sh: Implement secure management of
2108 Pass `-P-pletter' to groff to avoid data outside of the converted
2109 area -- some versions of `convert' (for example 5.3.8) don't check
2110 the bounding box of the image but always use a fixed image size
2111 (letter paper format).
2112 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2113 contrib/pic2graph/pic2graph.man: Updated.
2115 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2117 2003-10-26 Werner LEMBERG <wl@gnu.org>
2119 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2120 troff_output::simple_ellipse, troff_output::simple_arc,
2121 troff_output::simple_line, troff_output::simple_spline,
2122 troff_output::simple_polygon): Insert a space before arguments.
2123 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2124 latter doesn't produce a node, so the following `.sp -1' would do
2126 Don't emit `.sp -1' after \M. This also doesn't produce a token
2127 (and we don't have to care about compatibility mode).
2128 (troff_output::set_color, troff_output::reset_color): Don't emit
2129 `.sp -1' after \M and \m.
2131 * src/roff/troff/input.cpp (old_have_input): New global variable.
2132 (input_stack::get): Handle `old_have_input'.
2133 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2134 `trapping_blank_line' depending on `old_have_input', not
2137 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2139 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2140 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2141 default directory names for temporary files.
2142 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2144 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2145 [__MSDOS__] (run_pipeline): Honour environment variables.
2146 Don't use `tmpnam' but `tempnam' to work around messy
2149 * README.MinGW: New file.
2151 2003-10-16 Werner LEMBERG <wl@gnu.org>
2153 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2154 `(*t)->next' without testing validity of `*t'.
2155 (usage): Make it more readable.
2157 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2159 Make html device run under both MS-DOS and Win32.
2161 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2162 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2163 spawn or fork+exec has to be used, and whether parent must sleep
2164 until the child process terminates. Used in
2165 `char_buffer::run_output_filter'.
2166 (copyofstdoutfd): Removed.
2167 (char_buffer): Replace `write_file_html' and `write_file_troff'
2168 member functions with `emit_troff_output' and `run_output_filter'.
2169 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2171 (replaceFd): Replaced with...
2172 (set_redirection): New auxiliary function.
2173 (waitForChild): Replaced with...
2174 (save_and_redirect): New auxiliary function for.
2176 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2179 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2181 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2182 (GROFF_LIBC): New function.
2183 * configure.ac: Call GROFF_LIBC.
2185 * configure: Regenerated.
2187 * src/include/lib.h: Handle __MINGW32__.
2188 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2189 Add macro for `pipe'.
2192 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2195 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2198 2003-10-13 Werner LEMBERG <wl@gnu.org>
2200 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2203 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2206 2003-10-12 Werner LEMBERG <wl@gnu.org>
2208 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2209 src/roff/troff/input.cc (usage): Updated.
2211 * NEWS, doc/groff.texinfo: Updated.
2213 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2215 * src/libs/libgroff/searchpath.cpp
2216 (search_path::open_file_cautious): New function which also handles
2217 `-' as stdin and stdout depending on the access mode.
2218 * src/include/searchpath.h (search_path): Updated.
2220 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2221 * src/devices/grops/ps.h: Include `searchpath.h'.
2222 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2223 Open resource file with `include_search_path.open_file_cautious'.
2224 * src/devices/grops/grops.man: Document new `-I' switch.
2226 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2227 (main), src/devices/grolj4/lj4.cpp (main),
2228 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2230 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2232 (include_search_path): New global variable.
2233 (include_path_append): Removed.
2234 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2235 (do_file): Simplify, using new
2236 `include_search_path.open_file_cautious'.
2238 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2240 (main): Pass arguments to `-I' to both troff and devices.
2241 Improve handling of `-V'.
2242 * src/roff/groff/groff.man: Document changes to -I and -V.
2244 * src/roff/troff/input.cpp (include_search_path): New global
2246 (next_file, source, ps_bbox_request, transparent_file,
2247 process_input_file): Use new
2248 `include_search_path.open_file_cautious'.
2249 (main) Handle `-I' switch.
2250 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2251 Use new `include_search_path.open_file_cautious'.
2252 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2253 * src/roff/troff/troff.man: Document new `-I' switch.
2255 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2257 Support multiple calls of .Lb in LIBRARY section.
2259 * tmac/doc-common (doc-in-library-section): New register.
2260 (doc-section-library): New string.
2261 (Sh): Set `doc-in-library-section'.
2263 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2264 if in LIBRARY section.
2265 * tmac/doc.tmac (doc-save-global-vars): Updated.
2266 * NEWS, tmac/groff_mdoc.man: Updated.
2268 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2270 * tmac/doc-common (doc-default-operating-system): New variable.
2273 2003-09-08 Werner LEMBERG <wl@gnu.org>
2275 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2277 2003-08-31 Werner LEMBERG <wl@gnu.org>
2279 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2280 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2281 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2282 $(DEVFILES) are not empty.
2283 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2285 2003-08-26 Chuck Silvers <chuq@chuq.com>
2287 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2288 with parallel runs of `make'.
2290 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2292 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2293 insert SORT_SEP. With certain combinations of sort specifications,
2294 refer sorted entries in the wrong order. In particular, entries
2295 with a missing field should be be sorted before all entries that
2296 have that field, before refer looks to the next field.
2298 2003-08-23 Werner LEMBERG <wl@gnu.org>
2300 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2301 g++ linker is used. Reported by Mark J. Reed
2302 <mark.reed@turner.com>.
2304 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2306 Add key character `x' to tbl which makes tbl call a user-defined
2307 macro on a table cell.
2309 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2310 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2311 `set_modifier' after printing the compatibility request.
2312 (set_modifier): Print call to `m->macro' if not empty.
2313 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2315 (process_format): Implement cases `x' and `X'.
2316 * src/preproc/tbl/tbl.man, NEWS: Updated.
2318 2003-08-15 Werner LEMBERG <wl@gnu.org>
2320 * doc/groff.texinfo: Minor fixes.
2322 2003-08-09 Werner LEMBERG <wl@gnu.org>
2324 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2326 2003-08-07 Werner LEMBERG <wl@gnu.org>
2328 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2329 argument list to nothing if there is no file to match. Use `ls' as
2330 a protection, similar to autoconf.
2332 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2333 empty argument lists.
2335 * doc/groff.texinfo: Improve documentation how vertical spacing
2336 and line breaks interact.
2339 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2341 2003-08-03 Werner LEMBERG <wl@gnu.org>
2343 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2344 EPS (using eps2eps or similar programs to compute the bounding box).
2346 2003-07-24 Werner LEMBERG <wl@gnu.org>
2348 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2349 * doc/texinfo.tex: Updated from texinfo 4.6.
2350 * README.CVS: From now on we need texinfo 4.6.
2352 2003-07-23 Werner LEMBERG <wl@gnu.org>
2354 Add requests `dei1' and `ami1' for completeness.
2356 * src/roff/troff/input.cc (calling_mode): Remove
2357 CALLING_DISABLE_COMP.
2358 (comp_mode): New enumeration.
2359 (do_define_string, define_string, define_nocomp_string,
2360 append_string, append_nocomp_string): Updated.
2361 (do_define_macro): Add third parameter.
2362 (define_macro, define_nocomp_macro, define_indirect_macro,
2363 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2364 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2367 (init_input_requests): Add `dei1' and `ami1'.
2369 * tmac/trace.tmac: Handle de1 and am1.
2370 (de): Improve tracing message.
2371 (am): Add missing `do'.
2374 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2375 Document new requests.
2377 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2379 Add option -G to .MPIMG to insert a gap between text and the image.
2381 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2382 www-finish-left-ll): Updated.
2383 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2384 (MPIMG): Make option -L and -R optional.
2385 Implement option -G.
2387 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2389 * src/devices/grohtml/post-html.cpp
2390 (html_printer::do_file_components): Don't use `stdout' as lvalue
2391 since it can be a macro.
2393 2003-07-22 Werner LEMBERG <wl@gnu.org>
2395 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2396 the corresponding test in aclocal.m4.
2398 2003-07-21 Werner LEMBERG <wl@gnu.org>
2400 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2401 names but RGB values directly. Otherwise pnmtopng depends on
2402 an external file `rgb.txt' which maps colour names to values.
2404 2003-07-20 Werner LEMBERG <wl@gnu.org>
2406 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2407 * configure, src/include/config.hin: Regenerated.
2409 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2411 2003-07-19 Werner LEMBERG <wl@gnu.org>
2413 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2415 2003-07-18 Werner LEMBERG <wl@gnu.org>
2417 * *.man: Switch to non-compatibility mode temporarily if GNU
2418 syntax extensions are used in the particular man page.
2420 * PROBLEMS: Add solutions for SGR problems.
2422 2003-07-17 Werner LEMBERG <wl@gnu.org>
2424 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2425 used to change the drawing scheme.
2427 * src/devives/grotty/tty.cpp (bold_flag_option,
2428 underline_flag_option, italic_flag_option, reverse_flag_option,
2429 bold_underline_mode_option): New global variables.
2430 (update_options): New function.
2431 (tty_printer::special): Call update_options.
2432 (main): Don't set xxx_flag but xxx_flag_option, then call
2435 2003-07-14 Werner LEMBERG <wl@gnu.org>
2437 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2439 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2441 (hline_char, vline_char): New global variables.
2442 (tty_printer::tty_printer): Initialize them.
2443 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2444 horizontal and vertical lines.
2445 (crossings): New global array.
2446 (tty_printer::end_page): Use it to determine the proper crossing
2447 character for -Tutf8.
2449 2003-07-12 Werner LEMBERG <wl@gnu.org>
2451 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2452 (HTMLDOCFILES): Revert to `pic.html'.
2453 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2455 2003-07-11 Werner LEMBERG <wl@gnu.org>
2457 * doc/pic.ms: Improve documentation of absolute coordinates.
2458 Document absolute positioning of pictures.
2460 * NEWS: Add new pic capability.
2462 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2464 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2467 2003-07-07 Werner LEMBERG <wl@gnu.org>
2469 Implement support for dashed and dotted ellipses in pic. Based on
2470 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2472 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2473 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2474 functions. Ellipse arcs are approximated with circle arcs.
2475 * src/preproc/pic/common.h (common_output): Updated.
2476 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2478 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2480 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2482 2003-07-06 Werner LEMBERG <wl@gnu.org>
2484 Make grotty work on platforms which have unsigned char as the
2485 default for char. Based on a patch by Thomas Klausner
2488 * src/devices/grotty/tty.cpp (schar): New typedef.
2489 Updated calls to declare_ptable and implement_ptable.
2490 (glyph): Use schar for back_color_idx and fore_color_idx.
2491 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2492 (tty_printer::tty_color, tty_printer::tty_printer,
2493 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2495 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2497 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2498 * src/roff/nroff/nroff.man: Updated.
2500 2003-07-05 Werner LEMBERG <wl@gnu.org>
2502 * NEWS, tmac/groff_www.man: Updated.
2503 * doc/Makefile.sub: Updated.
2505 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2507 Implement support for multiple HTML output files.
2509 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2510 -j command line option.
2512 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2514 (file): New fields `new_output_file', `require_links',
2516 (file::file): Updated.
2517 (files::set_file_name, files::set_links_required,
2518 files::are_links_required, files::is_new_output_file,
2519 files::file_name, files::next_file_name): New functions.
2520 (header_desc): New fields `no_of_level_one_headings',
2522 (header_desc::header_desc): Updated.
2523 (header_desc::write_headings): Handle multiple files.
2524 (html_printer::write_header): Save file name in which header occurs.
2525 (html_printer::determine_header_level): Possibly split files on
2527 (html_printer::do_links, html_printer::troff_tag): Updated.
2528 (html_printer::insert_split_file, html_printer::do_job_name,
2529 html_printer::emit_link, html_printer::write_navigation,
2530 html_printer::do_file_components): New functions.
2531 (html_printer::~html_printer): Handle multiple files.
2532 (main): Handle command line option `-j'.
2534 * src/devices/grohtml/grohtml.man: Updated.
2536 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2539 * tmac/www.tmac (JOBNAME): New macro.
2540 * tmac/s.tmac (SH-NO-TAG): New macro.
2541 (@SH): Call SH-NO-TAG.
2544 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2546 * tmac/groff_mdoc.man: Improve documentation of punctuation
2549 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2551 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2553 2003-07-03 Werner LEMBERG <wl@gnu.org>
2555 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2557 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2559 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2560 after `/*' and `*/'.
2562 (Fn, Fo): Reduce indentation in synopsis.
2564 * tmac/doc-common (doc-check-depth): New macro.
2565 (doc-end-macro, Sh, Ss): Use it.
2566 (Cd): Fix behaviour in synopsis.
2567 (In): Make it parsed and callable.
2568 If not in the synopsis, represent the C header file enclosed in
2570 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2571 Use minus, not hyphen.
2573 * tmc/groff_mdoc.man: Updated.
2575 2003-07-01 Werner LEMBERG <wl@gnu.org>
2577 Integrated grap2graph, contributed by Eric S. Raymond.
2579 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2581 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2582 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2584 2003-07-01 Colin Watson <cjwatson@debian.org>
2586 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2587 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2589 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2591 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2593 2003-06-31 Werner LEMBERG <wl@gnu.org>
2595 * doc/Makefile.sub (CLEANADD): Remove all files created by
2596 running `make groff.{pdf,dvi}'.
2598 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2601 2003-06-30 Werner LEMBERG <wl@gnu.org>
2603 * Makefile.in (SHELL): Define as @SHELL@.
2604 (mkinstalldirs): Use $(SHELL).
2605 (MDEFINES): Add $(SHELL).
2606 * Makefile.comm (SHELL): Removed.
2608 2003-06-29 Werner LEMBERG <wl@gnu.org>
2610 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2611 The X11 documentation files use them.
2612 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2614 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2616 * tmac/e.tmac (@C): Handle .ad also.
2618 2003-06-12 Werner LEMBERG <wl@gnu.org>
2620 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2622 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2623 Assign `n' even here. It is possible to construct a node
2624 immediately following an escape character:
2632 2003-06-10 Werner LEMBERG <wl@gnu.org>
2634 * README.WIN32: Removed.
2635 * MANIFEST: Updated.
2637 2003-06-07 Werner LEMBERG <wl@gnu.org>
2639 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2641 2003-06-05 Werner LEMBERG <wl@gnu.org>
2643 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2644 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2646 2003-06-03 Werner LEMBERG <wl@gnu.org>
2648 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2649 is done by the calling function.
2651 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2653 * tmac/X.tmac: Fix definition of `em'.
2655 2003-05-22 Werner LEMBERG <wl@gnu.org>
2657 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2660 2003-05-18 Werner LEMBERG <wl@gnu.org>
2662 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2663 to make items work which consist only of a tag.
2665 2003-05-17 Werner LEMBERG <wl@gnu.org>
2667 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2668 aren't stretched in a tag (this can fail with unformatted boxes).
2669 Instead, insert a break and go back one line.
2671 2003-05-16 Werner LEMBERG <wl@gnu.org>
2673 * src/roff/troff/input.cc (return_macro_request): If called with
2674 argument pop macro twice. We need this to trace `return'.
2676 * tmac/trace.tmac: Handle `return'.
2679 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2682 2003-05-15 Larry Kollar <kollar@alltel.net>
2684 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2685 registers `FPS', `FVS', and `FPD'.
2687 2003-05-15 Werner LEMBERG <wl@gnu.org>
2689 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2692 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
2694 * tmac/groff_mdoc.man: Slight improvements.
2696 2003-05-03 Werner LEMBERG <wl@gnu.org>
2698 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2699 `doc-header-space' after header line if register `cR' is set.
2701 2003-05-02 Werner LEMBERG <wl@gnu.org>
2705 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
2707 * tmac/doc-common (Nd): Use \[em].
2709 2003-05-01 Werner LEMBERG <wl@gnu.org>
2711 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2712 doc-footer-space): Initialize to 0.5i.
2713 (doc-setup-page-layout): Don't set doc-header-space and
2716 2003-04-30 Werner LEMBERG <wl@gnu.org>
2718 * REVISION: Set to 1.
2720 * doc/pic.ms: Document possible problems with `figname'.
2722 2003-04-29 Werner LEMBERG <wl@gnu.org>
2724 Version 1.19 released
2725 =====================
2727 * VERSION: Set to 1.19.
2728 * REVISION: Set to 0.
2729 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2731 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2732 Define charset as `US-ASCII' in html output.
2734 * tmac/www.tmac (ULE): Add missing scaling indicator.
2736 * win32-diffs: Removed.
2738 2003-04-28 Werner LEMBERG <wl@gnu.org>
2740 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2742 Document how to insert discardable whitespace with `.ss'.
2744 2003-04-27 Werner LEMBERG <wl@gnu.org>
2746 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2747 work with plain TeX also.
2749 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2751 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
2753 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2756 2003-04-24 Werner LEMBERG <wl@gnu.org>
2758 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2759 vbox with positive height and zero depth if in TeX mode.
2761 * NEWS: Document glyph name changes for grodvi and grolj4.
2763 2003-04-23 Werner LEMBERG <wl@gnu.org>
2765 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2766 * doc/pic.ms: Fixed.
2768 2003-04-21 Werner LEMBERG <wl@gnu.org>
2770 HP-UX 10.20 has `snprintf' but it isn't declared.
2772 * configure.ac: Add declaration test for snprintf.
2773 * configure: Regenerated.
2774 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2775 * src/include/config.hin: Regenerated.
2777 2003-04-19 Werner LEMBERG <wl@gnu.org>
2779 Add keyword `figname' to pic, specifying the name of the picture
2780 box in TeX mode. Based on a patch from William J Poser
2781 <wjposer@unagi.cis.upenn.edu>.
2783 * src/preproc/pic/pic.y: New token `FIGNAME'.
2784 (macro_name): New rule of type <str>.
2785 (placeless_element): Handle `FIGNAME'.
2786 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2787 * src/preproc/pic/main.cpp (graphname): New global variable.
2788 (do_picture): Initialize `graphname'.
2789 * src/preproc/pic/pic.h: Updated.
2790 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2793 (tex_output::text): Beautify output.
2794 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2795 `shaded' and `outlined' unconditionally.
2796 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2799 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2800 greater is necessary.
2802 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
2804 Add option -r to soelim to avoid emission of `.lf' lines.
2805 Add option -t to produces TeX comment lines instead of `.lf' lines.
2807 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2810 (main): Handle `-r' and `-t'.
2811 (set_location): Handle `raw_flag' and `tex_flag'.
2812 * src/preproc/soelim/soelim.man, NEWS: Updated.
2814 2003-04-17 Werner LEMBERG <wl@gnu.org>
2816 * tmac/hyphenex.sh: Replaced with...
2817 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2820 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2821 if --quiet is used for the configure script.
2822 * configure: Regenerated.
2824 2003-04-16 Werner LEMBERG <wl@gnu.org>
2826 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2827 Add `const' to second argument.
2828 (html_printer::add_table_end): Add `const' to argument.
2829 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2830 `const' to arguments.
2831 * src/devices/grohtml/html-text.h: Updated.
2833 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2834 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2837 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2838 cast for integer constant.
2840 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2841 (writeNbytes): Add `const' to first argument.
2842 (writeString): Add `const' to argument.
2843 (char_buffer::can_see): Add `const' to third argument.
2844 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2845 `const' to argument.
2846 * src/preproc/html/pushback.h: Updated.
2848 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2849 (include_path_append): Add `const' to argument.
2852 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2854 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2855 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2857 (unicode_decompose_init::unicode_decompose_init): Updated.
2858 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2860 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2861 * src/roff/troff/input.cc (process_startup_file): Add `const' to
2864 * tmac/hyphenex.sh: Make script more portable by using a here
2867 2003-04-15 Werner LEMBERG <wl@gnu.org>
2869 Renamed all `*.cc' files to `*.cpp'.
2870 Updated all configuration files, makefiles, and documentation.
2872 2003-04-14 Werner LEMBERG <wl@gnu.org>
2874 * tmac/hyphenex.sh: Slight improvements.
2876 2003-04-13 Werner LEMBERG <wl@gnu.org>
2878 * font/devascii/R.proto, font/devcp1037/R.proto,
2879 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2880 character slots with unnamed glyphs.
2882 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2883 (an-first): New global variable.
2884 (an-header): Emit vertical space between multiple man pages.
2886 2003-04-11 Werner LEMBERG <wl@gnu.org>
2888 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2891 2003-04-10 Werner LEMBERG <wl@gnu.org>
2893 * PROBLEMS: Revised.
2895 2003-04-10 Bernd Warken <bwarken@mayn.de>
2897 * doc/webpage.ms: Improved.
2899 2003-04-09 Werner LEMBERG <wl@gnu.org>
2901 Add register \n[.height] which returns the value of \H.
2902 Add register \n[.slant] which returns the value of \S.
2904 * src/roff/troff/env.cc (init_env_requests): Implement.
2905 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2908 2003-04-08 Werner LEMBERG <wl@gnu.org>
2910 * tmac/html.tmac: Move some of the data into html-end.tmac.
2911 Remove most of the character translations for eqn since html fonts
2912 now cover those characters.
2914 * tmac/html-end.tmac: New file.
2915 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2916 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2917 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2919 2003-04-07 Werner LEMBERG <wl@gnu.org>
2921 * man/groff_out.man: Document negative values of `N' if -Thtml is
2924 2003-04-06 Werner LEMBERG <wl@gnu.org>
2926 * Makefile.comm (depend.temp): Check location of YTABC.
2928 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2930 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2932 (groff_bin_path): Rename to GROFF_BIN_PATH.
2933 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2934 * doc/Makefile.in (TROFFBIN): New variable for troff
2936 (GROFFBIN): New variable for groff binary path.
2937 (groff_bin_path): Rename to GROFF_BIN_PATH.
2938 (TROFF): Use TROFFBIN.
2939 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2940 * doc/Makefile.sub (GROFFBIN): New variable for groff
2942 (groff_bin_path): Rename to GROFF_BIN_PATH.
2943 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2945 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2946 with INSTALL_SCRIPT.
2947 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2948 * Makefile.dev (all): Depend on DEVSCRIPTS.
2949 (install_dev): Likewise.
2950 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2952 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2953 (DEVGENSCRIPTS): New variable to hold generated scripts.
2955 2003-04-05 Werner LEMBERG <wl@gnu.org>
2957 * src/libs/libdriver/input.cc (IntArray::operator[],
2958 IntArray::get_data): Remove meaningless `const' in return value.
2960 * README.CVS: New file.
2962 2003-04-04 Werner LEMBERG <wl@gnu.org>
2964 Check for stdint.h in C++, not in C.
2966 * aclocal.m4 (GROFF_STDINT_H): New function,
2967 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2969 * configure, src/include/config.hin: Regenerated.
2970 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2973 Fix handling of in grohtml. To do this, troff emits `N'
2974 with a negative value, representing the width of the unbreakable
2975 space (only for -Thtml). grohtml then converts this back to
2976 and uses the value of N as its width.
2978 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2979 unbreakable_space_node::tprint): Emit `N-<width>'.
2980 * src/include/printer.h (printer::set_numbered_char): Make it
2982 Make members `font_table' and `nfonts' protected instead of private.
2983 * src/devices/grohtml/post-html.cc
2984 (html_printer::set_numbered_char): New member function.
2987 * src/libs/libgroff/maxfilename.cc:
2988 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2990 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2993 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
2995 * man/roff.man: Small fixes.
2997 2003-04-03 Werner LEMBERG <wl@gnu.org>
2999 Make groff independent from locale's numeric settings.
3001 * configure.ac: Check for `setlocale'.
3002 * configure, src/include/config.hin: Regenerated.
3004 * src/include/lib.h: Handle HAVE_SETLOCALE.
3006 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3007 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3008 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3011 * doc/groff.texinfo: Change dir category to `Typesetting'.
3012 (Man font macros): Mention that there is no space between arguments
3015 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3016 (*printer::change_color, *printer::change_fill_color): Add missing
3019 2003-04-02 Werner LEMBERG <wl@gnu.org>
3021 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3022 html_table::is_gap): Compute table widths after converting border
3023 positions to avoid rounding errors.
3025 2003-04-01 Werner LEMBERG <wl@gnu.org>
3027 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3028 `space_emitted' properly.
3030 2003-03-31 Werner LEMBERG <wl@gnu.org>
3032 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3033 (html_table::set_linelength): Don't add 1.
3034 (html_table::add_indent): Don't subtract 1.
3036 * tmac/html.tmac: Set default page offset to zero.
3038 2003-03-30 Werner LEMBERG <wl@gnu.org>
3040 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3042 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3043 unbreakable_space_node::tprint): New functions.
3044 (troff_output_file): Make space_char_hmotion_mode::tprint and
3045 unbreakable_space_node::tprint to friends.
3046 * src/roff/troff/node.h: Updated.
3048 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3049 in the HTML standard).
3051 2003-03-29 Werner LEMBERG <wl@gnu.org>
3053 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3054 Otherwise, the following code
3063 produces `x a' instead of `xa'. This is a temporary fix, disabling
3064 font changes in diversions for -Thtml.
3066 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3068 (an-do-tag-html): Merge with ...
3069 (an-do-tag): This macro.
3070 Change code slightly to circumvent grohtml bug.
3071 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3073 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3074 html_table::is_gap): Round `width' properly.
3076 * tmac/html.tmac: Provide some default layout parameters for
3079 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3082 2003-03-28 Werner LEMBERG <wl@gnu.org>
3084 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3086 2003-03-27 Werner LEMBERG <wl@gnu.org>
3088 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3091 2003-03-20 Werner LEMBERG <wl@gnu.org>
3093 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3095 * doc/groff.texinfo: Updated.
3097 2003-03-19 Werner LEMBERG <wl@gnu.org>
3099 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3100 TOKEN_END_TRAP>: Reset `have_input'.
3102 2003-03-18 Werner LEMBERG <wl@gnu.org>
3104 * src/roff/groff/groff.man: Mention groff_trace man page.
3106 2003-03-16 Werner LEMBERG <wl@gnu.org>
3108 * Makefile.in (LIBEXT): New variable to indicate the file extension
3109 of library files. Computed heuristically from $(OBJEXT).
3110 (MDEFINES): Add $(LIBEXT).
3111 * Makefile.lib, Makefile.comm: Use it.
3113 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3114 overlong lines into smaller chunks.
3115 (get_binary): New function.
3117 * src/utils/pfbtops/pfbtops.man: Updated.
3119 2003-03-15 Colin Watson <cjwatson@debian.org>
3121 * src/roff/groff/groff.man: Minor syntax fix.
3123 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3125 * src/devices/grops/ps.cc (ps_printer::media_set,
3126 ps_printer::~ps_printer): Handle zero paper width and length.
3128 2003-03-13 Werner LEMBERG <wl@gnu.org>
3130 Add options -p and -l to grodvi.
3132 * src/devices/grodvi/dvi.cc: Include paper.h.
3133 (landscape_flag, user_paper_length, user_paper_width): New global
3135 (dvi_printer::begin_page): Emit `papersize' special.
3136 Set color after initialization of `cur_h' and `cur_v'.
3137 (main): Add options `-l' and `-p'.
3138 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3139 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3141 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3143 2003-03-12 Werner LEMBERG <wl@gnu.org>
3145 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3146 * man/groff_tmac.man: This man page.
3147 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3150 * tmac/X.tmac: Don't load pspic.tmac.
3152 2003-03-11 Werner LEMBERG <wl@gnu.org>
3154 Make variable `pr' local to libdriver/input.cc. Based on a patch
3155 by Bernd Warken <bwarken@mayn.de>.
3157 * src/include/driver.h (pr): Removed.
3159 * src/libs/libdriver/input.cc (pr): New global variable.
3160 (do_file): Deallocate `pr'.
3161 * src/libs/libdriver/printer.cc (pr): Removed.
3163 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3164 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3165 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3166 (main): Don't delete `pr'.
3168 2003-03-10 Werner LEMBERG <wl@gnu.org>
3170 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3171 * tmac/papersize.tmac: New file.
3172 * tmac/troffrc: Include `papersize.tmac'.
3173 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3174 * tmac/an-old.tmac: Set LT to LL by default.
3176 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3177 doc/groff.texinfo: Updated.
3179 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3180 bug which caused all odd iso papers to have wrong dimensions.
3182 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3183 (main) <'p'>: Set `user_paper_width' also.
3184 (ps_printer::media_width, ps_printer::media_height): Use values
3185 given with option `-p'.
3187 2003-03-09 Werner LEMBERG <wl@gnu.org>
3189 * src/include/nonposix.h: Provide default for SET_BINARY.
3191 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3192 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3195 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3196 (main): Treat \r\n as \n.
3198 2003-03-08 Werner LEMBERG <wl@gnu.org>
3200 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3201 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3203 2003-03-07 Werner LEMBERG <wl@gnu.org>
3205 Added support to access more than 256 glyphs in Type 1 fonts.
3207 * src/devices/grops/ps.cc (subencoding): New structure.
3208 (style): Add `sub' field.
3210 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3211 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3214 (ps_printer::set_char): Use `set_subencoding'.
3215 (make_subencoding_name): New function.
3216 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3217 (ps_printer::~ps_printer): Emit subencoding definitions.
3219 * src/devices/grops/psrm.cc (valid_input_table): New array to
3220 properly support EBCDIC.
3221 (white_space): Add `\f'.
3222 (ps_get_line): Change first argument to be of type `string &'.
3223 Updated all callers.
3224 This allows to get lines of arbitrary length.
3225 Use `valid_input_table'.
3226 Remove warning about non-conforming PS line length. This seems
3227 not to be of great importance -- for example, dvips don't emit
3229 (PS_LINE_MAX): Removed.
3230 (matches_comment): Change first argument to be of type `string &'.
3232 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3234 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3235 %AGL_to_unicode, %default_ligatures): New hash tables.
3236 Read all map entries.
3237 Add unencoded characters.
3238 Check for default ligatures if there are no `L' entries.
3239 Print all kern entries.
3240 Print all characters in charset.
3241 * src/utils/afmtodit/afmtodit.man: Updated.
3243 * font/devps/*: Regerated all fonts.
3245 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3246 of characters, just use `.trin'. Otherwise the mapping depends
3247 on the font encoding.
3248 * tmac/ps.tmac: Add `fi' and `fl'.
3249 Improve `Fi' and `Fl'.
3250 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3251 * tmac/Xps.tmac: Fix `em'.
3255 2003-03-04 Werner LEMBERG <wl@gnu.org>
3257 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3260 2003-03-03 Werner LEMBERG <wl@gnu.org>
3262 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3264 * font/devps/generate/textmap: Remove entry `similarequal'.
3265 * font/devps/symbolmap: Updated.
3267 2003-03-02 Werner LEMBERG <wl@gnu.org>
3269 * src/libs/libgroff/font.cc (font::load): Fix error message for
3272 * src/devices/grops/grops.man: Improve documentation of the -b
3275 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3276 `ascii' and `cp1047'.
3278 2003-03-01 Werner LEMBERG <wl@gnu.org>
3280 Document composite glyphs and the `composite' request.
3282 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3284 2003-02-28 Werner LEMBERG <wl@gnu.org>
3286 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3287 * font/devdvi/*EC: Updated.
3289 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3290 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3291 * tmac/troffrc: Load `composite.tmac'.
3292 * tmac/Makefile.sub (NORMALFILES): Updated.
3294 * doc/groff.texinfo (Input Encodings): New section.
3297 2003-02-27 Werner LEMBERG <wl@gnu.org>
3299 * doc/texinfo.tex: New version 2003-02-11.06.
3301 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3302 * tmac/groff_mdoc.man: Fix description of `Dt'.
3304 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3306 * font/devps/prologue.ps: Fix for included Postscript that does
3307 a setpagedevice -- which is now safely ignored.
3311 * src/devices/grops/ps.cc: Now sets the page size in the generated
3312 document. This is done in two ways: Via a %%-comment for gv and
3313 the like, and via a PageSize and setpagedevice for programs that
3314 understands Postscript proper, like ps2pdf.
3316 * src/devices/grops/ps.h: New broken-flag to avoid page size
3317 definition, if required.
3319 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3321 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3322 Not really necessary due to the fix in prologue.ps, but cleaner:
3323 Such information does not belong in an .eps file.
3325 * doc/Makefile.sub: See doc/Makefile.in.
3327 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3329 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3330 instead of P1 since the latter is broken in some versions of netpbm.
3331 * configure: Updated.
3333 2003-02-26 Larry Kollar <kollar@alltel.net>
3335 Make man pages more customizable.
3337 * tmac/an-old.tmac (FT): New register holding footer distance from
3339 (HF): New string holding the default heading font.
3340 (TH): Handle registers `IN' and `SN' set on the command line.
3342 (PT, BT): New strings to customize header and footer lines.
3343 (an-header, an-footer): Use them.
3345 * tmac/groff_man.man: Document changes.
3347 * doc/groff.texinfo: Document man changes.
3348 Document Ultrix extensions of man.
3350 2003-02-26 Werner LEMBERG <wl@gnu.org>
3352 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3353 `have_input' after changing back to old environment.
3355 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3356 function up to be defined before first call. This is necessary to
3357 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3359 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3360 the default font directory also. Based on a patch from James
3361 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3362 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3363 * src/utils/afmtodit/afmtodit.man: Document it.
3367 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3369 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3371 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3372 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3373 * configure.ac: Use it.
3374 * configure: Regenerated.
3375 * Makefile.in: Updated.
3377 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3378 (CLEANADD): Add www.tmac-sed.
3379 (pnmtops_nosetpage): Define default.
3380 (install_data): Handle www.tmac-sed and substitute
3381 @PNMTOPS_NOSETPAGE@.
3382 (stamp-sed): Add www.tmac.
3383 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3384 It now breaks URLs at suitable places.
3385 (www:substring_ok): New register set by...
3386 (www:@test_substring): New macro.
3387 (www:error): New alias to www-error.
3388 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3390 (URL): Use www:url_breaks.
3391 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3392 (CDS, CDE): New macros.
3394 2003-02-25 Werner LEMBERG <wl@gnu.org>
3396 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3399 2003-02-24 Werner LEMBERG <wl@gnu.org>
3401 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3402 can be negative also.
3404 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3406 (read_char_table): Avoid negative ascenders.
3407 (output_charset): Add cast.
3408 * font/devlj4/*: Regenerated.
3410 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3413 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3414 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3416 * font/devdvi/*: Regenerated.
3418 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3419 normal width, while the previously used characters (U+2329 and
3420 U+232A) are classified as wide due to canonical equivalence with the
3421 CJK punctuation characters U+3008 and U+3009.
3423 * font/devutf8/R.proto: Updated.
3424 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3426 * man/groff_char.man: Simplify handling of table traps by
3427 introducing `start block' and `end block' macros.
3428 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3429 (DL): Make it work with Unix troff also.
3430 Fix code values of `la' and `ra'.
3432 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3434 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3436 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3437 New destructor, fixing a major memory leak.
3439 2003-02-22 Werner LEMBERG <wl@gnu.org>
3441 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3442 to be in conformance with Unicode 3.0 and newer.
3444 * font/devlj4/generate/text.map: Add `Eu'.
3445 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3446 * font/devlj4/S: Regenerated.
3448 * man/groff_char.man: Completely rewritten.
3450 * doc/groff.texinfo: Fix description of request and macro arguments.
3452 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3456 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3457 Deallocate `columns' list.
3458 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3460 (text_glob::text_glob_html, text_glob::text_glob_special,
3461 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3462 text_glob::text_glob_tag): Avoid memory leaks.
3463 (text_glob::remember_table): Free memory before reassigning.
3465 2003-02-19 Werner LEMBERG <wl@gnu.org>
3467 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3468 alias `hbar'), the Planck constant over two pi.
3470 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3471 `+e' for position 34.
3472 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3473 `u2662' and `u2661'.
3474 * font/devdvi/{MI,S}: Regenerated.
3475 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3476 * font/devlbp/*: Add `hbar' alias.
3477 * font/devlj4/generate/special.map: Ditto.
3478 * font/devlj4/S: Regenerated.
3479 * font/devps/generate/symbolchars: Add `+e'.
3480 * font/devps/generate/textmap: Fix PS name for `-h'.
3482 * font/devps/symbolmap: Regenerated.
3484 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3486 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3488 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3491 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3493 * tmac/tty-char.tmac: Add `+e'.
3495 2003-02-17 Werner LEMBERG <wl@gnu.org>
3497 Another round trying to really fix problems with `have_input'.
3499 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3500 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3502 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3503 handling if both foreground and background colors are default.
3505 * doc/groff.texinfo (Debugging): Document .lf differences to
3508 2003-02-16 Werner LEMBERG <wl@gnu.org>
3510 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3511 null-bytes in created string.
3513 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3514 alias_macro, lookup_request): Improve warning messages.
3516 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3518 Free `last_image_filename'.
3520 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3522 (imageList::createPage, imageList::createImage): Use `free', not
3524 (imageItem::~imageItem): Free `imageName'.
3525 (addRegDef): Use `strsave', not `strdup'.
3526 (get_resolution): Free `pathp'.
3528 2003-02-15 Werner LEMBERG <wl@gnu.org>
3530 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3533 2003-02-14 Werner LEMBERG <wl@gnu.org>
3535 Add memory management for colors to deallocate unnamed colors
3538 * src/include/color.h (color): New members `free_list' and `next'.
3539 New member functions `new' and `delete'.
3541 * src/libs/libgroff/color.cc: Implement it.
3543 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3544 for array size of new operator.
3546 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3547 redundant comparison.
3549 * src/roff/troff/input.cc (word_space_node::reread,
3550 hmotion_node::reread): Avoid warning about unused parameter.
3551 (reset_output_registers): Remove redundant parameter.
3552 (define_color): Undo change 2003-02-12.
3554 * src/roff/troff/reg.h: Updated.
3556 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3557 output_file::put_filename, real_output_file::really_put_filename,
3558 ascii_output_file::really_print_line,
3559 break_char_node::get_hyphen_list): Avoid warning about unused
3561 (suppress_node::tprint): Updated.
3563 * configure.ac: Check declaration for rand() and srand().
3564 * configure: Regenerated.
3566 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3568 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3571 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3572 to avoid compiler warnings.
3574 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3577 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3579 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3581 Updated all callers.
3583 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3585 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3586 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3588 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3589 Parameter is unused.
3590 (html_printer::add_table_end): Define parameter conditionally.
3591 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3594 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3595 (lbp_printer::set_char): Last parameter is unused.
3597 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3599 2003-02-13 Werner LEMBERG <wl@gnu.org>
3601 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3602 Make \D'f ...' move horizontally again for backwards compatibility.
3603 Replace it with \D'Fg ...' where appropriate to avoid dependency
3604 on horizontal resolution.
3606 * src/roff/troff/input.cc (do_get_long_name): New function.
3607 (get_long_name): Call it.
3609 (read_draw_node): Handle `\D'Fx ...' by calling ...
3610 (read_color_draw_node): New function.
3612 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3614 Pass it to `do_get_long_name' which is used instead of
3617 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3618 unnecessary value guard.
3619 (parse_D_command) <'f'>: Add horizontal shift.
3621 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3622 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3623 (FILL_MAX): Removed.
3625 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3628 2003-02-12 Werner LEMBERG <wl@gnu.org>
3630 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3631 do_zero_width): Push `\n' if closing delimiter is missing.
3633 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3634 <'F'>: Make \F non-transparent at the beginning of line.
3635 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3636 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3639 (define_color): Free color in case of reassignment.
3641 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3642 @DefescListEnd): Use @Var, not @var.
3645 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3647 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3648 `shaded' and `outlined' arrays.
3649 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3650 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3652 (closed_object::set_fill_color): Ditto.
3653 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3655 (troff_output::reset_color): Use a_delete instead of free.
3656 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3658 2003-02-11 Werner LEMBERG <wl@gnu.org>
3660 * doc/groff.texinfo: Improve documentation of `ad'.
3661 Document that \D'f...' is dependent on the horizontal resolution.
3662 * man/groff_diff.man: Improve documentation of \D'f...'.
3664 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3665 compensating \h'...' for \D'f ...' since the latter no longer moves
3667 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3669 2003-02-10 Werner LEMBERG <wl@gnu.org>
3671 Improve error messages for `x F' (and `F') commands.
3673 * src/include/error.h: Add declaration for
3674 `current_source_filename'.
3675 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3676 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3677 parameter for source file string.
3678 Updated all callers.
3680 * src/libs/libdriver/input.cc: Add `current_source_filename'.
3681 (remember_source_filename): New function.
3682 (parse_x_command <'F'>, do_file <'F'>): Use it.
3684 2003-02-09 Werner LEMBERG <wl@gnu.org>
3686 Make grotty not emit warnings about unknown colors more than
3689 * src/devices/grotty/tty.cc: Include `ptable.h'.
3690 (TTY_MAX_COLORS): Removed.
3691 (DEFAULT_COLOR_IDX): Defined to -1.
3692 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3693 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3694 Change `tty_colors' to be a ptable.
3695 First arg of `put_color' is now `char'.
3696 New functions `make_rgb_string' and `tty_color'.
3697 (tty_printer::tty_printer): Use `tty_color'.
3698 (tty_printer::color_to_idx): Return value is now `char'.
3701 * src/include/color.h (color): Add `print_color' member function.
3702 * src/libs/libgroff/color.cc (color::print_color): Implement it.
3704 2003-02-08 Werner LEMBERG <wl@gnu.org>
3708 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3711 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3712 assume that value has been allocated with `new[]', thus use
3713 `a_delete' for deallocation.
3715 * src/libs/libdriver/input.cc (get_integer_arg,
3716 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3719 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3720 * src/libs/libgroff/nametoindex.cc
3721 (character_indexer::named_char_index): Use `new <type>[1]'.
3723 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3725 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3726 (split_text): Use `a_delete'.
3728 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3731 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3732 harmless memory leak.
3733 (hyphen_trie::read_patterns_file): Initialize `buf'.
3734 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3735 Initialize `current_fill_color'and `current_glyph_color'.
3736 * src/roff/troff/glyphuni.cc
3737 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3738 * src/roff/troff/uniuni.cc
3739 (unicode_decompose_init::unicode_decompose_init): Ditto.
3740 * src/roff/troff/uniglyph.cc
3741 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3743 2003-01-26 Werner LEMBERG <wl@gnu.org>
3745 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3746 `access' before calling `unlink'.
3747 (do_file): Handle __EMX__.
3749 * src/include/nonposix.h: Handle __EMX__.
3751 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3752 (fontpath,tmacpath): Use it.
3754 Sorted alphabetically.
3756 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3758 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3761 2003-01-27 Werner LEMBERG <wl@gnu.org>
3763 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3764 New files, copied from gnulib.
3765 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3766 * configure.ac: Updated.
3767 * configure: Regenerated.
3769 * src/include/config.hin: Regenerated.
3770 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3771 Don't define `strcasecmp' as `strcmp'.
3772 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3773 Dont define `strncasecmp' as `strncmp'.
3775 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3778 2003-01-26 Werner LEMBERG <wl@gnu.org>
3780 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3783 2003-01-25 Werner LEMBERG <wl@gnu.org>
3785 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3787 2003-01-24 Werner LEMBERG <wl@gnu.org>
3789 Add US-english hyphenation exceptions (converted from Barbara
3790 Beeton's hyphenation exception log reports which appear irregularly
3793 * tmac/hyphen.us: Updated to latest version.
3794 * tmac/README: Updated.
3795 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3796 * tmac/troffrc: Load `hyphenex.us'.
3797 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3798 * doc/groff.texinfo: Updated.
3800 2003-01-23 Werner LEMBERG <wl@gnu.org>
3802 Improve hyphenation slightly. This is a first step in redesigning
3803 the hyphenation algorithm to make it more flexible (e.g. allowing
3804 kerns and ligatures between the hyphenation character and the
3805 following character -- while not used normally in English, other
3806 languages like German would benefit).
3808 * src/roff/troff/env.cc (environment::hyphenate_line): Use
3809 assertion instead of if-clause.
3810 Let `get_hyphen_list' return the number of involved characters in
3811 the hyphenation pattern instead of computing it directly (which
3812 often yields too small values).
3813 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3814 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3817 2003-01-22 Werner LEMBERG <wl@gnu.org>
3819 Fixing a bug which caused groff to hang if the hyphenation exception
3820 dictionary tried to grow.
3822 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3823 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3824 pointer to dictionary.
3826 2003-01-20 Werner LEMBERG <wl@gnu.org>
3828 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3829 negative left italic correction.
3830 * src/utils/afmtodit/afmtodit.man: Document it.
3832 * font/devps/generate/Makefile (RFLAG): Add `-m'.
3833 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3834 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3838 2003-01-16 Werner LEMBERG <wl@gnu.org>
3842 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
3844 * src/preproc/refer/refer.man: Mention REFER environment variable.
3846 2003-01-05 Werner LEMBERG <wl@gnu.org>
3848 Similar to \[is], the square root glyph (\[sr]) and the square root
3849 extension glyph (\[radicalex]) are now text symbols. The new
3850 mathematical versions are called \[sqrt] and \[sqrtex],
3853 * font/devX*/S: Regenerated.
3854 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3855 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3856 * font/devdvi/EX, font/devdvi/S: Regenerated.
3857 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3858 * font/devlj4/generate/special.map: Add `sqrt'.
3859 * font/devlj4/S: Regenerated.
3860 * font/devps/generate/textmap: Add `sqrt'.
3861 * font/devps/S, font/devps/symbolmap: Regenerated.
3863 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3864 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3865 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3866 overlap horizontally.
3868 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3869 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3872 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3873 and `sqrtex' are overlapping glyphs.
3875 2003-01-04 Werner LEMBERG <wl@gnu.org>
3877 * font/devdvi/generate/texsy.map: Add `is'.
3878 * font/devps/symbolmap: Regenerated.
3879 * font/devdvi/*TC, MI, S: Regenerated.
3881 * tmac/dvi.tmac: Remove `is'.
3883 2003-01-03 Werner LEMBERG <wl@gnu.org>
3885 `is' is now a text symbol (only relevant for dvi). The math variant
3886 can be accessed with `integral'.
3888 * font/devX*/S: Regenerated.
3889 * font/devdvi/generate/texex.map: Remove `is'.
3890 * font/devdvi/EX: Updated.
3891 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3892 * font/devlj4/generate/special.map: Ditto.
3893 * font/devlj4/S: Regenerated.
3894 * font/devps/generate/textmap: Add `integral'.
3895 * font/devps/S: Regenerated.
3897 * tmac/dvi.tmac: Define `is'.
3899 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3901 * src/preproc/tbl/main.cc (process_format): Fix error message.
3903 2003-01-02 Werner LEMBERG <wl@gnu.org>
3905 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3906 * font/devps/textmap: Fix entries for `ne' and `nc'.
3907 * font/devps/symbolmap: Regenerated.
3909 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3910 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3911 `38', `58', `78', `-+', `|=', `nc', `ne'.
3913 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3914 Use `schar' for `aq'.
3915 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3916 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3917 * tmac/tty.tmac: Add `ne'.
3919 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3920 for fallback glyphs.
3922 2002-12-29 Werner LEMBERG <wl@gnu.org>
3926 * font/devX*/*: Regenerated.
3927 * font/devdvi/generate/ec.map: Remove `eq'.
3928 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3929 Assign `|=' to position 39.
3930 * font/devdvi/*EC, S: Regenerated.
3931 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3932 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3933 Assign `|=' to position 549.
3934 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3936 Add `uni2243' for `|='.
3938 * tmac/ec.tmac: Add `eq'.
3939 * tmac/dvi.tmac: Add `=~'.
3940 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3943 2002-12-21 Werner LEMBERG <wl@gnu.org>
3945 * font/devdvi/generate/tc.map: Remove `**'.
3946 * font/devdvi/*TC: Regenerated.
3947 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3949 * font/devutf8/NOTES: Updated.
3951 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3952 Don't give default parameter to `set_macro'.
3953 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3954 instead of `set_macro'.
3955 (charinfo::setx_macro): Implement it.
3956 (charinfo::set_macro): Don't change `mode'.
3958 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3959 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3960 * tmac/dvi.tmac: Define `!=' with `.schar'.
3962 2002-12-20 Werner LEMBERG <wl@gnu.org>
3964 * font/devX*/S: Regenerated.
3965 * font/devdvi/generate/ec.map: Remove `pl'.
3966 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3967 * font/devdvi/*{TC,EC}: Regenerated.
3968 * font/devhtml/R.proto: Add `-+'.
3969 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3970 * font/devlbp/*: Remove `or'.
3971 * font/devlj4/generate/special.map: Remove `or'.
3972 * font/devlj4/S: Regenerated.
3973 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3974 `seveneighths', `threeeighths'.
3976 Replace `minusplus' with `uni2213'.
3977 * font/devps/symbolmap: Regenerated.
3978 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3981 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3983 * src/roff/troff/node.cc (troff_output_file::put_char_width):
3984 Call glyph_color and fill_color even if tcommand_flag isn't set.
3985 (make_node, node::add_char): Check not ci->is_fallback but
3988 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3989 * tmac/ec.tmac: Add .rchar entry for `f/'.
3990 Don't remove `12', `14', `34'.
3991 Define `pl' to be always roman.
3992 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3993 Define `18', `38', `58', `78'.
3994 * tmac/tty.tmac: Add `-+'.
3995 * tmac/dvi.tmac: Define `f/'.
3996 (dvi-frac): Use `f/'.
3997 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3998 Define `18', `38', `58', `78'.
4000 2002-12-15 Colin Watson <cjwatson@debian.org>
4002 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4004 2002-12-10 Werner LEMBERG <wl@gnu.org>
4006 Add glyph `tno', a textual variant of `no'.
4008 * font/devX*/*: Regenerated.
4009 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4010 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4011 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4012 * font/devdvi/*: Regenerated.
4013 * font/devlbp/*: Add `tno'.
4014 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4015 * font/devlj4/*: Regenerated.
4016 * font/devps/generate/textmap: Replace `no' with `tno'.
4017 * font/devps/generate/symbolchars: Add `no'.
4018 * font/devps/*: Regenerated.
4020 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4022 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4023 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4027 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4028 Add definition for `sd'.
4029 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4031 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4033 2002-12-08 Werner LEMBERG <wl@gnu.org>
4035 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4036 mode to avoid rounding errors.
4037 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4039 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4040 src/roff/troff/troff.man: Improve documentation of -T.
4042 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4044 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4045 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4047 2002-12-06 Werner LEMBERG <wl@gnu.org>
4049 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4050 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4051 Scaling Euro.sansserif glyphs down to have the same height as
4053 Removed unnecessary points; added some extrema.
4055 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4058 2002-12-04 Werner LEMBERG <wl@gnu.org>
4060 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4061 and `Euro.symbol.bold.slanted'.
4062 Improve some glyph offsets and widths.
4063 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4065 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4067 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4070 * tmac/europs.tmac: Updated to new glyph indices.
4071 Use Euro.symbol for font familiy `A'.
4073 * doc/groff.texinfo: Minor improvements.
4075 2002-12-02 Werner LEMBERG <wl@gnu.org>
4077 * font/devdvi/generate.tc.map: s/%O/%0/.
4078 * font/devdvi/*TC: Regenerated.
4080 * src/roff/troff/div.cc (init_div_requests): Sorted.
4082 * tmac/dvi.tmac: Remove `Ye'.
4083 * tmac/ec.tmac: Remove `Ye'.
4084 Add .rchar entry for `de'.
4086 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4087 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4090 2002-11-30 Werner LEMBERG <wl@gnu.org>
4092 Add PS font for various Euro glyphs.
4094 * font/devps/generate/freeeuro.sfd: New master font file for
4096 * font/devps/generate/sfdtopfa.pe: New conversion script for
4098 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4099 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4100 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4102 * font/devps/EURO: Generated from `freeeuro.afm'.
4103 * font/devps/download: Add `freeuro.pfa'.
4104 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4107 * tmac/europs.tmac: New file.
4108 * tmac/ps.tmac: Include `europs.tmac'.
4109 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4111 2002-11-29 Werner LEMBERG <wl@gnu.org>
4113 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4114 * font/devdvi/S: Regenerated.
4115 * font/devhtml/R.proto: Fix `CR' and `ci'.
4117 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4119 * font/devps/symbolmap: Regenerated.
4120 * font/devutf8/R.proto: Fix `CR' and `ci'.
4122 * font/devutf8/NOTES: Updated.
4124 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4127 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4129 * tmac/dvi.tmac: Add `lh' and `rh'.
4130 * tmac/Xps.tmac: Fix `lh' and `rh'.
4131 * tmac/X.tmac: Add `OK'.
4132 * tmac/lj4.tmac: Ditto.
4134 2002-11-24 Werner LEMBERG <wl@gnu.org>
4136 * font/devX*/S: Regenerated.
4137 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4138 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4139 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4140 * font/devdvi/S: Regenerated.
4141 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4142 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4143 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4144 `bracketleftbt', `bracketrighttp', `bracketrightex',
4145 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4146 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4147 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4149 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4150 * font/devutf8/NOTES: Updated.
4151 * font/devlj4/generate/special.map: Add glyph `braceex'.
4152 * font/devlj4/S: Regenerated.
4154 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4156 2002-11-14 Werner LEMBERG <wl@gnu.org>
4158 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4161 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4163 * doc/texinfo.tex: New version from texinfo 4.3.
4164 * doc/groff.texinfo: Updated for texinfo 4.3.
4165 Use @tie{} where appropriate.
4166 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4167 * font/devdvi/generate/tc.map: Remove `rn'.
4168 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4169 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4171 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4172 font/devX75-12/*: Regenerated.
4174 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4175 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4176 Improve definition of `an'.
4177 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4179 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4180 * tmac/X.tmac: Add definition for `or'.
4181 * tmac/Xps.tmac: Undo change 2002-11-05.
4182 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4184 2002-11-11 Werner LEMBERG <wl@gnu.org>
4186 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4189 2002-11-10 Werner LEMBERG <wl@gnu.org>
4191 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4192 defines a glyph which is searched after the check for fonts declared
4193 with `.special' (and before the check for all mounted special
4194 fonts). `fschar' defines a glyph for a particular font which is
4195 searched after the check for fonts declared with `.fspecial' (and
4196 before the check for fonts declared with `.special'). `rfschar'
4197 removes glyphs defined with `fschar'.
4199 * src/roff/troff/token.h (char_mode): New enum.
4200 Declare do_define_character.
4201 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4203 (charinfo::is_fallback): Updated.
4204 (charinfo::is_special): New method.
4205 * src/roff/troff/input.cc (do_define_character): Add and use
4206 optional second parameter used as a prefix for font-specific glyph
4208 (define_character, define_fallback_character): Updated.
4209 (define_special_character): New function.
4210 (init_input_requests): Add `schar'.
4211 (charinfo::charinfo, charinfo::set_macro): Updated.
4212 * src/roff/troff/node.cc: Include `stringclass.h'.
4213 (make_glyph_node): Handle special glyphs defined with `.schar' and
4215 (define_font_special_character, remove_font_special_character): New
4217 (init_node_requests): Sorted.
4218 Add `fschar' and `rfschar'.
4219 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4220 Document new requests.
4222 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4223 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4225 2002-11-08 Werner LEMBERG <wl@gnu.org>
4227 Added new font `SC' (cmtex10) to devdvi.
4229 * devdvi/generate/Makefile (FONTS): Add `SC'.
4231 * devdvi/generate/textex.map: New map file for cmtex.
4233 * devdvi/Makefile.sub (DEVFILES): Updated.
4234 * tmac/dvi.tmac: Add fspecial entries for SC.
4235 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4236 found before `S' since the font position of `SC' is lower due to the
4237 gaps in DESC's `font' line.
4238 * tmac/ec.tmac: Add a `special' call.
4241 * font/devhtml/R.proto: Remove double entry for `ti'.
4242 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4243 * tmac/tty-char.tmac: Remove entry for `bq'.
4244 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4245 * tmac/ec.tmac: Don't remove `aq' glyph.
4246 * tmac/X.tmac: Fix entry for `em'.
4247 Add entries for `fo' and `fc'.
4248 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4250 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4251 documentation of `special' and `fspecial' requests.
4253 2002-11-05 Werner LEMBERG <wl@gnu.org>
4255 * font/devascii/R.proto, font/devcp1047/R.proto,
4256 font/devlatin1/R.proto: Remove entry for `.i'.
4257 * font/devdvi/generate/textt.map: Add entry for `ad'.
4258 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4259 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4260 We need this for getting kerning values to compose `/l' and `/L'.
4261 * font/devdvi: Regenerated font definition files for CM fonts.
4262 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4263 * font/devutf8/R.proto: Ditto.
4264 Remove double entry for `ti'.
4266 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4267 for (groff) ligatures, `la', and `ra'.
4268 Add "'C", "'c", `IJ', and `ij'.
4269 Remove double entry for `ti'.
4270 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4272 Add "'C", "'c", `IJ', and `ij'.
4273 Fix entries for (groff) ligatures, `la', and `ra'.
4275 * tmac/ps.tmac (ps-achar): New macro.
4276 Define "'c" and "'C".
4277 * tmac/tty.tmac: Add entry for `.i'.
4278 * tmac/X.tmac (X-achar): New macro.
4279 Define "'c", "'C", and `:Y'.
4280 Add entries for `IJ' and `ij'.
4281 * tmac/Xps.tmac (Xps-achar): New macro.
4282 Define "'c" and "'C".
4283 Add entries for `IJ' and `ij'.
4284 * tmac/lbp.tmac (lbp-achar): New macro.
4285 Add fallback characters for all groff ligatures and many other
4287 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4288 Add entries for `/l' and `/L'.
4289 Define "'c" and "'C".
4290 Add entries for `IJ' and `ij'.
4292 2002-11-02 Larry Kollar <kollar@alltel.net>
4294 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4296 2002-11-02 Werner LEMBERG <wl@gnu.org>
4298 Adding support for composite glyphs: \[xxx yyy ...] and the
4299 `composite' request.
4301 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4302 to Unicode-based glyph names.
4303 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4304 glyph names to groff glyph names.
4305 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4306 Unicode-based glyph names.
4307 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4308 for handling Unicode glyph names.
4309 * src/roff/troff/input.cc: Include unicode.h.
4310 (composite_glyph_name): New function.
4311 (token::next) <'['>: Handle Unicode glyph names and composite
4313 (composite_dictionary): New dictionary for the `composite' request.
4314 (composite_request): Implement `composite' request.
4315 (init_input_requests): Add `composite'.
4316 Alphabetically sorted.
4317 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4319 (init_env_requests): Alphabetically sorted.
4320 Removed `tas' and `tar' (already commented out).
4321 * src/roff/troff/Makefile.sub: Updated.
4323 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4325 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4328 2002-10-29 Werner LEMBERG <wl@gnu.org>
4330 Fix computation of .trunc register. Additionally, its value (and
4331 the value of the .ne register) is now always set before entering the
4334 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4335 `needed_space' before calling `space'.
4336 (top_level_diversion::space): Remove special code for 'sp before the
4338 Call `begin_page' with the discarded space as a parameter.
4339 (top_level_diversion::begin_page): Add optional parameter to set
4341 * src/roff/troff/div.h: Updated.
4343 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4346 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4347 (LP): Remove superfluous call to `br'.
4348 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4349 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4351 2002-10-26 Werner LEMBERG <wl@gnu.org>
4353 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4354 (doc-setup-header): Don't set page register `%'.
4355 * tmac/doc-nroff: Remove variable `C'.
4356 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4357 (doc-setup-header): Don't set page register `%'.
4359 * tmac/doc-common (doc-header): Call `ns'.
4360 (doc-paragraph): Protect .sp with .br so that it survives traps
4361 possibly set by the user.
4362 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4364 * tmac/doc*: Replace ' with . for consistency if no effect.
4366 2002-10-26 Werner LEMBERG <wl@gnu.org>
4368 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4369 so that it survives traps possibly set by the user.
4371 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4372 (troff_output_file::set_font): Call flush_tbuf if necessary.
4373 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4374 flush_tbuf and do_motion only if necessary.
4375 (troff_output_file::start_special,
4376 troff_output_file::put_char_width, troff_output_file::put_char,
4377 troff_output_file::draw): Updated.
4378 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4379 vmotion_node::tprint): Undo change 2002-10-23.
4381 2002-10-25 Werner LEMBERG <wl@gnu.org>
4383 * tmac/www.tmac (DC): Fix case of overlapping images.
4385 2002-10-23 Werner LEMBERG <wl@gnu.org>
4387 * src/roff/troff/node.cc (troff_output_file::fill_color,
4388 troff_output_file::glyph_color): Set current color before testing
4390 (troff_output_file::put_char_width, troff_output_file::put_char,
4391 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4393 (troff_output_file::file_color, troff_output_file::glyph_color):
4395 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4396 vmotion_node::tprint): Move first, then call fill_color.
4398 2002-10-20 Werner LEMBERG <wl@gnu.org>
4400 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4401 possible to use multiple main macro packages.
4403 2002-10-19 Werner LEMBERG <wl@gnu.org>
4405 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4406 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4407 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4409 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4410 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4412 2002-10-16 Werner LEMBERG <wl@gnu.org>
4414 * NEWS, doc/webpage.ms: Updated.
4416 2002-10-14 Werner LEMBERG <wl@gnu.org>
4418 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4419 troff_output_file::put_char, troff_output_file::fill_color,
4420 troff_output_file::glyph_color): Handle case where color pointer
4423 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4425 Add the new -r option to grotty. It is similar to the -i option
4426 except it tells grotty(1) to use the "reverse video" attribute to
4427 render italic fonts.
4429 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4430 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4431 (tty_printer::make_underline, tty_printer::put_color,
4432 tty_printer::end_page): Use it.
4433 (main): Add -r switch.
4435 * src/devices/grotty/grotty.man: Document it.
4437 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4439 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4440 cast to `unsigned char' to properly read patterns with 8bit
4443 2002-10-08 Werner LEMBERG <wl@gnu.org>
4445 * REVISION: Increased to 2.
4447 Version 1.18.1 released
4448 =======================
4450 2002-10-08 Werner LEMBERG <wl@gnu.org>
4452 * doc/webpage.ms, NEWS: Updated.
4454 2002-10-07 Werner LEMBERG <wl@gnu.org>
4456 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4457 suppress additional whitespace after the header.
4459 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4462 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4464 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4466 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4467 (Dt): Use it to improve language localization (especially Russian
4470 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4472 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4473 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4475 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4477 Call `picurve' for BSPLINE.
4478 (HGPrintElt): Handle BSPLINE.
4479 * src/preproc/grn/README: Document it.
4481 2002-10-03 Werner LEMBERG <wl@gnu.org>
4483 * src/roff/troff/node.cc (break_char_node::col): New variable.
4484 Updated constructor.
4485 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4487 (space_node::space_node): Remove assertion.
4488 (break_char_node::add_self): Pass color argument to space node.
4489 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4491 * src/roff/troff/env.cc (environment::do_break,
4492 environment::add_padding): Ditto.
4494 2002-10-02 Werner LEMBERG <wl@gnu.org>
4496 Redesigning color support in troff. Colors are no longer
4497 represented as separate nodes but are now part of glyph nodes and
4498 friends. This fixes the current formatting misbehaviour due to the
4499 changes introduced on 2002-09-20. Some extra code is necessary for
4500 proper grotty support: Without adding color variables to
4501 space-related nodes, the background color would be changed too late.
4503 * src/roff/troff/node.h, src/roff/troff/node.cc:
4504 s/current_pagecolor/current_fill_color/.
4505 s/current_glyphcolor/current_glyph_color/.
4506 (glyph_color_node, fill_color_node): Removed.
4507 (node::get_glyph_color, node::get_fill_color): New virtual member
4509 (space_node::col): New variable.
4510 Updated constructors of space_node and derived classes accordingly.
4511 (hmotion_node::col): New variable.
4512 Updated constructors of hmotion_node and space_char_hmotion_node
4514 (vmotion_node::col): New variable.
4515 Updated constructor accordingly.
4516 (draw_node::gcol, draw_node::fcol): New variables.
4517 Updated constructor accordingly.
4518 (special_node::gcol, special_node::fcol): New variables.
4519 Updated constructors accordingly.
4520 (troff_output_file::put_char, troff_output_file::put_charwidth,
4521 troff_output_file::draw): Set glyph and fill color.
4522 (troff_output_file::start_special): Set glyph and fill color.
4523 Always set current font.
4524 (troff_output_file::fill_color, troff_output_file::glyph_color):
4525 Don't call `do_motion'.
4526 (glyph_node::gcol, glyph_node::fcol): New variables.
4527 Updated constructors of glyph_node and ligature_node accordingly.
4528 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4530 (glyph_node::merge_glyph_node,
4531 kern_pair_node::add_discretionary_hyphen,
4532 node::add_discretionary_hyphen): Updated.
4533 (break_char_node::merge_self): Updated.
4534 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4535 vmotion_node::tprint): Handle color.
4536 (make_glyph_node, make_node, node::add_char): Updated.
4538 * src/roff/troff/env.cc (environment::space_newline,
4539 environment::space, environment::output_line, environment::do_break,
4540 environment::make_tab_node, environment::add_padding, title):
4542 (environment_switch, environment_copy): Don't add color nodes.
4544 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4546 (token::next): Updated.
4547 \m and \M now are as transparent as \s.
4548 (process_input_stack, token::add_to_node_list, token::process,
4549 read_draw_node): Updated.
4550 (charinfo_to_node_list): Don't add color nodes.
4552 * doc/groff.texinfo: Updated.
4554 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4556 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4559 2002-09-27 Colin Watson <cjwatson@debian.org>
4561 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4563 2002-09-23 Werner LEMBERG <wl@gnu.org>
4565 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4567 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4568 (linewidth_factor): New global variable.
4569 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4571 (long_options): Add -w/--linewidth option.
4573 (main): Handle -w option to set linewidth_factor.
4574 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4577 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4579 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4581 Fixed a bug in the line thickness setting code.
4583 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4585 (lbp_printer::set_line_thickness): Pass environment as second
4587 Implement it actually.
4588 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4589 and `set_line_thickness, depending on the current font size.
4591 2002-09-21 Werner LEMBERG <wl@gnu.org>
4593 Some Debian patches.
4595 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4596 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4599 2002-09-20 Werner LEMBERG <wl@gnu.org>
4601 * configure: Regenerated with autoconf 2.54.
4603 2002-09-20 Werner LEMBERG <wl@gnu.org>
4605 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4607 Rename cur_fill_color to fill_color.
4608 * src/roff/troff/env.cc: Updated.
4610 2002-09-20 Werner LEMBERG <wl@gnu.org>
4612 * src/roff/troff/env.cc (title): Copy color status after processing
4614 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4615 fill color nodes to reset colors properly.
4617 * tmac/www.tmac (DC): Fix color handling.
4619 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4620 * doc/groff.texinfo: Fixing documentation of `tl' request.
4621 * doc/webpage.ms: Updated.
4623 2002-09-19 Werner LEMBERG <wl@gnu.org>
4625 * src/roff/troff/env.cc (environent_switch, environment_copy):
4626 Emit glyph and fill color nodes to initialize colors properly.
4628 2002-09-17 Colin Watson <cjwatson@debian.org>
4630 * src/roff/troff/env.cc (environment::set_glyph_color,
4631 environment::set_fill_color): Fix typo which prevented \m[] work
4634 2002-09-17 Werner LEMBERG <wl@gnu.org>
4636 Add left and right italic correction to non-slanted PS fonts. This
4637 is an experimental feature to improve image rendering of grohtml.
4639 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4640 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4641 * font/devps/*: All non-slanted fonts regenerated.
4644 2002-09-16 Werner LEMBERG <wl@gnu.org>
4646 Add a site-specific font directory.
4648 * Makefile.in (localfontdir, legacyfontdir): New variables.
4649 (fontpath): Use them.
4650 (MDEFINES, uninstall_dirs): Updated.
4651 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4652 Remove `FONTPATH' and `MACROPATH'.
4654 * src/roff/troff/troff.man, NEWS: Updated.
4655 * doc/groff.texinfo (Font Directories): New section.
4658 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4659 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4660 src/preproc/grn/grn.man: Minor fixes.
4662 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4663 Remove unused variable.
4665 2002-09-11 Werner LEMBERG <wl@gnu.org>
4667 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4668 * man/groff_out.man: Fix documentation of 'N'.
4670 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4672 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4673 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4675 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4676 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4677 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4678 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4679 PRE_TAG>: Call `begin' with `FALSE'.
4681 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4683 * src/libs/libgroff/string.cc (string::extract): Fix position of
4684 terminating null byte.
4686 2002-09-08 Werner LEMBERG <wl@gnu.org>
4688 Add global option `nospaces' to tbl so that leading and trailing
4689 spaces in data items are ignored.
4691 * src/libs/libgroff/string.cc (string::remove_spaces): New member
4692 function to remove leading and trailing spaces.
4693 * src/include/stringclass.h: Updated.
4695 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4697 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4699 Fix typo in error messages.
4700 (process_data): Implement `nospaces' option.
4701 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4703 2002-09-07 Werner LEMBERG <wl@gnu.org>
4705 * src/include/config.hin: Add `HAVE_ISATTY'.
4706 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4708 * src/libs/libgroff/tmpname.cc: Include `time.h'.
4709 * src/libs/libdriver/input.cc (Char): Add `operator==' and
4710 `operator!=' for `char'.
4711 * doc/groff.texinfo: Replace @ifnottex block for top node with
4714 2002-09-06 Werner LEMBERG <wl@gnu.org>
4716 * doc/Makefile.in (.texinfo.html): Add -I switch.
4717 * doc/groff.texinfo: Add @ifnottex block for top node to make
4718 translation to HTML work.
4720 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
4722 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4723 (get_papersize, determine_vertical_offset): Removed.
4724 (char_buffer::do_image): Always specify letter size.
4726 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4729 2002-09-05 Werner LEMBERG <wl@gnu.org>
4731 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4732 default indentation.
4734 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
4736 * src/preproc/html/pre-html.cc (imageList::createPage): Use
4738 (generateImages): Clean up push-back buffer.
4740 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4742 * doc/groff.texinfo: Minor fixes.
4744 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4746 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4747 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4749 (determine_vertical_offset): Use LETTER_LENGTH.
4750 (createPage): Moved to ...
4751 (imageList::createPage): This.
4752 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4753 (imageList::getMaxX): New function.
4754 (createImage): Moved to ...
4755 (imageList::createImage): This.
4756 (imageList::createImages): New function.
4757 (generateImages): Read `maxx' directly.
4759 (scanArguments): Don't specify `gsPaper' for `-o'.
4760 (makeTempFiles): Call `xtmpfile' with the last argument set to
4763 2002-08-24 Werner LEMBERG <wl@gnu.org>
4765 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4766 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4767 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4768 * src/preproc/html/pushback.cc: Include nonposix.h.
4769 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4772 2002-08-23 Werner LEMBERG <wl@gnu.org>
4774 Use $(OBJEXT) for the object file extension.
4776 * Makefile.comm (.SUFFIXES): Add .obj.
4777 (.cc.obj, .c.obj): New implicit rules.
4778 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4779 (MDEFINES): Add EXEEXT and OBJEXT.
4780 * */Makefile.sub: s/.o/.$(OBJEXT)/.
4782 2002-08-22 Werner LEMBERG <wl@gnu.org>
4784 * INSTALL: Mention texinfo 4.2 as a prerequisite.
4786 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4788 * src/devices/grohtml/post-html.cc (colType): Make enum global to
4790 (html_printer::update_min_max, html_printer::add_table_end): New
4792 (html_printer::lookahead_for_tables): Use them.
4793 Reset page offset correctly.
4794 (html_printer::~html_printer): Add creation of creator comment up.
4796 2002-08-20 Werner LEMBERG <wl@gnu.org>
4798 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4799 * man/groff_tmac.man: Fix typos.
4800 * man/groff_font.man: Minor reordering.
4801 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4803 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4805 Avoid endless loops while scanning for tables.
4807 * src/devices/grohtml/post-html.cc (list::insert): Set
4809 (html_printer::next_horiz_pos): Add `text_glob' argument; update
4811 Return immediately if that argument is NULL.
4812 (html_printer::calc_nf): Don't test if `g' is NULL.
4813 (html_printer::lookahead_for_tables): Use
4814 `glyphs.move_right_get_data'.
4815 Don't test if `g' is NULL.
4817 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4819 A better fix, replacing fix 2002-08-15, for increasing SIZE.
4821 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4823 (char_block::char_block): Allocate `buffer'.
4824 (char_buffer::add_string): Use it.
4826 2002-08-15 Werner LEMBERG <wl@gnu.org>
4828 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4829 src/devices/grodvi/grodvi.man: Document default line thickness.
4831 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
4833 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4836 2002-08-14 Werner LEMBERG <wl@gnu.org>
4838 * doc/webpage.ms: Updated.
4840 2002-08-09 Werner LEMBERG <wl@gnu.org>
4842 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4845 2002-08-08 Aaron Campbell <aaron@monkey.org>
4847 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4850 2002-08-08 Werner LEMBERG <wl@gnu.org>
4852 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4855 Don't push back a space but a newline onto the stack.
4857 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
4859 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4862 * src/devices/grohtml/post-html.cc (html_printer::end_font,
4863 html_printer::start_font): Handle them.
4864 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4866 (html_text::do_bold): Don't reset italic and tt.
4867 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4868 * font/devhtml/DESC.proto: Add those fonts.
4869 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4871 2002-08-07 Werner LEMBERG <wl@gnu.org>
4873 * MORE.STUFF: Added gpresent.
4875 * tmac/trace.tmac: Show nesting level by a corresponding amount of
4876 whitespace before printing the logging message.
4878 2002-07-31 Colin Watson <cjwatson@debian.org>
4880 * src/devices/grohtml/html-table.cc (html_table::finish_row):
4881 Initialize `n' to zero. This fixes a segfault on ARM.
4883 2002-07-30 Werner LEMBERG <wl@gnu.org>
4885 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4887 2002-07-29 Werner LEMBERG <wl@gnu.org>
4889 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4892 2002-07-28 Colin Watson <cjwatson@debian.org>
4894 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4896 (html_printer::html_printer): Initialize `pointsize'.
4898 2002-07-26 Werner LEMBERG <wl@gnu.org>
4900 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4902 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4903 (gnu.eps): Add -rle switch to pnmtops.
4904 (distfiles): Add gnu.eps and gnu.png.
4906 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
4908 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4911 2002-07-24 Werner LEMBERG <wl@gnu.org>
4913 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4914 ' \+' but ' *' for sed.
4915 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4917 2002-07-23 Werner LEMBERG <wl@gnu.org>
4919 * doc/groff.texinfo: Document `papersize' keyword.
4920 * NEWS, man/groff_font.man: Updated.
4922 2002-07-23 Colin Watson <cjwatson@debian.org>
4924 Extend papersize keyword to accept more than a single entry. The
4925 first valid will be used.
4927 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4928 (font::scan_papersize): Really skip final newline.
4929 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4931 2002-07-23 Werner LEMBERG <wl@gnu.org>
4933 * configure.ac: Test for isatty.
4934 * configure: Regenerated.
4935 * src/include/posix.h: Check HAVE_ISATTY.
4936 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4937 * src/utils/lookbib/lookbib.cc: Include posix.h.
4938 Don't declare isatty.
4940 2002-07-21 Werner LEMBERG <wl@gnu.org>
4942 * NEWS: Add `output' request.
4944 * REVISION: Increased to 1.
4946 Version 1.18.0 released
4947 =======================
4949 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
4951 Allow internal glyph indices > 0xFF in grohtml for input characters.
4953 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4955 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4956 Updated all callers.
4957 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4958 (html_printer): Updated.
4960 2002-07-19 Werner LEMBERG <wl@gnu.org>
4962 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4963 * font/devutf8/R.proto: Adding some missing glyphs.
4964 * font/devutf8/NOTES: Updated.
4966 * tmac/dvi.tmac: Add more composite glyphs.
4967 * tmac/html.tmac: Updated.
4969 * man/groff_char.man: Add `sum' and `product' entities.
4973 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
4975 Improved table, tab, and indenting support.
4977 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4978 string_iterator::suppress_newline_flag): Removed. Updated all
4979 function which have used it.
4981 * src/roff/troff/env.cc: Include `input.h'.
4982 (environment::add_node): Accept 0 as parameter.
4983 (environment::add_html_tag): Add `force' parameter.
4984 Updated all callers.
4985 (environment::add_html_tag_tabs): Ditto.
4986 For the moment, support left-aligned tabs only.
4987 (environment::make_html_tag): New function.
4988 (fill, no_fill): Set .br html tag additionally.
4989 (environment::newline): Emit `eol.ce' or `eol' tag for html.
4990 (environment::add_html_tag_eol): Removed.
4991 (tab_stops::distance_to_next_tab): Add variant for handling
4993 (environment::distance_to_next_tab): Ditto.
4994 Updated all callers.
4995 (environment::handle_tab): Handle tabs for html.
4997 * src/roff/troff/env.h: Updated.
4999 * src/roff/troff/div.cc: Updated all callers of
5000 `environment::add_html_tag'.
5002 * src/devices/grohtml/html-table.cc,
5003 src/devices/grohtml/html-table.h: New files.
5005 * src/devices/grohtml/html-text.cc (html_text): New members
5006 `blank_para' and `start_space'.
5007 (html_text::issue_tag): Don't emit TABLE_TAG.
5008 Handle indentation for PRE_TAG and P_TAG.
5009 (html_text::end_tag): Updated.
5010 (html_text::table_is_void, html_text::issue_table_begin,
5011 html_text::issue_table_end): Removed.
5012 (html_text::do_push): Simplified.
5013 [DEBUGGING]: Small fix.
5014 (html_text::push_para): Add new parameter for indentation; updated
5017 (html_text::do_indent, html_text::do_table, html_text::done_table,
5018 html_text::is_in_table): Removed.
5019 (html_text::do_pre): Handle P_TAG also.
5020 (html_text::shutdown): Handle p->indent.
5021 (html_text::check_emit_text): Simplified.
5022 (html_text::do_emittext): Reset `blank_para'.
5023 (html_text::do_para): Add new parameter for indentation; updated
5025 (html_text::remove_indent): New function.
5026 (html_text::do_space): Handle verbatim text properly.
5027 (html_text::ever_emitted_text, html_text::starts_with_space,
5028 html_text::remove_para_align): New functions.
5029 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5031 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5034 * src/devices/grohtml/post-html.cc: Include html-table.h.
5035 (INDENTATION): Removed.
5036 (text_glob): Added many `is_<foo>' functions.
5037 Added table description `tab'.
5038 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5040 (list): Add `insert' and `move_to' member functions.
5041 (page): Add `insert_tag' member function.
5042 (page::dump_page) [DEBUG_TABLES]: Improved.
5043 (html_printer): Add `table' and `max_linelength' elements.
5044 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5045 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5046 `remove_tabs', `remove_courier_tabs'.
5047 (html_printer::emit_raw): Handle indentation.
5048 (html_printer::do_center, html_printer::write_header): Updated.
5049 (html_printer::is_courier_until_eol): Check for tag.
5050 (html_printer::do_linelength): Handle max_linelength.
5051 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5053 (html_printer::do_tempindent): Updated.
5054 (html_printer::do_indentedparagraph): Removed.
5055 (html_printer::do_indent): Simplified.
5056 (html_printer::do_eol): Use `ever_emitted_text'.
5057 (html_printer::do_flush, html_printer::do_links): Don't call
5059 (html_printer::do_break): Handle end_tempindent.
5060 (html_printer::troff_tag): Get argument.
5062 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5063 (html_printer::flush_page): Call `lookahead_for_tables'.
5064 Don't call `done_table'.
5065 (html_printer::add_to_sbuf): Always call do_indent.
5067 * src/devices/grohtml/Makefile.sub: Updated.
5069 * tmac/an-old.tmac (TP): Don't handle html device specially.
5070 (an-do-tag-html): New function which will be used instead of
5071 `an-do-tag' if html device is used.
5073 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5075 * tmac/s.tmac (@IP): Don't handle html device specially.
5076 (@IP-html): New function which will be used instead of `@IP' if
5077 html device is used.
5079 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5080 is a hack which will eventually vanish again.
5081 (PIMG): Handle `-C' option correctly if not html.
5084 2002-07-17 Werner LEMBERG <wl@gnu.org>
5086 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5088 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5090 * contrib/pic2graph/pic2graph.*: Use convert(1).
5091 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5093 2002-07-14 Bernd Warken <bwarken@mayn.de>
5095 * tmac/groff_trace.man: New file.
5096 * tmac/Makefile.sub: Updated.
5099 2002-07-13 Werner LEMBERG <wl@gnu.org>
5101 * src/roff/groff/groff.man: Add some cross references.
5103 2002-07-12 Werner LEMBERG <wl@gnu.org>
5105 * src/roff/troff/input.cc (substring_request): Add warnings for
5106 string indices out of range.
5108 2002-07-11 Werner LEMBERG <wl@gnu.org>
5110 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5111 * font/devdvi/*EC: Regenerated.
5113 2002-07-10 Bernd Warken <bwarken@mayn.de>
5115 * man/groff_char.man: Updated and extended.
5117 2002-07-10 Werner LEMBERG <wl@gnu.org>
5119 * src/roff/troff/input.cc (length_macro): Renamed to...
5120 (length_request): This.
5121 Move call of `tok.next()' to the very end, otherwise the register
5122 value hasn't been updated yet.
5123 (init_input_requests): Updated.
5125 2002-07-09 Werner LEMBERG <wl@gnu.org>
5127 * src/roff/troff/input.cc (substring_macro): Renamed to...
5128 (substring_request): This.
5129 (init_input_requests): Updated.
5130 * src/roff/troff/request.h: Updated.
5132 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5134 * src/roff/grog/grog.sh: Fix typo.
5136 2002-07-08 Werner LEMBERG <wl@gnu.org>
5138 * win32-diffs: Updated.
5140 Handle `papersize' keyword properly in DESC.
5142 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5144 Updated all callers.
5145 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5147 * src/include/paper.h: Updated.
5149 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5150 Other minor C syntax fixes.
5151 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5152 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5154 (lbp_printer::lbp_printer): Pass three arguments.
5155 Set paper dimensions properly.
5156 (make_printer, main): Updated.
5157 (handle_unknown_desc_command): Fix error messages.
5158 (main): Handle papersize keyword in DESC properly.
5160 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5162 (lbp_printer::lbp_printer): Pass an argument.
5163 Set paper_size properly.
5164 (handle_unknown_desc_command): Removed.
5165 (make_printer, main): Updated.
5166 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5168 * man/groff_font.man, NEWS: Updated.
5170 2002-07-07 Werner LEMBERG <wl@gnu.org>
5172 Integrated eqn2graph, contributed by Eric S. Raymond.
5174 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5176 * Makefile.in, NEWS: Updated.
5178 2002-06-04 Werner LEMBERG <wl@gnu.org>
5180 Changing the substring request to make it fit better with other
5181 string manipulation functions in other programming languages:
5182 Index 0 is now the first character in the string, and index -1
5183 indicates the last character. Since this request didn't work
5184 properly anyway in the last release, it doesn't harm too much to
5187 * src/roff/troff/input.cc (substring_macro): Use loops to get
5188 the real string length (ignoring COMPATIBLE_SAVE and
5189 COMPATIBLE_RESTORE) and offsets.
5190 Implement change described above.
5192 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5193 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5195 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5197 2002-06-03 Werner LEMBERG <wl@gnu.org>
5199 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5200 COMPATIBLE_RESTORE are completely ignored.
5202 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5204 (macro): `length' field renamed to `len'.
5205 Added new field `empty_macro' (1 if macro is empty), to be used
5206 instead of checking `len'.
5207 Updated all callers.
5208 (macro::empty): Updated.
5209 (macro::length, macro::set, macro::get): New functions.
5210 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5212 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5213 COMPATIBLE_RESTORE pairs.
5214 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5215 * src/roff/troff/request.h: Updated.
5217 * doc/groff.texinfo: Document .chop's behaviour better.
5219 2002-06-02 Werner LEMBERG <wl@gnu.org>
5221 * doc/pic.ms: Fix documentation for the addition of positions.
5223 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5225 2002-06-29 Werner LEMBERG <wl@gnu.org>
5227 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5229 * src/roff/troff/input.cc (have_string_arg): New global variable.
5230 (read_mode): New enumeration.
5231 (read_escape_name): Use it. Update all calls.
5232 (read_long_escape_name): Use it. Update all calls.
5233 Set have_string_arg if appropriate.
5234 (get_char_for_escape_name): Add parameter for handling space
5236 (interpolate_string_with_args, decode_string_args): New functions.
5237 (get_copy, token::next): Call it if necessary.
5238 (interpolate_string): Fix error message.
5240 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5243 2002-06-24 Bernd Warken <bwarken@mayn.de>
5245 * man/groff_tmac.man: Updated and extended.
5247 2002-06-24 Werner LEMBERG <wl@gnu.org>
5249 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5251 2002-06-23 Werner LEMBERG <wl@gnu.org>
5253 * doc/pic.ms: Improve documentation of composite block objects.
5255 2002-06-22 Werner LEMBERG <wl@gnu.org>
5257 * src/roff/troff/input.cc (init_registers): Add three registers
5258 `seconds', `minutes', and `hours' to hold the current time.
5260 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5263 2002-06-20 Werner LEMBERG <wl@gnu.org>
5265 Make \X accept both `\ ' and `\~', converting them to single space
5268 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5269 (token::unstretchable_space): New inline function.
5270 * src/roff/troff/input.cc (token::next, token::delimiter,
5271 token::description, token::add_to_node_list, token::process): Handle
5272 TOKEN_UNSTRETCHABLE_NODE.
5273 (encode_char): Handle tok.stretchable_space and
5274 tok.unstretchable_space.
5276 * NEWS, doc/groff.texinfo: Document it..
5278 2002-06-19 Werner LEMBERG <wl@gnu.org>
5280 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5282 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5283 keyword to enable/disable SGR output.
5284 (tty_printer::change_fill_color): New function.
5285 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5287 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5290 2002-06-18 Werner LEMBERG <wl@gnu.org>
5292 Add a `color' request and a `.color' register to control usage of
5295 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5296 (color_flag): This (which is the inverse).
5297 (activate_color): New function.
5298 (main, init_input_requests): Updated.
5299 * src/roff/troff/troff.h, src/roff/troff/node.cc
5300 (troff_output_file::fill_color, troff_output_file::glyph_color):
5303 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5304 Document the changes.
5306 2002-06-17 Colin Watson <cjwatson@debian.org>
5308 Circumvent bug in autoconf 2.53 regarding top_builddir.
5310 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5311 * Makefile.in, doc/Makefile.in:
5312 s/@top_builddir@/@groff_top_builddir@/.
5313 * configure: Regenerated (with autoconf 2.53).
5315 2002-06-17 Werner LEMBERG <wl@gnu.org>
5317 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5318 `paperwidth' and `paperlength' for the `papersize' keyword.
5320 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5322 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5324 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5326 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5327 html_printer::do_linelength, html_printer::do_pageoffset,
5328 html_printer::do_indentation, html_printer::do_tempindent,
5329 html_printer::do_break, html_printer::begin_page): Clear indented
5331 * tmac/html.tmac: Disable hyphenation.
5333 2002-06-15 Werner LEMBERG <wl@gnu.org>
5335 Don't produce HTML files if utility programs are missing.
5337 * Makefile.in (make_html, make_install_html): New variables.
5338 (MDEFINES): Updated.
5340 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5342 * configure.ac: Use it.
5343 * configure: Regenerated.
5345 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5346 (HTMLEXAMPLESFILES): This new variable.
5347 (EXAMPLESIMAGEFILES): Renamed to...
5348 (HTMLEXAMPLEIMAGEFILES): This.
5349 (CLEANADD): Add HTMLEXAMPLEFILES.
5350 (all): Use `make_html'.
5352 (install_data): Use `make_install_html'.
5353 Move html stuff to...
5354 (install_html): This new target.
5355 (uninstall_sub): Updated.
5357 2002-06-14 Bernd Warken <bwarken@mayn.de>
5359 * src/roff/grog/Makefile.sub (grog): Renamed to...
5361 (grog): New rule to always install grog.sh as grog.
5363 2002-06-08 Bernd Warken <bwarken@mayn.de>
5365 * src/roff/grog/grog.pl: Fix typo.
5367 2002-06-07 Werner LEMBERG <wl@gnu.org>
5369 * doc/groff.texinfo: Add more info on .tr arguments.
5371 2002-06-05 Werner LEMBERG <wl@gnu.org>
5373 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5375 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5376 * configure: Regenerated.
5378 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5380 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5382 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5384 2002-06-04 Werner LEMBERG <wl@gnu.org>
5386 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5387 is not initialized at the time we need it in case `--prefix' hasn't
5388 been set. Check for `ac_default_prefix' also.
5389 Test for `papersize' keyword also and generalize allowed whitespace.
5390 * configure: Regenerated.
5392 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5395 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5397 (src_version, src_revision): New variables to avoid overwriting
5398 from parent make process.
5399 (version.cc): Updated.
5401 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5402 (linebuf, linebufsize): New global variables.
5403 (sys_fatal): Use `fatal' to abort properly.
5404 (get_line): New function.
5405 (get_resolution): Use it.
5406 Improve error messages.
5407 (get_papersize): Check `papersize' also.
5409 Improve error messages.
5411 2002-06-03 Werner LEMBERG <wl@gnu.org>
5413 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5414 should be removed only if builddir is not srcdir.
5415 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5416 (clean): Depend on `mostlyclean'.
5417 (distclean): Depend on `clean'.
5418 (realclean, extraclean): Depend on `distclean'.
5419 (.y.cc, .y.o): Simplified. The output files are no longer written
5420 to srcdir but to builddir.
5421 * Makefile.in (MDEFINES): Add `version' and `revision'.
5422 (uninstall_dirs): Fix order of directories.
5423 * doc/Makefile.sub (version, revision): Removed.
5424 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5425 Added `HTMLDOCFILES'.
5426 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5427 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5428 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5431 * doc/texinfo.tex (\authortt): New macro.
5432 (\shortcontt): Define.
5433 (\titlepage): Set \tt to \authortt while defining \authorfont.
5434 (\appendixbox): New macro.
5435 (\chapmacro, \appendixentry): Use \appendixbox to get even
5436 indentation for letters.
5437 (\summarycontents): Set \tt.
5438 (\internalpagesize): Add two arguments for real paper width and
5439 height as needed by pdfTeX.
5440 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5442 (\tempdima, \tempdimb): New temporary dimensions.
5443 (\pagesizesyyy): Updated.
5445 2002-06-02 Werner LEMBERG <wl@gnu.org>
5447 Adding a new keyword `papersize' to the DESC file format (similar
5448 but not completely identical to grolbp's extension). grops now has
5449 a -p command line option to override `papersize'. Finally, grolbp
5450 has been adapted to the new syntax.
5452 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5453 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5455 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5456 (CCSRCS): Add `paper.cc'.
5458 * src/include/font.h (font): Add `papersize' element.
5459 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5460 (font::scan_papersize): New function.
5461 (font::load_desc): Use it for handling `papersize' keyword.
5462 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5464 * src/devices/grops/ps.cc: Include paper.h.
5465 (user_paper_length): New global variable.
5466 (ps_printer): Use paper length as initializer.
5467 (make_printer): Updated.
5468 (main): Handle new `-p' option.
5469 * src/devices/grops/grops.man: Updated.
5471 * src/devices/grolbp/lbp.cc: Include paper.h.
5472 s/papersizes/lbp_papersizes/.
5473 (set_papersize): Use new `papersizes' array.
5474 (handle_unknown_desc_command): Don't handle `papersize'.
5475 (main): Use `font::scan_papersize' for handling `-p' option.
5476 * src/devices/grolbp/grolbp.man: Updated.
5478 * man/groff_font.man: Document `papersize'.
5481 2002-05-30 Werner LEMBERG <wl@gnu.org>
5483 * src/devices/grops/TODO: Updated.
5484 * src/devices/grops/grops.man: More info on paper formats.
5485 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5487 2002-05-29 Werner LEMBERG <wl@gnu.org>
5489 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5490 to list only if srcdir != currdir.
5491 (distfiles): New target.
5493 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5494 (NOMAKEDIRS): New variable.
5497 2002-05-26 Werner LEMBERG <wl@gnu.org>
5499 Add .output request, similar to \! at top-level.
5501 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5502 (output_request): New function.
5503 (init_input_requests): Add it.
5505 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5508 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5509 (prepare_examples): Fix typo.
5510 * doc/groff.texinfo (@direntry): Fix it.
5512 2002-05-25 Werner LEMBERG <wl@gnu.org>
5514 Including the doc subdir into groff's Makefile system.
5516 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5517 * configure.ac: Use it.
5518 Generate `doc/Makefile'.
5519 * configure: Regenerated.
5521 * Makefile.in (infodir, INSTALL_INFO): New variables.
5522 (MDEFINES, uninstall_dirs): Updated.
5523 (OTHERDIRS): Add `doc'.
5524 * Makefile.comm (CLEANDIRADD): New variable.
5525 (mostlyclean): Use it.
5527 * doc/Makefile.sub, doc/Makefile.in: New files.
5528 * doc/Makefile: Removed.
5530 * NEWS, INSTALL: Updated.
5532 2002-05-24 Werner LEMBERG <wl@gnu.org>
5534 * doc/homepage.ms: Renamed to ...
5535 * doc/webpage.ms: This.
5538 2002-05-23 Werner LEMBERG <wl@gnu.org>
5540 Integrating the `mom' macro package, contributed by Peter Schaffter
5543 * contrib/mom/*: New subdirectory tree.
5544 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5545 be used for documentation files.
5546 (MDEFINES, uninstall_dirs): Use them.
5547 (OTHERDIRS): Add contrib/mom.
5548 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5550 * MANIFEST, NEWS: Updated.
5552 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5554 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5555 if at outer level; at start-up we are at outer level.
5557 * src/roff/troff/input.cc (do_suppress): Implement it.
5560 Add option -p to show progress information.
5561 pre-grohtml will now render only one page at a time, reducing the
5562 size of needed disk resources enormously.
5564 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5565 (imagePageName): New global variable.
5566 (psPageName, show_progress, currentPageNo): New global variables.
5567 (html_system): Close saved stderr and stdout handles.
5568 (write_end_image): Accept a parameter to control \O escape.
5569 (write_start_image): Adapted to new \O meaning.
5570 (char_buffer::write_upto_newline): Updated.
5571 (createAllPages): Replaced with...
5572 (createPage): This new function to create a single page for images.
5573 It uses `psselect' from the psutils package.
5574 (removeAllPages): Removed.
5575 (createImage): Updated.
5576 Handle progress display.
5577 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5578 (scanArguments): Add option -p.
5579 (makeTempFiles): Updated to create temp files for psPageName and
5581 (removeTempFiles): Removed.
5584 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5585 html_printer::write_header): Append `\0' to `buffer'.
5586 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5588 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5589 Handle `text_emitted'.
5590 (html_text::table_is_void): Slightly rewritten.
5591 (stop): New external symbol.
5592 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5593 (html_text::shutdown): Call `dump_stack'.
5594 (html_text::do_space): Rewritten.
5595 * src/devices/grohtml/grohtml.man: Document -p and the need of
5598 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5600 Call \O[0] if `ps4html' is active.
5601 * tmac/s.tmac (@EQ, @EN): Handle html better.
5603 * tmac/html.tmac: Don't use black for background colour.
5605 * src/roff/troff/node.cc: Include `div.h'.
5606 (troff_output_file::really_print_line): Don't use `is_on'.
5607 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5608 troff_output_file::check_charinfo,
5609 troff_output_file::put_char_width, troff_output_file::put_char,
5610 troff_output_file::determine_line_limits, troff_output_file::draw,
5611 real_output_file::begin_page, glyph_color_node::tprintf,
5612 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5614 (troff_output_file::really_on): Call `do_motion'.
5615 (suppress_node::tprint): Use `get_page_number' instead of `%'
5617 Call `reset_output_registers' conditionally on `is_on'.
5619 * doc/groff.texinfo: Document new syntax of \O.
5620 * NEWS, man/groff_diff.man: Updated.
5622 2002-05-22 Werner LEMBERG <wl@gnu.org>
5624 * MORE.STUFF: Add info about David Frey's deroff implementation.
5627 2002-05-16 Werner LEMBERG <wl@gnu.org>
5629 Pic's `with' attribute now accepts positions.
5631 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5632 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5634 (object_spec): Add rule for `WITH' and `position'.
5635 (relative_path): Give `corner' the precedence of `CHOP'.
5636 * src/preproc/pic/object.h (path): New members `pos' and
5638 * src/preproc/pic/object.cc: Updated initializers of `path'.
5639 (path::follow): Handle `is_position'.
5641 * doc/pic.ms: Completely updated grammar description.
5642 Many typographical improvements.
5644 2002-05-15 Werner LEMBERG <wl@gnu.org>
5646 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5647 code of x in range 0-127) also.
5648 * doc/groff.texinfo, man/groff_diff.man: Updated.
5650 Added keywords `north', `south', `east', and `west' for corners
5653 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5655 (yylex): Handle them.
5656 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5657 (corner): Handle them.
5659 2002-05-14 Werner LEMBERG <wl@gnu.org>
5661 * src/devices/grops/grops.man: Clarify handling of `download' file.
5663 2002-05-11 Werner LEMBERG <wl@gnu.org>
5665 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5666 Jeffrey Friedl <jfriedl@yahoo.com>.
5668 * src/roff/troff/input.cc (spread_limit, warn_scale,
5669 warn_scaling_indicator): New global variables.
5670 (warnscale_request, spreadwarn_requests): New functions.
5671 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5672 (init_input_requests): Updated.
5673 (error_type): Add `OUTPUT_WARNING'.
5674 (do_error): Handle it.
5675 (output_warning): New warning function which shows output location.
5676 * src/roff/troff/env.h (spread_limit): New external variable.
5677 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5679 (distribute_space): Emit warning if added space is larger than
5681 (environment::possibly_break_line): Emit warning if a line can't
5682 be adjusted on both sides.
5684 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5686 2002-05-08 Werner LEMBERG <wl@gnu.org>
5688 * src/roff/troff/node.cc (special_node::special_node): Use
5689 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
5690 \X''\% crashes, for example.
5692 * doc/groff.texinfo: Document \! and \? used at top-level.
5694 2002-05-06 Werner LEMBERG <wl@gnu.org>
5696 * src/preproc/pic/pic.man: Fix some keyword syntax.
5697 Other minor typographical fixes.
5699 * src/roff/groff/groff.man: Fix typos.
5701 2002-05-04 Werner LEMBERG <wl@gnu.org>
5703 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5704 (ShortOpt[]): This to avoid problems with refer.
5706 * doc/pic.ms: Fix typo.
5707 Fix pic grammar description.
5709 * tmac/an-old.tmac (ne): Use de1, not de.
5711 2002-05-03 Werner LEMBERG <wl@gnu.org>
5713 * doc/groff.texinfo: Finished separation of glyphs and characters.
5714 Don't use the string `Appendix' for appendix headers (both in
5715 the text and the table of contents).
5716 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5719 Use registers LL and LT (similar to -ms) for controlling the
5720 length of title and line, respectively, in the -man and -mdoc
5723 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5724 (doc-setup-page-layout): Use \n[LL] and \n[LT].
5725 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5727 (an-header, an-p-footer): Use \n[LT].
5728 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5729 doc/groff.texinfo: Document it.
5731 2002-05-02 Werner LEMBERG <wl@gnu.org>
5733 * doc/fdl.texi: New file.
5734 * doc/groff.texinfo: Include it.
5735 Define and use @copying.
5736 Starting with separating glyph, symbol, and character.
5738 2002-04-27 Werner LEMBERG <wl@gnu.org>
5740 * Makefile.in (EXEEXT): Set it.
5741 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5744 * src/include/nonposix.h: Define GS_NAME.
5745 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5747 Some preliminary changes for EMX support under OS/2.
5749 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5750 __EMX__ similar to __MSDOS__.
5751 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5753 2002-04-25 Werner LEMBERG <wl@gnu.org>
5755 * doc/groff.texinfo: Integrated groff_out.man.
5758 2002-04-23 Werner LEMBERG <wl@gnu.org>
5760 * man/groff_out.man: Minor fixes.
5762 2002-04-23 Werner LEMBERG <wl@gnu.org>
5764 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5765 correct page references.
5766 Fixed many index entries.
5768 2002-04-23 Bernd Warken <bwarken@mayn.de>
5770 * man/roff.man: Enlarged.
5772 2002-04-22 Werner LEMBERG <wl@gnu.org>
5774 * doc/groff.texinfo: More examples, other fixes.
5776 2002-04-20 Werner LEMBERG <wl@gnu.org>
5778 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5779 will now form a chain, e.g.
5788 This is for compatibility with plan 9's troff.
5790 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5794 * doc/groff.texinfo: Add documentation of remaining requests and
5797 2002-04-19 Werner LEMBERG <wl@gnu.org>
5799 * doc/groff.texinfo: Add documentation of remaining escapes.
5801 * font/devdvi/generate/tc.map: Remove entry for `sr'.
5802 * font/devdvi/*TC: Regenerated.
5804 2002-04-18 Werner LEMBERG <wl@gnu.org>
5806 * src/roff/troff/input.cc (token::next): Make \H behave consistently
5807 if not in compatibility mode, i.e., increment relative to the
5809 * doc/groff.texinfo: Updated accordingly.
5811 2002-04-17 Werner LEMBERG <wl@gnu.org>
5813 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5815 2002-04-16 Bernd Warken <bwarken@mayn.de>
5817 * src/roff/groff/groff.man: Improve documentation of -P option.
5820 2002-04-15 Werner LEMBERG <wl@gnu.org>
5822 Add new escape \F to switch font family.
5824 * src/roff/troff/input.cc (token::next): Handle \F.
5825 * src/roff/troff/env.cc (environment::set_family): Handle
5827 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5830 2002-04-14 Werner LEMBERG <wl@gnu.org>
5832 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5835 2002-04-13 Werner LEMBERG <wl@gnu.org>
5837 Implement \f[] as an alternative to \fP. Change \mP and \MP to
5838 \m[] and \M[], respectively.
5840 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5841 (symbol::symbol): Handle NULL string and empty string differently.
5842 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5843 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5844 Add optional parameter.
5845 Updated calling functions.
5846 (get_copy, do_glyph_color, do_fill_color, token::next): Use
5848 * src/roff/troff/env.cc (environment::set_font): Ditto.
5850 * src/preproc/pic/troff.cc (troff_output::set_fill,
5851 troff_output::reset_color: Updated.
5853 * tmac/www.tmac: Updated.
5855 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5856 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5859 * tmac/Xps.tmac: Remove some redundant code.
5861 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5862 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5863 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5866 2002-04-13 Bernd Warken <bwarken@mayn.de>
5868 * src/include/printer.h, src/libs/libdriver/printer.cc
5869 (printer::change_fill_color): New member function.
5870 * src/libs/libdriver/input.cc (parse_D_command): Use it.
5872 2002-04-12 Werner LEMBERG <wl@gnu.org>
5874 * doc/groff.texinfo: Completed pass on gtroff reference.
5876 2002-04-11 Werner LEMBERG <wl@gnu.org>
5878 * doc/groff.texinfo: More fixes.
5880 2002-04-11 Bernd Warken <bwarken@mayn.de>
5882 * src/include/color.h: Decorate with `const'.
5885 * src/libs/libgroff.color.cc: Decorate with `const'.
5887 (color::color): Initialize members.
5888 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5889 command according to the documentation.
5891 * man/groff_out.man: Updated.
5894 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
5896 * src/preproc/html/pre-html.cc (write_start_image): Remove
5898 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5900 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5901 \C'hy' caused an assertion failure.
5903 * src/roff/troff/env.cc (environment::environment): Initialize
5905 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5907 2002-04-10 Werner LEMBERG <wl@gnu.org>
5909 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5910 Document pvs request and .pvs register.
5912 2002-04-09 Werner LEMBERG <wl@gnu.org>
5914 * doc/groff.texinfo: Improve and fix documentation of diversions
5917 2002-04-08 Werner LEMBERG <wl@gnu.org>
5919 * doc/groff.texinfo: Fix documentation of drawing functions.
5922 2002-04-07 Werner LEMBERG <wl@gnu.org>
5924 * doc/groff.texinfo: Better documentation of double quotes as
5928 2002-04-06 Werner LEMBERG <wl@gnu.org>
5930 * man/groff_font.man: Document names of special characters better.
5931 * doc/groff.texinfo: Minor improvements.
5933 * tmac/lbp.tmac: Load latin1.tmac.
5934 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5936 * font/devX*/*: Regenerated (all chars > 0x80 removed).
5938 2002-04-05 Werner LEMBERG <wl@gnu.org>
5940 * tmac/tty.tmac: Don't use shc request.
5941 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5944 * man/groff_diff.man: Minor fixes.
5946 * font/devlbp/*: Remove all `charXXX' entities.
5948 * src/libs/libgroff/font.cc (font::~font): Deallocate
5949 `special_device_coding'.
5950 (font::load): Use `new' for allocating `special_device_coding'.
5951 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5952 Removed unused member.
5954 2002-04-05 Werner LEMBERG <wl@gnu.org>
5956 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5957 (resource_manager::do_begin_binary,
5958 resource_manager::do_begin_data): Use it.
5960 * doc/texinfo.tex: Updated to version 4.2.
5962 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5963 (token::zero_width_break): New inline function.
5964 * src/roff/troff/input.cc (token::next): Use it.
5965 (token::description): Updated.
5966 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5967 (token::add_to_node_list, token::process): Use it.
5968 * NEWS, doc/groff.texinfo: Updated.
5970 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5971 * tmac/tty.tmac: Add missing backslash.
5973 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
5975 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5976 `.ps' register instead of `.s' to handle fractional point sizes.
5977 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5978 limit_box::output): Ditto.
5979 * src/preproc/eqn/other.cc (size_box::compute_metrics,
5980 size_box::output): Ditto.
5981 * src/preproc/eqn/over.cc (over_box::compute_metrics,
5982 over_box::output): Ditto.
5983 * src/preproc/eqn/script.cc (script_box::compute_metrics,
5984 script_box::output): Ditto.
5985 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5986 sqrt_box::output): Ditto.
5988 2002-04-03 Michael Selway <mas@ssl.co.uk>
5990 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5993 2002-04-03 Werner LEMBERG <wl@gnu.org>
5995 * doc/homepage.ms: Reduce title size.
5996 * doc/groff.texinfo: Fix documentation of .t register.
5997 Fix handling of colon.
6000 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6001 only if page length is positive to avoid a loop.
6003 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6006 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6008 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6009 s/__CYGWIN32__/__CYGWIN__/.
6011 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6013 * doc/gnu.xpm: New image contributed by Emily Mulley.
6014 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6015 (homepage.html): Be dependent on gnu.eps.
6016 * doc/homepage.ms: Updated to new image.
6018 * src/devices/grohtml/post-html.cc (html_printer): New member
6020 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6021 (html_printer::sbuf_continuation): Use it.
6023 2002-03-28 Werner LEMBERG <wl@gnu.org>
6025 * src/libs/libgroff/getopt.c: Updated to latest version.
6027 * tmac/README: More on hyphen.tex license.
6029 2002-03-26 Larry Kollar <kollar@alltel.net>
6031 * doc/groff.texinfo: Add documentation of most missing requests.
6033 2002-03-25 Werner LEMBERG <wl@gnu.org>
6035 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6036 of `+-', `mu', and `di', respectively.
6038 * font/devascii/R.proto, font/devutf8/R.proto,
6039 font/devlatin1/R.proto, font/devhtml/R.proto,
6040 font/devcp1047/R.proto, font/devlpb/*: Add them.
6041 * font/devps/generate/textmap: Ditto.
6042 * font/devps/*: Regenerated.
6043 * font/devlj4/generate/text.map: Add them.
6044 * font/devlj4/*: Regenerated.
6045 * font/devdvi/generate/tc.map: Use them.
6046 * font/devdvi/generate/texsy.map: Add them.
6047 * font/devdvi/*: Regenerated.
6048 * font/devX*/*: Regenerated.
6050 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6051 tmac/tty-char.tmac: Updated.
6053 * NEWS, man/groff_char.man: Updated.
6055 2002-03-24 Werner LEMBERG <wl@gnu.org>
6057 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6058 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6059 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6060 we use `.fchar' in dvi.tmac.
6061 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6062 * tmac/Xps.tmac: Simplify some char definitions.
6063 Add definition for \[f/].
6064 * man/groff_char.man: Updated for new X.tmac.
6066 * tmac/README: New file.
6068 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6070 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6071 internal .y.o rule took precendence over the .y.cc rule, compiling
6072 the yacc files with gcc instead of g++.
6074 2002-03-23 Werner LEMBERG <wl@gnu.org>
6076 * tmac/dvi.tmac: Add replacement font for `CB'.
6078 * tmac/doc.tmac: s/request/macro/ in messages.
6079 (doc-generic-macro): Improve error message.
6080 * tmac/groff_mdoc.man: Minor improvements.
6082 2002-03-22 Werner LEMBERG <wl@gnu.org>
6084 * doc/groff.texinfo: Document possible conflict between `tr' and
6087 2002-03-21 Werner LEMBERG <wl@gnu.org>
6089 Improve handling of hyphenation patterns. It is now possible to
6090 use most of TeX's pattern files unmodified. To make the process
6091 more flexible, a new request `hpfcode' has been added which
6092 provides a character code mapping for the `hpf' request. See
6093 comment before hpf_getc() for more details.
6095 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6097 (read_patterns_file): Additional parameter for exception dictionary.
6098 Extended to recognize \pattern, \hyphenation, and \endinput.
6099 (do_hyphenation_patterns_file): Updated.
6100 * src/roff/troff/env.h (hpf_code_table): New extern.
6102 * src/roff/troff/input.cc (hpf_code_table): New array.
6103 (init_hpf_code_table, hyphenation_patterns_file_code): New
6105 (hyphenation_code): Handle translation from `trin' correctly.
6106 (main, init_input_requests): Updated.
6107 (charinfo::set_translation): Handle hyphenation code also.
6109 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6112 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6113 char' is used for offsets in hyphenation exceptions.
6115 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6117 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6119 2002-03-20 Larry Kollar <kollar@alltel.net>
6121 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6124 2002-03-18 Werner LEMBERG <wl@gnu.org>
6126 * tmac/html.tmac: Fix serious typo.
6128 2002-03-17 Larry Kollar <kollar@alltel.net>
6130 * doc/groff.texinfo: Add documentation for `writec' request.
6132 2002-03-17 Werner LEMBERG <wl@gnu.org>
6134 Added request `hpfa' to append hyphenation patterns.
6136 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6138 (hyphenation_patterns_file): Renamed to...
6139 (do_hyphenation_patterns_file): This.
6140 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6142 (init_hyphen_requests): Updated.
6143 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6145 2002-03-16 Werner LEMBERG <wl@gnu.org>
6147 Added request `writec' in analogy to `tmc'.
6149 * src/roff/troff/input.cc (write_request): Renamed to...
6150 (do_write_request): This.
6151 Added one parameter.
6152 (write_request, write_request_continue): New functions.
6153 (init_input_requests): Updated.
6154 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6156 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6158 * NEWS: Document it.
6160 2002-03-15 Werner LEMBERG <wl@gnu.org>
6162 * man/groff.man: Add writem request.
6164 Add request `trin' (translate input) to make `.asciify' work
6165 correctly. This is necessary since `charXXX' entity names are no
6166 longer hardcoded in font definition files.
6168 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6169 `translate_input' members.
6170 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6171 charinfo::set_translation_input): New methods.
6172 (charinfo::set_translation): Add third argument.
6173 * src/roff/troff/input.cc (charinfo:set_translation): Set
6175 (do_translate): Add second argument.
6176 (translate_input): New function.
6177 (init_input_requests): Updated.
6178 * src/roff/troff/node.cc (glyph_node::asciify,
6179 composite_node::asciify): Use `get_asciify_code'.
6181 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6183 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6185 2002-03-14 Larry Kollar <kollar@alltel.net>
6187 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6189 2002-03-14 Werner LEMBERG <wl@gnu.org>
6191 Add a new request `sizes' similar to the `sizes' command in DESC
6194 * src/roff/troff/env.cc (override_sizes): New function.
6195 (init_env_requests): Use it.
6196 * src/roff/troff/token.h: Export `read_string'.
6197 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6199 2002-03-12 Werner LEMBERG <wl@gnu.org>
6201 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6203 2002-03-10 Werner LEMBERG <wl@gnu.org>
6205 * tmac/pspic.tmac: Add support for -Tdvi.
6206 * tmac/dvi.tmac: Include pspic.tmac.
6207 * src/devices/grodvi/grodvi.man: Document it.
6210 * font/devlj4/generate/Makefile: Fix URL of metric files.
6212 2002-03-09 Werner LEMBERG <wl@gnu.org>
6214 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6216 2002-03-09 Larry Kollar <kollar@alltel.net>
6218 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6220 2002-03-08 Werner LEMBERG <wl@gnu.org>
6222 * doc/groff.texinfo: Fixes for texinfo 4.1.
6224 2002-03-07 Werner LEMBERG <wl@gnu.org>
6226 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6228 Handle CYGWIN properly.
6230 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6232 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6233 * tmac/lbp.tmac: Add some font translations.
6235 2002-03-02 Werner LEMBERG <wl@gnu.org>
6237 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6238 font/devhtml/R.proto: Remove `charXXX' entries.
6239 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6242 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6243 * font/devlj4/*: Regenerated all font definition files.
6244 * tmac/lj4.tmac: Load latin1.tmac.
6246 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6247 from 2000-06-17: LJ4 metric files are *not* text files.
6249 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6250 register to test for EBCDIC.
6252 2002-03-01 Werner LEMBERG <wl@gnu.org>
6254 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6255 files (as grops already does).
6256 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6258 * src/devices/grops/grops.man: Document comment lines in encoding
6261 * tmac/cp1047.tmac: New file.
6262 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6263 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6264 * tmac/Makefile.sub (NORMALFILES): Updated.
6266 * tmac/ec.tmac: Don't load latin1.tmac again.
6268 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6269 font/devps/generate/dingbats.map,
6270 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6271 font/devps/generate/Makefile (symbolmap): Add header comment.
6272 * font/devps/generate/textmap: Ditto.
6273 Remove `charXXX' entries.
6274 * font/devps/symbolmap: Regenerated.
6275 * font/devps/*: Regenerated all font definition files.
6277 2002-02-28 Werner LEMBERG <wl@gnu.org>
6279 Add color support to grodvi (for drawing colors are currently
6280 translated to gray values).
6282 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6283 (dvi_printer): Add `cur_color' member.
6284 (dvi_printer::set_color): New function.
6285 (draw_dvi_printer): Remove `fill'.
6286 (draw_dvi_printer::fill_next): Pass environment as parameter.
6287 Update code for new color support translated to gray.
6288 (dvi_printer::set_char): Updated.
6289 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6290 changes crossing the page border.
6291 (dvi_printer::draw): Updated.
6292 Remove cases `f' and `F'.
6293 * tmac/dvi.tmac: Add color definitions.
6294 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6296 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6299 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6300 versions of autoconf.
6301 * configure: Updated.
6303 * doc/homepage.ms: Use `.blm'.
6304 * tmac/www.tmac (www-depth): New auxiliary variable.
6305 (www-pop-level): Don't issue HTML tag.
6306 (ULS, ULE, LI): Use absolute indentation.
6308 * src/devices/grops/ps.cc (ps_printer::begin_page,
6309 ps_printer::end_page): Switch forth and back to default color while
6310 starting a new page.
6312 2002-02-27 Werner LEMBERG <wl@gnu.org>
6314 Add EC and TC fonts to devdvi.
6316 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6317 * font/devdvi/generate/cork.map: Renamed to...
6318 * font/devdvi/generate/ec.map: This.
6319 Remove entry for `aq'.
6320 * font/devdvi/generate/tc.map: New file.
6321 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6324 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6325 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6326 * tmac/ec.tmac: New file.
6327 * tmac/Makefile.sub (NORMALFILES): Updated.
6328 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6329 * man/groff_char.man: Check `ECFONTS' register.
6331 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6333 2002-02-26 Werner LEMBERG <wl@gnu.org>
6335 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6336 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6337 * font/devdvi/*: Updated.
6338 * tmac/dvi.tmac: Formatting.
6340 Add font `HBI' for the dvi output.
6341 Add support for font families `T' and `H'.
6343 * font/devdvi/HBI: New file.
6344 * font/devdvi/B: Renamed to ...
6345 * font/devdvi/TB: This.
6346 * font/devdvi/BI: Renamed to ...
6347 * font/devdvi/TBI: This.
6348 * font/devdvi/I: Renamed to ...
6349 * font/devdvi/TI: This.
6350 * font/devdvi/R: Renamed to ...
6351 * font/devdvi/TR: This.
6352 * font/devdvi/H: Renamed to ...
6353 * font/devdvi/HR: This.
6354 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6355 * font/devdvi/generate/Makefile (HBI): New rule.
6357 (R, I, B, BI, H): Renamed to ...
6358 (TR, TI, TB, TBI, HR): This, respectively.
6360 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6361 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6362 Add `styles' and `family' keywords.
6363 * tmac/dvi.tmac: Alias `H' to `HR'.
6364 Add some fspecial requests for italic fonts.
6365 Add TR and TI as special.
6366 Add support for `_' with font CWI.
6368 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6369 operator `:'. Until now, the expression `0:1' would return 2
6372 2002-02-25 Werner LEMBERG <wl@gnu.org>
6374 * man/groff_char.man: Added some missing PS glyph names (from the
6376 * font/devps/generate/textmap, font/devps/symbolmap: Add
6379 * doc/groff.texinfo: Minor additions and fixes.
6380 * man/groff_diff.man: Remove documentation of fp request. This
6381 is already covered in the original troff manual.
6382 Updated to be consistent with other doc files.
6385 2002-02-24 Werner LEMBERG <wl@gnu.org>
6387 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6389 Define new variable OTHERDEVDIRS (containing `font/devlj4
6390 font/devlbp' if not EBCDIC).
6391 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6392 (OTHERDEVDIRS): New variable.
6393 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6394 * configure: Regenerated.
6396 * NEWS, src/devices/grotty/grotty.man: Updated.
6398 2002-02-23 Werner LEMBERG <wl@gnu.org>
6400 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6401 get_line_arg): Honour input level.
6403 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6405 * font/*/*: Implement it in all font files.
6406 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6407 * font/devps/symbolmap: Updated.
6408 * font/devlj4/generate/text.map: Updated.
6409 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6410 * font/devdvi/generate/texmi.map: Updated.
6412 * font/devutf8/R.proto: Remove all `charXXX' entries.
6413 * font/devutf8/NOTES: Updated.
6415 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6418 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6420 * NEWS, man/groff_char.man: Updated.
6422 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6424 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6426 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6428 * src/roff/grog/grog.pl: Fix computation of $refer.
6430 2002-02-19 Werner LEMBERG <wl@gnu.org>
6432 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6433 `snprintf' and `vsnprintf'.
6435 * src/include/htmlindicate.h: Renamed to...
6436 * src/include/htmlhint.h: This.
6437 * src/include/Makefile.sub: Updated.
6438 * src/preproc/eqn/main.cc: Updated.
6440 2002-02-18 Werner LEMBERG <wl@gnu.org>
6442 * man/roff.man, man/groff_out.man, man/groff.man,
6443 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6444 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6446 * win32-diffs: Updated.
6448 2002-02-17 Werner LEMBERG <wl@gnu.org>
6450 * doc/Makefile (clean): Add *.eps.
6451 (MEMACROS): Removed.
6452 (TFLAG): New variable.
6455 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6457 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6459 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6461 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6463 * src/roff/troff/troff.man: Fix order of parameter description.
6467 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6469 Simplify image handling for grohtml.
6472 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6474 (html_text::dump_stack): Don't emit newline while debugging.
6475 (html_text::do_push) [DEBUGGING]: Print more info.
6476 (html_text::check_emit_text): Fix handling of <p>.
6477 * src/devices/grohtml/html.h: Updated.
6478 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6479 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6480 send its data to stderr also.
6482 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6483 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6484 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6486 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6488 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6489 is_inline_image): Removed.
6490 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6491 (graphic_start, graphic_end): Removed.
6492 * src/include/htmlindicate.h: Updated.
6493 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6494 (macroset_template): New global variable.
6495 (makeFileName): Use `macroset_template'.
6496 (write_end_image): Don't take a parameter.
6498 (write_start_image: Don't emit newline.
6499 (char_buffer::write_upto_newline): Updated.
6500 (char_buffer::skip_to_newline): Renamed to ...
6501 (char_buffer::skip_until_newline): This.
6503 (char_buffer::write_file_troff, char_buffer::write_file_html):
6505 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6506 (removeAllPages): Remove `DEBUGGING' conditionals.
6507 (addRegDef, dump_args): New functions.
6508 (char_buffer::do_html, char_buffer::do_image): Handle
6509 `www-image-template' command line variable.
6510 Add more debugging code.
6511 (addps4html): Removed.
6512 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6514 * src/preproc/eqn/main.cc: Include `ctype.h'.
6515 (suppress_html): Removed.
6517 (inline_equation): Use `html_begin_suppress' and
6518 `html_end_suppress'.
6519 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6520 (troff_output::start_picture, troff_output::finish_picture):
6522 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6523 (process_input_file): Updated.
6525 * src/roff/troff/div.cc (page_number): Set page number only if the
6526 `ps4html' register isn't defined.
6527 * src/roff/troff/input.cc (image_no): New external variable.
6528 (do_suppress): Use it.
6529 * src/roff/troff/node.h (suppress_node::image_id): New member.
6530 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6531 (suppress_node::suppress_node): Initialize `image_id' member.
6532 (suppress_node::same): Handle `image_id' also.
6533 (suppress_node::copy): Updated.
6534 (last_image_id): New global variable.
6535 (suppress_node::tprint): Use it.
6537 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6539 * tmac/pspic.mac (PSPIC): Fix html support.
6540 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6541 * tmac/www.tmac (www-image-template): Set up.
6542 (HTMLINDEX): Renamed to...
6544 (BODYCOLOR): Renamed to...
6546 (BACKGROUND): Renamed to...
6548 (URL): Change order of parameters for consistency.
6549 (MAILTO): Renamed to...
6551 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6552 (IMG, PIMG, MPIMG): This.
6553 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6555 (LINKS): Renamed to...
6557 (LINE): Renamed to...
6559 (NO-AUTO-RULE): Renamed to...
6561 (HTML-TL): Renamed to...
6563 (UL-BEGIN, UL-END): Renamed to...
6565 (DROPCAP): Renamed to...
6567 (TS, TE, EQ, EN): Provide default definitions.
6568 (www-make-unique-name): Updated.
6569 (HTML-IMAGE-INLINE): Fix typo.
6570 * tmac/groff_www.man: Updated.
6572 * doc/Makefile (homepage.html): Add option -r to grohtml.
6573 Use shortened image name.
6574 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6575 * doc/homepage.ms: Updated and extended.
6577 2002-02-14 Werner LEMBERG <wl@gnu.org>
6579 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6581 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6582 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6583 (tty_printer::put_color): Use it.
6584 (ttr_printer::end_page): Simplify.
6586 2002-02-13 Werner LEMBERG <wl@gnu.org>
6588 * tmac/groff_tmac.man: Moved to...
6589 * man/groff_tmac.man: This place.
6590 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6592 2002-02-12 Werner LEMBERG <wl@gnu.org>
6594 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6595 $(COMPILE.c) to not include groff's assert.h.
6597 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6599 * NEWS, src/drivers/grotty/grotty.man: Document it.
6601 2002-02-11 Werner LEMBERG <wl@gnu.org>
6603 * src/libs/snprintf/snprintf.c: Updated to latest version
6606 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6607 test whether there is `.]' also.
6608 Don't check for spaces after `.['.
6609 * src/roff/grog/grog.sh: Do the same.
6611 2002-02-10 Werner LEMBERG <wl@gnu.org>
6615 * src/libs/libgroff/illegal.cc: Renamed to ...
6616 * src/libs/libgroff/invalid.cc: This.
6617 (illegal_char_table): Renamed to ...
6618 (invalid_char_table): This.
6619 * src/libs/libgroff/Makefile.sub: Updated.
6620 * win32-diffs: Updated.
6622 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6623 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6624 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6625 font::load), src/preproc/eqn/main.cc (read_line, main),
6626 src/preproc/eqn/lex.cc (file_input::read_line),
6627 src/preproc/pic/lex.cc (file_input::read_line,
6628 simple_file_input::get, simple_file_input::peek),
6629 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6630 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6631 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6632 do_bib), src/preproc/tbl/main.cc (table_input::get),
6633 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6634 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6635 do_zero_width, read_request, encode_char, ps_get_line,
6636 transparent_file, get_char_for_escape_name, transparent_translate,
6637 asciify, input_char_description, read_string, set_string),
6638 src/roff/troff/env.cc (environment::add_html_tag),
6639 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6641 * src/include/lib.h: Updated.
6643 * src/preproc/eqn/eqn.cc: Removed.
6647 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6649 2002-02-09 Werner LEMBERG <wl@gnu.org>
6651 * doc/gnu.xpm: New image.
6652 * doc/Makefile (DOCS): Add homepage.ps.
6653 Add rules for converting xpm->png and xpm->eps.
6654 Use `gnu.{xpm,eps}' as image names.
6655 * doc/homepage.ms: Updated.
6657 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6659 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6660 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6661 Remove calls to `B1' and `B2'
6662 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6663 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6664 auxiliary variables for MARGIN-PNG-IMAGE.
6665 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6666 auxiliary macros for MARGIN-PNG-IMAGE.
6667 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6669 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6670 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6671 (DROPCAP): New macro to produce dropcap characters.
6672 (www-do-image): Renamed back to...
6673 (HTML-DO-IMAGE): This.
6674 Updated all callers.
6676 * doc/Makefile (gnubw.eps): Updated.
6677 * doc/homepage.ms: Updated.
6679 2002-02-08 Werner LEMBERG <wl@gnu.org>
6681 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6682 Added `linethick' to table in section `Style Variables'.
6684 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
6686 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6688 2002-02-07 Werner LEMBERG <wl@gnu.org>
6690 Adding options -C (compatibility mode) and -c (grotty's old output
6693 * src/roff/nroff/nroff.sh: Implement it.
6695 * NEWS, src/roff/nroff/nroff.man: Updated.
6697 * PROBLEMS: Document bison 1.32 bug.
6699 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6701 * src/roff/troff/node.cc (make_tfont): Define it earlier.
6702 * src/roff/troff/div.h: Add prototype for `end_diversions'.
6703 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6704 * src/roff/troff/env.h: Add prototype for `title'.
6706 Adding EBCDIC support to grotty.
6708 * src/devices/grotty/tty.cc (CSI): New macro.
6709 (SGR_*, tty_printer::put_color): Use it.
6711 2002-02-06 Werner LEMBERG <wl@gnu.org>
6713 Implementing color support in grotty. The new switch -c activates
6714 the old drawing scheme, disabling color at the same time. The new
6715 switch `-i' selects italic instead of underlining (SGR only).
6717 * src/devices/grotty/tty.cc (putstring): New define instead of
6718 `fputs'. Updated all callers.
6719 (old_drawing_scheme): New global variable.
6720 (COLOR_CHANGE): New enum value.
6721 (SGR_*): New defines containing color handling escape sequences.
6722 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6723 (glyph): New members `back_color_idx' and `fore_color_idx'.
6724 (glyph::order): Add COLOR_CHANGE.
6725 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6726 `is_underline', `is_bold', `cu_flag', `tty_colors'.
6727 New methods `make_underline', `make_bold', `color_to_idx',
6728 `change_color', `put_color'.
6729 (cu_flag): Moved into `tty_printer' class.
6730 (tty_printer::tty_printer): Initialize colors.
6731 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6732 tty_printer::draw, tty_printer::end_page): Handle colors also.
6733 (main): Add options `-c' and `-i'.
6735 * NEWS, src/devices/grotty/grotty.man: Updated.
6737 * src/include/errarg.h (errarg): Add support for `unsigned int'.
6738 * src/libs/libgroff/errarg.c: Implement it.
6740 * src/include/printer.h (printer): Add `change_color' method
6741 (currently used by grotty only).
6742 * src/libs/libdriver/printer.cc: Implement it.
6743 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6744 call to `pr->change_color'.
6746 * src/roff/troff/node.cc (troff_output_file::fill_color,
6747 troff_output_file::glyph_color): Call `do_motion'.
6749 * tmac/tty.tmac: Add color definitions.
6751 * src/roff/groff/groff.man: Minor fixes.
6753 2002-02-05 Bernd Warken <bwarken@mayn.de>
6755 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6756 it. This is a preparation for future changes.
6758 2002-02-05 Werner LEMBERG <wl@gnu.org>
6760 * src/roff/troff/input.cc (process_input_stack): Fix the case
6761 where leading spaces are followed by \f or \s; previously, an
6762 incorrect space width has been used.
6764 * doc/roff.man (quoted_char): Fix argument.
6765 (comment): Define string.
6767 2002-02-04 Larry Kollar <kollar@alltel.net>
6769 * doc/groff.texinfo: More fixes.
6771 2002-02-04 Werner LEMBERG <wl@gnu.org>
6773 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6774 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6775 `restore_compatibility' before `output_string' -- the LINE_STRING
6776 register now already contains proper switches from and to
6779 * man/groff_char.man: Add Euro symbol.
6780 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6781 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6782 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6785 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6787 (.texinfo.html): Add support for texinfo->html.
6789 2002-02-03 Werner LEMBERG <wl@gnu.org>
6791 Added three new requests `ds1', `as1', and `ami'. The former two
6792 are equivalent to `ds' and `as' with the difference that
6793 compatibility mode is saved on entry, switched off during string
6794 expansion, and restored on exit. The latter is the pendant to `dei'
6797 (do_define_string): Use `define_mode' and `calling mode'.
6798 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6799 end of string, respectively.
6800 (define_string, append_string): Use `calling_mode'.
6801 (define_nocomp_string, append_nocomp_string,
6802 define_string_indirect): New functions.
6803 (init_input_requests): Updated.
6804 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6806 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6807 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
6808 mm macro package accesses this string register directly.
6809 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6811 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
6814 2002-02-02 Larry Kollar <kollar@alltel.net>
6816 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6818 2002-01-31 Werner LEMBERG <wl@gnu.org>
6820 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6822 2002-01-31 Bernd Warken <bwarken@mayn.de>
6824 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6825 * man/groff_out.man: Revised and updated.
6827 2002-01-30 Bernd Warken <bwarken@mayn.de>
6829 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6830 out the unused `{' and `}' commands. Undefined by default.
6831 (IntArray): Make `data' private.
6832 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6833 new methods instead.
6834 (skip_line_D, skip_to_end_of_line): New functions.
6835 (get_D_fixed_args): Use `skip_line_D'.
6836 Changed to handle dummy odd arguments by ...
6837 (get_D_fixed_args_odd_dummy): This new function.
6838 (get_D_variable_args): Split some code into ...
6839 (get_possibly_integer_args): This new function.
6840 (send_draw): Use more `const'.
6841 (delete_current_env): New function.
6842 (position_to_end_of_args): Use `size_t'.
6844 (send_draw): Updated.
6845 (parse_D_command): Handle `c', `C', and `t' better.
6849 2002-01-29 Werner LEMBERG <wl@gnu.org>
6852 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6853 @Def...ListEnd which replaces @Def...x. This is necessary to get
6854 proper HTML output -- see the comment in the file for more
6858 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
6860 Fixes to make color changes of 2002-01-21 work with grohtml.
6862 * src/devices/grohtml/post-html.cc (style): Updated.
6863 (html_printer): Remove unused methods.
6864 (html_printer::do_font, html_printer::draw, html_printer::set_char,
6865 html_printer::special): Updated.
6866 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6867 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6868 Added some debugging code.
6869 (html_text::start_tag): Updated.
6870 (html_text::do_push): New method.
6871 (html_text::push_para): Call it.
6872 Add method for handling color.
6873 (html_text::do_color): Updated.
6874 (html_text::shutdown): Handle color.
6875 * src/devices/grohtml/html-text.h (tag_definition): New member
6879 2002-01-28 Werner LEMBERG <wl@gnu.org>
6881 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6883 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
6885 Add two switches -a and -g to control the antialiasing bits for
6886 text and graphics, respectively.
6888 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6890 * src/devices/grohtml/grohtml.man: Document them.
6891 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6893 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6894 (setupAntiAlias): New function.
6895 (createAllPages): Updated.
6896 (scanArguments): Handle `-a' and `-g'.
6897 (main): Call `setupAntiAlias'.
6900 2002-01-27 Werner LEMBERG <wl@gnu.org>
6902 * doc/groff.texinfo (Def*): Call index function after deffn.
6904 * tmac/html.tmac: Call `nroff' request.
6906 2002-01-26 Larry Kollar <kollar@alltel.net>
6908 * tmac/groff_ms.man: Add some omissions.
6910 2002-01-25 Larry Kollar <kollar@alltel.net>
6912 * tmac/groff_ms.man: Typographical improvements.
6914 2002-01-25 Werner LEMBERG <wl@gnu.org>
6916 * doc/groff.texinfo: Updated version and copyright.
6917 * src/devices/grops/grops.man: Updated.
6919 * tmac/groff_tmac.man: Fix `ig' macro.
6921 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6923 Use `.ne' unconditionally everywhere.
6924 (TS): Only insert some vertical space. Doing a page break is no
6925 longer necessary due to the redefinition of the `ne' request.
6927 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6928 warning for unknown subcommands but parse and pass them to the
6931 2002-01-24 Werner LEMBERG <wl@gnu.org>
6933 * tmac/groff_www.man, NEWS: Fix typos.
6935 2002-01-21 Werner LEMBERG <wl@gnu.org>
6937 Complete revision of color support:
6939 Adapt programs to the new libdriver/input.cc.
6941 Color spaces are no longer converted to RGB but transferred as-is
6942 in the troff intermediate output format.
6944 Handle default color gracefully. troff now supports a `default'
6945 color (which can't be changed).
6947 grops will now use the proper color space functions if available.
6951 Note that currently grohtml doesn't handle colors properly. This
6954 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6955 (ui_to_a): New function.
6956 * src/include/lib.h: Updated.
6958 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6959 (color): Simplified; removed all `double' members and methods.
6960 A new array `components' now holds the color parameters.
6961 (color::is_default, color::get_components): New methods.
6962 (color::operator==, color:operator!=): New.
6963 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6964 to make access to the `components' array more comprehensible.
6965 * src/libs/libgroff/color.cc: Implement new color support.
6966 (atoh): Small fixes.
6967 (color::read_encoding): Simplified for new troff intermediate color
6969 (default_color): New global variable.
6971 * src/roff/troff/input.cc (default_symbol): New global variable.
6972 (lookup_color): Use it.
6973 (default_black): Removed.
6974 (do_glyph_color, do_fill_color): Simplified.
6975 (define_color): Handle default color.
6977 (do_if_request): Handle default color.
6978 * src/roff/troff/env.cc (environment::environment): Initialize
6979 colors with `default_color'.
6980 * src/roff/troff/node.cc (troff_output_file::put): Add method
6982 (troff_output_file::hex): Removed.
6983 (troff_output_file::fill_color, troff_output_file::glyph_color):
6984 Updated to include/color.h and libdriver/input.cc.
6986 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6987 fill color properly (identically to the outline color). \D'f...'
6988 doesn't work any more.
6989 All function calls to it updated.
6991 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6993 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6996 * src/devices/grops/ps.cc (ps_output::put_color): New method.
6997 (ps_printer::sbuf_color): Make a real member instead of pointer.
6998 (ps_printer::fill_color, ps_printer::output_color): Removed.
6999 (ps_printer::ps_printer): Updated.
7000 (ps_printer::set_char): Ditto.
7001 (ps_printer::set_color): Use various color schemes.
7002 Use `put_color' method.
7003 (ps_printer::flush_sbuf): Don't set color.
7004 (ps_printer::fill_path): Take `environment' as parameter.
7005 Simplify color handling.
7006 (ps_printer::set_line_thickness): Renamed to ...
7007 (ps_printer::set_line_thickness_and_color): This (and updated).
7008 (ps_printer::set_color): Change second parameter from `complete'
7009 to `fill' which better describes what it does.
7010 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7011 and text in the right order.
7013 Remove branches for `f' and `F'; this is handled by
7015 * src/devices/grops/ps.h: Updated.
7016 * font/devps/prologue (FL): Redefined.
7017 ({F,C}r,k,g: New color functions (with and without filling).
7019 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7020 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7021 doc/groff.texinfo, NEWS: Updated.
7023 2002-01-20 Bernd Warken <bwarken@mayn.de>
7025 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7026 in this file for what has been changed.
7028 2002-01-19 Werner LEMBERG <wl@gnu.org>
7030 * test-groff: Fix GROFF_FONT_PATH.
7031 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7032 is read before .TH or .Dd is parsed.
7034 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7036 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7037 quadrant boundaries.
7039 2002-01-18 Werner LEMBERG <wl@gnu.org>
7041 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7044 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7046 * tmac/doc.common: Initialize %I register for the %I macro to
7047 avoid (harmless) warning.
7048 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7049 when in the SYNOPSIS section.
7051 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7053 * src/preproc/pic/lex.cc (get_token): Fix typo.
7055 2002-01-17 Werner LEMBERG <wl@gnu.org>
7057 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7059 2002-01-17 Larry Kollar <kollar@alltel.net>
7061 * tmac/groff_ms.man: Completely rewritten.
7063 2002-01-16 Werner LEMBERG <wl@gnu.org>
7065 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7067 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7069 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7071 (ps_printer::draw): Ditto.
7073 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7075 * tmac/groff_mdoc.man: Minor fixes.
7077 2002-01-13 Werner LEMBERG <wl@gnu.org>
7079 * man/groff_out.man: Some fixes.
7081 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7083 * doc/pic.ms: Fix typos.
7085 2002-01-12 Werner LEMBERG <wl@gnu.org>
7087 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7089 2002-01-10 Werner LEMBERG <wl@gnu.org>
7091 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7095 2002-01-09 Bernd Warken <bwarken@mayn.de>
7097 * man/groff_out.man: Revised.
7098 * man/roff.man: Minor fixes.
7099 * src/roff/troff/troff.man: Some reordering.
7101 2002-01-09 Werner LEMBERG <wl@gnu.org>
7103 * tmac/an-old.tmac: Add dummy macros for equation support.
7105 2002-01-07 Werner LEMBERG <wl@gnu.org>
7107 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7109 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7111 * tmac/groff_man.man: Small improvements.
7113 2002-01-07 Bernd Warken <bwarken@mayn.de>
7115 * man/groff_diff.man: Revised.
7117 2002-01-06 Werner LEMBERG <wl@gnu.org>
7119 * tmac/www.tmac: Remove extraneous backslash.
7121 2002-01-06 Bernd Warken <bwarken@mayn.de>
7123 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7125 2002-01-05 Werner LEMBERG <wl@gnu.org>
7127 Integrated groffer, contributed by Bernd Warken.
7129 * contrib/groffer/*: New.
7130 * Makefile.in, NEWS: Updated.
7132 2002-01-04 Werner LEMBERG <wl@gnu.org>
7134 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7135 registers defined in macro packages.
7136 Revising the ms part.
7138 2002-01-04 Larry Kollar <kollar@alltel.net>
7140 * doc/groff.texinfo: Add documentation for ms macros.
7142 2002-01-02 Werner LEMBERG <wl@gnu.org>
7144 First step in adding PS support for the Euro symbol. `eu' is the
7145 official Euro logo, `Eu' is a font-specific glyph variant.
7147 * font/devps/text.enc: Add `Euro' at position 9.
7148 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7149 * font/devps/symbolmap: Regenerated.
7153 2002-01-02 Bernd Warken <bwarken@mayn.de>
7155 * man/roff.man: Revised.
7157 2002-01-01 Bernd Warken <bwarken@mayn.de>
7159 * src/roff/groff/groff.man: Completely rewritten.
7161 2001-12-31 Werner LEMBERG <wl@gnu.org>
7163 * doc/Makefile: Updated.
7165 2001-12-30 Werner LEMBERG <wl@gnu.org>
7167 * tmac/www.tmac: Make all names of internal macros/registers/strings
7168 lowercase, and prepend `www-'.
7169 Other minor changes.
7170 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7172 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7174 Implement option `-b' in grohtml to set the HTML background colour.
7176 * src/devices/grohtml/post-html.cc (default_background): New global
7178 (html_printer::html_printer): Initialize `background' to
7179 `default_background'.
7180 (main): Implement option `-b'.
7182 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7184 * src/devices/grohtml/grohtml.man: Updated.
7185 * doc/Makefile (.ms.html): Use `-b'.
7186 * tmac/html.tmac: Don't set background color.
7188 Add new grohtml tag `.html-tl'.
7190 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7192 (title_desc::title_desc): Updated.
7193 (html_printer::troff_tag): Handle `.html-tl'.
7194 (html_printer::write_title): Use `with_h1'.
7195 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7196 (HTML-TL): New macro.
7198 Add support for unordered lists in HTML.
7200 * tmac/www.tmac (www-level): New auxiliary register.
7201 (www-level1, www-level2, www-level3): New auxiliary strings.
7202 (www-push-level, www-pop-level): New auxiliary macros
7203 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7207 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7208 (DEFAULT_VERTICAL_OFFSET): Removed.
7209 (IMAGE_BOARDER_PIXELS): Set to 0.
7210 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7211 (vertical_offset): Initialize with 0.
7212 (gsPaper): New global variable.
7213 (get_resolution): Scan for and return unsigned int.
7214 (get_papersize): New function to get paper length from devps/DESC.
7215 (determine_vertical_offset): New function.
7216 (createAllPages): Produce gray-level images and use proper page
7218 (createImage): Use `-quiet' option of pnmcrop.
7219 (addZ): Fix passing of `-Z'.
7220 (scanArguments): Fix handling of `-o'.
7221 (main): Call `determine_vertical_offset'.
7222 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7225 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7226 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7227 glyph descenders properly.
7229 * doc/homepage.ms: Include `gnubw.eps'.
7230 * doc/Makefile (gnubw.eps): New rule.
7231 (homepage.html): Depend on `gnubw.eps'.
7233 2001-12-25 Werner LEMBERG <wl@gnu.org>
7235 * src/roff/troff/input.cc (default_black): Fix return value.
7237 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7239 * tmac/doc-common (Dt): Change output of architecture strings.
7240 Do some syntax cleanup.
7241 * tmac/groff_mdoc.man: Updated.
7243 2001-12-23 Werner LEMBERG <wl@gnu.org>
7245 Adding an `itc' request (input line trap accepting \c).
7247 * src/roff/troff/env.h (environment): New member
7248 `continued_input_trap'.
7249 Make `do_input_trap' a friend function instead of `input_trap'.
7250 * src/roff/troff/env.cc (environment::environment,
7251 environment::copy): Updated.
7252 (environment::newline): Implement it.
7253 (do_input_trap): New function.
7254 (input_trap): Call `do_input_trap'.
7255 (input_trap_continued): New function.
7256 (init_env_requests): Updated.
7257 * src/roff/troff/TODO: Updated.
7259 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7262 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7264 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7266 * tmac/doc-common, tmac/doc-syms: Small updates.
7268 2001-12-22 Colin Watson <cjwatson@debian.org>
7270 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7272 2001-12-22 Bernd Warken <bwarken@mayn.de>
7274 * MANIFEST: New file.
7276 2001-12-22 Werner LEMBERG <wl@gnu.org>
7278 * src/preproc/grn/grn.man: Updated.
7280 2001-12-22 Solar Designer <solar@openwall.com>
7282 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7285 2001-12-19 Werner LEMBERG <wl@gnu.org>
7287 Implement a fallback character request `.fchar'.
7289 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7290 (is_fallback): New inline function.
7291 * src/roff/troff/input.cc (do_define_character): New function.
7292 (define_character): Call `do_define_character'.
7293 (define_fallback_character): New function.
7294 (init_input_requests): Add `fchar'.
7295 (charinfo::charinfo): Updated.
7296 (charinfo::set_macro): New argument to set `fallback' flag.
7297 * src/roff/troff/node.cc (make_glyph_node, make_node,
7298 node::add_char): Check `fallback' flag.
7299 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7301 2001-12-16 Werner LEMBERG <wl@gnu.org>
7303 * groff.texinfo: Document exact search algorithm for glyphs.
7305 2001-12-15 Werner LEMBERG <wl@gnu.org>
7307 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7308 the left side of $(MANPAGES) rule to make it always non-empty.
7310 2001-12-14 Werner LEMBERG <wl@gnu.org>
7312 * src/roff/troff/input.cc (default_black): Define default color
7313 `black' if not yet defined.
7315 2001-12-13 Werner LEMBERG <wl@gnu.org>
7317 Implement new string-valued register `.fn' to return the current
7318 real (internal) font name.
7320 * env.cc (environment::get_font_name_string): New function.
7321 (init_env_requests): Add `.fn' register.
7322 * env.h (environment): Updated.
7323 * node.cc (font_info): Make `get_font_name' a friend.
7324 (get_font_name): New function.
7327 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7329 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7331 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7333 2001-12-12 Werner LEMBERG <wl@gnu.org>
7335 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7337 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7339 * man/groff_diff.man: Adding documentation for \O.
7341 2001-12-10 Werner LEMBERG <wl@gnu.org>
7343 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7344 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7346 2001-12-09 Werner LEMBERG <wl@gnu.org>
7348 * man/roff.man: Revised.
7349 * src/roff/groff/groff.man: Replace man page references with a
7350 pointer to roff.man.
7352 2001-12-09 Bernd Warken <bwarken@mayn.de>
7354 * man/roff.man: Completely rewritten.
7356 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7358 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7360 2001-12-05 Werner LEMBERG <wl@gnu.org>
7362 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7364 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7365 order of initializers.
7368 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7370 * doc/groff.texinfo: Fix documentation of \O.
7372 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7373 html_text::do_table, html_text::do_emittext, html_text::do_para):
7374 Use `const' for first argument.
7375 (html_text::do_table): Use cast.
7376 * src/devices/grohtml/html-text.h: Updated.
7377 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7378 method for `const string &s'.
7379 * src/devices/grohtml/html.h: Updated.
7380 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7381 (ANCHOR_TEMPLATE): Modified.
7382 (manufacture_headings): New global variable to handle `-h' option.
7383 (is_subsection): Removed.
7384 (char_buffer::add_string): Add `const' to first argument.
7385 Protect against invalid string argument.
7386 Add method for `const string &s'.
7387 (text_glob): Completely redesigned.
7388 (page): Use `const' for strings and remove string length variable.
7389 (page::add_html): Removed.
7390 (page::add_end_encode): New member function.
7391 (to_unicode): Moved upwards.
7392 (title_desc, header_desc): Updated.
7393 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7395 (html_printer::is_bold, html_printer::make_bold): New member
7397 (html_printer::end_of_line): Updated.
7398 (generate_img_src, html_printer::do_auto_image,
7399 html_printer::do_title, html_printer::write_header,
7400 html_printer::determine_header_level, html_printer::do_heading,
7401 html_printer::do_linelength, html_printer::do_pageoffset,
7402 html_printer::do_indentation, html_printer::do_tempindent,
7403 html_printer::do_indentedparagraph, html_printer::do_break,
7404 html_printer::flush_sbuf, get_html_translation,
7405 html_printer::begin_page, html_printer::special): Rewritten to get
7406 rid of static string length limit.
7407 (html_printer::troff_tag): Added `.no-auto-rule'.
7408 (html_printer::flush_globs): Small fix.
7409 (html_printer::determine_space): Don't compute `space_width'.
7410 (html_printer::translate_to_html): Renamed to ...
7411 (html_printer::emit_html): This (with updates).
7412 (html_printer::write_header): Implement `-h' option.
7413 (html_printer::draw): Remove commented-out code. Handle `F'
7415 (html_printer::add_char_to_sbuf): Removed.
7416 (html_printer::add_to_sbuf): Rewritten.
7417 (html_printer::sbuf_continuation): Fixed.
7418 (html_printer::seen_backwards_escape, reverse,
7419 html_printer::remove_last_char_from_sbuf): Removed.
7420 (char_translate_to_html, str_translate_to_html): Removed.
7421 (html_printer::overstrike): New function member.
7422 (html_printer::set_char): Use it.
7423 (html_printer::do_body): New function member.
7424 (html_printer::~html_printer): Use it.
7425 (main): Handle `-h' option.
7427 * src/devices/grohtml/grohtml.man: Document -h switch.
7429 * src/preproc/html/pre-html.cc: Include searchpath.h
7430 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7431 (get_resolution): New function.
7432 (checkImageDir): Use `0777' permissions in mkdir()
7433 (write_start_image): Rewritten to use `\O[5...]'.
7434 (createImage, generateImages): Updated.
7435 (main): Handle `F' and `h' options.
7436 Use `get_resolution'.
7438 * src/roff/troff/input.cc (begin, end, image): Removed.
7439 (do_suppress): Take parameter.
7440 Handle modified syntax of `\O'.
7441 (token::next): Updated.
7442 (init_markup_requests): Removed.
7445 * src/roff/troff/div.h: Add declaration for begin_page().
7447 * tmac/color-html.tmac: Removed. Contents moved to...
7448 * tmac/html.tmac: Here. Set background color.
7449 * tmac/color.tmac: Removed. Contents moved to...
7450 * tmac/ps.tmac: Here.
7451 * tmac/www.tmac: Remove the title command when generating images
7453 (NO_AUTO_RULE): New macro.
7454 (HTML_DO_IMAGE): Use revised `\O' escapes.
7455 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7457 2001-12-02 Werner LEMBERG <wl@gnu.org>
7459 * tmac/groff_mdoc.man: Fix typo.
7461 2001-12-01 Colin Watson <cjwatson@debian.org>
7463 * man/roff.man: Fix typo.
7465 2001-11-29 Werner LEMBERG <wl@gnu.org>
7467 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7470 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7471 more than one argument to \D'f ...'.
7473 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7475 2001-11-28 Werner LEMBERG <wl@gnu.org>
7477 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7480 * tmac/groff_man.man: Minor cosmetic fix.
7482 2001-11-27 Werner LEMBERG <wl@gnu.org>
7484 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7485 tmac/groff_www.man: s/mwww/www/.
7487 2001-11-26 Werner LEMBERG <wl@gnu.org>
7489 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7490 * configure: Regenerated.
7491 * win32-diffs: Updated.
7493 * tmac/groff_mwww.tmac: Renamed to ...
7494 * tmac/groff_www.tmac: This.
7495 * tmac/mwww.tmac: Removed.
7496 * NEWS, tmac/Makefile.sub: Updated.
7498 2001-11-21 Werner LEMBERG <wl@gnu.org>
7500 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7501 Fix explanation of `\D' and `rt'.
7503 2001-11-20 Werner LEMBERG <wl@gnu.org>
7505 * tmac/an-old.tmac (an-header): Set header length equal to page
7507 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7511 2001-11-19 Werner LEMBERG <wl@gnu.org>
7513 * NEWS, man/Makefile.sub: Updated.
7515 2001-11-19 Bernd Warken <bwarken@mayn.de>
7517 * man/ditroff.man: New file.
7519 2001-11-17 Werner LEMBERG <wl@gnu.org>
7521 * man/groff_differences.man: Renamed to ...
7522 * man/groff_diff.man: This. Updated.
7523 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7525 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7526 * src/preproc/html/pushback.cc: This. Updated.
7527 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7528 * src/preproc/html/pushback.h: This.
7529 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7532 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7533 * src/libs/libgroff/htmlhint.cc: This.
7534 * src/libs/libgroff/Makefile.sub: Updated.
7536 * tmac/an-old.tmac (an-end): Fix page length.
7538 2001-11-16 Werner LEMBERG <wl@gnu.org>
7540 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7541 * man/Makefile.sub: Include groff_differences.man.
7542 * VERSION: Set to 1.18.
7543 * REVISION: Set to 0.
7545 2001-11-16 Bernd Warken <bwarken@mayn.de>
7547 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7548 the second dot (or ending macro name) to end a macro.
7549 * doc/groff.texinfo: Doc fix.
7551 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7553 * tmac/doc-common (doc-header): Handle very long document titles
7556 2001-11-16 Werner LEMBERG <wl@gnu.org>
7558 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7560 2001-11-15 Werner LEMBERG <wl@gnu.org>
7562 * src/roff/troff/troff.man: Revised and split into troff.man and...
7563 * man/groff_differences.man: New file.
7566 2001-11-13 Werner LEMBERG <wl@gnu.org>
7568 * tmac/an-old.tmac (TS, TE): New macros for table support.
7570 2001-11-12 Werner LEMBERG <wl@gnu.org>
7572 * src/include/lib.h: Provide a fix for emx to not include
7575 2001-10-27 Werner LEMBERG <wl@gnu.org>
7577 * src/roff/troff/input.cc (substring_macro): Fix computation of
7580 2001-10-20 Werner LEMBERG <wl@gnu.org>
7582 Undo change from 2001-08-28.
7584 * src/roff/troff/input.cc (have_input): New global variable.
7585 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7586 in compatibility mode.
7587 (process_input_stack): Use it.
7589 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7591 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7592 being handled as end-of-sentence characters,
7594 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7596 * src/roff/troff/input.cc (file_iterator): New members
7597 `suppress_newline_flag' and `seen_escape'.
7598 (file_iterator::next_file): Updated.
7599 (file_iterator::fill): Use it.
7600 (string_iterator): New member `suppress_newline_flag'.
7601 (string_iterator::fill): Set it.
7602 (get_color_element): Use MAX_COLOR_VAL.
7603 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7604 (no_fill): Don't set `env->ignore_next_eol'.
7605 (environment::newline): Handle `eol' tag properly.
7607 (environment::add_html_tag): Set `env->ignore_next_eol'.
7609 * src/roff/troff/env.h (environment): Updated.
7611 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7613 (html_printer::outstanding_eol): New member function.
7614 (html_printer::do_title): Use new functions.
7615 (html_printer::troff_tag): Test `id_eol_ce'.
7617 2001-10-10 Werner LEMBERG <wl@gnu.org>
7619 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7620 files work with -C also.
7622 2001-10-05 Werner LEMBERG <wl@gnu.org>
7624 * doc/pic.ms: Minor fix.
7625 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7626 as a valid command line switch.
7627 * src/devices/grohtml/post-html.cc (main): Ditto.
7629 * src/devices/grohtml/grohtml.man: Updated.
7630 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7632 2001-10-04 Werner LEMBERG <wl@gnu.org>
7634 Implementing color support in troff, pic, grops, and grohtml. These
7635 changes are based on a major patch provided by Gaius Mulley
7638 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7639 definitions with both hex values and fractions.
7641 New escapes: \m and \M for drawing and background color,
7642 respectively. This corresponds to the troff output commands `m'
7645 groff and troff accept command line switch `-c' to disable color
7646 output (which is automatically disabled in compatibility mode).
7648 New scaling indicator `f' for fractions (1f = 65536u).
7650 New conditional operator `m' to test for defined colors with `if'
7653 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7654 (or `outlined'), and `shaded' added to pic.
7656 * src/include/color.h: New file.
7657 * src/include/driver.h: Include it.
7658 * src/include/printer.h: Include color.h.
7659 (environment): New members `col' and `fill'.
7660 (printer): Remove `adjust_arc_center' member function.
7661 * src/include/Makefile.sub: Updated.
7663 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7665 Handle `m' and `DF' troff commands.
7666 * src/libs/libgroff/color.cc: New file.
7667 * src/libs/libgroff/Makefile.sub: Updated.
7669 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7671 (createImage): Fix computation of `y2'.
7673 (buffer::write_file_html): Remove calls to `stop'.
7675 * src/preproc/pic/common.h (common_output): New abstract function
7676 members `set_color', `reset_color', `get_last_filled', and
7677 `get_outline_color'.
7678 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7679 (object_spec): Add members `shaded' and `outlined'.
7680 * src/preproc/pic/output.h (output): `command' is now abstract.
7681 New function members `set_color', `reset_color', `get_last_filled',
7682 and `get_outline_color'.
7683 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7684 `outline[d]', and `shaded'.
7685 * src/preproc/pic/object.cc (output::command): Removed.
7686 (output::set_location): Moved to output.h.
7687 (graphic_object): Add protected members `outline_color' and
7689 Add member functions `set_outline_color', `get_outline_color', and
7691 (closed_object): Add member function `set_fill_color'.
7692 Add member `color_fill'.
7693 (graphic_object::print_text): Use `out->set_color' and
7695 (box_object::print, ellipse_object::print, circle_object::print,
7696 line_object::print, spline_object::print, arc_object::print): Ditto.
7697 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7698 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7699 `SHADED', making them `%left'.
7700 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7701 * src/preproc/pic/tex.cc (tex_output): New dummy function members
7702 `set_color', `reset_color', `get_last_filled', and
7703 `get_outline_color'.
7704 * src/preproc/pic/troff.cc (simple_output): New abstract function
7705 members `set_color', `reset_color', and `get_last_filled'.
7706 (simple_output::polygon, simple_output::circle,
7707 simple_output::ellipse): Use `get_last_filled'.
7708 (troff_output): New members `last_filled' and `last_outlined'.
7709 New function members `set_color', `reset_color', `get_last_filled',
7710 and `get_outline_color'.
7711 (troff_output::finish_picture): Use `reset_color'.
7712 (troff_output::set_fill): Test `last_filled'.
7713 * src/preproc/pic/pic.man: Updated.
7715 * src/roff/groff/groff.cc (main): Implement `-c' option.
7716 (synopsis, help): Updated.
7717 src/roff/groff/groff.man: Updated.
7719 * src/roff/troff/troff.h: Include color.h.
7720 (warning_type): Add WARN_COLOR.
7721 * src/roff/troff/env.h (environment): New members
7722 `{cur,prev}_{glyph,fill}_color'.
7723 New member functions `get_{prev_,}{glyph,fill}_color'.
7724 * src/roff/troff/env.cc: Initialize and implement them.
7725 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7726 Replace `NULL' with `0' everywhere for consistency.
7727 (lookup_color, default_black, do_glyph_color, do_fill_color,
7728 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7729 define_color): New functions.
7730 (token::next): Implement \M and \m escapes.
7731 (do_if_request): Implement `m' operator.
7733 (main): Implement `-c' option.
7734 (init_markup_requests): Add `defcolor' request.
7735 (warning_table): Add `color' warning.
7736 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7738 * src/roff/troff/node.cc (troff_output_file): New members
7739 `current_{page,glyph}color'. New member functions `put_hex',
7740 `glyph_color', and `fill_color'.
7741 (glyph_color_node::*, fill_color_node::*): Implement it.
7742 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7743 (parse_term): Add support for `f'.
7744 * src/roff/troff/troff.man: Updated.
7746 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7748 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7749 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7751 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7752 (tag_definition): Use `void *' for arg1.
7753 (html_text): New member functions `do_color' and `done_color'.
7754 Use `void *' for second parameter of `push_para' member function.
7755 New `push_para' member function with a single parameter.
7756 Use `char *' for parameter of `issue_table_begin' member funtion.
7757 New `issue_color_begin' member function.
7758 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7760 (html_text::issue_color_begin): New function.
7761 (html_text::issue_table_begin): Use `char *' for parameter.
7762 (html_text::start_tag, html_text::shutdown,
7763 html_text::check_emit_text): Updated.
7764 (html_text::push_para): Use `void *' for second parameter.
7765 Add same function with only one parameter.
7766 (html_text::do_*): Updated.
7767 (html_text::do_color, html_text::done_color): New functions.
7768 * src/devices/grohtml/post-html.cc (style): New member `col'.
7769 Mew member `style' with 6 parameters.
7770 (style::style, style::operator==): Updated.
7771 (html_printer::do_font): Use it.
7772 (html_printer::draw): Add dummy entry for `F'.
7773 (html_printer::set_char): Updated.
7774 * src/devices/grohtml/grohtml.man: Updated.
7776 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7777 trailing zeroes removed.
7778 (ps_printer): New members `sbuf_color', `fill_color', and
7780 Removed member `fill'.
7781 New member function `set_color'.
7782 (ps_printer::ps_printer, ps_printer::set_char): Updated.
7783 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7784 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7786 * tmac/color-html.tmac, tmac/color.tmac: New files.
7787 * tmac/troffrc: Include them.
7788 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7789 * tmac/Makefile.sub: Updated.
7791 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7792 man/groff.man: Updated.
7793 * font/devps/prologue.ps: Define FC and CO functions.
7795 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
7797 Fix incorrect cropping of images and incorrect handling of special
7798 characters. Fix handling of file names in \O.
7800 * src/include/geometry.h: New file.
7801 * src/libs/libgroff/geometry.cc: New file.
7802 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7804 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7806 (do_suppress): Updated.
7807 * src/roff/troff/node.cc: Include geometry.h.
7808 (troff_output_file::flush_tbuf): Fixed parameters to
7809 `check_output_limits'.
7810 (troff_output_file::check_charinfo): Ditto.
7811 (troff_output_file::determine_line_limits): Add support for `Da'
7814 * src/devices/grohtml/post-html.cc (str_translate_to_html):
7815 Add new parameter `is_special' to decode special characters from
7817 (html_printer::do_title, html_printer::do_heading,
7818 html_printer::do_indentedparagraph,
7819 html_printer::translate_to_html, html_printer::special): Updated.
7821 2001-10-03 Werner LEMBERG <wl@gnu.org>
7823 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7824 Fix entry for config.h.
7825 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7826 * tmac/troffrc: Translate nonbreakable space character to `\~'.
7827 * src/preproc/eqn/eqn.man: Document -d command line option.
7829 2001-09-27 Werner LEMBERG <wl@gnu.org>
7831 * man/groff.man: Use
7839 instead of the old code (`.ad .hy' after the table) to suppress
7840 incorrect hyphenation for grohtml output.
7842 2001-09-22 Werner LEMBERG <wl@gnu.org>
7844 * man/groff_font.man, man/groff_out.man: Minor fixes.
7846 2001-09-20 Werner LEMBERG <wl@gnu.org>
7848 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
7849 Arnold Robbins <arnold@skeeve.com>).
7851 2001-09-09 Werner LEMBERG <wl@gnu.org>
7853 * configure: Regenerated with autoconf 2.52.
7855 * doc/groff.texinfo: Complete revision of indices.
7857 2001-09-07 Werner LEMBERG <wl@gnu.org>
7859 * doc/Makefile (clean): Updated to delete all indices.
7861 2001-09-05 Werner LEMBERG <wl@gnu.org>
7863 * src/roff/troff/troff.man: Remove superfluous line.
7865 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7866 given on the command line (or rather, if only the default warnings
7869 2001-09-03 Werner LEMBERG <wl@gnu.org>
7871 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7872 use .ne for TTY devices.
7874 2001-08-31 Werner LEMBERG <wl@gnu.org>
7876 * src/roff/troff/token.h, src/roff/troff/input.cc:
7877 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7879 2001-08-28 Werner LEMBERG <wl@gnu.org>
7881 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7882 * src/roff/troff/input.cc (token::next): Return
7883 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7885 (token::description): Updated.
7886 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7887 (token::add_to_node_list, token::process): Ignore
7888 TOKEN_TRANSPARENT_ESCAPE.
7890 2001-08-27 Werner LEMBERG <wl@gnu.org>
7892 * tmac/an-old.tmac: Fix `S' string.
7894 2001-08-26 Werner LEMBERG <wl@gnu.org>
7896 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7898 2001-08-25 Werner LEMBERG <wl@gnu.org>
7900 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7902 Many other minor fixes.
7904 * configure.ac: Add message at end to inform how to compile
7906 * configure: Regenerated.
7908 2001-08-24 Werner LEMBERG <wl@gnu.org>
7910 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7911 Updated to latest version of libc.
7913 2001-08-23 Werner LEMBERG <wl@gnu.org>
7915 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7916 Autoconf 2.50 and newer can handle this.
7917 * configure: Regenerated.
7919 2001-08-21 Werner LEMBERG <wl@gnu.org>
7921 * doc/pic.ms: Fix typo.
7922 * src/preproc/tbl/tbl.man: Document case of global options.
7924 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
7926 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7927 handling of `CR' font.
7929 2001-08-20 Werner LEMBERG <wl@gnu.org>
7931 Use a config.h file.
7933 * src/include/lib.h: Include config.h.
7934 * All C files: Ditto (if necessary).
7935 * All C++ source and header files: Include lib.h first (if
7938 * src/include/config.hin: New file (autogenerated by autoheader).
7939 * stamp-h.in: New file.
7940 * configure.ac: Updated.
7941 * aclocal.m4: Add third parameters to AC_DEFINE macros.
7942 (GROFF_ARRAY_DELETE): Simplified.
7943 * Makefile.sub (DISTCLEANFILES): Updated.
7944 Added targets for remaking config.status, config.hin, config.h,
7945 stamp-h.in, and stamp-h.
7946 * configure: Regenerated.
7948 2001-08-19 Werner LEMBERG <wl@gnu.org>
7952 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
7954 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7955 (do_sprintf): Use snprintf().
7957 2001-08-18 Werner LEMBERG <wl@gnu.org>
7959 * src/libs/snprintf/*: Added an snprintf module written by Mark
7961 * src/libs/libgroff/Makefile.sub: Updated.
7962 * configure.ac: Add test for snprintf().
7963 * Makefile.in: Updated.
7964 * configure: Regenerated.
7966 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7969 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
7971 * tmac/doc.tmac (Ex): New implementation.
7972 * tmac/doc-common, tmac/groff_tmac.man: Updated.
7974 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
7976 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7978 * tmac/groff_tmac.man: Updated.
7980 2001-08-13 Werner LEMBERG <wl@gnu.org>
7982 * src/preproc/tbl/tbl.man: Minor documentation update.
7984 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
7986 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7987 * configure.ac: Add declaration test for gettimeofday().
7988 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7989 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7990 * configure: Regenerated.
7992 2001-08-11 Werner LEMBERG <wl@gnu.org>
7994 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7995 * configure.ac: Add declaration test for strcasecmp().
7996 * Makefile.in: Updated.
7997 * configure: Regenerated.
7998 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7999 this is necessary because groff's mkstemp.cc is C++.
8000 Add declaration conditionally for strcasecmp().
8002 2001-08-10 Werner LEMBERG <wl@gnu.org>
8004 Integrated pic2graph, contributed by Eric S. Raymond.
8006 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8008 * Makefile.in, NEWS: Updated.
8010 * src/preproc/tbl/tbl.man: Revised.
8012 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8014 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8016 2001-08-09 Werner LEMBERG <wl@gnu.org>
8018 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8021 2001-08-08 Paul Eggert <eggert@twinsun.com>
8023 * Makefile.sub (configure): Depend on configure.ac, not
8025 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8027 2001-08-07 Werner LEMBERG <wl@gnu.org>
8029 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8032 2001-08-06 Werner LEMBERG <wl@gnu.org>
8034 * src/roff/troff/troff.man: Improve documentation of -E option.
8036 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8038 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8041 2001-07-27 Werner LEMBERG <wl@gnu.org>
8043 * src/preproc/refer/refer.cc: Undo last change.
8044 * src/devices/grohtml/post-html.cc: Ditto.
8046 2001-07-26 Werner LEMBERG <wl@gnu.org>
8048 * src/preproc/refer/refer.cc: Include `lib.h'.
8049 * src/devices/grohtml/post-html.cc: Ditto.
8051 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8053 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8054 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8055 * Makefile.in: Comment updated.
8056 * configure: Regenerated.
8058 2001-07-25 Werner LEMBERG <wl@gnu.org>
8060 * src/preproc/pic/pic.cc: Removed.
8061 * src/preproc/pic/pic_tab.h: Removed.
8062 * src/preproc/refer/label.cc: Removed.
8064 * doc/Makefile (.ms.html): Don't use a file name extension in
8065 argument to grohtml's -I option.
8066 * Makefile.in (dist): Remove CVS directories.
8067 Call `distfiles' target.
8069 * src/devices/grohtml/grohtml.man: Add information about valid
8070 versions of pnmtopng.
8071 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8072 name instead of number.
8074 2001-07-24 Werner LEMBERG <wl@gnu.org>
8076 * doc/groff.texinfo: Minor fixes.
8078 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8080 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8083 2001-07-20 Werner LEMBERG <wl@gnu.org>
8085 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8086 * src/libs/libgroff/mkstemp.cc: New file.
8087 * src/libs/libgroff/mksdir.cc: New file.
8088 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8089 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8090 * src/libs/libgroff/Makefile.sub: Updated.
8091 * src/include/lib.h: Add mksdir() prototype.
8092 * src/include/posix.h: Define S_IXUSR if not yet defined.
8094 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8095 (createAllPages): Use mksdir() instead of current code.
8096 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8097 (main): [!HAVE_MKSTEMP]: Removed.
8099 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8100 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8102 * configure.ac: Add tests for stdint.h, sys/time.h, and
8104 Call new GROFF_xxx macros.
8105 * configure: Regenerated.
8106 * Makefile.in: Comments updated.
8108 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8110 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8111 instead of current code.
8112 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8113 * src/roff/groff/groff.cc (possible_command::insert_args): New
8115 (main): Use it for predriver handling instead of insert_arg().
8117 2001-07-19 Werner LEMBERG <wl@gnu.org>
8119 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8122 * src/include/posix.h: Define S_IWUSR if not yet defined.
8124 2001-07-18 Werner LEMBERG <wl@gnu.org>
8128 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8130 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8131 Some other minor fixes.
8132 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8134 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8136 Replace call to `troff' with `groff -Z' to make it aware of
8139 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8140 (troff_command, command_prefix): Removed.
8141 (alterDeviceTo): Use groff.
8142 (addZ): New function.
8143 (char_buffer::do_html): Use it.
8144 (scanArguments): Use TROFF_COMMAND.
8145 (findPrefix): Removed.
8147 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8149 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8151 * doc/pic.ms: Documentation fixes.
8153 2001-07-17 Werner LEMBERG <wl@gnu.org>
8155 Replace atexit() with global destructor.
8157 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8158 (xtmpfile_list_init): New global structure to deallocate
8159 xtmpfile_list on exit. Its destructor inherits most code from
8161 (remove_tmp_files): Deleted.
8162 (add_tmp_file): Simplified.
8164 2001-07-16 Werner LEMBERG <wl@gnu.org>
8166 Replace strdup() with strsave().
8168 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8169 (set_papersize): Use strsave() and a_delete.
8170 (main): Use strsave().
8171 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8172 removeAllPages): Use strsave() and a_delete.
8174 * configure.ac: Remove test for strdup.
8175 * Makefile.in: Comment updated.
8176 * configure: Regenerated.
8178 2001-07-15 Werner LEMBERG <wl@gnu.org>
8180 * win32-diffs: Updated.
8182 2001-07-14 Werner LEMBERG <wl@gnu.org>
8184 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8185 removing the old one.
8186 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8188 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8190 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8192 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8194 Merge -xwidth into -width. Add -xwidth functionality to -column
8197 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8199 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8200 string immediately following a leading dot starts with a valid mdoc
8202 Add similar code to the -column branch.
8203 (doc-Bl-usage): Updated.
8204 * groff_mdoc.man: s/-xwidth/-width/.
8206 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8208 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8209 running into centered or non-formatted text.
8211 2001-07-11 Werner LEMBERG <wl@gnu.org>
8213 Introduce short and long prefixes to have the selection at run-time
8214 whether there is a 8+3 limit for names of temporary files.
8216 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8217 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8218 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8220 (temp_init): New global structure to initialize above three
8222 (xtmptemplate): Use two parameters for long and short prefix.
8223 Simplify code use above three variables.
8224 (xtmpfile): Use long and short prefixes as parameters.
8225 * src/include/lib.h: Updated.
8227 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8229 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8230 (createAllPages, makeTempFiles): Updated.
8232 2001-07-09 Werner LEMBERG <wl@gnu.org>
8234 * REVISION: Increased to 3.
8236 Version 1.17.2 released
8237 =======================
8239 2001-07-07 Werner LEMBERG <wl@gnu.org>
8241 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8244 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8246 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8248 * tmac/groff_mdoc.man: Fix synopsis.
8250 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8252 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8253 Restore `doc-Pa-font'.
8255 2001-07-04 Werner LEMBERG <wl@gnu.org>
8257 * src/utils/indxbib/dirnamemax.c: Moved to ...
8258 * src/libs/libgroff/maxfilename.cc: Here.
8259 s/dir_name_max/file_name_max/.
8261 * src/include/lib.h: Add file_name_max.
8262 * src/utils/indxbib/indxbib.cc: Updated.
8263 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8266 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8268 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8270 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8271 REGION_TEMPLATE): New macros.
8272 (createAllPages, makeTempFiles): Use them.
8273 Include `nonposix.h'.
8274 (html_system): New function.
8275 (createAllPages, createImage): Use it.
8278 * tmac/www.tmac: Fix typos.
8280 2001-07-03 Werner LEMBERG <wl@gnu.org>
8282 * tmac/www.tmac: Disable hyphenation in normal text only if output
8284 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8285 * tmac/groff_mwww.man, NEWS: Updated.
8287 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8289 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8292 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8294 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8295 doc-display-ps-stack): Implement font and font size stack for
8298 2001-07-02 Werner LEMBERG <wl@gnu.org>
8300 * REVISION: Increased to 2.
8301 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8303 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8304 beginning of a line.
8305 * src/groff/grog/grog.sh: Ditto.
8307 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8309 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8312 2001-06-27 Werner LEMBERG <wl@gnu.org>
8314 Fix problems with preprocessor string for `man' program.
8316 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8317 Updated/added copyright.
8318 Moved Emacs's local variable to identify nroff mode to the end of
8319 the file; add local variable if missing.
8321 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8323 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8324 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8325 * configure: Regenerated.
8327 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8329 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8330 * configure: Regenerated.
8332 2001-06-24 Werner LEMBERG <wl@gnu.org>
8334 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8336 * doc/pic.ms: Fix typos.
8338 Version 1.17.1 released
8339 =======================
8341 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8343 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8344 * configure: Updated.
8346 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8348 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8350 * src/roff/troff/dic.cc (blank_line): Add html tag.
8352 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8354 * src/roff/troff/input.cc (do_suppress): Fix typo.
8356 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8358 Added two new options (-D and -I) to specify image names and a
8359 subdirectory to place the images in.
8361 Change syntax from \\Ox to \\O[x].
8363 * src/devices/grohtml/post-html.cc (main): Add options.
8365 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8366 Use `NULL' instead of `0' for null string pointers.
8367 (MAX_RETRIES): New macro.
8368 (lengthOfintToStr, intToStr, make_message): New functions.
8369 (makeFileName): Make function static.
8370 Implement -D and -I options.
8371 (checkImageDir): New function.
8372 (write_end_image, write_start_image): Use new syntax of \O.
8373 (createAllPages, removeAllPages): Implement -D and -I options. Use
8375 (createImage): Use make_message().
8376 (addps4html): Add guard for malloc().
8377 (usage, scanArguments): Updated.
8378 (makeTempFiles): Use mkstemp().
8379 (removeTempFiles): Use unlink().
8380 (findPrefix): Add guard for malloc().
8382 * src/roff/troff/input.cc (get_delim_file_name): New function to
8384 (do_suppress): Updated to parse new syntax.
8385 * src/devices/grohtml/grohtml.man: Updated.
8386 * tmac/www.tmac: Updated to new syntax.
8390 2001-06-15 Werner LEMBERG <wl@gnu.org>
8392 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8394 * src/devices/grohtml/grohtml.man: Minor improvements.
8396 2001-06-14 Werner LEMBERG <wl@gnu.org>
8398 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8400 2001-06-11 Werner LEMBERG <wl@gnu.org>
8402 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8403 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8405 * src/preproc/grn/grn.man: Add proper '\" string.
8407 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8409 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8411 2001-06-08 Werner LEMBERG <wl@gnu.org>
8413 Updated to autoconf 2.50.
8415 * configure.in: Renamed to...
8416 * configure.ac: This.
8417 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8418 (GROFF_OS390): Updated.
8419 * configure: Regenerated.
8421 2001-05-18 Werner LEMBERG <wl@gnu.org>
8423 * src/roff/troff/env.c, src/roff/troff/env.h,
8424 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8427 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8429 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8431 2001-05-16 Werner LEMBERG <wl@gnu.org>
8433 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8434 less than or equal zero; set it to 1 then.
8435 * src/roff/troff/node.h (node::node): Initialize `last'.
8437 2001-05-08 Werner LEMBERG <wl@gnu.org>
8439 * tmac/an-old.tmac: Make predefined strings work in compatibility
8441 Add troff version guard.
8442 * tmac/doc.tmac: Simplify version guard.
8444 2001-05-07 Werner LEMBERG <wl@gnu.org>
8446 The .ns and .rs requests are now honoured not only in the top-level
8447 but in all diversions (similar to UNIX troff).
8449 This change is based on a patch from Tadziu Hoffmann
8450 <hoffmann@usm.uni-muenchen.de>.
8452 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8453 (top_level_diversion): Remove `no_space_mode' member.
8454 * src/roff/troff/div.cc (diversion::diversion,
8455 top_level_diversion::top_level_diversion): Updated.
8456 (macro_diversion::output): Reset `no_space_mode'.
8457 (no_space, restore_spacing): Use `curdiv' unconditionally.
8458 (space_request, blank_line): Check `curdiv->no_space_mode'.
8459 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8460 `curdiv' unconditionally.
8461 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8464 2001-05-06 Werner LEMBERG <wl@gnu.org>
8466 Added two new requests `de1' and `am1' which are similar to `de' and
8467 `am' with the difference that compatibility mode is saved on entry,
8468 switched off during macro execution, and restored on exit.
8470 * src/roff/troff/input.h: Added two new special characters
8471 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8472 * src/roff/troff/input.cc (input_iterator): Added two member
8473 functions `save_compatible_flag' and `get_compatible_flag'.
8474 (input_stack): Ditto.
8475 (string_iterator): Ditto. Also add private member
8476 `saved_compatible_flag'.
8477 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8478 (calling_mode): New enumeration.
8479 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8480 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8481 (define_macro, define_indirect_macro, append_macro, ignore): Use
8483 (define_nocomp_macro, append_nocomp_macro): New functions.
8484 (init_input_requests): Updated.
8485 (do_request): Rename local variable `saved_compatible_flag' to
8486 `old_compatible_flag'.
8487 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8489 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8490 public and trap-invoked macros. As a consequence, the man macros
8491 work in compatibility mode also.
8493 2001-05-06 Solar Designer <solar@openwall.com>
8495 * Makefile.in: Use $(mandir).
8497 2001-05-06 Alexios Zavras <zvr@pobox.com>
8499 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8501 2001-05-05 Werner LEMBERG <wl@gnu.org>
8503 Added `.ns' number register: Returns 1 in no-space mode (if in
8504 top-level diversion), 0 otherwise.
8506 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8507 (init_div_requests): Updated.
8508 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8511 2001-05-04 Werner LEMBERG <wl@gnu.org>
8513 * src/roff/nroff/nroff.man: Improved documentation (especially
8516 2001-05-02 Werner LEMBERG <wl@gnu.org>
8518 Added `brp' request: This is \p as a request.
8520 * src/roff/troff/env.cc (environment::do_break): Add parameter
8522 (do_break_request): New function (was `break_request').
8523 (break_request): Calls `do_break_request'.
8524 (break_spread_request): New; calls `do_break_request'.
8525 (init_env_requests): Updated.
8526 * src/roff/troff/env.h: Updated.
8527 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8529 * REVISION: Increased to 1.
8530 * win32-diffs: Updated.
8532 2001-05-01 Werner LEMBERG <wl@gnu.org>
8534 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8535 * tmac/troffrc-end: Make it really work in compatibility mode.
8537 2001-04-27 Werner LEMBERG <wl@gnu.org>
8539 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8542 2001-04-22 Werner LEMBERG <wl@gnu.org>
8544 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8545 latest versions from glibc CVS archive.
8547 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8548 <c.zeelenberg@hccnet.nl>.
8550 2001-04-21 Werner LEMBERG <wl@gnu.org>
8552 * configure.in: Move check for mkstemp() to...
8553 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8554 * configure: Regenerated.
8556 * src/include/groff-getopt.h: Don't use variable names in
8559 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8560 * src/devices/grohtml/Makefile.sub,
8561 src/devices/grohtml/post-html.cc: Updated.
8563 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8565 * configure.in: Add special check for mkstemp().
8566 * src/libs/libgroff/tmpfile.cc: Use it.
8567 * src/utils/indxbib/indxbib.cc: Ditto.
8568 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8569 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8572 2001-04-20 Bruce Lilly <blilly@erols.com>
8574 `Version_string' as C++ object was not visible to linker from C
8576 Add `const' to `Version_string'.
8578 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8579 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8580 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8581 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8582 (scanArguments), src/preproc/refer/refer.cc (main),
8583 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8584 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8585 (main), src/devices/grohtml/post-html.cc (main),
8586 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8587 (main), src/utils/hpftodit/hpftodit.cc (main),
8588 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8589 (main), src/utils/lkbib/lkbib.cc (main),
8590 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8592 * src/roff/groff/pipeline.c: Add _UWIN.
8593 * src/include/nonposix.h: Ditto.
8595 2001-04-20 Werner LEMBERG <wl@gnu.org>
8597 * src/include/lib.h: Use HAVE_STRERROR.
8598 * src/roff/groff/pipeline.c: Ditto.
8599 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8600 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8601 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8602 * win32-diffs: Updated.
8603 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8605 2001-04-19 Werner LEMBERG <wl@gnu.org>
8607 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8608 instead of hardwired `"troff"'.
8609 (char_buffer::read_file): Remove unused variables.
8610 (char_buffer::write_file_troff): Ditto.
8611 (char_buffer::write_file_html): Ditto.
8612 (generateImages): Ditto.
8614 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8616 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8618 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8619 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8620 index_search_item::search1): Ditto.
8621 * src/roff/troff/node.h (width_list): Reorder members.
8622 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8623 (lookup_warning): Ditto.
8624 (prepend_string): Commented out.
8625 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8626 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8627 * src/preproc/tbl/main.cc (process_format): Ditto.
8628 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8630 * src/preproc/pic/pic.cc: Updated.
8631 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8632 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8633 * src/preproc/refer/command.cc (execute_command): Ditto.
8634 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8635 * src/preproc/refer/token.cc (lookup_token): Ditto.
8636 * src/preproc/soelim/soelim.cc: Ditto.
8637 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8638 (isHexDigit): Commented out.
8639 (pushBackBuffer::isString): Remove unused variable.
8640 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8642 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8643 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8645 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8646 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8647 lookup_paper_size): Ditto.
8648 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8649 (text_glob, element_list): Reorder members.
8650 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8652 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8653 return value to `void'.
8654 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8656 * src/devices/grohtml/html.h (simple_output::check_newline,
8657 simple_output::space_or_newline, simple_output::enable_newlines):
8659 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8661 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8662 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8663 output_ligatures, output_charset, read_map): Ditto.
8664 * src/utils/lookbib/lookbib.cc (main): Ditto.
8665 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8666 (do_file): Fix typo (`=' -> `==').
8667 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8668 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8670 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8672 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8673 Fix usage of GROFF_BIN_PATH.
8674 * src/roff/nroff/nroff.man: Updated.
8676 2001-04-18 Werner LEMBERG <wl@gnu.org>
8678 * NEWS: Fixing typos.
8681 Version 1.17 released
8682 =====================
8684 2001-04-17 Werner LEMBERG <wl@gnu.org>
8686 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8687 directory, not in $(srcdir).
8689 2001-04-16 Werner LEMBERG <wl@gnu.org>
8691 * doc/groff.texinfo: More info on conditionals.
8693 2001-04-15 Werner LEMBERG <wl@gnu.org>
8695 * doc/groff.texinfo: Added some info about groff internals.
8697 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8698 about missing special character only if the name is non-null.
8700 2001-04-14 Werner LEMBERG <wl@gnu.org>
8702 Removing the grohtml-old device driver which is now obsolete.
8704 * src/devices/grohtml-old/*: Removed.
8705 * font/devhtml-old/*: Removed.
8706 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8708 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8709 * test-groff (PATH): Updated.
8710 * tmac/Makefile.sub (NORMALFILES): Updated.
8711 * tmac/an-old.tmac: Remove special code for html-old device.
8712 Replace `html-or-html-old' register with `an-html'.
8713 * tmac/eqnrc: Updated.
8714 * tmac/html-old.tmac: Removed.
8715 * tmac/troffrc, tmac/troffrc-end: Updated.
8716 * tmac/www.tmac: Remove special code for html-old device.
8717 Replace `html-or-html-old' register with `www-html'.
8719 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8720 src/libs/libgroff/htmlindicate.cc (graphic_end),
8721 include/htmlindicate.h, src/preproc/grn/*.cc,
8722 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8723 single argument for consistency with rest of source code.
8725 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8727 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
8729 * src/roff/troff/troff.man: Fixing typos.
8731 2001-04-13 Werner LEMBERG <wl@gnu.org>
8733 * doc/pic.ms: Fixing many font switches.
8734 * doc/groff.texinfo: Fixes, additions.
8735 * MORE.STUFF: Updated.
8737 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
8739 * src/devices/grohtml/grohtml.man: Updated manual page regarding
8741 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8743 (removeTempFiles): New function to tidy up temporary files.
8744 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8745 Many fixes to do with the new inline suppress node and image regions
8747 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8748 (generate_img_src): New function.
8749 (html_printer::do_auto_image): Utilizes it.
8750 (do_heading, do_title): Include inline images within their contents.
8751 (html_printer::begin_page): Tidied up comments that are issued to
8752 the html output file.
8753 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8755 (text_glob::is_br): New method used by do_heading.
8756 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8757 equivalent diversion.
8758 * src/include/html-strings.h: Altered image tags to reflect the
8760 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8762 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8763 it is already inside a pic image. Only emit tags if the argument
8764 `-Tps:html' is present.
8765 * src/preproc/tbl/main.cc: Changes to reflect additional
8766 `html_end_suppress' parameter.
8767 * src/roff/troff/env.cc: Only emit eol tag if a node has been
8768 emitted since the last eol tag was written.
8769 * src/roff/troff/env.h: New boolean `emitted_node'.
8770 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8771 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
8772 * src/roff/troff/node.cc (check_charinfo): New method.
8773 (troff_output_file::determine_line_limits): Alterations to limit
8775 * tmac/www.tmac: Changes to reflect new suppress nodes.
8777 2001-04-12 Bruno Haible <haible@clisp.cons.org>
8779 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8780 Escape the html_glyph in the buffer.
8781 (str_translate_to_html): Output the unescaped escaped_char.
8782 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8783 `frame=void', not `frame=none'. Add `border=0'.
8785 2001-04-12 Werner LEMBERG <wl@gnu.org>
8787 * PROBLEMS: Add some words on how to avoid wrapper macros.
8789 2001-04-11 Blake McBride <blake@florida-software.com>
8791 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8793 2001-04-11 Werner LEMBERG <wl@gnu.org>
8795 * font/devlbp/Makefile.sub (CLEANADD): Set it.
8796 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8797 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8798 * Makefile.sub (DISTCLEANFILES): Here.
8800 * libs/libgroff/new.cc: Include `nonposix.h'.
8801 * win32-diffs: Updated.
8803 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
8805 Added skeleton macro for defunct macros.
8807 Updated documentation.
8809 When inside displays, an empty input line warning should be
8810 suppressed. If another macro call is put inside a display,
8811 all subsequent empty lines found in that display caused a
8812 warning to be emitted.
8814 * tmac/doc.tmac (doc-defunct-macro): New macro.
8815 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8816 (doc-restore-global-vars): Fixed typo.
8817 (doc-empty-line): Check the `doc-display-depth' register to
8818 determine whether we are inside display or not.
8820 * tmac/doc-common: Removed `Or' and `Sf' registers.
8821 Moved obsolete `Ds' macro to doc.tmac.
8823 * tmac/groff_mdoc.man: Bump document date.
8824 Document `.Vt' under ``Variable Types''.
8825 Removed documentation for obsolete `.Or' macro.
8827 2001-04-10 Werner LEMBERG <wl@gnu.org>
8830 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8832 2001-04-10 Bruno Haible <haible@clisp.cons.org>
8834 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8835 (usage): Add stream argument. Don't exit.
8836 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8837 Write --version output to stdout, not stderr.
8838 (usage): Add stream argument. Don't exit.
8839 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8840 (usage): Add stream argument. Don't exit.
8841 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8843 (usage): Add stream argument. Don't exit.
8844 (main): Write --help output to stdout, not stderr.
8845 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8846 (usage): Add stream argument. Don't exit.
8847 * src/devices/grops/ps.cc (main): Accept --help and --version.
8848 (usage): Add stream argument. Don't exit.
8849 * src/devices/grotty/tty.cc (main): Accept --help and --version.
8850 (usage): Add stream argument. Don't exit.
8851 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8852 (main): Accept --help and --version.
8853 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8854 (main): Accept --help and --version.
8855 * src/preproc/html/pre-html.cc (usage): Add stream argument.
8856 (scanArguments): Accept --help and --version.
8857 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8858 (main): Accept --help and --version.
8859 * src/preproc/refer/refer.cc (main): Accept --help and --version.
8860 (usage): Add stream argument. Don't exit.
8861 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8863 (main): Accept --help and --version.
8864 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8865 (main): Accept --help and --version.
8866 * src/roff/groff/groff.cc (main): Accept --help and --version.
8867 (synopsis): Add stream argument.
8868 (help): Write --help output to stdout, not stderr.
8869 (usage): Add stream argument. Don't exit.
8870 * src/roff/grog/grog.pl: Accept --help and --version.
8872 * src/roff/grog/grog.sh: Accept --help and --version.
8873 * src/roff/nroff/nroff.sh: Accept --help and --version.
8874 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8875 (usage): Add stream argument. Don't exit.
8876 (main): Accept --help and --version.
8877 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8878 (usage): New function with stream argument, doesn't exit.
8879 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8880 (usage): New function with stream argument, doesn't exit.
8881 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8882 (usage): Add stream argument. Don't exit.
8883 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8884 (main): Accept --help and --version.
8885 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8887 (main): Accept --help and --version.
8888 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8889 (main): Accept --help and --version.
8890 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8891 (usage): Add stream argument. Don't exit.
8893 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
8895 Fix indentation in SYNOPSIS.
8897 Updated to include changes of latest BSD mdoc version (basically,
8898 the only change is that `.Fn' and `.Fc' put a final semicolon after
8899 a function declaration in the SYNOPSIS section).
8901 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8902 (doc-in-synopsis-section): New variable. Updated all related
8904 (doc-indent-synopsis-active): New register.
8905 (Nd, Fn, Fo): Use it.
8906 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8907 `.Cd' with long argument line produces indented wrapped lines.
8908 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8909 undesirable line break to be output.
8910 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8912 (Fn, Fc): Add final `;' to output.
8913 (doc-save-global-vars, doc-restore-global-vars): Updated.
8914 * tmac/doc-common: Remove `Ex' register.
8916 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8919 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8921 * tmac/doc.tmac (Cd): Simplify code.
8922 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8924 2001-04-06 Werner LEMBERG <wl@gnu.org>
8926 Implement continuous underlining for nroff mode. To do that, a new
8927 request in the ditroff language has been added: `x u N' (N is 0
8930 \X and \Y are now transparent to end-of-sentence recognition.
8932 * src/include/printer.h (printer): Add `type' parameter to `special'
8934 * src/libs/libdriver/printer.cc (printer::special): Updated.
8935 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8937 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8938 specials of type `p'.
8939 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8940 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8941 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8942 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8943 (glyph::order): New method.
8944 (tty_printer::add_char): Use it.
8945 (tty_printer::special): New method.
8946 (tty_printer::end_page): Implement it.
8948 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8949 * src/roff/troff/node.cc (special_node::special_node): Add parameter
8950 to set `no_init_string'.
8951 (special_node::tprint_start): Use it.
8952 (special_node::same, special_node::copy): Updated.
8953 (special_node::ends_sentence): New method.
8954 (troff_output_file::start_special): Add parameter to include
8955 inititialization of special conditionally.
8957 * src/roff/troff/env.h (environment): New member `underline_spaces'.
8958 * src/roff/troff/env.cc (do_underline_special): New function.
8959 (environment::set_font): Use it.
8960 (do_underline): Use it. This was `underline()'.
8961 (underline): Call `do_underline()'.
8962 (continuous_underline): New function which calls `do_underline()'.
8963 (environment::newline): Use `do_underline_special()'.
8964 (init_env_requests): Updated.
8966 * NEWS, man/troff_out.man: Updated.
8968 2001-04-06 Bruno Haible <haible@clisp.cons.org>
8970 * font/devutf8/R.proto: Fix code of 'shc'.
8972 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8974 Many fixes. Diag lists can now be nested also; additionally,
8975 `-compact' and `-offset' are supported.
8977 * tmac/doc.tmac (doc-have-indent): Replaced with ...
8978 (doc-list-have-indent-stackXXX): A new register stack.
8979 (doc-have-diag-list): Removed.
8980 (Bl): Use `doc-list-have-indent-stackXXX'.
8982 (doc-diag-list): Use `doc-compact-list-stackXXX'.
8983 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8984 (doc-set-vertical-and-indent): Ditto.
8985 (doc-next-list-depth): Removed.
8986 (doc-increment-list-stack): Updated.
8987 (doc-decrement-list-stack): Use `doc-list-depth' instead of
8988 `doc-next-list-depth'.
8989 (doc-end-list, doc-end-column-list): Don't use
8990 `doc-increment-list-stack'.
8991 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8992 (doc-save-global-vars, doc-restore-global-vars): Updated.
8993 * tmac/doc-common: Updated.
8994 * tmac/groff_mdoc.man: Updated.
8997 2001-04-02 Werner LEMBERG <wl@gnu.org>
8999 * src/devices/grotty/grotty.man: Fix grammatical error.
9001 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9003 Remove .Ld from mdoc package; replace it with special handling of
9006 * tmac/doc-common: Remove `Ld' register.
9007 Uncomment `doc-volume-ds-*' strings.
9008 Remove `doc-operating-system-default'.
9010 * tmac/doc-syms (Ld): Removed.
9011 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9015 * tmac/groff_mdoc.man: Many fixes and updates.
9017 2001-03-29 Werner LEMBERG <wl@gnu.org>
9019 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9020 Bond <tkb@tkb.mpl.com>.
9021 * tmac/www.tmac: Save compatibility mode.
9023 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9025 * tmac/groff_mdoc.man: Many fixes.
9027 2001-03-28 Werner LEMBERG <wl@gnu.org>
9029 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9032 2001-03-27 Werner LEMBERG <wl@gnu.org>
9034 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9035 diversion. This fixes overlong tags.
9037 2001-03-26 Werner LEMBERG <wl@gnu.org>
9039 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9040 * tmac/doc-syms: Fix error messages.
9041 * tmac/an-old.tmac: Remove incorrect double backslashes.
9043 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9045 * tmac/Makefile.sub: Strip mdoc.local also
9046 * tmac/strip.sed: Fixed.
9048 2001-03-24 Werner LEMBERG <wl@gnu.org>
9050 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9051 selecting the font size.
9052 * tmac/groff_mdoc.man, NEWS: Document it.
9054 2001-03-23 Werner LEMBERG <wl@gnu.org>
9056 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9058 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9059 argument to restore previous font family.
9060 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9062 * doc/groff.texinfo: More fixes and additions (mainly for font
9063 manipulating commands).
9065 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9066 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9067 * tmac/Makefile.sub, NEWS: Updated.
9069 2001-03-23 Werner LEMBERG <wl@gnu.org>
9071 Replaced mdoc implementation. The new version is `state of the
9072 art', using almost all new features of groff 1.17 -- it won't run
9073 with older versions.
9075 * tmac/doc.tmac: Completely rewritten.
9076 * tmac/doc-common: Ditto.
9077 * tmac/doc-nroff: Ditto.
9078 * tmac/doc-ditroff: Ditto.
9079 * tmac/doc-syms: Ditto.
9080 * tmac/mdoc.local: New file.
9081 * tmac/groff_mdoc.samples.man: Replaced with ...
9082 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9083 * tmac/strip.sed: Updated.
9084 * tmac/Makefile.sub: Updated.
9087 * tmac/groff_man.man: Add `man.local' to the FILES section.
9089 2001-03-22 Werner LEMBERG <wl@gnu.org>
9091 * doc/groff.texinfo: Added many @noindent.
9092 Replaced @end_Example -> @endExample.
9093 Added info whether registers are r/o.
9094 Many other additions and fixes.
9096 2001-03-21 Werner LEMBERG <wl@gnu.org>
9098 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9099 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9100 Improved @Def* macros: Now the exact syntax of request, register,
9101 and escapes is shown.
9102 Added macros for parentheses and brackets to be used in @Def*.
9103 Many fixes and improvements of the documentation.
9105 2001-03-20 Werner LEMBERG <wl@gnu.org>
9107 * doc/groff.texinfo: Added new index: `st' (for strings).
9108 Added macros @Defstr(x).
9109 Added macro @Example (adding @group).
9110 Other minor improvements.
9112 2001-03-19 Werner LEMBERG <wl@gnu.org>
9114 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9115 `rq' for requests. `fn' is no longer used.
9116 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9119 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9120 number with name of man page.
9122 2001-03-19 Larry Kollar <kollar@alltel.net>
9124 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9127 2001-03-19 Werner LEMBERG <wl@gnu.org>
9129 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9130 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9131 * src/devices/grohtml/grohtml.man: Fixing typos.
9133 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9135 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9136 * tmac/groff_mwww.man: Remove .LINE macro
9137 * tmac/www.tmac (LINE): Add `.ti'.
9139 * src/devices/grohtml/post-html.cc (html_printer): New member
9141 (html_printer::emit_raw): Use it.
9142 (html_printer::do_linelength): Ditto.
9143 (html_printer::do_pageoffset): Ditto.
9144 (html_printer::do_indentation): Ditto.
9145 (html_printer::do_tempindent): Ditto.
9146 (html_printer::do_break): Ditto.
9147 (html_printer::begin_page): Ditto.
9148 (html_printer::do_indentedparagraph): New function.
9149 (html_printer::troff_tag): Handle `.ip'.
9150 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9151 Add `<td width=...>' handling.
9152 (html_text::do_table): Add parameter.
9153 (html_text::do_indent): Updated.
9154 * src/devices/groohtml/html-text.h: Updated.
9156 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9158 Introduced simple html tables to implement indentation.
9160 * src/devices/grohtml/html.h (word, word_list): New structures.
9161 (simple_output): Use it.
9162 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9163 (html_printer): Improve indentation handling.
9164 (html_printer::emit_raw): Set `in_table' element. Handle
9166 (html_printer::write_header): Move conditional downwards.
9167 Don't allow whitespace in tags.
9168 (html_printer::do_linelength): Handle line length and indentation
9170 (html_printer::do_pageoffset): Handle indentation conditionally.
9171 (html_printer::do_indentation): Ditto.
9172 (html_printer::do_tempindent): New function member.
9173 (html_printer::do_fill): Take care of indentation.
9174 (html_printer::do_flush): Finish table.
9175 (html_printer::do_links): Ditto.
9176 (html_printer::do_break): New function for handling `.br' and `.ti'.
9177 (html_printer::troff_tag): Use it.
9179 (html_printer::flush_globs): Fix.
9180 (html_printer::flush_page): Finish table.
9181 (html_printer::html_printer): Fix error message. Set up
9183 (html_printer::add_to_sbuf): Remove special handling of character
9185 (to_unicode): Remove `stop()'.
9186 (html_printer::write_title): Cleanup.
9187 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9188 (html_printer::~html_printer): Flush text and end the line.
9190 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9191 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9193 (html_text::start_tag): Disable newlines.
9194 (html_text::table_is_void): New function.
9195 (html_text::issue_table_begin): Ditto.
9196 (html_text::issue_table_end): Ditto.
9197 (html_text::push_para): Better table handling.
9198 (html_text::do_indent): New function.
9199 (html_text::do_table): Ditto.
9200 (html_text::done_table): Ditto.
9201 (html_text::do_tt): Handle PRE_TAG.
9202 (html_text::is_in_table): New function.
9203 (html_text::check_emit_text): Handle tables.
9204 (html_text::do_emittext): Use `nl()'.
9205 (html_text::do_para): Handle table.
9206 (html_text::remove_def): New function.
9207 * src/devices/grohtml/output.cc (word, word_list): Implement
9209 (simple_output::end_line): Flush last word.
9210 (simple_output::simple_comment): Ditto.
9211 (simple_output::begin_comment): Recoded.
9212 (simple_output::end_comment): Ditto.
9213 (simple_output::comment_arg): Removed.
9214 (simple_output::check_newline): Improve test and flush last word.
9215 (simple_output::space_or_newline): Improved.
9216 (simple_output::write_newline): Replaced with...
9217 (simple_output::nl): This.
9218 (simple_output::put_raw_char): Flush last word.
9219 (simple_output::check_space): Removed.
9220 (simple_output::put_translated_string): Ditto.
9221 (simple_output::put_string): Simplified.
9222 (simple_output::put_number): Updated.
9223 (simple_output::put_float): Ditto.
9224 (simple_output::put_symbol): Removed.
9225 (simple_output::enable_newlines): Add `check_newline()'.
9226 (simple_output::flush_last_word): New function.
9228 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9229 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9231 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9232 * tmac/an-old.tmac (TP): Ditto.
9234 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9236 * mdate.sh: Make it POSIX compliant.
9238 2001-03-09 Werner LEMBERG <wl@gnu.org>
9240 Added the `return' request to end a macro immediately. It simply
9241 pops iterators from the input stack until a macro iterator is found.
9243 * src/roff/troff/input.cc (input_iterator::is_macro,
9244 macro_iterator::is_macro): New member.
9245 (input_return_boundary): New class to signal an immediate return
9247 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9249 (input_stack::clear): Use it.
9250 (input_stack::pop_macro): New function.
9251 (while_request): Use `is_return_boundary()'.
9252 (return_macro_request): New function.
9253 (init_input_requests): Use it.
9255 * src/roff/troff/TODO: Updated.
9256 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9258 2001-03-08 Werner LEMBERG <wl@gnu.org>
9260 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9263 2001-03-07 Werner LEMBERG <wl@gnu.org>
9265 Make `\B' more rigid.
9267 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9269 (get_number_rigidly): New function.
9270 * src/roff/troff/input.cc (do_expr_test): Use it.
9271 * src/roff/troff/token.h: Updated.
9273 * src/roff/troff/request.h: Fix typo (init_html_request ->
9274 init_markup_request).
9276 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9278 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9279 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9280 are now `.begin', `.end', `.image'.
9282 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9283 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9284 Use add_char_to_sbuf().
9285 (to_unicode): New function.
9286 (char_translate_to_html): Changing type of `ch' parameter.
9288 (html_printer::~html_printer): Comment out doctype string.
9289 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9290 instead of `.html-end'.
9291 (write_start_image): Use `.begin' and `.image' instead of
9292 `.html-begin' and `.html-image'.
9293 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9294 (html_begin): Renamed to ...
9296 (html_end): Renamed to ...
9298 (html_image): Renamed to ...
9300 (init_html_requests): Renamed to ...
9301 (init_markup_requests): This.
9302 * tmac/www.tmac: Updated.
9304 2001-02-28 Bram <bram@avontuur.org>
9306 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9309 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9311 * doc/meref.me: Fixing some typos.
9313 2001-02-16 Werner LEMBERG <wl@gnu.org>
9315 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9316 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9317 * src/roff/troff/node.h: Updated.
9319 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9321 * tmac/groff_tmac.man: Fix typo.
9323 2001-02-16 Werner LEMBERG <wl@gnu.org>
9325 Fixing a bug which prevented proper end-of-sentence recognition
9326 between an `unformatted' box and the following text. As a
9327 consequence, vertical line distances are no longer preserved in
9328 boxes after a call to `.unformat' -- because boxes aren't
9329 line-oriented (contrary to diversions), this doesn't make sense
9332 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9334 (vertical_size_node::set_unformat_flag): New method.
9335 * src/roff/troff/node.hh: Updated.
9336 * src/roff/troff/input.cc (word_space_node::reread,
9337 hmotion_node::reread): Reset `unformat' flag after usage.
9338 (unformat_macro): Append only if `set_unformat_flag()' returns
9340 * src/roff/troff/troff.man: Updated.
9342 2001-02-15 Werner LEMBERG <wl@gnu.org>
9344 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9345 documentation of `asciify' and `unformat' requests.
9347 2001-02-13 Werner LEMBERG <wl@gnu.org>
9349 Redesigned the `unformat' request. It is no longer connected with
9350 `asciify' but rather uses new `reread()' methods if the `unformat'
9351 flag is set. Additionally, the handling of space characters after
9352 unformatting has been fixed so that they retain their width.
9354 * src/roff/troff/node.h (width_list): New structure to store
9355 original widths of spaces.
9356 (node): Added `unformat' member.
9357 Replaced `num_spaces' variable with `orig_width' list.
9358 * src/roff/troff/node.cc (*node::asciify,
9359 asciify_reverse_node_list): Removed `unformat_only' flag and related
9361 (word_space_node::asciify, word_space_node::word_space_node): Use
9363 (word_space_node::~word_space_node): New destructor.
9364 (word_space_node::copy): Updated to handle `orig_width'.
9365 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9366 (*node::merge_space): Update `orig_width' list if necessary.
9367 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9368 * src/roff/troff/enc.cc (environment::space_newline): Use
9370 (environment::space): Added method to handle space width and
9371 sentence space width as parameters. Use `width_list'.
9372 (environment::make_tab_node): Updated.
9373 * src/roff/troff/env.h: Updated.
9374 * src/roff/troff/input.cc (word_space_node::reread,
9375 unbreakable_space_node::reread, hmotion_node::reread): New methods
9376 to handle nodes specially if `unformat' flag is set.
9377 (do_asciify_macro): Renamed back to ...
9378 (asciify_macro): This.
9379 (unformat_macro): New implementation to simply set the `unformat'
9382 * MORE.STUFF: Added more info about deroff.
9384 2001-02-08 Werner LEMBERG <wl@gnu.org>
9386 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9387 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9388 and `add_self()' methods to avoid hyphenation. For example, the
9389 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9390 soft hyphen after `foo'. Now the hyphen list is correctly
9391 `foo<ignore><ignore>bar'.
9393 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9395 * tmac/groff_tmac.man: Fix `BIR' macro.
9397 2001-02-04 Werner LEMBERG <wl@gnu.org>
9399 A new escape sequence `\:', inserting a zero-width break point.
9401 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9402 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9404 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9406 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9407 and `asciify()' methods.
9408 * src/roff/troff/node.cc (space_node::space_node): Updated.
9409 (space_node::asciify): Handle `was_escape_colon'.
9410 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9412 Handle `\~' similar to other comparable requests.
9414 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9416 (token::next): Move creation of an unbreakable_space_node to...
9417 (token::add_to_node_list): Here.
9419 Fix a bug which sometimes prevented hyphenation of words connected
9420 with `\~' or `\ ' (and other escape sequences handled as
9421 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9422 (after a call to the `unformat' request).
9424 * src/roff/troff/env.h (environment::possibly_break_line,
9425 environment::hyphenate_line): Introducing `start_here' parameter.
9426 * src/roff/troff/env.cc (environment::space_newline,
9427 environment::space): Use it.
9428 (environment::possibly_break_line, environment::hyphenate_line):
9430 * src/roff/troff/input.cc (process_input_stack): Use it.
9431 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9432 space_char_hmotion_node, overstrike_node): Add
9433 `get_hyphenation_type()' method.
9434 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9435 if `unformat_only' is active.
9437 2001-01-30 Werner LEMBERG <wl@gnu.org>
9439 Implemented new read-only number register `.linetabs' which
9440 returns 1 if in line-tabs mode, 0 otherwise.
9442 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9443 * src/roff/troff/env.cc (get_line_tabs): New function.
9444 (init_env_requests): Use it.
9445 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9447 * VERSION, REVISION: Changing to 1.17.0.
9449 2001-01-28 Werner LEMBERG <wl@gnu.org>
9451 Fixed a bug which prevented hyphenation of words which are finished
9454 * src/roff/troff/token.h (token): Add enum type
9455 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9456 * src/roff/troff/input.cc (token::next, token::description,
9457 get_line_arg, token::add_to_node_list, token::process): Use it.
9459 2001-01-27 Werner LEMBERG <wl@gnu.org>
9461 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9462 * src/roff/troff/div.cc (do_divert): Use it.
9464 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9466 2001-01-25 Werner LEMBERG <wl@gnu.org>
9468 Adding the `linetabs' request. If set, tab distances are not
9469 computed relative to the input line but relative to the output line.
9471 * src/roff/troff/env.h (environment): New member `line_tabs'.
9472 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9473 (environment::environment, environment::copy): Updated.
9474 (environment::distance_to_next_tab): Use `line_tabs'.
9475 (init_env_requests): Register request.
9476 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9479 2001-01-24 Werner LEMBERG <wl@gnu.org>
9481 Introducing a new read-only register `.int' which is set to a
9482 positive value if the last output line is interrupted (i.e., if it
9485 * src/roff/troff/env.cc (init_env_requests): Add it.
9486 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9488 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9490 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9491 * src/preproc/html/pre-html.cc (findPrefix): New function which
9492 generates the troff executable name via the system prefix.
9493 * src/preproc/eqn/main.cc: Modified warning message.
9495 2001-01-23 Werner LEMBERG <wl@gnu.org>
9497 troff's `box' and `boxa' requests didn't preserve temporary
9500 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9501 `saved_target_text_length' members.
9502 * src/roff/troff/div.cc (do_divert): Use them.
9504 Tabs (but not yet leaders and fields) are now handled correctly by
9507 * node.h (hmotion_node): Add field `was_tab'.
9508 * env.cc (environment::make_tab_node): Set it.
9509 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9511 Added new request `unformat' which will, contrary to `asciify',
9512 preserve font information after unformatting (i.e., only nodes
9513 dealing with horizontal space are converted back to input
9516 * input.cc (asciify_macro): Renamed to ...
9517 (do_asciify_macro): this, having a new parameter `unformat_only'.
9518 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9519 (init_input_requests): Added `unformat'.
9520 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9521 parameter to control asciification process.
9522 * node.h (*_node::asciify): Ditto.
9523 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9525 2001-01-20 Werner LEMBERG <wl@gnu.org>
9527 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9529 2001-01-18 Werner LEMBERG <wl@gnu.org>
9531 * tmac/ps.tmac: Remove call of psold.tmac.
9532 * tmac/psold.tmac: Comment updated.
9533 * tmac/psnew.tmac: Removed since no longer needed.
9534 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9536 * font/devutf8/R.proto: Adding `shc' glyph.
9537 * font/devutf8/NOTES: Updated.
9539 * test-groff: Updated.
9541 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9543 First cut of the new html device driver. Changes to pre-html and
9544 the new grohtml are too numerous to be documented here.
9546 Stuff related to `html' has been renamed to `html-old' and `html2'
9547 stuff has been renamed to `html' (including directories). The new
9548 html device driver is therefore invoked as `-Thtml'.
9550 Added new `\O' escape to suppress output (needed by html driver).
9552 Added functions and code to pass info about input-level commands
9553 (`.in', `.fl', etc.) to html driver.
9555 Three new functions (.html-begin, .html-end, and .html-image) for
9556 better html handling: `html-begin' will execute the remaining line
9557 if at the outermost nesting level, increasing an internal counter.
9558 `html-end' does the same but decreases the internal counter.
9559 `html_image' puts its arguments into a special node (suppress_node)
9560 to define an image region.
9562 The `output' request has been removed.
9564 * tmac/html-tags.tmac: Removed.
9565 * tmac/arkup.tmac: Updated and renamed to ...
9566 * tmac/www.tmac: New file.
9567 * tmac/markup.tmac Updated and renamed to ...
9568 * tmac/mwww.tmac: New file.
9569 * tmac/Makefile.sub: Updated.
9570 * tmac/an-old.tmac: Updated.
9571 * tmac/eqnrc: Updated.
9572 * tmac/groff_man.man
9573 * tmac/groff_markup.man: Updated and renamed to ...
9574 * tmac/groff_mwww.man: New file.
9575 * tmac/groff_tmac.man: Updated.
9576 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9577 * tmac/html.tmac: Updated and renamed from html2.tmac.
9578 * tmac/pspic.tmac: Updated html support.
9579 * tmac/s.tmac: Added html output support.
9580 * tmac/troffrc, tmac/troffrc-end: Updated.
9582 * Makefile.in, doc/Makefile: Updated.
9583 * doc/groff.texinfo: Added info about new `\O' escape.
9584 * doc/homepage.ms: Use `MAILTO' macro.
9586 * font/devhtml/DESC.proto: Add `C' font.
9587 * font/devhtml/Makefile.sub: Updated.
9588 * font/devhtml/R.proto: Minor fixes.
9589 * font/devhtml-old/Makefile.sub: Updated.
9591 * src/devices/grohtml-old/Makefile.sub: Updated.
9593 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9595 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9596 graphic_start): Add `inline' parameter. Update.
9597 (html_end_suppress, graphic_end): Update.
9599 * src/include/html-strings.h: New file.
9600 * src/include/htmlindicate.h: Comments updated.
9601 * src/include/printer.h: Updated.
9603 * src/preproc/eqn/main.cc (do_file, main): Updated.
9604 * src/preproc/pic/troff.cc (troff_output::start_picture,
9605 troff_output::finish_picture): Updated.
9606 * src/preproc/tbl/main.cc (process_input_file): Updated.
9608 * src/roff/groff/groff.cc (main): Updated.
9609 Pass device arguments to predrivers also.
9610 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9611 * src/roff/troff/env.h (environment): Updated.
9612 New elements `need_eol' and `ignore_next_eol' (for html output).
9613 * src/roff/troff/env.cc (environment::environment): Add initializers
9614 for `need_eol' and `ignore_next_eol'.
9615 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9617 (point_size, fill, no_fill, center, right_justify, line_length,
9618 indent, temporary_indent, break_request, handle_tab): Use
9620 (set_tabs): Use `add_html_tag_tabs()'.
9621 (environment::add_html_tag): Updated.
9622 (environment::do_break): Updated.
9623 * src/roff/troff/div.cc (space_request, flush_output): Use
9624 `environment::add_html_tag()'.
9625 * src/roff/troff/input.cc: Updated.
9626 New variable `html_level' to indicate nested `html-begin' requests.
9627 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9628 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9629 `force_tprint()' method.
9630 (token::next): Handle `\O'.
9631 (do_suppress): Implement it.
9632 (html_begin, html_end, html_image): New functions.
9633 (init_output_requests): Renamed to ...
9634 (init_html_requests): this.
9636 (macro::append_str, macro::append_unsigned, macro::append_int): New
9638 New variable `output_low_mark_miny' to limit minimal value of y.
9639 (reset_output_registers): Use it.
9640 (output_request): Removed.
9641 (get_output_registers): New function.
9642 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9643 (*_node): Added `force_tprint()' if necessary.
9644 (special_node): New elements `tf' and `get_tfont()'.
9645 (suppress_node): New class.
9646 * src/roff/troff/node.cc:
9647 New global variables `image_no' and `suppress_start_page'.
9648 (real_output_file): New method `is_on()'.
9649 (troff_output_file): New method `start_special(tfont)'.
9650 (troff_output_file::really_print_line): Use `tprint' conditionally.
9651 (real_output_file::print_line): Updated.
9652 (real_output_file::on): Updated.
9653 (*_node): Added `force_tprint()'.
9654 (special_node::special_node): Initializer updated.
9655 (special_node::same, special_node::copy, special_node::tprint_start):
9657 (get_reg_int, get_reg_str): New functions.
9658 (suppress_node::*): New methods.
9659 New global variables last_position, last_image_filename;
9660 (min): New inline function.
9661 * src/roff/troff/reg.h, src/roff/troff/request.h,
9662 src/roff/troff/troff.h: Updated.
9664 2001-01-13 Werner LEMBERG <wl@gnu.org>
9666 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9667 documentation of `asciify' request.
9669 2001-01-12 Werner LEMBERG <wl@gnu.org>
9671 * src/roff/troff/input.cc: Move definition of special characters
9672 like `ESCAPE_TILDE' to ...
9673 * src/roff/troff/input.h: New file.
9674 * src/roff/troff/Makefile.sub (HDRS): Add it.
9676 Extending the .asciify request to `unformat' space characters also.
9678 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9679 to count input space characters.
9680 Update constructors to take care of it.
9681 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9682 `ESCAPE_SPACE' instead of normal space.
9683 (word_space_node::asciify): New method.
9684 (unbreakable_space_node::asciify): New method.
9685 (word_space_node::merge_space): New method.
9686 * src/roff/troff/env.cc (environment::space_newline,
9687 environment::space): Add code to initialize `num_spaces' (using the
9688 constructor of `word_space_node').
9689 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9692 2001-01-09 Werner LEMBERG <wl@gnu.org>
9694 * man/groff_char.man: Use table header traps only conditionally.
9696 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
9698 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9700 2001-01-08 Werner LEMBERG <wl@gnu.org>
9702 Introducing the `box' and `boxa' requests which are similar to
9703 `di' resp. `da' but omitting a partially filled line (which is
9704 restored after ending the diversion).
9706 * src/roff/troff/div.h (diversion): Add elements to save partially
9708 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9709 partially filled line.
9710 (divert, divert_append): Updated.
9711 (box, box_append): New functions.
9712 (init_div_requests): Use them.
9713 * src/roff/troff/env.h (environment): do_divert() is now a friend.
9714 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9716 * doc/groff.texinfo: Fix documentation of `lf' request.
9718 2000-12-25 Werner LEMBERG <wl@gnu.org>
9720 * src/roff/troff/troff.man, NEWS: Document `writem' request.
9722 2000-12-21 Werner LEMBERG <wl@gnu.org>
9724 Ignore `ss' request if in compatibility mode.
9726 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9727 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9728 * src/roff/troff/env.cc (space_size): Use it.
9730 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9731 `ss' request in nroff mode.
9733 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9736 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
9738 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9740 2000-12-13 Werner LEMBERG <wl@gnu.org>
9742 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9743 * src/preproc/eqn/neqn.man: Small fixes and additions.
9745 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
9747 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9750 * src/preproc/eqn/neqn.man: New file.
9752 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9755 * tmac/e.tmac: Add `T&' macro.
9756 Fix `indent cannot be negative' warning.
9757 * tmac/s.tmac: Fix `indent cannot be negative' warning.
9759 2000-12-07 Werner LEMBERG <wl@gnu.org>
9761 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9763 2000-12-06 Werner LEMBERG <wl@gnu.org>
9765 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9768 * MORE.STUFF: Added info about deroff for djgpp.
9770 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9771 documentation of -rcR switch.
9773 2000-12-03 Werner LEMBERG <wl@gnu.org>
9775 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9776 if -rcR=1 (which is now the default in nroff mode), a single, very
9777 long page is created instead of multiple pages: All `ne' and `wh'
9778 requests are put into conditionals; a new macro `an-end' is added to
9779 be called with `em'.
9781 Some other minor cleanups.
9783 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9785 2000-12-02 Werner LEMBERG <wl@gnu.org>
9787 Fixing a bug which prevented hyphenation in words followed
9788 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9790 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9791 Adding possibly_break_line().
9792 * src/roff/troff/env.h (environment): Make possibly_break_line()
9795 Make `\~' usable in .tr request.
9797 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9798 (token): Add stretchable_space().
9799 * src/roff/troff/input.cc (token::next, token::delimiter,
9800 token::description, process_input_stack, do_translate,
9801 add_to_node_list, token::process): Use it.
9802 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9803 for adjusting the space.
9804 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
9805 for stretchable space.
9806 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9807 (make_node): Add code for stretchable space.
9808 * src/roff/troff/env.cc (environment::add_char): Use it.
9809 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9810 (get_copy, token::next, transparent_translate, asciify): Use it.
9812 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9813 doc/groff.texinfo: Updated.
9814 * man/groff.man: Small reorderings.
9816 2000-11-23 Werner LEMBERG <wl@gnu.org>
9819 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9821 * src/roff/troff/input.cc (main): Add `config_macro_path' and
9822 `safer_macro_path' to -M option.
9823 * src/roff/troff/troff.man: Fixes.
9825 2000-11-22 Werner LEMBERG <wl@gnu.org>
9827 Use safer path (except for config files) if -U isn't specified. Add
9828 a special macro path (without home and current directory) for config
9829 files. Add home directory to unsafe path for consistency. Don't
9830 include the home directory in the font path.
9832 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9834 * src/include/macropath.h: Add `config_macrp_path'.
9835 * src/libs/libgroff/fontfile.cc: Fix font path.
9836 * src/roff/troff/input.cc (process_startup_file): Use
9837 `config_macro_path'.
9838 (main): Select unsafe path if -U is given.
9840 * src/preproc/eqn/main.cc (main): Fixing search path for
9842 * src/preproc/eqn/eqn.man: Updated.
9844 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9847 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9848 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9849 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9850 src/devices/grotty/grotty.man: Updated.
9852 * Makefile.in: Fix comments.
9854 2000-11-17 Werner LEMBERG <wl@gnu.org>
9856 * tmac/safer.tmac: Empty file added (again) for compatibility
9858 * tmac/Makefile.sub: Updated.
9860 2000-11-16 Werner LEMBERG <wl@gnu.org>
9862 * src/devices/grodvi/dvi.cc (main),
9863 src/devices/grohtml2/post-html.cc (main),
9864 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9865 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9866 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9867 (main), src/preproc/html2/pre-html.cc (main),
9868 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9869 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9870 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9871 (main), src/utils/hpftodit/hpftodit.cc (main),
9872 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9873 (main), src/utils/lookbib/lookbib.cc (main),
9874 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9875 (main): Use stdout for -v.
9876 * src/roff/groff/groff.cc (run_commands),
9877 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9878 to make direct printing to stdout possible.
9879 * src/roff/groff/pipeline.h: Updated.
9881 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9882 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9883 * src/utils/afmtodit/afmtodit.man: Updated.
9885 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9886 (version): New function.
9888 * src/utils/addftinfo/addftinfo.man: Updated.
9890 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9891 Fixing copyright dates.
9893 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9896 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9899 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9901 2000-11-15 Werner LEMBERG <wl@gnu.org>
9903 In all programs, make -v return immediately with exit status 0 to
9904 be compliant with the GNU standard.
9906 * src/devices/grodvi/dvi.cc (main),
9907 src/devices/grohtml2/post-html.cc (main),
9908 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9909 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9910 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9911 (main), src/preproc/html2/pre-html.cc (main),
9912 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9913 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9914 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9915 (main): Implement it.
9918 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
9919 and postprocessors to the -v option.
9921 * src/roff/grog/grog.pl: Implement -v.
9922 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9923 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9925 * src/roff/nroff/nroff.sh: Implement -v.
9926 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9927 * src/roff/nroff/nroff.man: Updated.
9929 * src/preproc/eqn/main.cc (main): Fix comment typo.
9931 * MORE.STUFF: Added info about djgpp port of grap.
9933 2000-11-14 Werner LEMBERG <wl@gnu.org>
9935 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9936 mode (or rather, implemented non-compatibility mode).
9937 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9939 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9940 replacing it -- we don't find gxditview otherwise.
9941 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9943 * src/preproc/pic/depend: Removed. Unnecessary.
9945 Implemented dummy keyword `solid' in pic for compatibility with
9948 * lex.cc (lookup_keyword): Added `solid'.
9949 * pic.y: Added SOLID with dummy rule.
9950 * pic.cc, pic_tab.h: Regenerated.
9951 * doc/pic.ms: Updated.
9953 2000-11-13 Werner LEMBERG <wl@gnu.org>
9955 For security reasons, don't use the current directory but the home
9956 directory while searching and scanning troffrc and troffrc-end.
9957 Similarly, replace the current directory with the home directory
9960 * Makefile.in (fontpath, tmacpath): Remove current directory.
9962 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9963 two parameters `add_home' and `add_current'.
9964 (search_path::~search_path, search_path::command_line_dir,
9965 search_path::open_file): Remove tests for `dirs' being zero.
9966 * src/include/searchpath.h: Adjust.
9967 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9969 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9971 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9972 * src/roff/troff/input.cc: Use `mac_path', initialized with
9974 (process_startup_file): Set `mac_path' to `safer_macro_path'.
9975 * src/roff/troff/env.cc: Use `mac_path'.
9977 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9979 * NEWS, man/roff.man, src/roff/troff/troff.man,
9980 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9983 2000-11-12 Werner LEMBERG <wl@gnu.org>
9985 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9987 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9988 * configure.in: Fix typo in comment.
9989 * configure: Regenerated.
9991 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9994 2000-11-08 Werner LEMBERG <wl@gnu.org>
9996 Add system tmac directory (/usr/local/lib/groff/site-tmac).
9998 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9999 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10002 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10003 * tmac/Makefile.sub (install_data): Create
10004 $(systemtmacdir) and $(localtmacdir).
10005 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10006 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10007 NEWS, doc/groff.texinfo: Updated and minor fixes.
10009 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10010 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10011 $(systemtmacdir) since the wrapper files are platform-dependent.
10013 2000-11-01 Werner LEMBERG <wl@gnu.org>
10015 * doc/groff.texinfo: Fix typo.
10017 2000-10-26 Werner LEMBERG <wl@gnu.org>
10019 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10020 tmac.doc.old -> doc-old.tmac
10021 tmac.an.old -> an-old.tmac
10023 * tmac/tmac.*: Moved to ...
10024 * tmac/*.tmac: this.
10025 * tmac/man.local: Fix comment.
10026 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10027 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10028 Added some `FILES' sections. More use of @...@ directives. Other
10030 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10031 * doc/homepage.ms, doc/groff.texinfo: Updated.
10032 * man/groff.man, man/roff.man: Updated.
10033 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10034 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10035 src/devices/grotty/grotty.man: Updated.
10036 * src/preproc/pic/pic.man: Updated.
10037 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10038 instead of -mdoc.old.
10039 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10040 * src/roff/nroff/nroff.man: Updated.
10043 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10045 * tmac/mm.diff: Removed -- it has no use now since the mm package
10048 * tmac/*: Removed trailing spaces.
10050 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10051 the tmac subdirectory also).
10053 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10054 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10055 stuff since it is no longer needed.
10057 * README, PROBLEMS: Updated.
10059 2000-10-25 Werner LEMBERG <wl@gnu.org>
10061 Invert current behaviour: Search first FOOBAR.tmac, then
10064 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10065 (open_mac_file, macro_source): Implement it.
10066 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10067 doc/groff.texinfo, NEWS: Document it.
10069 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10070 Small documentation improvements.
10072 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10073 subdirectory also).
10075 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10077 2000-10-24 Werner LEMBERG <wl@gnu.org>
10079 Add local tmac directory (groff/site-tmac).
10081 * Makefile.in: Add $(localtmacdir).
10082 (uninstall_dirs): Add $(localtmacdir).
10083 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10084 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10085 in $(localtmacdir). Create $(localtmacdir).
10086 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10087 Updated and minor fixes.
10089 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10091 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10093 2000-10-23 Werner LEMBERG <wl@gnu.org>
10095 Move hyphen.us to tmac directory.
10097 * src/roff/troff/hyphen.us: Removed.
10098 * src/tmac/hyphen.us: Added.
10099 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10101 Change installation structure for data files from .../groff/... to
10102 .../groff/<version><revision>/... to be conform with other GNU
10105 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10106 doc/Makefile: Implement it.
10107 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10108 * configure: Updated.
10109 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10110 * NEWS: Document it.
10111 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10112 @MACRODIR@ instead of hard-coded directories.
10114 2000-10-22 Werner LEMBERG <wl@gnu.org>
10116 Implement $GROFF_BIN_PATH environment variable (which defaults to
10117 $bindir) used for child programs of groff and similar wrappers.
10119 * gendefs.sh: Improve documentation.
10120 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10121 src/preproc/eqn/Makefile.sub (neqn),
10122 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10123 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10125 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10126 $GROFF_PATH__ (the latter for communication with troff).
10127 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10129 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10130 doc/groff.texinfo: Document it.
10132 * doc/groff.texinfo: Improve documentation of troff's -a option.
10134 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10136 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10137 non-intrusive eol marker.
10138 (troff_output_file::determine_line_limits): New function.
10139 (troff_output_file::draw): Use it.
10140 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10141 output_pending_lines() instead of output_line().
10142 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10143 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10144 createImage): Small fixes.
10146 2000-10-14 Werner LEMBERG <wl@gnu.org>
10148 Replace tmac.safer with a real secure solution.
10150 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10151 system_request, pipe_output): Disable requests if in safer mode.
10152 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10153 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10154 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10155 doc/groff.texinfo, src/roff/groff/groff.man,
10156 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10158 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10159 (resource_manager::output_prolog): Replace setenv() with putenv().
10161 2000-10-09 Werner LEMBERG <wl@gnu.org>
10163 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10164 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10165 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10166 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10167 compilation errors with some compilers. It seems that this code
10168 is no longer necessary -- if yes, it is easy to add some #ifdef's
10169 for that particular old-fashioned compiler.
10171 * MORE.STUFF: Added info about Meta-tbl.
10173 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10175 2000-10-07 Werner LEMBERG <wl@gnu.org>
10177 Adding a new escape sequence \B'...': If the string between
10178 the delimiters is a valid numeric expression, return the character
10179 `1', and `0' otherwise. This is an analogon to \A.
10181 * src/roff/troff/input.cc (do_expr_test): Implement it.
10182 (token::next): Use it.
10183 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10185 * tmac/tmac.trace: Made independent from escape character.
10187 2000-10-06 Werner LEMBERG <wl@gnu.org>
10189 Adding a new request .dei: define indirect. The first and second
10190 parameter of .dei are taken from string registers instead directly;
10191 this very special request is needed to make tmac.trace independent
10192 from the escape character (which might even be disabled).
10194 * src/roff/troff/input.cc (do_define_macro): Implement it.
10195 (define_macro_indirect): New function.
10196 (init_input_requests): Use it.
10198 Adding two requests .ecs and .ecr: Save and restore the escape
10199 character. These two requests are needed to make tmac.trace
10200 independent from the escape character (which might even be
10203 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10205 (init_input_requests): Use it.
10207 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10209 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10211 Adding a new option -P and new environment variable GROPS_PROLOGUE
10212 to grops, selecting a different prologue file (minor modifications
10215 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10216 src/devices/grops/ps.cc (main): Implement it.
10217 * src/devices/grops/grops.man, NEWS: Document it.
10219 2000-09-22 Werner LEMBERG <wl@gnu.org>
10221 * INSTALL: Add info about selecting paper format.
10223 2000-09-21 Werner LEMBERG <wl@gnu.org>
10225 * src/roff/troff/input.cc (main): Fixing compiler warning.
10226 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10227 strings.h from the former to the latter.
10228 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10229 stuff from the former to the latter.
10231 2000-09-11 Werner LEMBERG <wl@gnu.org>
10233 Implementing two new requests .tm1 and .tmc: The former is similar
10234 to .tm but can output leading spaces; its syntax is similar to
10235 defining a string, i.e., a `"' can be used to mark the beginning of
10236 the string to be written to stderr: `.tm1 " test'. The latter is
10237 similar to .tm1 but doesn't write out a final newline character.
10239 * src/roff/troff/input.cc (terminal1, terminal_continue,
10240 do_terminal): New functions.
10241 (init_input_requests): Use them.
10242 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10244 2000-09-09 Werner LEMBERG <wl@gnu.org>
10246 * tmac/groff_mdoc.samples.man: Small fixes.
10248 2000-09-08 Werner LEMBERG <wl@gnu.org>
10250 * tmac/groff_mdoc.man: Fixing typo.
10252 2000-09-02 Werner LEMBERG <wl@gnu.org>
10254 Implementing a .nop request which does nothing.
10256 * src/roff/troff/input.cc (nop_request): New function.
10257 (init_input_requests): Use it.
10258 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10260 2000-09-01 Werner LEMBERG <wl@gnu.org>
10262 * doc/groff.texinfo: Added some comments.
10264 2000-08-30 Werner LEMBERG <wl@gnu.org>
10266 * src/roff/troff/TODO: Updated.
10268 2000-08-25 Werner LEMBERG <wl@gnu.org>
10270 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10272 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10274 * font/devps/generate/Makefile (SHELL): Define explicitly to
10275 "/bin/sh", for non-Unix platforms.
10276 (extraclean): Use a more portable "" quoting instead of a
10277 backslash (which doesn't work on DOS/Windows).
10279 * font/devlj4/generate/Makefile (extraclean): Ditto.
10281 * font/devdvi/generate/Makefile (extraclean): Ditto.
10283 2000-08-25 Werner LEMBERG <wl@gnu.org>
10285 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10286 src/roff/troff/troff.man: Document Eli's latest changes.
10288 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10290 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10291 macro file names of the form NAME.tmac as well as tmac.NAME.
10293 2000-08-25 Werner LEMBERG <wl@gnu.org>
10295 * src/include/posix.h: Remove definition of FILENAME_MAX.
10297 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10298 `sys_fatal' and `stop' function().
10300 * test-groff: Updated.
10302 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10304 Added the new troff command .output <arg> to suppress output (while
10305 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10306 registers (for passing the output dimensions to the output device).
10308 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10310 * src/roff/troff/node.h, src/roff/troff/node.cc
10311 (troff_output_file::really_print_line,
10312 ascii_output_file::really_print_line,
10313 supress_output_file::really_print_line): Use `width' parameter.
10314 (troff_output_file::really_on, troff_output_file::really_off,
10315 output_file::on, output_file::off, real_output_file::on,
10316 real_output_file::off, real_output_file::really_on,
10317 real_output_file::really_off): New functions.
10318 (real_output_file:public output_file): New variable `output_on'.
10319 (real_output_file::begin_page, real_output_file::copy_file,
10320 real_output_file::transparent_char, real_output_file::print_line):
10322 (real_output_file::print_line): Use check_output_limits.
10323 * src/roff/troff/reg.h, src/roff/troff/request.h,
10324 src/roff/troff/input.cc (assign_registers): New function to remove
10326 (do_ps_file): Use it.
10327 (check_output_limits, reset_output_registers, output_request,
10328 init_output_requests): New functions.
10329 (init_input_requests): Updated.
10331 Added new grohtml2 device and html2 preprocessor (coding
10332 not yet finished) which will eventually replace grohtml.
10334 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10336 * src/include/htmlindicate.h, src/include/htmlindicate
10337 (html_begin_suppress, html_end_suppress): New functions.
10338 * src/preproc/tbl/main.cc: Use it.
10339 * src/roff/groff/groff.cc: Add support for html2 device (which will
10340 automatically invoke the html2 preprocessor).
10341 * src/roff/troff/input.cc (is_html2): New variable.
10342 * src/roff/troff/troff.h, src/roff/troff/env.h,
10343 src/roff/troff/env.cc (environment::add_html_tag): New function
10345 (environment::do_break): Use it.
10346 * font/devhtml2/*: New files.
10347 * src/devices/grohtml2: New device.
10348 * src/preproc/html2: New preprocessor.
10349 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10351 2000-08-23 Werner LEMBERG <wl@gnu.org>
10353 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10355 2000-08-22 Werner LEMBERG <wl@gnu.org>
10357 * src/include/lib.h: Provide a fix for IRIX to not include
10360 2000-08-18 Werner LEMBERG <wl@gnu.org>
10362 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10363 since some non-GNU sed programs can't handle null regexps.
10364 * configure, src/preproc/eqn/Makefile.sub,
10365 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10367 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10368 bug (string.h and strings.h are both needed according to latest
10371 * MORE.STUFF: Added info about unroff and troffcvt.
10373 2000-08-08 Werner LEMBERG <wl@gnu.org>
10375 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10378 * tmac/tmac.man.old: Remove unused number register.
10380 * tmac.doc: Minor documentation fix.
10382 2000-08-07 Paul Eggert <eggert@twinsun.com>
10384 * src/roff/groff/pipeline.c (is_system_shell):
10385 Fix typo: "monocased_shell" no longer exists.
10387 2000-08-07 Paul Eggert <eggert@twinsun.com>
10389 Remove FILENAME_MAX limits.
10391 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10392 that the argument length is less than FILENAME_MAX.
10393 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10394 Use struct hack to allocate and free file name.
10395 (struct xtmpfile_list): fname is now part of the structure,
10396 not a pointer to another string.
10398 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10400 * src/include/posix.h: Add a default value for FILENAME_MAX.
10402 2000-08-06 Paul Eggert <eggert@twinsun.com>
10404 Add support for new BSD-style man pages (with ".Dd" instead of
10405 ".TH"), so that "groff -man" understands both styles, even
10406 when running "groff -man" on a host whose system man page
10407 macros don't support ".Dd".
10409 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10410 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10411 in case the system man macros don't define Dd or TH.
10413 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10414 * tmac/tmac.an: New one-line file.
10415 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10417 2000-08-06 Werner LEMBERG <wl@gnu.org>
10419 * src/roff/troff/troff.man: Fixing typos.
10421 Version 1.16.1 released
10422 =======================
10424 2000-07-31 Werner LEMBERG <wl@gnu.org>
10426 Preparing release 1.16.1.
10428 * REVISION: Revision number set to 1.
10429 * MORE.STUFF: Added info about port to DOS.
10430 * NEWS, win32-diffs: Updated.
10432 * src/include/nonposix.h: Remove first line -- this file is used
10435 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10438 2000-07-30 Werner LEMBERG <wl@gnu.org>
10440 * doc/texinfo.tex: Update to latest version.
10442 2000-06-28 Paul Eggert <eggert@twinsun.com>
10444 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10445 commands that fail. Don't assume that "export a=b" is valid shell
10446 syntax. This is needed for Solaris 2.5.1.
10448 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10449 comment about missing Solaris headers.
10451 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10453 2000-06-25 Werner LEMBERG <wl@gnu.org>
10455 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10458 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10460 * win32-diffs: Updated.
10461 * README.WIN32: Added CRs to make all Windows editors happy.
10463 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10464 src/roff/groff/pipeline.c).
10466 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10468 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10469 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10471 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10473 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10474 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10476 (main): Support non-Posix systems with several different styles of
10477 slash characters in file names.
10479 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10480 (main) [SET_BINARY]: Switch stdin into binary mode.
10482 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10483 (main): Support file names with several possible slash-type
10484 characters, as given by DIR_SEPS[] in nonposix.h.
10485 (main) [__MSDOS__]: If renaming the temporary index file fails
10486 because it has more than one dot in its trunk, replace the dot
10487 with an underscore and try again.
10488 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10490 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10492 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10493 (File::File): Open the input file in binary mode. Strip CR
10494 characters from each CR-LF pair.
10495 (xbasename): Support file names with several possible slash-type
10496 characters, as given by DIR_SEPS[] in nonposix.h.
10498 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10500 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10501 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10502 [!_POSIX_VERSION]: Define for traditional Unix systems.
10503 (real_output_file::real_output_file): Remove the MSVC-specific
10504 call to popen, use instead POPEN_WT, appropriately defined on
10505 nonposix.h. #include nonposix.h.
10506 (real_output_file::~real_output_file): Remove the MSVC-specific
10507 call to pclose, a suitable macro is now defined on nonposix.h.
10508 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10509 and WEXITSTATUS instead of assuming traditional Unix
10510 interpretation of the status returned by pclose.
10512 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10513 call to popen, use POPEN_RT instead (appropriately defined on
10514 nonposix.h). #include nonposix.h.
10515 (ps_bbox_request): Open the PostScript file in binary mode.
10516 Close the file after processing it.
10517 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10520 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10521 A version of run_pipeline that doesn't use `fork'.
10522 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10523 (system_shell_name, system_shell_dash_c)
10524 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10525 the ugliness of testing DOS/Windows file names for equality, and
10526 support both stock shells and ports of Unix shells.
10528 * src/roff/groff/groff.cc: #include nonposix.h.
10529 (BSHELL): Definition moved to nonposix.h.
10530 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10531 instead of a literal "-c".
10532 (xbasename): Support file names with several possible slash-type
10533 characters, as given by DIR_SEPS[] in nonposix.h.
10534 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10535 of literal strings.
10537 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10538 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10540 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10543 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10545 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10548 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10550 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10551 P_tmpdir is defined, use it instead of the literal "/tmp".
10552 (remove_tmp_files, add_tmp_file): New functions.
10553 (xtmpfile): Record temporary files and register an atexit function
10554 to delete them explicitly, instead of relying on the OS to do
10555 that, which doesn't work on non-Unix systems.
10557 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10558 (search_path::search_path): Use PATH_SEP instead of a literal
10560 (search_path::command_line_dir): Ditto.
10561 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10562 to support non-Posix systems.
10564 * src/libs/libbib/search.cc: #include nonposix.h.
10565 (search_list::add_file): Open the file in binary mode.
10567 * src/libs/libbib/linear.cc: #include nonposix.h.
10568 (file_buffer::load): Remove \r characters preceding \n from the
10571 * src/libs/libbib/index.cc: #include nonposix.h.
10572 (make_index_search_item): Open index_filename in O_BINARY mode.
10573 (index_search_item_iterator::get_tag): Ditto. Remove \r
10574 characters before \n characters.
10575 (index_search_item::check_files): Open files in binary mode.
10576 (index_search_item::munge_filename): Support DOS-style file names
10577 with backslashes and drive letters, use IS_ABSOLUTE.
10579 * src/devices/grops/ps.cc: #include nonposix.h.
10580 (main) [SET_BINARY]: Switch stdout to binary mode.
10582 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10583 (main) [SET_BINARY]: Switch stdout to binary mode.
10585 * src/devices/grolbp/lbp.cc: #include nonposix.h
10586 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10588 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10589 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10591 (main) [SET_BINARY]: Switch stdout to binary mode.
10592 [_MSC_VER]: Remove an explicit call to _setmode.
10594 * src/include/nonposix.h: New file.
10596 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10597 operation when building with DJGPP.
10598 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10599 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10602 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10604 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10605 etc. can include a semi-colon on DOS/Windows.
10606 (depend.temp): Use depend1.temp instead of depend.temp1, to
10607 prevent files from overerwiting each other on 8+3 filesystems.
10609 * gendef.sh (t): Change definition to work with DOS/Windows.
10611 doc/groff.texinfo: Apart of some typo corrections, I also changed
10612 some index entris, to make them more non-ambiguous, and also put
10613 @ignore around some parts that are not yet written, to allow the
10614 Info output be readable.
10616 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10618 Replaced specific checks for function declarations with a generic
10619 routine taken from GNU bfd.
10621 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10622 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10623 * configure.in: Use it.
10624 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10625 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10626 src/roff/groff/groff.cc: Use it.
10627 * Makefile.in, configure: Updated.
10629 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10631 * src/devides/grolbp/lbp.h: Removed unused variables.
10633 2000-05-31 Keith Thompson <kst@sdsc.edu>
10635 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10638 2000-05-31 Werner LEMBERG <wl@gnu.org>
10640 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10641 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10642 * configure.in: Use it.
10643 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10644 * configure, Makefile.in: Updated.
10646 * configure.in: Add test for strncasecmp().
10647 * src/include/lib.h: Use it.
10649 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10651 * src/preproc/grn/Makefile.sub: Add MLIB.
10653 2000-05-29 Nix <nix@esperi.demon.co.uk>
10655 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10657 2000-05-29 Werner LEMBERG <wl@gnu.org>
10659 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10661 * PROBLEMS: Small update.
10663 * src/devices/grolbp/lbp.cc: Various small fixes.
10665 2000-05-28 Keith Thompson <kst@sdsc.edu>
10667 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10669 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10671 2000-05-25 Werner LEMBERG <wl@gnu.org>
10673 * man/roff.man: Removed unused macro.
10675 2000-05-24 Werner LEMBERG <wl@gnu.org>
10677 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
10678 This is needed e.g. if you do
10679 `make distclean; ./configure; make dist'.
10681 Version 1.16 released
10682 =====================
10684 2000-05-23 Werner LEMBERG <wl@gnu.org>
10686 Adding font CWI (constant width italic) to devdvi.
10688 * font/devdvi/CWI: New file.
10689 * font/devdvi/generate/Makefile: Add generating rule.
10690 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10691 tmac/tmac.dvi: Use it.
10692 * NEWS: Announce it.
10694 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10695 * font/devlj4/generate/Makefile: Cosmetic changes only.
10697 * man/groff.man: Removed most of the redundant description of
10698 special characters (which is in groff_char.man). Added font
10699 translation CB->CR for devdvi. Other minor fixes.
10701 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10702 (registered) symbols.
10704 2000-05-22 Werner LEMBERG <wl@gnu.org>
10706 * doc/Makefile: Added rule for creating info files.
10708 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
10710 * font/devdvi/generate/Makefile: Fixed dependencies.
10712 * font/devps/*: Regenerated. Heavy changes for Bookman and
10713 NewCentury Schoolbook!
10714 * font/devps/generate/afmname: Will now run with GNU awk.
10715 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10716 * font/devps/generate/Makefile: Cosmetic changes only.
10718 2000-05-21 Werner LEMBERG <wl@gnu.org>
10720 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10721 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
10722 `.SS' now produces a heading with a smaller size than `.SH'.
10723 Completely formatted.
10724 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10726 * man/groff.man: Improved table appearance. Use of `eo' request
10727 to reduce number of doubled backslashes in macro definitions.
10728 Replacing `\e' with `\(rs'. Other minor fixes.
10730 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10731 to have correct line number.
10733 * INSTALL: Small improvement.
10735 2000-05-20 Bernd Warken <bwarken@mayn.de>
10737 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10740 2000-05-19 Bernd Warken <bwarken@mayn.de>
10742 * man/groff.man: Complete update (with a lot of corrections by WL).
10744 2000-05-18 Werner LEMBERG <wl@gnu.org>
10746 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10748 * font/*/*: Implement it.
10749 * man/groff_char.man, NEWS: Document it.
10751 * src/include/unix.h: Removed. It isn't used.
10753 * doc/groff.texinfo: Slight improvements.
10755 2000-05-17 Werner LEMBERG <wl@gnu.org>
10757 * README, win32-diffs: Small fixes and improvements.
10759 2000-05-16 Werner LEMBERG <wl@gnu.org>
10761 * FDL: New file (the Free Documentation License version 1.1).
10763 * doc/groff.texinfo: Added many start-up values for gtroff.
10764 Some structural improvements of the source code.
10766 2000-05-15 Werner LEMBERG <wl@gnu.org>
10768 * src/roff/troff/input.cc: Added small comment about troffrc-end.
10769 * src/roff/troff/troff.man: Added info about troffrc-end.
10771 2000-05-14 Werner LEMBERG <wl@gnu.org>
10773 * Makefile.in (EXTRADIRS): Fix typos.
10774 (dist): Handle deletion of old .tar.gz file correctly.
10775 (DISTDIRS): Include all tty output devices.
10777 * doc/groff.texinfo: Adding more cross references; countless other
10780 2000-05-13 Werner LEMBERG <wl@gnu.org>
10782 * MORE.STUFF: Added Robert Marks's utilities.
10784 2000-05-12 Werner LEMBERG <wl@gnu.org>
10786 Added win32 port contributed by Blake McBride
10787 <blake@florida-software.com>.
10789 * README.WIN32, win32-diffs: New files.
10792 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10793 (tmove, tmove2): Added parentheses to avoid compiler warnings.
10794 (change): Removed unused variables.
10796 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10797 (savebounds): Changed return value from `int' to `void'.
10798 * src/preproc/grn/hdb.cc: Ditto.
10800 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10801 final backslash in comment to avoid compiler warning.
10803 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10805 * doc/groff.texinfo: More fixes.
10807 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
10809 * tmac/tmac.doc: Documentation fix.
10811 2000-05-11 Werner LEMBERG <wl@gnu.org>
10813 * doc/groff.texinfo: Reading the source code shows up a lot of
10814 omissions and incorrect data... More conversion to @Deffn macros.
10816 2000-05-10 Werner LEMBERG <wl@gnu.org>
10818 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10821 * src/roff/troff/request.h: Removing unused `no_break_flag'.
10823 2000-05-09 Werner LEMBERG <wl@gnu.org>
10825 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10828 * doc/groff.texinfo: Extended history section. More conversion to
10829 @Deffn macros. More .tr documentation.
10831 2000-05-07 Werner LEMBERG <wl@gnu.org>
10833 * doc/groff.texinfo: Completed tab section. Added info about
10836 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
10838 * PROBLEMS: Describe configure script fix for OS/390 Unix.
10840 2000-05-05 Werner LEMBERG <wl@gnu.org>
10842 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10844 * NEWS: Document it.
10846 * man/troff.man: Minor optical improvements.
10848 2000-05-03 Werner LEMBERG <wl@gnu.org>
10850 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10852 * font/*/*: Implement it.
10853 * man/groff_char.man, NEWS: Document it.
10855 2000-05-02 Werner LEMBERG <wl@gnu.org>
10857 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10859 * NEWS: Document the three new man pages.
10861 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10862 * configure: Updated.
10864 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10866 2000-05-01 Werner LEMBERG <wl@gnu.org>
10868 Added grap support to grog.
10870 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10871 * src/roff/grog/grog.man: Document it.
10873 * doc/groff.texinfo, NEWS: Add info about grap support.
10875 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10876 (with slight fixes by me).
10878 * tmac/groff_tmac.man: New file documenting tmac mechanism.
10879 * tmac/Makefile.sub: Add groff_tmac.man.
10880 * man/roff.man: New file giving overview of roff system.
10881 * man/troff.man: A short reference of troff.
10882 * man/Makefile.sub: Add roff.man and troff.man.
10884 2000-04-30 Werner LEMBERG <wl@gnu.org>
10886 Added grap support to groff.
10888 * src/roff/groff/groff.cc: Implement it.
10889 * src/roff/groff/groff.man: Document it.
10891 * src/devices/grotty/grotty.man: Add cp1047 device.
10892 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10894 * src/roff/groff/groff.man: Ditto.
10895 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10896 * doc/groff.texinfo: Ditto.
10898 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10901 2000-04-29 Werner LEMBERG <wl@gnu.org>
10903 * man/groff_char.man: Add `pc' glyph.
10904 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10905 * tmac/tmac.tty: Add `pc' glyph.
10906 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
10907 we use cp1047 output device.
10909 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10910 there are still hardcoded latin1->unicode values in utf8's font
10912 * configure: Updated.
10913 * NEWS: Minor clarification. Updated.
10915 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
10918 2000-04-28 Werner LEMBERG <wl@gnu.org>
10920 Adding EBCDIC code page 1047.
10922 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10923 font/devcp1047/DESC.proto: New files.
10925 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10926 either ascii/latin1 or cp1047.
10927 * Makefile.in: Use it.
10928 * configure: Updated.
10930 Replacing and/or adding `md' (mathdot) glyph with `pc'
10931 (periodcentered) in all text fonts.
10933 * font/*/*: Change it.
10935 2000-04-27 Werner LEMBERG <wl@gnu.org>
10937 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10939 * configure.in: Add check for strings.h.
10940 * src/include/driver.h: Use HAVE_STRINGS_H.
10941 * src/devices/grolbp/lpb.cc: Remove string.h.
10943 * src/include/groff-getopt.h: New file. It will be used instead of
10944 getopt.h (to be included in lib.h) to avoid endless problems with
10945 picky C++ compilers.
10946 * src/include/lib.h: Use groff-getopt.h.
10947 * src/include/Makefile.sub: Updated.
10949 * configure: Updated.
10950 * Makefile.in: Updated.
10952 * NEWS: Mention EBCDIC support.
10954 2000-04-26 Werner LEMBERG <wl@gnu.org>
10956 * TODO: Some additions.
10958 2000-04-25 Werner LEMBERG <wl@gnu.org>
10960 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10963 2000-04-23 Werner LEMBERG <wl@gnu.org>
10965 * src/roff/troff/troff.man: Minor fixes.
10967 2000-04-22 Werner LEMBERG <wl@gnu.org>
10969 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10970 `.T' string register and the incompatible definition of the `.T'
10971 number register (compared to Unix troff).
10973 * man/groff_char.man: Add some missing characters.
10974 * font/devutf8/NOTES: Update.
10976 2000-04-21 Werner LEMBERG <wl@gnu.org>
10978 * src/include/htmlindicate.h, src/include/lib.h,
10979 src/include/posix.h: Fix copyright.
10981 * src/include/Makefile.sub: Update.
10983 2000-04-20 Werner LEMBERG <wl@gnu.org>
10985 * src/roff/troff/input.cc (input_char_description): Removing
10986 superfluous space char.
10988 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10990 * doc/groff.texinfo: Document EBCDIC.
10992 2000-04-19 Werner LEMBERG <wl@gnu.org>
10994 Introducing `shc' as the glyph name for the soft hyphen character.
10996 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10997 font/devlatin1/R.proto: Use it.
11001 2000-04-18 Werner LEMBERG <wl@gnu.org>
11003 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11004 dependency on ASCII order.
11006 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11008 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11009 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11011 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11012 to increase portability.
11014 2000-04-15 Werner LEMBERG <wl@gnu.org>
11016 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11017 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11018 the generic `\n' if under OS/390 Unix.
11020 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11022 * configure: Regenerated.
11024 2000-04-14 Werner LEMBERG <wl@gnu.org>
11026 * doc/groff.texinfo: More conversions to @Deffn.
11028 2000-04-12 Werner LEMBERG <wl@gnu.org>
11030 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11033 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11035 2000-04-10 Werner LEMBERG <wl@gnu.org>
11037 * doc/groff.texinfo: More conversions to @Deffn.
11039 2000-04-08 Werner LEMBERG <wl@gnu.org>
11041 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11042 Updated to latest version (glibc 2.1.3).
11044 2000-04-07 Werner LEMBERG <wl@gnu.org>
11046 * doc/Makefile (clean): Include more index files.
11047 Add rule texinfo->dvi.
11049 2000-04-05 Werner LEMBERG <wl@gnu.org>
11051 * doc/groff.texinfo: Added new index `op' for operators. More
11052 info on end of sentence characters. More use of @Deffn.
11054 2000-03-30 Werner LEMBERG <wl@gnu.org>
11056 * */*.man: Adding a note that a whitespace can be inserted between
11057 a command line option and its parameter -- we are using GNU getopt.
11059 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11061 2000-03-28 Werner LEMBERG <wl@gnu.org>
11063 Correct anachronism of calling the man macro file with `-man'
11064 instead of `-m man' etc.
11066 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11067 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11068 load tmac.<package>.
11070 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11074 * doc/groff.texinfo: Updated.
11076 * tmac/groff_man.man: Copyright added.
11078 2000-03-27 Werner LEMBERG <wl@gnu.org>
11080 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11081 typeset the request resp. escape name with a tt font -- due to a
11082 bug in texinfo.tex it is necessary to use the `-e' switch with
11085 Improving info about usage of groff units.
11089 2000-03-20 Werner LEMBERG <wl@gnu.org>
11091 * doc/groff.texinfo: Added section about man macro package
11092 (I've basically taken groff_man.man). Introducing new indices `ma'
11093 for macros/strings and `gl' for glyph names. Other minor fixes.
11095 * tmac/groff_man.man: Fixed some typos.
11097 2000-03-19 Werner LEMBERG <wl@gnu.org>
11099 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11102 * doc/texinfo.tex: New file.
11104 2000-03-18 Werner LEMBERG <wl@gnu.org>
11106 * doc/groff.texinfo: Improved section on number registers. Other
11109 2000-03-16 Werner LEMBERG <wl@gnu.org>
11111 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11114 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11115 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11116 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11117 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11119 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11121 * src/roff/grog/grog.man: Updated copyright date.
11123 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11125 * configure.in: Added test for strdup.
11127 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11130 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11134 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11136 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11138 2000-03-11 Werner LEMBERG <wl@gnu.org>
11140 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11142 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11143 * src/include/lib.h: Remove some spaces.
11145 2000-03-10 Werner LEMBERG <wl@gnu.org>
11147 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11148 initializers from arguments (some compilers don't like this).
11150 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11152 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11153 used by pic and eqn to tell grohtml where the graphic regions start
11155 * src/libs/libgroff/Makefile.sub: Use it.
11156 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11157 graphic_start() and graphic_end() from htmlindicate.cc.
11159 2000-03-09 Werner LEMBERG <wl@gnu.org>
11161 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11162 * tmac/groff_man.man: More fixes.
11164 2000-03-08 Werner LEMBERG <wl@gnu.org>
11166 * doc/Makefile: Added texput.log to the `clean' target.
11167 * doc/groff.texinfo: Added info about delimiters for escapes.
11169 2000-03-08 Bernd Warken <bwarken@mayn.de>
11171 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11172 other graphic formats.
11174 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11176 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11177 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11178 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11181 2000-03-07 Werner LEMBERG <wl@gnu.org>
11183 * doc/groff.texinfo: Spelling fixes.
11185 2000-03-06 Werner LEMBERG <wl@gnu.org>
11187 * tmac/groff_man.man: Completely revised to cover everything in
11190 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11191 Other minor fixings.
11192 * src/roff/troff/env.cc (environment_copy): Improve error message and
11194 * src/roff/troff/TODO: Updated.
11196 * doc/Makefile: Bug fixes -- this is still provisional, though...
11198 * tmac/eqnrc: Small fixes.
11200 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11202 Adding a request `evc' to copy environments.
11204 * src/roff/troff/env.cc (environment::copy, environment_copy):
11206 * src/roff/troff/env.h: Add prototype.
11208 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11210 Adding strsep() -- Solaris 8 doesn't have it.
11212 * configure.in: Test it.
11213 * src/devices/grolbp/lbp.cc: Add code.
11215 2000-03-05 Werner LEMBERG <wl@gnu.org>
11217 * src/roff/troff/div.cc (macro_diversion::output,
11218 top_level_diversion::output): Fixing an incompatibility with
11219 original troff: \x'0' updates the .a register also. Thanks to
11220 <Andries.Brouwer@cwi.nl> for pointing this out.
11221 * doc/groff.texinfo: Document it.
11223 * Makefile.in: Create Makefile.dep if necessary before calling the
11224 submake process to avoid warning about nonexistent file.
11226 * NEWS, PROJECTS: Updated.
11228 2000-03-04 Werner LEMBERG <wl@gnu.org>
11230 * tmac/troffrc: Add tmac.lbp.
11232 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11234 * tmac/tmac.lbp: New file.
11235 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11238 2000-03-03 Werner LEMBERG <wl@gnu.org>
11240 * Makefile.in: Fixing $(subdir).
11242 * README, NEWS: Small fixes.
11244 * test-groff: Adding path to grolbp.
11246 * configure.in: The (new) file src/xditview/Imakefile.in will be
11247 also configured -- it is now possible to build gxditview in a
11248 directory different from $srcdir.
11250 2000-03-02 Blake McBride <blake@florida-software.com>
11252 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11254 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11256 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11258 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11261 2000-02-29 Werner LEMBERG <wl@gnu.org>
11263 Adding GNU getopt to the groff distribution.
11265 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11267 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11268 * aclocal.a4: Remove GROFF_GETOPT function.
11269 * configure.in, Makefile.in, PROBLEMS: Update.
11270 * src/include/lib.h: Replace getopt tests with getopt.h.
11271 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11273 * doc/groff.texinfo: Further checking/updating. Adding more index
11276 * man/groff_out.man: Fix nroff mode activation (for emacs).
11277 * man/groff_font.man: Add missing ligature.
11279 2000-02-28 Werner LEMBERG <wl@gnu.org>
11281 * doc/groff.texinfo: Further checking/updating. Adding more index
11284 * src/devices/grolbp/grolbp.man: Added a comment line at the
11285 beginning of the file (similar to shell scripts) which indicates
11286 that `tbl' should be used as a preprocessor.
11288 2000-02-27 Blake McBride <blake@florida-software.com>
11290 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11291 Windows NT 4.0). Uses _MSC_VER define where necessary.
11293 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11294 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11295 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11296 src/include/lib.h, src/libs/libgroff/errarg.cc,
11297 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11298 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11299 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11300 src/roff/troff/div.cc, src/roff/troff/env.cc,
11301 src/roff/troff/input.cc, src/roff/troff/node.cc,
11302 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11303 if_to_a() to avoid name clashes.
11304 * src/include/posix.h: Don't use unistd.h.
11305 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11306 clause for integrating non-Unix xtmpfile() code.
11307 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11308 structure; use "rt" for popen() in pipe_source(); add getpid()
11310 * src/roff/troff/node.cc: Use special versions of popen() in
11311 real_output_file() and pclose() in ~real_output_file().
11313 2000-02-27 Werner LEMBERG <wl@gnu.org>
11315 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11316 LBP-8 series laser printers). This code has been contributed by
11317 Francisco Andrés Verdú <pandres@dragonet.es>.
11319 * src/devices/grolbp/*: The grolbp output device.
11320 * font/devlpb/*: The font description files.
11321 * Makefile.in: Add grolpb and devlbp subdirectories.
11323 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11324 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11327 * doc/groff.texinfo: Further checking/updating. Adding more index
11332 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11334 * man/groff_font.man: Adding info about obsolete DESC keywords.
11335 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11338 2000-02-26 Werner LEMBERG <wl@gnu.org>
11340 * src/preproc/grn/grn.man: Added info about the gremlin file format
11341 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11343 2000-02-25 Werner LEMBERG <wl@gnu.org>
11345 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11346 friends to be non-integer.
11348 * src/preproc/grn/grn.man: Document it.
11350 * doc/groff.texinfo: Further checking/updating. Adding more index
11353 2000-02-24 Werner LEMBERG <wl@gnu.org>
11355 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11356 line thicknesses to be integer multiples of this value.
11358 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11359 corresponding code doesn't work (yet).
11361 * doc/groff.texinfo: Further checking/updating. Adding more index
11364 2000-02-23 Werner LEMBERG <wl@gnu.org>
11366 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11367 specify line thickness instead of base units. The new default
11368 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11369 thick lines respectively.
11371 Removed unused variable `prevval'.
11373 * src/preproc/grn/grn.man: Updated.
11375 2000-02-22 Werner LEMBERG <wl@gnu.org>
11377 * src/preproc/grn/main.cc: Slight formatting.
11379 * src/roff/groff/groff.man: Formatting fix.
11380 * src/preproc/grn/grn.man: Ditto.
11382 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11384 * doc/groff.texinfo: Further checking/updating.
11386 2000-02-21 Werner LEMBERG <wl@gnu.org>
11388 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11390 * test-groff: Added grn subdir to path.
11392 * doc/groff.texinfo: Some restructing and other small improvements.
11394 * src/roff/groff/groff.cc (help): Fixed info string.
11396 2000-02-20 Werner LEMBERG <wl@gnu.org>
11398 * doc/meref.me: Fix description of .GS request.
11400 * src/roff/troff/troff.man: Fixing typo.
11402 Adding the `grn' preprocessor for gremlin graphic files.
11404 * src/preproc/grn/*: This is the Berkeley distribution written by
11405 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11406 Senderowicz and Werner Lemberg.
11408 * doc/grnexampl.{me,g}: A sample for grn.
11410 * Makefile.in: Added subdirectory entry for grn.
11412 * src/roff/groff/groff.cc: Added support for grn. It can be now
11413 called with the switch `-g'.
11415 * src/roff/groff/groff.man: Updated.
11417 * src/roff/grog/grog.{man,pl,sh}: Updated.
11421 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11423 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11424 parametrically polymorphic.
11426 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11427 and the alterations to xtmpfile.
11428 xtmpfile can be requested to return the filename created
11429 and asked not to unlink the temp file. The default behaviour
11430 if parameters are absent is exactly the same as before.
11432 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11434 A new request `length' is available which returns the length of a
11435 string in a number register:
11437 * src/roff/troff/input.cc (length_macro): Implement it.
11438 * src/roff/troff/input.cc (init_input_requests): Register it.
11440 2000-02-11 Werner LEMBERG <wl@gnu.org>
11442 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11443 of the `substring' request.
11445 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11448 * src/roff/troff/TODO, NEWS: Updated.
11450 2000-02-09 Werner LEMBERG <wl@gnu.org>
11452 * src/roff/groff/groff.man: Added an example.
11454 2000-02-06 Werner LEMBERG <wl@gnu.org>
11456 I've considerably modified the directory structure of the
11457 distribution to get a more vertical layout. For example, the number
11458 of top level directories has been reduced from 42 to 6.
11460 As a consequence, many changes, especially to the makefiles, were
11463 * The makefile variables `top_builddir' and `top_srcdir' have been
11464 introduced. Virtually all relative paths have been replaced with
11465 absolute ones using these two variables.
11467 * Dependencies (in the files `Makefile.dep') are no longer part of
11468 the distribution. Instead, they are created during a `make install'
11469 in the build directory.
11471 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11472 make `top_srcdir' and `top_builddir' absolute.
11474 Some other changes:
11476 * Man pages now depend on the files `VERSION' and `REVISION'.
11478 * The added shell script `mkinstalldirs' will replace `mkdir' in
11481 * VERSION: Version number increased to 1.16.
11483 2000-02-04 Werner LEMBERG <wl@gnu.org>
11485 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11487 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11488 (after an update of the mm stuff).
11490 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11492 2000-02-03 Werner LEMBERG <wl@gnu.org>
11494 The .psbb request will now also accept Mac PS images (i.e. using LF
11495 as the EOL character).
11497 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11498 (with slight modifications).
11499 * troff/input.cc (do_ps_file): Use it.
11501 * test-groff: Add grohtml and grolj4 output devices to PATH.
11503 2000-01-30 Werner LEMBERG <wl@gnu.org>
11505 * NEWS, MORE.STUFF: Updated.
11507 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11509 Add the `srand' command to pic.
11511 * pic/lex.cc, pic/pic.y: Implement it.
11512 * pic/pic.man: Document it.
11513 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11515 2000-01-30 Werner LEMBERG <wl@gnu.org>
11517 Add a new request `.psbb'. This does exactly what the external
11518 program psbb did. It scans a PostScript image file for a
11519 %%BoundingBox comment and extracts the bounding box values (in
11520 PostScript units) which are then stored in the four new (read-only)
11521 number registers `llx', `lly', `urx', and `ury'.
11523 This will allow the usage of the .PSPIC macro without worrying
11524 about unsafe behaviour of groff, i.e., it will work without the
11525 `-U' switch of groff.
11527 * troff/input.cc: Implement it.
11528 * tmac/tmac.pspic: Use it.
11529 * troff/troff.man, grops/grops.man, NEWS: Document it.
11530 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11532 This is bloody C code simply adapted from psbb.c! Any improvements
11535 2000-01-29 Werner LEMBERG <wl@gnu.org>
11537 * man/groff_font.man: Minor clarifications.
11541 2000-01-28 Werner LEMBERG <wl@gnu.org>
11543 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11545 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11547 * man/groff_font.man: Brought up to date regarding tcommand
11549 * libgroff/font.cc: Handle everything after `--' as a comment
11551 * devps/*: Added comment delimiter inside devps font files.
11553 2000-01-28 Werner LEMBERG <wl@gnu.org>
11555 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11556 \fC...\fP (which now works as expected).
11558 * troff/troff.man: Fix typo.
11560 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11562 Completed the pass_filenames implementation in troff.
11564 * libdriver/input.cc: Will read the new `F' tcommand.
11565 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11566 * troff/input.cc: Use it.
11568 2000-01-26 Werner LEMBERG <wl@gnu.org>
11570 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11571 font will now be updated even if an invalid font is selected.
11573 2000-01-24 Werner LEMBERG <wl@gnu.org>
11575 * doc/homepage.ms: Updated for new tmac.arkup.
11577 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11579 * tmac/tmac.arkup: Cleanup.
11581 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11583 Removed obsolete .LINK macro completely.
11585 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11586 will be immediately appended to the second argument (to be used with
11587 punctuation, for example).
11589 Disabled .CDFTP macro temporarily for security reasons.
11591 * tmac/groff_markup.man: Complete revision for latest changes in
11592 tmac.arkup -- note that it does not yet format correctly with
11595 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11597 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11598 * devutf8/R.proto: Add mappings for wp, lh, rh.
11599 * devutf8/NOTES: Updated.
11601 2000-01-23 Werner LEMBERG <wl@gnu.org>
11603 * doc/groff.texinfo: Updated version/copyright info.
11605 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11607 Added support for two new directives in device descriptions:
11608 `pass_filenames' (to pass the input file name to the output device)
11609 and `use_charnames_in_special' (to support e.g. accented characters
11610 in the `X' request).
11612 * include/font.h, troff/charinfo.h: Declare it.
11614 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11616 * devhtml/DESC: Use it.
11618 * troff/input.cc: New function encoded_char.
11620 * troff/token.h: Add test for `specialness'.
11622 2000-01-21 Werner LEMBERG <wl@gnu.org>
11624 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11625 mistake from the list of files to be installed.
11627 2000-01-18 Werner LEMBERG <wl@gnu.org>
11629 * README: Added info how to apply patches.
11631 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11633 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11635 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11637 * troff/input.cc: Add support for troffrc-end.
11639 * tbl/main.cc: Altered to issue table-start and table-end special
11640 characters if using the html device.
11642 * devhtml/*: Modified font files to incorporate html encoding of
11645 * tmac/groff_markup.man: New file documenting tmac.arkup.
11647 * tmac/troffrc-end: New file. This is invoked after all user
11648 specified macros. Currently used by the html device to include
11649 tmac.html. Thus no need for users to specify -mhtml anymore.
11651 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11652 (MAN7): Add groff_markup.man.
11654 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11656 * tmac/troffrc: tmac.arkup will now be called for the html device.
11658 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11659 extra device specific information about fonts.
11661 * doc/homepage.ms: New file. It is an example how an HTML home page
11662 could look like with grohtml.
11664 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11666 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11668 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11671 * devutf8/NOTES: Updated.
11673 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11675 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11676 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11677 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11678 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11679 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11680 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11681 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11682 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11685 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11687 2000-01-12 Fabrizio Polacco <fab@prosa.it>
11689 grolj4: Paper size will be searched case-insensitively.
11691 * include/lib.h: Add check for strcasecmp().
11692 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11693 * configure.in: Check for strcasecmp().
11695 2000-01-11 Werner LEMBERG <wl@gnu.org>
11697 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11700 2000-01-10 Werner LEMBERG <wl@gnu.org>
11702 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11705 Add a new read-only register, `.Y', which contains the groff
11708 * troff/input.cc (init_input_requests): Define it.
11709 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11710 * doc/groff.texinfo, troff/troff.man: Document it.
11712 * libgroff/Makefile.sub (version.cc): Add definition of
11713 `Version_string[]', consisting of `<major>.<minor>.<revision>'
11714 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11715 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11716 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11717 troff/input.cc, pfbtops/pfbtops.c: Use it.
11719 2000-01-10 Fabrizio Polacco <fab@prosa.it>
11721 Add a revision scheme to the groff package.
11723 * REVISION: New file.
11724 * libgroff/Makefile.sub (version.cc): Use it to define
11725 `revision_string[]'.
11726 * grops/psrm.cc: Use revision_string (converted to an unsigned
11727 integer) in constructor of resource_manager.
11729 2000-01-10 Bruno Haible <haible@clisp.cons.org>
11731 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11733 * Makefile.in (DEVDIRS): Add devutf8.
11734 * grotty/tty.cc: Include device.h.
11735 (glyph): Change type of `code' to `unsigned int'.
11736 (tty_printer): New field is_utf8. Constructor takes device argument.
11737 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11738 (tty_printer::add_char): Change type of first arg to `unsigned int'.
11739 (tty_printer::put_char): New function.
11740 (tty_printer::end_page): Use put_char() instead of ::putchar().
11741 (make_printer): Pass device to tty_printer constructor.
11742 * nroff.sh: Determine default device by calling 'locale'. As a
11743 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11744 Recognize UTF-8 locales.
11745 * tmac/eqnrc: Recognize utf8 like latin1.
11746 * tmac/troffrc: Device utf8 needs tmac.tty.
11748 2000-01-07 Werner LEMBERG <wl@gnu.org>
11750 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11752 2000-01-07 Paul Eggert <eggert@twinsun.com>
11754 Add a new predefined writeable number register, `year',
11755 which contains the current year.
11757 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11758 * tmac/tmac.s: Use it.
11759 * troff/input.cc (init_registers): Initialize it.
11761 2000-01-06 Werner LEMBERG <wl@gnu.org>
11763 * PROBLEMS: Fixed typo.
11765 2000-01-04 Paul Eggert <eggert@twinsun.com>
11767 * PROBLEMS: Add Y2k advice for the yr number register.
11769 2000-01-03 Paul Eggert <eggert@twinsun.com>
11771 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11773 2000-01-02 Werner LEMBERG <wl@gnu.org>
11775 * tmac/tmac.arkup: Slight modification of macros to provide better
11776 appearance for non-HTML formats.
11778 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
11780 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11781 does not automatically translate to malloc(n) on all OSes
11782 (e.g., SunOS) so do it explicitly. Also, check the returned
11785 2000-01-01 Werner LEMBERG <wl@gnu.org>
11787 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
11789 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11790 expects this variable
11792 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
11794 * doc/Makefile: Added instructions to create HTML and text
11795 versions of some files.
11797 1999-12-31 Werner LEMBERG <wl@gnu.org>
11799 * Updated INSTALL.gen.
11801 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11802 better resp. correctly with non-HTML devices.
11804 Version 1.15 released
11805 =====================
11807 1999-12-28 Werner LEMBERG <wl@gnu.org>
11809 * NEWS, VERSION: Changed to 1.15
11811 1999-12-27 Paul Eggert <eggert@twinsun.com>
11813 * nroff/nroff.man: -S is safer, not safe.
11815 * groff/groff.cc (main): Use `safer', not `safe', in variable
11816 names. This does not change the behavior.
11818 * troff/input.cc (main): Likewise.
11820 * nroff/nroff.sh: Likewise.
11822 * troff/input.cc (prepend_string): New function.
11823 (main): Prepend -msafer, so that we check macro libraries for
11826 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11828 Version 1.14 released
11829 =====================
11831 1999-12-26 Werner LEMBERG <wl@gnu.org>
11833 * NEWS, VERSION: Changed to 1.14.
11835 1999-12-24 Werner LEMBERG <wl@gnu.org>
11837 * refer/refer.cc: Fixing the last fix.
11839 Version 1.13 released
11840 =====================
11842 1999-12-23 Werner LEMBERG <wl@gnu.org>
11844 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11849 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11851 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11852 document conventions, the version number must be a real.
11854 Version 1.12.1 released
11855 =======================
11857 1999-12-22 Werner LEMBERG <wl@gnu.org>
11859 * VERSION: Changed to 1.12.1.
11861 1999-12-22 Alan Rooks <arooks@istar.ca>
11863 * refer/refer.cc (do_file): Slight modification to satisfy the
11864 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11867 1999-12-20 Werner LEMBERG <wl@gnu.org>
11869 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11872 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11873 list of unsafe requests.
11875 * pic/pic.man: Fixed a typo.
11877 * man/groff_out.man: Fixed a typo.
11879 1999-12-18 Werner LEMBERG <wl@gnu.org>
11881 * Makefile.in: Doc fixes.
11883 1999-12-17 Fabrizio Polacco <fab@prosa.it>
11885 * groff/groff.cc: Missing `U' option added to getopt().
11887 * troff/troff.man: Missing `U' option added to synopsis.
11889 Version 1.12 released
11890 =====================
11892 1999-12-14 Werner LEMBERG <wl@gnu.org>
11894 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11897 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11898 with the more appropriate terms `safer' and `unsafe'.
11900 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11901 sys_nerr and sys_errlist[].
11903 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11905 * pic/pic.y, pic/pic.cc: Added check for fmod().
11907 1999-12-13 Werner LEMBERG <wl@gnu.org>
11909 * VERSION: Changed to 1.12.
11911 Here some patches from various sources; most of them taken from
11912 the Debian distribution.
11914 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11915 tmac/Makefile.sub: New files copied directly from the NetBSD
11916 distribution. Probably, some additional adaptation later on is
11919 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11920 of unsafe requests.
11922 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11923 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11924 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
11925 (`-S') is now the default.
11927 * README, NEWS: Updated.
11929 1999-12-09 Werner LEMBERG <wl@gnu.org>
11931 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11933 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11935 1999-12-06 Werner LEMBERG <wl@gnu.org>
11937 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11938 grief than relief today. Additionally, it is against the GNU
11941 * configure: Recreated.
11943 1999-12-05 Werner LEMBERG <wl@gnu.org>
11945 * configure.in: Added GROFF_LIBM.
11947 * configure: Recreated.
11949 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11952 * Makefile.in: Added definition of $(LIBM).
11954 * Makefile.comm (LIBM): Removed.
11956 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11958 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
11960 * doc/Makefile: Added rule for generation pic.html.
11962 (clean): Files produced by grohtml will be removed also.
11964 * doc/pic.ms: Small fix.
11966 * tmac/tmac.html: Fixed suppression of headers.
11968 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
11970 * tmac/tmac.html: Fixing horizontal arrows.
11972 Turning off hyphenation.
11974 * tmac/tmac.an: Improved support for grohtml; better indentation,
11975 no footers/headers.
11977 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
11979 * tmac/tmac.arkup: Added CDFTP macro
11981 * tmac/tmac.html: All headers are turned off for ms, me, and mm
11984 * tmac/troffrc: Some additions for HTML stuff.
11986 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
11988 * tmac/tmac.html: Small changes.
11990 1999-09-26 Werner LEMBERG <wl@gnu.org>
11992 * doc/groff.texinfo: Minor fixes.
11994 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
11996 * devhtml/TR: Changed spacewidth to 3.
11998 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12000 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12002 * tmac/tmac.arkup: New file.
12004 * grohtml/ChangeLog: New file.
12006 1999-09-16 Werner LEMBERG <wl@gnu.org>
12008 * doc/groff.texinfo (Common Features): Added Copying chapter.
12009 Changed format to @smallbook.
12011 1999-09-15 Werner LEMBERG <wl@gnu.org>
12013 * NEWS: Added info about groff.texinfo.
12015 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12018 1999-09-14 Werner LEMBERG <wl@gnu.org>
12020 * groff/groff.man: More updates.
12022 1999-09-13 Werner LEMBERG <wl@gnu.org>
12024 * doc/groff.texinfo: New file. This manual is still very
12025 rudimentary. It has been originally contributed by Trent
12026 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12029 * INSTALL: Added information about the `doc' subdir
12031 * troff/troff.man: Minor fixes.
12033 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12036 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12038 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12039 also, otherwise it is included itself in another call of `make
12042 * groff/groff.cc (synopsis): Removed superfluous space.
12044 * PROJECTS, PROBLEMS, NEWS: Updated.
12046 * VERSION: Updated to 1.12beta.
12048 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12050 * README: Updated: Included documentation about CVS repository,
12051 mailing lists, and daily snapshots.
12053 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12055 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12057 * tmac/tmac.an: If the tag didn't fit into the space that the
12058 macro `TP' specifies, the rest of the tag went into the space for
12061 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12063 * grolj4/lj4.cc: Added duplex printing (option `-d').
12065 * grolj4/grolj4.man: Document duplex printing.
12067 1999-09-12 Werner LEMBERG <wl@gnu.org>
12069 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12070 non-GNUish sed programs.
12072 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12075 * configure.in (LIBS): Added `-lc'
12077 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12079 * pic/tex.cc (solid_arc): Casting M_PI to double.
12081 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12083 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12084 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12085 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12087 * groff/groff_man.man: New file. This manual page was originally
12088 written for the Debian GNU/Linux system by Susan G. Kleinmann
12091 * eqn/list.cc (list_box::compute_metrics,
12092 list_box::compute_sublist_width): Removed variable declaration to
12093 avoid shadowing warnings.
12095 * grops/psrm.cc (resource_manager::process_file): Ditto.
12097 * tfmtodit/tfmtodit.cc (main): Ditto.
12099 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12100 to avoid shadowing warnings.
12102 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12103 shadowing loop variable.
12105 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12107 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12109 New grohtml frontend to convert groff input to html.
12111 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12113 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12115 * tmac/eqnrc: Added html device.
12117 * tmac/tmac.html: New file.
12119 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12120 (troff_output::start_picture, troff_output::finish_picture),
12121 tbl/main.cc (process_input_file):
12122 Surrounded output with `graphics_start' and `graphics_end' so that
12123 the html driver can identify non-text portions.
12125 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12126 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12127 grotty/tty.ps (tty_printer::set_char): Additional parameter
12130 * include/printer.h: Class printer: New function
12131 set_char_and_width; new variables (is_char_named, is_named_set,
12132 named_command, named_char_s, named_char_n) to hold information
12133 about named characters -- needed by the html driver.
12135 * libdriver/printer.cc (printer::set_ascii_char,
12136 printer::set_special_char): Use set_char_and_width.
12138 * devhtml/*: New device files for html driver.
12140 * grohtml/*: New driver grohtml.
12142 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12144 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12147 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12149 * libgroff/string.cc (search): Small fix to test against NULL
12152 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12154 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12155 \b'abc') were stacked in reverse order when processed in a
12158 * troff/node.h: Added `*last' to struct `node' to make the above
12161 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12162 The default scale for the 'f' and 't' graphics functions were 'm'
12163 rather than 'u' (i.e., no scaling).
12165 1999-09-11 Peter Miller <peterm@jna.com.au>
12167 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12168 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12169 defining include paths.
12171 * soelim/soelim.cc (include_path_append): New function.
12173 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12175 * tbl/main.cc (process_options): Unix (at least Documenter's
12176 Workbench) tbl allows arbitrary non-alpha characters between
12179 1999-09-11 Paul Eggert <eggert@twinsun.com>
12181 Y2k fixes. Don't assume that the current year precedes 2000.
12183 * doc/meref.me: Add \n(y2, \n(y4.
12185 * tmac/doc-common (Yr): New number register.
12186 (Dd): Don't assume current year precedes 2000.
12188 * tmac/tmac.e (td): Likewise.
12189 (y2, y4): New number registers.
12191 * pic/pic.man: Update reference for pic paper to May, 1991
12194 1999-09-11 Werner LEMBERG <wl@gnu.org>
12196 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12197 Removed quotation marks which prevented correct expansion of
12200 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12202 1999-09-10 Werner LEMBERG <wl@gnu.org>
12204 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12207 * Removed configure.old.
12209 1999-08-31 Werner LEMBERG <wl@gnu.org>
12211 * VERSION: Updated to 1.11.1
12213 1999-05-27 Werner LEMBERG <wl@gnu.org>
12215 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12217 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12218 added quotations around $(tmac_wrap) to avoid syntax error if
12221 * configure: Newly generated using autoconf 2.13.
12223 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12225 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12227 * README, PROJECTS, NEWS, INSTALL, VERSION,
12228 doc/Makefile. doc/pic.ms, groff/groff.man:
12229 Prepare for 1.11 release. No code changes.
12230 Documentation for pic added (doc/pic.ms).
12232 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12234 * Version 1.10 released.
12236 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12238 * afmtodit/afmtodit.pl: Avoid comment on first line.
12240 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12242 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12243 * configure.in: Call it.
12245 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12246 (distfiles): Doesn't depend on config.log or config.cache.
12248 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12250 * grog/grog.sh: Use print "" rather than print in END rule.
12252 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12254 * tbl/main.cc (process_data): Don't give error for excess data
12255 entries that are comments.
12257 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12259 * tbl/main.cc (process_data): Fix case where new for-scope rules
12260 silently change meaning of code.
12262 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12264 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12265 of non-zero hyphenation codes.
12267 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12269 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12271 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12273 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12275 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12277 * tmac/tmac.andoc: Make it work in compatibility mode.
12279 * refer/token.h (token_info::is_range_sep): New function.
12280 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12281 * refer/ref.cc (reference::output): More sophisticated check for
12284 * devps/prologue.ps (MANUAL): New procedure.
12285 * grops/ps.cc (main): New -m option.
12286 (usage): Include -m.
12287 (ps_printer::~ps_printer): Implement -m.
12289 * aclocal.m4 (GROFF_G): New macro.
12290 * configure.in: Call it.
12291 * Makefile.in (g): Provided by configure.
12293 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12295 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12298 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12299 (tmac_m, tmac_s): Deleted.
12300 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12301 tmac_s_prefix): New variables.
12302 (MDEFINES): Change accordingly.
12303 * Makefile.comm (.man.n): Use new TMAC_* variables.
12304 * configure.in (GROFF_TMAC): Call.
12305 * aclocal.m4 (GROFF_TMAC): Define.
12306 * tmac/Makefile.sub (stamp_wrap): New target.
12307 (install_data, uninstall_sub): Handle macro wrapping.
12309 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12311 * tbl/main.cc (main): Ignore -T option.
12313 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12315 * devlj4/generate/special.map: Add definition of \(nb.
12317 * tmac/tmac.dvi: Add definition of \(nb.
12319 * troff/dictionary.c (dictionary::dictionary): association::v gets
12320 initialized by association::association.
12322 * tmac/Makefile.sub: Avoid using temporary files when installing.
12324 * troff/env.cc (environment::set_font): Make bad font number a
12327 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12329 * Makefile.in (datadir): Use share rather than lib.
12331 * groff/groff.cc (basename): Rename to xbasename.
12333 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12335 * Makefile (CCLIBS): Don't use.
12336 * Makefile.ccpg: Likewise.
12338 * acgroff.m4: Rename to...
12339 * aclocal.m4: Modify extensively for autoconf 2.
12340 * configure.in: Likewise.
12341 * Makefile.in: Likewise.
12343 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12345 (xstrsignal): Check for definition of NSIG. Conditionalize
12346 on SYS_SIGLIST_DECLARED. Make return type const.
12348 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12350 * troff/input.cc (interpolate_macro): Rephrase missing space
12353 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12355 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12356 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12357 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12358 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12359 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12360 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12361 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12362 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12363 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12364 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12365 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12368 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12370 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12372 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12374 (macro_iterator::macro_iterator): Add additional argument.
12376 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12378 * troff/div.cc (vertical_size::vertical_size): In place of integer
12379 specifying line spacing use cunits specifying post vertical
12381 (macro_diversion::output, top_level_diversion::output): Likewise.
12382 * troff/div.h: Change declarations accordingly.
12383 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12385 (pending_output_line::pending_output_line,
12386 pending_output_line::output, environment::output,
12387 environment::output_line, environment::output_title,
12388 environment::hyphenate_line): In place of
12389 integer specifying line spacing use cunits specifying post vertical
12391 (environment::environment): Add post_vertical_spacing and
12392 prev_post_vertical_spacing arguments.
12393 (environment::get_post_vertical_spacing): New function.
12394 (environment::total_post_vertical_spacing): New function.
12395 (environment::post_vertical_spacing): New function.
12396 (init_env_requests): Initialize pvs request and .pvs register.
12397 * troff/env.h: Change declarations.
12399 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12401 * tmac/tmac.pspic: Immediately remove the temporary file.
12403 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12405 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12406 height is specified.
12408 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12410 * tbl/table.c (struct vertical rule, class table_entry): Use int
12411 not short for start_row and end_row.
12413 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12415 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12417 (diverted_space_node::reread, process_input_stack): Call
12418 trapping_blank_line() rather than blank_line().
12419 (init_input_requests): Bind "blm" to blank_line_macro().
12421 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12423 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12425 * troff/env.cc (environment::possibly_break_line): Require that
12426 width total excluding width of final space node be greater than
12427 the target text length.
12429 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12431 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12433 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12435 * troff/node.cc (charinfo_node): New class.
12436 (glyph_node, composite_node): Derive from charinfo_node. Change
12437 member functions accordingly.
12439 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12441 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12443 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12445 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12447 * devps/generate/textmap (notsubset): Add.
12449 * tmac/tmac.a4: New file.
12451 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12453 * pic/main.cc (had_parse_error): New variable.
12454 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12456 (main): Return 1 if had_parse_error is true.
12458 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12460 * grolj4/lj4.cc (main): Avoid use of strtoul.
12462 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12464 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12465 iso_8859_1 or $LESSCHARSET is latin1.
12467 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12469 * hpftodit: New directory.
12470 * Makefile.in (CCPROGDIRS): Add hpftodit.
12471 * devlj4/generate: New directory.
12473 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12475 * configure.in: Don't use AC_VFORK.
12476 * groff/pipeline.c (run_pipeline): Use fork() always.
12478 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12480 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12482 * Makefile.in (CCPROGDIRS): Add grolj4.
12483 (DEVDIRS): Add devlj4.
12484 * grolj4, devlj4: New directories.
12485 * tmac/troffrc: Handle lj4.
12486 * tmac/tmac.lj4: New file.
12488 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12490 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12492 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12494 * troff/input.cc (do_if_request): At end of second string, switch
12495 environments before getting next token.
12497 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12499 * devps/psstrip.sed: Split rule that strips whitespace on either
12500 side of delimiters.
12502 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12504 * troff/node.h (font_family::make_definition): Add return value to
12505 declaration. * troff/symbol.h (symbol::operator==,
12506 symbol::operator!=): Likewise.
12508 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12510 * groff/groff.cc (main, help, synopsis): Handle -S.
12511 (possible_command::insert_arg): New function.
12513 * tmac/tmac.safer: New file.
12514 * tmac/msafer.man: New file.
12515 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12517 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12519 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12520 * pic/pic.y (placeless_element): Avoid unsafe operations if
12521 `safer_flag' is set.
12522 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12524 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12526 * eqn/lex.cc (get_token): Put call to add_context() in block to
12527 work around Sun C++ 4.0 bug.
12529 * include/stringclass.h (operator +): Use ?: instead of `if' to
12530 work around Sun C++ 4.0 bug.
12532 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12534 * tbl/main.cc (process_format): Accept - as a synonym for the _
12537 * libbib/index.cc (minus_one): Don't declare as const.
12539 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12541 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12543 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12545 * troff/input.cc (write_macro_request): New function.
12546 (init_input_requests): Bind write_macro_request to writem.
12548 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12550 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12553 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12555 * tmac/tmac.s (@TS): Renamed from TS.
12556 (TS): Call LP then TS again.
12557 (cov*ab-init): Alias @TS to TS.
12559 * tmac/tmac.s: Allow QP or RS to initialize.
12561 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12562 Move initializations of PS and LL here.
12563 (par@init): Don't initialize HY. Avoid changing environment 0.
12564 (par*env-init): Don't all par@reset.
12566 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12568 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12570 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12572 * Makefile.in (MDEFINES): Add LDFLAGS.
12573 (LDFLAGS): Add definition line.
12575 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12577 * troff/input.cc (get_optional_char): Split off error check into...
12578 (check_missing_character): New function.
12579 * troff/token.h: Declare it.
12580 * troff/env.cc (margin_character): Don't call get_optional_char.
12581 Only call tok.next() after making the node.
12583 * include/lib.h (getopt): Make 2nd argument char *const *.
12585 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12587 * nroff/conftest.sh: Deleted.
12589 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12591 * pic/make-dos-dist: Deleted.
12593 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12595 * devps/psstrip.sed: Strip comments before stripping trailing
12598 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12600 * Version 1.09 released.
12602 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12604 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12606 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12608 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12610 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12612 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12613 about returning without a value.
12615 * troff/charinfo.h (charinfo::get_special_translation): Cast
12616 TRANSLATE_NONE to int.
12618 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12619 test. Fix test so that it works with n unsigned.
12621 * pic/pic.y (defaults_table): Fully bracket initializer.
12622 * pic/lex.cc (lookup_keyword): Likewise.
12623 * eqn/lex.cc (token_table, def_table): Likewise.
12624 * eqn/box.cc (param_table): Likewise.
12625 * troff/input.cc (warning_table): Likewise.
12626 * libgroff/font.cc (table): Likewise.
12627 * grops/ps.cc (ps_printer::special): Likewise.
12628 * grops/psrm.cc (resource_manager::process_file): Likewise.
12629 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12630 * refer/command.cc (command_table): Likewise.
12631 * addftinfo/addftinfo.cc (param_table): Likewise.
12633 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12634 about temp's being unused.
12635 (unused): New function.
12637 * groff/pipeline.cc: Declare c_fatal.
12639 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12642 * libbib/index.cc (index_search_item::load): Prevent compiler
12643 warnings about fd_closer's being unused.
12644 (unused): New function.
12646 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12648 * troff/input.cc (copy_mode_error): Make `prefix' static.
12651 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12653 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12654 HAVE_CC_OSFCN_H and modify accordingly.
12656 * troff/input.cc (init_charset_table): radicalex overlaps
12659 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12660 udodo!hans@relay.NL.net).
12661 * groff/configure.in: Call it.
12663 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12664 * groff/configure.in: Call it.
12665 * include/lib.h: Conditionalize declaration of pclose.
12667 * troff/div.cc (last_page_number): New global variable.
12668 (top_level_diversion::begin_page): Exit if we just printed the
12670 * troff/div.h (last_page_number): Declare it.
12671 * troff/input.cc (parse_output_page_list): Set last_page_number.
12673 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12674 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12675 tmac/tmac.X: Likewise.
12676 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12677 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12679 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
12681 * tmac/doc-ditroff (hK): Remove groff specific code which
12682 prevented page-breaks between separate manual entries. If this is
12683 the first page, don't set the page number to 1.
12685 * acgroff.m4 (GROFF_POSIX): New macro.
12686 * configure.in: Use it.
12688 * troff/node.cc (class real_output_file,
12689 real_output_file::real_output_file,
12690 real_output_file::~real_output_file): Conditionalize use of
12691 popen/pclose on POPEN_MISSING.
12692 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12693 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12694 (pipe_source): Similarily.
12696 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12698 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12699 presence of declarations by trying to compile example with
12700 conflicting declarations. (gcc only gives a warning for missing
12703 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
12705 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12706 (from Ulrich Lauther).
12708 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
12710 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12712 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
12714 * indxbib/indxbib.cc (write_hash_table): Add code for case where
12715 pointers and ints have different sizes.
12717 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
12719 * tmac/tmac.s (par*env-init): Call par@reset.
12721 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
12723 * tmac/tmac.s (@IP): Switch to a new environment when diverting
12725 (par*push-tag-env, par*pop-tag-env): New macros.
12727 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
12729 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12730 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
12732 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12733 comment. Include <time.h>.
12735 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
12737 * grops/ps.cc (is_small_h, is_small_v): Deleted.
12738 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12741 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
12743 * troff/input.cc (read_request): Only print a prompt if reading
12744 from the terminal. Also clearerr on EOF if reading from the
12745 terminal. Declare isatty.
12747 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
12749 * refer/label.y: Rename map_t to map_func and extractor_t to
12752 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
12754 * include/assert.h: Don't use volatile.
12755 * libgroff/assert.cc: Likewise.
12757 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
12759 * troff/input.cc (abort_request): Look at character in tok before
12760 calling get_copy().
12762 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
12764 * troff/troff.h (NO_RETURN): Deleted.
12765 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
12766 * troff/input.cc (exit_troff): Likewise
12768 * Makefile.in: Remove `Making ...' messages since GNU make now
12771 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12773 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
12775 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12776 to constant 1 inch.
12778 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
12780 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12782 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
12784 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12785 MARK_REG if there was no left delimiter.
12787 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
12789 * pic/troff.cc (troff_output::text): Set line thickness to
12790 relative before outputting text.
12792 * tmac/tmac.e (@k): Don't zero ?T.
12795 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
12797 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12799 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
12801 * troff/input.cc (decode_args): Warn about unquoted tabs (from
12804 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
12806 * troff/input.cc (ignoring): New variable.
12807 (ignore): Set ignoring during call to do_define_macro.
12808 (do_define_macro): Clear ignoring before interpolating terminating
12810 (copy_mode_error): New function.
12811 (get_char_for_escape_name, read_long_escape_name,
12812 interpolate_arg): Use copy_mode_error.
12813 (warning_table): Add WARN_IG.
12814 * troff/troff.h (WARN_IG): Declare.
12815 (WARN_TOTAL): Change accordingly.
12817 * groff/pipeline.c (strsignal): Rename to xstrsignal.
12818 * groff/groff.cc (strsignal): Delete declaration.
12820 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
12822 * troff/div.cc (page_offset): Use 'm' as default scaling.
12824 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
12826 * nroff/nroff.sh: Ignore -u.
12828 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
12830 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12832 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
12834 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12836 (B2): With -Tascii, leave additional vertical space before
12837 and after. Ensure that the left and right indent is restored to
12838 what it was even if the point size changes. Don't call
12839 par@finish. Change the indent, line length and title length
12840 directly. With -Tascii, make the width of the box 1n less.
12841 (B1): Remember 1n at the current point size. Don't call
12842 par@reset. Change the indent, line length and title length
12843 directly. Ensure that the temporary indent is preserved.
12844 (par*box-mark-top): Turn off no spacing mode.
12846 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
12848 * Makefile.in (dist): Use .gz suffix.
12850 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
12852 * troff/input.cc (main): Add return 0.
12853 * pic/main.cc (main): Use return instead of exit.
12854 * tbl/main.cc (main): Likewise.
12855 * eqn/main.cc (main): Likewise.
12856 * grops/ps.cc (main): Likewise.
12857 * grotty/tty.cc (main): Likewise.
12858 * groff/groff.cc (main): Likewise.
12859 * grodvi/dvi.cc (main): Likewise.
12860 * refer/refer.cc (main): Likewise.
12861 * indxbib/indxbib.cc (main): Likewise.
12862 * lkbib/lkbib.cc (main): Likewise.
12863 * soelim/soelim.cc (main): Likewise.
12864 * addftinfo/addftinfo.cc (main): Likewise.
12865 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12866 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12868 * troff/token.h (process_input_stack): Don't declare as static.
12869 * troff/input.cc: Likewise.
12871 * troff/node.c (invalidate_fontno): Make it a static member of
12872 class font_family. Change callers.
12873 * troff/node.c: Change declaration.
12875 * tbl/main.cc (struct input_entry_format): Add explicit public
12877 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12878 struct double_hline_stuff): Likewise.
12879 * tbl/table.h (struct entry_format): Likewise.
12880 * pic/object.h (struct saved_state): Likewise.
12882 * include/stringclass.h: Add forward declarations of friend
12883 functions that are later declared as inline. Don't include inline
12884 specifier in friend declaration.
12886 * libgroff/lib.h: Declare popen and pclose.
12887 * acgroff.m4 (GROFF_POPEN): New macro.
12888 * configure.in: Call it.
12890 * include/lib.h (PI): New constant. Undef first if necessary.
12891 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12892 * grops/ps.cc (degrees, radians): Likewise.
12893 * libgroff/font.cc (font::get_skew): Likewise.
12895 * grops/ps.cc (is_ascii): New function.
12896 (ps_output::put_string): Use is_ascii. Use csprint rather than
12898 (ps_printer::define_encoding): Use csspace.
12899 * libgroff/strtol.c (ISASCII): New macro.
12900 (strtol): Cast arguments to is*() and tolower() to unsigned char.
12901 Use ISASCII rather than isascii.
12902 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12903 * libgroff/cset.cc: Likewise.
12904 * libdriver/input.cc: Include cset.h.
12905 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12908 * refer/refer.cc (main): Use %ld rather than %d for longs.
12910 * libbib/index.cc (index_search_item_iterator::get_tag): Use
12913 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12915 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
12917 * troff/input.cc (hyphenation_code): Skip white space between
12920 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
12922 * tbl/table.h (table::entry_list_tailp): New member.
12923 (table::table): Initialize it.
12924 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12927 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
12929 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12930 with negative horizontal positions. Remove casts of glyph::hpos to
12932 (USHRT_MAX): Delete definition.
12933 (SHRT_MAX, SHRT_MIN): New definitions.
12934 (glyph::hpos): Change type to short.
12935 (tty_printer::end_page): Output multiple backspaces if necessary.
12936 Remove casts of glyph::hpos to int.
12938 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
12940 * tmac/tmac.s (@RT): New definition.
12942 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
12944 * refer/refer.cc (do_file): Make sure current_filename is set when
12947 * pic/common.cc (common_output::dot_line): Handle zero length
12950 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
12952 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12953 (par@init): Initialize \n[HY].
12955 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
12957 * troff/dictionary.cc (dictionary::remove): Continue when
12960 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
12962 * Makefile.com (.y.cc): Avoid ending up with two versions of
12965 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
12967 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12968 (\(,C): Likewise. Also fix typo.
12970 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
12972 * lib.h: Delete extraneous semi-colon.
12974 * Add pso request: `so' from a pipe.
12975 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12976 (file_iterator::close): New function.
12977 (file_iterator::~file_iterator, file_iterator::next_file): Use
12978 file_iterator::close.
12979 (file_iterator::backtrace): Say `process' rather than `file' when
12980 the stream is popened.
12981 (pipe_source): New function.
12982 (init_input_requests): Bind ".pso" to pipe_source.
12984 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
12986 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12988 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
12989 digits in lower case.
12991 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
12993 * Version 1.08 released.
12995 * Makefile.in (dist): Insert || true after ln -s commands that
12998 * mm: Update to mm 1.16.
13000 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13001 * configure.in: Call GROFF_CSH_HACK. Substitute for
13003 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13005 * nroff/Makefile.sub (nroff): New target.
13006 (install_data): Install nroff.
13007 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13008 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13010 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13012 * eqn/Makefile.sub (neqn): Add chmod +x.
13014 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13016 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13018 * troff/input.cc (string_iterator::string_iterator()): Initialize
13021 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13023 * troff/div.cc (macro_diversion::space,
13024 top_level_diversion::space): Don't set high_water_mark.
13025 (macro_diversion::output, top_level_diversion::output): Don't
13026 include post line space in high water mark.
13028 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13030 * eqn/eqn.y: Don't define YYDEBUG.
13031 * pic/pic.y: Likewise.
13033 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13035 * tmac/tmac.e ([3): Add space after comma following editors.
13036 Change double spaces to single spaces.
13037 ([4): Change double spaces to single spaces.
13039 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13040 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13041 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13042 after %!PS-Adobe- (for Newsprint).
13044 * troff/div.cc (top_level_diversion::begin_page): When
13045 before_first_page is 1, set page_number to 1.
13047 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13049 * eqn/box.cc (box::top_level): Protect equation with \&.
13051 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13053 * groff/groff.cc (possible_command::set_name): Delete old name.
13055 * groff/groff.cc (possible_command::~possible_command): Use
13058 * troff/node.cc (troff_output_file::begun_page): New member.
13059 (troff_output_file::troff_output_file): Initialize it.
13060 (troff_output_file::really_begin_page): Only output V command if a
13061 page has been begun.
13063 * pic/pic.y (placeless_element): Delete argument to PRINT after
13066 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13068 * Make wrapman work.
13069 * troff/div.h (class top_level_diversion): Replace
13070 first_page_begun by before_first_page (with opposite sense).
13071 * Change first_page_begun to before_first_page inverting sense.
13072 * troff/div.cc (class nl_reg): New class.
13073 (init_div_requests): Use class nl_reg for \n(nl.
13074 (top_level_diversion::begin_page): Don't call
13075 output_file::begin_page if before_first_page is 2;
13076 reset before_first_page afterwards. If have_next_page_number is
13077 false, then always increment page_number.
13078 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13079 Restore compatibility mode after loading, and then disable
13080 compatibility mode in TH.
13082 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13084 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13086 * troff/node.h (output_file::trailer): Declare.
13087 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13088 * troff/node.cc (output_file::trailer): New function.
13089 (troff_output_file::~troff_output_file): Move most code into...
13090 (troff_output_file::trailer): New function.
13091 (class troff_output_file): Delete page_length member. Declare
13093 (troff_output_file::really_begin_page): Use current page length
13094 for final V command.
13096 * tbl/main.cc (struct options): New decimal_point_char member.
13097 (options::options): Initialize this.
13098 (process_options): Implement decimalpoint option.
13099 (process_data): Pass decimal_point_char option to table::table.
13100 * tbl/table.h (class table): New decimal_point_char member.
13101 (table::table): Add additional argument.
13102 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13103 second argument specifying decimal point character. Use this
13105 (table::table): Initialize decimal_point_char.
13106 (table::add_entry): Change call to find_dot.
13108 * troff/input.cc (get_copy, token::next): Implement \V.
13109 (interpolate_environment_variable): New function.
13111 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13113 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13114 * pic/pic.y: Likewise.
13116 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13118 * refer/ref.cc (reference::insert_field, reference::delete_field):
13120 * troff/number.cc (parse_term): Likewise.
13122 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13123 * configure.in: Use GROFF_PROG_YACC.
13125 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13127 * Makefile.in (OPTIMIZE): New define.
13128 (DEBUG): Empty by default.
13129 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13131 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13132 (GROFF_ARRAY_DELETE): Likewise.
13133 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13135 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13137 * devps/psstrip.sed: Use different delimiter on last line (so that
13138 it works with BSD 4.4 sed.)
13140 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13142 * devps/psstrip.sed: Delete comments.
13144 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13145 optind, opterr, optarg.
13146 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13149 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13151 * Makefile.in (check): Dummy target.
13153 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13155 * Version 1.07 released.
13157 * Integrate mm 1.11.
13159 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13160 where start_col was meant.
13162 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13164 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13166 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13168 * troff/input.cc (token::next): Make \z\o'...' and similar things
13171 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13173 (environment): Add margin_character_flags member.
13174 * env.cc (environment::environment(symbol),
13175 environment::environment(const environment *): Initialize
13176 margin_character_flags.
13177 (margin_character): Rewrite.
13178 (environment::output_line): Add a margin character if
13179 margin_character_flags is non-zero. Turn off the
13180 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13181 zero, use margin_character_node without copying and then set
13182 margin_character_node to 0.
13184 * devps/DESC.in: Change minimum size to 1000.
13186 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13188 * troff/symbol.h (symbol::hash): Change return type to unsigned
13190 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13193 * test-groff: Use -r rather than -x.
13195 * grops/psfig.diff: Include in distribution again.
13197 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13199 * Makefile.in (dist): Use gzip.
13201 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13203 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13204 unistd.h as well as in stdlib.h.
13205 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13206 defined; otherwise include <sys/types.h> and <unistd.h> if
13207 UNISTD_H_DECLARES_GETOPT is defined.
13209 * configure.in: use builtin(include, ... rather than include(...
13210 * configure: Regenerate with autoconf 1.3.
13212 * libdriver/print.cc (printer::adjust_arc_center): Use new
13213 algorithm suggested by Andy Fyfe.
13215 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13216 * include/printer.h: Declare this.
13217 * grops/ps.cc (ps_printer::draw): Use it.
13218 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13220 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13222 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13224 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13226 * eqn/main.cc (main): Handle "eqn -".
13228 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13230 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13232 * mm: Integrate version 1.08.
13234 * pic/troff.cc (troff_output::finish_picture): Set
13235 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13236 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13237 if it's not defined. Check whether the register is non-zero rather
13238 than whether it's not defined.
13239 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13241 * indxbib/indxbib.cc: Move all signal handling into...
13242 * indxbib/signal.c: New file.
13243 * configure.in: Call AC_RETSIGTYPE.
13245 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13246 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13247 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13249 * troff/input.cc (token::token, token::operator=): Work round SGI
13251 * pic/object.cc (position::position): Likewise.
13253 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13255 * pic/pic.h: Move declaration of hypot().
13257 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13259 * pic/pic.h: Declare hypot().
13261 * pic/pic.h: Define M_PI if necessary.
13263 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13265 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13268 * devps/prologue.ps (RE): Handle the possibility that the old font
13269 doesn't have a FontName entry.
13271 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13273 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13274 (@C): Use @fam not fam.
13276 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13278 * lookbib/lookbib.cc (main): Change type of start to const char *.
13279 * lkbib/lkbib.cc (main): Likewise.
13281 * eqn/lex.cc (definition::definition): Don't use member
13282 initializer syntax for members of anonymous unions.
13284 * troff/input.cc (input_stack::backtrace): Change type of to const
13287 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13289 * include/stringclass.h (class string): Declare inline friend
13290 functions as inline in class declaration.
13291 * troff/hvunits.h (class hunits, class vunits): Likewise.
13292 * include/refid.h (class reference_id): Likewise
13293 * troff/troff.h (points_to_units(units), scale(units, double)):
13294 Delete declarations.
13295 * libdriver/input.cc (get_char): Delete declaration.
13296 * include/lib.h: Change 2nd argument of getopt from const char **
13298 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13299 char **' before assigning to a `const char **'.
13300 * tbl/table.cc: Delete extra declarations of prints().
13302 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13304 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13305 char **' before assigning to a `const char **'.
13307 * libgroff/errarg.cc (errarg::errarg): Don't use member
13308 initializer syntax for members of anonymous unions.
13310 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13312 * mm: Integrate version 1.07.
13314 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13316 * troff/input.c (translate2): Rename to
13317 (translate_no_transparent).
13318 (init_input_requests): Rename tr2 to trnt.
13320 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13322 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13323 (charinfo::set_translation, charinfo::set_special_translation):
13324 Add second argument that specifies value for
13325 transparent_translate.
13326 (charinfo::get_translation, charinfo::get_special_translation):
13327 Add optional second argument that specifies whether translation is
13328 being used for transparent throughput.
13329 * troff/input.cc (charinfo::set_translation,
13330 charinfo::set_special_translation): Handle second argument.
13331 (charinfo::charinfo): Initialize transparent_translate.
13332 (translate): Split main part off into
13333 (do_translate): New function. Pass argument saying whether
13334 translation applies to transparent throughput.
13335 (translate2): New request.
13336 (init_input_requests): Bind translate2 to `tr2'.
13338 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13340 * tbl/table.h (class table): Add `nokeep' flag.
13341 * tbl/main.cc (process_options): Handle `nokeep' option.
13342 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13343 table::do_bottom): Don't output keep/release macro definitions or
13344 calls when `nokeep' option has been specified.
13346 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13348 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13350 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13352 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13353 block_entry::divert, alphabetic_block_entry::divert): Add extra
13354 argument giving column separation.
13355 (table::compute_widths): Pass column separation to
13356 table_entry::divert().
13357 (block_entry::do_divert): If an entry spans multiple columns and a
13358 minimumum width has been specified for each column, then set the
13359 line length to the sum of the widths (plus possibly the column
13362 * troff/input.cc (set_escape_char): Don't set the escape_char
13363 until after calling has_arg().
13365 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13367 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13370 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13371 in case where r > nrows - 1.
13373 * tbl/table.cc (BODY_HEIGHT): Deleted.
13374 (LINE_SEP): New definition.
13375 (table::print_single_hline, table::print_double_hline,
13376 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13377 table::do_row, table::do_top): Use LINE_SEP space before a line
13378 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13380 * tbl/table.cc (text_entry::print_contents): New function.
13381 (text_string_name, right_text_string_name): Deleted.
13382 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13383 (simple_text_entry::do_width, numeric_text_entry::do_width,
13384 alphabetic_text_entry::do_width): Don't store the contents of the
13386 (left_text_entry::simple_print, right_text_entry::simple_print,
13387 center_text_entry::simple_print,
13388 alphabetic_text_entry::simple_print,
13389 numeric_text_entry::simple_print): Print the entry directly
13390 instead of using the stored string.
13392 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13394 * devps/Makefile: Strip PostScript files.
13395 * devps/prologue: Rename to...
13396 * devps/prologue.ps.
13397 * devps/psstrip.sed: New file.
13398 * devps/download: Use .pfa rather than .ps for installed versions
13401 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13403 * troff/env.cc (input_trap): Give a warning if the argument is out
13406 * troff/env.cc (adjust): Treat negative argument as missing. Round
13407 argument > 5 down to 5.
13409 * troff/env.cc (center, right_justify): Make negative argument zero.
13411 * troff/div.cc (page_offset, vertical_position_traps): Treat
13412 invalid argument as missing.
13413 * troff/env.cc (line_spacing, line_length, title_length, indent,
13414 underline, hyphen_line_max_request, control_char,
13415 no_break_control_char, widow_control_request, adjust, input_trap,
13416 point_size): Likewise.
13417 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13418 constant_space): Likewise.
13419 * troff/input.cc (compatible, shift, warn_request,
13420 set_escape_char): Likewise.
13422 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13423 * tbl/table.cc (table::table): Likewise.
13425 * Makefile.dev (install_dev): depends on $(DEVFILES).
13427 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13429 * devX75, devX75-12, devX100, devX100-12: New directories.
13430 * Makefile.in: Add these to DEVDIRS.
13432 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13433 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13434 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13435 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13437 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13438 (uninstall): New target.
13439 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13440 uninstall_prog, uninstall_dev): New targets.
13442 * troff/div.cc (return_request): Treat an invalid argument as
13445 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13447 * tmac/tmac.e ((f): Set up the environment even when there's a
13448 current diversion. Transperently throughput a call to @N.
13451 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13453 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13454 up to vertical resolution.
13456 * tbl/table.cc (table::do_row): Change row number after printing
13459 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13461 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13463 * Rename CHANGES to NEWS.
13465 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13467 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13469 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13471 * man.ultrix: Removed.
13473 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13475 * Makefile.comm (extraclean): Delete files whose names begin with
13478 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13481 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13483 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13484 * troff/div.cc (page_length, need_space, space_request): Treat
13485 invalid optional argument as missing.
13486 * troff/env.cc (number_lines): If the first argument is present
13487 but not a number, turn on line numbering, don't change the next
13488 line number and parse the remaining arguments.
13490 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13492 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13494 * eqn/box.h: Change declaration accordingly.
13495 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13496 the specified size was bad but don't give an error. Check for
13498 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13499 * eqn/lex (do_size): Likewise.
13501 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13503 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13504 compatible headers.
13506 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13508 * tbl/table.cc (table::init_output): Improve error message when
13509 table won't fit on one page.
13511 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13513 * pic/troff.cc (troff_output::start_picture): Generate line
13514 containing a horizontal motion equal to the width of the picture.
13516 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13517 using GROFF_COMMAND_PREFIX environment variable.
13519 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13521 * mdate.sh: Use $NF rather than $(NF).
13523 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13525 * pic/main.cc (main): Use %1 not %c in argument to warning.
13527 * eqn/main.cc (main): Output code to check that geqn was given the
13530 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13532 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13533 `ln -s ../Makefile .; make; rm -f Makefile'.
13535 * troff/hyphen: Rename to...
13537 * troff/input.cc (main): Delete -H option. Don't call
13538 read_hyphen_file().
13539 * troff/env.cc: Include searchpath.h and macropath.h.
13540 (exception_dictionary): Deleted.
13542 (read_hyphen_file): Deleted.
13543 (hyphenation_language): New struct.
13544 (class trie, class hyphen_trie): Move declarations up.
13545 (trie_node::~trie_node): Deleted.
13546 (trie::delete_trie_node): New function.
13547 (trie::do_delete): New pure virtual function.
13548 (hyphen_trie::do_delete): New function.
13549 (trie::~trie): New function.
13550 (hyphen_trie::~hyphen_trie): New function.
13551 (trie::clear): No need to chcek that tp is not 0.
13552 (current_language, language_dictionary): New variables.
13553 (hyphen_word): Give an error if no current language. Use
13554 exceptions dictionary in current language.
13555 (hyphen_trie::read_patterns_file): Find file using macro_path.
13556 Allow comments (starting with %) in patterns file. Don't make it
13557 a fatal error if the file can't be found.
13558 (hyphenate): Return if no current language. Get the exceptions
13559 dictionary and the hyphenation patterns from the current language.
13560 (set_hyphenation_language): New variable.
13561 (hyphenation_patterns_file): New function.
13562 (hyphenation_language_reg): New class.
13563 (hyphenation_language_reg::get_string): New function.
13564 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13565 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13567 * groff/groff.cc (main, help, synopsis): Delete -H option.
13568 * include/Makefile.sub: Don't define HYPHENFILE.
13569 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13570 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13571 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13572 hyphenation patterns.
13574 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13576 * eqn/neqn.sh: New file.
13577 * eqn/Makefile.sub: Handle neqn.sh.
13579 * eqn/eqn.h: Declare `nroff' variable.
13580 * eqn/box.cc (param_table): Add `nroff' param.
13581 (nroff): Define it.
13582 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13584 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13586 * troff/troff.h (WARN_FONT): New warning.
13587 (WARN_TOTAL): Change accordingly.
13588 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13589 (warning_table): Add WARN_FONT.
13590 * troff/node.cc (mount_font_no_translate): Pass argument to
13591 font::load_font. If this is non-zero, give a warning.
13592 Don't give an error message when accessing a font that has already
13593 been found to be invalid.
13594 * include/font.h (font::load, font::load_font): Add additional
13595 optional argument which suppresses error message if the font is
13597 * libgroff/font.cc (font::load_font): Handle additional argument.
13598 (font::load): Add additional argument. If this is non-null, set it
13599 to 1 and don't give error message.
13601 * include/printer.h (printer::end_page): Add argument giving
13603 * libdriver/input.cc (do_file): Pass this.
13604 * grops/ps.cc (ps_printer::end_page): Add argument.
13605 * grodvi/dvi.cc (dvi_printer::end_page,
13606 draw_dvi_printer::end_page): Add argument.
13607 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13608 columns_per_page members. New member nlines.
13609 (DEFAULT_LINES_PER_PAGE): Deleted.
13610 (tty_printer::tty_printer): Don't compute lines_per_page from
13611 font::paperlength. Don't compute columns_per_page from
13613 (tty_printer::add_char): Don't check horizontal position against
13614 columns_per_page. Grow glyphs vector if neccessary.
13615 (tty_printer::end_page): Add argument giving page_length in units.
13616 Discard lines past end of page.
13618 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13620 * tmac/tmac.tty-char: Fix definition of \(/l.
13622 * tmac/tmac.X: Define \(en.
13624 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13626 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13627 lpq, then use lp rather than lpr.
13629 * tmac/tmac.s (par@reset): Don't call `ad'.
13630 (par*env-init): Call `ad'.
13632 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13634 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13637 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13638 * indxbib/indxbib.cc: Likewise.
13640 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13642 * libgroff/putenv.c: New file.
13643 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13644 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13645 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13646 stdlib.h with AC_HAVE_HEADERS.
13648 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13650 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13653 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13655 * eqn/box.cc (gsize): Make it an int.
13656 (set_gsize): Parse argument handling increment or decrement.
13657 (box::top_level): Convert gsize to a string.
13659 * troff/input.cc (exit_troff): Make buf unsigned char [].
13660 Call to make_temp_iterator casts buf to char*.
13662 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13664 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13665 * Makefile.cpg (depend.temp): Likewise.
13667 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13669 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13671 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13673 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13675 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
13677 * Version 1.06 released.
13679 * Integrate mm 1.04.
13681 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
13683 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13685 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
13687 * afmtodit/afmtodit.pl: Add -n option that disables generation of
13689 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13690 afmtodit. Regenerate.
13692 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13693 @f back past the current position.
13695 * tmac/tmac.e: Change calls to @R so that comments are not part of
13698 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
13700 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13702 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13703 check that we can link a call to a function declared in <stdio.h>.
13704 (GROFF_UNISTD_H): New macro.
13705 * configure.in: Call it.
13706 * Makefile.in: Document it.
13707 * include/posix.h: New file.
13708 * troff/troff.h: Don't include <osfcn.h>
13709 * troff/input.cc: Include posix.h.
13710 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13712 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13713 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13715 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13716 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13717 * libbib/search.cc (O_RDONLY): Delete definition.
13718 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13719 Don't include <osfcn.h>.
13721 * acgroff.m4 (GROFF_TIME_T): New macro.
13722 * configure.in: Call it.
13723 * Makefile.in: Document it.
13725 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13726 * configure.in: Call it.
13727 * Makefile.in: Document -DTRADITIONAL_CPP.
13728 * include/ptable.h: Don't include generic.h.
13729 (name2): Define it.
13731 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13732 Afterwards remove [T1 and [T2.
13733 (ref*spec!0, ref*spec!2): Use T1 rather than T.
13734 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13735 (ref*add-T2): Renamed from ref*add-T.
13736 (ref*add-T1): New macro.
13738 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
13740 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13742 * libbib/index.cc: Include <fcntl.h>.
13743 (O_RDONLY): Define if necessary.
13744 (make_index_search_item, index_search_item_iterator::get_tag,
13745 index_search_item::check_files): Use O_RDONLY.
13746 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13747 (O_RDONLY): Define if necessary.
13748 (search_list::add_file): Use O_RDONLY.
13749 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13751 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13754 * libbib/index.cc (S_ISREG): Define it if necessary.
13755 (index_search_item::load): Use S_ISREG.
13757 * include/driver.h: Include <errno.h>.
13759 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
13761 * eqn/box.cc (body_height): Increase default value to 85.
13762 (body_depth): Increase default value to 35.
13764 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
13766 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13767 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13768 protected from expansion with \E.
13770 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13772 * Makefile (Makefile): New target.
13774 * Makefile.sub (configure, distfiles): New targets.
13776 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13779 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
13781 * eqn/box.cc (param_table): Add body_height and body_depth.
13783 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13785 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
13787 * psbb/Makefile.sub: Don't link with libgroff.a.
13789 * acgroff.m4 (GROFF_PUTENV): New macro.
13790 * configure.in: Call GROFF_PUTENV.
13791 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13792 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13795 * troff/env.cc (distribute_space): Rename force_forward argument
13796 to force_reverse. Reverse the list if force_reverse is true.
13798 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
13800 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13802 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13803 height or depth to be negative. Guard against SUP_RAISE quantity
13806 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
13808 * devps/generate/textmap: Add `an' (arrowhorizex).
13809 * tmac/tmac.ps: \(an overlaps horizontally.
13810 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13812 * devps/symbolchars: Add arrowverttp, arrowvertbt.
13813 * devps/textmap: Add arrowvertex.
13814 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13815 updownarrow delimiters.
13816 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13818 * tbl/table.cc (simple_entry::position_vertically,
13819 block_entry::position_vertically): For a centered entry, perform
13820 the motion in two stages.
13822 * refer/refer.cc (split_punct): Don't call lookup_token if there
13825 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
13827 * troff/input.cc (token::next): Delete token_node after copying
13830 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13833 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13835 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13837 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
13839 * grops/ps.cc (usage): -b option takes an argument.
13841 * devps/prologue (PLG): New procedure.
13842 * grops/ps.cc (main, usage): New -g option.
13843 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
13846 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
13848 * include/cset.h: Include <limits.h> if we have it.
13850 * libgroff/illegal.cc: New file.
13851 * include/lib.h (illegal_input_char): Use table.
13852 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13853 * pic/lex.cc (ARG1): Renumber to 14.
13854 * eqn/lex.cc (ARG1): Likewise.
13856 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13857 (eg 1.05.90) correctly.
13859 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
13861 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13862 Rename $r and $R registers to $v and $V.
13863 ($r, $R): Initialize to 0.
13864 (@v, @V): New macros.
13868 * troff/input.cc (main, usage): Add -R option that says not to
13870 * eqn/main.cc (main, usage): Rename -n to -R.
13872 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
13874 * devps/DESC.in: Leave font positions 5-9 blank.
13875 * devdvi/DESC.in: Likewise.
13877 * grog/grog.pl: Handle `.PS <file' correctly.
13879 * troff/input.cc (input_stack::push): Improve error message when
13880 input stack limit exceeded.
13882 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
13884 * refer/refer.cc (main): Fix typo in handling of `a' option.
13886 * refer/refer.cc (do_bib): In state START after a newline remain
13889 * groff/groff.sh: Deleted.
13890 * groff/Makefile.sub: Delete handling of groff.sh.
13892 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13893 to determine whether to use \X'ps:...'.
13894 * tmac/troffrc: Set 0p register to 0.
13895 * tmac/tmac.ps: Set 0p register to 1.
13897 * groff/groff.cc: Support -X option. Give warning for -TXps and
13898 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13899 * tmac/troffrc: Support -r.X=1.
13901 * pic/troff.cc (troff_output::dot): Don't test
13902 zero_length_line_flag.
13904 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
13906 * include/lib.h: Declare getopt() and friends unless
13907 STDLIB_H_DECLARES_GETOPT is defined.
13909 * doc/chars.tr: Delete.
13910 * man/groff_char.man: New file.
13912 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
13914 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13915 user has changed register format.
13917 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
13919 * groff/groff.cc: Get rid of device_table. Get postprocessor from
13920 `postpro' command in DESC file. Get spooler command from `print'
13921 command in DESC file. Execute spooler command with /bin/sh.
13923 * groff/groff.cc: Split Unix-specific parts into...
13924 * groff/pipeline.c: New file.
13927 * COPYING: New file.
13928 * all files: Update copyright notices.
13930 * Rearrange files. Redo Makefiles. Use autoconf.
13932 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
13934 * troff/input.c (charinfo_to_node_list): Interpret character
13935 definition with escape_char of `\'.
13937 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
13939 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13940 Define INT_DIGITS as big enough for 64-bit integer.
13941 * lib/strtol.c: Don't include lib.h.
13942 * lib/lib.h: Delete ifdef __cplusplus stuff.
13944 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
13946 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
13947 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
13948 get DESC from current directory.
13950 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
13952 * tbl/main.c (main): Always reset the line number when reading
13955 * tbl/table.c (table::print_single_hline, table::print_double_hline,
13956 table::define_bottom_macro, table::do_row, table::do_top): Round
13957 vertical spacing up to vertical resolution.
13959 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
13961 * ps/ps.h (enum resource_type): Avoid comma at end of
13963 * dvi/dvi.c (class dvi_printer): Likewise.
13964 * dvi/tfmtodit.c (gf::load): Likewise.
13965 * refer/label.y (struct expression): Likewise.
13966 * refer/refer.c (class label_processing_state): Likewise.
13967 * refer/indxbib.c (do_file): Likewise.
13968 * troff/troff.c (enum warning_type): Likewise.
13969 * tbl/main.c (process_data): Likewise.
13970 * troff/charinfo.h (class charinfo):
13972 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
13974 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
13976 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
13978 * groff.c: Move to new groff subdirectory.
13979 * groff/Makefile: New file.
13980 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13982 * man/mdate.sh: Use ls -L if supported.
13984 * Consolidate all header files produced by gendef into lib/defs.h.
13985 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13986 Don't include path.h.
13987 * lib/Makefile (path.h): Don't generate.
13988 * troff/input.c: Include defs.h. Don't include config.h.
13989 * troff/Makefile (config.h): Don't generate.
13990 * refer/index.h: Don't include suffix.h.
13991 * refer/index.c: Include defs.h.
13992 * refer/indxbib.c: Include defs.h.
13993 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13995 * refer/Makefile (suffix.h, path.h): Don't generate.
13996 * groff.c: Don't include config.h. Include defs.h.
13997 * Makefile (config.h): Don't generate.
13998 (lib/defs.h): Generate.
13999 (topclean): Remove lib/defs.h.
14001 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14003 * lib/malloc.c, lib/getpagesize.h: Deleted.
14004 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14006 * lib/Makefile: Delete malloc-related stuff.
14007 * lib/new.c: Workaround COOKIE_BUG if necessary.
14009 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14010 needed header files directly.
14011 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14012 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14014 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14016 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14018 * lib/font (font::load_desc, font::load): Don't split argument of
14020 (font::handle_unknown_font_command): Change type.
14021 * ps/ps.c (ps_font::handle_unknown_font_command,
14022 handle_unknown_desc_command): Change type.
14023 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14025 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14027 * lib/font.h (font::handle_unknown_font_command): Add file and
14029 * lib/font.c (font::handle_unknown_font_command):
14030 * ps/ps.c (ps_font::handle_unknown_font_command):
14031 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14032 lineno arguments. Use _with_file_and_line functions for error
14035 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14037 * lib/font.c (font::set_unknown_desc_command_handler): New
14039 (font::load_desc): For unknown commands, call
14040 unknown_desc_command_handler if not null.
14041 * lib/font.h (class font): Declare them.
14042 (FONT_COMMAND_HANDLER): New typedef.
14043 * ps/ps.c (handle_unknown_desc_command): New function.
14044 (main): Set bflag if we had a -b option. Call
14045 font::set_unknown_desc_command_handler.
14046 (broken.h): Don't include.
14047 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14049 * ps/devps/Makefile: Add `broken' command to DESC file using
14050 BROKEN_SPOOLER_FLAGS.
14052 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14054 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14056 * macros/tmac.e (@R, @S): New macros.
14057 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14058 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14059 Declare $H, $[0-9], .. macros with @S.
14060 Declare |0, |1, |2, |3 strings with @S.
14062 * macros/tmac.e (@S): Rename to @U.
14064 * macros/tmac.e (@z): Define @b and bp as empty instead of
14067 * macros/tmac.e (@m): Deleted.
14068 (@h): Don't call @m.
14069 (@z): Don't set @m trap.
14071 * macros/tmac.e ($h, $f): Define |z as empty string.
14073 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14076 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14078 ()f): Likewise for * register.
14080 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14081 argument is missing, don't change $R. Call sr with three
14082 arguments when initializing.
14084 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14086 * macros/tmac.e (sr): New macro.
14087 Initialize $r and $R using sr.
14089 * macros/tmac.e (,): Delete \*(#[.
14091 * troff/env.c (set_tabs): Read the tab type even if the position
14092 is bad. Allow the position of the first tab stop to be negative.
14094 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14096 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14098 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14099 rather than -DPATHCONF_MISSING.
14100 * Makefile: Get rid of PATHCONF_MISSING.
14102 * refer/map.c: New file.
14103 * refer/index.c: Interface to mmap through map.c. Rename map_size
14105 * refer/Makefile: Handle map.c.
14106 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14108 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14110 * Makefile: RANLIB should be `true' if there is no ranlib.
14111 * lib/Makefile (libgroff.a): Simplify.
14112 * driver/Makefile (libdriver.a): Simplify.
14114 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14115 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14118 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14120 * troff/env.c (compare_ranges): Declare as extern "C".
14122 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14124 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14126 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14128 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14129 but conditionalize use of \X based on \*(.T.
14130 (grops_output::*): Deleted.
14131 * pic/output.h: Delete declaration of make_grops_output.
14132 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14133 by default. -n sets it to 0.
14134 (usage): Corresponding changes.
14135 * groff.c (main): Don't pass -x or -p to pic.
14136 * groff.sh: Likewise.
14138 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14141 * ps/devps/afmtodit: Change calculation of asc_boundary and
14142 desc_boundary. Make these bounds inclusive.
14143 * ps/devps: Regenerate font files.
14145 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14147 * macros/tmac.latin1: New file.
14148 * macros/tmac.tty-char: Use tmac.latin1.
14149 (tmac.tty-tr): Deleted.
14150 * macros/Makefile: Install tmac.latin1.
14151 * macros/tmac.dvi: Use tmac.latin1.
14152 * macros/troffrc: Translate \[char160] onto no-break space here.
14153 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14155 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14157 * macros/tmac.Xps: Use `do' request.
14159 * macros/tmac.ps: Use `do' request.
14161 * macros/tmac.e (@C): Use `do' request.
14163 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14164 * macros/Makefile: Install tmac.X*.
14166 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14167 * tty/Makefile: Don't install tmac.tty*.
14168 * macros/Makefile: Install tmac.tty*.
14170 * dvi/tmac.dvi: Move to macros.
14171 * dvi/Makefile: Don't install tmac.dvi.
14172 * macros/Makefile: Install tmac.dvi.
14174 * ps/tmac.ps*: Move to macros.
14175 * ps/Makefile: Don't install tmac.ps*.
14176 * macros/Makefile: Install tmac.ps*.
14178 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14180 * macros/eqnrc: Set draw_lines parameter based on device.
14181 * groff.c: Don't pass -D flag to eqn.
14182 * groff.sh: Likewise.
14183 * eqn/main.c: Warn about use of -D.
14185 * troff/input.c (process_startup_file): New function.
14186 (main): Call process_startup_file().
14187 * macros/troffrc: New file.
14188 * macros/Makefile: Install troffrc.
14189 * groff.c (main): Don't pass extra -m option to troff. For a
14190 pseudo device pass the name of the pseudo device to troff using
14192 * groff.sh: Likewise.
14193 * groff.c (possible_command::prepend_arg): Deleted.
14195 * troff/input.c (do_request): New function.
14196 (init_input_requests): Bind "do" to do_request.
14198 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14199 load eqnrc from macro directory.
14200 * macros/eqnrc: New file.
14201 * macros/Makefile: Install eqnrc.
14202 * ps/devps/eqnchar: Deleted.
14203 * ps/devps/Makefile: Don't install eqnchar.
14204 * dvi/devdvi/eqnchar: Deleted.
14205 * dvi/devdvi/Makefile: Don't install eqnchar.
14206 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14209 * lib/device.[ch]: New files.
14210 * lib/font.h (font::set_device_name, font::get_device_name):
14212 * lib/fontfile.c: Use device.h.
14213 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14214 * troff/input.c: Delete definition of `device'.
14215 (main): Don't initialize device.
14216 * troff/troff.h: Include device.h rather than declaring device.
14217 * troff/Makefile: No need to handle DEVICE.
14218 * driver/input.c: Include device.h. Don't use
14219 font::{set,get}_device_name.
14220 * groff.c, Makefile: Rename device.h to config.h.
14221 * groff.c: Use library device variable.
14222 * eqn/main.c: Use library device variable.
14223 * eqn/Makefile: No need to handle DEVICE.
14225 * lib/searchpath.[ch]: New files.
14226 * lib/Makefile: Handle searchpath.[ch].
14227 * troff/input.c (open_file, init_dirs): Deleted.
14228 (macro_dirs): Deleted.
14229 (open_mac_file, macro_source): Use class search_path.
14230 (add_string, struct string_list): Move definition.
14231 (main): Change -M option to use macro_path. Delete call to
14233 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14234 Rewrite to use class search_path.
14235 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14236 * lib/Makefile: fontfile.c depends on searchpath.h.
14237 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14239 * lib/macropath.[ch]: New files.
14240 * troff/Makefile: No need to handle MACROPATH.
14242 * troff/input.c: Delete DUMP code.
14243 * lib/fontfile.c, lib/font.h: Delete
14244 font::forget_command_line_font_dirs.
14246 * troff/input.c (push_token): New function.
14247 (handle_first_page_transition): Use push_token().
14248 (process_input_stack): Change handling of a space at the beginning
14251 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14253 * troff/input.c (font_dirs): Delete unused variable.
14255 * eqn/lex.c (do_set): Correct error messages.
14257 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14259 * troff/input.c (do_define_string): Allow the string name to be
14260 followed immediately by a tab.
14261 (define_character): Likewise.
14263 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14265 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14268 * troff/input.c (input_iterator::is_file): New virtual function.
14269 (file_iterator::is_file): New function.
14270 (input_stack::end_file): New function.
14271 (input_stack::next_file): Handle the situation where there is no
14272 file on the input stack correctly. Avoid making two passes over
14274 (next_file): Make the filename optional; in this case call
14275 input_stack::end_file().
14277 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14279 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14280 produce a real _ charater when the current font is CW and _
14283 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14284 expression to work around gcc 2.2 bug.
14286 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14288 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14290 * troff/env.c (environment::add_padding): New function.
14291 (environment::add_char): Use add_padding().
14292 (environment::space): Likewise.
14293 (environment::wrap_up_field): Add some padding if there is none
14294 and there's no current tab.
14295 * troff/env.h: Declare environment::add_padding.
14297 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14299 * pic/pic.y: undef fmod and rand before declaring them.
14301 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14303 * troff/input.c (main): If the DESC file specifies a font name of
14304 0, then leave the corresponding font position empty.
14306 * nroff.sh: New file.
14307 * Makefile (install.nobin): Install nroff.sh.
14309 * tty/devlatin1/R.proto: Add ao as synonym for de.
14310 * tty/tmac.tty-char: Define ao as o.
14312 * tty/dev{ascii,latin1}/R.proto: Add aq.
14313 * tty/tmac.tty-char: Delete definition of aq.
14315 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14317 * troff/input.c (init_charset_table): Don't translate 0240.
14318 * ps/tmac.ps: Translate char160 to space.
14319 * dvi/tmac.dvi: Likewise.
14320 * tty/tmac.tty: Likewise.
14322 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14324 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14326 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14327 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14330 * tty/tmac.tty-char: Add \(ah.
14332 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14333 No need to define \(FM and \(!/. Conditionalize all character
14336 * ps/devps/lgreekmap: Add +h, +f, +p.
14338 * ps/tmac.psnew: New file.
14339 * ps/Makefile: Install tmac.psnew.
14341 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14342 character definitions in compatible mode.
14344 * troff/input.c (remove_character): New function.
14345 (init_input_requests): Bind remove_character to "rchar".
14347 * ps/tmac.psold: New file.
14348 * ps/Makefile: Install tmac.psold.
14349 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14350 characters into tmac.psold. Make these definitions unconditional.
14352 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14354 * ps/tmac.ps: Don't define \('c and \('C.
14356 * ps/devps/textmap: Move Greek characters to...
14357 * ps/devps/symbolchars:
14359 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14361 * ps/devps/text.enc: Add quotesingle.
14362 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14363 * tty/tmac.tty-char: Likewise.
14364 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14365 * dvi/devdvi/texi.map: Add Fn.
14366 * dvi/devdvi/msam.map: Add lz.
14367 * dvi/tmac.dvi: Handle Bq, bq, aq.
14369 * pic/lex.c (get_token): Recognize 'th.
14370 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14372 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14374 * ps/devps/textmap: Move di, mu, +- to...
14375 * ps/devps/symbolchars:
14377 * macros/tmac.s (@XS): Don't call par@reset or fi.
14378 (XA): Call LP. Turn off adjustment. Reduce line length.
14380 * macros/tmac.s: Initially alias XS to LP.
14381 (XS): Rename to @XS.
14382 (cov*ab-init): Alias XS to @XS.
14384 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14386 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14387 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14388 (token::is_size, token::changes_env): Deleted.
14389 * troff/number.c (parse_term): No need to process \s explicitly.
14390 Call tok.next() only after scale indicator has been processed.
14391 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14393 (token::next): Handle \s, \f, \S, \H immediately rather than
14394 returning them as tokens.
14395 (token::operator==, token::description, token::add_to_node_list,
14396 token::process): Remove handling of deleted tokens.
14398 * troff/env.c (environment::add_char): When adding padding
14399 indicator character, call start_line() if necessary.
14401 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14403 * ps/devps/afmtodit: Don't output 0 kerns.
14405 * ps/devps/afmtodit: Remove directory from name of encoding in
14406 font description file.
14408 * ps/devps/afmtodit: Improve error messages.
14410 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14412 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14413 * ps/devps/FontMakefile: Deleted.
14414 * ps/devps/afmname: New file.
14416 * ps/devps/symbol.sed: New file.
14417 * ps/devps/symbol.diff: Deleted.
14418 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14419 Generate zapfdr.afm from zapfd.afm.
14421 * tty/tmac.tty (tty-char): Prefix definition with ".
14423 * macros/tmac.an (TP): Don't start a diversion if one has already
14426 * tty/tmac.tty-char: Add Latin-1 characters.
14428 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14430 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14432 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14433 Move declaration of struct horizontal_span.
14435 * tbl/table.c (table::table): Initialize span_list.
14436 (table::~table): Delete span_list.
14438 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14440 * ps/devps/Makefile: Avoid dependency on GNU make.
14442 * ps/tmac.ps: Check that character does not already exist before
14445 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14446 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14447 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14450 * tty/tmac.tty-char: New file.
14451 * tty/Makefile: Install tmac.tty-char.
14452 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14455 * tty/tmac.tty: Fix definition of \(34.
14457 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14458 bracket-drawing characters onto |. Add *o.
14460 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14461 only if current_field.
14463 * troff/dictionary.c (dictionary::lookup): Free old_table after
14466 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14468 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14469 whose glyphs are identical to glyphs of some Roman character.
14471 * tty/devlatin1/R.proto (bu): Deleted.
14472 * tty/devascii/R.proto (bu): Deleted.
14473 * tty/tmac.tty: Add definition of \(bu.
14475 * eqn/main.c (do_file): Pass FILE as argument.
14476 (main): Automatically load eqnchar. New options -F and -n.
14477 Pass do_file an opened FILE.
14478 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14479 No need to include font.h.
14480 * groff.sh: Likewise. Don't need to use - for standard input.
14481 Prefix files with -- if first file starts with -.
14483 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14485 * troff/env.c (environment::possibly_break_line): Don't set line
14486 to 0 across call to output_line(). Don't call output_line() until
14487 after discarding nodes after break.
14489 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14491 * request.h (macro::empty): Declare it.
14492 * input.c (macro::empty): New method.
14493 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14496 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14498 * troff/env.c (environment::start_field): Decrement space_total
14499 when a space is frozen.
14501 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14503 * macros/tmac.an (R): Delete macro.
14505 * troff/input.c (get_copy, token::next): Support \# (like \" but
14506 newline is ignored).
14508 * troff/input.c (token::next): Fix error message in 'Y' case.
14510 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14512 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14515 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14517 * c++test.c: Include <osfcn.h>.
14519 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14522 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14524 * tbl/table.c (table::divide_span): Don't count column separation
14525 if expand was specified.
14527 * tbl/main.c (process_format): Don't ignore width specs in
14528 continued format. Give warning for changing equal widths or
14529 column separation in continued format.
14530 (process_data): Set column separation, minimum width, equal
14531 columns at end of table.
14533 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14535 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14536 node::add_discretionary_hyphen): Use soft_hyphen_char.
14537 (set_soft_hyphen_char): New function.
14538 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14540 * Makefile (c++tested): Give more helpful message if test fails.
14542 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14544 * troff/input.c (init_charset_table): Translate 0240 to
14545 an unbreakable space.
14547 * troff/token.h (token::hyphen_indicator): New function.
14548 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14550 * troff/input.c (translate): Allow translation to \%.
14551 * troff/node.c (node::add_char): Handle
14552 TRANSLATE_HYPHEN_INDICATOR.
14553 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14555 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14558 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14560 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14562 * groff.c (run_commands): If the last command gets a SIGPIPE send
14563 a SIGPIPE to all children than haven't yet terminated. When
14564 command terminates, set pid field to -1.
14566 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14568 * groff.c (main): Pass an appropriate -filename option to gxditview.
14570 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14572 * Makefile.bd (install): Remove existing program before copying.
14574 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14575 programs which have Unix counterparts to be installed with
14576 user-specified prefix.
14578 * troff/input.c (exit_troff): Don't check if exit_started.
14579 (exit_request): Don't call exit_troff if exit_started.
14581 * Makefile.bd (install.mm): Rename to install.dwbmm.
14583 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14585 * driver/input.c (do_file): Add missing break for '#' case.
14587 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14589 * troff/input.c (input_stack::clear): Clear past any boundaries and
14590 then add the boundaries back.
14592 * troff/input.c (exit_troff): Return immediately if already
14595 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14597 (pg*end-page): If the text has ended and there are no more
14598 footnotes or keeps, exit.
14600 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14602 * troff/input.c (init_charset_table): Make \(rq transparent by
14605 * macros/tmac.an: Define lq and rq strings.
14607 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14609 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14611 * troff/env.c (environment::final_break): New function.
14612 (environment::newline): Set prev_line_interrupted to 2 if
14614 * troff/env.h: Declare environment::final_break.
14615 * troff/input.c (exit_troff): Call environment::final_break()
14616 instead of environment::do_break().
14618 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14619 doesn't already exist.
14620 * macros/man.local: New file.
14621 * macros/tmac.an: Load man.local.
14622 * macros/man.ultrix: New file.
14624 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14626 * troff/input.c (exit_groff): Rename to...
14627 (exit_troff): New function.
14629 * troff/div.c (exit_started, done_end_macro,
14630 seen_last_page_ejector): New global variables.
14631 (began_page_in_end_macro): New static variable.
14632 (exit_flag): Deleted.
14633 (top_level_diversion::top_level_diversion): Initialize
14635 (top_level_diversion): More elaborate test for whether
14636 cleanup_and_exit() should be called.
14637 Set began_page_in_end_macro if the end macro isn't yet finished.
14638 * troff/div.h (top_level_diversion::last_page_count): New data
14640 (top_level_diversion::set_last_page): New function.
14641 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14642 * troff/env.c (do_break): Zero prev_line_interrupted.
14643 * troff/input.c (exit_flag): Delete declaration.
14644 (LAST_PAGE_EJECTOR): New magic cookie.
14645 (token::next): Handle LAST_PAGE_EJECTOR.
14646 (exit_groff): Set exit_started and done_end_macro instead of
14647 exit_flag. Call top_level_diversion::set_last_page. Push a
14648 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14649 another ejection after setting seen_last_page_ejector.
14651 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14653 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14655 * macros/tmac.e (TH): Make sure there's room for the initial
14658 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14659 Set FVS in points rather than units.
14661 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14663 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14664 position of empty slots.
14666 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14668 * ps/devps/S: Fix height and depth of parenrightex.
14669 * ps/devps/symbol.diff: Regenerate.
14671 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14673 * tmac.e (u): Do underlining as in -mgs.
14675 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
14677 * tty/tty.c (tty_printer::end_page): If overstriking is
14678 suppressed, still turn overstruck horizontal and vertical lines
14681 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14684 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14686 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
14688 * Version 1.05 released.
14690 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
14692 * tty/tty.c: Instead of keeping an array of glyphs and then
14693 sorting it, keep a ordered linked list of glyphs for each line.
14695 * driver/driver.h: Include stddef.h.
14697 * tty/tty.c (compare_glyph):
14698 * refer/refer.c (rcompare):
14699 * troff/env.c (compare_ranges): Arguments of qsort comparison
14700 function should be const void *.
14702 * troff/number.c (parse_term):
14703 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14706 * refer/label.y (consider_authors): Don't access variables
14707 constructed under a condition outside that condition: put braces
14708 round for statement containing declaration; redeclare use of same
14711 * pic/pic.y (text_expr): Delete production that allows
14712 parenthesised text_expr.
14713 (expr): Allow a conditional_expr to appear in parentheses.
14714 (conditional_expr): Rename to any_expr.
14716 * mm: Install new version 1.01 from jh.
14718 * lib/font.c (font::get_width): Cache scaled widths.
14719 (font::font): Initialize widths_cache.
14720 (font::~font): Destroy widths_cache.
14721 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14723 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
14725 * c++test.c, c++test.ref: New files.
14726 * Makefile: Check that the C++ compiler works.
14728 * ps/tmac.pspic (PSPIC): Do a break.
14730 * ps/tmac.ps: Move definition of PSPIC into...
14731 * ps/tmac.pspic: New file.
14732 (PSPIC): Draw box around picture, but make it invisible to grops.
14733 * ps/tmac.ps: Load tmac.pspic.
14734 * ps/Makefile: Install tmac.pspic.
14736 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
14738 * lib/font.c (scale_round): If n is negative,
14739 subtract .5 before truncating floating point result.
14741 * lib/fontfile.c: Include <errno.h>.
14743 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
14745 * driver/input.c (get_char): Inline. Don't update current_lineno.
14746 Change callers to up date current_lineno if necessary.
14747 Use get_char() instead of getc(current_file).
14749 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
14751 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14753 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
14755 * tty/tty.c (tmac.tty): Define \(rg as (R).
14757 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
14759 * lib/lib.h: New define a_delete.
14760 * Use a_delete instead of delete when deleting an array of objects
14761 without destructors.
14763 * lib/lib.h: Rename adelete to ad_delete.
14764 * Change uses of adelete.
14766 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
14768 * eqn/eqn.y: Include lib.h.
14770 * troff/node.c (grow_font_table): Delete old_font_table.
14772 * mm: Install new version from jh.
14774 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
14776 * tbl/table.h (format_type): Make global instead of local to class
14777 entry_format. Prefix enumerators with FORMAT_.
14778 * tbl/table.c, tbl/main.c: Corresponding changes.
14779 * refer/token.h (token_type): Make global. Prefix enumerators
14781 * refer/token.[ch]: Corresponding changes.
14782 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14784 * troff/div.c (node::set_vertical_size): Don't name argument.
14786 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
14788 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14789 * lib/lib.h: Define adelete accordingly.
14790 * pic/object.c (graphic_object::graphic_object):
14791 * tbl/main.c (format::~format):
14792 * tbl/table.c (table::~table):
14793 * refer/ref.c (reference::~reference, reference::merge,
14794 reference::insert_field, reference::delete_field): Use adelete.
14796 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14798 * tbl/table.h: Corresponding changes.
14800 * common.c (common_output::dashed_arc, common_output::dotted_arc):
14801 Ensure total_angle is positive.
14803 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
14805 * refer/ref.c (reference::merge, reference::insert_field,
14806 reference::delete_field): Avoid delete[0].
14808 * refer/token.c (init_special_chars): Move calls to cmupper
14809 outside calls to init_two_char_letter to work around bug in gcc
14812 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
14814 * lib/new.c (operator new): Use __builtin_new for g++.
14816 * pic/object.c (graphic_object::~graphic_object): Don't use
14819 * pic/object.c (output::compute_scale): Initialize max_width and
14822 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
14824 * troff/input.c (write_request): Call fflush.
14826 * troff/node.h (class composite_node): Move declaration to node.c
14827 * troff/input.c (charinfo_to_node): Rename to ...
14828 (charinfo_to_node_list): Return node list rather than composite
14830 * troff/node.c (make_composite_node): New function.
14831 (make_node, add_char): Call make_composite_node instead of
14833 (class composite_node): Add a tfont * member. Delete font_size
14835 (composite_node::composite_node, composite_node::copy,
14836 composite_node::size): Corresponding changes.
14837 (composite_node::tprint): Provide constant spacing, emboldening
14838 and track kerning as specified in tfont.
14839 (composite_node::width): Change width calculation accordingly.
14840 * troff/env.h (environment::composite): New member.
14841 (environment::is_composite, environment::set_composite): New
14843 * troff/env.c (environment::environment): Initialize composite.
14844 * troff/input.c (charinfo_to_node): Call
14845 environment::set_composite.
14846 * troff/node.c (make_composite_node, make_glyph_node): Use the
14847 plain version of the tfont if the environment is composite.
14849 * troff/node.c (font_info::get_space_width): Additional argument
14850 giving space_size. Handle constant space correctly. Scale by
14851 space_size unless constant spaced.
14852 (env_sentence_space_width): New function.
14853 * troff/node.h: Declare it.
14854 * troff/env.h (environment::get_space_size,
14855 environment::get_sentence_space_size,
14856 environment::get_narrow_space_width,
14857 environment::get_half_narrow_space_width): Make inline.
14858 (environment::get_space_width): Make inline. Just call
14860 * troff/env.c: Delete definitions for funtions made inline.
14861 (environment::space_newline, environment::space): Use
14862 env_sentence_space_width(). Don't scale by space_size.
14863 * troff/node.h: Move declarations of env*space_width() functions
14866 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
14868 * macros/tmac.s (PS): Don't try to set negative indent.
14870 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
14872 * pic/pic.y: Fix min function.
14874 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
14876 * man/mdate.sh: Clear LANGUAGE.
14878 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
14880 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14881 * pic/lex.c: New COMMAND keyword.
14882 * pic/pic.y (print_args, print_arg): New rules.
14883 (placeless_element): Use print_args for PRINT.
14884 New COMMAND element.
14886 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
14888 * troff/input.c (terminal): Handle missing argument correctly.
14890 * pic/pic.y (text_expr): New rule.
14892 * pic/pic.y: Implement := operator.
14894 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
14896 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14899 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
14901 * ps/devps/dingbatsrmap: Include this in the distribution.
14903 * macros/tmac.doc: Replace with new version from 2nd Networking
14904 Release. Fix loading of doc-* files.
14905 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14906 * macros/tmac.doc.old: New file. Apply fixes that had been
14907 applied to old tmac.doc.
14908 * macros/tmac.andoc: Check that we're running under groff.
14909 * macros/Makefile: Rework.
14911 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
14913 * tbl/table.h (format_type):
14914 * refer/token.h (token_type): If NESTED_TYPES is defined, use
14915 typedef to make these types visible at file scope.
14916 * Makefile: Add NESTED_TYPES configuration option.
14918 * troff/div.c (mark): At the top level use the value of
14919 nl_reg_contents rather than the current vertical position.
14921 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
14923 * tty/tty.c: Implement \D for horizontal or vertical lines.
14924 (tty_printer::set_char): Use vec_used+2 as serial number.
14925 Don't allow size of vector to exceed USHRT_MAX-2.
14926 Split off part into...
14927 (tty_printer::add_char): New function.
14928 (tty_printer::draw): New function.
14929 (compare_glyph): Handle equal serial numbers.
14930 (tty_printer::end_page): Handle overstruck characters from \D.
14931 (main, usage): Implement -d option.
14933 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
14935 * tbl/main.c (process_format):
14936 * eqn/text.c (split_text):
14937 * troff/input.c (token::next): Use inner block for declarations
14938 with initializers in switch statement.
14940 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
14942 * pic/common.c (common_output::dash_line): Cope with zero-length
14945 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
14947 * Version 1.04 released.
14949 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
14951 * macros/tmac.an (TH): Define a macro an-init to define variables
14952 based on command line arguments.
14953 (an-header): Call it.
14955 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
14957 * Makefile (install.mm): Rename to install.dwbmm.
14959 * Makefile: Integrate mm.
14960 * mm: New directory.
14962 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
14964 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14967 * pic/troff.c (troff_output::simple_spline,
14968 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14969 shadowing parameter.
14971 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14973 * lib/ptable.h: Add explicit casts when converting from unsigned
14976 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14977 * dvi/devdvi/Makefile: Install SA, SB.
14979 * refer/indxbib.c: Add declaration of mktemp.
14981 * refer/lookbib.c: Add declaration of isatty.
14983 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
14985 * pic/lex.c (interpolate_macro_with_args): While collecting
14986 arguments, keep track of whether we're in a string.
14988 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
14990 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14991 down with \v, so as to avoid problems with top of page trap
14992 setting no space mode.
14994 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
14996 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14998 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15000 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15001 Improve error message.
15003 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15005 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15008 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15010 * groff.c (possible_command::execp): Always use _exit() after a
15013 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15014 NO_SYS_WAIT_H configuration options.
15015 * groff.c: Use these options. Use POSIX-style macros to extract
15016 fields from the status returned by wait().
15018 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15020 * tbl/table.c (table::compute_separation_factor): Allow the
15021 separation factor to drop to 0.
15023 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15025 * refer/search.c: Include <errno.h>.
15027 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15029 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15031 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15034 * pic/lex.c (input_stack::bol): Move definition out of class body.
15036 * pic/main.c: On MSDOS munge argv[0].
15038 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15040 * lib/ptable.c (hash_string): Use unsigned long rather than
15042 (next_ptable_size): Use unsigned rather than int. Give an error
15043 message if we've hit the largest table size.
15044 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15047 * pic/object.h (object_spec): Make flags unsigned long. Declare
15048 flags as const unisgned long rather than as enums.
15050 * pic/output.c: Deleted.
15052 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15054 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15055 Add additional argument.
15056 (line_entry::note_double_vrule_on_{left,right}): Set value of
15057 douvle_vrule_on_{right,left} flag according to argument.
15058 (simple_line_entry::simple_print,
15059 simple_line_entry::double_line_print): If adjacent to double vrule
15060 on a corner extend rather than shorten the rule by half the double
15063 * troff/number.c (parse_term): In checking for overflow, handle the
15064 case where the current horizontal position is negative.
15066 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15068 * pic/object.c (draw_arrow): Check for object having zero length.
15070 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15072 * eqn/main.c (do_file): Split off inline equation handling into...
15073 (inline_equation): New function. Search for starting delimiter
15075 (delim_search): New function. Don't recognize a delimiter that
15076 occurs in the name of an escape sequence, number register, string
15079 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15081 * eqn/delim.c (delim_box::compute_metrics): Don't call
15082 define_extensible_string if left is 0.
15083 (delim_box::output): Don't print the left delimiter if left is 0.
15084 (delim_box::debug_print): Check for left == 0 before calling printf.
15086 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15088 * troff/Makefile (majorminor.c): Include only digits in
15091 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15093 * refer/dirnamemax.c: new file.
15094 * refer/genlimits.c: Deleted.
15095 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15096 Don't check path length.
15097 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15098 * Makefile: Add PATHCONF_MISSING option.
15100 * refer/indxbib.c (get_cwd): New function.
15101 (main): Use get_cwd().
15102 * lib/getcwd.c: New file.
15103 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15104 GETCWD in SUBFLAGS.
15105 * lib/Makefile: Compile getcwd.o.
15107 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15110 * refer/indxbib.c (main): Check success of mktemp.
15112 * lib/tmpfile.c: New file.
15113 * lib/Makefile: Add tmpfile.c.
15114 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15115 * ps/ps.h: Delete declaration of mktemp().
15116 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15117 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15118 * driver/driver.h: No need now to include errno.h.
15120 * everywhere: Set errno to 0 before calling fopen().
15122 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15123 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15124 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15126 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15128 * troff/env.h (translate_space_to_dummy): Declare it.
15129 * troff/env.c (environment::space_newline, environment::space):
15130 If translate_space_to_dummy is set then make the width of spaces 0.
15131 * troff/input.c (translate): If the second character of a
15132 translation is a space, translate to unbreakable space. If the
15133 first character is a space, set or clear translate_space_to_dummy
15134 according to whether the second character is \&. Weird!
15136 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15138 * groff.c (run_commands): Don't use non-zero exit code because a
15139 command gets SIGPIPE.
15141 * groff.c, groff.sh: Use -mXps with -TXps.
15143 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15144 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15145 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15146 (ps_printer::special): New specials invis and endinvis.
15147 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15148 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15149 (ps_printer::end_page): Check that invis_count == 0.
15150 (ps_printer::invis_count): New member.
15151 (ps_printer::ps_printer): Initialize invis_count to 0.
15153 * troff/env.c (environment::hyphenate_line): Hyphenation
15154 indicator at beginning of word inhibits splitting after -, \(em
15157 * pic/pic.y (element): Allow another element to follow } without
15158 any intervening separator.
15160 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15162 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15164 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15166 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15167 declaration of wait() in header files.
15168 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15170 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15172 * lib/lib.h: Declare return type of strerror as char *.
15174 * man/Makefile: Add g flag to sed substitutions.
15175 * Makefile (shgroff, bindist): Likewise.
15177 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15179 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15180 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15183 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15185 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15188 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15190 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15193 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15195 * troff/input.c (define_number_reg): If currently undefined,
15196 don't define it if the argument is an invalid expression.
15198 * Makefile: Ignore return value of `if' commands without `else'
15201 * Makefile: Split up CPPDEFINES into a series of separate
15202 configuration options.
15204 * troff/input.c (init_registers): Use time_t instead of long
15205 unless LONG_FOR_TIME_T is defined. Use returned result rather
15206 than passing pointer.
15207 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15209 * lib/Makefile (fontpath.h): Use gendef.
15211 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15213 * troff/input.c (input_iterator::shift): Delete argument name.
15214 * troff/node.c (suppress_output_file::really_begin_page,
15215 suppress_output_file::really_transparent_char, node::ascii_print,
15216 node::tprint): Delete names of unused arguments.
15218 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15220 * refer/label.y (string): Pass $4 to command_error.
15222 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15224 * Version 1.03 released.
15226 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15228 * Makefile: Pass definition of SHELL in SUBFLAGS.
15230 * gendef: New file.
15231 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15232 ps/Makefile: Use gendef to construct header files that are
15233 constructed from the Makefile.
15235 * macros/Makefile: make all should build stripped version of tmac.e.
15237 * refer/Makefile (clean): Remove y.output.
15239 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15241 * ps/pfbtops.c (main): Add -v option which prints out a version
15243 * ps/Makefile (pfbtops): Link with libgroff.a.
15245 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15247 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15248 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15250 * refer/lkbib.c (main): Always terminate reference with blank
15252 * refer/lookbib.c (main): Likewise.
15254 * refer/linear.c (file_buffer::load): Check that the file is not a
15257 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15258 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15259 Delete second inclusion of <sys/param.h>.
15261 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15263 * troff/token.h (token::special): Deleted.
15265 * tbl/main.c (process_format): Rework so that opt->tab_char is
15266 recognized only when appropriate.
15268 * ps/Makefile (clean): Remove pfbtops.
15270 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15272 * lib/font.c (text_file::next): Don't return if we have got a
15275 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15277 * refer/refer.c (store_reference): Get hash code from old_table[i]
15278 when rehashing the table.
15280 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15282 * eqn/box.c (box::top_level): Save size and prev size using \R and
15283 restore it afterwards. Set the size to the size at the beginning
15285 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15286 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15288 * refer/Makefile (limits.h): Use ./genlimits.
15290 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15292 * refer/index.c: Delete declarations of stat() and fstat().
15294 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15296 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15298 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15300 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15302 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15304 * troff/input.c (token::get_char): Handle \e.
15306 * refer/linear.c: Delete declarations of fstat() and stat().
15308 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15310 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15311 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15313 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15315 * troff/input.c (do_define_macro): Improve error handling for end
15316 of file while defining macro.
15318 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15320 * eqn/box.h: Fix declaration of set_gsize.
15321 * eqn/box.c (set_gsize): Make argument const char *.
15322 (gsize): Declare as char *.
15323 * eqn/main.c (main): Don't convert gsize to int.
15324 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15326 * Version 1.02 released.
15328 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15330 * macros/tmac.andoc: New file.
15331 * macros/Makefile: Install tmac.andoc.
15333 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15334 operator new and delete on OP_DELETE_BROKEN not being defined.
15335 * Makefile: Mention OP_DELETE_BROKEN.
15337 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15339 * Makefile (bindist): Pass SUBFLAGS.
15341 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15343 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15345 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15348 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15350 * ps/ps.h, ps/psrm.c: Make comment_table and
15351 header_comment_table local to resource_manager::process_file.
15353 * groff.sh: With -TXps pass -printCommand option to gxditview.
15355 * groff.c (possible_command::print): Implement using
15356 append_arg_to_string.
15358 * xditview: Merge in new implementation with own ChangeLog.
15360 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15362 * groff.c (main): Implement PRINT_OPTION.
15363 (append_arg_to_string): New command.
15364 (device_table): Set PRINT_OPTION flag for Xps.
15366 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15368 * troff/groff.h: Rename to troff.h.
15370 * pic/lex.c (lookup_keyword, docmp): New functions.
15371 (get_token): Use new lookup_keyword.
15372 Don't include key.h.
15373 * pic/key.[ch], pic/pic.gperf: Deleted.
15374 * pic/Makefile: Remove gperf stuff.
15376 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15378 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15380 * troff/Makefile, troff/node.c: Move definition of
15381 STORE_WIDTH into node.c.
15383 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15385 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15387 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15388 dvi/devdvi/texb.map: Add lq and rq.
15389 dvi/devdvi: Regenerate fonts.
15390 * ps/devps/textmap: Add lq and rq.
15391 * ps/devps: Regenerate fonts.
15392 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15393 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15395 * pic/object.c (position_rectangle): When checking radius
15396 cope with possiblity that width or height is negative.
15397 (box_object::box_object): Have separate xrad and yrad with
15398 signs matching signs of dim components.
15399 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15400 (box_object::print): With rounded boxes use absolute values
15401 for dim and rad arguments.
15403 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15406 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15408 * various files: Add explicit destructors to keep Saber CC +d
15411 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15413 * eqn/box.c (box::top_level): Restore fonts correctly after
15414 font changes in line containing inline equation. Also
15415 restore previous font as well as current font.
15416 * eqn/pbox.h: Define necessary string and register names.
15418 * troff/input.c (token::next): Case 'R' calls do_register.
15419 (do_register): New function.
15421 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15423 * groff.c, groff.sh: Support Xps device. Allow each device
15424 to have a pseudo_name and a real_name.
15426 * groff.c (run_commands): Don't print `Broken pipe' messages.
15428 * ps/pfbtops.c: New file.
15429 * ps/Makefile: Add pfbtops.
15431 * troff/number.c (parse_term): Improved error message.
15433 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15435 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15437 * Makefile: Integrate refer.
15438 * refer: New directory.
15439 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15440 man/lkbib.man: New files.
15441 * man/Makefile: Support refer man pages.
15443 * lib/lib.h: Declare is_prime.
15444 * lib/prime.c: New file.
15446 * troff/input.c (macro_source): New function.
15447 (init_input_requests): Bind "mso" to macro_source.
15449 * troff/env.c (environment::possibly_break_line): Maintain
15450 pointer to pointer to node to be split in ndp so as to avoid
15451 using address of freed node.
15453 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15454 pointer to first node to be hyphenated in startp so as to
15455 avoid using address of freed node.
15457 * troff/env.c (class trie, class hyphen_trie): Make the
15458 elements of the trie be of type char not unsigned char.
15459 Declare arguments to be const char* instead of unsigned char *.
15461 * troff/env.c (hyphenate): Initialize hbuf[0].
15463 * troff/input.c (set_string): Declare p to be char * and cast
15464 *p to unsigned char when necessary.
15466 * troff/input.c (do_define_macro): Declare s to be const
15467 char*. Cast element to unisgned char when necessary, Declare
15468 d to be an int. Handle EOF better.
15470 * troff/Makefile, troff/input.c: Different scheme for passing
15471 definitions of MACROPATH, HYPHENFILE and DEVICE.
15473 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15475 * tty/devascii/R.proto: Delete entry for em.
15476 * tty/devlatin1/R.proto: Likewise.
15478 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15480 * troff/input.c (translate): Stop when we get a space. Treat eof
15483 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15485 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15487 * tbl/main.c (process_format): A font name following a `f'
15488 modifier that starts with a digit can be only one character long.
15489 Also deal with EOF on the second character of the font name.
15491 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15493 * troff/input.c (token::next): Turn \~ into an
15494 unbreakable_space_node.
15495 * troff/node.c (unbreakable_space_node): New class.
15496 * troff/node.h: Declare it.
15498 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15500 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15501 it's >= 0, before outputting it as a single byte.
15503 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15505 * lib/font.c: Make font_char_metric::code an int.
15506 (font::get_code): Change return type to int.
15507 (font::load): Allow code to be arbitrary integer.
15508 * lib/font.h (font::get_code): Change return type to int.
15509 (font::number_to_index): Change argument type to int.
15510 * troff/input.c (token::next): In case 'N', allow any value.
15511 Store value in token::val.
15512 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15513 (token::get_char, token::add_to_node_list, token::process): Get
15515 (charinfo::set_number): Change argument to int.
15516 (charinfo::get_number): Require that NUMBERED flag be set.
15517 (get_charinfo_by_number): Store numbered characters not between 0
15518 and 255 in a dictionary.
15519 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15521 (charinfo::number): Change type to int.
15522 (charinfo::set_number): Change type of set_number to int.
15523 * troff/node.c (troff_output_file::put_char_width,
15524 troff_output_file::put_char): Test whether character is numbered
15525 using charinfo::numbered().
15526 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15528 * lib/nametoindex.c: New implementation to cope with arbitrary
15531 * troff/input.c (token::operator==): Test val for
15532 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15535 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15536 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15538 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15540 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15543 * all Makefiles: rm targets of cp and >.
15545 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15548 * eqn/lex.c (def_table): Add dollar.
15550 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15552 * troff/input.c (do_width): Push back newline before closing delim
15555 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15557 * groff.c (possible_command::prepend_arg): New function.
15558 (main): Prepend device -m option.
15559 * groff.sh: Put device -m options before command-line options.
15561 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15563 * macros/tmac.an (IP): Quote argument to TP.
15565 * ps/ps.c (main): New option -b, which sets...
15566 (broken_flags): New variable.
15567 (ps_printer::~ps_printer): Incorporate the setup section in the
15568 prolog if (broken_flags & NO_SETUP_SECTION).
15569 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15570 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15571 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15572 ps_printer::print_needed_font_comment,
15573 ps_printer::print_supplied_font_comment,
15574 ps_printer::print_include_font_comments,
15575 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15576 ps_printer::read_download_file, read_document_fonts, add_font,
15577 skip_line, parse_fonts_arg, document_font::document_font,
15578 document_font::~document_font, document_font::download,
15579 ps_output::include_file): Deleted.
15580 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15581 rather than %!PS-Adobe-2.0. Make calls to
15582 resource_manager::need_font for each font that we used. Replace
15583 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15584 print_supplied_font_comment, print_needed_font_comment by call to
15585 resource_manager::print_header_comments. Output %%Orientation
15586 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15587 Don't output the prolog directly. Instead call
15588 resource_manager::output_prolog. Only define #copies when ncopies
15589 > 1. Delete calls to print_include_font_comments and
15590 download_fonts. Add call to resource_manager::document_setup.
15591 (ps_printer::do_file): Call resource_manager::import_file instead
15592 of including it ourselves.
15593 (ps_printer::do_import): Likewise. Also don't call
15594 merge_import_fonts. Push userdict on the dictionary stack before
15595 and pop it afterwards.
15596 Move declaration of ps_output into ps.h.
15597 * ps/psrm.c: New file implementing resource_manager class.
15598 * ps/ps.h: New file declaring ps_output and resource_manager
15600 * ps/devps/zapfdr.ps:
15601 * ps/devps/symbolsl.ps:
15602 * ps/devps/prologue: Use 3.0 conventions.
15603 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15604 Add default definition of BROKEN_SPOOLER_FLAGS.
15605 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15606 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15608 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15610 * etc/grog.pl: New file.
15611 * Makefile (GROG): New variable.
15612 Add GROG to SUBFLAGS.
15613 * etc/Makefile (GROG): New variable.
15614 (install.nobin): Install $(GROG) rather than grog.sh.
15616 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15618 * eqn/special.c (special_box::compute_metrics): Make the input and
15619 output strings the same. Get the new height and depth from the
15620 predefined height and depth registers. Also make subscript kern
15621 and skew available.
15622 (special_box::compute_subscript_kern, special_box::compute_skew):
15625 * eqn/box.c (pointer_box::compute_skew,
15626 simple_box::compute_metrics, box::top_level)
15627 * eqn/text.c (prime_box::compute_metrics,
15628 prime_box::comput_subscript_kern)
15629 * eqn/limit.c (limit_box::compute_metrics):
15630 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15631 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15632 negative numbers in `nr' requests with a leading 0.
15634 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15636 * eqn/special.c: New file.
15637 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15638 Add new rule for simple.
15639 * eqn/lex.c (token_table): Add SPECIAL.
15640 * eqn/box.h: Declare make_special_box.
15641 * eqn/Makefile: Add special.[co].
15643 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15645 * ps/devps/prologue: Possibly set packing to true while defining.
15646 Create grops dictionary here. Initialize local variables before
15647 defining procedures.
15648 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15649 the dictionary stack. Set strokeadjust and overprint to false if
15650 the relevant operators are defined.
15651 (PEND): New procedure.
15652 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15653 prologue. Do everything else in the setup section.
15654 (ps_printer::do_import): Just call PBEGIN and PEND around the
15655 picture. Also push userdict before, and pop it afterwards.
15657 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15659 * troff/node.c (bracket_node::tprint): Brackets were being printed
15662 * macros/tmac.an (SH, SS): Set fill mode.
15664 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15666 * troff/div.c (top_level_diversion::begin_page): Set
15667 high_water_mark to 0.
15669 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15671 * man/mdate.sh: New file.
15672 * man/mdate.c: Deleted.
15673 * man/Makefile: Use mdate.sh instead of mdate.
15676 * eqn/lex.c (do_gsize): Supply missing argument to error message.
15678 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
15680 * man/mdate.c: New file.
15681 * man/*.man: Replace modification date by @MDATE@.
15682 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15683 (mdate): New target.
15685 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15686 Remove illegal input characters.
15688 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
15690 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15692 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
15694 * troff/div.c (begin_page): Change behaviour when
15695 !first_page_begun and !break_flag.
15697 * troff/input.c (do_name_test): Return 0 if argument is empty.
15699 * troff/input.c (read_long_escape_name): Require closing ] to be
15700 at same input level as opening [.
15702 * troff/input.c (read_increment_and_escape_name): New function.
15703 (get_copy, process_input_stack): Use this for \n.
15705 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
15707 * troff/div.c (top_level_diversion::begin_page): Ignore the
15708 current value of page_number if !first_page_begun.
15710 * groff.c (main): Fix declaration of buf.
15712 * troff/input.c (do_name_test): New function.
15713 (token::next): Implement \A.
15714 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15715 (token::description, token::add_to_node_list, token::process):
15716 Handle TOKEN_ESCAPE.
15717 * troff/token.h: New token TOKEN_ESCAPE.
15719 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
15721 * pic/main.c (do_picture): Allow space before and after filename
15722 following `<'. Check that the filename is not empty.
15724 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
15726 * Version 1.01 released.
15728 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15730 * dvi/tmac.dvi: ftr HR to H.
15732 * macros/tmac.e: Round up computation of $r.
15734 * xditview/tmac.X: Don't give up completely in compatibility mode.
15735 Use \n(.s instead of \n[.s].
15737 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15738 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15739 Add u to factors inside \s[...]. Rename frac to dvi-frac.
15740 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15741 short names in the char definitions.
15743 * ps/tmac.ps: Don't give up completely in compatibility mode.
15744 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15745 quote in front of \n(.s. Add u to factors inside \s[...].
15747 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
15749 * tty/tmac.tty: Call the nroff request.
15751 * macros/tmac.e ((x, )x): Better definitions that work properly
15753 (@0, @1): Helper macros for (x.
15755 * macros/tmac.e ($s, hl): Use \l rather than \D.
15757 * tty/tmac.tty: Make it work better in compatibility mode.
15758 (pchar): Rename to tty-char.
15760 * macros/tmac.e (@E): New macro.
15761 (r, i, b, rb, bi): Use @E.
15763 * macros/tmac.e (@F): Don't use (;...) syntax.
15765 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
15766 it was modified for groff.
15768 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15770 * macros/tmac.e (<., .>): Removed.
15771 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15773 * macros/tmac.e: Remove check that groff is being used.
15775 * macros/tmac.e (@C): Change families only if using groff; turn
15776 compatibility mode off while changing familes. Save compatibility
15777 mode before changing families and restore it afterwards.
15779 * macros/tmac.e (@h): Remove test for offset + line length.
15781 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
15782 (lo, th, ac): Define to call @S instead of using als.
15784 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15785 the ratio of the vertical spacing to the point size in units
15786 expressed as a percentage. Use these instead of $10r and $10R,
15787 Delete $10r and $10R.
15789 * lib/font.c (font::load): In default computation of space_width,
15790 divide by sizescale. Use scale_round.
15792 * macros/tmac.an (TP): Don't call `nf'.
15793 (an-do-tag): Don't call `fi'.
15795 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
15797 * troff/input.c (process_input_stack): Handle the case where
15798 spaces at the beginning of an input line are followed by a
15801 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
15803 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15804 * groff.sh: Use pic -x with the dvi device.
15806 * dvi/devdvi/FontMakefile (H): Don't use -s.
15808 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15809 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15810 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15813 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
15815 * ps/psfig.diff: New file.
15816 * ps/tmac.psfig: New file.
15818 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
15820 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15821 (]-): Don't call ref*do-tl.
15823 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15825 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15826 (fn@do-FS): Rename to fn*do-FS.
15828 * troff/input.c (transparent_translate): New function.
15829 (process_input_stack): Apply transparent_translate before calling
15830 diversion::transparent_output(unsigned char).
15832 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
15834 * troff/input.c (do_define_macro): Define the macro before calling
15837 * xditview/Makefile: Add DEVICES variable. Change install target
15840 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
15842 * groff.c (run_commands): Handle the possibility that there are
15843 child processes other than those forked by us.
15845 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
15847 * lib/string.c (string::append): New function.
15848 * lib/stringclass.h: Declare it.
15850 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
15852 * eqn/main.c (main): New option -N which sets
15853 no_newline_in_delim_flag.
15854 (do_file): If no_newline_in_delim_flag is set don't allow newlines
15856 * groff.c (main): Pass -N on to eqn.
15857 (help, synopsis): Mention -N.
15858 * groff.sh: Implement -N.
15860 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
15862 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15863 (]-): Call ref*do-tl if ref*need-tl is non-zero.
15864 (XP): Allow as initializer.
15866 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
15868 * troff/env.c (environment::wrap_up_field): If field_spaces are
15869 non-zero and we have a current_tab, subtract padding from
15870 tab_distance. If this makes tab_distance <= 0, use the next tab
15871 stop instead. If there isn't any next tab or it's a left tab,
15872 wrap up the current tab.
15873 (environment::start_field): Initialize tab_precedes_field.
15874 (environment::wrap_up_tab): If there's a current field, update
15875 pre_field_width, field_distance and tab_precedes_field.
15876 * troff/env.h (environment::tab_precedes_field): New member.
15878 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
15880 * ps/ps.c (ps_printer::do_file): New function.
15881 (ps_printer::special): Bind to `file' special.
15882 (ps_printer::do_exec): Set ndefined_styles to 0.
15884 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
15886 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15887 Avoid stripping first character from the start of unrecognized
15888 escapes. Use lex_error instead of error to report errors.
15889 * eqn/lex.c (get_token): Rework handling of escapes.
15890 (lex_error): Move declaration into...
15893 * xditview/xditview.c (main): Make -page option work.
15895 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15897 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
15899 * macros/tmac.s (B2): Correct size of box.
15901 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
15903 * macros/tmac.s (B2): Postpone drawing the box until in the
15904 top-level diversion.
15906 * tty/tmac.tty: Add font translations for C, CR, CW.
15908 * groff.c (synopsis, help): Document -i.
15909 * groff.sh: Implement -i.
15911 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15912 Simplify the construction of SN.
15914 * troff/number.c (parse_term): Give `|' a higher precedence.
15915 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15918 * macros/tmac.s (B2): Use par@finish instead of par@reset.
15920 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
15922 * lib/string.c (string::move): New function.
15923 * lib/stringclass.h: Declare it.
15925 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
15927 * troff/env.c (distribute_space): Add optional argument
15929 (environment::wrap_up_field): Call distribute_space with
15930 `force_forward' argument of 1.
15932 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
15934 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15935 Inline it. Move reallocation into...
15936 (string::grow1): New function.
15937 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15938 dependencies to include library header files.
15939 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15941 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
15943 * macros/tmac.s (@NH): Use the same number registers than -ms does
15944 for the heading level counters. Use the same string that -ms does
15945 for the number for this heading.
15947 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
15949 * lib/new.c (operator new): Cast result of malloc to char *.
15951 * troff/input.c (spring_trap, lookup_request): Add assert that nm
15954 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
15956 * groff.c (main): Support -i.
15958 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
15960 * pic/pic.h: Include <osfcn.h>.
15962 * ps/ps.c: Add declaration of mktemp.
15964 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15965 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15966 argument as union wait *.
15967 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15968 argument to union wait *.
15970 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
15972 * tty/tmac.tty: Add definition of \(co.
15974 * pic/object.c (make_arc): Only increase radius when radius
15975 strictly less than d.
15976 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15979 * troff/env.c (environment::environment(symbol),
15980 environment::environment(const environment *)): Initialize
15983 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
15985 * tbl/main.c (main): Add exit(0).
15987 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15989 * pic/main.c (main):
15990 * eqn/main.c (main):
15991 * tbl/main.c (main):
15992 * etc/soelim.c (main):
15993 * driver/printer.c (printer::~printer):
15994 * troff/node.c (real_output_file::~real_output_file,
15995 real_output_file::flush): Check for errors on stdout.
15997 * most files: Add 1991 to copyright notice.
15999 * macros/tmac.s: Don't test \n(.x and \n(.y.
16001 * troff/input.c (token::next): Rename `escape_char' label to
16002 `handle_escape_char' and `normal_char' label to
16003 `handle_normal_char'.
16005 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16007 * groff.c (main, synopsis, help): Support -a option.
16008 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16009 to trflags while parsing options.
16011 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16013 * troff/number.c (parse_term): With `m', `M' and `n' scale
16014 indicators, convert scale factor to hunits before scaling.
16016 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16018 * lib/font.c (scale_round): Better test for overflow when n is
16021 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16023 * tbl/main.c (process_format): Add second argument of type
16024 options*. Change callers. Allow opt->tab_char as well as '\t'
16025 between format items.
16027 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16029 * macros/tmac.an (PD): With no arguments, make sure register PD is
16031 (TH): Call PD with no argument, instead of setting register PD
16034 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16036 * Version 1.00 released.
16038 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16040 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16042 * dvi/devdvi/DESC: Mount CW instead of CR.
16044 * dvi/tmac.dvi: Add definition of \(tm.
16046 * dvi/devdvi/texsy.map: Add lh, and rh.
16047 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16048 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16050 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16051 * dvi/devdvi/Makefile: Install H.
16052 * dvi/devdvi/H: New file.
16054 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16056 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16059 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16061 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16063 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16065 * macros/tmac.s (@EN): Handle the case where the equation is empty
16066 but the label is not.
16068 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16070 * troff/groff.h: New warning category WARN_SPACE.
16071 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16072 WARN_SPACE to warning_table.
16073 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16074 is longer than two characters and is not defined, but the first
16075 two characters do make a defined name.
16077 * PROBLEMS: New file.
16079 * CHANGES: New file.
16080 * README-0.6, README-1.00: Deleted.
16082 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16083 * xditview/devX75/Makefile: Make devX75-12.
16084 * xditview/devX100/Makefile: Make devX100-12.
16086 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16087 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16089 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16091 * README-0.7: Rename to README-1.00.
16093 * macros/tmac.pic: New file.
16094 * macros/Makefile (install.nobin): Install tmac.pic.
16096 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16098 * troff/env.c (hyphen_word): Correct the test for whether the
16099 token is a hyphen. Reset npos to 0.
16101 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16103 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16105 * macros/tmac.s (ds*common-end): Call par*reset.
16107 (par@reset-indent): Deleted.
16109 * macros/tmac.s (@IP): Divert the label.
16111 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16113 * xditview/draw.c (setGC): Use a line width of .1m rather than
16114 .04m by default; round rather than truncate value.
16116 * tbl/table.c (class empty_entry): New class.
16117 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16118 (table::add_entry): Represent empty entries by objects of type
16120 (table_entry::line_type): Return -1.
16121 (table::determine_row_type): Ignore entries with line_type 0.
16122 Treat type -1 as non-lines.
16124 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16126 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16127 macros/tmac.s: Rename \(-d to \(Sd.
16129 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16131 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16132 * xditview/libXdvi/DviChar.c: Likewise.
16133 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16135 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16137 * troff/div.c (top_level_diversion::begin_page): Call
16138 init_output() if the_output is 0.
16140 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16142 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16144 (get_copy): Turn \E into ESCAPE_E.
16145 (token::process, asciify): Handle ESCAPE_E.
16147 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16149 (DS): Implement `.DS R'.
16151 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16153 * macros/tmac.s (FS): New macro.
16155 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16157 * macros/tmac.s (cov*tl-init): Remove after first execution
16158 instead of aliasing to @nop. Call top of page macro explicitly
16159 instead of setting trap; call @init first. Set pg@top as top of
16161 (cov*auto-init): Deleted. Set cov*tl-init instead of
16162 cov*auto-init as top of page trap.
16163 (TL, LP): Do a break instead of calling cov*tl-init.
16164 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16165 @FE; in this case also give a warning and always start another
16166 page. No need to set pg@top here.
16167 (cov*tl-init): Rename to cov*first-page-init.
16169 * macros/tmac.s (RP): Do `.pn 0'.
16170 (cov*tl-init): With RP format don't do `.pn 0'.
16172 * macros/tmac.s (pg@cs-top): Set no space mode.
16174 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16175 (cov*ab-init): Alias TL, AU and AI to these.
16177 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16179 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16180 (@EN): Do nothing unless \n[dl] is > 0.
16182 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16184 * pic/object.c (ellipse_object::radius): New function.
16186 * VERSION: Change version to 0.7.
16188 * tbl/table.c (block_entry::do_divert): Declare return type as
16190 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16192 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16194 * troff/column.c: New file.
16195 * troff/Makefile: Corresponding changes.
16197 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16200 * troff/div.c (top_level_diversion::space): If the space causes
16201 the first-page transition and springs a trap, truncate the space
16204 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16206 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16209 * pic/troff.c (troff_output::line_thickness,
16210 troff_output::set_fill): Do a horizontal motion to compensate for
16211 the width of the \D escape sequence.
16213 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16215 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16218 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16221 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16222 Supply empty definition.
16223 (text_entry::simple_print, simple_text_entry::simple_print):
16224 Delete declarations.
16225 (table::add_entry): Represent empty entries by objects of type
16228 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16230 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16232 * tbl/table.c (left_text_entry::add_tab): New function.
16234 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16235 initialize like LP.
16237 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16239 * troff/env.c (environment::start_field): Give an error message if
16240 there is no next tab.
16242 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16244 * troff/env.c (hyphenate): Skip initial elements with zero
16247 * macros/tmac.s (par@init): Keep VS in points rather than units.
16249 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16251 * pic/main.c (main): Implement `-c' option.
16252 * pic/output.h: Declare make_tpic_output().
16253 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16255 (tpic_output): New class.
16256 (tpic_output::tpic_output, tpic_output::set_pen_size,
16257 tpic_output::command, make_tpic_output): New functions.
16259 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16261 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16262 if they're not already defined.
16263 * tbl/table.c (init_output): Don't test \n(.g.
16265 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16266 `d', `r' and `c' conditions even in compatibility mode.
16268 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16270 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16273 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16275 * troff/env.h (environment::prev_line_interrupted): New member.
16276 (environment::get_prev_line_interrupted): New function.
16277 * troff/env.c (environment::newline): Set prev_line_interrupted.
16278 (environment::environment(const environment *),
16279 environment::environment(symbol)): Initialize
16280 prev_line_interrupted.
16281 * troff/input.c (process_input_stack): Don't give special
16282 treatment to space and newline at the beginning of the line if the
16283 previous line was interrupted.
16285 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16287 * eqn/eqn.y: Disallow PRIME by itself.
16288 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16290 (def_table): Remove definition of '. Define prime to be `.
16292 * eqn/eqn.y: Split off part of rule `script' into a new rule
16295 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16297 * macros/tmac.s ({, }): New string aliases.
16299 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16301 * README-0.7: New file.
16303 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16305 * macros/tmac.s: New file.
16306 * man/groff_ms.man: New file.
16307 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16308 * Makefile.bd: Similarily.
16309 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16310 definition of TMAC_S.
16311 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16312 * macros/TODO: New file.
16314 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16316 * troff/env.c (right_justify): New function.
16317 (init_env_requests): Bind this to request "rj".
16318 (center_lines): Set right_justify_lines to 0. If we get a bad
16319 integer, center 1 line.
16320 (environment::environment(symbol), environment::environment(const
16321 environment *)): Initialize right_justify_lines.
16322 (environment::get_right_justify_lines): New function.
16323 (init_env_requests): Bind this to number_register ".rj".
16325 * troff/env.c (environment::choose_breakpoint): Implement
16326 hyphenation_margin and hyphenation_space.
16327 (environment::get_hyphenation_space,
16328 environment::get_hyphenation_margin): New functions.
16329 (init_env_requests): Bind these to .hys and .hym.
16330 (hyphenation_space_request, hyphenation_margin_request): New
16332 (init_env_requests): Bind these to hys and hym.
16333 (environment::environment(symbol), environment::environment(const
16334 environment *)): Initialize hyphenation_margin and
16336 * troff/env.h: Corresponding changes to class environment.
16338 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16340 * troff/div.c (blank_line): Always do a break.
16342 * eqn/box.c (do_text): Turn off escapes while appending text to
16345 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16347 * troff/input.c (while_break_request, while_continue_request): New
16349 (init_input_requests): Bind these to "break" and "continue".
16350 (while_depth, while_break_flag): New variables.
16351 (while_request): Update while_depth. Break out of loop if
16352 while_break_flag is set.
16354 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16356 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16359 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16361 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16363 * stringify: New file.
16364 * Makefile (groff.o): Use stringify.
16366 * xditview/tmac.X: Remove definition of \(rn.
16367 * xditview/libXdvi/DviChar.c: Remove radicalex from
16370 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16372 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16373 (alphabetic_block_entry::alphabetic_block_entry,
16374 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16376 (block_entry::divert): Split off body into ...
16377 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16378 from the line length; also update the span width to dl+2n, and the
16379 alphabetic span width to dl.
16381 * driver/input.c (do_file): While reading argument to D command,
16382 when expanding buffer, multiply szp by sizeof(int) rather than 2
16383 in the argument to memcpy.
16385 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16386 width of alphabetic columns.
16388 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16390 * troff/node.c (lookup_family): Supply second argument to lookup.
16392 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16393 search, return immediately if v is 0.
16395 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16396 (troff_output::start_picture): Set this reg.
16397 (troff_output::end_picture): Remove this reg
16398 * eqn/box.c (box::extra_space): Don't produce `\x's if
16399 EQN_NO_EXTRA_SPACE_REG is defined.
16401 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16402 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16405 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16407 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16410 * troff/div.c (top_level_diversion::top_level_diversion):
16411 Initialize page_number to 0.
16413 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16415 * groff/troff (environment::environment(const environment *)):
16416 Initialize name to e->name, rather than "anonymous".
16418 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16420 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16421 requested_page. Split middle part into ...
16422 (FindPage): New function.
16423 (SetValues): If we don't yet know the last page, and the requested
16424 page is greater than the current page, call FindPage.
16425 Update the font_map_string before doing this.
16427 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16428 Translate \(lh and \(rh into left and right double arrows.
16430 * troff/node.c (class hyphen_inhibitor_node): New class.
16431 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16432 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16433 hyphen_inhibitor_node::type,
16434 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16435 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16436 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16439 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16441 * troff/node.h (dummy_node::get_hyphenation_type,
16442 transparent_dummy_node::get_hyphenation_type): Declare them.
16443 * troff/node.c: (dummy_node::get_hyphenation_type,
16444 transparent_dummy_node::get_hyphenation_type): New functions.
16446 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16448 * xditview/libXdvi/draw.c: If M_PI not defined after including
16449 math.h, then define it.
16451 * xditview/Makefile: Add definition of AR. Pass it to the submake
16453 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16455 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16457 * troff/dictionary.h (object_dictionary::alias): Declare return
16459 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16460 if the old name was defined.
16461 * troff/input.c (alias_macro): Give a warning if the old name was
16463 * troff/reg.c (alias_reg): Likewise.
16465 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16467 * troff/input.c (token::next): Delete implementation of \R.
16469 * macros/Makefile: Strip comments from tmac.e while installing it.
16471 * troff/input.c: New variable `nroff_mode'.
16472 (troff_request, nroff_request): New functions.
16473 (init_input_requests): Bind `troff' and `nroff' to troff_request
16475 (do_if_request): Compute results of t and n conditions from
16478 * text/text.c (split_text): Fix typo in >=.
16480 * eqn/lex.c: Add definition of `==' to def_table.
16482 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16484 * pic/tex.c (tex_output::start_picture): Change the definitions of
16485 \graph and \graphtemp so that they work properly with Plain TeX.
16487 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16488 argument to `ar' is not less than the first.
16490 * pic/pic.y: Allow a comma between elements of the variable list
16491 in the argument to `reset'.
16493 * pic/object.c (arc_object::arc_object): Fix computation of
16496 * eqn/main.c (main): Add exit(0).
16498 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16500 * troff/div.c (begin_page): Test no_space_mode after doing the
16501 break, but still push the page ejector cookie before doing the
16502 break. Also set the next page number after doing the break.
16504 * xditview/xditview.c (NewFile): Don't set the title and icon name
16505 if this is the first file and its name is `-'.
16506 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16507 the X75 and X100 devices.
16508 (main): If a device has the XT_OPTION flag set and there's exactly
16509 one file argument, pass the driver -xrm and -title options to set
16510 the icon name and window title to the name of the file.
16512 * troff/env.c (environment_switch): If there was an argument but
16513 it wasn't a valid number or name, then pop an environment but
16514 don't give an error message on underflow.
16516 * troff/number.c (start_number): Correct spelling in error message.
16518 * troff/input.c (token::delimiter): Don't print an error message
16521 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16522 ParseDrawFunction if dw->display_enable is true.
16524 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16526 * pic/pic.y: Parse text positioning like normal attributes, so as
16527 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16528 positioning attribute.
16530 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16532 * tbl/main.c (process_data): When in state START while reading a
16533 text block, don't change to state MIDDLE if c is a newline.
16535 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16537 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16538 so as to avoid shadowing parameter.
16540 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16542 * tbl/table.c (trim_space): Deleted.
16543 (table::add_entry): Don't call trim_space.
16545 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16547 * VERSION: Change version to 0.6.
16549 * troff/number.c (parse_expr): Make == work.
16551 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16553 * man/grog.man: New file.
16554 * man/Makefile: Add grog.n to MAN1PAGES.
16555 * etc/grog.sh: New file.
16556 * etc/Makefile: Install grog.sh as grog.
16558 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16560 * troff/input.c (token::next): Implement \E.
16562 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16564 * xditview/tmac.X: Change font translations to match tmac.ps.
16566 * troff/input.c (non_empty_name_warning): Don't give a warning if
16567 `\{' terminates the name.
16569 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16571 * ps/devps/symbol.diff: New file.
16572 * ps/devps/FontMakefile: Mention symbol.diff.
16574 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16576 * troff/node.c (font_position): Use get_long_name to read the
16579 * troff/env.c (environment_switch): If we get a number that's < 0
16580 or >= NENVIRONMENTS, treat it like a name.
16581 Change NENVIRONMENTS to 10.
16583 * troff/groff.h: Remove definition of FONTS_MAX.
16584 * troff/node.h (class font_family): Make map a pointer instead of
16585 an array. Add a map_size member. Make it a class. Make nm const
16586 and public. Make invalidate_fontno a friend.
16587 * troff/node.c: Define font_table_size. Make font_info a pointer
16588 rather than an array.
16589 (class troff_output_file): Allocate font_position dynamically. Add
16590 nfont_positions member.
16591 (troff_output_file::set_font): Grow font_position if necessary.
16592 (troff_output_file::~troff_output_file): Delete font_position.
16593 (troff_output_file::troff_output_file): Allocate font_position.
16594 (grow_font_table): New function.
16595 (troff_output_file::really_begin_page,
16596 troff_output_file:really_copy_page): Use nfont_positions rather
16598 (mount_font_no_translate, mount_style): Call grow_font_table if
16600 (font_family::font_family): Allocate map.
16601 (font_family::make_definite): Grow map if necessary. Use
16602 font_table_size instead of FONTS_MAX.
16603 (font_family::~font_family): New function.
16604 (invalidate_fontno): Use font_family::map_size.
16605 (get_fontno, env_space_width, env_half_narrow_space_width,
16606 env_narrow_space_width, symbol_fotno, is_good_fontno,
16607 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16609 (next_available_font_position): Never return 0.
16611 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16613 * ps/tmac.ps: Add font translations for compatibility with dpost.
16615 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16617 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16618 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16619 Move definitions baseline_sep, shift_down, column_sep,
16620 matrix_side_sep into...
16621 * eqn/box.c: Add them to param_table.
16622 * eqn/pbox.h: Add declarations to pbox.h.
16624 * troff/input.c (set_string): Cast value to unsigned char *.
16626 * troff/token.h (process_input_stack): Declare it static before
16627 declaring it a friend.
16629 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16631 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16633 * dvi/devdvi/EX: Regenerate.
16635 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16638 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16640 * eqn/lex.c: In defaults_table, make definition of `dot' call
16641 `dot_def'. Don't explicitly make it roman. Similarily for other
16644 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16646 (for_input::get, for_input::peek): Use this.
16647 (do_for): Add by_is_multiplicative argument.
16648 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16649 Change semantic value of optional_by to be a double plus a flag
16650 saying whethet the by clause is multiplicative.
16652 * eqn/lex.c (get_delimited_text): Remember location of start of
16653 definition. Improve error handling when EOF is encountered.
16655 * lib/font.h: Rename handle_x_command to
16656 handle_unknown_font_command.
16657 * lib/font.c (font::load): Call handle_unknown_font_command for
16658 any unknown command in the font description file. Don't call
16659 handle_x_command. Include the name of the command in the argv.
16660 Improve message for unknown command after kernpairs or charset
16662 * ps/ps.c (ps_font::handle_x_command): Rename to
16663 handle_unknown_font_command. Remove message about `x download'
16664 command. Give error message for wrong number of arguments.
16665 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16666 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16667 handle_unknown_font_command. Give an error message for wrong
16668 number of arguments. Rename design_size to designsize.
16669 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16670 checksum', `designsize' instead of `design_size'.
16672 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16674 * eqn/*.[chy]: Change underaccent to uaccent.
16676 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
16677 give it the same precedence as ACCENT.
16678 * eqn/other.c (make_underaccent_box): New function.
16679 * eqn/box.h: Declare it.
16680 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16683 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
16685 * pic/pic.y (reset_all): New function. Called in rule for RESET.
16686 (parse_init): Call reset_all.
16687 (define_variable): When defining scale reset only those
16688 pre-defined variables that are scaled.
16689 (defaults_table): Add `scale' as non-scaled value.
16691 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16692 together with the text; allow any number of positioning words;
16693 allow center as a positioning word.
16695 * pic/object.c (output::compute_scale): Get picture maximum height
16696 and width from variables called maxpswid and maxpsht.
16697 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16699 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
16701 * pic/object.c (object_spec::make_text): Multiply textht by number
16704 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16706 (do_sprintf): New function.
16707 (pic.gperf): Add sprintf token.
16708 (text, sprintf): New rules.
16710 * pic/pic.y: `rand()' with no arguments returns a random number
16711 in the range [0,1).
16713 * pic/pic.y: Allow a bare expression to be an attribute: change
16714 precedences to support this. Change optional_ordinal rule to
16715 optional_ordinal_last to avoid reduce/reduce conflict.
16716 * pic/object.c (object_spec::object_spec): Initialize direction.
16718 * pic/pic.y: Implement ^ operator meaning exponentiation.
16720 * troff/node.h: Add default argument to mount_font.
16721 * troff/node.c (font_position): Read an optional third argument
16722 giving the external_name.
16723 (mount_font): Add optional argument giving the external_name.
16724 (mount_font_not_translate): Have additional argument giving
16725 external name. Use this name to load the font. Pass both names
16726 to font_info::font_info.
16727 (font_info::font_info): Have additional argument giving
16729 (class tfont): New member external_name.
16730 (font_info::get_tfont): Use external name to construct tfont_spec.
16732 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
16734 * eqn/lex.c (init_table): Add argument giving device. Define
16735 name of device to be "1".
16736 (do_ifdef): Counts as true if the argument has been defined with
16738 * eqn/main.c (main): Call init_table with device argument. Make
16739 device local to main.
16740 * eqn/eqn.h: Change declaration of init_table. Remove declaration
16743 * pic/lex.c (get_delimited): Allow text to be delimited by
16744 matching {}s. Don't recognize ending delimiter within a string.
16746 * troff/input.c (get_delim_name): New function.
16747 (token::next): Implement \C.
16749 * lib/font.c (font::load): Grok ---. Add an alias for each
16750 character based on its code.
16751 (font::get_code_width): Deleted.
16752 * lib/font.h (class font): Declare font::number_to_index().
16753 Remove declaration of font::get_code_width.
16754 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16755 to indices of named characters.
16756 (font::number_to_index): New function.
16757 * troff/input.c (font::number_to_index): New function.
16758 (get_charinfo_by_number, charinfo::get_number,
16759 charinfo::set_number): New functions.
16760 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16761 (token::process, token::description, token::get_char,
16762 token::add_to_node_list, token::operator==): Handle
16763 TOKEN_NUMBERED_CHAR.
16764 * troff/charinfo.h: Declare get_charinfo_by_number,
16765 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
16767 (charinfo::numbered): New function.
16768 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16769 * troff/env.h (class environment): Remove declaration of ...
16770 * troff/env.c (environment::make_numbered_char_node): Deleted.
16771 * troff/node.c (make_numbered_node): Deleted.
16772 (class numbered_glyph_node): Remove.
16773 (troff_output_file::put_char_width, troff_output_file::put_char):
16774 Handle numbered chars.
16775 (troff_output_file::numbered_char): Removed.
16776 (tfont::get_code_width): Removed.
16777 (make_glyph_node): Don't search special fonts for numbered
16779 * troff/node.h: Remove declaration of make_numbered_node.
16780 * driver/input.c (do_file): Handle N command.
16781 * driver/printer.h: Add declaration of ...
16782 * driver/printer.c (printer::set_numbered_char): New function.
16783 * dvi/tfmtodit.c (main): Generate unnamed entries.
16784 * ps/devps/afmtodit: Likewise.
16785 * xditview/xtotroff.c (MapFont): Likewise.
16786 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16788 * tbl/main.c (process_format): If multiple widths are specified
16789 for a column but all the widths are the same, don't give an error
16792 * tbl/table.c (table::do_row): If the current row is all lines and
16793 the stuff doesn't contains a line, mark the top of the row after
16794 printing stuff before the row. If the current row is not all
16795 lines and the stuff doesn't contain a line, don't unnecessarily
16796 mark the top of the row before printing the stuff.
16798 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
16800 * troff/groff.h: Remove MAX_PATH.
16801 * troff/input.c (open_file): Dynamically allocate space for the
16803 (open_mac_file, process_macro_file): Corresponding changes.
16805 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
16807 * troff/node.h (class output_file): Make copy_file pure. Add
16808 vspace method ifdef COLUMN. Add is_printing method.
16809 * troff/node.c: Add class printing_reg. Add class
16810 real_output_file. Derive other output_file classes from
16811 real_output_file; in these classes rename begin_page to
16812 really_begin_page, print_line to really_print_line, copy_file to
16813 really_copy_file, transparent_char to really_transparent_char.
16814 Move output_file::flush to real_output_file. Add printing member
16815 to class output_file.
16816 * troff/div.h: Remove printing member from top_level_diversion.
16817 Add vspace member function to class diversion ifdef COLUMN. Add
16818 some declarations ifdef COLUMN.
16819 * troff/div.c (top_level_diversion::copy_file,
16820 top_level_diversion::transparent_output,
16821 top_level_diversion::output): Don't test printing member before
16823 * troff/input.c: Handle initial variable_space_request ifdef
16825 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16826 but comment it out.
16828 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
16830 * troff/div.c (diversion::need): Make any space forced. If we
16831 sprung a trap, set truncated_space to minus the distance to the
16832 trap and set needed_space to the amount that was needed.
16833 (top_level_diversion::space): A forced space turns no_space_mode
16835 (class constant_vunits_reg): New class.
16836 (init_div_requests): Implement number registers .trunc and .ne
16837 using constant_vunits_reg.
16838 (class truncated_space_reg): Deleted.
16840 * troff/div.h: Don't have a no_space_mode member in diversion.
16841 Instead have it in top_level_diversion.
16842 * troff/div.c (diversion::diversion): Don't initialize
16844 (top_level_diversion::top_level_diversion): Initialize
16846 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16847 (macro_diversion::output): Don't clear no_space_mode.
16849 * troff/input.c (diverted_space_node::reread): Don't call
16850 environment::do_break. In fill mode, act like a blank line.
16851 (diverted_copy_file_node::reread): Don't call
16852 environment::do_break.
16854 * troff/div.c (blank_line): New function.
16855 * troff/div.h: Declare it.
16856 * troff/input.c (process_input_stack): Call it.
16858 * troff/div.c (truncated_space_reg::get_string): New function.
16859 (init_div_requests): Bind to .trunc.
16860 (space_request, top_level_diversion::space,
16861 top_level_diversion::output, macro_diversion::space,
16862 macro_diversion::output): Update truncated_space.
16863 (macro_diversion::output): Redo calculations when trap sprung.
16864 (macro_diversion::output, macro_diversion::space): No need for
16867 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16868 after truncating post line spacing.
16870 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
16872 * ps/devps/prologue (MF, SF): Make them work even if setfont is
16873 defined as a procedure rather than as an operator.
16875 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
16877 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16879 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
16881 * troff/div.c (top_level_diversion::output): Merge
16882 output_file::print_line and output_file::end_of_line member
16884 * troff/div.h (class output_file):
16885 * troff/node.c (troff_output_file::print_line,
16886 troff_output_file::end_of_line, output_file::end_of_line,
16887 ascii_output_file::print_line, suppress_output_file::print_line):
16888 Corresponding changes.
16890 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
16892 * troff/input.c (token::next): Don't give a warning for `\.'.
16894 * troff/env.c (environment::get_center_lines): New function.
16895 (init_env_requests): Bind number register .ce to it.
16896 * troff/env.h: Declare it.
16897 * tbl/table.c (table::init_output): Define reset macro to restore
16898 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
16900 (table::print): If center option not given, then imply center
16901 option if SAVED_CENTER_REG > 0.
16903 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
16905 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16906 Troff.ps from DOWNLOAD.
16908 * troff/Makefile: Change comment in DEFINES to avoid confusing
16911 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16912 code. Don't try to catch errors with stopped.
16913 (check_line_lengths): New function.
16914 * ps/devps/prologue (EXEC): Deleted.
16915 (EBEGIN, EEND): New procedures.
16917 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
16919 * troff/input.c: Include request.h before node.h.
16920 * troff/node.c: Likewise.
16921 * troff/env.c: Likewise.
16922 * troff/div.c: Likewise.
16923 * troff/node.h (class special_node): Store argument as a macro
16924 rather than a char *.
16925 * troff/node.c (special_node::special_node, special_node::copy):
16927 (special_node::~special_node): Deleted.
16928 (special_node::tprint): Deleted.
16929 (special_node::tprint_start, special_node::tprint_end,
16930 special_node::tprint_char): New functions.
16931 (troff_output_file::special): Deleted.
16932 (troff_output_file::start_special, troff_output_file::end_special,
16933 troff_output_file::special_char): New functions.
16934 * troff/input.c (special_node::tprint): New function.
16935 (do_special): Use macro not char *.
16936 (do_transparent_macro): Deleted.
16937 (token::next): Don't call do_transparent_macro.
16939 * troff/input.c (token::next): Add 'Y' case.
16940 (do_transparent_macro): New function.
16941 * troff/node.c (troff_output_file::special): Handle newlines with
16942 argument using new continuation convention.
16943 * driver/input.c (get_string): Cope with continuation convention.
16944 (do_file): Don't call skip_line after calling get_string(1).
16945 * ps/ps.c (ps_printer::special, ps_printer::do_import,
16946 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16948 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16951 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
16953 * troff/input.c (asciify): By default, illegal input characters
16954 should return empty string.
16956 * troff/input.c (copy_file): Handle first page transition like title.
16957 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16959 * troff/input.c (token::next): Improve error message for EOF after
16961 (input_char_description): New function.
16962 (get_char_for_escape_name): Use input_char_description.
16963 (token::next): Warn about unrecognized escape sequences.
16964 (warning_table): Add WARN_ESCAPE.
16965 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16968 * troff/token.h: Remove declaration of process_input_stack.
16970 * troff/input.c: Remove declaration of init_hyphen_requests.
16971 * troff/request.h: Correct spelling in declaration of same.
16973 * troff/input.c (token::next): Check whether escape_char is 0.
16975 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
16977 * groff.c (main, usage, help): Implement -P and -L options.
16978 * groff.sh: Likewise.
16980 * troff/input.c (token::next): Use some gotos to avoid code
16983 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16984 Avoid calling symbol::symbol if name empty.
16986 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
16988 * troff/input.c (init_input_requests): Make \n(.x return the major
16989 version number and \n(.y return the minor version number.
16990 * troff/Makefile: Construct file majorminor.c defining
16991 major_version and minor_version automatically from ../VERSION.
16993 * troff/node.c (class glyph_node): Make operator new and operator
16995 (class ligature_node): Similarily.
16997 * troff/input.c (operator==(const macro &, const macro &)): New
16999 (non_interpreted_node::same): Use this.
17000 (string_iterator::string_iterator): Make macro& argument const.
17002 * troff/input.c (input_iterator::get): New function. Don't make
17003 asciify_macro or class non_interpreted_node friends of class
17005 (non_interpreted_node::interpret): Use input_iterator::get.
17006 (asciify_macro): Likewise.
17008 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17009 ~non_interpreted_node): Deleted.
17010 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17013 * troff/symbol.h: Make all symbol member functions const.
17015 * lib/strtol.c: New file.
17016 * lib/Makefile: Add strtol.c.
17017 * Makefile: Define STRTOL as strtol.o to include strtol in
17020 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17022 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17024 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17026 * troff/input.c (do_special): Use input_level.
17028 * troff/token.h (TOKEN_BACKSPACE): New token.
17029 (token::backspace): New function.
17030 * troff/input.c (token::description, token::next, token::process):
17031 Grok TOKEN_BACKSPACE.
17032 (do_special): Turn TOKEN_BACKSPACE back into \b.
17034 * troff/token.h (token::leader): New function.
17035 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17037 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17039 * troff/input.c (do_special): Use token::description in error
17042 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17044 * troff/input.c (decode_args): Combine quoted and
17045 quote_input_level variables. Make it a for (;;) loop.
17047 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17049 * troff/input.c (read_long_escape_name): The test for whether to
17050 expand buffer was off by 1.
17051 (read_string): Similarily.
17053 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17055 * troff/input.c: Use `const int' rather than `static const int'.
17057 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17058 (macro_diversion::copy_file): New function.
17059 * troff/node.h: New class diverted_copy_file_node.
17060 * troff/node.c: Implement it.
17061 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17062 first page transition by pushing a diverted_copy_file_node.
17063 * troff/input.c (token::next, process_input_stack): Don't handle
17066 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17068 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17069 whether space widths need adjusting.
17071 * troff/charinfo.h: Generalize translated_to_space to
17072 special_translation so as to allow translation to \&.
17073 * troff/input.c (translate): Allow translation to \&.
17074 (charinfo::*): Corresponding changes.
17075 * troff/node.c (make_node, node::add_char): Corresponding changes.
17076 * troff/node.h (dummy_node::dummy_node): Allow optional first
17079 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17080 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17082 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17083 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17084 (token::process): Grok that.
17085 * troff/input.c (copy_file): Handle first page transition like
17086 title by pushing a COPY_FILE_REQUEST cookie.
17087 (token::next, process_input_stack): Grok that.
17088 * troff/node.h (output_file::copy_file): Add x and y arguments.
17090 * troff/div.c (top_level_diversion::copy_file): Supply them.
17091 * troff/node.c (troff_output_file::copy_file): Add x and y
17092 arguments; moveto specified position. Invalidate font_position
17093 array after copying file.
17094 (output_file::copy_file): New function.
17095 (suppressed_output_file::copy_file, ascii_output::copy_file):
17097 * troff/input.c (transparent_file): New function.
17098 (init_input_requests): Bind to "trf".
17099 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17100 (process_input_stack): Likewise.
17102 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17104 * troff/node.c (init_node_requests): New number registers .kern
17105 pointing to global_kern_mode, and .lg pointing to
17106 global_ligature_mode.
17108 * troff/node.c (ligature): Don't change it if we get a bad
17111 * troff/input.c (do_define_string): Don't strip tabs.
17113 * troff/input.c (asciify_macro): Make the string_iterator auto.
17115 * troff/node.c (init_font_requests): Rename to...
17116 (init_node_requests):
17117 * troff/node.h: Change declaration.
17118 * troff/input.c (main): Change call.
17120 * troff/input.c (node::reread, diverted_space_node::reread): New
17122 (process_input_stack): Call reread rather than
17123 get_diverted_space_node.
17124 * troff/node.c (node::get_diverted_space_node,
17125 diverted_space_node::get_diverted_space_node): Removed.
17126 * troff/node.h: Declare reread methods instead of
17127 get_diverted_space_node methods. Make `n' member private.
17128 * troff/input.c: (token::diverted_space): Removed.
17129 * troff/token.h: Removed declaration.
17132 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17134 * eqn/script.c (script_box::compute_metrics): Don't let
17135 SUP_RAISE_FORMAT become negative.
17137 * tbl/table.c (table::do_row): Entries that don't end in the
17138 this row shouldn't make the row non-blank.
17140 * tbl/table.c (table::make_columns_equal): Only set the width of
17141 columns which are marked as equal.
17143 * tbl/main.c (process_data): Before issuing excess data error,
17144 if last character was a newline unget it; then get it again after
17145 the error. Also include the contents of the entry in the message.
17147 * groff.c: New file.
17148 * Makefile: Build groff from groff.c. Make it possible to use
17149 either groff.sh or groff.c as groff.
17150 * Makefile.bd: Similarily.
17152 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17154 * groff.sh: Don't delay expansion of $@ in assignment to files.
17155 Remove occurrences of \".
17157 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17159 * all Makefiles: Simplify and rearrange.
17161 * Makefile: Handle fmod like malloc.
17162 * lib/Makefile: Similarily.
17163 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17165 * Makefile: Rename OPTIMISE to OPTIMIZE.
17167 * groff.sh: Remove assignment to PATH.
17168 * Makefile: Remove SHPATH variable.
17169 * Makefile.bd: Similarily.
17171 * groff.sh: Add -V option to print the pipeline instead of
17174 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17176 * lib/font.c: Split off file searching into ...
17177 * lib/fontfile.c: New file.
17179 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17181 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17183 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17184 Also change misleading comment.
17185 (table::do_vspan): Change similarily misleading comment.
17186 * tbl/main.c (process_data): A format row with an explicit `s'
17187 uses up a data line, even if all the other columns are `_' or `='.
17189 * troff/input.c (token::description): Fix description of
17190 TOKEN_DUMMY and TOKEN_EMPTY.
17192 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17194 * groff.sh: Fix description of -Z in help message.
17196 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17198 * pic/object.c (object_spec::make_object): Allow negative and zero
17200 * pic/pic.y: Give linethick default value of -1.0.
17201 * pic/troff.c (troff_output::troff_output): Initialize
17202 last_line_thickness to BAD_THICKNESS.
17203 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17204 (troff_output::line_thickness): Canonicalize negative thicknesses
17205 to RELATIVE_THICKNESS.
17206 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17207 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17209 (tex_output::start_picture): Set pen_size to -2.0.
17211 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17212 0, then use 0 linewidth.
17213 (ps_printer::ps_printer): Initialize line_thickness to -1.
17215 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17217 * ps/devps/symbolchars: Remove `or'.
17218 * ps/tmac.ps: Implement \(or with .char.
17220 * ps/devps/symbolchars: Move most characters into textmap.
17221 * ps/devps/textmap: Add names for troff bracket characters. Remove
17224 * ps/devps/TSymbol.ps: Removed.
17225 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17226 * ps/tmac.ps: Do with .char what TSymbol did.
17227 * ps/devps/download: Remove TSymbol.
17229 * ps/devps/T: Removed.
17230 * ps/devps/Troff.ps: Removed.
17231 * ps/devps/Troff.afm: Removed.
17232 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17233 * ps/devps/download: Remove Troff.
17234 * ps/devps/FontMakefile: Remove T target.
17235 * ps/devps/DESC-A4: Remove T from font list.
17236 * ps/devps/DESC-letter: Likewise.
17238 * troff/input.c (macro_to_node): Rename to ...
17239 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17240 character's definition while processing it.
17241 * troff/node.c (node::add_char, make_node): Change calls to
17242 macro_to_node accordingly.
17244 * troff/input.c (token::next): Translate \_ to \(ul.
17246 * tty/devascii/R.proto: Add `|'.
17247 * tty/devlatin1/R.proto: Likewise.
17249 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17251 * man: Put the version number in all the man pages.
17253 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17255 * Makefile.bd: New file.
17256 * README.bd: New file.
17258 * VERSION: New file.
17259 * lib/version.c: Removed.
17260 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17263 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17264 environment variable.
17266 * all Makefiles: Split install target into install.bin for
17267 binaries, and install.nobin for everything else.
17268 * Makefile: Add bindist target.
17270 * man/afmtodit.man: New file.
17271 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17272 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17274 * ps/Makefile: Pass BINDIR to make install in devps.
17276 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17277 the space character.
17279 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17281 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17283 * ps/ps.c: Redo font downloading.
17284 * ps/devps/download: New file.
17285 * ps/devps/Makefile: Add download to DEVICEFILES.
17286 * ps/devps/afmtodit: Remove -d option.
17287 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17288 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17289 * ps/devps/zapfdr.ps: Likewise.
17290 * ps/devps/TSymbol.ps: Likewise.
17292 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17294 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17296 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17298 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17299 then strip the first line if it starts with %.
17300 * Makefile: Add a comment about this.
17302 * man/tfmtodit.man: New file.
17303 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17304 * dvi/Makefile: Install tfmtodit in BINDIR.
17306 * dvi/tfmtodit.c (usage): Mention -v option.
17308 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17310 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17311 * troff/node.c (troff_output_file::transparent_char): Don't call
17314 * eqn: Add check_tabs method to most box classes.
17315 * eqn/box.c (box::top_level): Call check_tabs.
17317 * eqn/script.c (script_box::output): Use \Z.
17318 * eqn/limit.c (limit_box::output): Use \Z.
17320 * eqn/box.c (box::top_level): Use itoa.
17322 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17324 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17325 * dvi/devdvi/Makefile: Don't make links to CW.
17327 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17329 * xditview/tmac.X: Likewise.
17331 * troff/node.c: Add font translation feature.
17332 (get_font_translation): New function.
17333 (symbol_fontno): Translate the font name.
17334 (mount_font_no_translate): Rename to mount_font to this.
17335 (mount_font): New function.
17336 (font_family::make_definite): Call mount_font_no_translate instead
17338 (mount_style): Translate the font name.
17339 (font_translate): New function.
17340 (init_font_requests): Bind "ftr" to font_translate.
17342 * ps/devps/prologue (SN): New procedure that rounds a position to
17343 the nearest (pixel + (.25,.25)).
17344 (DL): Use SN to round endpoints.
17346 * lib/version.c: Changed version to 0.5.
17348 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17350 * Makefile: Move definition of PAGE to the very beginning, so that
17351 people are less likely to miss it.
17353 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17355 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17357 * troff/env.c (environment::choose_breakpoint): Make `can't find
17358 breakpoint' error a warning of type WARN_BREAK. Change message to
17359 `can't break line'.
17360 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17362 * troff/input.c: Add WARN_BREAK to warning_table. Include
17363 WARN_BREAK in DEFAULT_WARNING_MASK.
17365 * tty/tmac.tty: Add definition of \(+-.
17367 * groff.sh: Remove `--' option to set command.
17369 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17371 * ps/devps/eqnchar: Better definition of cdot using md.
17372 * dvi/devdvi/eqnchar: Likewise.
17373 * xditview/devX100/eqnchar: Likewise.
17374 * xditview/devX75/eqnchar: Likewise.
17375 * eqn/lex.c: Add definition of cdot.
17377 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17379 * troff/input.c (get_optional_char): New function.
17380 * troff/input.c (set_page_character): Use get_optional_char(),
17381 rather than has_arg() and tok.get_char(1).
17382 * troff/env.c (tab_character, leader_character, hyphen_char,
17383 field_characters): Likewise.
17384 (margin_character): Likewise. Also always delete the
17385 margin_character_node.
17387 * troff/input.c (token::get_char): Use token::description.
17389 * troff/input.c (has_arg): Don't skip over tab and \}.
17390 * troff/number.c (start_number): Give a warning if the number
17391 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17393 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17395 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17397 (get_name, get_long_name): Use these. Rename `warn' argument to
17400 * troff/node.c (get_fontno): Test that the symbol is not null.
17402 * troff/input.c (token::description): New function.
17403 * troff/number.c (parse_term): Use token::description in `numeric
17404 expression expected' message.
17405 * troff/groff.h: Add WARN_MISSING.
17406 * troff/number.c (start_number): New function.
17407 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17408 get_incr_number): Use start_number().
17409 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17411 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17412 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17414 * troff/input.c (token::get_char): Use WARN_MISSING.
17415 * troff/input.c (token::delimiter): Use token::description.
17416 * troff/env.c (environment_switch): Back out Aug 3 change.
17417 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17419 * troff/token.h (token::tab): New function.
17420 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17421 * troff/reg.c (alter_format): Likewise.
17422 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17424 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17426 * troff (most files): Redo warnings. Divide warnings into various
17427 categories; warning() has an additional first argument indicating
17428 the category it falls into.
17429 * troff/input.c (main): -w now takes an argument. New option -W.
17430 (enable_warning, disable_warning): New functions.
17432 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17433 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17435 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17437 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17438 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17439 * xditview/devX75/eqnchar: Likewise.
17440 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17442 * eqn/other.c: When bar or over applies to a single character
17443 don't produce an overline_box or an underline_box. Instead produce
17444 an accent_box or an underaccent_box, with the accent a line
17445 whose width is accent_width. New classes underaccent_box,
17446 overline_char_box and underline_char_box.
17447 * eqn/box.h: Move overline_box, underline_box, accent_box class
17448 declarations into eqn/other.c. Add declarations of
17449 make_underline_box, make_overline_box, make_accent_box.
17450 * eqn/eqn.y: Call make_overline_box, make_underline_box
17451 make_accent_box instead of constructors.
17452 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17454 * eqn/other.c: Add accent_box::~accent_box.
17455 * eqn/box.h: Declare it.
17457 * groff.sh: With -Tps, use eqn -D.
17459 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17461 (underline_box::output): Similarily.
17462 (accent_box::output): Use \Z.
17464 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17467 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17469 * troff/div.c (top_level_diversion::transparent_output(unsigned
17470 char)): Use asciify.
17471 * troff/input.c (asciify): Don't make it static.
17472 * troff/token.h (asciify): Declare it.
17474 * troff/input.c (get_name, get_long_name, token::get_char,
17475 token::delimiter): Add an extra default argument which says
17476 whether a warning should be printed.
17477 * troff: Pass a non-zero argument to one of these rather than
17478 printing a warning directly.
17480 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17482 * troff: Consistently use symbol::is_null.
17484 * troff/dictionary.h: Move some inline functions into
17487 * troff/request.h: Move inline functions into input.c.
17488 (request_or_macro::invoke): Make it pure.
17490 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17491 * troff/input.c (init_input_requests): Use class constant_int_reg.
17492 (class compatible_reg): Deleted.
17493 * troff/div.c (init_div_requests): Use class constant_int_reg.
17494 (class last_post_line_extra_space_reg): Deleted.
17496 * troff/env.c (tab_character): Don't change the tab character if
17497 we get an invalid argument.
17498 (hyphen_char): Similarily.
17500 * troff/reg.c (alter_format): Check that nm is not null.
17502 * Makefile, groff.sh: Make it possible to customize the commands
17503 used for printing PostScript and dvi files. Also make it possible
17504 to customize the path used by groff.sh.
17506 * eqn/eqn.y: Make `left' right associative.
17508 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17510 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17513 * pic/pic.h: Removed definition of INT_MAX.
17515 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17518 * troff/input.c (token::next): Handle \R like \n.
17520 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17522 * ps/tmac.pc (PSPIC): Simplify.
17524 * troff/env.c (tab_stops::to_string):
17525 * pic/pic.y (object_type_name):
17526 * pic/troff.c (simple_output::line):
17527 * pic/tex.c (tex_output::spline):
17528 * pic/object.c (object_spec::make_object):
17529 * tbl/main.c (process_data): Add cases to switch statements to
17530 avoid cfront warnings. (Some of these are spurious, since the
17531 switch already has a default case.)
17533 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17534 `ps-'. Don't test systat; instead check number of arguments to
17537 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17539 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17541 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17542 Unlink the file as soon as we have opened it, so that we don't
17543 have to bother with signal handlers.
17544 (handler): Deleted.
17545 (fatal_error_exit): Deleted.
17546 (main): Don't call signal.
17548 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17550 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17552 * pic/pic.y: If there is a label, or an nth construction before
17553 the first `.' in the argument to `with', ignore it and generate a
17555 * pic/lex.c (lex_warning): New function.
17557 * tbl/table.c (table::init_output): In section keep and release
17558 macro, use 0 indent when diverting and the correct indent when
17561 * troff/input.c (interpolate_number_format): Do not interpolate
17562 anything if the number register is not defined.
17564 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17566 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17568 * ps/devps/prologue (PICTURE): Set components of graphics state to
17569 their default values.
17571 * ps/devps/text.enc: Add trademark
17572 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17573 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17574 * ps/devps/symbolchars: Add names for summation and product.
17576 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17577 suchthat. Add pp. Add upper-case letters.
17579 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17580 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17583 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17584 rA (right angle bracket) to ra. Introduce names for double-headed
17585 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17586 * ps/devps/textmap: Likewise for ps device.
17587 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17588 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17589 * tty/devascii/R.proto: Likewise.
17590 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17592 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17594 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17596 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17599 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17601 * troff/div.c (when_request): Use symbol::is_null rather than
17602 has_arg to determine whether we have an argument.
17603 (change_trap): Remove the trap if we get an invalid number. Give
17604 an error if we don't get at least the macro name.
17605 (diversion_trap): Remove trap if we get an invalid name or number.
17607 * troff/env.c (environment_switch): Pop if we get an invalid
17608 symbol or numeric expression.
17610 * troff/input.c (do_define_macro): If EOF is encoutered while
17611 defining the macro, do tok.next() before returning.
17613 * troff/token.h (has_arg): Move definition from here, to ...
17614 * troff/input.c (has_arg): ... here
17616 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17617 * troff/input.c (shift): Likewise.
17619 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17622 * pic/troff.c (troff_output::start_picture): Comment out calls to
17625 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17626 interpret_lf_args succeeds.
17628 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17629 \\. This avoids problems with \$N.
17631 * groff.sh: Pass -C to preprocessors.
17633 * lib/lf.c (interpret_lf_args): Be more flexible.
17635 * tbl/main.c (main): Add -C option.
17636 (table_input::get): Do not recognize TE if followed by character
17637 other than a space or newline unless -C option given.
17638 (process_input_file): Likewise for lf, TS.
17639 (process_data): Likewise for lf in text blocks.
17641 * eqn/main.c (main): Add -C option.
17642 (do_file): Don't recognize EQ, EN or lf if followed by character
17643 other than space or newline unless -C option given.
17644 * eqn/lex.c (file_input::read_line): Similarily.
17645 * eqn/eqn.h: Declare compatible_flag.
17647 * etc/soelim.c (main): Add -C option.
17648 (interpret_lf_args): Use version in libgroff.
17651 * pic/main.c (main): Add -C option, which sets compatible_flag.
17652 (top_input::get), (top_input::peek): If -C option not given,
17653 do not recognize .PS/.PE/.PF/.lf if followed by a character
17654 other than space or newline.
17655 * pic/lex.c (file_input::read_line): Similarily.
17656 * pic/pic.h: Add declaration of compatible_flag.
17658 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17660 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17662 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17663 derived from node. New class space_char_hmotion_node.
17664 * troff/input.c (asciify_macro): New function.
17665 * troff/input.c (init_input_requests): New request `asciify' bound
17667 * macros/mm.diff: New file.
17668 * Makefile: In install.mm target use `patch' to apply
17671 * troff/input.c (macro::print_size): Just print the size in bytes.
17673 * troff/div.c (return_request): Correct the argument
17676 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
17678 * troff/node.h (class composite_node): Add sz member.
17679 * troff/node.c (composite_node::size): Return sz.
17680 * troff/input.c (macro_to_node): Use the initial size in the
17681 environment as the size of the composite_node.
17683 * troff/node.c (node::zero_width_tprint): Provide a reasonable
17686 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
17688 * troff/div.c (change_trap): If we get a bad number expression,
17691 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
17693 * lib/matherr.c (matherr): Define this only if math.h defines
17696 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
17698 * troff/div.c (macro_diversion::distance_to_next_trap): If there
17699 no diversion trap return vunits(INT_MAX - vresolution).
17701 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
17703 * troff/input.c (do_zero_width): New implementation that doesn't
17704 use a temporary environment. Use instead:
17705 (token::add_to_node_list): New function.
17706 * troff/env.c (environment::get_prev_char_height),
17707 (environment::get_prev_char_height),
17708 (environment::get_prev_char_skew): New functions.
17709 (environment::get_prev_char): New function.
17710 (environment::get_prev_char_width): Change to use get_prev_char.
17711 (init_env_request): Implement new registers .cht, .cdp, .csk.
17712 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17713 \Z being processed in a separate environment.
17715 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
17717 * tbl/table.c: Removed TABLE_BOTTOM_REG.
17719 * tbl/table.c (table::init_output): In the section release macro,
17720 give a warning message if the section won't fit on one page.
17722 * tbl/table.c (table::do_top): Emit table keep only if table is
17724 (table::do_bottom): Likewise for table release.
17725 (table::table), (table::add_vertical_rule): Remove reference to
17727 * tbl/table.h: Remove keep member.
17729 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17730 SECTION_RELEASE_MACRO, if there's not enough space before the next
17731 trap to output the diversion, call T# ourselves, set
17732 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17733 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
17734 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
17735 vertical position and return to it before turning traps on again.
17737 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
17739 * troff/node.c, troff/node.h: In classes derived from node,
17740 replace prev_char_width method by last_char_node method.
17741 * troff/env.c (environment::get_prev_char_width): Use
17742 node::last_char_node rather than node::get_prev_char_width.
17744 * Makefile: Added comment about -fno-inline on 68030-based
17747 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17748 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17749 expressions using sizeof to int.
17750 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17752 * macros/tmac.e (TS): Don't move @f back past the current
17755 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
17757 * ps/ps.c (main): Buffer stderr.
17758 * dvi/dvi.c (main): Likewise.
17759 * tty/tty.c (main): Likewise.
17761 * ps/ps.c (ps_printer::do_import): Improve error handling.
17763 * troff/input.c (abort_request): Use asciify.
17765 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17766 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17767 type of first argument int rather than char. This works around a
17768 bug on the 68030 based Apollo using g++ 1.37.1.
17770 * tbl/table.h (class table): Add `keep' member.
17771 * tbl/table.c (table::table): Initialize `keep'.
17772 (table::add_vertical_rule): Set `keep' to 1.
17773 (table::do_top): Only emit table keep macro is `keep' is non-zero.
17774 (table::do_bottom): Likewise for table release macro.
17775 (table::do_row): Emit section keep macro even if the row is 0.
17777 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
17779 * macros/tmac.e (@C): Preserve the font family across the change
17782 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
17784 * lib/font.c: Initialize font::hor and font::vert to 1.
17785 (font::load_desc): Check the values of font::hor and font::vert.
17787 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17788 be included in a C compilation.
17789 (iftoa): Use INT_DIGITS. Include lib.h.
17791 (as_string): Likewise.
17792 * tbl/table.c: Removed definition of INT_DIGITS.
17793 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17794 * troff/input.c (input_input_requests): Likewise.
17795 * ps/ps.c (make_encoding_name): Likewise.
17796 (ps_printer::set_style): Likewise.
17797 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17799 * tty/devascii/R.proto: Map fm onto '.
17800 * tty/devlatin1/R.proto: Likewise.
17802 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
17804 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17805 argument to \w is at a different input level.
17807 * tbl/table.c (table::init_output): Define a new macro
17808 REPEATED_VPT_MACRO, like vpt but if in a diversion also
17809 transparently outputs itself.
17810 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17812 (table::do_row): Likewise.
17814 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17815 TRANSPARENT_STRING_NAME.
17817 * tbl/table.c (table::init_output): In the table release macro
17818 print an error message and don't produce any output if after
17819 issuing the need request the table still will not fit. Also
17820 remove the diversion after bringing it back.
17822 * tbl/table.c (table::init_output): Define a new macro
17823 REPEATED_MARK_MACRO, like mk but if in a diversion also
17824 transparently outputs itself.
17825 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17826 is necessary because .TH might not call .T#.
17827 (table::do_top): Likewise TOP_REG.
17828 (table::define_bottom_macro): If TOP_REG is no longer valid, use
17829 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17830 table header might contain just the two top rules.
17832 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
17834 * troff/div.c: Implement new request `ptr' to print all traps.
17836 * troff/env.c (init_env_requests): Implement `.tabs' reg with
17837 init_string_env_reg.
17838 * troff/env.c (class tab_reg): Deleted.
17840 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
17842 * troff/div.c: New number register .pn returns the number of the
17843 next page as set by the pn request.
17845 * macros/tmac.an: Redid headers and footers. Number each manual
17846 entry starting from 1 unless \nC is > 0, like Sun. Added an
17847 optional 5th argument to .TH which specifies the manual name and
17848 appears in the center of the header. Understand the X, P and D
17849 registers like Sun.
17851 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
17853 * troff/env.c (init_env_requests): New number register `.lt' to
17854 return the title length.
17856 * troff/node.h (class transparent_dummy_node): New class.
17857 * troff/node.c (class transparent_dummy_node): Provide member
17859 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17862 * troff/input.c (token::next): New escape sequence \).
17863 * troff/input.c (get_copy): Recognize \) in copy mode.
17865 * troff/input.c (input_stack::clear): New function.
17866 * troff/input.c (exit_request): Use input_stack::clear.
17868 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17869 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17871 * troff/env.c: Move set_page_character to input.c. Move
17872 page_character to input.c also.
17873 * troff/env.c (title): Split off the reading of the parts of the
17874 title into read_title_parts.
17875 * troff/input.c (read_title_parts): New function. Check the
17876 input_level when testing whether a token matches the delimiter.
17878 * troff/input.c (exit_request): New function.
17879 * troff/input.c (init_input_requests): Bind ex request to
17880 exit_request rather than exit_groff.
17882 * troff/input.c (exit_groff): Call tok.next() before
17883 process_input_stack().
17885 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
17887 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17888 * troff/env.h: ditto.
17889 * troff/input.c: ditto.
17891 * troff/env.c (environment::is_empty): Test pending_lines.
17893 * troff/env.c (environment::have_pending_lines): Removed.
17895 * troff/input.c: Add request to flush pending lines from the
17898 * troff/env.c, troff/env.h: Add automatic widow control feature.
17900 * troff/input.c (exit_groff): Do process_input_stack() after
17901 do_break() but before setting exit_flag to 2.
17903 * troff/input.c: Remove FLUSH_PENDING_LINES and
17904 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17905 environment after END_TRAP token seen, but only if there aren't
17906 any more traps still unfinished.
17907 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17909 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
17911 * troff/env.c: Rename the `retain_size' member of class
17912 pending_output_line to `no_fill'.
17914 * troff/env.c (title): When the line is output, make the
17915 retain_size argument !fill.
17917 * troff/node.h: Add `hyphenated' member to struct breakpoint.
17918 * troff/node.c (space_node::get_breakpoints),
17919 (dbreak_node::get_breakpoints): Fill this in.
17920 * troff/env.c: Allow specification of maximum number of
17921 consecutive hyphenated lines.
17923 * troff/env.c (environment::is_empty): Add test for !current_tab.
17925 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
17927 * troff/env.c (environment::hyphenate_line): Don't completely give
17928 up if the word is not to be hyphenated; continue so that breaks
17929 can be made at break_char_node's.
17931 * lib/lib.h: Only define INT_MAX if it's not already defined;
17932 undef INT_MIN if it's already defined.
17934 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17936 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17937 This works around a bug in AT&T C++ 2.0 used with an ANSI C
17940 * macros/tmac.an (an-header): Set no-space mode.
17942 * macros/tmac.an (TH): Start a new page if necessary.
17944 * Started using ChangeLog at version 0.4.
17947 version-control: never