1 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
6 2004-01-17 Werner LEMBERG <wl@gnu.org>
8 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
9 against division by zero.
11 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
13 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
15 2004-12-19 Werner LEMBERG <wl@gnu.org>
17 * install-sh: New version; taken from texinfo CVS.
19 2004-12-17 Werner LEMBERG <wl@gnu.org>
21 * tmac/devtag.tmac: Protect against loading twice.
22 Protect agains compatibility mode.
23 * tmac/www.tmac: Protect against loading twice.
24 Load `devtag.tmac' before switching off compatibility mode.
25 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
27 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
29 * configure.ac: Produce `contrib/gdiffml/tests/runtests'.
32 2004-12-15 Thomas Klausner <wiz@netbsd.org>
34 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
36 2004-12-15 Werner LEMBERG <wl@gnu.org>
38 Make `test-groff' work again -- previously, wrong paths have been
39 used. Additionally, it can now be called from anywhere.
41 * test-groff.in: Don't test for groff binary. This is no longer
42 necessary since the proper paths are determined by `configure'.
43 (EXEEXT): Removed. No longer used.
44 (srcdir, builddir): Use values provided by the configure script.
45 (XENVIRONMENT): Updated.
49 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
51 Make .tag and .taga work for all devices (but only grohtml actually
54 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
55 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
56 html_printer::handle_assertion): Don't use hard-coded string
58 (html_printer::lookahead_for_table): Reset `tbl' properly if
60 (html_printer::devtag): New function, handling `devtag'.
61 (html_printer::special): Don't handle `html-tag'.
63 * src/include/printer.h, src/libs/libdriver/printer.cpp
64 (printer::devtag): New virtual function.
66 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
69 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
70 src/roff/troff/node.cpp: s/html-tag/devtag/.
72 * src/roff/troff/input.cpp (tag, taga): Always call
75 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
76 macros instead of HTML-TAG*.
78 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
80 * tmac/www.tmac: Load devtag.tmac.
81 Replace HTML-TAG* macros with DEVTAG* macros.
82 (HTML, HTML-NS): Changed definitions.
84 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
86 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
88 2004-12-10 Werner LEMBERG <wl@gnu.org>
90 Import Mike's `gdiffmk' package.
92 * contrib/gdiffmk/*: New files.
93 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
96 2004-12-08 Werner LEMBERG <wl@gnu.org>
98 Import Keith's `pdfmark' package. Integration is very preliminary.
100 * contrib/pdfmark/*: New files.
101 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
104 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
106 Fix a bug with title handling in HTML.
108 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
109 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
111 (html_printer::handle_tag_within_title): New function.
112 (html_printer::do_title): Use it.
114 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
115 (cov*tl-au-print): Emit `.eo.tl' tag.
117 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
119 * man/groff_char.man: Minor imrovements.
121 2004-12-04 Werner LEMBERG <wl@gnu.org>
123 * src/preproc/eqn/eqn.man: Revised.
125 2004-11-25 Werner LEMBERG <wl@gnu.org>
127 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
131 Remove X_NOT_STDC_ENV conditional.
132 (Version_string, program_name): New global variables.
133 (groff_flag): Removed.
135 (usage): Take a stream as argument.
138 (main): Add `long_options' array for `--help' and `--version'.
139 Make `-g' a dummy option.
140 Handle `-v' and unknown options.
141 Remove unused `position' variable.
143 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
144 (XLIBS): Add LIBGROFF.
146 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
149 * src/devices/xditview/Dvi.c (default_font_map): Split into three
150 parts to avoid compiler warning.
151 (resources): Don't initialize with `default_font_map'.
152 (ClassInitialize): Initialize first element of `resources'.
154 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
157 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
158 src/utils/pfbtops/pfbtops.man: Revised, updated.
160 * configure.ac: Generate src/utils/xtotroff/Makefile.
161 * configure: Regenerated.
163 2004-11-24 Werner LEMBERG <wl@gnu.org>
165 First fixes to get produce HTML.
167 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
170 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
171 (HR, LI): Use `HTML</p>', not `HTML'.
173 * doc/webpage.ms: Minor updates.
175 2004-11-23 Larry Kollar <kollar@alltel.net>
177 Add option -S grohtml to determine the file split level.
179 * src/devices/grohtml/post-html.cpp (split_level): New global
181 (html_header::determine_header_level): Use split_level.
182 (main): Handle `-S' command line option.
185 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
187 * src/devices/grohtml/grohtml.man: Document it.
192 2004-11-23 Y T <doarhop@hotmail.com>
194 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
195 the volume and number refer entries.
197 2004-11-22 Werner LEMBERG <wl@gnu.org>
199 * src/devices/grohtml/html-table.cpp
200 (html_table::emit_table_header): Don't emit `cols' attribute which
201 doesn't exist in HTML 4.0 and is thus invalid.
203 * NEWS: More minor fixes and updates.
205 2004-11-18 Werner LEMBERG <wl@gnu.org>
207 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
208 (HTML</p>): Minor clean-up.
210 * tmac/groff_www.man: Updated.
212 * src/devices/grohtml/grohtml.man: Revised and updated.
216 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
218 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
220 (html_printer::do_links): Fix rules generation around automatic
223 * tmac/www.tmac (LK): Use HTML-TAG-NS.
225 No longer emit empty line for non-HTML devices.
227 2004-11-17 Werner LEMBERG <wl@gnu.org>
229 * doc/Makefile.in (prepare_examples, webpage.html): Handle
232 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
233 prepare_examples, webpage.html): Handle `groff.css'.
235 2004-11-15 Werner LEMBERG <wl@gnu.org>
237 * NEWS, README, doc/webpage.ms: Updated.
239 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
241 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
243 * src/include/printer.h (printer): Remove virtual function
245 Update all source files.
247 * src/devices/grohtml/post-html.cpp (html_printer): New member
248 function `round_width'.
250 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
252 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
253 column key letter suffix.
255 2004-10-14 Werner LEMBERG <wl@gnu.org>
257 * Makefile.in (check): Depend on `site.exp' and `docheck'.
258 (docheck): Run dejagnu's `runtest' if it exists.
259 (site.exp): Create dejagnu configuration file.
261 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
263 2004-10-13 Werner LEMBERG <wl@gnu.org>
265 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
266 src/devices/grohtml/post-html.cpp (make_val,
267 html_printer::handle_state_assertion): Fix compiler warnings.
269 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
270 (diversion::diversion): Fix order of initializers.
272 * src/roff/troff/div.h: Don't include `mtsm.h'.
274 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
275 (environment::environment): Fix order of initializers.
276 (environment::make_tag, environment::construct_format_state): Fix
279 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
280 (input_iterator::input_iterator, macro::macro): Fix order of
283 * src/roff/troff/mtsm.cpp: Include only necessary header files.
284 (state_set::add, state_set::val): Fix compiler warnings.
286 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
287 (bool_value_state, int_value_state, units_value_state,
288 string_value_state): Remove comma after last element which causes
289 an error with g++ 3.3.3.
291 * src/roff/troff/node.cpp: Include `stringclass.h'.
292 (hline_node::hline_node, vline_node::vline_node,
293 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
295 (zero_width_node::zero_width_node): Fix order of initializers.
297 * src/roff/troff/node.h: Don't include `mtsm.h'.
298 (hmotion_node): Fix compiler warnings.
300 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
302 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
304 * doc/groff.css: New file.
306 * doc/webpage.ms: Use `groff.css'.
309 * tmac/an-old.tmac (need_eo_h): New number register.
310 (TH): Emit `.eo.tl' tag after title.
311 (SH): Set `need_eo_h'.
312 (an-trap): Handle `need_eo_h'.
313 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
315 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
316 (TL): Always start diversion.
318 (@AI): Always call `par@reset'.
319 (@AB): Update code for -Thtml.
320 (cov*tl-au-print): Handle -Thtml.
321 (par@reset): Handle `need_eo_tl', `need_eo_h'.
324 (@SH): Set `need_eo_h' for -Thtml.
325 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
327 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
328 Set `need_eo_h' for -Thtml.
329 (@EQ, @EN): Don't handle -Thtml specially.
330 (par@load-init): Don't handle -Thtml specially.
332 * tmac/www.tmac (www:paraspace): New macro.
333 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
334 (HTML</p>, HTML-TAG-NEXT): New macros.
335 (HnE): Emit tag `.eo.h' instead of break.
336 (HR): s/HTML-NS/HTML/.
337 (www-end-nowhere): End diversion only if `www-html' not set.
339 (ULS, ULE): s|HTML|HTML</p>|.
340 (LI): Call `www:paraspace'.
343 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
345 * src/roff/troff/request.h (macro): Make `p' public.
346 New variable `is_a_diversion'.
347 New member function `is_diversion'.
350 * src/devices/grohtml/html.h (simple_output): New member function
353 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
354 computation of `total'.
355 (tabs::check_init): New function.
356 (html_table::emit_table_header): Emit style data.
357 (html_table::insert_column): Improved.
359 * src/devices/grohtml/html-table.h: Updated.
361 * src/devices/grohtml/html-text.cpp (html_text::html_text):
362 Initialize `start_space' with TRUE.
363 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
365 (html_text::flush_text): Set `start_space' flag.
366 (html_text::uses_indent, html_text::remove_para_space,
367 html_text::get_alignment): New functions.
368 (html_text::push_para): Updated.
369 (html_text::do_para): Check for empty argument.
370 Don't set `space_emitted'.
371 (html_text::do_space, html_text::emit_space): Updated.
373 * src/devices/grohtml/html-text.h (tag_definition): New variable
375 (html_text): New member function `uses_indent', `remove_para_space',
378 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
380 (simple_output:nl): Always emit `\n'.
382 * src/devices/grohtml/post-html.cpp: Include `string.h'.
383 (BASE_POINT_SIZE): Removed.
384 (base_point_size, head_info): New global variables.
385 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
387 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
389 (page::add_and_encode): Pass additional parameter for tag flag.
390 (assert_pos): New structure.
391 (assert_state): New class.
392 (html_printer): Remove `indentation', `prev_indent'.
393 Add variables `troff_indent', `device_indent', `temp_indent'.
394 Add variables `seen_indent', `next_indent', `seen_pageoffset',
395 `next_pageoffset', `seen_linelenght', `next_linelength',
396 `seen_center', `next_center', `seen_space', `seen_break', `as'.
397 Add member functions `do_check_center', `do_space', `do_head',
398 `get_troff_indent', `restore_troff_indent', `handle_assertion',
399 `handle_state_assertion', `do_end_para', `set_char_and_width'.
400 Change argument to `do_fill' to `char *'.
402 (html_printer::emit_raw): Call `shutdown_table'.
404 (html_printer::do_center): Simplified.
405 (html_printer::do_title): Improved.
406 (html_printer::write_header): Emit one more newline.
408 (html_printer::do_heading, html_printer::do_indent,
409 html_printer::do_eol, html_printer::do_tab_ts,
410 html_printer::do_tab, html_printer::do_tab0,
411 html_printer::calc_po_in, html_printer::next_horiz_pos,
412 html_printer::remove_courier_tabs,
413 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
415 (html_printer::do_linelength, html_printer::do_pageoffset,
416 html_printer::do_indentation, html_printer::do_tempindent,
417 html_printer::do_tab_te): Simplified.
418 (html_printer::do_pointsize): Check whether point size is really
419 associated a `.tl' tag.
420 (html_printer::do_break): Rewritten.
421 (html_printer::troff_tag): Improved.
422 (html_printer::flush_globs): Updated.
423 (html_printer::lookahead_for_tables): Handle `is_br'.
425 (html_printer::set_char): Check `sbuf_style.f'.
426 (html_printer::write_navigation): Use string comparison.
427 (html_printer::~html_printer): Emit `head_info'.
428 (html_printer::special): Rewritten.
429 (get_str, make_val): New functions.
430 (main): New option `s' to set the base point size.
432 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
434 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
436 * src/roff/troff/node.cpp: New extern `debug_state'.
437 Include `stringclass.h' and `mtsm.h'.
438 Implement new classes and class members from `node.h'.
439 (real_output_file): Make `fp' public.
440 (troff_output_file): New variables `cur_div_level' and `tag_list'.
442 (troff_output_file::really_print_line): Check whether we should push
443 the current troff state and use the state at the start of the
444 invocation of this diversion.
445 (troff_output_file::add_to_tag_list): New member function.
446 (node::add_char): Handle `glyph_comp_np'.
448 * src/roff/troff/node.h: Include `mtsm.h'.
449 (node): New variables `state', `push_state', `div_nest_level',
450 `is_special'. Update constructors, all descendants.
451 Pass additional argument to `add_char' member function.
452 New virtual member functions `is_tag', `debug_node',
453 `debug_node_list'. Update all descendants.
454 (tag_node): New class for handling tags.
455 (output_file): Add variable `state'.
457 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
459 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
460 providing a minimal troff state machine to emit meta tags for the
461 post-grohtml device driver.
463 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
466 2004-10-09 Werner LEMBERG <wl@gnu.org>
468 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
470 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
472 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
474 * src/roff/troff/div.h: Include `mtsm.h'.
475 (diversion): New variables `any_chars_added', `needs_push',
476 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
477 `saved_suppress_next_eol', `modified_tag'.
478 New virtual member function `is_diversion'. Update all descendants.
480 * src/roff/troff/div.cpp (diversion::diversion,
481 macro_diversion::macro_diversion): Updated.
482 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
484 (top_level_diversion::space): Handle `curenv->seen_space'.
485 (page_offset): Update tag handling.
486 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
488 * src/roff/troff/env.h (environment): Make `tabs' public.
489 Remove `ignore_next_eol', `emitted_node'.
490 Update `output_line', `output'.
491 New variables `seen_space', `seen_eol', `suppress_next_eol',
493 New member functions `construct_state', `make_tag',
494 `construct_format_state, `construct_new_line_state,
496 Remove `add_html_tag', `make_html_tag'.
498 * src/roff/troff/env.cpp: New externs `suppress_push',
499 `get_diversion_state', `global_diverted_space'.
500 (pending_output_line): New variable `was_centered'.
501 Update constructor and all callers.
502 (pending_output_line::output): Call `curenv->construct_format_state'.
503 (environment::environment, environment::copy): Updated.
504 (environment::output): Handle `was_centered'.
505 (environment::add_char): Handle construct and diversion state.
506 (environment::add_node): Handle construct state.
507 (environment::newline): Handle `was_centered'.
508 (environment::output_line): Updated.
509 (environment::possibly_break_line): Updated.
511 (environment::add_html_tag): Replaced with...
512 (environment::make_tag): New function.
513 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
514 (environment::dump_troff_state): New debugging function.
515 (environment::construct_state, environment::construct_format_state,
516 environment::construct_new_line_state): New functions.
517 (environment::do_break): Updated.
518 Handle `global_diverted_space'.
519 (environment::handle_tag): Update tag handling.
520 (point_size, fill, do_break_request): Don't call `add_html_tag'.
521 (no_fill): Don't call `add_html_tag'.
522 Set `suppress_next_eol'.
523 (center, right_justify, line_length, indent, temporary_indent,
527 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
528 (input_iterator): New variables `is_diversion', `diversion_state'.
530 (input_stack): New member functions `get_div_level',
531 `get_diversion_state', `check_end_diversion'.
532 New variables `div_level', `diversion_state'. Initialize them.
533 (suppress_push, global_diverted_space): New global variables.
534 (input_stack::finish_get, input_stack::finish_peek,
535 input_stack::remove_boundary, input_stack::end_file,
536 input_stack::clear, input_stack::pop_macro): Call
537 `check_end_diversion'.
538 (input_stack::push): Handle `div_level' and `diversion_state'.
539 (get_diversion_state): New function.
540 (diverted_space_node::reread): Handle `global_diverted_space'.
541 (macro::macro): Update constructors.
542 (macro::is_diversion): New function.
543 (macro::operator=): Set `is_a_diversion'.
544 (string_iterator): New member function `is_diversion'.
545 (string_iterator::string_iterator): Update constructors.
546 (string_iterator::fill): Set `div_nest_level'.
547 (macro_iterator): New member function `is_diversion'.
548 (do_if_request): Handle `suppress_push'.
549 (tag, taga): New functions.
550 (init_input_requests): Add `tag' and `taga' requests.
552 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
554 * src/include/font.h (font): New member function
555 `get_image_generator'.
556 New variables `unscaled_charwidths' and `image_generator'.
558 * src/libs/libgroff/font.cpp (font::get_width): Always return the
559 character's unscaled width if `font::unscaled_charwidths' is set.
560 (font::get_image_generator): New function.
561 (font::load_desc): Check the `unscaled_charwidths' and
562 `image_generator' keywords.
564 * src/libs/libgroff/fontfile.cpp: Initialize
565 `font::unscaled_charwidths' and `font::image_generator'.
567 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
569 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
571 * man/groff_font.man: Document `unscaled_charwidths' and
574 * src/preproc/html/pre-html.cpp: Include `device.h'.
575 (image_gen): New global variable.
576 (imageList::createPage): Use `image_gen'.
577 (main): Use `image_generator' keyword.
579 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
581 * tmac/html.tmac: Handle \[sqrtex].
583 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
585 * src/include/printer.h (printer): New virtual method `round_width'.
587 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
588 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
589 src/devices/grotty/tty.cpp (printer::round_width): New function
592 * src/devices/grohtml/post-html.cpp (printer::round_width): New
594 (html_printer::set_numbered_char): Use it.
596 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
598 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
600 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
602 * configure: Regenerated.
604 * Makefile.in (GHOSTSCRIPT): New variable.
605 (MDEFINES): Add GHOSTSCRIPT.
607 2004-10-03 Werner LEMBERG <wl@gnu.org>
609 * INSTALL.gen: Updated (taken from texinfo CVS).
611 2004-09-28 Werner LEMBERG <wl@gnu.org>
615 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
617 * tmac/groff_www.man: Revised and updated.
619 2004-09-26 Werner LEMBERG <wl@gnu.org>
621 Fix \$@ and \$* to handle any number of arguments.
623 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
626 * src/roff/troff/input.cpp (input_iterator::internal_level):
628 (input_stack): New member functions `increase_level' and
630 (input_stack::get_level): Don't use `internal_level'.
631 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
632 (end_quote_iterator): Completely removed.
633 (interpolate_arg): Build string for \$@ and \$* which is then
634 pushed onto the input stack.
636 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
638 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
641 2004-09-23 Werner LEMBERG <wl@gnu.org>
643 * tmac/an-old.tmac (ne): Using default scaling operator.
645 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
647 This change implements the following features:
650 New numeric register: Defines number of lines following LP, PP,
651 QP, IP or XP, which must be kept together, before any automatic
652 page break. If insufficient space remains on the current page, a
653 page break is forced before the new paragraph begins.
656 New numeric register: Sets number of lines of following paragraph
657 which must be kept with a heading, defined by NH or SH, before any
658 automatic page break. If insufficient space remains on the
659 current page, a page break is forced before the heading.
662 (Thanks to Joerg van den Hoff, for this idea).
664 New numeric register: Sets the first level of heading (set with
665 NH), which will keep the same point size as body text; e.g. if
666 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
667 point size specified by \n[PS], but .NH 2 and .NH 1 will have
668 progressively larger point sizes, determined by \n[PSINCR] (see
672 New numeric register: Sets the point size increment for each level
673 of heading, (set with NH), below the threshold level set by
674 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
675 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
676 and all other levels will remain at 10pt, (because \n[PS] = 10).
679 Existing macro now accepts a numeric argument, to make heading
680 size match that of NH with same argument value, when the
681 GROWPS/PSINCR feature is enabled.
684 New string, set by NH macro, replaces the existing (undocumented)
685 use of SN, to represent the assigned section number.
688 New string, set by NH macro, represents the assigned section
689 number, but omits the terminal period (periods at intermediate
690 levels are retained).
693 String set by NH macro, originally undocumented, now implemented
694 as an alias for SN-DOT (which reproduces original behaviour).
696 * tmac/s.tmac (PORPHANS): New register.
698 (HORPHANS, GROWPS, PSINCR): New registers.
699 (SH-NO-TAG, @SH): Use them.
702 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
704 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
705 of `Ds' and `De' macros.
707 2004-09-10 Werner LEMBERG <wl@gnu.org>
709 In tbl, handle \a as an interpreted leader character if in
712 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
713 LEADER_CHAR): New macros.
714 (compatible_flag): New declaration.
716 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
717 LEADER_3, and LEADER_4 to `state'.
718 (table_input::get): Handle `\a'.
720 * src/preproc/tbl/table.cpp (PREFIX): Removed.
721 (LEADER_REG): New macro.
722 (table::init_output): Define LEADER_REG string register if in
725 * src/preproc/tbl/tbl.man: Document it.
727 2004-08-18 Werner LEMBERG <wl@gnu.org>
729 * tmac/doc.tmac (An): Fix error message.
731 2004-08-06 Werner LEMBERG <wl@gnu.org>
733 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
734 file can't be opened. UNIX tbl has the same behaviour.
736 2004-08-05 Y T <doarhop@hotmail.com>
738 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
739 (DBRead): If in compatibility mode, take into account the text
740 when computing figure boundaries.
742 2004-08-05 Werner LEMBERG <wl@gnu.org>
744 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
745 from Tadziu Hoffmann.
747 2004-08-03 Werner LEMBERG <wl@gnu.org>
749 * doc/meref.me: Document `_M' register.
751 2004-08-03 Martin Husemann <martin@duskware.de>
753 Make hpftodit work correctly on big-endian systems.
755 * src/utils/hpftodit/hpftodit.cpp (File): New method
756 `get_uint32(char *)'.
757 (entry): New member `orig_value'.
758 (read_tags): Use new method.
759 (output_font_name, read_and_output_pcltypeface, dump_ascii):
762 2004-08-01 Werner LEMBERG <wl@gnu.org>
764 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
765 are already in X11's `macros.t' file.
767 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
769 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
771 (read_and_output_pcltypeface): Handle strings with length <= 4.
773 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
775 * tmac/s.tmac (pg@top): Don't save `PO' register.
776 (pg*end-col, pg*end-page): Directly use `PO' register.
778 2004-07-27 Werner LEMBERG <wl@gnu.org>
780 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
782 * src/preproc/refer/refer.cpp (output_references): Check for
784 * src/preproc/refer/refer.man: Improve documentation of
785 `bibliography' command.
787 2004-07-26 Werner LEMBERG <wl@gnu.org>
789 Add requests `fcolor' and `gcolor'.
791 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
793 (init_env_requests): Add `fcolor' and `gcolor'.
795 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
797 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
798 Document new requests.
800 2004-07-24 Werner LEMBERG <wl@gnu.org>
802 Add support for fractional point sizes in ms macros. A value for
803 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
804 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
806 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
807 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
809 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
811 2004-07-19 Werner LEMBERG <wl@gnu.org>
813 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
815 (do_for, for_input::get, for_input::peek): Handle negative `by'.
816 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
818 2004-07-08 Thomas Klausner <wiz@netbsd.org>
820 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
821 * tmac/groff_mdoc.man: Updated.
823 2004-07-05 Werner LEMBERG <wl@gnu.org>
825 * doc/groff.texinfo: Further improve documentation of `hcode'.
827 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
829 Improve appearance of arrows in pic.
831 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
833 Use two line segments for drawing non-filled arrow head.
834 (line_object::print, spline_object::print): Shorten line length to
835 avoid arrow sticking.
836 (arc_object::print): Take arrow direction into account.
838 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
840 * tmac/groff_www.man: Update documentation of .MPIMG.
842 2004-07-03 Werner LEMBERG <wl@gnu.org>
844 * tmac/an-old.tmac (RI): Always start with font `R'.
845 (RI, IR): Properly end with font `R'.
847 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
849 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
850 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
851 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
852 Don't pass more than six arguments to .R, .I, .B, etc., for
853 compatibility with traditional troff macros.
855 2004-07-02 Werner LEMBERG <wl@gnu.org>
857 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
858 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
860 (PUSH_COMP_MODE): New internal character constant.
863 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
864 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
865 (token::next, macro::append): Handle PUSH_COMP_MODE.
866 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
867 POP_GROFFCOMP after each of the decoded arguments to make them
868 independent from the compatibility mode status.
869 (comp_mode): Add `COMP_ENABLE'.
870 (do_define_string, do_define_macro): Handle COMP_ENABLE.
871 (define_string, append_string, define_macro, define_indirect_macro,
872 append_macro, append_indirect_macro): Handle `compatible_flag'.
873 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
875 * man/groff_diff.man, doc/groff.texinfo: Updated.
877 2004-07-01 Werner LEMBERG <wl@gnu.org>
879 * doc/groff.texinfo: Improve documentation of `hcode'.
880 Use @documentencoding and convert document to latin-1; to do that
881 make latin characters active and assign proper macros (within a
882 @tex...@end tex environment).
883 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
884 * doc/Makefile.sub (groff): Ditto.
886 2004-06-29 Werner LEMBERG <wl@gnu.org>
888 Implement two new conditional operators `F <name>' and `S <name>'
889 which check whether <name> is a valid font or style, respectively.
891 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
892 (text_file::text_file): Updated.
893 (text_file::error): Don't emit message if `silent' is set.
894 (font::load_font): Add optional third argument (which is directly
896 (font::load): Add optional second argument to check the header of
897 a font only, without emitting warning or error messages.
898 * src/include/font.h (font): Updated.
900 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
902 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
903 fourth argument to check a font without mounting.
904 (check_font, check_style): New functions.
905 * src/roff/troff/node.h: Updated.
907 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
910 2004-06-27 Werner LEMBERG <wl@gnu.org>
912 Implement new string-valued register `.sty' to return the current
915 * env.cpp (environment::get_style_name_string): New function.
916 (init_env_requests): Add `.sty' register.
917 * env.h (environment): Updated.
918 * node.cpp (font_info): Make `get_style_name' a friend.
919 (get_style_name): New function.
922 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
925 2004-06-15 Werner LEMBERG <wl@gnu.org>
927 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
930 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
932 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
933 and \n[mo] to avoid dependency on current date.
935 2004-06-08 Werner LEMBERG <wl@gnu.org>
937 * Makefile.sub (install_data): New target.
939 2004-06-04 Werner LEMBERG <wl@gnu.org>
941 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
943 2004-06-03 Werner LEMBERG <wl@gnu.org>
945 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
947 (install_data): Add $(srcdir).
949 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
952 2004-06-02 Werner LEMBERG <wl@gnu.org>
954 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
955 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
956 Add test for Xmu library.
957 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
958 GROFF_APPRESDIR_DEFAULT): New macros.
960 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
961 and GROFF_APPRESDIR_DEFAULT.
963 * configure: Regenerated.
965 * Makefile.in (appresdir): New variable.
966 (MDEFINES): Add appresdir.
968 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
970 (install_data, uninstall_sub): New targets to handle GXditview.ad.
972 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
973 `$(srcdir)/eign', not `eign'.
975 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
977 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
978 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
979 Protect (g)xditview with `\%' to avoid hyphenation.
980 Other minor formatting.
982 2004-06-01 Werner LEMBERG <wl@gnu.org>
984 Integrate gxditview into groff's standard directory hierarchy.
986 * src/xditview/*: Moved to ...
987 * src/devices/xditview/*: Here.
988 Moved DviChar.h and XFontName.h to src/include.
989 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
990 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
991 Moved xtotroff.c to new directory src/utils/xtotroff.
992 Provide proper Makefile.sub files (reusing the stuff from
994 DESC renamed to DESC.in.
995 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
996 Converted everything from K&R to ANSI C.
997 Decorated with const where appropriate.
998 Cast string constants with `String' and `char *' where appropriate.
999 Made it compile with C++ (used as a C compiler).
1000 Removed other minor compiler warnings.
1002 * src/devices/xditview/device.c: Include config.h, string.h, and
1004 Don't declare `exit', `strtok', `strchr', and `getenv'.
1007 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1010 * src/devices/xditview/xditview.c: Include config.h.
1011 Include stdio.h earlier.
1012 Protect declaration of `popen' and `pclose' with
1013 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1014 Replace `caddr_t' with `XtPointer'.
1015 (MakePromptFunc): New typedef.
1016 (DoPrint): Use RETSIGTYPE.
1017 (promptfunction): Change type to MakePromptFunc.
1018 (MakePrompt): Use MakePromptFunc for third argument.
1021 * src/devices/xditview/ad2c: Add casts to `String'.
1023 * src/include/XFontName.h (XFontNameString): Don't use array
1025 Add prototypes for `XParseFontName', `XFormatFontName',
1026 `XCompareFontName', and `XCopyFontName'.
1028 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1031 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1032 Don't declare `XParseFontName' and `XFormatFontName'.
1034 (main): Remove `optind' and `optarg'.
1036 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1037 (to select programs which need X).
1038 Make XDEVIDIRS depend on `FORCE'.
1039 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1041 (MDEFINES): Updated.
1042 (LIBDIRS): Use XLIBDIRS.
1043 (CPROGDIRS): Use XPROGDIRS.
1044 (DEVDIRS): Remove font directories for gxditview.
1045 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1046 (EXTRADIRS): Remove src/xditview.
1048 * Makefile.sub (DISCLEANFILES): Updated.
1050 * Makefile.comm (LIBXUTIL): New variable.
1051 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1052 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1054 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1056 * aclocal.m4 (GROFF_X11): New function.
1058 * configure.ac: Call GROFF_X11.
1059 Don't create src/xditview/Imakefile.
1060 Don't emit notice how to build gxditview.
1062 * configure: Regenerated.
1064 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1066 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1068 * Makefile.in (CPPFLAGS): Define.
1069 (MDEFINES): Add CPPFLAGS.
1071 2004-05-27 Werner LEMBERG <wl@gnu.org>
1073 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1075 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1077 Fix problems with `friend name injections'.
1079 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1080 make_script_box), src/roff/troff/div.h (end_diversions),
1081 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1084 2004-05-25 Bernd Warken <bwarken@mayn.de>
1086 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1088 2004-05-25 Werner LEMBERG <wl@gnu.org>
1090 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1091 src/libs/libgroff/color.cpp: Include lib.h.
1093 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1095 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1096 through Forte 6u1, and for how to get GNU make on Solaris.
1098 2004-05-24 Werner LEMBERG <wl@gnu.org>
1100 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1103 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1105 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1108 2005-05-14 Werner LEMBERG <wl@gnu.org>
1110 * REVISION: Set to 2.
1112 * aclocal.m4 (GROFF_STDINT_H): Removed.
1113 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1115 * configure.ac: Updated.
1116 * configure, src/include/config.hin: Regenerated.
1118 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1119 inttypes.h conditionally.
1121 2003-05-13 Werner LEMBERG <wl@gnu.org>
1123 Version 1.19.1 released
1124 =======================
1126 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1128 * src/preproc/refer/label.y (same_author_last_name,
1129 same_author_name): Handle empty sort keys.
1131 2004-05-10 Werner LEMBERG <wl@gnu.org>
1133 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1136 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1137 doc-str-Lb-librt): Reset font.
1138 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1139 Provide `doc-str-Lb' to reset font.
1140 * tmac/groff_mdoc.man: Updated.
1142 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1144 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1145 snprintf versions which don't conform to ANSI C 99 (this is,
1146 counting the string's trailing null byte in the return value).
1148 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1150 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1151 that all implementations of sprintf handle null pointers correctly.
1153 2004-05-04 Werner LEMBERG <wl@gnu.org>
1155 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1156 Document `.U' register.
1158 * src/roff/troff/env.cpp (environment::mark_last_line)
1159 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1161 2004-05-04 Larry Kollar <kollar@alltel.net>
1163 New read-only register `.U'; it returns 1 in safer mode and 0
1166 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1169 2004-05-03 Werner LEMBERG <wl@gnu.org>
1171 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1173 2004-04-17 Werner LEMBERG <wl@gnu.org>
1175 * src/include/font.h (font): Use `int' for ch_index.
1176 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1177 font::compact): Updated.
1179 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1182 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1183 (hyphen_word): Fix compiler warnings.
1184 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1187 (get_delim_number, get_line_arg): Change second argument type to
1189 (macro_header::copy, token::next, do_define_string,
1190 do_define_character, substring_request, asciify_macro,
1191 unformat_macro, read_size, non_interpreted_node::interpret,
1192 while_request, main: Fix compiler warnings.
1193 (read_color_draw_node): Initialize `col'.
1195 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1196 `start_col' and `end_col' of type `int'.
1197 (vertical_rule): Make `col' of type `int'.
1199 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1202 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1204 (format_serial): Use them to remove dependency on ASCII.
1206 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1208 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1211 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1213 (glyph): Change type of `hpos' to `int'.
1215 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1216 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1218 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1220 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1222 2004-04-16 Werner LEMBERG <wl@gnu.org>
1224 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1225 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1226 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1227 `double' instead of `float' everywhere.
1228 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1230 (main): Add return value.
1231 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1233 Update all user functions.
1235 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1236 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1237 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1238 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1239 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1240 src/roff/troff/input.cpp, src/roff/troff/request.h,
1241 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1244 * src/utils/indxbib/signal.c: Include stdlib.h.
1246 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1248 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1249 before the first page.
1251 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1253 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1254 (doc-operating-system-*): Updated.
1255 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1256 (doc-str-Lb-*): Add more library names.
1258 2004-04-10 Art Haas <ahaas@airmail.net>
1260 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1263 2004-04-09 Art Haas <ahaas@airmail.net>
1265 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1267 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1269 * arch/misc/shdeps.sh: Generate better comment for sed script.
1271 2004-04-08 Art Haas <ahaas@airmail.net>
1273 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1274 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1275 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1276 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1277 (polyfill), src/preproc/grn/main.cpp (polyfill),
1278 src/preproc/refer/command.cpp (command_table),
1279 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1280 gcc 3.5 doesn't like).
1282 2004-04-08 Werner LEMBERG <wl@gnu.org>
1284 Removing many compiler warnings. groff should now compile with
1285 a C++ compiler used for C files also. [Simple variable renamings
1286 to avoid shadowing aren't logged in detail.]
1288 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1289 (draw_dvi_printer::draw) ['c']: Enclose in block.
1291 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1292 (page::add_line): Fix typos.
1293 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1295 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1296 Some local variable renamings.
1297 * src/devices/grolbp/lbp.h: Some local variable renamings.
1299 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1302 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1303 Remove redundant local variable declaration.
1304 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1305 Don't use `caddr_t' but `void *'.
1306 Enclose functions with `extern "C"' for C++.
1308 * src/libs/libdriver/input.cpp (remember_filename,
1309 remember_source_filename): Use cast for string constant.
1311 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1312 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1313 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1314 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1316 Enclose functions with `extern "C"' for C++.
1317 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1318 (needs_quoting): Return `int'.
1319 (quote_arg): Add proper casts to malloc and realloc.
1320 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1321 various MS Windows environments.
1322 (spawnvp_wrapper): Add proper cast to malloc.
1324 * src/preproc/eqn/box.h: Remove redundant declarations of
1325 `make_script_box', `make_mark_box' and `make_lineup_box'.
1326 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1327 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1330 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1331 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1332 (dx, dy): Renamed functions to...
1333 (deltax, deltay): This.
1334 * src/preproc/grn/main.cpp: Some local variable renamings.
1335 (deffont): Add `const'.
1336 (initpic, conv): Use cast for string constant.
1338 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1339 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1340 (char_buffer::run_output_filter): Second argument is unused.
1341 * src/preproc/html/pushback.cpp: Some local variable renamings.
1343 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1344 * src/preproc/pic/object.cpp: Some local variable renamings.
1346 * src/preproc/refer/label.y (lookup_label): Remove redundant
1347 declaration of local variable.
1349 * src/preproc/soelim.cpp: Remove redundant declaration of
1350 `interpret_lf_args'.
1352 * src/preproc/tbl/main.cpp: Some local variable renamings.
1354 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1355 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1356 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1357 Don't use C++-style comments.
1359 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1360 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1361 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1363 * src/roff/troff/div.h: Remove redundant declaration of
1365 * src/roff/troff/troff.h: Remove redundant declaration of
1367 * src/roff/troff/input.cpp: Remove redundant declaration of
1368 `handle_first_page_transition' and `process_input_stack'.
1370 * src/utils/hpftodit.cpp: Some local variable renamings.
1372 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1374 Don't define RETSIGTYPE.
1375 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1377 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1378 (error): Use `const' in argument.
1379 (main): Remove redundant declaration of `optind'.
1380 Move declaration of `Version_string' to top-level.
1382 * PROBLEMS: Document difficulties compiling signal.c if a C++
1383 compiler is used for C.
1385 2004-04-07 Werner LEMBERG <wl@gnu.org>
1387 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1389 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1391 Make scripts like nroff.sh and neqn.sh portable across various
1392 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1393 non-POSIX path separators. The idea is to extend those scripts to
1394 decide at run-time (of the script) which path separator to use.
1396 * arch/misc/Makefile.sub: New file.
1397 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1398 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1399 a proper definition of the variable `GROFF_RUNTIME'.
1401 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1402 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1403 (PROGDEPDIRS): New variable.
1405 (PROGDIRS): Add PROGDEPDIRS.
1407 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1408 Don't substitute @SEP@ and @BINDIR@.
1409 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1410 (PATH): Use GROFF_RUNTIME.
1412 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1413 Don't substitute @SEP@ and @BINDIR@.
1414 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1415 (PATH): Use GROFF_RUNTIME.
1417 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1419 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1420 Cygwin which doesn't handle stderr correctly.
1422 2004-03-08 Werner LEMBERG <wl@gnu.org>
1424 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1425 against empty argument. Problem reported by <cgd@broadcom.com>.
1427 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1429 * Makefile.in (SEP): Replaced with...
1430 (RT_SEP, SH_SEP): Separators for the target platform's native path
1431 separator and the build environment, respectively.
1432 (fontpath, tmacpath): Use RT_SEP.
1433 (MDEFINES): Updated.
1435 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1436 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1437 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1438 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1440 2004-03-05 Werner LEMBERG <wl@gnu.org>
1442 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1443 reduce alignment problems with newer printers which use built-in
1444 TrueType fonts (instead of the older Intellifonts). The ideal
1445 solution is to provide a second set of groff metric files, but this
1446 is extremely time-consuming to produce, given that HP's metric
1447 files are very rudimentary.
1449 2004-03-01 Werner LEMBERG <wl@gnu.org>
1451 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1452 s/operand/argument/ in error message.
1454 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1456 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1459 2004-03-01 Antti Kantee <pooka@netbsd.org>
1461 * tmac/s.tmac (XE): Fix error message.
1463 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1465 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1468 * src/roff/groff/pipeline.c: Declare strcasecmp.
1469 (run_pipeline) [_WIN32]: Use function name variants which don't
1471 Fix stream handling.
1473 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1475 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1476 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1477 for platforms which use the native Win32 runtime libraries.
1478 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1480 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1481 QUOTE_ARG_REALLOC_ERROR): Fix string.
1483 * src/preproc/html/pre-html.cpp: Remove declaration of
1485 Don't use __MINGW32__.
1486 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1487 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1488 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1489 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1490 calls to `set_redirection' and `WAIT'.
1491 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1492 Fix calls to `set_redirection' and `save_and_redirect'.
1493 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1494 to `set_redirection' and `save_and_redirect'.
1495 (usage): Fix message.
1496 (makeTempFiles, main): Use `DEBUG_FILE'.
1498 2004-02-21 Werner LEMBERG <wl@gnu.org>
1500 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1502 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1504 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1505 quoting for MSVC's spawn* and exec* functions.
1506 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1507 spawnvp with proper quoting for MSVC.
1509 * src/libs/libgroff/assert.cpp (program_name),
1510 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1511 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1513 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1515 * src/include/error.h (program_name): Declare as `extern "C"'.
1516 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1518 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1520 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1522 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1524 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1526 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1528 (sbasename) [__MSDOS__ || ...]: New function.
1529 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1531 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1532 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1534 Use STDOUT_FILENO instead of hardcoded file handle.
1535 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1537 2004-02-19 Werner LEMBERG <wl@gnu.org>
1539 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1540 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1542 2004-02-18 Werner LEMBERG <wl@gnu.org>
1544 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1545 new font and mapping files.
1547 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1548 Keith Marshall <keith.d.marshall@ntlworld.com>
1550 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1551 an input pipe. This is needed for the MSVC compiler to make troff's
1554 * src/roff/troff/div.cpp: Include nonposix.h.
1555 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1557 2004-02-17 Werner LEMBERG <wl@gnu.org>
1559 * font/devlj4/generate/special.awk: New script.
1560 * font/devlj4/generate/Makefile (S): Use special.awk.
1561 * font/devlj4/*: Regenerated, including the following new files:
1562 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1563 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1564 * NEWS: Document new lj4 fonts and revised hpftodit.
1566 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1568 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1570 2004-01-25 Werner LEMBERG <wl@gnu.org>
1572 * src/libs/libgroff/progname.cpp: Replaced with...
1573 * src/libs/libgroff/progname.c: New file.
1574 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1576 2004-01-17 Werner LEMBERG <wl@gnu.org>
1578 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1580 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1582 * font/devlj4/generate/wingdings.map,
1583 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1584 Use groff glyph names where possible.
1585 * src/devices/grolj4/lj4_font.man: Minor updates.
1587 2004-01-13 Werner LEMBERG <wl@gnu.org>
1589 * tmac/www.tmac (DC): Handle TTY devices.
1591 * doc/webpage.ms: Document viewCVS from ffii.org.
1592 * NEWS, README: Updated.
1594 * src/roff/groff/groff.man: Mention lj4_font man page.
1596 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1598 (FONTS): Add SYMBOL and WINGDINGS.
1599 (SYMBOL, WINGDINGS): New targets.
1601 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1603 * src/devices/grolj4/lj4_font.man: New man page.
1604 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1605 * src/devices/grolj4.man: Mention lj4_font man page.
1607 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1608 * src/utils/hpftodit/hpftodit.man: Document it.
1610 Remove details about fonts (which are now in lj4_font.man).
1612 * font/devlj4/generate/symbol.map,
1613 font/devlj4/generate/wingdings.map: New files.
1615 2004-01-12 Werner LEMBERG <wl@gnu.org>
1617 * README: Mention ffii's viewcvs access.
1619 2004-01-09 Werner LEMBERG <wl@gnu.org>
1621 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1623 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1625 Revert most of the change from 2004-01-03 to better control used
1628 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1629 (text_symbol_sets, special_symbol_sets): New arrays.
1630 (symbol_set_table): New global variable.
1631 (read_symbol_sets): Use search order given in the text_symbol_sets
1632 and special_symbol_sets arrays. If command line flag -a is not
1633 given, search both arrays.
1634 (output_charset): Require x_height_tag only for command line flag -i.
1636 2004-01-06 Werner LEMBERG <wl@gnu.org>
1638 Implement string-valued registers \n[.m] and \n[.M] to return the
1639 name of the current drawing and background color, respectively.
1641 * src/roff/troff/symbol.h: Moved to...
1642 * src/include/symbol.h: Here.
1643 Small fixes to make it work outside of the `troff' directory.
1644 * src/roff/troff/symbol.cpp: Moved to...
1645 * src/libs/libgroff/symbol.cpp: Here.
1646 Small fixes to make it work outside of the `troff' directory.
1648 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1649 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1652 * src/include/color.h: Include symbol.h.
1653 (color): Add new field `nm'.
1654 * src/libs/libgroff/color.cpp (color::color): Updated.
1656 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1657 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1658 src/roff/troff/reg.cpp: Don't include symbol.h.
1660 * src/roff/troff/env.cpp: Don't include symbol.h.
1661 (environment::get_glyph_color_string,
1662 environment_get_fill_color_string): New member functions.
1663 (init_env_requests): Handle `.m' and `.M' registers.
1664 * src/roff/troff/input.cpp: Don't include symbol.h.
1665 (default_symbol): Moved to symbol.cpp/symbol.h.
1666 (do_glyph_color, do_fill_color, define_color): Pass symbol name
1667 to color constructor.
1668 * src/roff/troff/env.h: Updated.
1670 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1671 Document new registers.
1673 2004-01-05 Werner LEMBERG <wl@gnu.org>
1675 * src/roff/troff/node.cpp (space_node::get_breakpoints,
1676 space_node::nbreaks): Protect against zero `next' field.
1678 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
1680 In hpftodit, use the symbol sets offered in the TFM.
1682 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1683 (symbol_set, text_symbol_sets, special_symbol_sets,
1684 symbol_set_table): Removed.
1685 (get_printcode): Removed.
1686 (read_symbol_sets): Initialize `symbol_set' field with
1688 Simplify code to just use the `kind' value.
1689 (output_charset): Improve output formatting.
1690 (dump_symbols): Simplified.
1692 2004-01-02 Werner LEMBERG <wl@gnu.org>
1694 * font/devlj4/generate/text.map: Add more MSL numbers.
1696 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
1698 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1699 (text_symbol_sets): Add more symbol sets.
1700 (debug_flag): New static variable (moved from `main').
1701 (get_printcode, show_symset): New functions.
1702 (main): Remove `debug_flag'.
1703 (output_charset): Use `show_symset'.
1704 (dump_symbols): Use `show_symset'.
1705 Print symsets for all glyphs.
1706 (read_map): Actually call `unicode_to_ucode_make' but this time
1709 2004-01-01 Werner LEMBERG <wl@gnu.org>
1711 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1712 Fix placement of comments.
1714 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
1716 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1717 option `-d' is given.
1718 (output_charset): Improve warning messages to give more information.
1719 (dump_symbols): Make information more precise.
1721 (read_map): Don't call unicode_to_ucode_name; the glyph names must
1722 appear as-is and shouldn't be decomposed.
1724 2003-12-31 Werner LEMBERG <wl@gnu.org>
1726 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1727 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1728 (FONTS): Add TrueType font families Arial and Times New Roman.
1729 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1730 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1733 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
1735 * test-groff.in (SEP): Quote value.
1736 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1737 `tem' to `char*' to avoid deallocation of a pointer to a constant
1738 object which some compilers don't like.
1740 2003-12-31 Werner LEMBERG <wl@gnu.org>
1742 * font/devlj4/generate (text.map, special.map): Rewritten to work
1743 with the new hpftodit version.
1745 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
1747 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1748 set and 8bit character code for all glyphs also.
1750 2003-12-30 Werner LEMBERG <wl@gnu.org>
1752 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1754 2003-12-29 Werner LEMBERG <wl@gnu.org>
1756 More fixes for MSVC compiler.
1758 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1761 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1762 STDERR_FILENO) [_MSC_VER]: Define conditionally.
1763 (getpid) [_MSC_VER]: Remove.
1764 Include direct.h and process.h conditionally.
1766 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1767 parentheses for a_delete.
1769 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1771 * test-groff: Replaced with...
1772 * test-groff.in: This new template to handle path separator
1775 * configure.ac: Check for direct.h and process.h.
1776 Generate test-groff script.
1777 * configure, src/include/config.hin: Regenerated.
1779 2003-12-28 Werner LEMBERG <wl@gnu.org>
1781 Add integral extension glyph.
1782 Add new option `-x' to afmtodit to suppress use of built-in AGL.
1784 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1786 * font/devps/generate/textmap: Provide entry for `integralex' to
1787 override (old) PUA value of the AGL.
1788 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1789 * font/devps/*: Regenerated.
1791 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1792 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1794 2003-12-27 Werner LEMBERG <wl@gnu.org>
1796 Add forgotten `coproduct' symbol (already available for DVI).
1798 * font/devhtml/R.proto, font/devps/generate/textmap,
1799 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1800 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1801 U+2210 (\[coproduct]).
1803 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
1805 hpftodit has been extended to handle TrueType metric files and
1806 more glyphs. See hpftodit.man for more details.
1808 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
1809 ctype.h, and unicode.h.
1810 s/msl/charcode/ everywhere since we now handle Unicode values also.
1811 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1812 Use it where appropriate.
1813 (MULTIPLIER): Replaced with...
1814 (multiplier): New global static variable.
1816 (tag_type): Add more TFM tags.
1817 (tag_name): New array.
1818 (ENUM_TYPE, FLOAT_TYPE): Removed.
1819 (BYTE_TYPE): New value assigned.
1820 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1821 (text_symbol_sets, special_symbol_sets): Extended to cover more
1823 (check_type): Add return value.
1824 (check_units): Add parameters to get ppi and upem values.
1825 Handle TrueType TFM data.
1826 (output_font_name): New function.
1827 (output_charset): Add parameter to handle TFM type.
1828 Handle TrueType TFMs also.
1829 (em_fract): New macro.
1830 (dump_tags): Be much more verbose and handle more tags.
1831 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1832 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1834 (read_map): Add parameter to handle TFM type.
1835 Handle both MSL and Unicode mappings.
1836 (main): Add two new command line options `-a' and `-q'.
1837 Updated to make use of new functions.
1840 * src/utils/hpftodit/hpuni.cpp: New file.
1842 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1845 2003-12-25 Werner LEMBERG <wl@gnu.org>
1847 * src/include/nonposix.h (read) [_MSC_VER]: Define.
1849 2003-12-24 Werner LEMBERG <wl@gnu.org>
1851 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1852 by Michail Vidiassov <master@iaas.msu.ru>.
1854 2003-12-20 Werner LEMBERG <wl@gnu.org>
1856 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1858 Add missing latin-2 glyphs.
1859 * font/devutf8/R.proto: Add missing latin-2 glyphs.
1861 * tmac/troffrc: Load `composite.tmac' earlier.
1863 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1864 u00{53,73}_0327, and u0049_0307.
1865 * tmac/X.tmac: Add u00{47,67}_0306.
1866 * tmac/tty-char.tmac: Use composite glyph names for readability.
1870 * src/include/unicode.h: Remove `extern' keywords.
1872 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
1874 * tmac/latin5.tmac: New file.
1876 2003-12-19 Werner LEMBERG <wl@gnu.org>
1878 Add some glyphs needed for Turkish.
1880 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1883 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
1884 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1885 u00{53,73}_0327, and u0049_0307.
1887 2003-12-18 Werner LEMBERG <wl@gnu.org>
1889 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1891 Remove trailing zeros.
1893 2003-12-17 Werner LEMBERG <wl@gnu.org>
1895 Make \? transparent to end-of-sentence recognition.
1897 * src/roff/troff/input.cc (non_interpreted_node): Add
1898 `ends_sentence' member function.
1900 2003-12-16 Werner LEMBERG <wl@gnu.org>
1902 * doc/groff.texinfo: Document `dt' request correctly.
1903 Other minor typographical improvements.
1905 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
1907 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1909 2003-12-10 Richard Stallman <rms@gnu.org>
1911 * LICENSE: Better wording.
1913 2003-12-09 Werner LEMBERG <wl@gnu.org>
1915 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1916 * configure, NEWS: Updated.
1918 2003-12-08 Werner LEMBERG <wl@gnu.org>
1920 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1922 2003-12-07 Bernd Warken <bwarken@mayn.de>
1926 2003-12-07 Werner LEMBERG <wl@gnu.org>
1928 * INSTALL: Improved.
1930 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1932 Use path separator character of target platform for compiled-in
1935 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1936 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1937 * configure: Regenerated.
1938 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1940 2003-12-05 Werner LEMBERG <wl@gnu.org>
1942 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1943 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1945 2003-12-04 Bernd Warken <bwarken@mayn.de>
1947 * LICENSE: New file.
1949 2003-12-03 Werner LEMBERG <wl@gnu.org>
1951 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1952 ligatures present in AFM files since groff currently only
1953 understands some standard ligatures and nothing else.
1955 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
1957 * src/roff/groff/groff.cpp (main): Don't run the spooler if
1960 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1963 Don't use Unix wait flags.
1965 2003-12-02 Werner LEMBERG <wl@gnu.org>
1967 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1968 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1969 src/roff/troff/uniuni.cpp: Moved to...
1970 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1971 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1972 src/libs/libgroff/uniuni.cpp: Here.
1974 * src/include/Makefile.sub.old (HDRS),
1975 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1976 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1978 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1980 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1984 2003-12-01 Werner LEMBERG <wl@gnu.org>
1986 * groff.texinfo: Document special behaviour of `.vs 0'.
1987 Improve documentation of `cflags' request.
1990 2003-11-29 Werner LEMBERG <wl@gnu.org>
1992 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1993 * font/devlj4/CORONET: Regenerated.
1995 2003-11-24 Werner LEMBERG <wl@gnu.org>
1997 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1998 if processing hyphenation patterns in traditional mode.
1999 Improve error messages.
2001 2003-11-20 Werner LEMBERG <wl@gnu.org>
2003 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2004 troff_output_file::put_char): Fix type of local variable `c'.
2006 2003-11-19 Werner LEMBERG <wl@gnu.org>
2008 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2010 (i_to_a): Removed. libgroff already provides this function.
2011 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2013 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2015 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2018 2003-11-17 Werner LEMBERG <wl@gnu.org>
2020 * COPYING: Use correct version.
2022 2003-11-11 Werner LEMBERG <wl@gnu.org>
2024 LynxOS 4.0.0 doesn't declare vfprintf.
2026 * configure.ac: Check for vfprintf.
2027 * configure: Regenerated.
2028 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2029 * src/include/config.hin: Regenerated.
2031 2003-11-10 Werner LEMBERG <wl@gnu.org>
2033 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2035 * configure.ac: Check for vsnprintf.
2036 * configure: Regenerated.
2037 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2039 * src/include/config.hin: Regenerated.
2041 2003-11-09 Werner LEMBERG <wl@gnu.org>
2043 * aclocal.m4: Updated syntax to autoconf 2.59.
2044 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2045 Don't check for gsos2.
2046 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2047 working abs_top_srcdir and abs_top_builddir.
2049 * configure.ac: Updated syntax to autoconf 2.59.
2050 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2051 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2052 * configure: Regenerated.
2054 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2055 s/@groff_top_builddir@/@abs_top_builddir@/.
2057 * src/roff/groff/pipeline.c (xstrsignal):
2058 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2060 2003-11-07 Werner LEMBERG <wl@gnu.org>
2062 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2063 make start angle smaller than end angle to circumvent a bug in tpic
2064 handling of some versions of dvipdfm (and dvipdfmx).
2066 2003-10-30 Werner LEMBERG <wl@gnu.org>
2068 * src/devices/grops/grops.man: Improve section on creating EPS.
2070 2003-10-29 Werner LEMBERG <wl@gnu.org>
2072 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2075 2003-10-28 Werner LEMBERG <wl@gnu.org>
2077 * doc/groff.texinfo: Fix documentation of `.if'.
2079 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2081 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2082 the form `uniXXXX' also.
2084 2003-10-27 Werner LEMBERG <wl@gnu.org>
2086 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2087 contrib/pic2graph/pic2graph.sh: Implement secure management of
2089 Pass `-P-pletter' to groff to avoid data outside of the converted
2090 area -- some versions of `convert' (for example 5.3.8) don't check
2091 the bounding box of the image but always use a fixed image size
2092 (letter paper format).
2093 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2094 contrib/pic2graph/pic2graph.man: Updated.
2096 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2098 2003-10-26 Werner LEMBERG <wl@gnu.org>
2100 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2101 troff_output::simple_ellipse, troff_output::simple_arc,
2102 troff_output::simple_line, troff_output::simple_spline,
2103 troff_output::simple_polygon): Insert a space before arguments.
2104 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2105 latter doesn't produce a node, so the following `.sp -1' would do
2107 Don't emit `.sp -1' after \M. This also doesn't produce a token
2108 (and we don't have to care about compatibility mode).
2109 (troff_output::set_color, troff_output::reset_color): Don't emit
2110 `.sp -1' after \M and \m.
2112 * src/roff/troff/input.cpp (old_have_input): New global variable.
2113 (input_stack::get): Handle `old_have_input'.
2114 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2115 `trapping_blank_line' depending on `old_have_input', not
2118 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2120 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2121 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2122 default directory names for temporary files.
2123 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2125 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2126 [__MSDOS__] (run_pipeline): Honour environment variables.
2127 Don't use `tmpnam' but `tempnam' to work around messy
2130 * README.MinGW: New file.
2132 2003-10-16 Werner LEMBERG <wl@gnu.org>
2134 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2135 `(*t)->next' without testing validity of `*t'.
2136 (usage): Make it more readable.
2138 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2140 Make html device run under both MS-DOS and Win32.
2142 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2143 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2144 spawn or fork+exec has to be used, and whether parent must sleep
2145 until the child process terminates. Used in
2146 `char_buffer::run_output_filter'.
2147 (copyofstdoutfd): Removed.
2148 (char_buffer): Replace `write_file_html' and `write_file_troff'
2149 member functions with `emit_troff_output' and `run_output_filter'.
2150 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2152 (replaceFd): Replaced with...
2153 (set_redirection): New auxiliary function.
2154 (waitForChild): Replaced with...
2155 (save_and_redirect): New auxiliary function for.
2157 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2160 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2162 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2163 (GROFF_LIBC): New function.
2164 * configure.ac: Call GROFF_LIBC.
2166 * configure: Regenerated.
2168 * src/include/lib.h: Handle __MINGW32__.
2169 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2170 Add macro for `pipe'.
2173 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2176 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2179 2003-10-13 Werner LEMBERG <wl@gnu.org>
2181 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2184 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2187 2003-10-12 Werner LEMBERG <wl@gnu.org>
2189 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2190 src/roff/troff/input.cc (usage): Updated.
2192 * NEWS, doc/groff.texinfo: Updated.
2194 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2196 * src/libs/libgroff/searchpath.cpp
2197 (search_path::open_file_cautious): New function which also handles
2198 `-' as stdin and stdout depending on the access mode.
2199 * src/include/searchpath.h (search_path): Updated.
2201 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2202 * src/devices/grops/ps.h: Include `searchpath.h'.
2203 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2204 Open resource file with `include_search_path.open_file_cautious'.
2205 * src/devices/grops/grops.man: Document new `-I' switch.
2207 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2208 (main), src/devices/grolj4/lj4.cpp (main),
2209 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2211 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2213 (include_search_path): New global variable.
2214 (include_path_append): Removed.
2215 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2216 (do_file): Simplify, using new
2217 `include_search_path.open_file_cautious'.
2219 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2221 (main): Pass arguments to `-I' to both troff and devices.
2222 Improve handling of `-V'.
2223 * src/roff/groff/groff.man: Document changes to -I and -V.
2225 * src/roff/troff/input.cpp (include_search_path): New global
2227 (next_file, source, ps_bbox_request, transparent_file,
2228 process_input_file): Use new
2229 `include_search_path.open_file_cautious'.
2230 (main) Handle `-I' switch.
2231 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2232 Use new `include_search_path.open_file_cautious'.
2233 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2234 * src/roff/troff/troff.man: Document new `-I' switch.
2236 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2238 Support multiple calls of .Lb in LIBRARY section.
2240 * tmac/doc-common (doc-in-library-section): New register.
2241 (doc-section-library): New string.
2242 (Sh): Set `doc-in-library-section'.
2244 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2245 if in LIBRARY section.
2246 * tmac/doc.tmac (doc-save-global-vars): Updated.
2247 * NEWS, tmac/groff_mdoc.man: Updated.
2249 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2251 * tmac/doc-common (doc-default-operating-system): New variable.
2254 2003-09-08 Werner LEMBERG <wl@gnu.org>
2256 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2258 2003-08-31 Werner LEMBERG <wl@gnu.org>
2260 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2261 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2262 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2263 $(DEVFILES) are not empty.
2264 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2266 2003-08-26 Chuck Silvers <chuq@chuq.com>
2268 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2269 with parallel runs of `make'.
2271 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2273 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2274 insert SORT_SEP. With certain combinations of sort specifications,
2275 refer sorted entries in the wrong order. In particular, entries
2276 with a missing field should be be sorted before all entries that
2277 have that field, before refer looks to the next field.
2279 2003-08-23 Werner LEMBERG <wl@gnu.org>
2281 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2282 g++ linker is used. Reported by Mark J. Reed
2283 <mark.reed@turner.com>.
2285 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2287 Add key character `x' to tbl which makes tbl call a user-defined
2288 macro on a table cell.
2290 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2291 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2292 `set_modifier' after printing the compatibility request.
2293 (set_modifier): Print call to `m->macro' if not empty.
2294 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2296 (process_format): Implement cases `x' and `X'.
2297 * src/preproc/tbl/tbl.man, NEWS: Updated.
2299 2003-08-15 Werner LEMBERG <wl@gnu.org>
2301 * doc/groff.texinfo: Minor fixes.
2303 2003-08-09 Werner LEMBERG <wl@gnu.org>
2305 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2307 2003-08-07 Werner LEMBERG <wl@gnu.org>
2309 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2310 argument list to nothing if there is no file to match. Use `ls' as
2311 a protection, similar to autoconf.
2313 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2314 empty argument lists.
2316 * doc/groff.texinfo: Improve documentation how vertical spacing
2317 and line breaks interact.
2320 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2322 2003-08-03 Werner LEMBERG <wl@gnu.org>
2324 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2325 EPS (using eps2eps or similar programs to compute the bounding box).
2327 2003-07-24 Werner LEMBERG <wl@gnu.org>
2329 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2330 * doc/texinfo.tex: Updated from texinfo 4.6.
2331 * README.CVS: From now on we need texinfo 4.6.
2333 2003-07-23 Werner LEMBERG <wl@gnu.org>
2335 Add requests `dei1' and `ami1' for completeness.
2337 * src/roff/troff/input.cc (calling_mode): Remove
2338 CALLING_DISABLE_COMP.
2339 (comp_mode): New enumeration.
2340 (do_define_string, define_string, define_nocomp_string,
2341 append_string, append_nocomp_string): Updated.
2342 (do_define_macro): Add third parameter.
2343 (define_macro, define_nocomp_macro, define_indirect_macro,
2344 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2345 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2348 (init_input_requests): Add `dei1' and `ami1'.
2350 * tmac/trace.tmac: Handle de1 and am1.
2351 (de): Improve tracing message.
2352 (am): Add missing `do'.
2355 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2356 Document new requests.
2358 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2360 Add option -G to .MPIMG to insert a gap between text and the image.
2362 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2363 www-finish-left-ll): Updated.
2364 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2365 (MPIMG): Make option -L and -R optional.
2366 Implement option -G.
2368 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2370 * src/devices/grohtml/post-html.cpp
2371 (html_printer::do_file_components): Don't use `stdout' as lvalue
2372 since it can be a macro.
2374 2003-07-22 Werner LEMBERG <wl@gnu.org>
2376 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2377 the corresponding test in aclocal.m4.
2379 2003-07-21 Werner LEMBERG <wl@gnu.org>
2381 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2382 names but RGB values directly. Otherwise pnmtopng depends on
2383 an external file `rgb.txt' which maps colour names to values.
2385 2003-07-20 Werner LEMBERG <wl@gnu.org>
2387 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2388 * configure, src/include/config.hin: Regenerated.
2390 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2392 2003-07-19 Werner LEMBERG <wl@gnu.org>
2394 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2396 2003-07-18 Werner LEMBERG <wl@gnu.org>
2398 * *.man: Switch to non-compatibility mode temporarily if GNU
2399 syntax extensions are used in the particular man page.
2401 * PROBLEMS: Add solutions for SGR problems.
2403 2003-07-17 Werner LEMBERG <wl@gnu.org>
2405 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2406 used to change the drawing scheme.
2408 * src/devives/grotty/tty.cpp (bold_flag_option,
2409 underline_flag_option, italic_flag_option, reverse_flag_option,
2410 bold_underline_mode_option): New global variables.
2411 (update_options): New function.
2412 (tty_printer::special): Call update_options.
2413 (main): Don't set xxx_flag but xxx_flag_option, then call
2416 2003-07-14 Werner LEMBERG <wl@gnu.org>
2418 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2420 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2422 (hline_char, vline_char): New global variables.
2423 (tty_printer::tty_printer): Initialize them.
2424 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2425 horizontal and vertical lines.
2426 (crossings): New global array.
2427 (tty_printer::end_page): Use it to determine the proper crossing
2428 character for -Tutf8.
2430 2003-07-12 Werner LEMBERG <wl@gnu.org>
2432 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2433 (HTMLDOCFILES): Revert to `pic.html'.
2434 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2436 2003-07-11 Werner LEMBERG <wl@gnu.org>
2438 * doc/pic.ms: Improve documentation of absolute coordinates.
2439 Document absolute positioning of pictures.
2441 * NEWS: Add new pic capability.
2443 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2445 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2448 2003-07-07 Werner LEMBERG <wl@gnu.org>
2450 Implement support for dashed and dotted ellipses in pic. Based on
2451 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2453 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2454 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2455 functions. Ellipse arcs are approximated with circle arcs.
2456 * src/preproc/pic/common.h (common_output): Updated.
2457 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2459 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2461 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2463 2003-07-06 Werner LEMBERG <wl@gnu.org>
2465 Make grotty work on platforms which have unsigned char as the
2466 default for char. Based on a patch by Thomas Klausner
2469 * src/devices/grotty/tty.cpp (schar): New typedef.
2470 Updated calls to declare_ptable and implement_ptable.
2471 (glyph): Use schar for back_color_idx and fore_color_idx.
2472 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2473 (tty_printer::tty_color, tty_printer::tty_printer,
2474 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2476 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2478 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2479 * src/roff/nroff/nroff.man: Updated.
2481 2003-07-05 Werner LEMBERG <wl@gnu.org>
2483 * NEWS, tmac/groff_www.man: Updated.
2484 * doc/Makefile.sub: Updated.
2486 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2488 Implement support for multiple HTML output files.
2490 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2491 -j command line option.
2493 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2495 (file): New fields `new_output_file', `require_links',
2497 (file::file): Updated.
2498 (files::set_file_name, files::set_links_required,
2499 files::are_links_required, files::is_new_output_file,
2500 files::file_name, files::next_file_name): New functions.
2501 (header_desc): New fields `no_of_level_one_headings',
2503 (header_desc::header_desc): Updated.
2504 (header_desc::write_headings): Handle multiple files.
2505 (html_printer::write_header): Save file name in which header occurs.
2506 (html_printer::determine_header_level): Possibly split files on
2508 (html_printer::do_links, html_printer::troff_tag): Updated.
2509 (html_printer::insert_split_file, html_printer::do_job_name,
2510 html_printer::emit_link, html_printer::write_navigation,
2511 html_printer::do_file_components): New functions.
2512 (html_printer::~html_printer): Handle multiple files.
2513 (main): Handle command line option `-j'.
2515 * src/devices/grohtml/grohtml.man: Updated.
2517 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2520 * tmac/www.tmac (JOBNAME): New macro.
2521 * tmac/s.tmac (SH-NO-TAG): New macro.
2522 (@SH): Call SH-NO-TAG.
2525 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2527 * tmac/groff_mdoc.man: Improve documentation of punctuation
2530 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2532 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2534 2003-07-03 Werner LEMBERG <wl@gnu.org>
2536 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2538 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2540 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2541 after `/*' and `*/'.
2543 (Fn, Fo): Reduce indentation in synopsis.
2545 * tmac/doc-common (doc-check-depth): New macro.
2546 (doc-end-macro, Sh, Ss): Use it.
2547 (Cd): Fix behaviour in synopsis.
2548 (In): Make it parsed and callable.
2549 If not in the synopsis, represent the C header file enclosed in
2551 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2552 Use minus, not hyphen.
2554 * tmc/groff_mdoc.man: Updated.
2556 2003-07-01 Werner LEMBERG <wl@gnu.org>
2558 Integrated grap2graph, contributed by Eric S. Raymond.
2560 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2562 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2563 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2565 2003-07-01 Colin Watson <cjwatson@debian.org>
2567 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2568 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2570 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2572 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2574 2003-06-31 Werner LEMBERG <wl@gnu.org>
2576 * doc/Makefile.sub (CLEANADD): Remove all files created by
2577 running `make groff.{pdf,dvi}'.
2579 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2582 2003-06-30 Werner LEMBERG <wl@gnu.org>
2584 * Makefile.in (SHELL): Define as @SHELL@.
2585 (mkinstalldirs): Use $(SHELL).
2586 (MDEFINES): Add $(SHELL).
2587 * Makefile.comm (SHELL): Removed.
2589 2003-06-29 Werner LEMBERG <wl@gnu.org>
2591 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2592 The X11 documentation files use them.
2593 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2595 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2597 * tmac/e.tmac (@C): Handle .ad also.
2599 2003-06-12 Werner LEMBERG <wl@gnu.org>
2601 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2603 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2604 Assign `n' even here. It is possible to construct a node
2605 immediately following an escape character:
2613 2003-06-10 Werner LEMBERG <wl@gnu.org>
2615 * README.WIN32: Removed.
2616 * MANIFEST: Updated.
2618 2003-06-07 Werner LEMBERG <wl@gnu.org>
2620 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2622 2003-06-05 Werner LEMBERG <wl@gnu.org>
2624 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2625 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2627 2003-06-03 Werner LEMBERG <wl@gnu.org>
2629 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2630 is done by the calling function.
2632 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2634 * tmac/X.tmac: Fix definition of `em'.
2636 2003-05-22 Werner LEMBERG <wl@gnu.org>
2638 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2641 2003-05-18 Werner LEMBERG <wl@gnu.org>
2643 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2644 to make items work which consist only of a tag.
2646 2003-05-17 Werner LEMBERG <wl@gnu.org>
2648 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2649 aren't stretched in a tag (this can fail with unformatted boxes).
2650 Instead, insert a break and go back one line.
2652 2003-05-16 Werner LEMBERG <wl@gnu.org>
2654 * src/roff/troff/input.cc (return_macro_request): If called with
2655 argument pop macro twice. We need this to trace `return'.
2657 * tmac/trace.tmac: Handle `return'.
2660 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2663 2003-05-15 Larry Kollar <kollar@alltel.net>
2665 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2666 registers `FPS', `FVS', and `FPD'.
2668 2003-05-15 Werner LEMBERG <wl@gnu.org>
2670 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2673 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
2675 * tmac/groff_mdoc.man: Slight improvements.
2677 2003-05-03 Werner LEMBERG <wl@gnu.org>
2679 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2680 `doc-header-space' after header line if register `cR' is set.
2682 2003-05-02 Werner LEMBERG <wl@gnu.org>
2686 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
2688 * tmac/doc-common (Nd): Use \[em].
2690 2003-05-01 Werner LEMBERG <wl@gnu.org>
2692 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2693 doc-footer-space): Initialize to 0.5i.
2694 (doc-setup-page-layout): Don't set doc-header-space and
2697 2003-04-30 Werner LEMBERG <wl@gnu.org>
2699 * REVISION: Set to 1.
2701 * doc/pic.ms: Document possible problems with `figname'.
2703 2003-04-29 Werner LEMBERG <wl@gnu.org>
2705 Version 1.19 released
2706 =====================
2708 * VERSION: Set to 1.19.
2709 * REVISION: Set to 0.
2710 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2712 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2713 Define charset as `US-ASCII' in html output.
2715 * tmac/www.tmac (ULE): Add missing scaling indicator.
2717 * win32-diffs: Removed.
2719 2003-04-28 Werner LEMBERG <wl@gnu.org>
2721 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2723 Document how to insert discardable whitespace with `.ss'.
2725 2003-04-27 Werner LEMBERG <wl@gnu.org>
2727 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2728 work with plain TeX also.
2730 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2732 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
2734 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2737 2003-04-24 Werner LEMBERG <wl@gnu.org>
2739 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2740 vbox with positive height and zero depth if in TeX mode.
2742 * NEWS: Document glyph name changes for grodvi and grolj4.
2744 2003-04-23 Werner LEMBERG <wl@gnu.org>
2746 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2747 * doc/pic.ms: Fixed.
2749 2003-04-21 Werner LEMBERG <wl@gnu.org>
2751 HP-UX 10.20 has `snprintf' but it isn't declared.
2753 * configure.ac: Add declaration test for snprintf.
2754 * configure: Regenerated.
2755 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2756 * src/include/config.hin: Regenerated.
2758 2003-04-19 Werner LEMBERG <wl@gnu.org>
2760 Add keyword `figname' to pic, specifying the name of the picture
2761 box in TeX mode. Based on a patch from William J Poser
2762 <wjposer@unagi.cis.upenn.edu>.
2764 * src/preproc/pic/pic.y: New token `FIGNAME'.
2765 (macro_name): New rule of type <str>.
2766 (placeless_element): Handle `FIGNAME'.
2767 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2768 * src/preproc/pic/main.cpp (graphname): New global variable.
2769 (do_picture): Initialize `graphname'.
2770 * src/preproc/pic/pic.h: Updated.
2771 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2774 (tex_output::text): Beautify output.
2775 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2776 `shaded' and `outlined' unconditionally.
2777 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2780 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2781 greater is necessary.
2783 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
2785 Add option -r to soelim to avoid emission of `.lf' lines.
2786 Add option -t to produces TeX comment lines instead of `.lf' lines.
2788 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2791 (main): Handle `-r' and `-t'.
2792 (set_location): Handle `raw_flag' and `tex_flag'.
2793 * src/preproc/soelim/soelim.man, NEWS: Updated.
2795 2003-04-17 Werner LEMBERG <wl@gnu.org>
2797 * tmac/hyphenex.sh: Replaced with...
2798 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2801 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2802 if --quiet is used for the configure script.
2803 * configure: Regenerated.
2805 2003-04-16 Werner LEMBERG <wl@gnu.org>
2807 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2808 Add `const' to second argument.
2809 (html_printer::add_table_end): Add `const' to argument.
2810 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2811 `const' to arguments.
2812 * src/devices/grohtml/html-text.h: Updated.
2814 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2815 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2818 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2819 cast for integer constant.
2821 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2822 (writeNbytes): Add `const' to first argument.
2823 (writeString): Add `const' to argument.
2824 (char_buffer::can_see): Add `const' to third argument.
2825 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2826 `const' to argument.
2827 * src/preproc/html/pushback.h: Updated.
2829 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2830 (include_path_append): Add `const' to argument.
2833 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2835 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2836 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2838 (unicode_decompose_init::unicode_decompose_init): Updated.
2839 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2841 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2842 * src/roff/troff/input.cc (process_startup_file): Add `const' to
2845 * tmac/hyphenex.sh: Make script more portable by using a here
2848 2003-04-15 Werner LEMBERG <wl@gnu.org>
2850 Renamed all `*.cc' files to `*.cpp'.
2851 Updated all configuration files, makefiles, and documentation.
2853 2003-04-14 Werner LEMBERG <wl@gnu.org>
2855 * tmac/hyphenex.sh: Slight improvements.
2857 2003-04-13 Werner LEMBERG <wl@gnu.org>
2859 * font/devascii/R.proto, font/devcp1037/R.proto,
2860 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2861 character slots with unnamed glyphs.
2863 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2864 (an-first): New global variable.
2865 (an-header): Emit vertical space between multiple man pages.
2867 2003-04-11 Werner LEMBERG <wl@gnu.org>
2869 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2872 2003-04-10 Werner LEMBERG <wl@gnu.org>
2874 * PROBLEMS: Revised.
2876 2003-04-10 Bernd Warken <bwarken@mayn.de>
2878 * doc/webpage.ms: Improved.
2880 2003-04-09 Werner LEMBERG <wl@gnu.org>
2882 Add register \n[.height] which returns the value of \H.
2883 Add register \n[.slant] which returns the value of \S.
2885 * src/roff/troff/env.cc (init_env_requests): Implement.
2886 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2889 2003-04-08 Werner LEMBERG <wl@gnu.org>
2891 * tmac/html.tmac: Move some of the data into html-end.tmac.
2892 Remove most of the character translations for eqn since html fonts
2893 now cover those characters.
2895 * tmac/html-end.tmac: New file.
2896 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2897 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2898 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2900 2003-04-07 Werner LEMBERG <wl@gnu.org>
2902 * man/groff_out.man: Document negative values of `N' if -Thtml is
2905 2003-04-06 Werner LEMBERG <wl@gnu.org>
2907 * Makefile.comm (depend.temp): Check location of YTABC.
2909 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2911 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2913 (groff_bin_path): Rename to GROFF_BIN_PATH.
2914 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2915 * doc/Makefile.in (TROFFBIN): New variable for troff
2917 (GROFFBIN): New variable for groff binary path.
2918 (groff_bin_path): Rename to GROFF_BIN_PATH.
2919 (TROFF): Use TROFFBIN.
2920 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2921 * doc/Makefile.sub (GROFFBIN): New variable for groff
2923 (groff_bin_path): Rename to GROFF_BIN_PATH.
2924 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2926 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2927 with INSTALL_SCRIPT.
2928 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2929 * Makefile.dev (all): Depend on DEVSCRIPTS.
2930 (install_dev): Likewise.
2931 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2933 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2934 (DEVGENSCRIPTS): New variable to hold generated scripts.
2936 2003-04-05 Werner LEMBERG <wl@gnu.org>
2938 * src/libs/libdriver/input.cc (IntArray::operator[],
2939 IntArray::get_data): Remove meaningless `const' in return value.
2941 * README.CVS: New file.
2943 2003-04-04 Werner LEMBERG <wl@gnu.org>
2945 Check for stdint.h in C++, not in C.
2947 * aclocal.m4 (GROFF_STDINT_H): New function,
2948 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2950 * configure, src/include/config.hin: Regenerated.
2951 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2954 Fix handling of in grohtml. To do this, troff emits `N'
2955 with a negative value, representing the width of the unbreakable
2956 space (only for -Thtml). grohtml then converts this back to
2957 and uses the value of N as its width.
2959 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2960 unbreakable_space_node::tprint): Emit `N-<width>'.
2961 * src/include/printer.h (printer::set_numbered_char): Make it
2963 Make members `font_table' and `nfonts' protected instead of private.
2964 * src/devices/grohtml/post-html.cc
2965 (html_printer::set_numbered_char): New member function.
2968 * src/libs/libgroff/maxfilename.cc:
2969 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2971 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2974 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
2976 * man/roff.man: Small fixes.
2978 2003-04-03 Werner LEMBERG <wl@gnu.org>
2980 Make groff independent from locale's numeric settings.
2982 * configure.ac: Check for `setlocale'.
2983 * configure, src/include/config.hin: Regenerated.
2985 * src/include/lib.h: Handle HAVE_SETLOCALE.
2987 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2988 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2989 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2992 * doc/groff.texinfo: Change dir category to `Typesetting'.
2993 (Man font macros): Mention that there is no space between arguments
2996 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2997 (*printer::change_color, *printer::change_fill_color): Add missing
3000 2003-04-02 Werner LEMBERG <wl@gnu.org>
3002 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3003 html_table::is_gap): Compute table widths after converting border
3004 positions to avoid rounding errors.
3006 2003-04-01 Werner LEMBERG <wl@gnu.org>
3008 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3009 `space_emitted' properly.
3011 2003-03-31 Werner LEMBERG <wl@gnu.org>
3013 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3014 (html_table::set_linelength): Don't add 1.
3015 (html_table::add_indent): Don't subtract 1.
3017 * tmac/html.tmac: Set default page offset to zero.
3019 2003-03-30 Werner LEMBERG <wl@gnu.org>
3021 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3023 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3024 unbreakable_space_node::tprint): New functions.
3025 (troff_output_file): Make space_char_hmotion_mode::tprint and
3026 unbreakable_space_node::tprint to friends.
3027 * src/roff/troff/node.h: Updated.
3029 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3030 in the HTML standard).
3032 2003-03-29 Werner LEMBERG <wl@gnu.org>
3034 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3035 Otherwise, the following code
3044 produces `x a' instead of `xa'. This is a temporary fix, disabling
3045 font changes in diversions for -Thtml.
3047 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3049 (an-do-tag-html): Merge with ...
3050 (an-do-tag): This macro.
3051 Change code slightly to circumvent grohtml bug.
3052 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3054 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3055 html_table::is_gap): Round `width' properly.
3057 * tmac/html.tmac: Provide some default layout parameters for
3060 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3063 2003-03-28 Werner LEMBERG <wl@gnu.org>
3065 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3067 2003-03-27 Werner LEMBERG <wl@gnu.org>
3069 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3072 2003-03-20 Werner LEMBERG <wl@gnu.org>
3074 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3076 * doc/groff.texinfo: Updated.
3078 2003-03-19 Werner LEMBERG <wl@gnu.org>
3080 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3081 TOKEN_END_TRAP>: Reset `have_input'.
3083 2003-03-18 Werner LEMBERG <wl@gnu.org>
3085 * src/roff/groff/groff.man: Mention groff_trace man page.
3087 2003-03-16 Werner LEMBERG <wl@gnu.org>
3089 * Makefile.in (LIBEXT): New variable to indicate the file extension
3090 of library files. Computed heuristically from $(OBJEXT).
3091 (MDEFINES): Add $(LIBEXT).
3092 * Makefile.lib, Makefile.comm: Use it.
3094 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3095 overlong lines into smaller chunks.
3096 (get_binary): New function.
3098 * src/utils/pfbtops/pfbtops.man: Updated.
3100 2003-03-15 Colin Watson <cjwatson@debian.org>
3102 * src/roff/groff/groff.man: Minor syntax fix.
3104 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3106 * src/devices/grops/ps.cc (ps_printer::media_set,
3107 ps_printer::~ps_printer): Handle zero paper width and length.
3109 2003-03-13 Werner LEMBERG <wl@gnu.org>
3111 Add options -p and -l to grodvi.
3113 * src/devices/grodvi/dvi.cc: Include paper.h.
3114 (landscape_flag, user_paper_length, user_paper_width): New global
3116 (dvi_printer::begin_page): Emit `papersize' special.
3117 Set color after initialization of `cur_h' and `cur_v'.
3118 (main): Add options `-l' and `-p'.
3119 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3120 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3122 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3124 2003-03-12 Werner LEMBERG <wl@gnu.org>
3126 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3127 * man/groff_tmac.man: This man page.
3128 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3131 * tmac/X.tmac: Don't load pspic.tmac.
3133 2003-03-11 Werner LEMBERG <wl@gnu.org>
3135 Make variable `pr' local to libdriver/input.cc. Based on a patch
3136 by Bernd Warken <bwarken@mayn.de>.
3138 * src/include/driver.h (pr): Removed.
3140 * src/libs/libdriver/input.cc (pr): New global variable.
3141 (do_file): Deallocate `pr'.
3142 * src/libs/libdriver/printer.cc (pr): Removed.
3144 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3145 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3146 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3147 (main): Don't delete `pr'.
3149 2003-03-10 Werner LEMBERG <wl@gnu.org>
3151 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3152 * tmac/papersize.tmac: New file.
3153 * tmac/troffrc: Include `papersize.tmac'.
3154 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3155 * tmac/an-old.tmac: Set LT to LL by default.
3157 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3158 doc/groff.texinfo: Updated.
3160 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3161 bug which caused all odd iso papers to have wrong dimensions.
3163 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3164 (main) <'p'>: Set `user_paper_width' also.
3165 (ps_printer::media_width, ps_printer::media_height): Use values
3166 given with option `-p'.
3168 2003-03-09 Werner LEMBERG <wl@gnu.org>
3170 * src/include/nonposix.h: Provide default for SET_BINARY.
3172 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3173 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3176 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3177 (main): Treat \r\n as \n.
3179 2003-03-08 Werner LEMBERG <wl@gnu.org>
3181 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3182 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3184 2003-03-07 Werner LEMBERG <wl@gnu.org>
3186 Added support to access more than 256 glyphs in Type 1 fonts.
3188 * src/devices/grops/ps.cc (subencoding): New structure.
3189 (style): Add `sub' field.
3191 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3192 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3195 (ps_printer::set_char): Use `set_subencoding'.
3196 (make_subencoding_name): New function.
3197 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3198 (ps_printer::~ps_printer): Emit subencoding definitions.
3200 * src/devices/grops/psrm.cc (valid_input_table): New array to
3201 properly support EBCDIC.
3202 (white_space): Add `\f'.
3203 (ps_get_line): Change first argument to be of type `string &'.
3204 Updated all callers.
3205 This allows to get lines of arbitrary length.
3206 Use `valid_input_table'.
3207 Remove warning about non-conforming PS line length. This seems
3208 not to be of great importance -- for example, dvips don't emit
3210 (PS_LINE_MAX): Removed.
3211 (matches_comment): Change first argument to be of type `string &'.
3213 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3215 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3216 %AGL_to_unicode, %default_ligatures): New hash tables.
3217 Read all map entries.
3218 Add unencoded characters.
3219 Check for default ligatures if there are no `L' entries.
3220 Print all kern entries.
3221 Print all characters in charset.
3222 * src/utils/afmtodit/afmtodit.man: Updated.
3224 * font/devps/*: Regerated all fonts.
3226 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3227 of characters, just use `.trin'. Otherwise the mapping depends
3228 on the font encoding.
3229 * tmac/ps.tmac: Add `fi' and `fl'.
3230 Improve `Fi' and `Fl'.
3231 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3232 * tmac/Xps.tmac: Fix `em'.
3236 2003-03-04 Werner LEMBERG <wl@gnu.org>
3238 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3241 2003-03-03 Werner LEMBERG <wl@gnu.org>
3243 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3245 * font/devps/generate/textmap: Remove entry `similarequal'.
3246 * font/devps/symbolmap: Updated.
3248 2003-03-02 Werner LEMBERG <wl@gnu.org>
3250 * src/libs/libgroff/font.cc (font::load): Fix error message for
3253 * src/devices/grops/grops.man: Improve documentation of the -b
3256 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3257 `ascii' and `cp1047'.
3259 2003-03-01 Werner LEMBERG <wl@gnu.org>
3261 Document composite glyphs and the `composite' request.
3263 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3265 2003-02-28 Werner LEMBERG <wl@gnu.org>
3267 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3268 * font/devdvi/*EC: Updated.
3270 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3271 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3272 * tmac/troffrc: Load `composite.tmac'.
3273 * tmac/Makefile.sub (NORMALFILES): Updated.
3275 * doc/groff.texinfo (Input Encodings): New section.
3278 2003-02-27 Werner LEMBERG <wl@gnu.org>
3280 * doc/texinfo.tex: New version 2003-02-11.06.
3282 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3283 * tmac/groff_mdoc.man: Fix description of `Dt'.
3285 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3287 * font/devps/prologue.ps: Fix for included Postscript that does
3288 a setpagedevice -- which is now safely ignored.
3292 * src/devices/grops/ps.cc: Now sets the page size in the generated
3293 document. This is done in two ways: Via a %%-comment for gv and
3294 the like, and via a PageSize and setpagedevice for programs that
3295 understands Postscript proper, like ps2pdf.
3297 * src/devices/grops/ps.h: New broken-flag to avoid page size
3298 definition, if required.
3300 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3302 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3303 Not really necessary due to the fix in prologue.ps, but cleaner:
3304 Such information does not belong in an .eps file.
3306 * doc/Makefile.sub: See doc/Makefile.in.
3308 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3310 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3311 instead of P1 since the latter is broken in some versions of netpbm.
3312 * configure: Updated.
3314 2003-02-26 Larry Kollar <kollar@alltel.net>
3316 Make man pages more customizable.
3318 * tmac/an-old.tmac (FT): New register holding footer distance from
3320 (HF): New string holding the default heading font.
3321 (TH): Handle registers `IN' and `SN' set on the command line.
3323 (PT, BT): New strings to customize header and footer lines.
3324 (an-header, an-footer): Use them.
3326 * tmac/groff_man.man: Document changes.
3328 * doc/groff.texinfo: Document man changes.
3329 Document Ultrix extensions of man.
3331 2003-02-26 Werner LEMBERG <wl@gnu.org>
3333 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3334 `have_input' after changing back to old environment.
3336 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3337 function up to be defined before first call. This is necessary to
3338 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3340 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3341 the default font directory also. Based on a patch from James
3342 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3343 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3344 * src/utils/afmtodit/afmtodit.man: Document it.
3348 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3350 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3352 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3353 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3354 * configure.ac: Use it.
3355 * configure: Regenerated.
3356 * Makefile.in: Updated.
3358 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3359 (CLEANADD): Add www.tmac-sed.
3360 (pnmtops_nosetpage): Define default.
3361 (install_data): Handle www.tmac-sed and substitute
3362 @PNMTOPS_NOSETPAGE@.
3363 (stamp-sed): Add www.tmac.
3364 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3365 It now breaks URLs at suitable places.
3366 (www:substring_ok): New register set by...
3367 (www:@test_substring): New macro.
3368 (www:error): New alias to www-error.
3369 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3371 (URL): Use www:url_breaks.
3372 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3373 (CDS, CDE): New macros.
3375 2003-02-25 Werner LEMBERG <wl@gnu.org>
3377 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3380 2003-02-24 Werner LEMBERG <wl@gnu.org>
3382 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3383 can be negative also.
3385 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3387 (read_char_table): Avoid negative ascenders.
3388 (output_charset): Add cast.
3389 * font/devlj4/*: Regenerated.
3391 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3394 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3395 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3397 * font/devdvi/*: Regenerated.
3399 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3400 normal width, while the previously used characters (U+2329 and
3401 U+232A) are classified as wide due to canonical equivalence with the
3402 CJK punctuation characters U+3008 and U+3009.
3404 * font/devutf8/R.proto: Updated.
3405 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3407 * man/groff_char.man: Simplify handling of table traps by
3408 introducing `start block' and `end block' macros.
3409 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3410 (DL): Make it work with Unix troff also.
3411 Fix code values of `la' and `ra'.
3413 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3415 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3417 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3418 New destructor, fixing a major memory leak.
3420 2003-02-22 Werner LEMBERG <wl@gnu.org>
3422 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3423 to be in conformance with Unicode 3.0 and newer.
3425 * font/devlj4/generate/text.map: Add `Eu'.
3426 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3427 * font/devlj4/S: Regenerated.
3429 * man/groff_char.man: Completely rewritten.
3431 * doc/groff.texinfo: Fix description of request and macro arguments.
3433 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3437 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3438 Deallocate `columns' list.
3439 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3441 (text_glob::text_glob_html, text_glob::text_glob_special,
3442 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3443 text_glob::text_glob_tag): Avoid memory leaks.
3444 (text_glob::remember_table): Free memory before reassigning.
3446 2003-02-19 Werner LEMBERG <wl@gnu.org>
3448 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3449 alias `hbar'), the Planck constant over two pi.
3451 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3452 `+e' for position 34.
3453 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3454 `u2662' and `u2661'.
3455 * font/devdvi/{MI,S}: Regenerated.
3456 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3457 * font/devlbp/*: Add `hbar' alias.
3458 * font/devlj4/generate/special.map: Ditto.
3459 * font/devlj4/S: Regenerated.
3460 * font/devps/generate/symbolchars: Add `+e'.
3461 * font/devps/generate/textmap: Fix PS name for `-h'.
3463 * font/devps/symbolmap: Regenerated.
3465 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3467 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3469 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3472 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3474 * tmac/tty-char.tmac: Add `+e'.
3476 2003-02-17 Werner LEMBERG <wl@gnu.org>
3478 Another round trying to really fix problems with `have_input'.
3480 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3481 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3483 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3484 handling if both foreground and background colors are default.
3486 * doc/groff.texinfo (Debugging): Document .lf differences to
3489 2003-02-16 Werner LEMBERG <wl@gnu.org>
3491 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3492 null-bytes in created string.
3494 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3495 alias_macro, lookup_request): Improve warning messages.
3497 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3499 Free `last_image_filename'.
3501 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3503 (imageList::createPage, imageList::createImage): Use `free', not
3505 (imageItem::~imageItem): Free `imageName'.
3506 (addRegDef): Use `strsave', not `strdup'.
3507 (get_resolution): Free `pathp'.
3509 2003-02-15 Werner LEMBERG <wl@gnu.org>
3511 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3514 2003-02-14 Werner LEMBERG <wl@gnu.org>
3516 Add memory management for colors to deallocate unnamed colors
3519 * src/include/color.h (color): New members `free_list' and `next'.
3520 New member functions `new' and `delete'.
3522 * src/libs/libgroff/color.cc: Implement it.
3524 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3525 for array size of new operator.
3527 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3528 redundant comparison.
3530 * src/roff/troff/input.cc (word_space_node::reread,
3531 hmotion_node::reread): Avoid warning about unused parameter.
3532 (reset_output_registers): Remove redundant parameter.
3533 (define_color): Undo change 2003-02-12.
3535 * src/roff/troff/reg.h: Updated.
3537 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3538 output_file::put_filename, real_output_file::really_put_filename,
3539 ascii_output_file::really_print_line,
3540 break_char_node::get_hyphen_list): Avoid warning about unused
3542 (suppress_node::tprint): Updated.
3544 * configure.ac: Check declaration for rand() and srand().
3545 * configure: Regenerated.
3547 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3549 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3552 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3553 to avoid compiler warnings.
3555 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3558 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3560 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3562 Updated all callers.
3564 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3566 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3567 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3569 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3570 Parameter is unused.
3571 (html_printer::add_table_end): Define parameter conditionally.
3572 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3575 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3576 (lbp_printer::set_char): Last parameter is unused.
3578 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3580 2003-02-13 Werner LEMBERG <wl@gnu.org>
3582 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3583 Make \D'f ...' move horizontally again for backwards compatibility.
3584 Replace it with \D'Fg ...' where appropriate to avoid dependency
3585 on horizontal resolution.
3587 * src/roff/troff/input.cc (do_get_long_name): New function.
3588 (get_long_name): Call it.
3590 (read_draw_node): Handle `\D'Fx ...' by calling ...
3591 (read_color_draw_node): New function.
3593 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3595 Pass it to `do_get_long_name' which is used instead of
3598 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3599 unnecessary value guard.
3600 (parse_D_command) <'f'>: Add horizontal shift.
3602 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3603 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3604 (FILL_MAX): Removed.
3606 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3609 2003-02-12 Werner LEMBERG <wl@gnu.org>
3611 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3612 do_zero_width): Push `\n' if closing delimiter is missing.
3614 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3615 <'F'>: Make \F non-transparent at the beginning of line.
3616 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3617 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3620 (define_color): Free color in case of reassignment.
3622 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3623 @DefescListEnd): Use @Var, not @var.
3626 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3628 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3629 `shaded' and `outlined' arrays.
3630 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3631 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3633 (closed_object::set_fill_color): Ditto.
3634 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3636 (troff_output::reset_color): Use a_delete instead of free.
3637 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3639 2003-02-11 Werner LEMBERG <wl@gnu.org>
3641 * doc/groff.texinfo: Improve documentation of `ad'.
3642 Document that \D'f...' is dependent on the horizontal resolution.
3643 * man/groff_diff.man: Improve documentation of \D'f...'.
3645 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3646 compensating \h'...' for \D'f ...' since the latter no longer moves
3648 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3650 2003-02-10 Werner LEMBERG <wl@gnu.org>
3652 Improve error messages for `x F' (and `F') commands.
3654 * src/include/error.h: Add declaration for
3655 `current_source_filename'.
3656 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3657 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3658 parameter for source file string.
3659 Updated all callers.
3661 * src/libs/libdriver/input.cc: Add `current_source_filename'.
3662 (remember_source_filename): New function.
3663 (parse_x_command <'F'>, do_file <'F'>): Use it.
3665 2003-02-09 Werner LEMBERG <wl@gnu.org>
3667 Make grotty not emit warnings about unknown colors more than
3670 * src/devices/grotty/tty.cc: Include `ptable.h'.
3671 (TTY_MAX_COLORS): Removed.
3672 (DEFAULT_COLOR_IDX): Defined to -1.
3673 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3674 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3675 Change `tty_colors' to be a ptable.
3676 First arg of `put_color' is now `char'.
3677 New functions `make_rgb_string' and `tty_color'.
3678 (tty_printer::tty_printer): Use `tty_color'.
3679 (tty_printer::color_to_idx): Return value is now `char'.
3682 * src/include/color.h (color): Add `print_color' member function.
3683 * src/libs/libgroff/color.cc (color::print_color): Implement it.
3685 2003-02-08 Werner LEMBERG <wl@gnu.org>
3689 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3692 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3693 assume that value has been allocated with `new[]', thus use
3694 `a_delete' for deallocation.
3696 * src/libs/libdriver/input.cc (get_integer_arg,
3697 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3700 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3701 * src/libs/libgroff/nametoindex.cc
3702 (character_indexer::named_char_index): Use `new <type>[1]'.
3704 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3706 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3707 (split_text): Use `a_delete'.
3709 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3712 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3713 harmless memory leak.
3714 (hyphen_trie::read_patterns_file): Initialize `buf'.
3715 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3716 Initialize `current_fill_color'and `current_glyph_color'.
3717 * src/roff/troff/glyphuni.cc
3718 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3719 * src/roff/troff/uniuni.cc
3720 (unicode_decompose_init::unicode_decompose_init): Ditto.
3721 * src/roff/troff/uniglyph.cc
3722 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3724 2003-01-26 Werner LEMBERG <wl@gnu.org>
3726 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3727 `access' before calling `unlink'.
3728 (do_file): Handle __EMX__.
3730 * src/include/nonposix.h: Handle __EMX__.
3732 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3733 (fontpath,tmacpath): Use it.
3735 Sorted alphabetically.
3737 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3739 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3742 2003-01-27 Werner LEMBERG <wl@gnu.org>
3744 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3745 New files, copied from gnulib.
3746 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3747 * configure.ac: Updated.
3748 * configure: Regenerated.
3750 * src/include/config.hin: Regenerated.
3751 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3752 Don't define `strcasecmp' as `strcmp'.
3753 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3754 Dont define `strncasecmp' as `strncmp'.
3756 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3759 2003-01-26 Werner LEMBERG <wl@gnu.org>
3761 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3764 2003-01-25 Werner LEMBERG <wl@gnu.org>
3766 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3768 2003-01-24 Werner LEMBERG <wl@gnu.org>
3770 Add US-english hyphenation exceptions (converted from Barbara
3771 Beeton's hyphenation exception log reports which appear irregularly
3774 * tmac/hyphen.us: Updated to latest version.
3775 * tmac/README: Updated.
3776 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3777 * tmac/troffrc: Load `hyphenex.us'.
3778 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3779 * doc/groff.texinfo: Updated.
3781 2003-01-23 Werner LEMBERG <wl@gnu.org>
3783 Improve hyphenation slightly. This is a first step in redesigning
3784 the hyphenation algorithm to make it more flexible (e.g. allowing
3785 kerns and ligatures between the hyphenation character and the
3786 following character -- while not used normally in English, other
3787 languages like German would benefit).
3789 * src/roff/troff/env.cc (environment::hyphenate_line): Use
3790 assertion instead of if-clause.
3791 Let `get_hyphen_list' return the number of involved characters in
3792 the hyphenation pattern instead of computing it directly (which
3793 often yields too small values).
3794 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3795 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3798 2003-01-22 Werner LEMBERG <wl@gnu.org>
3800 Fixing a bug which caused groff to hang if the hyphenation exception
3801 dictionary tried to grow.
3803 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3804 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3805 pointer to dictionary.
3807 2003-01-20 Werner LEMBERG <wl@gnu.org>
3809 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3810 negative left italic correction.
3811 * src/utils/afmtodit/afmtodit.man: Document it.
3813 * font/devps/generate/Makefile (RFLAG): Add `-m'.
3814 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3815 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3819 2003-01-16 Werner LEMBERG <wl@gnu.org>
3823 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
3825 * src/preproc/refer/refer.man: Mention REFER environment variable.
3827 2003-01-05 Werner LEMBERG <wl@gnu.org>
3829 Similar to \[is], the square root glyph (\[sr]) and the square root
3830 extension glyph (\[radicalex]) are now text symbols. The new
3831 mathematical versions are called \[sqrt] and \[sqrtex],
3834 * font/devX*/S: Regenerated.
3835 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3836 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3837 * font/devdvi/EX, font/devdvi/S: Regenerated.
3838 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3839 * font/devlj4/generate/special.map: Add `sqrt'.
3840 * font/devlj4/S: Regenerated.
3841 * font/devps/generate/textmap: Add `sqrt'.
3842 * font/devps/S, font/devps/symbolmap: Regenerated.
3844 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3845 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3846 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3847 overlap horizontally.
3849 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3850 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3853 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3854 and `sqrtex' are overlapping glyphs.
3856 2003-01-04 Werner LEMBERG <wl@gnu.org>
3858 * font/devdvi/generate/texsy.map: Add `is'.
3859 * font/devps/symbolmap: Regenerated.
3860 * font/devdvi/*TC, MI, S: Regenerated.
3862 * tmac/dvi.tmac: Remove `is'.
3864 2003-01-03 Werner LEMBERG <wl@gnu.org>
3866 `is' is now a text symbol (only relevant for dvi). The math variant
3867 can be accessed with `integral'.
3869 * font/devX*/S: Regenerated.
3870 * font/devdvi/generate/texex.map: Remove `is'.
3871 * font/devdvi/EX: Updated.
3872 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3873 * font/devlj4/generate/special.map: Ditto.
3874 * font/devlj4/S: Regenerated.
3875 * font/devps/generate/textmap: Add `integral'.
3876 * font/devps/S: Regenerated.
3878 * tmac/dvi.tmac: Define `is'.
3880 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3882 * src/preproc/tbl/main.cc (process_format): Fix error message.
3884 2003-01-02 Werner LEMBERG <wl@gnu.org>
3886 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3887 * font/devps/textmap: Fix entries for `ne' and `nc'.
3888 * font/devps/symbolmap: Regenerated.
3890 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3891 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3892 `38', `58', `78', `-+', `|=', `nc', `ne'.
3894 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3895 Use `schar' for `aq'.
3896 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3897 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3898 * tmac/tty.tmac: Add `ne'.
3900 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3901 for fallback glyphs.
3903 2002-12-29 Werner LEMBERG <wl@gnu.org>
3907 * font/devX*/*: Regenerated.
3908 * font/devdvi/generate/ec.map: Remove `eq'.
3909 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3910 Assign `|=' to position 39.
3911 * font/devdvi/*EC, S: Regenerated.
3912 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3913 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3914 Assign `|=' to position 549.
3915 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3917 Add `uni2243' for `|='.
3919 * tmac/ec.tmac: Add `eq'.
3920 * tmac/dvi.tmac: Add `=~'.
3921 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3924 2002-12-21 Werner LEMBERG <wl@gnu.org>
3926 * font/devdvi/generate/tc.map: Remove `**'.
3927 * font/devdvi/*TC: Regenerated.
3928 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3930 * font/devutf8/NOTES: Updated.
3932 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3933 Don't give default parameter to `set_macro'.
3934 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3935 instead of `set_macro'.
3936 (charinfo::setx_macro): Implement it.
3937 (charinfo::set_macro): Don't change `mode'.
3939 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3940 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3941 * tmac/dvi.tmac: Define `!=' with `.schar'.
3943 2002-12-20 Werner LEMBERG <wl@gnu.org>
3945 * font/devX*/S: Regenerated.
3946 * font/devdvi/generate/ec.map: Remove `pl'.
3947 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3948 * font/devdvi/*{TC,EC}: Regenerated.
3949 * font/devhtml/R.proto: Add `-+'.
3950 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3951 * font/devlbp/*: Remove `or'.
3952 * font/devlj4/generate/special.map: Remove `or'.
3953 * font/devlj4/S: Regenerated.
3954 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3955 `seveneighths', `threeeighths'.
3957 Replace `minusplus' with `uni2213'.
3958 * font/devps/symbolmap: Regenerated.
3959 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3962 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3964 * src/roff/troff/node.cc (troff_output_file::put_char_width):
3965 Call glyph_color and fill_color even if tcommand_flag isn't set.
3966 (make_node, node::add_char): Check not ci->is_fallback but
3969 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3970 * tmac/ec.tmac: Add .rchar entry for `f/'.
3971 Don't remove `12', `14', `34'.
3972 Define `pl' to be always roman.
3973 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3974 Define `18', `38', `58', `78'.
3975 * tmac/tty.tmac: Add `-+'.
3976 * tmac/dvi.tmac: Define `f/'.
3977 (dvi-frac): Use `f/'.
3978 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3979 Define `18', `38', `58', `78'.
3981 2002-12-15 Colin Watson <cjwatson@debian.org>
3983 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3985 2002-12-10 Werner LEMBERG <wl@gnu.org>
3987 Add glyph `tno', a textual variant of `no'.
3989 * font/devX*/*: Regenerated.
3990 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3991 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3992 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3993 * font/devdvi/*: Regenerated.
3994 * font/devlbp/*: Add `tno'.
3995 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3996 * font/devlj4/*: Regenerated.
3997 * font/devps/generate/textmap: Replace `no' with `tno'.
3998 * font/devps/generate/symbolchars: Add `no'.
3999 * font/devps/*: Regenerated.
4001 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4003 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4004 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4008 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4009 Add definition for `sd'.
4010 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4012 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4014 2002-12-08 Werner LEMBERG <wl@gnu.org>
4016 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4017 mode to avoid rounding errors.
4018 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4020 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4021 src/roff/troff/troff.man: Improve documentation of -T.
4023 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4025 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4026 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4028 2002-12-06 Werner LEMBERG <wl@gnu.org>
4030 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4031 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4032 Scaling Euro.sansserif glyphs down to have the same height as
4034 Removed unnecessary points; added some extrema.
4036 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4039 2002-12-04 Werner LEMBERG <wl@gnu.org>
4041 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4042 and `Euro.symbol.bold.slanted'.
4043 Improve some glyph offsets and widths.
4044 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4046 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4048 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4051 * tmac/europs.tmac: Updated to new glyph indices.
4052 Use Euro.symbol for font familiy `A'.
4054 * doc/groff.texinfo: Minor improvements.
4056 2002-12-02 Werner LEMBERG <wl@gnu.org>
4058 * font/devdvi/generate.tc.map: s/%O/%0/.
4059 * font/devdvi/*TC: Regenerated.
4061 * src/roff/troff/div.cc (init_div_requests): Sorted.
4063 * tmac/dvi.tmac: Remove `Ye'.
4064 * tmac/ec.tmac: Remove `Ye'.
4065 Add .rchar entry for `de'.
4067 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4068 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4071 2002-11-30 Werner LEMBERG <wl@gnu.org>
4073 Add PS font for various Euro glyphs.
4075 * font/devps/generate/freeeuro.sfd: New master font file for
4077 * font/devps/generate/sfdtopfa.pe: New conversion script for
4079 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4080 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4081 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4083 * font/devps/EURO: Generated from `freeeuro.afm'.
4084 * font/devps/download: Add `freeuro.pfa'.
4085 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4088 * tmac/europs.tmac: New file.
4089 * tmac/ps.tmac: Include `europs.tmac'.
4090 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4092 2002-11-29 Werner LEMBERG <wl@gnu.org>
4094 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4095 * font/devdvi/S: Regenerated.
4096 * font/devhtml/R.proto: Fix `CR' and `ci'.
4098 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4100 * font/devps/symbolmap: Regenerated.
4101 * font/devutf8/R.proto: Fix `CR' and `ci'.
4103 * font/devutf8/NOTES: Updated.
4105 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4108 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4110 * tmac/dvi.tmac: Add `lh' and `rh'.
4111 * tmac/Xps.tmac: Fix `lh' and `rh'.
4112 * tmac/X.tmac: Add `OK'.
4113 * tmac/lj4.tmac: Ditto.
4115 2002-11-24 Werner LEMBERG <wl@gnu.org>
4117 * font/devX*/S: Regenerated.
4118 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4119 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4120 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4121 * font/devdvi/S: Regenerated.
4122 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4123 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4124 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4125 `bracketleftbt', `bracketrighttp', `bracketrightex',
4126 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4127 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4128 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4130 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4131 * font/devutf8/NOTES: Updated.
4132 * font/devlj4/generate/special.map: Add glyph `braceex'.
4133 * font/devlj4/S: Regenerated.
4135 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4137 2002-11-14 Werner LEMBERG <wl@gnu.org>
4139 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4142 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4144 * doc/texinfo.tex: New version from texinfo 4.3.
4145 * doc/groff.texinfo: Updated for texinfo 4.3.
4146 Use @tie{} where appropriate.
4147 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4148 * font/devdvi/generate/tc.map: Remove `rn'.
4149 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4150 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4152 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4153 font/devX75-12/*: Regenerated.
4155 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4156 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4157 Improve definition of `an'.
4158 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4160 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4161 * tmac/X.tmac: Add definition for `or'.
4162 * tmac/Xps.tmac: Undo change 2002-11-05.
4163 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4165 2002-11-11 Werner LEMBERG <wl@gnu.org>
4167 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4170 2002-11-10 Werner LEMBERG <wl@gnu.org>
4172 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4173 defines a glyph which is searched after the check for fonts declared
4174 with `.special' (and before the check for all mounted special
4175 fonts). `fschar' defines a glyph for a particular font which is
4176 searched after the check for fonts declared with `.fspecial' (and
4177 before the check for fonts declared with `.special'). `rfschar'
4178 removes glyphs defined with `fschar'.
4180 * src/roff/troff/token.h (char_mode): New enum.
4181 Declare do_define_character.
4182 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4184 (charinfo::is_fallback): Updated.
4185 (charinfo::is_special): New method.
4186 * src/roff/troff/input.cc (do_define_character): Add and use
4187 optional second parameter used as a prefix for font-specific glyph
4189 (define_character, define_fallback_character): Updated.
4190 (define_special_character): New function.
4191 (init_input_requests): Add `schar'.
4192 (charinfo::charinfo, charinfo::set_macro): Updated.
4193 * src/roff/troff/node.cc: Include `stringclass.h'.
4194 (make_glyph_node): Handle special glyphs defined with `.schar' and
4196 (define_font_special_character, remove_font_special_character): New
4198 (init_node_requests): Sorted.
4199 Add `fschar' and `rfschar'.
4200 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4201 Document new requests.
4203 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4204 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4206 2002-11-08 Werner LEMBERG <wl@gnu.org>
4208 Added new font `SC' (cmtex10) to devdvi.
4210 * devdvi/generate/Makefile (FONTS): Add `SC'.
4212 * devdvi/generate/textex.map: New map file for cmtex.
4214 * devdvi/Makefile.sub (DEVFILES): Updated.
4215 * tmac/dvi.tmac: Add fspecial entries for SC.
4216 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4217 found before `S' since the font position of `SC' is lower due to the
4218 gaps in DESC's `font' line.
4219 * tmac/ec.tmac: Add a `special' call.
4222 * font/devhtml/R.proto: Remove double entry for `ti'.
4223 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4224 * tmac/tty-char.tmac: Remove entry for `bq'.
4225 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4226 * tmac/ec.tmac: Don't remove `aq' glyph.
4227 * tmac/X.tmac: Fix entry for `em'.
4228 Add entries for `fo' and `fc'.
4229 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4231 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4232 documentation of `special' and `fspecial' requests.
4234 2002-11-05 Werner LEMBERG <wl@gnu.org>
4236 * font/devascii/R.proto, font/devcp1047/R.proto,
4237 font/devlatin1/R.proto: Remove entry for `.i'.
4238 * font/devdvi/generate/textt.map: Add entry for `ad'.
4239 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4240 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4241 We need this for getting kerning values to compose `/l' and `/L'.
4242 * font/devdvi: Regenerated font definition files for CM fonts.
4243 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4244 * font/devutf8/R.proto: Ditto.
4245 Remove double entry for `ti'.
4247 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4248 for (groff) ligatures, `la', and `ra'.
4249 Add "'C", "'c", `IJ', and `ij'.
4250 Remove double entry for `ti'.
4251 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4253 Add "'C", "'c", `IJ', and `ij'.
4254 Fix entries for (groff) ligatures, `la', and `ra'.
4256 * tmac/ps.tmac (ps-achar): New macro.
4257 Define "'c" and "'C".
4258 * tmac/tty.tmac: Add entry for `.i'.
4259 * tmac/X.tmac (X-achar): New macro.
4260 Define "'c", "'C", and `:Y'.
4261 Add entries for `IJ' and `ij'.
4262 * tmac/Xps.tmac (Xps-achar): New macro.
4263 Define "'c" and "'C".
4264 Add entries for `IJ' and `ij'.
4265 * tmac/lbp.tmac (lbp-achar): New macro.
4266 Add fallback characters for all groff ligatures and many other
4268 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4269 Add entries for `/l' and `/L'.
4270 Define "'c" and "'C".
4271 Add entries for `IJ' and `ij'.
4273 2002-11-02 Larry Kollar <kollar@alltel.net>
4275 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4277 2002-11-02 Werner LEMBERG <wl@gnu.org>
4279 Adding support for composite glyphs: \[xxx yyy ...] and the
4280 `composite' request.
4282 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4283 to Unicode-based glyph names.
4284 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4285 glyph names to groff glyph names.
4286 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4287 Unicode-based glyph names.
4288 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4289 for handling Unicode glyph names.
4290 * src/roff/troff/input.cc: Include unicode.h.
4291 (composite_glyph_name): New function.
4292 (token::next) <'['>: Handle Unicode glyph names and composite
4294 (composite_dictionary): New dictionary for the `composite' request.
4295 (composite_request): Implement `composite' request.
4296 (init_input_requests): Add `composite'.
4297 Alphabetically sorted.
4298 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4300 (init_env_requests): Alphabetically sorted.
4301 Removed `tas' and `tar' (already commented out).
4302 * src/roff/troff/Makefile.sub: Updated.
4304 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4306 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4309 2002-10-29 Werner LEMBERG <wl@gnu.org>
4311 Fix computation of .trunc register. Additionally, its value (and
4312 the value of the .ne register) is now always set before entering the
4315 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4316 `needed_space' before calling `space'.
4317 (top_level_diversion::space): Remove special code for 'sp before the
4319 Call `begin_page' with the discarded space as a parameter.
4320 (top_level_diversion::begin_page): Add optional parameter to set
4322 * src/roff/troff/div.h: Updated.
4324 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4327 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4328 (LP): Remove superfluous call to `br'.
4329 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4330 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4332 2002-10-26 Werner LEMBERG <wl@gnu.org>
4334 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4335 (doc-setup-header): Don't set page register `%'.
4336 * tmac/doc-nroff: Remove variable `C'.
4337 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4338 (doc-setup-header): Don't set page register `%'.
4340 * tmac/doc-common (doc-header): Call `ns'.
4341 (doc-paragraph): Protect .sp with .br so that it survives traps
4342 possibly set by the user.
4343 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4345 * tmac/doc*: Replace ' with . for consistency if no effect.
4347 2002-10-26 Werner LEMBERG <wl@gnu.org>
4349 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4350 so that it survives traps possibly set by the user.
4352 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4353 (troff_output_file::set_font): Call flush_tbuf if necessary.
4354 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4355 flush_tbuf and do_motion only if necessary.
4356 (troff_output_file::start_special,
4357 troff_output_file::put_char_width, troff_output_file::put_char,
4358 troff_output_file::draw): Updated.
4359 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4360 vmotion_node::tprint): Undo change 2002-10-23.
4362 2002-10-25 Werner LEMBERG <wl@gnu.org>
4364 * tmac/www.tmac (DC): Fix case of overlapping images.
4366 2002-10-23 Werner LEMBERG <wl@gnu.org>
4368 * src/roff/troff/node.cc (troff_output_file::fill_color,
4369 troff_output_file::glyph_color): Set current color before testing
4371 (troff_output_file::put_char_width, troff_output_file::put_char,
4372 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4374 (troff_output_file::file_color, troff_output_file::glyph_color):
4376 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4377 vmotion_node::tprint): Move first, then call fill_color.
4379 2002-10-20 Werner LEMBERG <wl@gnu.org>
4381 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4382 possible to use multiple main macro packages.
4384 2002-10-19 Werner LEMBERG <wl@gnu.org>
4386 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4387 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4388 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4390 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4391 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4393 2002-10-16 Werner LEMBERG <wl@gnu.org>
4395 * NEWS, doc/webpage.ms: Updated.
4397 2002-10-14 Werner LEMBERG <wl@gnu.org>
4399 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4400 troff_output_file::put_char, troff_output_file::fill_color,
4401 troff_output_file::glyph_color): Handle case where color pointer
4404 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4406 Add the new -r option to grotty. It is similar to the -i option
4407 except it tells grotty(1) to use the "reverse video" attribute to
4408 render italic fonts.
4410 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4411 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4412 (tty_printer::make_underline, tty_printer::put_color,
4413 tty_printer::end_page): Use it.
4414 (main): Add -r switch.
4416 * src/devices/grotty/grotty.man: Document it.
4418 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4420 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4421 cast to `unsigned char' to properly read patterns with 8bit
4424 2002-10-08 Werner LEMBERG <wl@gnu.org>
4426 * REVISION: Increased to 2.
4428 Version 1.18.1 released
4429 =======================
4431 2002-10-08 Werner LEMBERG <wl@gnu.org>
4433 * doc/webpage.ms, NEWS: Updated.
4435 2002-10-07 Werner LEMBERG <wl@gnu.org>
4437 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4438 suppress additional whitespace after the header.
4440 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4443 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4445 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4447 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4448 (Dt): Use it to improve language localization (especially Russian
4451 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4453 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4454 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4456 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4458 Call `picurve' for BSPLINE.
4459 (HGPrintElt): Handle BSPLINE.
4460 * src/preproc/grn/README: Document it.
4462 2002-10-03 Werner LEMBERG <wl@gnu.org>
4464 * src/roff/troff/node.cc (break_char_node::col): New variable.
4465 Updated constructor.
4466 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4468 (space_node::space_node): Remove assertion.
4469 (break_char_node::add_self): Pass color argument to space node.
4470 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4472 * src/roff/troff/env.cc (environment::do_break,
4473 environment::add_padding): Ditto.
4475 2002-10-02 Werner LEMBERG <wl@gnu.org>
4477 Redesigning color support in troff. Colors are no longer
4478 represented as separate nodes but are now part of glyph nodes and
4479 friends. This fixes the current formatting misbehaviour due to the
4480 changes introduced on 2002-09-20. Some extra code is necessary for
4481 proper grotty support: Without adding color variables to
4482 space-related nodes, the background color would be changed too late.
4484 * src/roff/troff/node.h, src/roff/troff/node.cc:
4485 s/current_pagecolor/current_fill_color/.
4486 s/current_glyphcolor/current_glyph_color/.
4487 (glyph_color_node, fill_color_node): Removed.
4488 (node::get_glyph_color, node::get_fill_color): New virtual member
4490 (space_node::col): New variable.
4491 Updated constructors of space_node and derived classes accordingly.
4492 (hmotion_node::col): New variable.
4493 Updated constructors of hmotion_node and space_char_hmotion_node
4495 (vmotion_node::col): New variable.
4496 Updated constructor accordingly.
4497 (draw_node::gcol, draw_node::fcol): New variables.
4498 Updated constructor accordingly.
4499 (special_node::gcol, special_node::fcol): New variables.
4500 Updated constructors accordingly.
4501 (troff_output_file::put_char, troff_output_file::put_charwidth,
4502 troff_output_file::draw): Set glyph and fill color.
4503 (troff_output_file::start_special): Set glyph and fill color.
4504 Always set current font.
4505 (troff_output_file::fill_color, troff_output_file::glyph_color):
4506 Don't call `do_motion'.
4507 (glyph_node::gcol, glyph_node::fcol): New variables.
4508 Updated constructors of glyph_node and ligature_node accordingly.
4509 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4511 (glyph_node::merge_glyph_node,
4512 kern_pair_node::add_discretionary_hyphen,
4513 node::add_discretionary_hyphen): Updated.
4514 (break_char_node::merge_self): Updated.
4515 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4516 vmotion_node::tprint): Handle color.
4517 (make_glyph_node, make_node, node::add_char): Updated.
4519 * src/roff/troff/env.cc (environment::space_newline,
4520 environment::space, environment::output_line, environment::do_break,
4521 environment::make_tab_node, environment::add_padding, title):
4523 (environment_switch, environment_copy): Don't add color nodes.
4525 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4527 (token::next): Updated.
4528 \m and \M now are as transparent as \s.
4529 (process_input_stack, token::add_to_node_list, token::process,
4530 read_draw_node): Updated.
4531 (charinfo_to_node_list): Don't add color nodes.
4533 * doc/groff.texinfo: Updated.
4535 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4537 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4540 2002-09-27 Colin Watson <cjwatson@debian.org>
4542 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4544 2002-09-23 Werner LEMBERG <wl@gnu.org>
4546 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4548 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4549 (linewidth_factor): New global variable.
4550 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4552 (long_options): Add -w/--linewidth option.
4554 (main): Handle -w option to set linewidth_factor.
4555 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4558 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4560 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4562 Fixed a bug in the line thickness setting code.
4564 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4566 (lbp_printer::set_line_thickness): Pass environment as second
4568 Implement it actually.
4569 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4570 and `set_line_thickness, depending on the current font size.
4572 2002-09-21 Werner LEMBERG <wl@gnu.org>
4574 Some Debian patches.
4576 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4577 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4580 2002-09-20 Werner LEMBERG <wl@gnu.org>
4582 * configure: Regenerated with autoconf 2.54.
4584 2002-09-20 Werner LEMBERG <wl@gnu.org>
4586 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4588 Rename cur_fill_color to fill_color.
4589 * src/roff/troff/env.cc: Updated.
4591 2002-09-20 Werner LEMBERG <wl@gnu.org>
4593 * src/roff/troff/env.cc (title): Copy color status after processing
4595 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4596 fill color nodes to reset colors properly.
4598 * tmac/www.tmac (DC): Fix color handling.
4600 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4601 * doc/groff.texinfo: Fixing documentation of `tl' request.
4602 * doc/webpage.ms: Updated.
4604 2002-09-19 Werner LEMBERG <wl@gnu.org>
4606 * src/roff/troff/env.cc (environent_switch, environment_copy):
4607 Emit glyph and fill color nodes to initialize colors properly.
4609 2002-09-17 Colin Watson <cjwatson@debian.org>
4611 * src/roff/troff/env.cc (environment::set_glyph_color,
4612 environment::set_fill_color): Fix typo which prevented \m[] work
4615 2002-09-17 Werner LEMBERG <wl@gnu.org>
4617 Add left and right italic correction to non-slanted PS fonts. This
4618 is an experimental feature to improve image rendering of grohtml.
4620 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4621 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4622 * font/devps/*: All non-slanted fonts regenerated.
4625 2002-09-16 Werner LEMBERG <wl@gnu.org>
4627 Add a site-specific font directory.
4629 * Makefile.in (localfontdir, legacyfontdir): New variables.
4630 (fontpath): Use them.
4631 (MDEFINES, uninstall_dirs): Updated.
4632 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4633 Remove `FONTPATH' and `MACROPATH'.
4635 * src/roff/troff/troff.man, NEWS: Updated.
4636 * doc/groff.texinfo (Font Directories): New section.
4639 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4640 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4641 src/preproc/grn/grn.man: Minor fixes.
4643 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4644 Remove unused variable.
4646 2002-09-11 Werner LEMBERG <wl@gnu.org>
4648 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4649 * man/groff_out.man: Fix documentation of 'N'.
4651 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4653 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4654 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4656 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4657 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4658 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4659 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4660 PRE_TAG>: Call `begin' with `FALSE'.
4662 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4664 * src/libs/libgroff/string.cc (string::extract): Fix position of
4665 terminating null byte.
4667 2002-09-08 Werner LEMBERG <wl@gnu.org>
4669 Add global option `nospaces' to tbl so that leading and trailing
4670 spaces in data items are ignored.
4672 * src/libs/libgroff/string.cc (string::remove_spaces): New member
4673 function to remove leading and trailing spaces.
4674 * src/include/stringclass.h: Updated.
4676 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4678 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4680 Fix typo in error messages.
4681 (process_data): Implement `nospaces' option.
4682 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4684 2002-09-07 Werner LEMBERG <wl@gnu.org>
4686 * src/include/config.hin: Add `HAVE_ISATTY'.
4687 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4689 * src/libs/libgroff/tmpname.cc: Include `time.h'.
4690 * src/libs/libdriver/input.cc (Char): Add `operator==' and
4691 `operator!=' for `char'.
4692 * doc/groff.texinfo: Replace @ifnottex block for top node with
4695 2002-09-06 Werner LEMBERG <wl@gnu.org>
4697 * doc/Makefile.in (.texinfo.html): Add -I switch.
4698 * doc/groff.texinfo: Add @ifnottex block for top node to make
4699 translation to HTML work.
4701 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
4703 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4704 (get_papersize, determine_vertical_offset): Removed.
4705 (char_buffer::do_image): Always specify letter size.
4707 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4710 2002-09-05 Werner LEMBERG <wl@gnu.org>
4712 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4713 default indentation.
4715 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
4717 * src/preproc/html/pre-html.cc (imageList::createPage): Use
4719 (generateImages): Clean up push-back buffer.
4721 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4723 * doc/groff.texinfo: Minor fixes.
4725 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4727 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4728 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4730 (determine_vertical_offset): Use LETTER_LENGTH.
4731 (createPage): Moved to ...
4732 (imageList::createPage): This.
4733 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4734 (imageList::getMaxX): New function.
4735 (createImage): Moved to ...
4736 (imageList::createImage): This.
4737 (imageList::createImages): New function.
4738 (generateImages): Read `maxx' directly.
4740 (scanArguments): Don't specify `gsPaper' for `-o'.
4741 (makeTempFiles): Call `xtmpfile' with the last argument set to
4744 2002-08-24 Werner LEMBERG <wl@gnu.org>
4746 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4747 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4748 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4749 * src/preproc/html/pushback.cc: Include nonposix.h.
4750 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4753 2002-08-23 Werner LEMBERG <wl@gnu.org>
4755 Use $(OBJEXT) for the object file extension.
4757 * Makefile.comm (.SUFFIXES): Add .obj.
4758 (.cc.obj, .c.obj): New implicit rules.
4759 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4760 (MDEFINES): Add EXEEXT and OBJEXT.
4761 * */Makefile.sub: s/.o/.$(OBJEXT)/.
4763 2002-08-22 Werner LEMBERG <wl@gnu.org>
4765 * INSTALL: Mention texinfo 4.2 as a prerequisite.
4767 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4769 * src/devices/grohtml/post-html.cc (colType): Make enum global to
4771 (html_printer::update_min_max, html_printer::add_table_end): New
4773 (html_printer::lookahead_for_tables): Use them.
4774 Reset page offset correctly.
4775 (html_printer::~html_printer): Add creation of creator comment up.
4777 2002-08-20 Werner LEMBERG <wl@gnu.org>
4779 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4780 * man/groff_tmac.man: Fix typos.
4781 * man/groff_font.man: Minor reordering.
4782 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4784 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4786 Avoid endless loops while scanning for tables.
4788 * src/devices/grohtml/post-html.cc (list::insert): Set
4790 (html_printer::next_horiz_pos): Add `text_glob' argument; update
4792 Return immediately if that argument is NULL.
4793 (html_printer::calc_nf): Don't test if `g' is NULL.
4794 (html_printer::lookahead_for_tables): Use
4795 `glyphs.move_right_get_data'.
4796 Don't test if `g' is NULL.
4798 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4800 A better fix, replacing fix 2002-08-15, for increasing SIZE.
4802 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4804 (char_block::char_block): Allocate `buffer'.
4805 (char_buffer::add_string): Use it.
4807 2002-08-15 Werner LEMBERG <wl@gnu.org>
4809 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4810 src/devices/grodvi/grodvi.man: Document default line thickness.
4812 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
4814 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4817 2002-08-14 Werner LEMBERG <wl@gnu.org>
4819 * doc/webpage.ms: Updated.
4821 2002-08-09 Werner LEMBERG <wl@gnu.org>
4823 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4826 2002-08-08 Aaron Campbell <aaron@monkey.org>
4828 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4831 2002-08-08 Werner LEMBERG <wl@gnu.org>
4833 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4836 Don't push back a space but a newline onto the stack.
4838 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
4840 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4843 * src/devices/grohtml/post-html.cc (html_printer::end_font,
4844 html_printer::start_font): Handle them.
4845 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4847 (html_text::do_bold): Don't reset italic and tt.
4848 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4849 * font/devhtml/DESC.proto: Add those fonts.
4850 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4852 2002-08-07 Werner LEMBERG <wl@gnu.org>
4854 * MORE.STUFF: Added gpresent.
4856 * tmac/trace.tmac: Show nesting level by a corresponding amount of
4857 whitespace before printing the logging message.
4859 2002-07-31 Colin Watson <cjwatson@debian.org>
4861 * src/devices/grohtml/html-table.cc (html_table::finish_row):
4862 Initialize `n' to zero. This fixes a segfault on ARM.
4864 2002-07-30 Werner LEMBERG <wl@gnu.org>
4866 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4868 2002-07-29 Werner LEMBERG <wl@gnu.org>
4870 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4873 2002-07-28 Colin Watson <cjwatson@debian.org>
4875 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4877 (html_printer::html_printer): Initialize `pointsize'.
4879 2002-07-26 Werner LEMBERG <wl@gnu.org>
4881 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4883 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4884 (gnu.eps): Add -rle switch to pnmtops.
4885 (distfiles): Add gnu.eps and gnu.png.
4887 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
4889 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4892 2002-07-24 Werner LEMBERG <wl@gnu.org>
4894 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4895 ' \+' but ' *' for sed.
4896 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4898 2002-07-23 Werner LEMBERG <wl@gnu.org>
4900 * doc/groff.texinfo: Document `papersize' keyword.
4901 * NEWS, man/groff_font.man: Updated.
4903 2002-07-23 Colin Watson <cjwatson@debian.org>
4905 Extend papersize keyword to accept more than a single entry. The
4906 first valid will be used.
4908 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4909 (font::scan_papersize): Really skip final newline.
4910 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4912 2002-07-23 Werner LEMBERG <wl@gnu.org>
4914 * configure.ac: Test for isatty.
4915 * configure: Regenerated.
4916 * src/include/posix.h: Check HAVE_ISATTY.
4917 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4918 * src/utils/lookbib/lookbib.cc: Include posix.h.
4919 Don't declare isatty.
4921 2002-07-21 Werner LEMBERG <wl@gnu.org>
4923 * NEWS: Add `output' request.
4925 * REVISION: Increased to 1.
4927 Version 1.18.0 released
4928 =======================
4930 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
4932 Allow internal glyph indices > 0xFF in grohtml for input characters.
4934 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4936 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4937 Updated all callers.
4938 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4939 (html_printer): Updated.
4941 2002-07-19 Werner LEMBERG <wl@gnu.org>
4943 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4944 * font/devutf8/R.proto: Adding some missing glyphs.
4945 * font/devutf8/NOTES: Updated.
4947 * tmac/dvi.tmac: Add more composite glyphs.
4948 * tmac/html.tmac: Updated.
4950 * man/groff_char.man: Add `sum' and `product' entities.
4954 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
4956 Improved table, tab, and indenting support.
4958 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4959 string_iterator::suppress_newline_flag): Removed. Updated all
4960 function which have used it.
4962 * src/roff/troff/env.cc: Include `input.h'.
4963 (environment::add_node): Accept 0 as parameter.
4964 (environment::add_html_tag): Add `force' parameter.
4965 Updated all callers.
4966 (environment::add_html_tag_tabs): Ditto.
4967 For the moment, support left-aligned tabs only.
4968 (environment::make_html_tag): New function.
4969 (fill, no_fill): Set .br html tag additionally.
4970 (environment::newline): Emit `eol.ce' or `eol' tag for html.
4971 (environment::add_html_tag_eol): Removed.
4972 (tab_stops::distance_to_next_tab): Add variant for handling
4974 (environment::distance_to_next_tab): Ditto.
4975 Updated all callers.
4976 (environment::handle_tab): Handle tabs for html.
4978 * src/roff/troff/env.h: Updated.
4980 * src/roff/troff/div.cc: Updated all callers of
4981 `environment::add_html_tag'.
4983 * src/devices/grohtml/html-table.cc,
4984 src/devices/grohtml/html-table.h: New files.
4986 * src/devices/grohtml/html-text.cc (html_text): New members
4987 `blank_para' and `start_space'.
4988 (html_text::issue_tag): Don't emit TABLE_TAG.
4989 Handle indentation for PRE_TAG and P_TAG.
4990 (html_text::end_tag): Updated.
4991 (html_text::table_is_void, html_text::issue_table_begin,
4992 html_text::issue_table_end): Removed.
4993 (html_text::do_push): Simplified.
4994 [DEBUGGING]: Small fix.
4995 (html_text::push_para): Add new parameter for indentation; updated
4998 (html_text::do_indent, html_text::do_table, html_text::done_table,
4999 html_text::is_in_table): Removed.
5000 (html_text::do_pre): Handle P_TAG also.
5001 (html_text::shutdown): Handle p->indent.
5002 (html_text::check_emit_text): Simplified.
5003 (html_text::do_emittext): Reset `blank_para'.
5004 (html_text::do_para): Add new parameter for indentation; updated
5006 (html_text::remove_indent): New function.
5007 (html_text::do_space): Handle verbatim text properly.
5008 (html_text::ever_emitted_text, html_text::starts_with_space,
5009 html_text::remove_para_align): New functions.
5010 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5012 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5015 * src/devices/grohtml/post-html.cc: Include html-table.h.
5016 (INDENTATION): Removed.
5017 (text_glob): Added many `is_<foo>' functions.
5018 Added table description `tab'.
5019 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5021 (list): Add `insert' and `move_to' member functions.
5022 (page): Add `insert_tag' member function.
5023 (page::dump_page) [DEBUG_TABLES]: Improved.
5024 (html_printer): Add `table' and `max_linelength' elements.
5025 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5026 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5027 `remove_tabs', `remove_courier_tabs'.
5028 (html_printer::emit_raw): Handle indentation.
5029 (html_printer::do_center, html_printer::write_header): Updated.
5030 (html_printer::is_courier_until_eol): Check for tag.
5031 (html_printer::do_linelength): Handle max_linelength.
5032 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5034 (html_printer::do_tempindent): Updated.
5035 (html_printer::do_indentedparagraph): Removed.
5036 (html_printer::do_indent): Simplified.
5037 (html_printer::do_eol): Use `ever_emitted_text'.
5038 (html_printer::do_flush, html_printer::do_links): Don't call
5040 (html_printer::do_break): Handle end_tempindent.
5041 (html_printer::troff_tag): Get argument.
5043 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5044 (html_printer::flush_page): Call `lookahead_for_tables'.
5045 Don't call `done_table'.
5046 (html_printer::add_to_sbuf): Always call do_indent.
5048 * src/devices/grohtml/Makefile.sub: Updated.
5050 * tmac/an-old.tmac (TP): Don't handle html device specially.
5051 (an-do-tag-html): New function which will be used instead of
5052 `an-do-tag' if html device is used.
5054 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5056 * tmac/s.tmac (@IP): Don't handle html device specially.
5057 (@IP-html): New function which will be used instead of `@IP' if
5058 html device is used.
5060 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5061 is a hack which will eventually vanish again.
5062 (PIMG): Handle `-C' option correctly if not html.
5065 2002-07-17 Werner LEMBERG <wl@gnu.org>
5067 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5069 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5071 * contrib/pic2graph/pic2graph.*: Use convert(1).
5072 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5074 2002-07-14 Bernd Warken <bwarken@mayn.de>
5076 * tmac/groff_trace.man: New file.
5077 * tmac/Makefile.sub: Updated.
5080 2002-07-13 Werner LEMBERG <wl@gnu.org>
5082 * src/roff/groff/groff.man: Add some cross references.
5084 2002-07-12 Werner LEMBERG <wl@gnu.org>
5086 * src/roff/troff/input.cc (substring_request): Add warnings for
5087 string indices out of range.
5089 2002-07-11 Werner LEMBERG <wl@gnu.org>
5091 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5092 * font/devdvi/*EC: Regenerated.
5094 2002-07-10 Bernd Warken <bwarken@mayn.de>
5096 * man/groff_char.man: Updated and extended.
5098 2002-07-10 Werner LEMBERG <wl@gnu.org>
5100 * src/roff/troff/input.cc (length_macro): Renamed to...
5101 (length_request): This.
5102 Move call of `tok.next()' to the very end, otherwise the register
5103 value hasn't been updated yet.
5104 (init_input_requests): Updated.
5106 2002-07-09 Werner LEMBERG <wl@gnu.org>
5108 * src/roff/troff/input.cc (substring_macro): Renamed to...
5109 (substring_request): This.
5110 (init_input_requests): Updated.
5111 * src/roff/troff/request.h: Updated.
5113 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5115 * src/roff/grog/grog.sh: Fix typo.
5117 2002-07-08 Werner LEMBERG <wl@gnu.org>
5119 * win32-diffs: Updated.
5121 Handle `papersize' keyword properly in DESC.
5123 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5125 Updated all callers.
5126 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5128 * src/include/paper.h: Updated.
5130 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5131 Other minor C syntax fixes.
5132 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5133 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5135 (lbp_printer::lbp_printer): Pass three arguments.
5136 Set paper dimensions properly.
5137 (make_printer, main): Updated.
5138 (handle_unknown_desc_command): Fix error messages.
5139 (main): Handle papersize keyword in DESC properly.
5141 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5143 (lbp_printer::lbp_printer): Pass an argument.
5144 Set paper_size properly.
5145 (handle_unknown_desc_command): Removed.
5146 (make_printer, main): Updated.
5147 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5149 * man/groff_font.man, NEWS: Updated.
5151 2002-07-07 Werner LEMBERG <wl@gnu.org>
5153 Integrated eqn2graph, contributed by Eric S. Raymond.
5155 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5157 * Makefile.in, NEWS: Updated.
5159 2002-06-04 Werner LEMBERG <wl@gnu.org>
5161 Changing the substring request to make it fit better with other
5162 string manipulation functions in other programming languages:
5163 Index 0 is now the first character in the string, and index -1
5164 indicates the last character. Since this request didn't work
5165 properly anyway in the last release, it doesn't harm too much to
5168 * src/roff/troff/input.cc (substring_macro): Use loops to get
5169 the real string length (ignoring COMPATIBLE_SAVE and
5170 COMPATIBLE_RESTORE) and offsets.
5171 Implement change described above.
5173 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5174 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5176 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5178 2002-06-03 Werner LEMBERG <wl@gnu.org>
5180 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5181 COMPATIBLE_RESTORE are completely ignored.
5183 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5185 (macro): `length' field renamed to `len'.
5186 Added new field `empty_macro' (1 if macro is empty), to be used
5187 instead of checking `len'.
5188 Updated all callers.
5189 (macro::empty): Updated.
5190 (macro::length, macro::set, macro::get): New functions.
5191 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5193 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5194 COMPATIBLE_RESTORE pairs.
5195 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5196 * src/roff/troff/request.h: Updated.
5198 * doc/groff.texinfo: Document .chop's behaviour better.
5200 2002-06-02 Werner LEMBERG <wl@gnu.org>
5202 * doc/pic.ms: Fix documentation for the addition of positions.
5204 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5206 2002-06-29 Werner LEMBERG <wl@gnu.org>
5208 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5210 * src/roff/troff/input.cc (have_string_arg): New global variable.
5211 (read_mode): New enumeration.
5212 (read_escape_name): Use it. Update all calls.
5213 (read_long_escape_name): Use it. Update all calls.
5214 Set have_string_arg if appropriate.
5215 (get_char_for_escape_name): Add parameter for handling space
5217 (interpolate_string_with_args, decode_string_args): New functions.
5218 (get_copy, token::next): Call it if necessary.
5219 (interpolate_string): Fix error message.
5221 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5224 2002-06-24 Bernd Warken <bwarken@mayn.de>
5226 * man/groff_tmac.man: Updated and extended.
5228 2002-06-24 Werner LEMBERG <wl@gnu.org>
5230 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5232 2002-06-23 Werner LEMBERG <wl@gnu.org>
5234 * doc/pic.ms: Improve documentation of composite block objects.
5236 2002-06-22 Werner LEMBERG <wl@gnu.org>
5238 * src/roff/troff/input.cc (init_registers): Add three registers
5239 `seconds', `minutes', and `hours' to hold the current time.
5241 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5244 2002-06-20 Werner LEMBERG <wl@gnu.org>
5246 Make \X accept both `\ ' and `\~', converting them to single space
5249 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5250 (token::unstretchable_space): New inline function.
5251 * src/roff/troff/input.cc (token::next, token::delimiter,
5252 token::description, token::add_to_node_list, token::process): Handle
5253 TOKEN_UNSTRETCHABLE_NODE.
5254 (encode_char): Handle tok.stretchable_space and
5255 tok.unstretchable_space.
5257 * NEWS, doc/groff.texinfo: Document it..
5259 2002-06-19 Werner LEMBERG <wl@gnu.org>
5261 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5263 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5264 keyword to enable/disable SGR output.
5265 (tty_printer::change_fill_color): New function.
5266 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5268 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5271 2002-06-18 Werner LEMBERG <wl@gnu.org>
5273 Add a `color' request and a `.color' register to control usage of
5276 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5277 (color_flag): This (which is the inverse).
5278 (activate_color): New function.
5279 (main, init_input_requests): Updated.
5280 * src/roff/troff/troff.h, src/roff/troff/node.cc
5281 (troff_output_file::fill_color, troff_output_file::glyph_color):
5284 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5285 Document the changes.
5287 2002-06-17 Colin Watson <cjwatson@debian.org>
5289 Circumvent bug in autoconf 2.53 regarding top_builddir.
5291 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5292 * Makefile.in, doc/Makefile.in:
5293 s/@top_builddir@/@groff_top_builddir@/.
5294 * configure: Regenerated (with autoconf 2.53).
5296 2002-06-17 Werner LEMBERG <wl@gnu.org>
5298 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5299 `paperwidth' and `paperlength' for the `papersize' keyword.
5301 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5303 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5305 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5307 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5308 html_printer::do_linelength, html_printer::do_pageoffset,
5309 html_printer::do_indentation, html_printer::do_tempindent,
5310 html_printer::do_break, html_printer::begin_page): Clear indented
5312 * tmac/html.tmac: Disable hyphenation.
5314 2002-06-15 Werner LEMBERG <wl@gnu.org>
5316 Don't produce HTML files if utility programs are missing.
5318 * Makefile.in (make_html, make_install_html): New variables.
5319 (MDEFINES): Updated.
5321 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5323 * configure.ac: Use it.
5324 * configure: Regenerated.
5326 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5327 (HTMLEXAMPLESFILES): This new variable.
5328 (EXAMPLESIMAGEFILES): Renamed to...
5329 (HTMLEXAMPLEIMAGEFILES): This.
5330 (CLEANADD): Add HTMLEXAMPLEFILES.
5331 (all): Use `make_html'.
5333 (install_data): Use `make_install_html'.
5334 Move html stuff to...
5335 (install_html): This new target.
5336 (uninstall_sub): Updated.
5338 2002-06-14 Bernd Warken <bwarken@mayn.de>
5340 * src/roff/grog/Makefile.sub (grog): Renamed to...
5342 (grog): New rule to always install grog.sh as grog.
5344 2002-06-08 Bernd Warken <bwarken@mayn.de>
5346 * src/roff/grog/grog.pl: Fix typo.
5348 2002-06-07 Werner LEMBERG <wl@gnu.org>
5350 * doc/groff.texinfo: Add more info on .tr arguments.
5352 2002-06-05 Werner LEMBERG <wl@gnu.org>
5354 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5356 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5357 * configure: Regenerated.
5359 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5361 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5363 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5365 2002-06-04 Werner LEMBERG <wl@gnu.org>
5367 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5368 is not initialized at the time we need it in case `--prefix' hasn't
5369 been set. Check for `ac_default_prefix' also.
5370 Test for `papersize' keyword also and generalize allowed whitespace.
5371 * configure: Regenerated.
5373 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5376 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5378 (src_version, src_revision): New variables to avoid overwriting
5379 from parent make process.
5380 (version.cc): Updated.
5382 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5383 (linebuf, linebufsize): New global variables.
5384 (sys_fatal): Use `fatal' to abort properly.
5385 (get_line): New function.
5386 (get_resolution): Use it.
5387 Improve error messages.
5388 (get_papersize): Check `papersize' also.
5390 Improve error messages.
5392 2002-06-03 Werner LEMBERG <wl@gnu.org>
5394 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5395 should be removed only if builddir is not srcdir.
5396 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5397 (clean): Depend on `mostlyclean'.
5398 (distclean): Depend on `clean'.
5399 (realclean, extraclean): Depend on `distclean'.
5400 (.y.cc, .y.o): Simplified. The output files are no longer written
5401 to srcdir but to builddir.
5402 * Makefile.in (MDEFINES): Add `version' and `revision'.
5403 (uninstall_dirs): Fix order of directories.
5404 * doc/Makefile.sub (version, revision): Removed.
5405 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5406 Added `HTMLDOCFILES'.
5407 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5408 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5409 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5412 * doc/texinfo.tex (\authortt): New macro.
5413 (\shortcontt): Define.
5414 (\titlepage): Set \tt to \authortt while defining \authorfont.
5415 (\appendixbox): New macro.
5416 (\chapmacro, \appendixentry): Use \appendixbox to get even
5417 indentation for letters.
5418 (\summarycontents): Set \tt.
5419 (\internalpagesize): Add two arguments for real paper width and
5420 height as needed by pdfTeX.
5421 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5423 (\tempdima, \tempdimb): New temporary dimensions.
5424 (\pagesizesyyy): Updated.
5426 2002-06-02 Werner LEMBERG <wl@gnu.org>
5428 Adding a new keyword `papersize' to the DESC file format (similar
5429 but not completely identical to grolbp's extension). grops now has
5430 a -p command line option to override `papersize'. Finally, grolbp
5431 has been adapted to the new syntax.
5433 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5434 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5436 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5437 (CCSRCS): Add `paper.cc'.
5439 * src/include/font.h (font): Add `papersize' element.
5440 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5441 (font::scan_papersize): New function.
5442 (font::load_desc): Use it for handling `papersize' keyword.
5443 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5445 * src/devices/grops/ps.cc: Include paper.h.
5446 (user_paper_length): New global variable.
5447 (ps_printer): Use paper length as initializer.
5448 (make_printer): Updated.
5449 (main): Handle new `-p' option.
5450 * src/devices/grops/grops.man: Updated.
5452 * src/devices/grolbp/lbp.cc: Include paper.h.
5453 s/papersizes/lbp_papersizes/.
5454 (set_papersize): Use new `papersizes' array.
5455 (handle_unknown_desc_command): Don't handle `papersize'.
5456 (main): Use `font::scan_papersize' for handling `-p' option.
5457 * src/devices/grolbp/grolbp.man: Updated.
5459 * man/groff_font.man: Document `papersize'.
5462 2002-05-30 Werner LEMBERG <wl@gnu.org>
5464 * src/devices/grops/TODO: Updated.
5465 * src/devices/grops/grops.man: More info on paper formats.
5466 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5468 2002-05-29 Werner LEMBERG <wl@gnu.org>
5470 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5471 to list only if srcdir != currdir.
5472 (distfiles): New target.
5474 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5475 (NOMAKEDIRS): New variable.
5478 2002-05-26 Werner LEMBERG <wl@gnu.org>
5480 Add .output request, similar to \! at top-level.
5482 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5483 (output_request): New function.
5484 (init_input_requests): Add it.
5486 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5489 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5490 (prepare_examples): Fix typo.
5491 * doc/groff.texinfo (@direntry): Fix it.
5493 2002-05-25 Werner LEMBERG <wl@gnu.org>
5495 Including the doc subdir into groff's Makefile system.
5497 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5498 * configure.ac: Use it.
5499 Generate `doc/Makefile'.
5500 * configure: Regenerated.
5502 * Makefile.in (infodir, INSTALL_INFO): New variables.
5503 (MDEFINES, uninstall_dirs): Updated.
5504 (OTHERDIRS): Add `doc'.
5505 * Makefile.comm (CLEANDIRADD): New variable.
5506 (mostlyclean): Use it.
5508 * doc/Makefile.sub, doc/Makefile.in: New files.
5509 * doc/Makefile: Removed.
5511 * NEWS, INSTALL: Updated.
5513 2002-05-24 Werner LEMBERG <wl@gnu.org>
5515 * doc/homepage.ms: Renamed to ...
5516 * doc/webpage.ms: This.
5519 2002-05-23 Werner LEMBERG <wl@gnu.org>
5521 Integrating the `mom' macro package, contributed by Peter Schaffter
5524 * contrib/mom/*: New subdirectory tree.
5525 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5526 be used for documentation files.
5527 (MDEFINES, uninstall_dirs): Use them.
5528 (OTHERDIRS): Add contrib/mom.
5529 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5531 * MANIFEST, NEWS: Updated.
5533 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5535 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5536 if at outer level; at start-up we are at outer level.
5538 * src/roff/troff/input.cc (do_suppress): Implement it.
5541 Add option -p to show progress information.
5542 pre-grohtml will now render only one page at a time, reducing the
5543 size of needed disk resources enormously.
5545 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5546 (imagePageName): New global variable.
5547 (psPageName, show_progress, currentPageNo): New global variables.
5548 (html_system): Close saved stderr and stdout handles.
5549 (write_end_image): Accept a parameter to control \O escape.
5550 (write_start_image): Adapted to new \O meaning.
5551 (char_buffer::write_upto_newline): Updated.
5552 (createAllPages): Replaced with...
5553 (createPage): This new function to create a single page for images.
5554 It uses `psselect' from the psutils package.
5555 (removeAllPages): Removed.
5556 (createImage): Updated.
5557 Handle progress display.
5558 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5559 (scanArguments): Add option -p.
5560 (makeTempFiles): Updated to create temp files for psPageName and
5562 (removeTempFiles): Removed.
5565 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5566 html_printer::write_header): Append `\0' to `buffer'.
5567 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5569 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5570 Handle `text_emitted'.
5571 (html_text::table_is_void): Slightly rewritten.
5572 (stop): New external symbol.
5573 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5574 (html_text::shutdown): Call `dump_stack'.
5575 (html_text::do_space): Rewritten.
5576 * src/devices/grohtml/grohtml.man: Document -p and the need of
5579 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5581 Call \O[0] if `ps4html' is active.
5582 * tmac/s.tmac (@EQ, @EN): Handle html better.
5584 * tmac/html.tmac: Don't use black for background colour.
5586 * src/roff/troff/node.cc: Include `div.h'.
5587 (troff_output_file::really_print_line): Don't use `is_on'.
5588 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5589 troff_output_file::check_charinfo,
5590 troff_output_file::put_char_width, troff_output_file::put_char,
5591 troff_output_file::determine_line_limits, troff_output_file::draw,
5592 real_output_file::begin_page, glyph_color_node::tprintf,
5593 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5595 (troff_output_file::really_on): Call `do_motion'.
5596 (suppress_node::tprint): Use `get_page_number' instead of `%'
5598 Call `reset_output_registers' conditionally on `is_on'.
5600 * doc/groff.texinfo: Document new syntax of \O.
5601 * NEWS, man/groff_diff.man: Updated.
5603 2002-05-22 Werner LEMBERG <wl@gnu.org>
5605 * MORE.STUFF: Add info about David Frey's deroff implementation.
5608 2002-05-16 Werner LEMBERG <wl@gnu.org>
5610 Pic's `with' attribute now accepts positions.
5612 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5613 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5615 (object_spec): Add rule for `WITH' and `position'.
5616 (relative_path): Give `corner' the precedence of `CHOP'.
5617 * src/preproc/pic/object.h (path): New members `pos' and
5619 * src/preproc/pic/object.cc: Updated initializers of `path'.
5620 (path::follow): Handle `is_position'.
5622 * doc/pic.ms: Completely updated grammar description.
5623 Many typographical improvements.
5625 2002-05-15 Werner LEMBERG <wl@gnu.org>
5627 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5628 code of x in range 0-127) also.
5629 * doc/groff.texinfo, man/groff_diff.man: Updated.
5631 Added keywords `north', `south', `east', and `west' for corners
5634 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5636 (yylex): Handle them.
5637 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5638 (corner): Handle them.
5640 2002-05-14 Werner LEMBERG <wl@gnu.org>
5642 * src/devices/grops/grops.man: Clarify handling of `download' file.
5644 2002-05-11 Werner LEMBERG <wl@gnu.org>
5646 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5647 Jeffrey Friedl <jfriedl@yahoo.com>.
5649 * src/roff/troff/input.cc (spread_limit, warn_scale,
5650 warn_scaling_indicator): New global variables.
5651 (warnscale_request, spreadwarn_requests): New functions.
5652 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5653 (init_input_requests): Updated.
5654 (error_type): Add `OUTPUT_WARNING'.
5655 (do_error): Handle it.
5656 (output_warning): New warning function which shows output location.
5657 * src/roff/troff/env.h (spread_limit): New external variable.
5658 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5660 (distribute_space): Emit warning if added space is larger than
5662 (environment::possibly_break_line): Emit warning if a line can't
5663 be adjusted on both sides.
5665 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5667 2002-05-08 Werner LEMBERG <wl@gnu.org>
5669 * src/roff/troff/node.cc (special_node::special_node): Use
5670 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
5671 \X''\% crashes, for example.
5673 * doc/groff.texinfo: Document \! and \? used at top-level.
5675 2002-05-06 Werner LEMBERG <wl@gnu.org>
5677 * src/preproc/pic/pic.man: Fix some keyword syntax.
5678 Other minor typographical fixes.
5680 * src/roff/groff/groff.man: Fix typos.
5682 2002-05-04 Werner LEMBERG <wl@gnu.org>
5684 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5685 (ShortOpt[]): This to avoid problems with refer.
5687 * doc/pic.ms: Fix typo.
5688 Fix pic grammar description.
5690 * tmac/an-old.tmac (ne): Use de1, not de.
5692 2002-05-03 Werner LEMBERG <wl@gnu.org>
5694 * doc/groff.texinfo: Finished separation of glyphs and characters.
5695 Don't use the string `Appendix' for appendix headers (both in
5696 the text and the table of contents).
5697 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5700 Use registers LL and LT (similar to -ms) for controlling the
5701 length of title and line, respectively, in the -man and -mdoc
5704 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5705 (doc-setup-page-layout): Use \n[LL] and \n[LT].
5706 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5708 (an-header, an-p-footer): Use \n[LT].
5709 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5710 doc/groff.texinfo: Document it.
5712 2002-05-02 Werner LEMBERG <wl@gnu.org>
5714 * doc/fdl.texi: New file.
5715 * doc/groff.texinfo: Include it.
5716 Define and use @copying.
5717 Starting with separating glyph, symbol, and character.
5719 2002-04-27 Werner LEMBERG <wl@gnu.org>
5721 * Makefile.in (EXEEXT): Set it.
5722 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5725 * src/include/nonposix.h: Define GS_NAME.
5726 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5728 Some preliminary changes for EMX support under OS/2.
5730 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5731 __EMX__ similar to __MSDOS__.
5732 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5734 2002-04-25 Werner LEMBERG <wl@gnu.org>
5736 * doc/groff.texinfo: Integrated groff_out.man.
5739 2002-04-23 Werner LEMBERG <wl@gnu.org>
5741 * man/groff_out.man: Minor fixes.
5743 2002-04-23 Werner LEMBERG <wl@gnu.org>
5745 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5746 correct page references.
5747 Fixed many index entries.
5749 2002-04-23 Bernd Warken <bwarken@mayn.de>
5751 * man/roff.man: Enlarged.
5753 2002-04-22 Werner LEMBERG <wl@gnu.org>
5755 * doc/groff.texinfo: More examples, other fixes.
5757 2002-04-20 Werner LEMBERG <wl@gnu.org>
5759 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5760 will now form a chain, e.g.
5769 This is for compatibility with plan 9's troff.
5771 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5775 * doc/groff.texinfo: Add documentation of remaining requests and
5778 2002-04-19 Werner LEMBERG <wl@gnu.org>
5780 * doc/groff.texinfo: Add documentation of remaining escapes.
5782 * font/devdvi/generate/tc.map: Remove entry for `sr'.
5783 * font/devdvi/*TC: Regenerated.
5785 2002-04-18 Werner LEMBERG <wl@gnu.org>
5787 * src/roff/troff/input.cc (token::next): Make \H behave consistently
5788 if not in compatibility mode, i.e., increment relative to the
5790 * doc/groff.texinfo: Updated accordingly.
5792 2002-04-17 Werner LEMBERG <wl@gnu.org>
5794 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5796 2002-04-16 Bernd Warken <bwarken@mayn.de>
5798 * src/roff/groff/groff.man: Improve documentation of -P option.
5801 2002-04-15 Werner LEMBERG <wl@gnu.org>
5803 Add new escape \F to switch font family.
5805 * src/roff/troff/input.cc (token::next): Handle \F.
5806 * src/roff/troff/env.cc (environment::set_family): Handle
5808 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5811 2002-04-14 Werner LEMBERG <wl@gnu.org>
5813 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5816 2002-04-13 Werner LEMBERG <wl@gnu.org>
5818 Implement \f[] as an alternative to \fP. Change \mP and \MP to
5819 \m[] and \M[], respectively.
5821 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5822 (symbol::symbol): Handle NULL string and empty string differently.
5823 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5824 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5825 Add optional parameter.
5826 Updated calling functions.
5827 (get_copy, do_glyph_color, do_fill_color, token::next): Use
5829 * src/roff/troff/env.cc (environment::set_font): Ditto.
5831 * src/preproc/pic/troff.cc (troff_output::set_fill,
5832 troff_output::reset_color: Updated.
5834 * tmac/www.tmac: Updated.
5836 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5837 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5840 * tmac/Xps.tmac: Remove some redundant code.
5842 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5843 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5844 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5847 2002-04-13 Bernd Warken <bwarken@mayn.de>
5849 * src/include/printer.h, src/libs/libdriver/printer.cc
5850 (printer::change_fill_color): New member function.
5851 * src/libs/libdriver/input.cc (parse_D_command): Use it.
5853 2002-04-12 Werner LEMBERG <wl@gnu.org>
5855 * doc/groff.texinfo: Completed pass on gtroff reference.
5857 2002-04-11 Werner LEMBERG <wl@gnu.org>
5859 * doc/groff.texinfo: More fixes.
5861 2002-04-11 Bernd Warken <bwarken@mayn.de>
5863 * src/include/color.h: Decorate with `const'.
5866 * src/libs/libgroff.color.cc: Decorate with `const'.
5868 (color::color): Initialize members.
5869 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5870 command according to the documentation.
5872 * man/groff_out.man: Updated.
5875 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
5877 * src/preproc/html/pre-html.cc (write_start_image): Remove
5879 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5881 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5882 \C'hy' caused an assertion failure.
5884 * src/roff/troff/env.cc (environment::environment): Initialize
5886 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5888 2002-04-10 Werner LEMBERG <wl@gnu.org>
5890 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5891 Document pvs request and .pvs register.
5893 2002-04-09 Werner LEMBERG <wl@gnu.org>
5895 * doc/groff.texinfo: Improve and fix documentation of diversions
5898 2002-04-08 Werner LEMBERG <wl@gnu.org>
5900 * doc/groff.texinfo: Fix documentation of drawing functions.
5903 2002-04-07 Werner LEMBERG <wl@gnu.org>
5905 * doc/groff.texinfo: Better documentation of double quotes as
5909 2002-04-06 Werner LEMBERG <wl@gnu.org>
5911 * man/groff_font.man: Document names of special characters better.
5912 * doc/groff.texinfo: Minor improvements.
5914 * tmac/lbp.tmac: Load latin1.tmac.
5915 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5917 * font/devX*/*: Regenerated (all chars > 0x80 removed).
5919 2002-04-05 Werner LEMBERG <wl@gnu.org>
5921 * tmac/tty.tmac: Don't use shc request.
5922 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5925 * man/groff_diff.man: Minor fixes.
5927 * font/devlbp/*: Remove all `charXXX' entities.
5929 * src/libs/libgroff/font.cc (font::~font): Deallocate
5930 `special_device_coding'.
5931 (font::load): Use `new' for allocating `special_device_coding'.
5932 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5933 Removed unused member.
5935 2002-04-05 Werner LEMBERG <wl@gnu.org>
5937 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5938 (resource_manager::do_begin_binary,
5939 resource_manager::do_begin_data): Use it.
5941 * doc/texinfo.tex: Updated to version 4.2.
5943 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5944 (token::zero_width_break): New inline function.
5945 * src/roff/troff/input.cc (token::next): Use it.
5946 (token::description): Updated.
5947 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5948 (token::add_to_node_list, token::process): Use it.
5949 * NEWS, doc/groff.texinfo: Updated.
5951 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5952 * tmac/tty.tmac: Add missing backslash.
5954 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
5956 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5957 `.ps' register instead of `.s' to handle fractional point sizes.
5958 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5959 limit_box::output): Ditto.
5960 * src/preproc/eqn/other.cc (size_box::compute_metrics,
5961 size_box::output): Ditto.
5962 * src/preproc/eqn/over.cc (over_box::compute_metrics,
5963 over_box::output): Ditto.
5964 * src/preproc/eqn/script.cc (script_box::compute_metrics,
5965 script_box::output): Ditto.
5966 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5967 sqrt_box::output): Ditto.
5969 2002-04-03 Michael Selway <mas@ssl.co.uk>
5971 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5974 2002-04-03 Werner LEMBERG <wl@gnu.org>
5976 * doc/homepage.ms: Reduce title size.
5977 * doc/groff.texinfo: Fix documentation of .t register.
5978 Fix handling of colon.
5981 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5982 only if page length is positive to avoid a loop.
5984 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5987 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
5989 * src/include/nonposix.h, src/roff/groff/pipeline.c:
5990 s/__CYGWIN32__/__CYGWIN__/.
5992 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
5994 * doc/gnu.xpm: New image contributed by Emily Mulley.
5995 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5996 (homepage.html): Be dependent on gnu.eps.
5997 * doc/homepage.ms: Updated to new image.
5999 * src/devices/grohtml/post-html.cc (html_printer): New member
6001 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6002 (html_printer::sbuf_continuation): Use it.
6004 2002-03-28 Werner LEMBERG <wl@gnu.org>
6006 * src/libs/libgroff/getopt.c: Updated to latest version.
6008 * tmac/README: More on hyphen.tex license.
6010 2002-03-26 Larry Kollar <kollar@alltel.net>
6012 * doc/groff.texinfo: Add documentation of most missing requests.
6014 2002-03-25 Werner LEMBERG <wl@gnu.org>
6016 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6017 of `+-', `mu', and `di', respectively.
6019 * font/devascii/R.proto, font/devutf8/R.proto,
6020 font/devlatin1/R.proto, font/devhtml/R.proto,
6021 font/devcp1047/R.proto, font/devlpb/*: Add them.
6022 * font/devps/generate/textmap: Ditto.
6023 * font/devps/*: Regenerated.
6024 * font/devlj4/generate/text.map: Add them.
6025 * font/devlj4/*: Regenerated.
6026 * font/devdvi/generate/tc.map: Use them.
6027 * font/devdvi/generate/texsy.map: Add them.
6028 * font/devdvi/*: Regenerated.
6029 * font/devX*/*: Regenerated.
6031 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6032 tmac/tty-char.tmac: Updated.
6034 * NEWS, man/groff_char.man: Updated.
6036 2002-03-24 Werner LEMBERG <wl@gnu.org>
6038 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6039 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6040 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6041 we use `.fchar' in dvi.tmac.
6042 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6043 * tmac/Xps.tmac: Simplify some char definitions.
6044 Add definition for \[f/].
6045 * man/groff_char.man: Updated for new X.tmac.
6047 * tmac/README: New file.
6049 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6051 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6052 internal .y.o rule took precendence over the .y.cc rule, compiling
6053 the yacc files with gcc instead of g++.
6055 2002-03-23 Werner LEMBERG <wl@gnu.org>
6057 * tmac/dvi.tmac: Add replacement font for `CB'.
6059 * tmac/doc.tmac: s/request/macro/ in messages.
6060 (doc-generic-macro): Improve error message.
6061 * tmac/groff_mdoc.man: Minor improvements.
6063 2002-03-22 Werner LEMBERG <wl@gnu.org>
6065 * doc/groff.texinfo: Document possible conflict between `tr' and
6068 2002-03-21 Werner LEMBERG <wl@gnu.org>
6070 Improve handling of hyphenation patterns. It is now possible to
6071 use most of TeX's pattern files unmodified. To make the process
6072 more flexible, a new request `hpfcode' has been added which
6073 provides a character code mapping for the `hpf' request. See
6074 comment before hpf_getc() for more details.
6076 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6078 (read_patterns_file): Additional parameter for exception dictionary.
6079 Extended to recognize \pattern, \hyphenation, and \endinput.
6080 (do_hyphenation_patterns_file): Updated.
6081 * src/roff/troff/env.h (hpf_code_table): New extern.
6083 * src/roff/troff/input.cc (hpf_code_table): New array.
6084 (init_hpf_code_table, hyphenation_patterns_file_code): New
6086 (hyphenation_code): Handle translation from `trin' correctly.
6087 (main, init_input_requests): Updated.
6088 (charinfo::set_translation): Handle hyphenation code also.
6090 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6093 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6094 char' is used for offsets in hyphenation exceptions.
6096 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6098 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6100 2002-03-20 Larry Kollar <kollar@alltel.net>
6102 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6105 2002-03-18 Werner LEMBERG <wl@gnu.org>
6107 * tmac/html.tmac: Fix serious typo.
6109 2002-03-17 Larry Kollar <kollar@alltel.net>
6111 * doc/groff.texinfo: Add documentation for `writec' request.
6113 2002-03-17 Werner LEMBERG <wl@gnu.org>
6115 Added request `hpfa' to append hyphenation patterns.
6117 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6119 (hyphenation_patterns_file): Renamed to...
6120 (do_hyphenation_patterns_file): This.
6121 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6123 (init_hyphen_requests): Updated.
6124 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6126 2002-03-16 Werner LEMBERG <wl@gnu.org>
6128 Added request `writec' in analogy to `tmc'.
6130 * src/roff/troff/input.cc (write_request): Renamed to...
6131 (do_write_request): This.
6132 Added one parameter.
6133 (write_request, write_request_continue): New functions.
6134 (init_input_requests): Updated.
6135 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6137 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6139 * NEWS: Document it.
6141 2002-03-15 Werner LEMBERG <wl@gnu.org>
6143 * man/groff.man: Add writem request.
6145 Add request `trin' (translate input) to make `.asciify' work
6146 correctly. This is necessary since `charXXX' entity names are no
6147 longer hardcoded in font definition files.
6149 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6150 `translate_input' members.
6151 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6152 charinfo::set_translation_input): New methods.
6153 (charinfo::set_translation): Add third argument.
6154 * src/roff/troff/input.cc (charinfo:set_translation): Set
6156 (do_translate): Add second argument.
6157 (translate_input): New function.
6158 (init_input_requests): Updated.
6159 * src/roff/troff/node.cc (glyph_node::asciify,
6160 composite_node::asciify): Use `get_asciify_code'.
6162 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6164 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6166 2002-03-14 Larry Kollar <kollar@alltel.net>
6168 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6170 2002-03-14 Werner LEMBERG <wl@gnu.org>
6172 Add a new request `sizes' similar to the `sizes' command in DESC
6175 * src/roff/troff/env.cc (override_sizes): New function.
6176 (init_env_requests): Use it.
6177 * src/roff/troff/token.h: Export `read_string'.
6178 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6180 2002-03-12 Werner LEMBERG <wl@gnu.org>
6182 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6184 2002-03-10 Werner LEMBERG <wl@gnu.org>
6186 * tmac/pspic.tmac: Add support for -Tdvi.
6187 * tmac/dvi.tmac: Include pspic.tmac.
6188 * src/devices/grodvi/grodvi.man: Document it.
6191 * font/devlj4/generate/Makefile: Fix URL of metric files.
6193 2002-03-09 Werner LEMBERG <wl@gnu.org>
6195 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6197 2002-03-09 Larry Kollar <kollar@alltel.net>
6199 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6201 2002-03-08 Werner LEMBERG <wl@gnu.org>
6203 * doc/groff.texinfo: Fixes for texinfo 4.1.
6205 2002-03-07 Werner LEMBERG <wl@gnu.org>
6207 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6209 Handle CYGWIN properly.
6211 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6213 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6214 * tmac/lbp.tmac: Add some font translations.
6216 2002-03-02 Werner LEMBERG <wl@gnu.org>
6218 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6219 font/devhtml/R.proto: Remove `charXXX' entries.
6220 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6223 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6224 * font/devlj4/*: Regenerated all font definition files.
6225 * tmac/lj4.tmac: Load latin1.tmac.
6227 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6228 from 2000-06-17: LJ4 metric files are *not* text files.
6230 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6231 register to test for EBCDIC.
6233 2002-03-01 Werner LEMBERG <wl@gnu.org>
6235 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6236 files (as grops already does).
6237 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6239 * src/devices/grops/grops.man: Document comment lines in encoding
6242 * tmac/cp1047.tmac: New file.
6243 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6244 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6245 * tmac/Makefile.sub (NORMALFILES): Updated.
6247 * tmac/ec.tmac: Don't load latin1.tmac again.
6249 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6250 font/devps/generate/dingbats.map,
6251 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6252 font/devps/generate/Makefile (symbolmap): Add header comment.
6253 * font/devps/generate/textmap: Ditto.
6254 Remove `charXXX' entries.
6255 * font/devps/symbolmap: Regenerated.
6256 * font/devps/*: Regenerated all font definition files.
6258 2002-02-28 Werner LEMBERG <wl@gnu.org>
6260 Add color support to grodvi (for drawing colors are currently
6261 translated to gray values).
6263 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6264 (dvi_printer): Add `cur_color' member.
6265 (dvi_printer::set_color): New function.
6266 (draw_dvi_printer): Remove `fill'.
6267 (draw_dvi_printer::fill_next): Pass environment as parameter.
6268 Update code for new color support translated to gray.
6269 (dvi_printer::set_char): Updated.
6270 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6271 changes crossing the page border.
6272 (dvi_printer::draw): Updated.
6273 Remove cases `f' and `F'.
6274 * tmac/dvi.tmac: Add color definitions.
6275 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6277 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6280 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6281 versions of autoconf.
6282 * configure: Updated.
6284 * doc/homepage.ms: Use `.blm'.
6285 * tmac/www.tmac (www-depth): New auxiliary variable.
6286 (www-pop-level): Don't issue HTML tag.
6287 (ULS, ULE, LI): Use absolute indentation.
6289 * src/devices/grops/ps.cc (ps_printer::begin_page,
6290 ps_printer::end_page): Switch forth and back to default color while
6291 starting a new page.
6293 2002-02-27 Werner LEMBERG <wl@gnu.org>
6295 Add EC and TC fonts to devdvi.
6297 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6298 * font/devdvi/generate/cork.map: Renamed to...
6299 * font/devdvi/generate/ec.map: This.
6300 Remove entry for `aq'.
6301 * font/devdvi/generate/tc.map: New file.
6302 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6305 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6306 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6307 * tmac/ec.tmac: New file.
6308 * tmac/Makefile.sub (NORMALFILES): Updated.
6309 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6310 * man/groff_char.man: Check `ECFONTS' register.
6312 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6314 2002-02-26 Werner LEMBERG <wl@gnu.org>
6316 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6317 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6318 * font/devdvi/*: Updated.
6319 * tmac/dvi.tmac: Formatting.
6321 Add font `HBI' for the dvi output.
6322 Add support for font families `T' and `H'.
6324 * font/devdvi/HBI: New file.
6325 * font/devdvi/B: Renamed to ...
6326 * font/devdvi/TB: This.
6327 * font/devdvi/BI: Renamed to ...
6328 * font/devdvi/TBI: This.
6329 * font/devdvi/I: Renamed to ...
6330 * font/devdvi/TI: This.
6331 * font/devdvi/R: Renamed to ...
6332 * font/devdvi/TR: This.
6333 * font/devdvi/H: Renamed to ...
6334 * font/devdvi/HR: This.
6335 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6336 * font/devdvi/generate/Makefile (HBI): New rule.
6338 (R, I, B, BI, H): Renamed to ...
6339 (TR, TI, TB, TBI, HR): This, respectively.
6341 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6342 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6343 Add `styles' and `family' keywords.
6344 * tmac/dvi.tmac: Alias `H' to `HR'.
6345 Add some fspecial requests for italic fonts.
6346 Add TR and TI as special.
6347 Add support for `_' with font CWI.
6349 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6350 operator `:'. Until now, the expression `0:1' would return 2
6353 2002-02-25 Werner LEMBERG <wl@gnu.org>
6355 * man/groff_char.man: Added some missing PS glyph names (from the
6357 * font/devps/generate/textmap, font/devps/symbolmap: Add
6360 * doc/groff.texinfo: Minor additions and fixes.
6361 * man/groff_diff.man: Remove documentation of fp request. This
6362 is already covered in the original troff manual.
6363 Updated to be consistent with other doc files.
6366 2002-02-24 Werner LEMBERG <wl@gnu.org>
6368 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6370 Define new variable OTHERDEVDIRS (containing `font/devlj4
6371 font/devlbp' if not EBCDIC).
6372 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6373 (OTHERDEVDIRS): New variable.
6374 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6375 * configure: Regenerated.
6377 * NEWS, src/devices/grotty/grotty.man: Updated.
6379 2002-02-23 Werner LEMBERG <wl@gnu.org>
6381 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6382 get_line_arg): Honour input level.
6384 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6386 * font/*/*: Implement it in all font files.
6387 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6388 * font/devps/symbolmap: Updated.
6389 * font/devlj4/generate/text.map: Updated.
6390 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6391 * font/devdvi/generate/texmi.map: Updated.
6393 * font/devutf8/R.proto: Remove all `charXXX' entries.
6394 * font/devutf8/NOTES: Updated.
6396 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6399 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6401 * NEWS, man/groff_char.man: Updated.
6403 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6405 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6407 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6409 * src/roff/grog/grog.pl: Fix computation of $refer.
6411 2002-02-19 Werner LEMBERG <wl@gnu.org>
6413 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6414 `snprintf' and `vsnprintf'.
6416 * src/include/htmlindicate.h: Renamed to...
6417 * src/include/htmlhint.h: This.
6418 * src/include/Makefile.sub: Updated.
6419 * src/preproc/eqn/main.cc: Updated.
6421 2002-02-18 Werner LEMBERG <wl@gnu.org>
6423 * man/roff.man, man/groff_out.man, man/groff.man,
6424 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6425 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6427 * win32-diffs: Updated.
6429 2002-02-17 Werner LEMBERG <wl@gnu.org>
6431 * doc/Makefile (clean): Add *.eps.
6432 (MEMACROS): Removed.
6433 (TFLAG): New variable.
6436 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6438 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6440 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6442 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6444 * src/roff/troff/troff.man: Fix order of parameter description.
6448 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6450 Simplify image handling for grohtml.
6453 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6455 (html_text::dump_stack): Don't emit newline while debugging.
6456 (html_text::do_push) [DEBUGGING]: Print more info.
6457 (html_text::check_emit_text): Fix handling of <p>.
6458 * src/devices/grohtml/html.h: Updated.
6459 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6460 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6461 send its data to stderr also.
6463 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6464 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6465 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6467 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6469 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6470 is_inline_image): Removed.
6471 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6472 (graphic_start, graphic_end): Removed.
6473 * src/include/htmlindicate.h: Updated.
6474 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6475 (macroset_template): New global variable.
6476 (makeFileName): Use `macroset_template'.
6477 (write_end_image): Don't take a parameter.
6479 (write_start_image: Don't emit newline.
6480 (char_buffer::write_upto_newline): Updated.
6481 (char_buffer::skip_to_newline): Renamed to ...
6482 (char_buffer::skip_until_newline): This.
6484 (char_buffer::write_file_troff, char_buffer::write_file_html):
6486 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6487 (removeAllPages): Remove `DEBUGGING' conditionals.
6488 (addRegDef, dump_args): New functions.
6489 (char_buffer::do_html, char_buffer::do_image): Handle
6490 `www-image-template' command line variable.
6491 Add more debugging code.
6492 (addps4html): Removed.
6493 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6495 * src/preproc/eqn/main.cc: Include `ctype.h'.
6496 (suppress_html): Removed.
6498 (inline_equation): Use `html_begin_suppress' and
6499 `html_end_suppress'.
6500 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6501 (troff_output::start_picture, troff_output::finish_picture):
6503 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6504 (process_input_file): Updated.
6506 * src/roff/troff/div.cc (page_number): Set page number only if the
6507 `ps4html' register isn't defined.
6508 * src/roff/troff/input.cc (image_no): New external variable.
6509 (do_suppress): Use it.
6510 * src/roff/troff/node.h (suppress_node::image_id): New member.
6511 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6512 (suppress_node::suppress_node): Initialize `image_id' member.
6513 (suppress_node::same): Handle `image_id' also.
6514 (suppress_node::copy): Updated.
6515 (last_image_id): New global variable.
6516 (suppress_node::tprint): Use it.
6518 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6520 * tmac/pspic.mac (PSPIC): Fix html support.
6521 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6522 * tmac/www.tmac (www-image-template): Set up.
6523 (HTMLINDEX): Renamed to...
6525 (BODYCOLOR): Renamed to...
6527 (BACKGROUND): Renamed to...
6529 (URL): Change order of parameters for consistency.
6530 (MAILTO): Renamed to...
6532 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6533 (IMG, PIMG, MPIMG): This.
6534 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6536 (LINKS): Renamed to...
6538 (LINE): Renamed to...
6540 (NO-AUTO-RULE): Renamed to...
6542 (HTML-TL): Renamed to...
6544 (UL-BEGIN, UL-END): Renamed to...
6546 (DROPCAP): Renamed to...
6548 (TS, TE, EQ, EN): Provide default definitions.
6549 (www-make-unique-name): Updated.
6550 (HTML-IMAGE-INLINE): Fix typo.
6551 * tmac/groff_www.man: Updated.
6553 * doc/Makefile (homepage.html): Add option -r to grohtml.
6554 Use shortened image name.
6555 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6556 * doc/homepage.ms: Updated and extended.
6558 2002-02-14 Werner LEMBERG <wl@gnu.org>
6560 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6562 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6563 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6564 (tty_printer::put_color): Use it.
6565 (ttr_printer::end_page): Simplify.
6567 2002-02-13 Werner LEMBERG <wl@gnu.org>
6569 * tmac/groff_tmac.man: Moved to...
6570 * man/groff_tmac.man: This place.
6571 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6573 2002-02-12 Werner LEMBERG <wl@gnu.org>
6575 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6576 $(COMPILE.c) to not include groff's assert.h.
6578 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6580 * NEWS, src/drivers/grotty/grotty.man: Document it.
6582 2002-02-11 Werner LEMBERG <wl@gnu.org>
6584 * src/libs/snprintf/snprintf.c: Updated to latest version
6587 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6588 test whether there is `.]' also.
6589 Don't check for spaces after `.['.
6590 * src/roff/grog/grog.sh: Do the same.
6592 2002-02-10 Werner LEMBERG <wl@gnu.org>
6596 * src/libs/libgroff/illegal.cc: Renamed to ...
6597 * src/libs/libgroff/invalid.cc: This.
6598 (illegal_char_table): Renamed to ...
6599 (invalid_char_table): This.
6600 * src/libs/libgroff/Makefile.sub: Updated.
6601 * win32-diffs: Updated.
6603 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6604 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6605 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6606 font::load), src/preproc/eqn/main.cc (read_line, main),
6607 src/preproc/eqn/lex.cc (file_input::read_line),
6608 src/preproc/pic/lex.cc (file_input::read_line,
6609 simple_file_input::get, simple_file_input::peek),
6610 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6611 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6612 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6613 do_bib), src/preproc/tbl/main.cc (table_input::get),
6614 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6615 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6616 do_zero_width, read_request, encode_char, ps_get_line,
6617 transparent_file, get_char_for_escape_name, transparent_translate,
6618 asciify, input_char_description, read_string, set_string),
6619 src/roff/troff/env.cc (environment::add_html_tag),
6620 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6622 * src/include/lib.h: Updated.
6624 * src/preproc/eqn/eqn.cc: Removed.
6628 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6630 2002-02-09 Werner LEMBERG <wl@gnu.org>
6632 * doc/gnu.xpm: New image.
6633 * doc/Makefile (DOCS): Add homepage.ps.
6634 Add rules for converting xpm->png and xpm->eps.
6635 Use `gnu.{xpm,eps}' as image names.
6636 * doc/homepage.ms: Updated.
6638 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6640 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6641 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6642 Remove calls to `B1' and `B2'
6643 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6644 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6645 auxiliary variables for MARGIN-PNG-IMAGE.
6646 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6647 auxiliary macros for MARGIN-PNG-IMAGE.
6648 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6650 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6651 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6652 (DROPCAP): New macro to produce dropcap characters.
6653 (www-do-image): Renamed back to...
6654 (HTML-DO-IMAGE): This.
6655 Updated all callers.
6657 * doc/Makefile (gnubw.eps): Updated.
6658 * doc/homepage.ms: Updated.
6660 2002-02-08 Werner LEMBERG <wl@gnu.org>
6662 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6663 Added `linethick' to table in section `Style Variables'.
6665 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
6667 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6669 2002-02-07 Werner LEMBERG <wl@gnu.org>
6671 Adding options -C (compatibility mode) and -c (grotty's old output
6674 * src/roff/nroff/nroff.sh: Implement it.
6676 * NEWS, src/roff/nroff/nroff.man: Updated.
6678 * PROBLEMS: Document bison 1.32 bug.
6680 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6682 * src/roff/troff/node.cc (make_tfont): Define it earlier.
6683 * src/roff/troff/div.h: Add prototype for `end_diversions'.
6684 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6685 * src/roff/troff/env.h: Add prototype for `title'.
6687 Adding EBCDIC support to grotty.
6689 * src/devices/grotty/tty.cc (CSI): New macro.
6690 (SGR_*, tty_printer::put_color): Use it.
6692 2002-02-06 Werner LEMBERG <wl@gnu.org>
6694 Implementing color support in grotty. The new switch -c activates
6695 the old drawing scheme, disabling color at the same time. The new
6696 switch `-i' selects italic instead of underlining (SGR only).
6698 * src/devices/grotty/tty.cc (putstring): New define instead of
6699 `fputs'. Updated all callers.
6700 (old_drawing_scheme): New global variable.
6701 (COLOR_CHANGE): New enum value.
6702 (SGR_*): New defines containing color handling escape sequences.
6703 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6704 (glyph): New members `back_color_idx' and `fore_color_idx'.
6705 (glyph::order): Add COLOR_CHANGE.
6706 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6707 `is_underline', `is_bold', `cu_flag', `tty_colors'.
6708 New methods `make_underline', `make_bold', `color_to_idx',
6709 `change_color', `put_color'.
6710 (cu_flag): Moved into `tty_printer' class.
6711 (tty_printer::tty_printer): Initialize colors.
6712 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6713 tty_printer::draw, tty_printer::end_page): Handle colors also.
6714 (main): Add options `-c' and `-i'.
6716 * NEWS, src/devices/grotty/grotty.man: Updated.
6718 * src/include/errarg.h (errarg): Add support for `unsigned int'.
6719 * src/libs/libgroff/errarg.c: Implement it.
6721 * src/include/printer.h (printer): Add `change_color' method
6722 (currently used by grotty only).
6723 * src/libs/libdriver/printer.cc: Implement it.
6724 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6725 call to `pr->change_color'.
6727 * src/roff/troff/node.cc (troff_output_file::fill_color,
6728 troff_output_file::glyph_color): Call `do_motion'.
6730 * tmac/tty.tmac: Add color definitions.
6732 * src/roff/groff/groff.man: Minor fixes.
6734 2002-02-05 Bernd Warken <bwarken@mayn.de>
6736 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6737 it. This is a preparation for future changes.
6739 2002-02-05 Werner LEMBERG <wl@gnu.org>
6741 * src/roff/troff/input.cc (process_input_stack): Fix the case
6742 where leading spaces are followed by \f or \s; previously, an
6743 incorrect space width has been used.
6745 * doc/roff.man (quoted_char): Fix argument.
6746 (comment): Define string.
6748 2002-02-04 Larry Kollar <kollar@alltel.net>
6750 * doc/groff.texinfo: More fixes.
6752 2002-02-04 Werner LEMBERG <wl@gnu.org>
6754 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6755 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6756 `restore_compatibility' before `output_string' -- the LINE_STRING
6757 register now already contains proper switches from and to
6760 * man/groff_char.man: Add Euro symbol.
6761 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6762 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6763 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6766 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6768 (.texinfo.html): Add support for texinfo->html.
6770 2002-02-03 Werner LEMBERG <wl@gnu.org>
6772 Added three new requests `ds1', `as1', and `ami'. The former two
6773 are equivalent to `ds' and `as' with the difference that
6774 compatibility mode is saved on entry, switched off during string
6775 expansion, and restored on exit. The latter is the pendant to `dei'
6778 (do_define_string): Use `define_mode' and `calling mode'.
6779 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6780 end of string, respectively.
6781 (define_string, append_string): Use `calling_mode'.
6782 (define_nocomp_string, append_nocomp_string,
6783 define_string_indirect): New functions.
6784 (init_input_requests): Updated.
6785 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6787 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6788 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
6789 mm macro package accesses this string register directly.
6790 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6792 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
6795 2002-02-02 Larry Kollar <kollar@alltel.net>
6797 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6799 2002-01-31 Werner LEMBERG <wl@gnu.org>
6801 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6803 2002-01-31 Bernd Warken <bwarken@mayn.de>
6805 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6806 * man/groff_out.man: Revised and updated.
6808 2002-01-30 Bernd Warken <bwarken@mayn.de>
6810 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6811 out the unused `{' and `}' commands. Undefined by default.
6812 (IntArray): Make `data' private.
6813 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6814 new methods instead.
6815 (skip_line_D, skip_to_end_of_line): New functions.
6816 (get_D_fixed_args): Use `skip_line_D'.
6817 Changed to handle dummy odd arguments by ...
6818 (get_D_fixed_args_odd_dummy): This new function.
6819 (get_D_variable_args): Split some code into ...
6820 (get_possibly_integer_args): This new function.
6821 (send_draw): Use more `const'.
6822 (delete_current_env): New function.
6823 (position_to_end_of_args): Use `size_t'.
6825 (send_draw): Updated.
6826 (parse_D_command): Handle `c', `C', and `t' better.
6830 2002-01-29 Werner LEMBERG <wl@gnu.org>
6833 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6834 @Def...ListEnd which replaces @Def...x. This is necessary to get
6835 proper HTML output -- see the comment in the file for more
6839 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
6841 Fixes to make color changes of 2002-01-21 work with grohtml.
6843 * src/devices/grohtml/post-html.cc (style): Updated.
6844 (html_printer): Remove unused methods.
6845 (html_printer::do_font, html_printer::draw, html_printer::set_char,
6846 html_printer::special): Updated.
6847 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6848 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6849 Added some debugging code.
6850 (html_text::start_tag): Updated.
6851 (html_text::do_push): New method.
6852 (html_text::push_para): Call it.
6853 Add method for handling color.
6854 (html_text::do_color): Updated.
6855 (html_text::shutdown): Handle color.
6856 * src/devices/grohtml/html-text.h (tag_definition): New member
6860 2002-01-28 Werner LEMBERG <wl@gnu.org>
6862 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6864 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
6866 Add two switches -a and -g to control the antialiasing bits for
6867 text and graphics, respectively.
6869 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6871 * src/devices/grohtml/grohtml.man: Document them.
6872 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6874 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6875 (setupAntiAlias): New function.
6876 (createAllPages): Updated.
6877 (scanArguments): Handle `-a' and `-g'.
6878 (main): Call `setupAntiAlias'.
6881 2002-01-27 Werner LEMBERG <wl@gnu.org>
6883 * doc/groff.texinfo (Def*): Call index function after deffn.
6885 * tmac/html.tmac: Call `nroff' request.
6887 2002-01-26 Larry Kollar <kollar@alltel.net>
6889 * tmac/groff_ms.man: Add some omissions.
6891 2002-01-25 Larry Kollar <kollar@alltel.net>
6893 * tmac/groff_ms.man: Typographical improvements.
6895 2002-01-25 Werner LEMBERG <wl@gnu.org>
6897 * doc/groff.texinfo: Updated version and copyright.
6898 * src/devices/grops/grops.man: Updated.
6900 * tmac/groff_tmac.man: Fix `ig' macro.
6902 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6904 Use `.ne' unconditionally everywhere.
6905 (TS): Only insert some vertical space. Doing a page break is no
6906 longer necessary due to the redefinition of the `ne' request.
6908 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6909 warning for unknown subcommands but parse and pass them to the
6912 2002-01-24 Werner LEMBERG <wl@gnu.org>
6914 * tmac/groff_www.man, NEWS: Fix typos.
6916 2002-01-21 Werner LEMBERG <wl@gnu.org>
6918 Complete revision of color support:
6920 Adapt programs to the new libdriver/input.cc.
6922 Color spaces are no longer converted to RGB but transferred as-is
6923 in the troff intermediate output format.
6925 Handle default color gracefully. troff now supports a `default'
6926 color (which can't be changed).
6928 grops will now use the proper color space functions if available.
6932 Note that currently grohtml doesn't handle colors properly. This
6935 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6936 (ui_to_a): New function.
6937 * src/include/lib.h: Updated.
6939 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6940 (color): Simplified; removed all `double' members and methods.
6941 A new array `components' now holds the color parameters.
6942 (color::is_default, color::get_components): New methods.
6943 (color::operator==, color:operator!=): New.
6944 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6945 to make access to the `components' array more comprehensible.
6946 * src/libs/libgroff/color.cc: Implement new color support.
6947 (atoh): Small fixes.
6948 (color::read_encoding): Simplified for new troff intermediate color
6950 (default_color): New global variable.
6952 * src/roff/troff/input.cc (default_symbol): New global variable.
6953 (lookup_color): Use it.
6954 (default_black): Removed.
6955 (do_glyph_color, do_fill_color): Simplified.
6956 (define_color): Handle default color.
6958 (do_if_request): Handle default color.
6959 * src/roff/troff/env.cc (environment::environment): Initialize
6960 colors with `default_color'.
6961 * src/roff/troff/node.cc (troff_output_file::put): Add method
6963 (troff_output_file::hex): Removed.
6964 (troff_output_file::fill_color, troff_output_file::glyph_color):
6965 Updated to include/color.h and libdriver/input.cc.
6967 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6968 fill color properly (identically to the outline color). \D'f...'
6969 doesn't work any more.
6970 All function calls to it updated.
6972 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6974 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6977 * src/devices/grops/ps.cc (ps_output::put_color): New method.
6978 (ps_printer::sbuf_color): Make a real member instead of pointer.
6979 (ps_printer::fill_color, ps_printer::output_color): Removed.
6980 (ps_printer::ps_printer): Updated.
6981 (ps_printer::set_char): Ditto.
6982 (ps_printer::set_color): Use various color schemes.
6983 Use `put_color' method.
6984 (ps_printer::flush_sbuf): Don't set color.
6985 (ps_printer::fill_path): Take `environment' as parameter.
6986 Simplify color handling.
6987 (ps_printer::set_line_thickness): Renamed to ...
6988 (ps_printer::set_line_thickness_and_color): This (and updated).
6989 (ps_printer::set_color): Change second parameter from `complete'
6990 to `fill' which better describes what it does.
6991 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6992 and text in the right order.
6994 Remove branches for `f' and `F'; this is handled by
6996 * src/devices/grops/ps.h: Updated.
6997 * font/devps/prologue (FL): Redefined.
6998 ({F,C}r,k,g: New color functions (with and without filling).
7000 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7001 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7002 doc/groff.texinfo, NEWS: Updated.
7004 2002-01-20 Bernd Warken <bwarken@mayn.de>
7006 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7007 in this file for what has been changed.
7009 2002-01-19 Werner LEMBERG <wl@gnu.org>
7011 * test-groff: Fix GROFF_FONT_PATH.
7012 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7013 is read before .TH or .Dd is parsed.
7015 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7017 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7018 quadrant boundaries.
7020 2002-01-18 Werner LEMBERG <wl@gnu.org>
7022 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7025 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7027 * tmac/doc.common: Initialize %I register for the %I macro to
7028 avoid (harmless) warning.
7029 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7030 when in the SYNOPSIS section.
7032 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7034 * src/preproc/pic/lex.cc (get_token): Fix typo.
7036 2002-01-17 Werner LEMBERG <wl@gnu.org>
7038 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7040 2002-01-17 Larry Kollar <kollar@alltel.net>
7042 * tmac/groff_ms.man: Completely rewritten.
7044 2002-01-16 Werner LEMBERG <wl@gnu.org>
7046 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7048 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7050 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7052 (ps_printer::draw): Ditto.
7054 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7056 * tmac/groff_mdoc.man: Minor fixes.
7058 2002-01-13 Werner LEMBERG <wl@gnu.org>
7060 * man/groff_out.man: Some fixes.
7062 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7064 * doc/pic.ms: Fix typos.
7066 2002-01-12 Werner LEMBERG <wl@gnu.org>
7068 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7070 2002-01-10 Werner LEMBERG <wl@gnu.org>
7072 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7076 2002-01-09 Bernd Warken <bwarken@mayn.de>
7078 * man/groff_out.man: Revised.
7079 * man/roff.man: Minor fixes.
7080 * src/roff/troff/troff.man: Some reordering.
7082 2002-01-09 Werner LEMBERG <wl@gnu.org>
7084 * tmac/an-old.tmac: Add dummy macros for equation support.
7086 2002-01-07 Werner LEMBERG <wl@gnu.org>
7088 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7090 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7092 * tmac/groff_man.man: Small improvements.
7094 2002-01-07 Bernd Warken <bwarken@mayn.de>
7096 * man/groff_diff.man: Revised.
7098 2002-01-06 Werner LEMBERG <wl@gnu.org>
7100 * tmac/www.tmac: Remove extraneous backslash.
7102 2002-01-06 Bernd Warken <bwarken@mayn.de>
7104 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7106 2002-01-05 Werner LEMBERG <wl@gnu.org>
7108 Integrated groffer, contributed by Bernd Warken.
7110 * contrib/groffer/*: New.
7111 * Makefile.in, NEWS: Updated.
7113 2002-01-04 Werner LEMBERG <wl@gnu.org>
7115 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7116 registers defined in macro packages.
7117 Revising the ms part.
7119 2002-01-04 Larry Kollar <kollar@alltel.net>
7121 * doc/groff.texinfo: Add documentation for ms macros.
7123 2002-01-02 Werner LEMBERG <wl@gnu.org>
7125 First step in adding PS support for the Euro symbol. `eu' is the
7126 official Euro logo, `Eu' is a font-specific glyph variant.
7128 * font/devps/text.enc: Add `Euro' at position 9.
7129 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7130 * font/devps/symbolmap: Regenerated.
7134 2002-01-02 Bernd Warken <bwarken@mayn.de>
7136 * man/roff.man: Revised.
7138 2002-01-01 Bernd Warken <bwarken@mayn.de>
7140 * src/roff/groff/groff.man: Completely rewritten.
7142 2001-12-31 Werner LEMBERG <wl@gnu.org>
7144 * doc/Makefile: Updated.
7146 2001-12-30 Werner LEMBERG <wl@gnu.org>
7148 * tmac/www.tmac: Make all names of internal macros/registers/strings
7149 lowercase, and prepend `www-'.
7150 Other minor changes.
7151 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7153 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7155 Implement option `-b' in grohtml to set the HTML background colour.
7157 * src/devices/grohtml/post-html.cc (default_background): New global
7159 (html_printer::html_printer): Initialize `background' to
7160 `default_background'.
7161 (main): Implement option `-b'.
7163 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7165 * src/devices/grohtml/grohtml.man: Updated.
7166 * doc/Makefile (.ms.html): Use `-b'.
7167 * tmac/html.tmac: Don't set background color.
7169 Add new grohtml tag `.html-tl'.
7171 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7173 (title_desc::title_desc): Updated.
7174 (html_printer::troff_tag): Handle `.html-tl'.
7175 (html_printer::write_title): Use `with_h1'.
7176 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7177 (HTML-TL): New macro.
7179 Add support for unordered lists in HTML.
7181 * tmac/www.tmac (www-level): New auxiliary register.
7182 (www-level1, www-level2, www-level3): New auxiliary strings.
7183 (www-push-level, www-pop-level): New auxiliary macros
7184 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7188 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7189 (DEFAULT_VERTICAL_OFFSET): Removed.
7190 (IMAGE_BOARDER_PIXELS): Set to 0.
7191 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7192 (vertical_offset): Initialize with 0.
7193 (gsPaper): New global variable.
7194 (get_resolution): Scan for and return unsigned int.
7195 (get_papersize): New function to get paper length from devps/DESC.
7196 (determine_vertical_offset): New function.
7197 (createAllPages): Produce gray-level images and use proper page
7199 (createImage): Use `-quiet' option of pnmcrop.
7200 (addZ): Fix passing of `-Z'.
7201 (scanArguments): Fix handling of `-o'.
7202 (main): Call `determine_vertical_offset'.
7203 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7206 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7207 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7208 glyph descenders properly.
7210 * doc/homepage.ms: Include `gnubw.eps'.
7211 * doc/Makefile (gnubw.eps): New rule.
7212 (homepage.html): Depend on `gnubw.eps'.
7214 2001-12-25 Werner LEMBERG <wl@gnu.org>
7216 * src/roff/troff/input.cc (default_black): Fix return value.
7218 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7220 * tmac/doc-common (Dt): Change output of architecture strings.
7221 Do some syntax cleanup.
7222 * tmac/groff_mdoc.man: Updated.
7224 2001-12-23 Werner LEMBERG <wl@gnu.org>
7226 Adding an `itc' request (input line trap accepting \c).
7228 * src/roff/troff/env.h (environment): New member
7229 `continued_input_trap'.
7230 Make `do_input_trap' a friend function instead of `input_trap'.
7231 * src/roff/troff/env.cc (environment::environment,
7232 environment::copy): Updated.
7233 (environment::newline): Implement it.
7234 (do_input_trap): New function.
7235 (input_trap): Call `do_input_trap'.
7236 (input_trap_continued): New function.
7237 (init_env_requests): Updated.
7238 * src/roff/troff/TODO: Updated.
7240 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7243 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7245 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7247 * tmac/doc-common, tmac/doc-syms: Small updates.
7249 2001-12-22 Colin Watson <cjwatson@debian.org>
7251 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7253 2001-12-22 Bernd Warken <bwarken@mayn.de>
7255 * MANIFEST: New file.
7257 2001-12-22 Werner LEMBERG <wl@gnu.org>
7259 * src/preproc/grn/grn.man: Updated.
7261 2001-12-22 Solar Designer <solar@openwall.com>
7263 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7266 2001-12-19 Werner LEMBERG <wl@gnu.org>
7268 Implement a fallback character request `.fchar'.
7270 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7271 (is_fallback): New inline function.
7272 * src/roff/troff/input.cc (do_define_character): New function.
7273 (define_character): Call `do_define_character'.
7274 (define_fallback_character): New function.
7275 (init_input_requests): Add `fchar'.
7276 (charinfo::charinfo): Updated.
7277 (charinfo::set_macro): New argument to set `fallback' flag.
7278 * src/roff/troff/node.cc (make_glyph_node, make_node,
7279 node::add_char): Check `fallback' flag.
7280 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7282 2001-12-16 Werner LEMBERG <wl@gnu.org>
7284 * groff.texinfo: Document exact search algorithm for glyphs.
7286 2001-12-15 Werner LEMBERG <wl@gnu.org>
7288 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7289 the left side of $(MANPAGES) rule to make it always non-empty.
7291 2001-12-14 Werner LEMBERG <wl@gnu.org>
7293 * src/roff/troff/input.cc (default_black): Define default color
7294 `black' if not yet defined.
7296 2001-12-13 Werner LEMBERG <wl@gnu.org>
7298 Implement new string-valued register `.fn' to return the current
7299 real (internal) font name.
7301 * env.cc (environment::get_font_name_string): New function.
7302 (init_env_requests): Add `.fn' register.
7303 * env.h (environment): Updated.
7304 * node.cc (font_info): Make `get_font_name' a friend.
7305 (get_font_name): New function.
7308 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7310 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7312 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7314 2001-12-12 Werner LEMBERG <wl@gnu.org>
7316 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7318 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7320 * man/groff_diff.man: Adding documentation for \O.
7322 2001-12-10 Werner LEMBERG <wl@gnu.org>
7324 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7325 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7327 2001-12-09 Werner LEMBERG <wl@gnu.org>
7329 * man/roff.man: Revised.
7330 * src/roff/groff/groff.man: Replace man page references with a
7331 pointer to roff.man.
7333 2001-12-09 Bernd Warken <bwarken@mayn.de>
7335 * man/roff.man: Completely rewritten.
7337 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7339 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7341 2001-12-05 Werner LEMBERG <wl@gnu.org>
7343 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7345 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7346 order of initializers.
7349 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7351 * doc/groff.texinfo: Fix documentation of \O.
7353 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7354 html_text::do_table, html_text::do_emittext, html_text::do_para):
7355 Use `const' for first argument.
7356 (html_text::do_table): Use cast.
7357 * src/devices/grohtml/html-text.h: Updated.
7358 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7359 method for `const string &s'.
7360 * src/devices/grohtml/html.h: Updated.
7361 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7362 (ANCHOR_TEMPLATE): Modified.
7363 (manufacture_headings): New global variable to handle `-h' option.
7364 (is_subsection): Removed.
7365 (char_buffer::add_string): Add `const' to first argument.
7366 Protect against invalid string argument.
7367 Add method for `const string &s'.
7368 (text_glob): Completely redesigned.
7369 (page): Use `const' for strings and remove string length variable.
7370 (page::add_html): Removed.
7371 (page::add_end_encode): New member function.
7372 (to_unicode): Moved upwards.
7373 (title_desc, header_desc): Updated.
7374 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7376 (html_printer::is_bold, html_printer::make_bold): New member
7378 (html_printer::end_of_line): Updated.
7379 (generate_img_src, html_printer::do_auto_image,
7380 html_printer::do_title, html_printer::write_header,
7381 html_printer::determine_header_level, html_printer::do_heading,
7382 html_printer::do_linelength, html_printer::do_pageoffset,
7383 html_printer::do_indentation, html_printer::do_tempindent,
7384 html_printer::do_indentedparagraph, html_printer::do_break,
7385 html_printer::flush_sbuf, get_html_translation,
7386 html_printer::begin_page, html_printer::special): Rewritten to get
7387 rid of static string length limit.
7388 (html_printer::troff_tag): Added `.no-auto-rule'.
7389 (html_printer::flush_globs): Small fix.
7390 (html_printer::determine_space): Don't compute `space_width'.
7391 (html_printer::translate_to_html): Renamed to ...
7392 (html_printer::emit_html): This (with updates).
7393 (html_printer::write_header): Implement `-h' option.
7394 (html_printer::draw): Remove commented-out code. Handle `F'
7396 (html_printer::add_char_to_sbuf): Removed.
7397 (html_printer::add_to_sbuf): Rewritten.
7398 (html_printer::sbuf_continuation): Fixed.
7399 (html_printer::seen_backwards_escape, reverse,
7400 html_printer::remove_last_char_from_sbuf): Removed.
7401 (char_translate_to_html, str_translate_to_html): Removed.
7402 (html_printer::overstrike): New function member.
7403 (html_printer::set_char): Use it.
7404 (html_printer::do_body): New function member.
7405 (html_printer::~html_printer): Use it.
7406 (main): Handle `-h' option.
7408 * src/devices/grohtml/grohtml.man: Document -h switch.
7410 * src/preproc/html/pre-html.cc: Include searchpath.h
7411 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7412 (get_resolution): New function.
7413 (checkImageDir): Use `0777' permissions in mkdir()
7414 (write_start_image): Rewritten to use `\O[5...]'.
7415 (createImage, generateImages): Updated.
7416 (main): Handle `F' and `h' options.
7417 Use `get_resolution'.
7419 * src/roff/troff/input.cc (begin, end, image): Removed.
7420 (do_suppress): Take parameter.
7421 Handle modified syntax of `\O'.
7422 (token::next): Updated.
7423 (init_markup_requests): Removed.
7426 * src/roff/troff/div.h: Add declaration for begin_page().
7428 * tmac/color-html.tmac: Removed. Contents moved to...
7429 * tmac/html.tmac: Here. Set background color.
7430 * tmac/color.tmac: Removed. Contents moved to...
7431 * tmac/ps.tmac: Here.
7432 * tmac/www.tmac: Remove the title command when generating images
7434 (NO_AUTO_RULE): New macro.
7435 (HTML_DO_IMAGE): Use revised `\O' escapes.
7436 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7438 2001-12-02 Werner LEMBERG <wl@gnu.org>
7440 * tmac/groff_mdoc.man: Fix typo.
7442 2001-12-01 Colin Watson <cjwatson@debian.org>
7444 * man/roff.man: Fix typo.
7446 2001-11-29 Werner LEMBERG <wl@gnu.org>
7448 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7451 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7452 more than one argument to \D'f ...'.
7454 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7456 2001-11-28 Werner LEMBERG <wl@gnu.org>
7458 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7461 * tmac/groff_man.man: Minor cosmetic fix.
7463 2001-11-27 Werner LEMBERG <wl@gnu.org>
7465 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7466 tmac/groff_www.man: s/mwww/www/.
7468 2001-11-26 Werner LEMBERG <wl@gnu.org>
7470 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7471 * configure: Regenerated.
7472 * win32-diffs: Updated.
7474 * tmac/groff_mwww.tmac: Renamed to ...
7475 * tmac/groff_www.tmac: This.
7476 * tmac/mwww.tmac: Removed.
7477 * NEWS, tmac/Makefile.sub: Updated.
7479 2001-11-21 Werner LEMBERG <wl@gnu.org>
7481 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7482 Fix explanation of `\D' and `rt'.
7484 2001-11-20 Werner LEMBERG <wl@gnu.org>
7486 * tmac/an-old.tmac (an-header): Set header length equal to page
7488 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7492 2001-11-19 Werner LEMBERG <wl@gnu.org>
7494 * NEWS, man/Makefile.sub: Updated.
7496 2001-11-19 Bernd Warken <bwarken@mayn.de>
7498 * man/ditroff.man: New file.
7500 2001-11-17 Werner LEMBERG <wl@gnu.org>
7502 * man/groff_differences.man: Renamed to ...
7503 * man/groff_diff.man: This. Updated.
7504 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7506 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7507 * src/preproc/html/pushback.cc: This. Updated.
7508 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7509 * src/preproc/html/pushback.h: This.
7510 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7513 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7514 * src/libs/libgroff/htmlhint.cc: This.
7515 * src/libs/libgroff/Makefile.sub: Updated.
7517 * tmac/an-old.tmac (an-end): Fix page length.
7519 2001-11-16 Werner LEMBERG <wl@gnu.org>
7521 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7522 * man/Makefile.sub: Include groff_differences.man.
7523 * VERSION: Set to 1.18.
7524 * REVISION: Set to 0.
7526 2001-11-16 Bernd Warken <bwarken@mayn.de>
7528 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7529 the second dot (or ending macro name) to end a macro.
7530 * doc/groff.texinfo: Doc fix.
7532 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7534 * tmac/doc-common (doc-header): Handle very long document titles
7537 2001-11-16 Werner LEMBERG <wl@gnu.org>
7539 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7541 2001-11-15 Werner LEMBERG <wl@gnu.org>
7543 * src/roff/troff/troff.man: Revised and split into troff.man and...
7544 * man/groff_differences.man: New file.
7547 2001-11-13 Werner LEMBERG <wl@gnu.org>
7549 * tmac/an-old.tmac (TS, TE): New macros for table support.
7551 2001-11-12 Werner LEMBERG <wl@gnu.org>
7553 * src/include/lib.h: Provide a fix for emx to not include
7556 2001-10-27 Werner LEMBERG <wl@gnu.org>
7558 * src/roff/troff/input.cc (substring_macro): Fix computation of
7561 2001-10-20 Werner LEMBERG <wl@gnu.org>
7563 Undo change from 2001-08-28.
7565 * src/roff/troff/input.cc (have_input): New global variable.
7566 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7567 in compatibility mode.
7568 (process_input_stack): Use it.
7570 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7572 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7573 being handled as end-of-sentence characters,
7575 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7577 * src/roff/troff/input.cc (file_iterator): New members
7578 `suppress_newline_flag' and `seen_escape'.
7579 (file_iterator::next_file): Updated.
7580 (file_iterator::fill): Use it.
7581 (string_iterator): New member `suppress_newline_flag'.
7582 (string_iterator::fill): Set it.
7583 (get_color_element): Use MAX_COLOR_VAL.
7584 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7585 (no_fill): Don't set `env->ignore_next_eol'.
7586 (environment::newline): Handle `eol' tag properly.
7588 (environment::add_html_tag): Set `env->ignore_next_eol'.
7590 * src/roff/troff/env.h (environment): Updated.
7592 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7594 (html_printer::outstanding_eol): New member function.
7595 (html_printer::do_title): Use new functions.
7596 (html_printer::troff_tag): Test `id_eol_ce'.
7598 2001-10-10 Werner LEMBERG <wl@gnu.org>
7600 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7601 files work with -C also.
7603 2001-10-05 Werner LEMBERG <wl@gnu.org>
7605 * doc/pic.ms: Minor fix.
7606 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7607 as a valid command line switch.
7608 * src/devices/grohtml/post-html.cc (main): Ditto.
7610 * src/devices/grohtml/grohtml.man: Updated.
7611 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7613 2001-10-04 Werner LEMBERG <wl@gnu.org>
7615 Implementing color support in troff, pic, grops, and grohtml. These
7616 changes are based on a major patch provided by Gaius Mulley
7619 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7620 definitions with both hex values and fractions.
7622 New escapes: \m and \M for drawing and background color,
7623 respectively. This corresponds to the troff output commands `m'
7626 groff and troff accept command line switch `-c' to disable color
7627 output (which is automatically disabled in compatibility mode).
7629 New scaling indicator `f' for fractions (1f = 65536u).
7631 New conditional operator `m' to test for defined colors with `if'
7634 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7635 (or `outlined'), and `shaded' added to pic.
7637 * src/include/color.h: New file.
7638 * src/include/driver.h: Include it.
7639 * src/include/printer.h: Include color.h.
7640 (environment): New members `col' and `fill'.
7641 (printer): Remove `adjust_arc_center' member function.
7642 * src/include/Makefile.sub: Updated.
7644 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7646 Handle `m' and `DF' troff commands.
7647 * src/libs/libgroff/color.cc: New file.
7648 * src/libs/libgroff/Makefile.sub: Updated.
7650 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7652 (createImage): Fix computation of `y2'.
7654 (buffer::write_file_html): Remove calls to `stop'.
7656 * src/preproc/pic/common.h (common_output): New abstract function
7657 members `set_color', `reset_color', `get_last_filled', and
7658 `get_outline_color'.
7659 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7660 (object_spec): Add members `shaded' and `outlined'.
7661 * src/preproc/pic/output.h (output): `command' is now abstract.
7662 New function members `set_color', `reset_color', `get_last_filled',
7663 and `get_outline_color'.
7664 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7665 `outline[d]', and `shaded'.
7666 * src/preproc/pic/object.cc (output::command): Removed.
7667 (output::set_location): Moved to output.h.
7668 (graphic_object): Add protected members `outline_color' and
7670 Add member functions `set_outline_color', `get_outline_color', and
7672 (closed_object): Add member function `set_fill_color'.
7673 Add member `color_fill'.
7674 (graphic_object::print_text): Use `out->set_color' and
7676 (box_object::print, ellipse_object::print, circle_object::print,
7677 line_object::print, spline_object::print, arc_object::print): Ditto.
7678 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7679 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7680 `SHADED', making them `%left'.
7681 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7682 * src/preproc/pic/tex.cc (tex_output): New dummy function members
7683 `set_color', `reset_color', `get_last_filled', and
7684 `get_outline_color'.
7685 * src/preproc/pic/troff.cc (simple_output): New abstract function
7686 members `set_color', `reset_color', and `get_last_filled'.
7687 (simple_output::polygon, simple_output::circle,
7688 simple_output::ellipse): Use `get_last_filled'.
7689 (troff_output): New members `last_filled' and `last_outlined'.
7690 New function members `set_color', `reset_color', `get_last_filled',
7691 and `get_outline_color'.
7692 (troff_output::finish_picture): Use `reset_color'.
7693 (troff_output::set_fill): Test `last_filled'.
7694 * src/preproc/pic/pic.man: Updated.
7696 * src/roff/groff/groff.cc (main): Implement `-c' option.
7697 (synopsis, help): Updated.
7698 src/roff/groff/groff.man: Updated.
7700 * src/roff/troff/troff.h: Include color.h.
7701 (warning_type): Add WARN_COLOR.
7702 * src/roff/troff/env.h (environment): New members
7703 `{cur,prev}_{glyph,fill}_color'.
7704 New member functions `get_{prev_,}{glyph,fill}_color'.
7705 * src/roff/troff/env.cc: Initialize and implement them.
7706 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7707 Replace `NULL' with `0' everywhere for consistency.
7708 (lookup_color, default_black, do_glyph_color, do_fill_color,
7709 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7710 define_color): New functions.
7711 (token::next): Implement \M and \m escapes.
7712 (do_if_request): Implement `m' operator.
7714 (main): Implement `-c' option.
7715 (init_markup_requests): Add `defcolor' request.
7716 (warning_table): Add `color' warning.
7717 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7719 * src/roff/troff/node.cc (troff_output_file): New members
7720 `current_{page,glyph}color'. New member functions `put_hex',
7721 `glyph_color', and `fill_color'.
7722 (glyph_color_node::*, fill_color_node::*): Implement it.
7723 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7724 (parse_term): Add support for `f'.
7725 * src/roff/troff/troff.man: Updated.
7727 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7729 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7730 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7732 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7733 (tag_definition): Use `void *' for arg1.
7734 (html_text): New member functions `do_color' and `done_color'.
7735 Use `void *' for second parameter of `push_para' member function.
7736 New `push_para' member function with a single parameter.
7737 Use `char *' for parameter of `issue_table_begin' member funtion.
7738 New `issue_color_begin' member function.
7739 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7741 (html_text::issue_color_begin): New function.
7742 (html_text::issue_table_begin): Use `char *' for parameter.
7743 (html_text::start_tag, html_text::shutdown,
7744 html_text::check_emit_text): Updated.
7745 (html_text::push_para): Use `void *' for second parameter.
7746 Add same function with only one parameter.
7747 (html_text::do_*): Updated.
7748 (html_text::do_color, html_text::done_color): New functions.
7749 * src/devices/grohtml/post-html.cc (style): New member `col'.
7750 Mew member `style' with 6 parameters.
7751 (style::style, style::operator==): Updated.
7752 (html_printer::do_font): Use it.
7753 (html_printer::draw): Add dummy entry for `F'.
7754 (html_printer::set_char): Updated.
7755 * src/devices/grohtml/grohtml.man: Updated.
7757 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7758 trailing zeroes removed.
7759 (ps_printer): New members `sbuf_color', `fill_color', and
7761 Removed member `fill'.
7762 New member function `set_color'.
7763 (ps_printer::ps_printer, ps_printer::set_char): Updated.
7764 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7765 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7767 * tmac/color-html.tmac, tmac/color.tmac: New files.
7768 * tmac/troffrc: Include them.
7769 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7770 * tmac/Makefile.sub: Updated.
7772 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7773 man/groff.man: Updated.
7774 * font/devps/prologue.ps: Define FC and CO functions.
7776 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
7778 Fix incorrect cropping of images and incorrect handling of special
7779 characters. Fix handling of file names in \O.
7781 * src/include/geometry.h: New file.
7782 * src/libs/libgroff/geometry.cc: New file.
7783 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7785 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7787 (do_suppress): Updated.
7788 * src/roff/troff/node.cc: Include geometry.h.
7789 (troff_output_file::flush_tbuf): Fixed parameters to
7790 `check_output_limits'.
7791 (troff_output_file::check_charinfo): Ditto.
7792 (troff_output_file::determine_line_limits): Add support for `Da'
7795 * src/devices/grohtml/post-html.cc (str_translate_to_html):
7796 Add new parameter `is_special' to decode special characters from
7798 (html_printer::do_title, html_printer::do_heading,
7799 html_printer::do_indentedparagraph,
7800 html_printer::translate_to_html, html_printer::special): Updated.
7802 2001-10-03 Werner LEMBERG <wl@gnu.org>
7804 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7805 Fix entry for config.h.
7806 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7807 * tmac/troffrc: Translate nonbreakable space character to `\~'.
7808 * src/preproc/eqn/eqn.man: Document -d command line option.
7810 2001-09-27 Werner LEMBERG <wl@gnu.org>
7812 * man/groff.man: Use
7820 instead of the old code (`.ad .hy' after the table) to suppress
7821 incorrect hyphenation for grohtml output.
7823 2001-09-22 Werner LEMBERG <wl@gnu.org>
7825 * man/groff_font.man, man/groff_out.man: Minor fixes.
7827 2001-09-20 Werner LEMBERG <wl@gnu.org>
7829 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
7830 Arnold Robbins <arnold@skeeve.com>).
7832 2001-09-09 Werner LEMBERG <wl@gnu.org>
7834 * configure: Regenerated with autoconf 2.52.
7836 * doc/groff.texinfo: Complete revision of indices.
7838 2001-09-07 Werner LEMBERG <wl@gnu.org>
7840 * doc/Makefile (clean): Updated to delete all indices.
7842 2001-09-05 Werner LEMBERG <wl@gnu.org>
7844 * src/roff/troff/troff.man: Remove superfluous line.
7846 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7847 given on the command line (or rather, if only the default warnings
7850 2001-09-03 Werner LEMBERG <wl@gnu.org>
7852 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7853 use .ne for TTY devices.
7855 2001-08-31 Werner LEMBERG <wl@gnu.org>
7857 * src/roff/troff/token.h, src/roff/troff/input.cc:
7858 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7860 2001-08-28 Werner LEMBERG <wl@gnu.org>
7862 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7863 * src/roff/troff/input.cc (token::next): Return
7864 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7866 (token::description): Updated.
7867 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7868 (token::add_to_node_list, token::process): Ignore
7869 TOKEN_TRANSPARENT_ESCAPE.
7871 2001-08-27 Werner LEMBERG <wl@gnu.org>
7873 * tmac/an-old.tmac: Fix `S' string.
7875 2001-08-26 Werner LEMBERG <wl@gnu.org>
7877 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7879 2001-08-25 Werner LEMBERG <wl@gnu.org>
7881 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7883 Many other minor fixes.
7885 * configure.ac: Add message at end to inform how to compile
7887 * configure: Regenerated.
7889 2001-08-24 Werner LEMBERG <wl@gnu.org>
7891 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7892 Updated to latest version of libc.
7894 2001-08-23 Werner LEMBERG <wl@gnu.org>
7896 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7897 Autoconf 2.50 and newer can handle this.
7898 * configure: Regenerated.
7900 2001-08-21 Werner LEMBERG <wl@gnu.org>
7902 * doc/pic.ms: Fix typo.
7903 * src/preproc/tbl/tbl.man: Document case of global options.
7905 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
7907 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7908 handling of `CR' font.
7910 2001-08-20 Werner LEMBERG <wl@gnu.org>
7912 Use a config.h file.
7914 * src/include/lib.h: Include config.h.
7915 * All C files: Ditto (if necessary).
7916 * All C++ source and header files: Include lib.h first (if
7919 * src/include/config.hin: New file (autogenerated by autoheader).
7920 * stamp-h.in: New file.
7921 * configure.ac: Updated.
7922 * aclocal.m4: Add third parameters to AC_DEFINE macros.
7923 (GROFF_ARRAY_DELETE): Simplified.
7924 * Makefile.sub (DISTCLEANFILES): Updated.
7925 Added targets for remaking config.status, config.hin, config.h,
7926 stamp-h.in, and stamp-h.
7927 * configure: Regenerated.
7929 2001-08-19 Werner LEMBERG <wl@gnu.org>
7933 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
7935 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7936 (do_sprintf): Use snprintf().
7938 2001-08-18 Werner LEMBERG <wl@gnu.org>
7940 * src/libs/snprintf/*: Added an snprintf module written by Mark
7942 * src/libs/libgroff/Makefile.sub: Updated.
7943 * configure.ac: Add test for snprintf().
7944 * Makefile.in: Updated.
7945 * configure: Regenerated.
7947 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7950 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
7952 * tmac/doc.tmac (Ex): New implementation.
7953 * tmac/doc-common, tmac/groff_tmac.man: Updated.
7955 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
7957 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7959 * tmac/groff_tmac.man: Updated.
7961 2001-08-13 Werner LEMBERG <wl@gnu.org>
7963 * src/preproc/tbl/tbl.man: Minor documentation update.
7965 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
7967 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7968 * configure.ac: Add declaration test for gettimeofday().
7969 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7970 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7971 * configure: Regenerated.
7973 2001-08-11 Werner LEMBERG <wl@gnu.org>
7975 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7976 * configure.ac: Add declaration test for strcasecmp().
7977 * Makefile.in: Updated.
7978 * configure: Regenerated.
7979 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7980 this is necessary because groff's mkstemp.cc is C++.
7981 Add declaration conditionally for strcasecmp().
7983 2001-08-10 Werner LEMBERG <wl@gnu.org>
7985 Integrated pic2graph, contributed by Eric S. Raymond.
7987 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7989 * Makefile.in, NEWS: Updated.
7991 * src/preproc/tbl/tbl.man: Revised.
7993 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
7995 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7997 2001-08-09 Werner LEMBERG <wl@gnu.org>
7999 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8002 2001-08-08 Paul Eggert <eggert@twinsun.com>
8004 * Makefile.sub (configure): Depend on configure.ac, not
8006 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8008 2001-08-07 Werner LEMBERG <wl@gnu.org>
8010 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8013 2001-08-06 Werner LEMBERG <wl@gnu.org>
8015 * src/roff/troff/troff.man: Improve documentation of -E option.
8017 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8019 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8022 2001-07-27 Werner LEMBERG <wl@gnu.org>
8024 * src/preproc/refer/refer.cc: Undo last change.
8025 * src/devices/grohtml/post-html.cc: Ditto.
8027 2001-07-26 Werner LEMBERG <wl@gnu.org>
8029 * src/preproc/refer/refer.cc: Include `lib.h'.
8030 * src/devices/grohtml/post-html.cc: Ditto.
8032 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8034 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8035 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8036 * Makefile.in: Comment updated.
8037 * configure: Regenerated.
8039 2001-07-25 Werner LEMBERG <wl@gnu.org>
8041 * src/preproc/pic/pic.cc: Removed.
8042 * src/preproc/pic/pic_tab.h: Removed.
8043 * src/preproc/refer/label.cc: Removed.
8045 * doc/Makefile (.ms.html): Don't use a file name extension in
8046 argument to grohtml's -I option.
8047 * Makefile.in (dist): Remove CVS directories.
8048 Call `distfiles' target.
8050 * src/devices/grohtml/grohtml.man: Add information about valid
8051 versions of pnmtopng.
8052 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8053 name instead of number.
8055 2001-07-24 Werner LEMBERG <wl@gnu.org>
8057 * doc/groff.texinfo: Minor fixes.
8059 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8061 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8064 2001-07-20 Werner LEMBERG <wl@gnu.org>
8066 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8067 * src/libs/libgroff/mkstemp.cc: New file.
8068 * src/libs/libgroff/mksdir.cc: New file.
8069 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8070 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8071 * src/libs/libgroff/Makefile.sub: Updated.
8072 * src/include/lib.h: Add mksdir() prototype.
8073 * src/include/posix.h: Define S_IXUSR if not yet defined.
8075 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8076 (createAllPages): Use mksdir() instead of current code.
8077 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8078 (main): [!HAVE_MKSTEMP]: Removed.
8080 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8081 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8083 * configure.ac: Add tests for stdint.h, sys/time.h, and
8085 Call new GROFF_xxx macros.
8086 * configure: Regenerated.
8087 * Makefile.in: Comments updated.
8089 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8091 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8092 instead of current code.
8093 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8094 * src/roff/groff/groff.cc (possible_command::insert_args): New
8096 (main): Use it for predriver handling instead of insert_arg().
8098 2001-07-19 Werner LEMBERG <wl@gnu.org>
8100 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8103 * src/include/posix.h: Define S_IWUSR if not yet defined.
8105 2001-07-18 Werner LEMBERG <wl@gnu.org>
8109 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8111 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8112 Some other minor fixes.
8113 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8115 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8117 Replace call to `troff' with `groff -Z' to make it aware of
8120 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8121 (troff_command, command_prefix): Removed.
8122 (alterDeviceTo): Use groff.
8123 (addZ): New function.
8124 (char_buffer::do_html): Use it.
8125 (scanArguments): Use TROFF_COMMAND.
8126 (findPrefix): Removed.
8128 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8130 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8132 * doc/pic.ms: Documentation fixes.
8134 2001-07-17 Werner LEMBERG <wl@gnu.org>
8136 Replace atexit() with global destructor.
8138 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8139 (xtmpfile_list_init): New global structure to deallocate
8140 xtmpfile_list on exit. Its destructor inherits most code from
8142 (remove_tmp_files): Deleted.
8143 (add_tmp_file): Simplified.
8145 2001-07-16 Werner LEMBERG <wl@gnu.org>
8147 Replace strdup() with strsave().
8149 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8150 (set_papersize): Use strsave() and a_delete.
8151 (main): Use strsave().
8152 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8153 removeAllPages): Use strsave() and a_delete.
8155 * configure.ac: Remove test for strdup.
8156 * Makefile.in: Comment updated.
8157 * configure: Regenerated.
8159 2001-07-15 Werner LEMBERG <wl@gnu.org>
8161 * win32-diffs: Updated.
8163 2001-07-14 Werner LEMBERG <wl@gnu.org>
8165 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8166 removing the old one.
8167 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8169 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8171 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8173 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8175 Merge -xwidth into -width. Add -xwidth functionality to -column
8178 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8180 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8181 string immediately following a leading dot starts with a valid mdoc
8183 Add similar code to the -column branch.
8184 (doc-Bl-usage): Updated.
8185 * groff_mdoc.man: s/-xwidth/-width/.
8187 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8189 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8190 running into centered or non-formatted text.
8192 2001-07-11 Werner LEMBERG <wl@gnu.org>
8194 Introduce short and long prefixes to have the selection at run-time
8195 whether there is a 8+3 limit for names of temporary files.
8197 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8198 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8199 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8201 (temp_init): New global structure to initialize above three
8203 (xtmptemplate): Use two parameters for long and short prefix.
8204 Simplify code use above three variables.
8205 (xtmpfile): Use long and short prefixes as parameters.
8206 * src/include/lib.h: Updated.
8208 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8210 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8211 (createAllPages, makeTempFiles): Updated.
8213 2001-07-09 Werner LEMBERG <wl@gnu.org>
8215 * REVISION: Increased to 3.
8217 Version 1.17.2 released
8218 =======================
8220 2001-07-07 Werner LEMBERG <wl@gnu.org>
8222 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8225 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8227 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8229 * tmac/groff_mdoc.man: Fix synopsis.
8231 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8233 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8234 Restore `doc-Pa-font'.
8236 2001-07-04 Werner LEMBERG <wl@gnu.org>
8238 * src/utils/indxbib/dirnamemax.c: Moved to ...
8239 * src/libs/libgroff/maxfilename.cc: Here.
8240 s/dir_name_max/file_name_max/.
8242 * src/include/lib.h: Add file_name_max.
8243 * src/utils/indxbib/indxbib.cc: Updated.
8244 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8247 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8249 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8251 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8252 REGION_TEMPLATE): New macros.
8253 (createAllPages, makeTempFiles): Use them.
8254 Include `nonposix.h'.
8255 (html_system): New function.
8256 (createAllPages, createImage): Use it.
8259 * tmac/www.tmac: Fix typos.
8261 2001-07-03 Werner LEMBERG <wl@gnu.org>
8263 * tmac/www.tmac: Disable hyphenation in normal text only if output
8265 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8266 * tmac/groff_mwww.man, NEWS: Updated.
8268 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8270 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8273 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8275 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8276 doc-display-ps-stack): Implement font and font size stack for
8279 2001-07-02 Werner LEMBERG <wl@gnu.org>
8281 * REVISION: Increased to 2.
8282 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8284 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8285 beginning of a line.
8286 * src/groff/grog/grog.sh: Ditto.
8288 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8290 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8293 2001-06-27 Werner LEMBERG <wl@gnu.org>
8295 Fix problems with preprocessor string for `man' program.
8297 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8298 Updated/added copyright.
8299 Moved Emacs's local variable to identify nroff mode to the end of
8300 the file; add local variable if missing.
8302 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8304 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8305 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8306 * configure: Regenerated.
8308 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8310 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8311 * configure: Regenerated.
8313 2001-06-24 Werner LEMBERG <wl@gnu.org>
8315 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8317 * doc/pic.ms: Fix typos.
8319 Version 1.17.1 released
8320 =======================
8322 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8324 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8325 * configure: Updated.
8327 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8329 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8331 * src/roff/troff/dic.cc (blank_line): Add html tag.
8333 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8335 * src/roff/troff/input.cc (do_suppress): Fix typo.
8337 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8339 Added two new options (-D and -I) to specify image names and a
8340 subdirectory to place the images in.
8342 Change syntax from \\Ox to \\O[x].
8344 * src/devices/grohtml/post-html.cc (main): Add options.
8346 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8347 Use `NULL' instead of `0' for null string pointers.
8348 (MAX_RETRIES): New macro.
8349 (lengthOfintToStr, intToStr, make_message): New functions.
8350 (makeFileName): Make function static.
8351 Implement -D and -I options.
8352 (checkImageDir): New function.
8353 (write_end_image, write_start_image): Use new syntax of \O.
8354 (createAllPages, removeAllPages): Implement -D and -I options. Use
8356 (createImage): Use make_message().
8357 (addps4html): Add guard for malloc().
8358 (usage, scanArguments): Updated.
8359 (makeTempFiles): Use mkstemp().
8360 (removeTempFiles): Use unlink().
8361 (findPrefix): Add guard for malloc().
8363 * src/roff/troff/input.cc (get_delim_file_name): New function to
8365 (do_suppress): Updated to parse new syntax.
8366 * src/devices/grohtml/grohtml.man: Updated.
8367 * tmac/www.tmac: Updated to new syntax.
8371 2001-06-15 Werner LEMBERG <wl@gnu.org>
8373 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8375 * src/devices/grohtml/grohtml.man: Minor improvements.
8377 2001-06-14 Werner LEMBERG <wl@gnu.org>
8379 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8381 2001-06-11 Werner LEMBERG <wl@gnu.org>
8383 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8384 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8386 * src/preproc/grn/grn.man: Add proper '\" string.
8388 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8390 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8392 2001-06-08 Werner LEMBERG <wl@gnu.org>
8394 Updated to autoconf 2.50.
8396 * configure.in: Renamed to...
8397 * configure.ac: This.
8398 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8399 (GROFF_OS390): Updated.
8400 * configure: Regenerated.
8402 2001-05-18 Werner LEMBERG <wl@gnu.org>
8404 * src/roff/troff/env.c, src/roff/troff/env.h,
8405 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8408 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8410 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8412 2001-05-16 Werner LEMBERG <wl@gnu.org>
8414 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8415 less than or equal zero; set it to 1 then.
8416 * src/roff/troff/node.h (node::node): Initialize `last'.
8418 2001-05-08 Werner LEMBERG <wl@gnu.org>
8420 * tmac/an-old.tmac: Make predefined strings work in compatibility
8422 Add troff version guard.
8423 * tmac/doc.tmac: Simplify version guard.
8425 2001-05-07 Werner LEMBERG <wl@gnu.org>
8427 The .ns and .rs requests are now honoured not only in the top-level
8428 but in all diversions (similar to UNIX troff).
8430 This change is based on a patch from Tadziu Hoffmann
8431 <hoffmann@usm.uni-muenchen.de>.
8433 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8434 (top_level_diversion): Remove `no_space_mode' member.
8435 * src/roff/troff/div.cc (diversion::diversion,
8436 top_level_diversion::top_level_diversion): Updated.
8437 (macro_diversion::output): Reset `no_space_mode'.
8438 (no_space, restore_spacing): Use `curdiv' unconditionally.
8439 (space_request, blank_line): Check `curdiv->no_space_mode'.
8440 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8441 `curdiv' unconditionally.
8442 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8445 2001-05-06 Werner LEMBERG <wl@gnu.org>
8447 Added two new requests `de1' and `am1' which are similar to `de' and
8448 `am' with the difference that compatibility mode is saved on entry,
8449 switched off during macro execution, and restored on exit.
8451 * src/roff/troff/input.h: Added two new special characters
8452 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8453 * src/roff/troff/input.cc (input_iterator): Added two member
8454 functions `save_compatible_flag' and `get_compatible_flag'.
8455 (input_stack): Ditto.
8456 (string_iterator): Ditto. Also add private member
8457 `saved_compatible_flag'.
8458 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8459 (calling_mode): New enumeration.
8460 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8461 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8462 (define_macro, define_indirect_macro, append_macro, ignore): Use
8464 (define_nocomp_macro, append_nocomp_macro): New functions.
8465 (init_input_requests): Updated.
8466 (do_request): Rename local variable `saved_compatible_flag' to
8467 `old_compatible_flag'.
8468 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8470 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8471 public and trap-invoked macros. As a consequence, the man macros
8472 work in compatibility mode also.
8474 2001-05-06 Solar Designer <solar@openwall.com>
8476 * Makefile.in: Use $(mandir).
8478 2001-05-06 Alexios Zavras <zvr@pobox.com>
8480 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8482 2001-05-05 Werner LEMBERG <wl@gnu.org>
8484 Added `.ns' number register: Returns 1 in no-space mode (if in
8485 top-level diversion), 0 otherwise.
8487 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8488 (init_div_requests): Updated.
8489 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8492 2001-05-04 Werner LEMBERG <wl@gnu.org>
8494 * src/roff/nroff/nroff.man: Improved documentation (especially
8497 2001-05-02 Werner LEMBERG <wl@gnu.org>
8499 Added `brp' request: This is \p as a request.
8501 * src/roff/troff/env.cc (environment::do_break): Add parameter
8503 (do_break_request): New function (was `break_request').
8504 (break_request): Calls `do_break_request'.
8505 (break_spread_request): New; calls `do_break_request'.
8506 (init_env_requests): Updated.
8507 * src/roff/troff/env.h: Updated.
8508 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8510 * REVISION: Increased to 1.
8511 * win32-diffs: Updated.
8513 2001-05-01 Werner LEMBERG <wl@gnu.org>
8515 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8516 * tmac/troffrc-end: Make it really work in compatibility mode.
8518 2001-04-27 Werner LEMBERG <wl@gnu.org>
8520 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8523 2001-04-22 Werner LEMBERG <wl@gnu.org>
8525 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8526 latest versions from glibc CVS archive.
8528 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8529 <c.zeelenberg@hccnet.nl>.
8531 2001-04-21 Werner LEMBERG <wl@gnu.org>
8533 * configure.in: Move check for mkstemp() to...
8534 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8535 * configure: Regenerated.
8537 * src/include/groff-getopt.h: Don't use variable names in
8540 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8541 * src/devices/grohtml/Makefile.sub,
8542 src/devices/grohtml/post-html.cc: Updated.
8544 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8546 * configure.in: Add special check for mkstemp().
8547 * src/libs/libgroff/tmpfile.cc: Use it.
8548 * src/utils/indxbib/indxbib.cc: Ditto.
8549 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8550 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8553 2001-04-20 Bruce Lilly <blilly@erols.com>
8555 `Version_string' as C++ object was not visible to linker from C
8557 Add `const' to `Version_string'.
8559 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8560 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8561 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8562 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8563 (scanArguments), src/preproc/refer/refer.cc (main),
8564 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8565 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8566 (main), src/devices/grohtml/post-html.cc (main),
8567 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8568 (main), src/utils/hpftodit/hpftodit.cc (main),
8569 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8570 (main), src/utils/lkbib/lkbib.cc (main),
8571 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8573 * src/roff/groff/pipeline.c: Add _UWIN.
8574 * src/include/nonposix.h: Ditto.
8576 2001-04-20 Werner LEMBERG <wl@gnu.org>
8578 * src/include/lib.h: Use HAVE_STRERROR.
8579 * src/roff/groff/pipeline.c: Ditto.
8580 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8581 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8582 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8583 * win32-diffs: Updated.
8584 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8586 2001-04-19 Werner LEMBERG <wl@gnu.org>
8588 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8589 instead of hardwired `"troff"'.
8590 (char_buffer::read_file): Remove unused variables.
8591 (char_buffer::write_file_troff): Ditto.
8592 (char_buffer::write_file_html): Ditto.
8593 (generateImages): Ditto.
8595 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8597 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8599 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8600 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8601 index_search_item::search1): Ditto.
8602 * src/roff/troff/node.h (width_list): Reorder members.
8603 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8604 (lookup_warning): Ditto.
8605 (prepend_string): Commented out.
8606 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8607 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8608 * src/preproc/tbl/main.cc (process_format): Ditto.
8609 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8611 * src/preproc/pic/pic.cc: Updated.
8612 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8613 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8614 * src/preproc/refer/command.cc (execute_command): Ditto.
8615 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8616 * src/preproc/refer/token.cc (lookup_token): Ditto.
8617 * src/preproc/soelim/soelim.cc: Ditto.
8618 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8619 (isHexDigit): Commented out.
8620 (pushBackBuffer::isString): Remove unused variable.
8621 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8623 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8624 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8626 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8627 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8628 lookup_paper_size): Ditto.
8629 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8630 (text_glob, element_list): Reorder members.
8631 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8633 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8634 return value to `void'.
8635 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8637 * src/devices/grohtml/html.h (simple_output::check_newline,
8638 simple_output::space_or_newline, simple_output::enable_newlines):
8640 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8642 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8643 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8644 output_ligatures, output_charset, read_map): Ditto.
8645 * src/utils/lookbib/lookbib.cc (main): Ditto.
8646 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8647 (do_file): Fix typo (`=' -> `==').
8648 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8649 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8651 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8653 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8654 Fix usage of GROFF_BIN_PATH.
8655 * src/roff/nroff/nroff.man: Updated.
8657 2001-04-18 Werner LEMBERG <wl@gnu.org>
8659 * NEWS: Fixing typos.
8662 Version 1.17 released
8663 =====================
8665 2001-04-17 Werner LEMBERG <wl@gnu.org>
8667 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8668 directory, not in $(srcdir).
8670 2001-04-16 Werner LEMBERG <wl@gnu.org>
8672 * doc/groff.texinfo: More info on conditionals.
8674 2001-04-15 Werner LEMBERG <wl@gnu.org>
8676 * doc/groff.texinfo: Added some info about groff internals.
8678 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8679 about missing special character only if the name is non-null.
8681 2001-04-14 Werner LEMBERG <wl@gnu.org>
8683 Removing the grohtml-old device driver which is now obsolete.
8685 * src/devices/grohtml-old/*: Removed.
8686 * font/devhtml-old/*: Removed.
8687 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8689 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8690 * test-groff (PATH): Updated.
8691 * tmac/Makefile.sub (NORMALFILES): Updated.
8692 * tmac/an-old.tmac: Remove special code for html-old device.
8693 Replace `html-or-html-old' register with `an-html'.
8694 * tmac/eqnrc: Updated.
8695 * tmac/html-old.tmac: Removed.
8696 * tmac/troffrc, tmac/troffrc-end: Updated.
8697 * tmac/www.tmac: Remove special code for html-old device.
8698 Replace `html-or-html-old' register with `www-html'.
8700 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8701 src/libs/libgroff/htmlindicate.cc (graphic_end),
8702 include/htmlindicate.h, src/preproc/grn/*.cc,
8703 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8704 single argument for consistency with rest of source code.
8706 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8708 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
8710 * src/roff/troff/troff.man: Fixing typos.
8712 2001-04-13 Werner LEMBERG <wl@gnu.org>
8714 * doc/pic.ms: Fixing many font switches.
8715 * doc/groff.texinfo: Fixes, additions.
8716 * MORE.STUFF: Updated.
8718 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
8720 * src/devices/grohtml/grohtml.man: Updated manual page regarding
8722 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8724 (removeTempFiles): New function to tidy up temporary files.
8725 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8726 Many fixes to do with the new inline suppress node and image regions
8728 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8729 (generate_img_src): New function.
8730 (html_printer::do_auto_image): Utilizes it.
8731 (do_heading, do_title): Include inline images within their contents.
8732 (html_printer::begin_page): Tidied up comments that are issued to
8733 the html output file.
8734 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8736 (text_glob::is_br): New method used by do_heading.
8737 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8738 equivalent diversion.
8739 * src/include/html-strings.h: Altered image tags to reflect the
8741 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8743 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8744 it is already inside a pic image. Only emit tags if the argument
8745 `-Tps:html' is present.
8746 * src/preproc/tbl/main.cc: Changes to reflect additional
8747 `html_end_suppress' parameter.
8748 * src/roff/troff/env.cc: Only emit eol tag if a node has been
8749 emitted since the last eol tag was written.
8750 * src/roff/troff/env.h: New boolean `emitted_node'.
8751 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8752 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
8753 * src/roff/troff/node.cc (check_charinfo): New method.
8754 (troff_output_file::determine_line_limits): Alterations to limit
8756 * tmac/www.tmac: Changes to reflect new suppress nodes.
8758 2001-04-12 Bruno Haible <haible@clisp.cons.org>
8760 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8761 Escape the html_glyph in the buffer.
8762 (str_translate_to_html): Output the unescaped escaped_char.
8763 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8764 `frame=void', not `frame=none'. Add `border=0'.
8766 2001-04-12 Werner LEMBERG <wl@gnu.org>
8768 * PROBLEMS: Add some words on how to avoid wrapper macros.
8770 2001-04-11 Blake McBride <blake@florida-software.com>
8772 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8774 2001-04-11 Werner LEMBERG <wl@gnu.org>
8776 * font/devlbp/Makefile.sub (CLEANADD): Set it.
8777 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8778 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8779 * Makefile.sub (DISTCLEANFILES): Here.
8781 * libs/libgroff/new.cc: Include `nonposix.h'.
8782 * win32-diffs: Updated.
8784 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
8786 Added skeleton macro for defunct macros.
8788 Updated documentation.
8790 When inside displays, an empty input line warning should be
8791 suppressed. If another macro call is put inside a display,
8792 all subsequent empty lines found in that display caused a
8793 warning to be emitted.
8795 * tmac/doc.tmac (doc-defunct-macro): New macro.
8796 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8797 (doc-restore-global-vars): Fixed typo.
8798 (doc-empty-line): Check the `doc-display-depth' register to
8799 determine whether we are inside display or not.
8801 * tmac/doc-common: Removed `Or' and `Sf' registers.
8802 Moved obsolete `Ds' macro to doc.tmac.
8804 * tmac/groff_mdoc.man: Bump document date.
8805 Document `.Vt' under ``Variable Types''.
8806 Removed documentation for obsolete `.Or' macro.
8808 2001-04-10 Werner LEMBERG <wl@gnu.org>
8811 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8813 2001-04-10 Bruno Haible <haible@clisp.cons.org>
8815 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8816 (usage): Add stream argument. Don't exit.
8817 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8818 Write --version output to stdout, not stderr.
8819 (usage): Add stream argument. Don't exit.
8820 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8821 (usage): Add stream argument. Don't exit.
8822 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8824 (usage): Add stream argument. Don't exit.
8825 (main): Write --help output to stdout, not stderr.
8826 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8827 (usage): Add stream argument. Don't exit.
8828 * src/devices/grops/ps.cc (main): Accept --help and --version.
8829 (usage): Add stream argument. Don't exit.
8830 * src/devices/grotty/tty.cc (main): Accept --help and --version.
8831 (usage): Add stream argument. Don't exit.
8832 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8833 (main): Accept --help and --version.
8834 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8835 (main): Accept --help and --version.
8836 * src/preproc/html/pre-html.cc (usage): Add stream argument.
8837 (scanArguments): Accept --help and --version.
8838 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8839 (main): Accept --help and --version.
8840 * src/preproc/refer/refer.cc (main): Accept --help and --version.
8841 (usage): Add stream argument. Don't exit.
8842 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8844 (main): Accept --help and --version.
8845 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8846 (main): Accept --help and --version.
8847 * src/roff/groff/groff.cc (main): Accept --help and --version.
8848 (synopsis): Add stream argument.
8849 (help): Write --help output to stdout, not stderr.
8850 (usage): Add stream argument. Don't exit.
8851 * src/roff/grog/grog.pl: Accept --help and --version.
8853 * src/roff/grog/grog.sh: Accept --help and --version.
8854 * src/roff/nroff/nroff.sh: Accept --help and --version.
8855 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8856 (usage): Add stream argument. Don't exit.
8857 (main): Accept --help and --version.
8858 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8859 (usage): New function with stream argument, doesn't exit.
8860 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8861 (usage): New function with stream argument, doesn't exit.
8862 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8863 (usage): Add stream argument. Don't exit.
8864 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8865 (main): Accept --help and --version.
8866 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8868 (main): Accept --help and --version.
8869 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8870 (main): Accept --help and --version.
8871 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8872 (usage): Add stream argument. Don't exit.
8874 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
8876 Fix indentation in SYNOPSIS.
8878 Updated to include changes of latest BSD mdoc version (basically,
8879 the only change is that `.Fn' and `.Fc' put a final semicolon after
8880 a function declaration in the SYNOPSIS section).
8882 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8883 (doc-in-synopsis-section): New variable. Updated all related
8885 (doc-indent-synopsis-active): New register.
8886 (Nd, Fn, Fo): Use it.
8887 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8888 `.Cd' with long argument line produces indented wrapped lines.
8889 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8890 undesirable line break to be output.
8891 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8893 (Fn, Fc): Add final `;' to output.
8894 (doc-save-global-vars, doc-restore-global-vars): Updated.
8895 * tmac/doc-common: Remove `Ex' register.
8897 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8900 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8902 * tmac/doc.tmac (Cd): Simplify code.
8903 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8905 2001-04-06 Werner LEMBERG <wl@gnu.org>
8907 Implement continuous underlining for nroff mode. To do that, a new
8908 request in the ditroff language has been added: `x u N' (N is 0
8911 \X and \Y are now transparent to end-of-sentence recognition.
8913 * src/include/printer.h (printer): Add `type' parameter to `special'
8915 * src/libs/libdriver/printer.cc (printer::special): Updated.
8916 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8918 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8919 specials of type `p'.
8920 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8921 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8922 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8923 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8924 (glyph::order): New method.
8925 (tty_printer::add_char): Use it.
8926 (tty_printer::special): New method.
8927 (tty_printer::end_page): Implement it.
8929 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8930 * src/roff/troff/node.cc (special_node::special_node): Add parameter
8931 to set `no_init_string'.
8932 (special_node::tprint_start): Use it.
8933 (special_node::same, special_node::copy): Updated.
8934 (special_node::ends_sentence): New method.
8935 (troff_output_file::start_special): Add parameter to include
8936 inititialization of special conditionally.
8938 * src/roff/troff/env.h (environment): New member `underline_spaces'.
8939 * src/roff/troff/env.cc (do_underline_special): New function.
8940 (environment::set_font): Use it.
8941 (do_underline): Use it. This was `underline()'.
8942 (underline): Call `do_underline()'.
8943 (continuous_underline): New function which calls `do_underline()'.
8944 (environment::newline): Use `do_underline_special()'.
8945 (init_env_requests): Updated.
8947 * NEWS, man/troff_out.man: Updated.
8949 2001-04-06 Bruno Haible <haible@clisp.cons.org>
8951 * font/devutf8/R.proto: Fix code of 'shc'.
8953 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8955 Many fixes. Diag lists can now be nested also; additionally,
8956 `-compact' and `-offset' are supported.
8958 * tmac/doc.tmac (doc-have-indent): Replaced with ...
8959 (doc-list-have-indent-stackXXX): A new register stack.
8960 (doc-have-diag-list): Removed.
8961 (Bl): Use `doc-list-have-indent-stackXXX'.
8963 (doc-diag-list): Use `doc-compact-list-stackXXX'.
8964 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8965 (doc-set-vertical-and-indent): Ditto.
8966 (doc-next-list-depth): Removed.
8967 (doc-increment-list-stack): Updated.
8968 (doc-decrement-list-stack): Use `doc-list-depth' instead of
8969 `doc-next-list-depth'.
8970 (doc-end-list, doc-end-column-list): Don't use
8971 `doc-increment-list-stack'.
8972 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8973 (doc-save-global-vars, doc-restore-global-vars): Updated.
8974 * tmac/doc-common: Updated.
8975 * tmac/groff_mdoc.man: Updated.
8978 2001-04-02 Werner LEMBERG <wl@gnu.org>
8980 * src/devices/grotty/grotty.man: Fix grammatical error.
8982 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
8984 Remove .Ld from mdoc package; replace it with special handling of
8987 * tmac/doc-common: Remove `Ld' register.
8988 Uncomment `doc-volume-ds-*' strings.
8989 Remove `doc-operating-system-default'.
8991 * tmac/doc-syms (Ld): Removed.
8992 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8996 * tmac/groff_mdoc.man: Many fixes and updates.
8998 2001-03-29 Werner LEMBERG <wl@gnu.org>
9000 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9001 Bond <tkb@tkb.mpl.com>.
9002 * tmac/www.tmac: Save compatibility mode.
9004 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9006 * tmac/groff_mdoc.man: Many fixes.
9008 2001-03-28 Werner LEMBERG <wl@gnu.org>
9010 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9013 2001-03-27 Werner LEMBERG <wl@gnu.org>
9015 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9016 diversion. This fixes overlong tags.
9018 2001-03-26 Werner LEMBERG <wl@gnu.org>
9020 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9021 * tmac/doc-syms: Fix error messages.
9022 * tmac/an-old.tmac: Remove incorrect double backslashes.
9024 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9026 * tmac/Makefile.sub: Strip mdoc.local also
9027 * tmac/strip.sed: Fixed.
9029 2001-03-24 Werner LEMBERG <wl@gnu.org>
9031 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9032 selecting the font size.
9033 * tmac/groff_mdoc.man, NEWS: Document it.
9035 2001-03-23 Werner LEMBERG <wl@gnu.org>
9037 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9039 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9040 argument to restore previous font family.
9041 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9043 * doc/groff.texinfo: More fixes and additions (mainly for font
9044 manipulating commands).
9046 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9047 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9048 * tmac/Makefile.sub, NEWS: Updated.
9050 2001-03-23 Werner LEMBERG <wl@gnu.org>
9052 Replaced mdoc implementation. The new version is `state of the
9053 art', using almost all new features of groff 1.17 -- it won't run
9054 with older versions.
9056 * tmac/doc.tmac: Completely rewritten.
9057 * tmac/doc-common: Ditto.
9058 * tmac/doc-nroff: Ditto.
9059 * tmac/doc-ditroff: Ditto.
9060 * tmac/doc-syms: Ditto.
9061 * tmac/mdoc.local: New file.
9062 * tmac/groff_mdoc.samples.man: Replaced with ...
9063 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9064 * tmac/strip.sed: Updated.
9065 * tmac/Makefile.sub: Updated.
9068 * tmac/groff_man.man: Add `man.local' to the FILES section.
9070 2001-03-22 Werner LEMBERG <wl@gnu.org>
9072 * doc/groff.texinfo: Added many @noindent.
9073 Replaced @end_Example -> @endExample.
9074 Added info whether registers are r/o.
9075 Many other additions and fixes.
9077 2001-03-21 Werner LEMBERG <wl@gnu.org>
9079 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9080 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9081 Improved @Def* macros: Now the exact syntax of request, register,
9082 and escapes is shown.
9083 Added macros for parentheses and brackets to be used in @Def*.
9084 Many fixes and improvements of the documentation.
9086 2001-03-20 Werner LEMBERG <wl@gnu.org>
9088 * doc/groff.texinfo: Added new index: `st' (for strings).
9089 Added macros @Defstr(x).
9090 Added macro @Example (adding @group).
9091 Other minor improvements.
9093 2001-03-19 Werner LEMBERG <wl@gnu.org>
9095 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9096 `rq' for requests. `fn' is no longer used.
9097 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9100 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9101 number with name of man page.
9103 2001-03-19 Larry Kollar <kollar@alltel.net>
9105 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9108 2001-03-19 Werner LEMBERG <wl@gnu.org>
9110 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9111 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9112 * src/devices/grohtml/grohtml.man: Fixing typos.
9114 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9116 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9117 * tmac/groff_mwww.man: Remove .LINE macro
9118 * tmac/www.tmac (LINE): Add `.ti'.
9120 * src/devices/grohtml/post-html.cc (html_printer): New member
9122 (html_printer::emit_raw): Use it.
9123 (html_printer::do_linelength): Ditto.
9124 (html_printer::do_pageoffset): Ditto.
9125 (html_printer::do_indentation): Ditto.
9126 (html_printer::do_tempindent): Ditto.
9127 (html_printer::do_break): Ditto.
9128 (html_printer::begin_page): Ditto.
9129 (html_printer::do_indentedparagraph): New function.
9130 (html_printer::troff_tag): Handle `.ip'.
9131 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9132 Add `<td width=...>' handling.
9133 (html_text::do_table): Add parameter.
9134 (html_text::do_indent): Updated.
9135 * src/devices/groohtml/html-text.h: Updated.
9137 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9139 Introduced simple html tables to implement indentation.
9141 * src/devices/grohtml/html.h (word, word_list): New structures.
9142 (simple_output): Use it.
9143 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9144 (html_printer): Improve indentation handling.
9145 (html_printer::emit_raw): Set `in_table' element. Handle
9147 (html_printer::write_header): Move conditional downwards.
9148 Don't allow whitespace in tags.
9149 (html_printer::do_linelength): Handle line length and indentation
9151 (html_printer::do_pageoffset): Handle indentation conditionally.
9152 (html_printer::do_indentation): Ditto.
9153 (html_printer::do_tempindent): New function member.
9154 (html_printer::do_fill): Take care of indentation.
9155 (html_printer::do_flush): Finish table.
9156 (html_printer::do_links): Ditto.
9157 (html_printer::do_break): New function for handling `.br' and `.ti'.
9158 (html_printer::troff_tag): Use it.
9160 (html_printer::flush_globs): Fix.
9161 (html_printer::flush_page): Finish table.
9162 (html_printer::html_printer): Fix error message. Set up
9164 (html_printer::add_to_sbuf): Remove special handling of character
9166 (to_unicode): Remove `stop()'.
9167 (html_printer::write_title): Cleanup.
9168 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9169 (html_printer::~html_printer): Flush text and end the line.
9171 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9172 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9174 (html_text::start_tag): Disable newlines.
9175 (html_text::table_is_void): New function.
9176 (html_text::issue_table_begin): Ditto.
9177 (html_text::issue_table_end): Ditto.
9178 (html_text::push_para): Better table handling.
9179 (html_text::do_indent): New function.
9180 (html_text::do_table): Ditto.
9181 (html_text::done_table): Ditto.
9182 (html_text::do_tt): Handle PRE_TAG.
9183 (html_text::is_in_table): New function.
9184 (html_text::check_emit_text): Handle tables.
9185 (html_text::do_emittext): Use `nl()'.
9186 (html_text::do_para): Handle table.
9187 (html_text::remove_def): New function.
9188 * src/devices/grohtml/output.cc (word, word_list): Implement
9190 (simple_output::end_line): Flush last word.
9191 (simple_output::simple_comment): Ditto.
9192 (simple_output::begin_comment): Recoded.
9193 (simple_output::end_comment): Ditto.
9194 (simple_output::comment_arg): Removed.
9195 (simple_output::check_newline): Improve test and flush last word.
9196 (simple_output::space_or_newline): Improved.
9197 (simple_output::write_newline): Replaced with...
9198 (simple_output::nl): This.
9199 (simple_output::put_raw_char): Flush last word.
9200 (simple_output::check_space): Removed.
9201 (simple_output::put_translated_string): Ditto.
9202 (simple_output::put_string): Simplified.
9203 (simple_output::put_number): Updated.
9204 (simple_output::put_float): Ditto.
9205 (simple_output::put_symbol): Removed.
9206 (simple_output::enable_newlines): Add `check_newline()'.
9207 (simple_output::flush_last_word): New function.
9209 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9210 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9212 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9213 * tmac/an-old.tmac (TP): Ditto.
9215 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9217 * mdate.sh: Make it POSIX compliant.
9219 2001-03-09 Werner LEMBERG <wl@gnu.org>
9221 Added the `return' request to end a macro immediately. It simply
9222 pops iterators from the input stack until a macro iterator is found.
9224 * src/roff/troff/input.cc (input_iterator::is_macro,
9225 macro_iterator::is_macro): New member.
9226 (input_return_boundary): New class to signal an immediate return
9228 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9230 (input_stack::clear): Use it.
9231 (input_stack::pop_macro): New function.
9232 (while_request): Use `is_return_boundary()'.
9233 (return_macro_request): New function.
9234 (init_input_requests): Use it.
9236 * src/roff/troff/TODO: Updated.
9237 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9239 2001-03-08 Werner LEMBERG <wl@gnu.org>
9241 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9244 2001-03-07 Werner LEMBERG <wl@gnu.org>
9246 Make `\B' more rigid.
9248 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9250 (get_number_rigidly): New function.
9251 * src/roff/troff/input.cc (do_expr_test): Use it.
9252 * src/roff/troff/token.h: Updated.
9254 * src/roff/troff/request.h: Fix typo (init_html_request ->
9255 init_markup_request).
9257 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9259 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9260 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9261 are now `.begin', `.end', `.image'.
9263 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9264 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9265 Use add_char_to_sbuf().
9266 (to_unicode): New function.
9267 (char_translate_to_html): Changing type of `ch' parameter.
9269 (html_printer::~html_printer): Comment out doctype string.
9270 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9271 instead of `.html-end'.
9272 (write_start_image): Use `.begin' and `.image' instead of
9273 `.html-begin' and `.html-image'.
9274 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9275 (html_begin): Renamed to ...
9277 (html_end): Renamed to ...
9279 (html_image): Renamed to ...
9281 (init_html_requests): Renamed to ...
9282 (init_markup_requests): This.
9283 * tmac/www.tmac: Updated.
9285 2001-02-28 Bram <bram@avontuur.org>
9287 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9290 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9292 * doc/meref.me: Fixing some typos.
9294 2001-02-16 Werner LEMBERG <wl@gnu.org>
9296 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9297 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9298 * src/roff/troff/node.h: Updated.
9300 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9302 * tmac/groff_tmac.man: Fix typo.
9304 2001-02-16 Werner LEMBERG <wl@gnu.org>
9306 Fixing a bug which prevented proper end-of-sentence recognition
9307 between an `unformatted' box and the following text. As a
9308 consequence, vertical line distances are no longer preserved in
9309 boxes after a call to `.unformat' -- because boxes aren't
9310 line-oriented (contrary to diversions), this doesn't make sense
9313 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9315 (vertical_size_node::set_unformat_flag): New method.
9316 * src/roff/troff/node.hh: Updated.
9317 * src/roff/troff/input.cc (word_space_node::reread,
9318 hmotion_node::reread): Reset `unformat' flag after usage.
9319 (unformat_macro): Append only if `set_unformat_flag()' returns
9321 * src/roff/troff/troff.man: Updated.
9323 2001-02-15 Werner LEMBERG <wl@gnu.org>
9325 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9326 documentation of `asciify' and `unformat' requests.
9328 2001-02-13 Werner LEMBERG <wl@gnu.org>
9330 Redesigned the `unformat' request. It is no longer connected with
9331 `asciify' but rather uses new `reread()' methods if the `unformat'
9332 flag is set. Additionally, the handling of space characters after
9333 unformatting has been fixed so that they retain their width.
9335 * src/roff/troff/node.h (width_list): New structure to store
9336 original widths of spaces.
9337 (node): Added `unformat' member.
9338 Replaced `num_spaces' variable with `orig_width' list.
9339 * src/roff/troff/node.cc (*node::asciify,
9340 asciify_reverse_node_list): Removed `unformat_only' flag and related
9342 (word_space_node::asciify, word_space_node::word_space_node): Use
9344 (word_space_node::~word_space_node): New destructor.
9345 (word_space_node::copy): Updated to handle `orig_width'.
9346 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9347 (*node::merge_space): Update `orig_width' list if necessary.
9348 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9349 * src/roff/troff/enc.cc (environment::space_newline): Use
9351 (environment::space): Added method to handle space width and
9352 sentence space width as parameters. Use `width_list'.
9353 (environment::make_tab_node): Updated.
9354 * src/roff/troff/env.h: Updated.
9355 * src/roff/troff/input.cc (word_space_node::reread,
9356 unbreakable_space_node::reread, hmotion_node::reread): New methods
9357 to handle nodes specially if `unformat' flag is set.
9358 (do_asciify_macro): Renamed back to ...
9359 (asciify_macro): This.
9360 (unformat_macro): New implementation to simply set the `unformat'
9363 * MORE.STUFF: Added more info about deroff.
9365 2001-02-08 Werner LEMBERG <wl@gnu.org>
9367 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9368 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9369 and `add_self()' methods to avoid hyphenation. For example, the
9370 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9371 soft hyphen after `foo'. Now the hyphen list is correctly
9372 `foo<ignore><ignore>bar'.
9374 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9376 * tmac/groff_tmac.man: Fix `BIR' macro.
9378 2001-02-04 Werner LEMBERG <wl@gnu.org>
9380 A new escape sequence `\:', inserting a zero-width break point.
9382 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9383 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9385 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9387 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9388 and `asciify()' methods.
9389 * src/roff/troff/node.cc (space_node::space_node): Updated.
9390 (space_node::asciify): Handle `was_escape_colon'.
9391 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9393 Handle `\~' similar to other comparable requests.
9395 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9397 (token::next): Move creation of an unbreakable_space_node to...
9398 (token::add_to_node_list): Here.
9400 Fix a bug which sometimes prevented hyphenation of words connected
9401 with `\~' or `\ ' (and other escape sequences handled as
9402 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9403 (after a call to the `unformat' request).
9405 * src/roff/troff/env.h (environment::possibly_break_line,
9406 environment::hyphenate_line): Introducing `start_here' parameter.
9407 * src/roff/troff/env.cc (environment::space_newline,
9408 environment::space): Use it.
9409 (environment::possibly_break_line, environment::hyphenate_line):
9411 * src/roff/troff/input.cc (process_input_stack): Use it.
9412 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9413 space_char_hmotion_node, overstrike_node): Add
9414 `get_hyphenation_type()' method.
9415 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9416 if `unformat_only' is active.
9418 2001-01-30 Werner LEMBERG <wl@gnu.org>
9420 Implemented new read-only number register `.linetabs' which
9421 returns 1 if in line-tabs mode, 0 otherwise.
9423 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9424 * src/roff/troff/env.cc (get_line_tabs): New function.
9425 (init_env_requests): Use it.
9426 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9428 * VERSION, REVISION: Changing to 1.17.0.
9430 2001-01-28 Werner LEMBERG <wl@gnu.org>
9432 Fixed a bug which prevented hyphenation of words which are finished
9435 * src/roff/troff/token.h (token): Add enum type
9436 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9437 * src/roff/troff/input.cc (token::next, token::description,
9438 get_line_arg, token::add_to_node_list, token::process): Use it.
9440 2001-01-27 Werner LEMBERG <wl@gnu.org>
9442 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9443 * src/roff/troff/div.cc (do_divert): Use it.
9445 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9447 2001-01-25 Werner LEMBERG <wl@gnu.org>
9449 Adding the `linetabs' request. If set, tab distances are not
9450 computed relative to the input line but relative to the output line.
9452 * src/roff/troff/env.h (environment): New member `line_tabs'.
9453 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9454 (environment::environment, environment::copy): Updated.
9455 (environment::distance_to_next_tab): Use `line_tabs'.
9456 (init_env_requests): Register request.
9457 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9460 2001-01-24 Werner LEMBERG <wl@gnu.org>
9462 Introducing a new read-only register `.int' which is set to a
9463 positive value if the last output line is interrupted (i.e., if it
9466 * src/roff/troff/env.cc (init_env_requests): Add it.
9467 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9469 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9471 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9472 * src/preproc/html/pre-html.cc (findPrefix): New function which
9473 generates the troff executable name via the system prefix.
9474 * src/preproc/eqn/main.cc: Modified warning message.
9476 2001-01-23 Werner LEMBERG <wl@gnu.org>
9478 troff's `box' and `boxa' requests didn't preserve temporary
9481 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9482 `saved_target_text_length' members.
9483 * src/roff/troff/div.cc (do_divert): Use them.
9485 Tabs (but not yet leaders and fields) are now handled correctly by
9488 * node.h (hmotion_node): Add field `was_tab'.
9489 * env.cc (environment::make_tab_node): Set it.
9490 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9492 Added new request `unformat' which will, contrary to `asciify',
9493 preserve font information after unformatting (i.e., only nodes
9494 dealing with horizontal space are converted back to input
9497 * input.cc (asciify_macro): Renamed to ...
9498 (do_asciify_macro): this, having a new parameter `unformat_only'.
9499 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9500 (init_input_requests): Added `unformat'.
9501 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9502 parameter to control asciification process.
9503 * node.h (*_node::asciify): Ditto.
9504 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9506 2001-01-20 Werner LEMBERG <wl@gnu.org>
9508 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9510 2001-01-18 Werner LEMBERG <wl@gnu.org>
9512 * tmac/ps.tmac: Remove call of psold.tmac.
9513 * tmac/psold.tmac: Comment updated.
9514 * tmac/psnew.tmac: Removed since no longer needed.
9515 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9517 * font/devutf8/R.proto: Adding `shc' glyph.
9518 * font/devutf8/NOTES: Updated.
9520 * test-groff: Updated.
9522 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9524 First cut of the new html device driver. Changes to pre-html and
9525 the new grohtml are too numerous to be documented here.
9527 Stuff related to `html' has been renamed to `html-old' and `html2'
9528 stuff has been renamed to `html' (including directories). The new
9529 html device driver is therefore invoked as `-Thtml'.
9531 Added new `\O' escape to suppress output (needed by html driver).
9533 Added functions and code to pass info about input-level commands
9534 (`.in', `.fl', etc.) to html driver.
9536 Three new functions (.html-begin, .html-end, and .html-image) for
9537 better html handling: `html-begin' will execute the remaining line
9538 if at the outermost nesting level, increasing an internal counter.
9539 `html-end' does the same but decreases the internal counter.
9540 `html_image' puts its arguments into a special node (suppress_node)
9541 to define an image region.
9543 The `output' request has been removed.
9545 * tmac/html-tags.tmac: Removed.
9546 * tmac/arkup.tmac: Updated and renamed to ...
9547 * tmac/www.tmac: New file.
9548 * tmac/markup.tmac Updated and renamed to ...
9549 * tmac/mwww.tmac: New file.
9550 * tmac/Makefile.sub: Updated.
9551 * tmac/an-old.tmac: Updated.
9552 * tmac/eqnrc: Updated.
9553 * tmac/groff_man.man
9554 * tmac/groff_markup.man: Updated and renamed to ...
9555 * tmac/groff_mwww.man: New file.
9556 * tmac/groff_tmac.man: Updated.
9557 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9558 * tmac/html.tmac: Updated and renamed from html2.tmac.
9559 * tmac/pspic.tmac: Updated html support.
9560 * tmac/s.tmac: Added html output support.
9561 * tmac/troffrc, tmac/troffrc-end: Updated.
9563 * Makefile.in, doc/Makefile: Updated.
9564 * doc/groff.texinfo: Added info about new `\O' escape.
9565 * doc/homepage.ms: Use `MAILTO' macro.
9567 * font/devhtml/DESC.proto: Add `C' font.
9568 * font/devhtml/Makefile.sub: Updated.
9569 * font/devhtml/R.proto: Minor fixes.
9570 * font/devhtml-old/Makefile.sub: Updated.
9572 * src/devices/grohtml-old/Makefile.sub: Updated.
9574 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9576 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9577 graphic_start): Add `inline' parameter. Update.
9578 (html_end_suppress, graphic_end): Update.
9580 * src/include/html-strings.h: New file.
9581 * src/include/htmlindicate.h: Comments updated.
9582 * src/include/printer.h: Updated.
9584 * src/preproc/eqn/main.cc (do_file, main): Updated.
9585 * src/preproc/pic/troff.cc (troff_output::start_picture,
9586 troff_output::finish_picture): Updated.
9587 * src/preproc/tbl/main.cc (process_input_file): Updated.
9589 * src/roff/groff/groff.cc (main): Updated.
9590 Pass device arguments to predrivers also.
9591 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9592 * src/roff/troff/env.h (environment): Updated.
9593 New elements `need_eol' and `ignore_next_eol' (for html output).
9594 * src/roff/troff/env.cc (environment::environment): Add initializers
9595 for `need_eol' and `ignore_next_eol'.
9596 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9598 (point_size, fill, no_fill, center, right_justify, line_length,
9599 indent, temporary_indent, break_request, handle_tab): Use
9601 (set_tabs): Use `add_html_tag_tabs()'.
9602 (environment::add_html_tag): Updated.
9603 (environment::do_break): Updated.
9604 * src/roff/troff/div.cc (space_request, flush_output): Use
9605 `environment::add_html_tag()'.
9606 * src/roff/troff/input.cc: Updated.
9607 New variable `html_level' to indicate nested `html-begin' requests.
9608 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9609 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9610 `force_tprint()' method.
9611 (token::next): Handle `\O'.
9612 (do_suppress): Implement it.
9613 (html_begin, html_end, html_image): New functions.
9614 (init_output_requests): Renamed to ...
9615 (init_html_requests): this.
9617 (macro::append_str, macro::append_unsigned, macro::append_int): New
9619 New variable `output_low_mark_miny' to limit minimal value of y.
9620 (reset_output_registers): Use it.
9621 (output_request): Removed.
9622 (get_output_registers): New function.
9623 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9624 (*_node): Added `force_tprint()' if necessary.
9625 (special_node): New elements `tf' and `get_tfont()'.
9626 (suppress_node): New class.
9627 * src/roff/troff/node.cc:
9628 New global variables `image_no' and `suppress_start_page'.
9629 (real_output_file): New method `is_on()'.
9630 (troff_output_file): New method `start_special(tfont)'.
9631 (troff_output_file::really_print_line): Use `tprint' conditionally.
9632 (real_output_file::print_line): Updated.
9633 (real_output_file::on): Updated.
9634 (*_node): Added `force_tprint()'.
9635 (special_node::special_node): Initializer updated.
9636 (special_node::same, special_node::copy, special_node::tprint_start):
9638 (get_reg_int, get_reg_str): New functions.
9639 (suppress_node::*): New methods.
9640 New global variables last_position, last_image_filename;
9641 (min): New inline function.
9642 * src/roff/troff/reg.h, src/roff/troff/request.h,
9643 src/roff/troff/troff.h: Updated.
9645 2001-01-13 Werner LEMBERG <wl@gnu.org>
9647 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9648 documentation of `asciify' request.
9650 2001-01-12 Werner LEMBERG <wl@gnu.org>
9652 * src/roff/troff/input.cc: Move definition of special characters
9653 like `ESCAPE_TILDE' to ...
9654 * src/roff/troff/input.h: New file.
9655 * src/roff/troff/Makefile.sub (HDRS): Add it.
9657 Extending the .asciify request to `unformat' space characters also.
9659 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9660 to count input space characters.
9661 Update constructors to take care of it.
9662 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9663 `ESCAPE_SPACE' instead of normal space.
9664 (word_space_node::asciify): New method.
9665 (unbreakable_space_node::asciify): New method.
9666 (word_space_node::merge_space): New method.
9667 * src/roff/troff/env.cc (environment::space_newline,
9668 environment::space): Add code to initialize `num_spaces' (using the
9669 constructor of `word_space_node').
9670 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9673 2001-01-09 Werner LEMBERG <wl@gnu.org>
9675 * man/groff_char.man: Use table header traps only conditionally.
9677 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
9679 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9681 2001-01-08 Werner LEMBERG <wl@gnu.org>
9683 Introducing the `box' and `boxa' requests which are similar to
9684 `di' resp. `da' but omitting a partially filled line (which is
9685 restored after ending the diversion).
9687 * src/roff/troff/div.h (diversion): Add elements to save partially
9689 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9690 partially filled line.
9691 (divert, divert_append): Updated.
9692 (box, box_append): New functions.
9693 (init_div_requests): Use them.
9694 * src/roff/troff/env.h (environment): do_divert() is now a friend.
9695 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9697 * doc/groff.texinfo: Fix documentation of `lf' request.
9699 2000-12-25 Werner LEMBERG <wl@gnu.org>
9701 * src/roff/troff/troff.man, NEWS: Document `writem' request.
9703 2000-12-21 Werner LEMBERG <wl@gnu.org>
9705 Ignore `ss' request if in compatibility mode.
9707 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9708 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9709 * src/roff/troff/env.cc (space_size): Use it.
9711 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9712 `ss' request in nroff mode.
9714 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9717 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
9719 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9721 2000-12-13 Werner LEMBERG <wl@gnu.org>
9723 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9724 * src/preproc/eqn/neqn.man: Small fixes and additions.
9726 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
9728 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9731 * src/preproc/eqn/neqn.man: New file.
9733 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9736 * tmac/e.tmac: Add `T&' macro.
9737 Fix `indent cannot be negative' warning.
9738 * tmac/s.tmac: Fix `indent cannot be negative' warning.
9740 2000-12-07 Werner LEMBERG <wl@gnu.org>
9742 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9744 2000-12-06 Werner LEMBERG <wl@gnu.org>
9746 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9749 * MORE.STUFF: Added info about deroff for djgpp.
9751 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9752 documentation of -rcR switch.
9754 2000-12-03 Werner LEMBERG <wl@gnu.org>
9756 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9757 if -rcR=1 (which is now the default in nroff mode), a single, very
9758 long page is created instead of multiple pages: All `ne' and `wh'
9759 requests are put into conditionals; a new macro `an-end' is added to
9760 be called with `em'.
9762 Some other minor cleanups.
9764 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9766 2000-12-02 Werner LEMBERG <wl@gnu.org>
9768 Fixing a bug which prevented hyphenation in words followed
9769 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9771 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9772 Adding possibly_break_line().
9773 * src/roff/troff/env.h (environment): Make possibly_break_line()
9776 Make `\~' usable in .tr request.
9778 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9779 (token): Add stretchable_space().
9780 * src/roff/troff/input.cc (token::next, token::delimiter,
9781 token::description, process_input_stack, do_translate,
9782 add_to_node_list, token::process): Use it.
9783 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9784 for adjusting the space.
9785 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
9786 for stretchable space.
9787 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9788 (make_node): Add code for stretchable space.
9789 * src/roff/troff/env.cc (environment::add_char): Use it.
9790 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9791 (get_copy, token::next, transparent_translate, asciify): Use it.
9793 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9794 doc/groff.texinfo: Updated.
9795 * man/groff.man: Small reorderings.
9797 2000-11-23 Werner LEMBERG <wl@gnu.org>
9800 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9802 * src/roff/troff/input.cc (main): Add `config_macro_path' and
9803 `safer_macro_path' to -M option.
9804 * src/roff/troff/troff.man: Fixes.
9806 2000-11-22 Werner LEMBERG <wl@gnu.org>
9808 Use safer path (except for config files) if -U isn't specified. Add
9809 a special macro path (without home and current directory) for config
9810 files. Add home directory to unsafe path for consistency. Don't
9811 include the home directory in the font path.
9813 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9815 * src/include/macropath.h: Add `config_macrp_path'.
9816 * src/libs/libgroff/fontfile.cc: Fix font path.
9817 * src/roff/troff/input.cc (process_startup_file): Use
9818 `config_macro_path'.
9819 (main): Select unsafe path if -U is given.
9821 * src/preproc/eqn/main.cc (main): Fixing search path for
9823 * src/preproc/eqn/eqn.man: Updated.
9825 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9828 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9829 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9830 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9831 src/devices/grotty/grotty.man: Updated.
9833 * Makefile.in: Fix comments.
9835 2000-11-17 Werner LEMBERG <wl@gnu.org>
9837 * tmac/safer.tmac: Empty file added (again) for compatibility
9839 * tmac/Makefile.sub: Updated.
9841 2000-11-16 Werner LEMBERG <wl@gnu.org>
9843 * src/devices/grodvi/dvi.cc (main),
9844 src/devices/grohtml2/post-html.cc (main),
9845 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9846 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9847 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9848 (main), src/preproc/html2/pre-html.cc (main),
9849 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9850 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9851 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9852 (main), src/utils/hpftodit/hpftodit.cc (main),
9853 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9854 (main), src/utils/lookbib/lookbib.cc (main),
9855 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9856 (main): Use stdout for -v.
9857 * src/roff/groff/groff.cc (run_commands),
9858 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9859 to make direct printing to stdout possible.
9860 * src/roff/groff/pipeline.h: Updated.
9862 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9863 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9864 * src/utils/afmtodit/afmtodit.man: Updated.
9866 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9867 (version): New function.
9869 * src/utils/addftinfo/addftinfo.man: Updated.
9871 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9872 Fixing copyright dates.
9874 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9877 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9880 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9882 2000-11-15 Werner LEMBERG <wl@gnu.org>
9884 In all programs, make -v return immediately with exit status 0 to
9885 be compliant with the GNU standard.
9887 * src/devices/grodvi/dvi.cc (main),
9888 src/devices/grohtml2/post-html.cc (main),
9889 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9890 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9891 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9892 (main), src/preproc/html2/pre-html.cc (main),
9893 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9894 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9895 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9896 (main): Implement it.
9899 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
9900 and postprocessors to the -v option.
9902 * src/roff/grog/grog.pl: Implement -v.
9903 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9904 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9906 * src/roff/nroff/nroff.sh: Implement -v.
9907 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9908 * src/roff/nroff/nroff.man: Updated.
9910 * src/preproc/eqn/main.cc (main): Fix comment typo.
9912 * MORE.STUFF: Added info about djgpp port of grap.
9914 2000-11-14 Werner LEMBERG <wl@gnu.org>
9916 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9917 mode (or rather, implemented non-compatibility mode).
9918 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9920 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9921 replacing it -- we don't find gxditview otherwise.
9922 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9924 * src/preproc/pic/depend: Removed. Unnecessary.
9926 Implemented dummy keyword `solid' in pic for compatibility with
9929 * lex.cc (lookup_keyword): Added `solid'.
9930 * pic.y: Added SOLID with dummy rule.
9931 * pic.cc, pic_tab.h: Regenerated.
9932 * doc/pic.ms: Updated.
9934 2000-11-13 Werner LEMBERG <wl@gnu.org>
9936 For security reasons, don't use the current directory but the home
9937 directory while searching and scanning troffrc and troffrc-end.
9938 Similarly, replace the current directory with the home directory
9941 * Makefile.in (fontpath, tmacpath): Remove current directory.
9943 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9944 two parameters `add_home' and `add_current'.
9945 (search_path::~search_path, search_path::command_line_dir,
9946 search_path::open_file): Remove tests for `dirs' being zero.
9947 * src/include/searchpath.h: Adjust.
9948 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9950 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9952 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9953 * src/roff/troff/input.cc: Use `mac_path', initialized with
9955 (process_startup_file): Set `mac_path' to `safer_macro_path'.
9956 * src/roff/troff/env.cc: Use `mac_path'.
9958 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9960 * NEWS, man/roff.man, src/roff/troff/troff.man,
9961 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9964 2000-11-12 Werner LEMBERG <wl@gnu.org>
9966 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9968 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9969 * configure.in: Fix typo in comment.
9970 * configure: Regenerated.
9972 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9975 2000-11-08 Werner LEMBERG <wl@gnu.org>
9977 Add system tmac directory (/usr/local/lib/groff/site-tmac).
9979 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9980 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9983 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9984 * tmac/Makefile.sub (install_data): Create
9985 $(systemtmacdir) and $(localtmacdir).
9986 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9987 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9988 NEWS, doc/groff.texinfo: Updated and minor fixes.
9990 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9991 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9992 $(systemtmacdir) since the wrapper files are platform-dependent.
9994 2000-11-01 Werner LEMBERG <wl@gnu.org>
9996 * doc/groff.texinfo: Fix typo.
9998 2000-10-26 Werner LEMBERG <wl@gnu.org>
10000 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10001 tmac.doc.old -> doc-old.tmac
10002 tmac.an.old -> an-old.tmac
10004 * tmac/tmac.*: Moved to ...
10005 * tmac/*.tmac: this.
10006 * tmac/man.local: Fix comment.
10007 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10008 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10009 Added some `FILES' sections. More use of @...@ directives. Other
10011 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10012 * doc/homepage.ms, doc/groff.texinfo: Updated.
10013 * man/groff.man, man/roff.man: Updated.
10014 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10015 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10016 src/devices/grotty/grotty.man: Updated.
10017 * src/preproc/pic/pic.man: Updated.
10018 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10019 instead of -mdoc.old.
10020 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10021 * src/roff/nroff/nroff.man: Updated.
10024 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10026 * tmac/mm.diff: Removed -- it has no use now since the mm package
10029 * tmac/*: Removed trailing spaces.
10031 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10032 the tmac subdirectory also).
10034 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10035 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10036 stuff since it is no longer needed.
10038 * README, PROBLEMS: Updated.
10040 2000-10-25 Werner LEMBERG <wl@gnu.org>
10042 Invert current behaviour: Search first FOOBAR.tmac, then
10045 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10046 (open_mac_file, macro_source): Implement it.
10047 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10048 doc/groff.texinfo, NEWS: Document it.
10050 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10051 Small documentation improvements.
10053 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10054 subdirectory also).
10056 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10058 2000-10-24 Werner LEMBERG <wl@gnu.org>
10060 Add local tmac directory (groff/site-tmac).
10062 * Makefile.in: Add $(localtmacdir).
10063 (uninstall_dirs): Add $(localtmacdir).
10064 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10065 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10066 in $(localtmacdir). Create $(localtmacdir).
10067 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10068 Updated and minor fixes.
10070 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10072 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10074 2000-10-23 Werner LEMBERG <wl@gnu.org>
10076 Move hyphen.us to tmac directory.
10078 * src/roff/troff/hyphen.us: Removed.
10079 * src/tmac/hyphen.us: Added.
10080 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10082 Change installation structure for data files from .../groff/... to
10083 .../groff/<version><revision>/... to be conform with other GNU
10086 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10087 doc/Makefile: Implement it.
10088 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10089 * configure: Updated.
10090 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10091 * NEWS: Document it.
10092 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10093 @MACRODIR@ instead of hard-coded directories.
10095 2000-10-22 Werner LEMBERG <wl@gnu.org>
10097 Implement $GROFF_BIN_PATH environment variable (which defaults to
10098 $bindir) used for child programs of groff and similar wrappers.
10100 * gendefs.sh: Improve documentation.
10101 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10102 src/preproc/eqn/Makefile.sub (neqn),
10103 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10104 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10106 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10107 $GROFF_PATH__ (the latter for communication with troff).
10108 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10110 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10111 doc/groff.texinfo: Document it.
10113 * doc/groff.texinfo: Improve documentation of troff's -a option.
10115 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10117 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10118 non-intrusive eol marker.
10119 (troff_output_file::determine_line_limits): New function.
10120 (troff_output_file::draw): Use it.
10121 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10122 output_pending_lines() instead of output_line().
10123 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10124 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10125 createImage): Small fixes.
10127 2000-10-14 Werner LEMBERG <wl@gnu.org>
10129 Replace tmac.safer with a real secure solution.
10131 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10132 system_request, pipe_output): Disable requests if in safer mode.
10133 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10134 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10135 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10136 doc/groff.texinfo, src/roff/groff/groff.man,
10137 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10139 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10140 (resource_manager::output_prolog): Replace setenv() with putenv().
10142 2000-10-09 Werner LEMBERG <wl@gnu.org>
10144 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10145 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10146 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10147 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10148 compilation errors with some compilers. It seems that this code
10149 is no longer necessary -- if yes, it is easy to add some #ifdef's
10150 for that particular old-fashioned compiler.
10152 * MORE.STUFF: Added info about Meta-tbl.
10154 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10156 2000-10-07 Werner LEMBERG <wl@gnu.org>
10158 Adding a new escape sequence \B'...': If the string between
10159 the delimiters is a valid numeric expression, return the character
10160 `1', and `0' otherwise. This is an analogon to \A.
10162 * src/roff/troff/input.cc (do_expr_test): Implement it.
10163 (token::next): Use it.
10164 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10166 * tmac/tmac.trace: Made independent from escape character.
10168 2000-10-06 Werner LEMBERG <wl@gnu.org>
10170 Adding a new request .dei: define indirect. The first and second
10171 parameter of .dei are taken from string registers instead directly;
10172 this very special request is needed to make tmac.trace independent
10173 from the escape character (which might even be disabled).
10175 * src/roff/troff/input.cc (do_define_macro): Implement it.
10176 (define_macro_indirect): New function.
10177 (init_input_requests): Use it.
10179 Adding two requests .ecs and .ecr: Save and restore the escape
10180 character. These two requests are needed to make tmac.trace
10181 independent from the escape character (which might even be
10184 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10186 (init_input_requests): Use it.
10188 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10190 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10192 Adding a new option -P and new environment variable GROPS_PROLOGUE
10193 to grops, selecting a different prologue file (minor modifications
10196 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10197 src/devices/grops/ps.cc (main): Implement it.
10198 * src/devices/grops/grops.man, NEWS: Document it.
10200 2000-09-22 Werner LEMBERG <wl@gnu.org>
10202 * INSTALL: Add info about selecting paper format.
10204 2000-09-21 Werner LEMBERG <wl@gnu.org>
10206 * src/roff/troff/input.cc (main): Fixing compiler warning.
10207 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10208 strings.h from the former to the latter.
10209 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10210 stuff from the former to the latter.
10212 2000-09-11 Werner LEMBERG <wl@gnu.org>
10214 Implementing two new requests .tm1 and .tmc: The former is similar
10215 to .tm but can output leading spaces; its syntax is similar to
10216 defining a string, i.e., a `"' can be used to mark the beginning of
10217 the string to be written to stderr: `.tm1 " test'. The latter is
10218 similar to .tm1 but doesn't write out a final newline character.
10220 * src/roff/troff/input.cc (terminal1, terminal_continue,
10221 do_terminal): New functions.
10222 (init_input_requests): Use them.
10223 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10225 2000-09-09 Werner LEMBERG <wl@gnu.org>
10227 * tmac/groff_mdoc.samples.man: Small fixes.
10229 2000-09-08 Werner LEMBERG <wl@gnu.org>
10231 * tmac/groff_mdoc.man: Fixing typo.
10233 2000-09-02 Werner LEMBERG <wl@gnu.org>
10235 Implementing a .nop request which does nothing.
10237 * src/roff/troff/input.cc (nop_request): New function.
10238 (init_input_requests): Use it.
10239 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10241 2000-09-01 Werner LEMBERG <wl@gnu.org>
10243 * doc/groff.texinfo: Added some comments.
10245 2000-08-30 Werner LEMBERG <wl@gnu.org>
10247 * src/roff/troff/TODO: Updated.
10249 2000-08-25 Werner LEMBERG <wl@gnu.org>
10251 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10253 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10255 * font/devps/generate/Makefile (SHELL): Define explicitly to
10256 "/bin/sh", for non-Unix platforms.
10257 (extraclean): Use a more portable "" quoting instead of a
10258 backslash (which doesn't work on DOS/Windows).
10260 * font/devlj4/generate/Makefile (extraclean): Ditto.
10262 * font/devdvi/generate/Makefile (extraclean): Ditto.
10264 2000-08-25 Werner LEMBERG <wl@gnu.org>
10266 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10267 src/roff/troff/troff.man: Document Eli's latest changes.
10269 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10271 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10272 macro file names of the form NAME.tmac as well as tmac.NAME.
10274 2000-08-25 Werner LEMBERG <wl@gnu.org>
10276 * src/include/posix.h: Remove definition of FILENAME_MAX.
10278 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10279 `sys_fatal' and `stop' function().
10281 * test-groff: Updated.
10283 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10285 Added the new troff command .output <arg> to suppress output (while
10286 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10287 registers (for passing the output dimensions to the output device).
10289 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10291 * src/roff/troff/node.h, src/roff/troff/node.cc
10292 (troff_output_file::really_print_line,
10293 ascii_output_file::really_print_line,
10294 supress_output_file::really_print_line): Use `width' parameter.
10295 (troff_output_file::really_on, troff_output_file::really_off,
10296 output_file::on, output_file::off, real_output_file::on,
10297 real_output_file::off, real_output_file::really_on,
10298 real_output_file::really_off): New functions.
10299 (real_output_file:public output_file): New variable `output_on'.
10300 (real_output_file::begin_page, real_output_file::copy_file,
10301 real_output_file::transparent_char, real_output_file::print_line):
10303 (real_output_file::print_line): Use check_output_limits.
10304 * src/roff/troff/reg.h, src/roff/troff/request.h,
10305 src/roff/troff/input.cc (assign_registers): New function to remove
10307 (do_ps_file): Use it.
10308 (check_output_limits, reset_output_registers, output_request,
10309 init_output_requests): New functions.
10310 (init_input_requests): Updated.
10312 Added new grohtml2 device and html2 preprocessor (coding
10313 not yet finished) which will eventually replace grohtml.
10315 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10317 * src/include/htmlindicate.h, src/include/htmlindicate
10318 (html_begin_suppress, html_end_suppress): New functions.
10319 * src/preproc/tbl/main.cc: Use it.
10320 * src/roff/groff/groff.cc: Add support for html2 device (which will
10321 automatically invoke the html2 preprocessor).
10322 * src/roff/troff/input.cc (is_html2): New variable.
10323 * src/roff/troff/troff.h, src/roff/troff/env.h,
10324 src/roff/troff/env.cc (environment::add_html_tag): New function
10326 (environment::do_break): Use it.
10327 * font/devhtml2/*: New files.
10328 * src/devices/grohtml2: New device.
10329 * src/preproc/html2: New preprocessor.
10330 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10332 2000-08-23 Werner LEMBERG <wl@gnu.org>
10334 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10336 2000-08-22 Werner LEMBERG <wl@gnu.org>
10338 * src/include/lib.h: Provide a fix for IRIX to not include
10341 2000-08-18 Werner LEMBERG <wl@gnu.org>
10343 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10344 since some non-GNU sed programs can't handle null regexps.
10345 * configure, src/preproc/eqn/Makefile.sub,
10346 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10348 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10349 bug (string.h and strings.h are both needed according to latest
10352 * MORE.STUFF: Added info about unroff and troffcvt.
10354 2000-08-08 Werner LEMBERG <wl@gnu.org>
10356 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10359 * tmac/tmac.man.old: Remove unused number register.
10361 * tmac.doc: Minor documentation fix.
10363 2000-08-07 Paul Eggert <eggert@twinsun.com>
10365 * src/roff/groff/pipeline.c (is_system_shell):
10366 Fix typo: "monocased_shell" no longer exists.
10368 2000-08-07 Paul Eggert <eggert@twinsun.com>
10370 Remove FILENAME_MAX limits.
10372 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10373 that the argument length is less than FILENAME_MAX.
10374 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10375 Use struct hack to allocate and free file name.
10376 (struct xtmpfile_list): fname is now part of the structure,
10377 not a pointer to another string.
10379 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10381 * src/include/posix.h: Add a default value for FILENAME_MAX.
10383 2000-08-06 Paul Eggert <eggert@twinsun.com>
10385 Add support for new BSD-style man pages (with ".Dd" instead of
10386 ".TH"), so that "groff -man" understands both styles, even
10387 when running "groff -man" on a host whose system man page
10388 macros don't support ".Dd".
10390 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10391 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10392 in case the system man macros don't define Dd or TH.
10394 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10395 * tmac/tmac.an: New one-line file.
10396 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10398 2000-08-06 Werner LEMBERG <wl@gnu.org>
10400 * src/roff/troff/troff.man: Fixing typos.
10402 Version 1.16.1 released
10403 =======================
10405 2000-07-31 Werner LEMBERG <wl@gnu.org>
10407 Preparing release 1.16.1.
10409 * REVISION: Revision number set to 1.
10410 * MORE.STUFF: Added info about port to DOS.
10411 * NEWS, win32-diffs: Updated.
10413 * src/include/nonposix.h: Remove first line -- this file is used
10416 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10419 2000-07-30 Werner LEMBERG <wl@gnu.org>
10421 * doc/texinfo.tex: Update to latest version.
10423 2000-06-28 Paul Eggert <eggert@twinsun.com>
10425 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10426 commands that fail. Don't assume that "export a=b" is valid shell
10427 syntax. This is needed for Solaris 2.5.1.
10429 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10430 comment about missing Solaris headers.
10432 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10434 2000-06-25 Werner LEMBERG <wl@gnu.org>
10436 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10439 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10441 * win32-diffs: Updated.
10442 * README.WIN32: Added CRs to make all Windows editors happy.
10444 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10445 src/roff/groff/pipeline.c).
10447 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10449 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10450 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10452 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10454 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10455 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10457 (main): Support non-Posix systems with several different styles of
10458 slash characters in file names.
10460 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10461 (main) [SET_BINARY]: Switch stdin into binary mode.
10463 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10464 (main): Support file names with several possible slash-type
10465 characters, as given by DIR_SEPS[] in nonposix.h.
10466 (main) [__MSDOS__]: If renaming the temporary index file fails
10467 because it has more than one dot in its trunk, replace the dot
10468 with an underscore and try again.
10469 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10471 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10473 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10474 (File::File): Open the input file in binary mode. Strip CR
10475 characters from each CR-LF pair.
10476 (xbasename): Support file names with several possible slash-type
10477 characters, as given by DIR_SEPS[] in nonposix.h.
10479 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10481 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10482 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10483 [!_POSIX_VERSION]: Define for traditional Unix systems.
10484 (real_output_file::real_output_file): Remove the MSVC-specific
10485 call to popen, use instead POPEN_WT, appropriately defined on
10486 nonposix.h. #include nonposix.h.
10487 (real_output_file::~real_output_file): Remove the MSVC-specific
10488 call to pclose, a suitable macro is now defined on nonposix.h.
10489 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10490 and WEXITSTATUS instead of assuming traditional Unix
10491 interpretation of the status returned by pclose.
10493 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10494 call to popen, use POPEN_RT instead (appropriately defined on
10495 nonposix.h). #include nonposix.h.
10496 (ps_bbox_request): Open the PostScript file in binary mode.
10497 Close the file after processing it.
10498 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10501 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10502 A version of run_pipeline that doesn't use `fork'.
10503 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10504 (system_shell_name, system_shell_dash_c)
10505 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10506 the ugliness of testing DOS/Windows file names for equality, and
10507 support both stock shells and ports of Unix shells.
10509 * src/roff/groff/groff.cc: #include nonposix.h.
10510 (BSHELL): Definition moved to nonposix.h.
10511 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10512 instead of a literal "-c".
10513 (xbasename): Support file names with several possible slash-type
10514 characters, as given by DIR_SEPS[] in nonposix.h.
10515 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10516 of literal strings.
10518 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10519 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10521 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10524 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10526 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10529 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10531 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10532 P_tmpdir is defined, use it instead of the literal "/tmp".
10533 (remove_tmp_files, add_tmp_file): New functions.
10534 (xtmpfile): Record temporary files and register an atexit function
10535 to delete them explicitly, instead of relying on the OS to do
10536 that, which doesn't work on non-Unix systems.
10538 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10539 (search_path::search_path): Use PATH_SEP instead of a literal
10541 (search_path::command_line_dir): Ditto.
10542 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10543 to support non-Posix systems.
10545 * src/libs/libbib/search.cc: #include nonposix.h.
10546 (search_list::add_file): Open the file in binary mode.
10548 * src/libs/libbib/linear.cc: #include nonposix.h.
10549 (file_buffer::load): Remove \r characters preceding \n from the
10552 * src/libs/libbib/index.cc: #include nonposix.h.
10553 (make_index_search_item): Open index_filename in O_BINARY mode.
10554 (index_search_item_iterator::get_tag): Ditto. Remove \r
10555 characters before \n characters.
10556 (index_search_item::check_files): Open files in binary mode.
10557 (index_search_item::munge_filename): Support DOS-style file names
10558 with backslashes and drive letters, use IS_ABSOLUTE.
10560 * src/devices/grops/ps.cc: #include nonposix.h.
10561 (main) [SET_BINARY]: Switch stdout to binary mode.
10563 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10564 (main) [SET_BINARY]: Switch stdout to binary mode.
10566 * src/devices/grolbp/lbp.cc: #include nonposix.h
10567 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10569 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10570 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10572 (main) [SET_BINARY]: Switch stdout to binary mode.
10573 [_MSC_VER]: Remove an explicit call to _setmode.
10575 * src/include/nonposix.h: New file.
10577 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10578 operation when building with DJGPP.
10579 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10580 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10583 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10585 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10586 etc. can include a semi-colon on DOS/Windows.
10587 (depend.temp): Use depend1.temp instead of depend.temp1, to
10588 prevent files from overerwiting each other on 8+3 filesystems.
10590 * gendef.sh (t): Change definition to work with DOS/Windows.
10592 doc/groff.texinfo: Apart of some typo corrections, I also changed
10593 some index entris, to make them more non-ambiguous, and also put
10594 @ignore around some parts that are not yet written, to allow the
10595 Info output be readable.
10597 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10599 Replaced specific checks for function declarations with a generic
10600 routine taken from GNU bfd.
10602 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10603 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10604 * configure.in: Use it.
10605 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10606 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10607 src/roff/groff/groff.cc: Use it.
10608 * Makefile.in, configure: Updated.
10610 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10612 * src/devides/grolbp/lbp.h: Removed unused variables.
10614 2000-05-31 Keith Thompson <kst@sdsc.edu>
10616 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10619 2000-05-31 Werner LEMBERG <wl@gnu.org>
10621 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10622 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10623 * configure.in: Use it.
10624 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10625 * configure, Makefile.in: Updated.
10627 * configure.in: Add test for strncasecmp().
10628 * src/include/lib.h: Use it.
10630 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10632 * src/preproc/grn/Makefile.sub: Add MLIB.
10634 2000-05-29 Nix <nix@esperi.demon.co.uk>
10636 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10638 2000-05-29 Werner LEMBERG <wl@gnu.org>
10640 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10642 * PROBLEMS: Small update.
10644 * src/devices/grolbp/lbp.cc: Various small fixes.
10646 2000-05-28 Keith Thompson <kst@sdsc.edu>
10648 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10650 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10652 2000-05-25 Werner LEMBERG <wl@gnu.org>
10654 * man/roff.man: Removed unused macro.
10656 2000-05-24 Werner LEMBERG <wl@gnu.org>
10658 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
10659 This is needed e.g. if you do
10660 `make distclean; ./configure; make dist'.
10662 Version 1.16 released
10663 =====================
10665 2000-05-23 Werner LEMBERG <wl@gnu.org>
10667 Adding font CWI (constant width italic) to devdvi.
10669 * font/devdvi/CWI: New file.
10670 * font/devdvi/generate/Makefile: Add generating rule.
10671 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10672 tmac/tmac.dvi: Use it.
10673 * NEWS: Announce it.
10675 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10676 * font/devlj4/generate/Makefile: Cosmetic changes only.
10678 * man/groff.man: Removed most of the redundant description of
10679 special characters (which is in groff_char.man). Added font
10680 translation CB->CR for devdvi. Other minor fixes.
10682 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10683 (registered) symbols.
10685 2000-05-22 Werner LEMBERG <wl@gnu.org>
10687 * doc/Makefile: Added rule for creating info files.
10689 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
10691 * font/devdvi/generate/Makefile: Fixed dependencies.
10693 * font/devps/*: Regenerated. Heavy changes for Bookman and
10694 NewCentury Schoolbook!
10695 * font/devps/generate/afmname: Will now run with GNU awk.
10696 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10697 * font/devps/generate/Makefile: Cosmetic changes only.
10699 2000-05-21 Werner LEMBERG <wl@gnu.org>
10701 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10702 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
10703 `.SS' now produces a heading with a smaller size than `.SH'.
10704 Completely formatted.
10705 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10707 * man/groff.man: Improved table appearance. Use of `eo' request
10708 to reduce number of doubled backslashes in macro definitions.
10709 Replacing `\e' with `\(rs'. Other minor fixes.
10711 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10712 to have correct line number.
10714 * INSTALL: Small improvement.
10716 2000-05-20 Bernd Warken <bwarken@mayn.de>
10718 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10721 2000-05-19 Bernd Warken <bwarken@mayn.de>
10723 * man/groff.man: Complete update (with a lot of corrections by WL).
10725 2000-05-18 Werner LEMBERG <wl@gnu.org>
10727 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10729 * font/*/*: Implement it.
10730 * man/groff_char.man, NEWS: Document it.
10732 * src/include/unix.h: Removed. It isn't used.
10734 * doc/groff.texinfo: Slight improvements.
10736 2000-05-17 Werner LEMBERG <wl@gnu.org>
10738 * README, win32-diffs: Small fixes and improvements.
10740 2000-05-16 Werner LEMBERG <wl@gnu.org>
10742 * FDL: New file (the Free Documentation License version 1.1).
10744 * doc/groff.texinfo: Added many start-up values for gtroff.
10745 Some structural improvements of the source code.
10747 2000-05-15 Werner LEMBERG <wl@gnu.org>
10749 * src/roff/troff/input.cc: Added small comment about troffrc-end.
10750 * src/roff/troff/troff.man: Added info about troffrc-end.
10752 2000-05-14 Werner LEMBERG <wl@gnu.org>
10754 * Makefile.in (EXTRADIRS): Fix typos.
10755 (dist): Handle deletion of old .tar.gz file correctly.
10756 (DISTDIRS): Include all tty output devices.
10758 * doc/groff.texinfo: Adding more cross references; countless other
10761 2000-05-13 Werner LEMBERG <wl@gnu.org>
10763 * MORE.STUFF: Added Robert Marks's utilities.
10765 2000-05-12 Werner LEMBERG <wl@gnu.org>
10767 Added win32 port contributed by Blake McBride
10768 <blake@florida-software.com>.
10770 * README.WIN32, win32-diffs: New files.
10773 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10774 (tmove, tmove2): Added parentheses to avoid compiler warnings.
10775 (change): Removed unused variables.
10777 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10778 (savebounds): Changed return value from `int' to `void'.
10779 * src/preproc/grn/hdb.cc: Ditto.
10781 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10782 final backslash in comment to avoid compiler warning.
10784 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10786 * doc/groff.texinfo: More fixes.
10788 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
10790 * tmac/tmac.doc: Documentation fix.
10792 2000-05-11 Werner LEMBERG <wl@gnu.org>
10794 * doc/groff.texinfo: Reading the source code shows up a lot of
10795 omissions and incorrect data... More conversion to @Deffn macros.
10797 2000-05-10 Werner LEMBERG <wl@gnu.org>
10799 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10802 * src/roff/troff/request.h: Removing unused `no_break_flag'.
10804 2000-05-09 Werner LEMBERG <wl@gnu.org>
10806 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10809 * doc/groff.texinfo: Extended history section. More conversion to
10810 @Deffn macros. More .tr documentation.
10812 2000-05-07 Werner LEMBERG <wl@gnu.org>
10814 * doc/groff.texinfo: Completed tab section. Added info about
10817 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
10819 * PROBLEMS: Describe configure script fix for OS/390 Unix.
10821 2000-05-05 Werner LEMBERG <wl@gnu.org>
10823 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10825 * NEWS: Document it.
10827 * man/troff.man: Minor optical improvements.
10829 2000-05-03 Werner LEMBERG <wl@gnu.org>
10831 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10833 * font/*/*: Implement it.
10834 * man/groff_char.man, NEWS: Document it.
10836 2000-05-02 Werner LEMBERG <wl@gnu.org>
10838 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10840 * NEWS: Document the three new man pages.
10842 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10843 * configure: Updated.
10845 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10847 2000-05-01 Werner LEMBERG <wl@gnu.org>
10849 Added grap support to grog.
10851 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10852 * src/roff/grog/grog.man: Document it.
10854 * doc/groff.texinfo, NEWS: Add info about grap support.
10856 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10857 (with slight fixes by me).
10859 * tmac/groff_tmac.man: New file documenting tmac mechanism.
10860 * tmac/Makefile.sub: Add groff_tmac.man.
10861 * man/roff.man: New file giving overview of roff system.
10862 * man/troff.man: A short reference of troff.
10863 * man/Makefile.sub: Add roff.man and troff.man.
10865 2000-04-30 Werner LEMBERG <wl@gnu.org>
10867 Added grap support to groff.
10869 * src/roff/groff/groff.cc: Implement it.
10870 * src/roff/groff/groff.man: Document it.
10872 * src/devices/grotty/grotty.man: Add cp1047 device.
10873 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10875 * src/roff/groff/groff.man: Ditto.
10876 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10877 * doc/groff.texinfo: Ditto.
10879 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10882 2000-04-29 Werner LEMBERG <wl@gnu.org>
10884 * man/groff_char.man: Add `pc' glyph.
10885 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10886 * tmac/tmac.tty: Add `pc' glyph.
10887 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
10888 we use cp1047 output device.
10890 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10891 there are still hardcoded latin1->unicode values in utf8's font
10893 * configure: Updated.
10894 * NEWS: Minor clarification. Updated.
10896 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
10899 2000-04-28 Werner LEMBERG <wl@gnu.org>
10901 Adding EBCDIC code page 1047.
10903 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10904 font/devcp1047/DESC.proto: New files.
10906 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10907 either ascii/latin1 or cp1047.
10908 * Makefile.in: Use it.
10909 * configure: Updated.
10911 Replacing and/or adding `md' (mathdot) glyph with `pc'
10912 (periodcentered) in all text fonts.
10914 * font/*/*: Change it.
10916 2000-04-27 Werner LEMBERG <wl@gnu.org>
10918 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10920 * configure.in: Add check for strings.h.
10921 * src/include/driver.h: Use HAVE_STRINGS_H.
10922 * src/devices/grolbp/lpb.cc: Remove string.h.
10924 * src/include/groff-getopt.h: New file. It will be used instead of
10925 getopt.h (to be included in lib.h) to avoid endless problems with
10926 picky C++ compilers.
10927 * src/include/lib.h: Use groff-getopt.h.
10928 * src/include/Makefile.sub: Updated.
10930 * configure: Updated.
10931 * Makefile.in: Updated.
10933 * NEWS: Mention EBCDIC support.
10935 2000-04-26 Werner LEMBERG <wl@gnu.org>
10937 * TODO: Some additions.
10939 2000-04-25 Werner LEMBERG <wl@gnu.org>
10941 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10944 2000-04-23 Werner LEMBERG <wl@gnu.org>
10946 * src/roff/troff/troff.man: Minor fixes.
10948 2000-04-22 Werner LEMBERG <wl@gnu.org>
10950 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10951 `.T' string register and the incompatible definition of the `.T'
10952 number register (compared to Unix troff).
10954 * man/groff_char.man: Add some missing characters.
10955 * font/devutf8/NOTES: Update.
10957 2000-04-21 Werner LEMBERG <wl@gnu.org>
10959 * src/include/htmlindicate.h, src/include/lib.h,
10960 src/include/posix.h: Fix copyright.
10962 * src/include/Makefile.sub: Update.
10964 2000-04-20 Werner LEMBERG <wl@gnu.org>
10966 * src/roff/troff/input.cc (input_char_description): Removing
10967 superfluous space char.
10969 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10971 * doc/groff.texinfo: Document EBCDIC.
10973 2000-04-19 Werner LEMBERG <wl@gnu.org>
10975 Introducing `shc' as the glyph name for the soft hyphen character.
10977 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10978 font/devlatin1/R.proto: Use it.
10982 2000-04-18 Werner LEMBERG <wl@gnu.org>
10984 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10985 dependency on ASCII order.
10987 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
10989 * src/libs/libgroff/illegal.c: Added EBCDIC table.
10990 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10992 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10993 to increase portability.
10995 2000-04-15 Werner LEMBERG <wl@gnu.org>
10997 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10998 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10999 the generic `\n' if under OS/390 Unix.
11001 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11003 * configure: Regenerated.
11005 2000-04-14 Werner LEMBERG <wl@gnu.org>
11007 * doc/groff.texinfo: More conversions to @Deffn.
11009 2000-04-12 Werner LEMBERG <wl@gnu.org>
11011 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11014 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11016 2000-04-10 Werner LEMBERG <wl@gnu.org>
11018 * doc/groff.texinfo: More conversions to @Deffn.
11020 2000-04-08 Werner LEMBERG <wl@gnu.org>
11022 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11023 Updated to latest version (glibc 2.1.3).
11025 2000-04-07 Werner LEMBERG <wl@gnu.org>
11027 * doc/Makefile (clean): Include more index files.
11028 Add rule texinfo->dvi.
11030 2000-04-05 Werner LEMBERG <wl@gnu.org>
11032 * doc/groff.texinfo: Added new index `op' for operators. More
11033 info on end of sentence characters. More use of @Deffn.
11035 2000-03-30 Werner LEMBERG <wl@gnu.org>
11037 * */*.man: Adding a note that a whitespace can be inserted between
11038 a command line option and its parameter -- we are using GNU getopt.
11040 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11042 2000-03-28 Werner LEMBERG <wl@gnu.org>
11044 Correct anachronism of calling the man macro file with `-man'
11045 instead of `-m man' etc.
11047 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11048 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11049 load tmac.<package>.
11051 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11055 * doc/groff.texinfo: Updated.
11057 * tmac/groff_man.man: Copyright added.
11059 2000-03-27 Werner LEMBERG <wl@gnu.org>
11061 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11062 typeset the request resp. escape name with a tt font -- due to a
11063 bug in texinfo.tex it is necessary to use the `-e' switch with
11066 Improving info about usage of groff units.
11070 2000-03-20 Werner LEMBERG <wl@gnu.org>
11072 * doc/groff.texinfo: Added section about man macro package
11073 (I've basically taken groff_man.man). Introducing new indices `ma'
11074 for macros/strings and `gl' for glyph names. Other minor fixes.
11076 * tmac/groff_man.man: Fixed some typos.
11078 2000-03-19 Werner LEMBERG <wl@gnu.org>
11080 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11083 * doc/texinfo.tex: New file.
11085 2000-03-18 Werner LEMBERG <wl@gnu.org>
11087 * doc/groff.texinfo: Improved section on number registers. Other
11090 2000-03-16 Werner LEMBERG <wl@gnu.org>
11092 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11095 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11096 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11097 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11098 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11100 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11102 * src/roff/grog/grog.man: Updated copyright date.
11104 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11106 * configure.in: Added test for strdup.
11108 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11111 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11115 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11117 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11119 2000-03-11 Werner LEMBERG <wl@gnu.org>
11121 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11123 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11124 * src/include/lib.h: Remove some spaces.
11126 2000-03-10 Werner LEMBERG <wl@gnu.org>
11128 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11129 initializers from arguments (some compilers don't like this).
11131 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11133 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11134 used by pic and eqn to tell grohtml where the graphic regions start
11136 * src/libs/libgroff/Makefile.sub: Use it.
11137 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11138 graphic_start() and graphic_end() from htmlindicate.cc.
11140 2000-03-09 Werner LEMBERG <wl@gnu.org>
11142 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11143 * tmac/groff_man.man: More fixes.
11145 2000-03-08 Werner LEMBERG <wl@gnu.org>
11147 * doc/Makefile: Added texput.log to the `clean' target.
11148 * doc/groff.texinfo: Added info about delimiters for escapes.
11150 2000-03-08 Bernd Warken <bwarken@mayn.de>
11152 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11153 other graphic formats.
11155 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11157 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11158 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11159 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11162 2000-03-07 Werner LEMBERG <wl@gnu.org>
11164 * doc/groff.texinfo: Spelling fixes.
11166 2000-03-06 Werner LEMBERG <wl@gnu.org>
11168 * tmac/groff_man.man: Completely revised to cover everything in
11171 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11172 Other minor fixings.
11173 * src/roff/troff/env.cc (environment_copy): Improve error message and
11175 * src/roff/troff/TODO: Updated.
11177 * doc/Makefile: Bug fixes -- this is still provisional, though...
11179 * tmac/eqnrc: Small fixes.
11181 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11183 Adding a request `evc' to copy environments.
11185 * src/roff/troff/env.cc (environment::copy, environment_copy):
11187 * src/roff/troff/env.h: Add prototype.
11189 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11191 Adding strsep() -- Solaris 8 doesn't have it.
11193 * configure.in: Test it.
11194 * src/devices/grolbp/lbp.cc: Add code.
11196 2000-03-05 Werner LEMBERG <wl@gnu.org>
11198 * src/roff/troff/div.cc (macro_diversion::output,
11199 top_level_diversion::output): Fixing an incompatibility with
11200 original troff: \x'0' updates the .a register also. Thanks to
11201 <Andries.Brouwer@cwi.nl> for pointing this out.
11202 * doc/groff.texinfo: Document it.
11204 * Makefile.in: Create Makefile.dep if necessary before calling the
11205 submake process to avoid warning about nonexistent file.
11207 * NEWS, PROJECTS: Updated.
11209 2000-03-04 Werner LEMBERG <wl@gnu.org>
11211 * tmac/troffrc: Add tmac.lbp.
11213 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11215 * tmac/tmac.lbp: New file.
11216 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11219 2000-03-03 Werner LEMBERG <wl@gnu.org>
11221 * Makefile.in: Fixing $(subdir).
11223 * README, NEWS: Small fixes.
11225 * test-groff: Adding path to grolbp.
11227 * configure.in: The (new) file src/xditview/Imakefile.in will be
11228 also configured -- it is now possible to build gxditview in a
11229 directory different from $srcdir.
11231 2000-03-02 Blake McBride <blake@florida-software.com>
11233 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11235 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11237 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11239 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11242 2000-02-29 Werner LEMBERG <wl@gnu.org>
11244 Adding GNU getopt to the groff distribution.
11246 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11248 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11249 * aclocal.a4: Remove GROFF_GETOPT function.
11250 * configure.in, Makefile.in, PROBLEMS: Update.
11251 * src/include/lib.h: Replace getopt tests with getopt.h.
11252 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11254 * doc/groff.texinfo: Further checking/updating. Adding more index
11257 * man/groff_out.man: Fix nroff mode activation (for emacs).
11258 * man/groff_font.man: Add missing ligature.
11260 2000-02-28 Werner LEMBERG <wl@gnu.org>
11262 * doc/groff.texinfo: Further checking/updating. Adding more index
11265 * src/devices/grolbp/grolbp.man: Added a comment line at the
11266 beginning of the file (similar to shell scripts) which indicates
11267 that `tbl' should be used as a preprocessor.
11269 2000-02-27 Blake McBride <blake@florida-software.com>
11271 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11272 Windows NT 4.0). Uses _MSC_VER define where necessary.
11274 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11275 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11276 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11277 src/include/lib.h, src/libs/libgroff/errarg.cc,
11278 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11279 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11280 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11281 src/roff/troff/div.cc, src/roff/troff/env.cc,
11282 src/roff/troff/input.cc, src/roff/troff/node.cc,
11283 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11284 if_to_a() to avoid name clashes.
11285 * src/include/posix.h: Don't use unistd.h.
11286 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11287 clause for integrating non-Unix xtmpfile() code.
11288 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11289 structure; use "rt" for popen() in pipe_source(); add getpid()
11291 * src/roff/troff/node.cc: Use special versions of popen() in
11292 real_output_file() and pclose() in ~real_output_file().
11294 2000-02-27 Werner LEMBERG <wl@gnu.org>
11296 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11297 LBP-8 series laser printers). This code has been contributed by
11298 Francisco Andrés Verdú <pandres@dragonet.es>.
11300 * src/devices/grolbp/*: The grolbp output device.
11301 * font/devlpb/*: The font description files.
11302 * Makefile.in: Add grolpb and devlbp subdirectories.
11304 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11305 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11308 * doc/groff.texinfo: Further checking/updating. Adding more index
11313 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11315 * man/groff_font.man: Adding info about obsolete DESC keywords.
11316 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11319 2000-02-26 Werner LEMBERG <wl@gnu.org>
11321 * src/preproc/grn/grn.man: Added info about the gremlin file format
11322 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11324 2000-02-25 Werner LEMBERG <wl@gnu.org>
11326 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11327 friends to be non-integer.
11329 * src/preproc/grn/grn.man: Document it.
11331 * doc/groff.texinfo: Further checking/updating. Adding more index
11334 2000-02-24 Werner LEMBERG <wl@gnu.org>
11336 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11337 line thicknesses to be integer multiples of this value.
11339 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11340 corresponding code doesn't work (yet).
11342 * doc/groff.texinfo: Further checking/updating. Adding more index
11345 2000-02-23 Werner LEMBERG <wl@gnu.org>
11347 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11348 specify line thickness instead of base units. The new default
11349 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11350 thick lines respectively.
11352 Removed unused variable `prevval'.
11354 * src/preproc/grn/grn.man: Updated.
11356 2000-02-22 Werner LEMBERG <wl@gnu.org>
11358 * src/preproc/grn/main.cc: Slight formatting.
11360 * src/roff/groff/groff.man: Formatting fix.
11361 * src/preproc/grn/grn.man: Ditto.
11363 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11365 * doc/groff.texinfo: Further checking/updating.
11367 2000-02-21 Werner LEMBERG <wl@gnu.org>
11369 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11371 * test-groff: Added grn subdir to path.
11373 * doc/groff.texinfo: Some restructing and other small improvements.
11375 * src/roff/groff/groff.cc (help): Fixed info string.
11377 2000-02-20 Werner LEMBERG <wl@gnu.org>
11379 * doc/meref.me: Fix description of .GS request.
11381 * src/roff/troff/troff.man: Fixing typo.
11383 Adding the `grn' preprocessor for gremlin graphic files.
11385 * src/preproc/grn/*: This is the Berkeley distribution written by
11386 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11387 Senderowicz and Werner Lemberg.
11389 * doc/grnexampl.{me,g}: A sample for grn.
11391 * Makefile.in: Added subdirectory entry for grn.
11393 * src/roff/groff/groff.cc: Added support for grn. It can be now
11394 called with the switch `-g'.
11396 * src/roff/groff/groff.man: Updated.
11398 * src/roff/grog/grog.{man,pl,sh}: Updated.
11402 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11404 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11405 parametrically polymorphic.
11407 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11408 and the alterations to xtmpfile.
11409 xtmpfile can be requested to return the filename created
11410 and asked not to unlink the temp file. The default behaviour
11411 if parameters are absent is exactly the same as before.
11413 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11415 A new request `length' is available which returns the length of a
11416 string in a number register:
11418 * src/roff/troff/input.cc (length_macro): Implement it.
11419 * src/roff/troff/input.cc (init_input_requests): Register it.
11421 2000-02-11 Werner LEMBERG <wl@gnu.org>
11423 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11424 of the `substring' request.
11426 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11429 * src/roff/troff/TODO, NEWS: Updated.
11431 2000-02-09 Werner LEMBERG <wl@gnu.org>
11433 * src/roff/groff/groff.man: Added an example.
11435 2000-02-06 Werner LEMBERG <wl@gnu.org>
11437 I've considerably modified the directory structure of the
11438 distribution to get a more vertical layout. For example, the number
11439 of top level directories has been reduced from 42 to 6.
11441 As a consequence, many changes, especially to the makefiles, were
11444 * The makefile variables `top_builddir' and `top_srcdir' have been
11445 introduced. Virtually all relative paths have been replaced with
11446 absolute ones using these two variables.
11448 * Dependencies (in the files `Makefile.dep') are no longer part of
11449 the distribution. Instead, they are created during a `make install'
11450 in the build directory.
11452 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11453 make `top_srcdir' and `top_builddir' absolute.
11455 Some other changes:
11457 * Man pages now depend on the files `VERSION' and `REVISION'.
11459 * The added shell script `mkinstalldirs' will replace `mkdir' in
11462 * VERSION: Version number increased to 1.16.
11464 2000-02-04 Werner LEMBERG <wl@gnu.org>
11466 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11468 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11469 (after an update of the mm stuff).
11471 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11473 2000-02-03 Werner LEMBERG <wl@gnu.org>
11475 The .psbb request will now also accept Mac PS images (i.e. using LF
11476 as the EOL character).
11478 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11479 (with slight modifications).
11480 * troff/input.cc (do_ps_file): Use it.
11482 * test-groff: Add grohtml and grolj4 output devices to PATH.
11484 2000-01-30 Werner LEMBERG <wl@gnu.org>
11486 * NEWS, MORE.STUFF: Updated.
11488 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11490 Add the `srand' command to pic.
11492 * pic/lex.cc, pic/pic.y: Implement it.
11493 * pic/pic.man: Document it.
11494 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11496 2000-01-30 Werner LEMBERG <wl@gnu.org>
11498 Add a new request `.psbb'. This does exactly what the external
11499 program psbb did. It scans a PostScript image file for a
11500 %%BoundingBox comment and extracts the bounding box values (in
11501 PostScript units) which are then stored in the four new (read-only)
11502 number registers `llx', `lly', `urx', and `ury'.
11504 This will allow the usage of the .PSPIC macro without worrying
11505 about unsafe behaviour of groff, i.e., it will work without the
11506 `-U' switch of groff.
11508 * troff/input.cc: Implement it.
11509 * tmac/tmac.pspic: Use it.
11510 * troff/troff.man, grops/grops.man, NEWS: Document it.
11511 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11513 This is bloody C code simply adapted from psbb.c! Any improvements
11516 2000-01-29 Werner LEMBERG <wl@gnu.org>
11518 * man/groff_font.man: Minor clarifications.
11522 2000-01-28 Werner LEMBERG <wl@gnu.org>
11524 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11526 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11528 * man/groff_font.man: Brought up to date regarding tcommand
11530 * libgroff/font.cc: Handle everything after `--' as a comment
11532 * devps/*: Added comment delimiter inside devps font files.
11534 2000-01-28 Werner LEMBERG <wl@gnu.org>
11536 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11537 \fC...\fP (which now works as expected).
11539 * troff/troff.man: Fix typo.
11541 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11543 Completed the pass_filenames implementation in troff.
11545 * libdriver/input.cc: Will read the new `F' tcommand.
11546 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11547 * troff/input.cc: Use it.
11549 2000-01-26 Werner LEMBERG <wl@gnu.org>
11551 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11552 font will now be updated even if an invalid font is selected.
11554 2000-01-24 Werner LEMBERG <wl@gnu.org>
11556 * doc/homepage.ms: Updated for new tmac.arkup.
11558 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11560 * tmac/tmac.arkup: Cleanup.
11562 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11564 Removed obsolete .LINK macro completely.
11566 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11567 will be immediately appended to the second argument (to be used with
11568 punctuation, for example).
11570 Disabled .CDFTP macro temporarily for security reasons.
11572 * tmac/groff_markup.man: Complete revision for latest changes in
11573 tmac.arkup -- note that it does not yet format correctly with
11576 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11578 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11579 * devutf8/R.proto: Add mappings for wp, lh, rh.
11580 * devutf8/NOTES: Updated.
11582 2000-01-23 Werner LEMBERG <wl@gnu.org>
11584 * doc/groff.texinfo: Updated version/copyright info.
11586 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11588 Added support for two new directives in device descriptions:
11589 `pass_filenames' (to pass the input file name to the output device)
11590 and `use_charnames_in_special' (to support e.g. accented characters
11591 in the `X' request).
11593 * include/font.h, troff/charinfo.h: Declare it.
11595 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11597 * devhtml/DESC: Use it.
11599 * troff/input.cc: New function encoded_char.
11601 * troff/token.h: Add test for `specialness'.
11603 2000-01-21 Werner LEMBERG <wl@gnu.org>
11605 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11606 mistake from the list of files to be installed.
11608 2000-01-18 Werner LEMBERG <wl@gnu.org>
11610 * README: Added info how to apply patches.
11612 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11614 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11616 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11618 * troff/input.cc: Add support for troffrc-end.
11620 * tbl/main.cc: Altered to issue table-start and table-end special
11621 characters if using the html device.
11623 * devhtml/*: Modified font files to incorporate html encoding of
11626 * tmac/groff_markup.man: New file documenting tmac.arkup.
11628 * tmac/troffrc-end: New file. This is invoked after all user
11629 specified macros. Currently used by the html device to include
11630 tmac.html. Thus no need for users to specify -mhtml anymore.
11632 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11633 (MAN7): Add groff_markup.man.
11635 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11637 * tmac/troffrc: tmac.arkup will now be called for the html device.
11639 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11640 extra device specific information about fonts.
11642 * doc/homepage.ms: New file. It is an example how an HTML home page
11643 could look like with grohtml.
11645 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11647 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11649 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11652 * devutf8/NOTES: Updated.
11654 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11656 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11657 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11658 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11659 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11660 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11661 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11662 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11663 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11666 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11668 2000-01-12 Fabrizio Polacco <fab@prosa.it>
11670 grolj4: Paper size will be searched case-insensitively.
11672 * include/lib.h: Add check for strcasecmp().
11673 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11674 * configure.in: Check for strcasecmp().
11676 2000-01-11 Werner LEMBERG <wl@gnu.org>
11678 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11681 2000-01-10 Werner LEMBERG <wl@gnu.org>
11683 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11686 Add a new read-only register, `.Y', which contains the groff
11689 * troff/input.cc (init_input_requests): Define it.
11690 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11691 * doc/groff.texinfo, troff/troff.man: Document it.
11693 * libgroff/Makefile.sub (version.cc): Add definition of
11694 `Version_string[]', consisting of `<major>.<minor>.<revision>'
11695 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11696 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11697 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11698 troff/input.cc, pfbtops/pfbtops.c: Use it.
11700 2000-01-10 Fabrizio Polacco <fab@prosa.it>
11702 Add a revision scheme to the groff package.
11704 * REVISION: New file.
11705 * libgroff/Makefile.sub (version.cc): Use it to define
11706 `revision_string[]'.
11707 * grops/psrm.cc: Use revision_string (converted to an unsigned
11708 integer) in constructor of resource_manager.
11710 2000-01-10 Bruno Haible <haible@clisp.cons.org>
11712 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11714 * Makefile.in (DEVDIRS): Add devutf8.
11715 * grotty/tty.cc: Include device.h.
11716 (glyph): Change type of `code' to `unsigned int'.
11717 (tty_printer): New field is_utf8. Constructor takes device argument.
11718 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11719 (tty_printer::add_char): Change type of first arg to `unsigned int'.
11720 (tty_printer::put_char): New function.
11721 (tty_printer::end_page): Use put_char() instead of ::putchar().
11722 (make_printer): Pass device to tty_printer constructor.
11723 * nroff.sh: Determine default device by calling 'locale'. As a
11724 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11725 Recognize UTF-8 locales.
11726 * tmac/eqnrc: Recognize utf8 like latin1.
11727 * tmac/troffrc: Device utf8 needs tmac.tty.
11729 2000-01-07 Werner LEMBERG <wl@gnu.org>
11731 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11733 2000-01-07 Paul Eggert <eggert@twinsun.com>
11735 Add a new predefined writeable number register, `year',
11736 which contains the current year.
11738 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11739 * tmac/tmac.s: Use it.
11740 * troff/input.cc (init_registers): Initialize it.
11742 2000-01-06 Werner LEMBERG <wl@gnu.org>
11744 * PROBLEMS: Fixed typo.
11746 2000-01-04 Paul Eggert <eggert@twinsun.com>
11748 * PROBLEMS: Add Y2k advice for the yr number register.
11750 2000-01-03 Paul Eggert <eggert@twinsun.com>
11752 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11754 2000-01-02 Werner LEMBERG <wl@gnu.org>
11756 * tmac/tmac.arkup: Slight modification of macros to provide better
11757 appearance for non-HTML formats.
11759 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
11761 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11762 does not automatically translate to malloc(n) on all OSes
11763 (e.g., SunOS) so do it explicitly. Also, check the returned
11766 2000-01-01 Werner LEMBERG <wl@gnu.org>
11768 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
11770 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11771 expects this variable
11773 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
11775 * doc/Makefile: Added instructions to create HTML and text
11776 versions of some files.
11778 1999-12-31 Werner LEMBERG <wl@gnu.org>
11780 * Updated INSTALL.gen.
11782 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11783 better resp. correctly with non-HTML devices.
11785 Version 1.15 released
11786 =====================
11788 1999-12-28 Werner LEMBERG <wl@gnu.org>
11790 * NEWS, VERSION: Changed to 1.15
11792 1999-12-27 Paul Eggert <eggert@twinsun.com>
11794 * nroff/nroff.man: -S is safer, not safe.
11796 * groff/groff.cc (main): Use `safer', not `safe', in variable
11797 names. This does not change the behavior.
11799 * troff/input.cc (main): Likewise.
11801 * nroff/nroff.sh: Likewise.
11803 * troff/input.cc (prepend_string): New function.
11804 (main): Prepend -msafer, so that we check macro libraries for
11807 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11809 Version 1.14 released
11810 =====================
11812 1999-12-26 Werner LEMBERG <wl@gnu.org>
11814 * NEWS, VERSION: Changed to 1.14.
11816 1999-12-24 Werner LEMBERG <wl@gnu.org>
11818 * refer/refer.cc: Fixing the last fix.
11820 Version 1.13 released
11821 =====================
11823 1999-12-23 Werner LEMBERG <wl@gnu.org>
11825 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11830 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11832 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11833 document conventions, the version number must be a real.
11835 Version 1.12.1 released
11836 =======================
11838 1999-12-22 Werner LEMBERG <wl@gnu.org>
11840 * VERSION: Changed to 1.12.1.
11842 1999-12-22 Alan Rooks <arooks@istar.ca>
11844 * refer/refer.cc (do_file): Slight modification to satisfy the
11845 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11848 1999-12-20 Werner LEMBERG <wl@gnu.org>
11850 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11853 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11854 list of unsafe requests.
11856 * pic/pic.man: Fixed a typo.
11858 * man/groff_out.man: Fixed a typo.
11860 1999-12-18 Werner LEMBERG <wl@gnu.org>
11862 * Makefile.in: Doc fixes.
11864 1999-12-17 Fabrizio Polacco <fab@prosa.it>
11866 * groff/groff.cc: Missing `U' option added to getopt().
11868 * troff/troff.man: Missing `U' option added to synopsis.
11870 Version 1.12 released
11871 =====================
11873 1999-12-14 Werner LEMBERG <wl@gnu.org>
11875 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11878 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11879 with the more appropriate terms `safer' and `unsafe'.
11881 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11882 sys_nerr and sys_errlist[].
11884 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11886 * pic/pic.y, pic/pic.cc: Added check for fmod().
11888 1999-12-13 Werner LEMBERG <wl@gnu.org>
11890 * VERSION: Changed to 1.12.
11892 Here some patches from various sources; most of them taken from
11893 the Debian distribution.
11895 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11896 tmac/Makefile.sub: New files copied directly from the NetBSD
11897 distribution. Probably, some additional adaptation later on is
11900 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11901 of unsafe requests.
11903 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11904 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11905 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
11906 (`-S') is now the default.
11908 * README, NEWS: Updated.
11910 1999-12-09 Werner LEMBERG <wl@gnu.org>
11912 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11914 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11916 1999-12-06 Werner LEMBERG <wl@gnu.org>
11918 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11919 grief than relief today. Additionally, it is against the GNU
11922 * configure: Recreated.
11924 1999-12-05 Werner LEMBERG <wl@gnu.org>
11926 * configure.in: Added GROFF_LIBM.
11928 * configure: Recreated.
11930 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11933 * Makefile.in: Added definition of $(LIBM).
11935 * Makefile.comm (LIBM): Removed.
11937 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11939 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
11941 * doc/Makefile: Added rule for generation pic.html.
11943 (clean): Files produced by grohtml will be removed also.
11945 * doc/pic.ms: Small fix.
11947 * tmac/tmac.html: Fixed suppression of headers.
11949 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
11951 * tmac/tmac.html: Fixing horizontal arrows.
11953 Turning off hyphenation.
11955 * tmac/tmac.an: Improved support for grohtml; better indentation,
11956 no footers/headers.
11958 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
11960 * tmac/tmac.arkup: Added CDFTP macro
11962 * tmac/tmac.html: All headers are turned off for ms, me, and mm
11965 * tmac/troffrc: Some additions for HTML stuff.
11967 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
11969 * tmac/tmac.html: Small changes.
11971 1999-09-26 Werner LEMBERG <wl@gnu.org>
11973 * doc/groff.texinfo: Minor fixes.
11975 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
11977 * devhtml/TR: Changed spacewidth to 3.
11979 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11981 * tmac/tmac.html: Moved markup macros to tmap.arkup.
11983 * tmac/tmac.arkup: New file.
11985 * grohtml/ChangeLog: New file.
11987 1999-09-16 Werner LEMBERG <wl@gnu.org>
11989 * doc/groff.texinfo (Common Features): Added Copying chapter.
11990 Changed format to @smallbook.
11992 1999-09-15 Werner LEMBERG <wl@gnu.org>
11994 * NEWS: Added info about groff.texinfo.
11996 * doc/groff.texinfo: Will now compile (using texi2dvi) without
11999 1999-09-14 Werner LEMBERG <wl@gnu.org>
12001 * groff/groff.man: More updates.
12003 1999-09-13 Werner LEMBERG <wl@gnu.org>
12005 * doc/groff.texinfo: New file. This manual is still very
12006 rudimentary. It has been originally contributed by Trent
12007 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12010 * INSTALL: Added information about the `doc' subdir
12012 * troff/troff.man: Minor fixes.
12014 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12017 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12019 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12020 also, otherwise it is included itself in another call of `make
12023 * groff/groff.cc (synopsis): Removed superfluous space.
12025 * PROJECTS, PROBLEMS, NEWS: Updated.
12027 * VERSION: Updated to 1.12beta.
12029 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12031 * README: Updated: Included documentation about CVS repository,
12032 mailing lists, and daily snapshots.
12034 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12036 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12038 * tmac/tmac.an: If the tag didn't fit into the space that the
12039 macro `TP' specifies, the rest of the tag went into the space for
12042 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12044 * grolj4/lj4.cc: Added duplex printing (option `-d').
12046 * grolj4/grolj4.man: Document duplex printing.
12048 1999-09-12 Werner LEMBERG <wl@gnu.org>
12050 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12051 non-GNUish sed programs.
12053 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12056 * configure.in (LIBS): Added `-lc'
12058 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12060 * pic/tex.cc (solid_arc): Casting M_PI to double.
12062 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12064 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12065 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12066 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12068 * groff/groff_man.man: New file. This manual page was originally
12069 written for the Debian GNU/Linux system by Susan G. Kleinmann
12072 * eqn/list.cc (list_box::compute_metrics,
12073 list_box::compute_sublist_width): Removed variable declaration to
12074 avoid shadowing warnings.
12076 * grops/psrm.cc (resource_manager::process_file): Ditto.
12078 * tfmtodit/tfmtodit.cc (main): Ditto.
12080 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12081 to avoid shadowing warnings.
12083 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12084 shadowing loop variable.
12086 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12088 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12090 New grohtml frontend to convert groff input to html.
12092 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12094 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12096 * tmac/eqnrc: Added html device.
12098 * tmac/tmac.html: New file.
12100 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12101 (troff_output::start_picture, troff_output::finish_picture),
12102 tbl/main.cc (process_input_file):
12103 Surrounded output with `graphics_start' and `graphics_end' so that
12104 the html driver can identify non-text portions.
12106 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12107 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12108 grotty/tty.ps (tty_printer::set_char): Additional parameter
12111 * include/printer.h: Class printer: New function
12112 set_char_and_width; new variables (is_char_named, is_named_set,
12113 named_command, named_char_s, named_char_n) to hold information
12114 about named characters -- needed by the html driver.
12116 * libdriver/printer.cc (printer::set_ascii_char,
12117 printer::set_special_char): Use set_char_and_width.
12119 * devhtml/*: New device files for html driver.
12121 * grohtml/*: New driver grohtml.
12123 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12125 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12128 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12130 * libgroff/string.cc (search): Small fix to test against NULL
12133 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12135 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12136 \b'abc') were stacked in reverse order when processed in a
12139 * troff/node.h: Added `*last' to struct `node' to make the above
12142 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12143 The default scale for the 'f' and 't' graphics functions were 'm'
12144 rather than 'u' (i.e., no scaling).
12146 1999-09-11 Peter Miller <peterm@jna.com.au>
12148 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12149 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12150 defining include paths.
12152 * soelim/soelim.cc (include_path_append): New function.
12154 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12156 * tbl/main.cc (process_options): Unix (at least Documenter's
12157 Workbench) tbl allows arbitrary non-alpha characters between
12160 1999-09-11 Paul Eggert <eggert@twinsun.com>
12162 Y2k fixes. Don't assume that the current year precedes 2000.
12164 * doc/meref.me: Add \n(y2, \n(y4.
12166 * tmac/doc-common (Yr): New number register.
12167 (Dd): Don't assume current year precedes 2000.
12169 * tmac/tmac.e (td): Likewise.
12170 (y2, y4): New number registers.
12172 * pic/pic.man: Update reference for pic paper to May, 1991
12175 1999-09-11 Werner LEMBERG <wl@gnu.org>
12177 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12178 Removed quotation marks which prevented correct expansion of
12181 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12183 1999-09-10 Werner LEMBERG <wl@gnu.org>
12185 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12188 * Removed configure.old.
12190 1999-08-31 Werner LEMBERG <wl@gnu.org>
12192 * VERSION: Updated to 1.11.1
12194 1999-05-27 Werner LEMBERG <wl@gnu.org>
12196 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12198 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12199 added quotations around $(tmac_wrap) to avoid syntax error if
12202 * configure: Newly generated using autoconf 2.13.
12204 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12206 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12208 * README, PROJECTS, NEWS, INSTALL, VERSION,
12209 doc/Makefile. doc/pic.ms, groff/groff.man:
12210 Prepare for 1.11 release. No code changes.
12211 Documentation for pic added (doc/pic.ms).
12213 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12215 * Version 1.10 released.
12217 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12219 * afmtodit/afmtodit.pl: Avoid comment on first line.
12221 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12223 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12224 * configure.in: Call it.
12226 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12227 (distfiles): Doesn't depend on config.log or config.cache.
12229 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12231 * grog/grog.sh: Use print "" rather than print in END rule.
12233 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12235 * tbl/main.cc (process_data): Don't give error for excess data
12236 entries that are comments.
12238 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12240 * tbl/main.cc (process_data): Fix case where new for-scope rules
12241 silently change meaning of code.
12243 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12245 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12246 of non-zero hyphenation codes.
12248 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12250 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12252 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12254 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12256 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12258 * tmac/tmac.andoc: Make it work in compatibility mode.
12260 * refer/token.h (token_info::is_range_sep): New function.
12261 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12262 * refer/ref.cc (reference::output): More sophisticated check for
12265 * devps/prologue.ps (MANUAL): New procedure.
12266 * grops/ps.cc (main): New -m option.
12267 (usage): Include -m.
12268 (ps_printer::~ps_printer): Implement -m.
12270 * aclocal.m4 (GROFF_G): New macro.
12271 * configure.in: Call it.
12272 * Makefile.in (g): Provided by configure.
12274 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12276 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12279 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12280 (tmac_m, tmac_s): Deleted.
12281 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12282 tmac_s_prefix): New variables.
12283 (MDEFINES): Change accordingly.
12284 * Makefile.comm (.man.n): Use new TMAC_* variables.
12285 * configure.in (GROFF_TMAC): Call.
12286 * aclocal.m4 (GROFF_TMAC): Define.
12287 * tmac/Makefile.sub (stamp_wrap): New target.
12288 (install_data, uninstall_sub): Handle macro wrapping.
12290 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12292 * tbl/main.cc (main): Ignore -T option.
12294 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12296 * devlj4/generate/special.map: Add definition of \(nb.
12298 * tmac/tmac.dvi: Add definition of \(nb.
12300 * troff/dictionary.c (dictionary::dictionary): association::v gets
12301 initialized by association::association.
12303 * tmac/Makefile.sub: Avoid using temporary files when installing.
12305 * troff/env.cc (environment::set_font): Make bad font number a
12308 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12310 * Makefile.in (datadir): Use share rather than lib.
12312 * groff/groff.cc (basename): Rename to xbasename.
12314 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12316 * Makefile (CCLIBS): Don't use.
12317 * Makefile.ccpg: Likewise.
12319 * acgroff.m4: Rename to...
12320 * aclocal.m4: Modify extensively for autoconf 2.
12321 * configure.in: Likewise.
12322 * Makefile.in: Likewise.
12324 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12326 (xstrsignal): Check for definition of NSIG. Conditionalize
12327 on SYS_SIGLIST_DECLARED. Make return type const.
12329 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12331 * troff/input.cc (interpolate_macro): Rephrase missing space
12334 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12336 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12337 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12338 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12339 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12340 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12341 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12342 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12343 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12344 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12345 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12346 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12349 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12351 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12353 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12355 (macro_iterator::macro_iterator): Add additional argument.
12357 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12359 * troff/div.cc (vertical_size::vertical_size): In place of integer
12360 specifying line spacing use cunits specifying post vertical
12362 (macro_diversion::output, top_level_diversion::output): Likewise.
12363 * troff/div.h: Change declarations accordingly.
12364 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12366 (pending_output_line::pending_output_line,
12367 pending_output_line::output, environment::output,
12368 environment::output_line, environment::output_title,
12369 environment::hyphenate_line): In place of
12370 integer specifying line spacing use cunits specifying post vertical
12372 (environment::environment): Add post_vertical_spacing and
12373 prev_post_vertical_spacing arguments.
12374 (environment::get_post_vertical_spacing): New function.
12375 (environment::total_post_vertical_spacing): New function.
12376 (environment::post_vertical_spacing): New function.
12377 (init_env_requests): Initialize pvs request and .pvs register.
12378 * troff/env.h: Change declarations.
12380 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12382 * tmac/tmac.pspic: Immediately remove the temporary file.
12384 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12386 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12387 height is specified.
12389 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12391 * tbl/table.c (struct vertical rule, class table_entry): Use int
12392 not short for start_row and end_row.
12394 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12396 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12398 (diverted_space_node::reread, process_input_stack): Call
12399 trapping_blank_line() rather than blank_line().
12400 (init_input_requests): Bind "blm" to blank_line_macro().
12402 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12404 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12406 * troff/env.cc (environment::possibly_break_line): Require that
12407 width total excluding width of final space node be greater than
12408 the target text length.
12410 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12412 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12414 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12416 * troff/node.cc (charinfo_node): New class.
12417 (glyph_node, composite_node): Derive from charinfo_node. Change
12418 member functions accordingly.
12420 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12422 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12424 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12426 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12428 * devps/generate/textmap (notsubset): Add.
12430 * tmac/tmac.a4: New file.
12432 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12434 * pic/main.cc (had_parse_error): New variable.
12435 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12437 (main): Return 1 if had_parse_error is true.
12439 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12441 * grolj4/lj4.cc (main): Avoid use of strtoul.
12443 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12445 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12446 iso_8859_1 or $LESSCHARSET is latin1.
12448 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12450 * hpftodit: New directory.
12451 * Makefile.in (CCPROGDIRS): Add hpftodit.
12452 * devlj4/generate: New directory.
12454 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12456 * configure.in: Don't use AC_VFORK.
12457 * groff/pipeline.c (run_pipeline): Use fork() always.
12459 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12461 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12463 * Makefile.in (CCPROGDIRS): Add grolj4.
12464 (DEVDIRS): Add devlj4.
12465 * grolj4, devlj4: New directories.
12466 * tmac/troffrc: Handle lj4.
12467 * tmac/tmac.lj4: New file.
12469 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12471 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12473 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12475 * troff/input.cc (do_if_request): At end of second string, switch
12476 environments before getting next token.
12478 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12480 * devps/psstrip.sed: Split rule that strips whitespace on either
12481 side of delimiters.
12483 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12485 * troff/node.h (font_family::make_definition): Add return value to
12486 declaration. * troff/symbol.h (symbol::operator==,
12487 symbol::operator!=): Likewise.
12489 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12491 * groff/groff.cc (main, help, synopsis): Handle -S.
12492 (possible_command::insert_arg): New function.
12494 * tmac/tmac.safer: New file.
12495 * tmac/msafer.man: New file.
12496 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12498 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12500 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12501 * pic/pic.y (placeless_element): Avoid unsafe operations if
12502 `safer_flag' is set.
12503 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12505 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12507 * eqn/lex.cc (get_token): Put call to add_context() in block to
12508 work around Sun C++ 4.0 bug.
12510 * include/stringclass.h (operator +): Use ?: instead of `if' to
12511 work around Sun C++ 4.0 bug.
12513 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12515 * tbl/main.cc (process_format): Accept - as a synonym for the _
12518 * libbib/index.cc (minus_one): Don't declare as const.
12520 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12522 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12524 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12526 * troff/input.cc (write_macro_request): New function.
12527 (init_input_requests): Bind write_macro_request to writem.
12529 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12531 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12534 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12536 * tmac/tmac.s (@TS): Renamed from TS.
12537 (TS): Call LP then TS again.
12538 (cov*ab-init): Alias @TS to TS.
12540 * tmac/tmac.s: Allow QP or RS to initialize.
12542 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12543 Move initializations of PS and LL here.
12544 (par@init): Don't initialize HY. Avoid changing environment 0.
12545 (par*env-init): Don't all par@reset.
12547 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12549 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12551 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12553 * Makefile.in (MDEFINES): Add LDFLAGS.
12554 (LDFLAGS): Add definition line.
12556 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12558 * troff/input.cc (get_optional_char): Split off error check into...
12559 (check_missing_character): New function.
12560 * troff/token.h: Declare it.
12561 * troff/env.cc (margin_character): Don't call get_optional_char.
12562 Only call tok.next() after making the node.
12564 * include/lib.h (getopt): Make 2nd argument char *const *.
12566 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12568 * nroff/conftest.sh: Deleted.
12570 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12572 * pic/make-dos-dist: Deleted.
12574 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12576 * devps/psstrip.sed: Strip comments before stripping trailing
12579 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12581 * Version 1.09 released.
12583 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12585 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12587 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12589 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12591 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12593 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12594 about returning without a value.
12596 * troff/charinfo.h (charinfo::get_special_translation): Cast
12597 TRANSLATE_NONE to int.
12599 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12600 test. Fix test so that it works with n unsigned.
12602 * pic/pic.y (defaults_table): Fully bracket initializer.
12603 * pic/lex.cc (lookup_keyword): Likewise.
12604 * eqn/lex.cc (token_table, def_table): Likewise.
12605 * eqn/box.cc (param_table): Likewise.
12606 * troff/input.cc (warning_table): Likewise.
12607 * libgroff/font.cc (table): Likewise.
12608 * grops/ps.cc (ps_printer::special): Likewise.
12609 * grops/psrm.cc (resource_manager::process_file): Likewise.
12610 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12611 * refer/command.cc (command_table): Likewise.
12612 * addftinfo/addftinfo.cc (param_table): Likewise.
12614 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12615 about temp's being unused.
12616 (unused): New function.
12618 * groff/pipeline.cc: Declare c_fatal.
12620 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12623 * libbib/index.cc (index_search_item::load): Prevent compiler
12624 warnings about fd_closer's being unused.
12625 (unused): New function.
12627 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12629 * troff/input.cc (copy_mode_error): Make `prefix' static.
12632 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12634 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12635 HAVE_CC_OSFCN_H and modify accordingly.
12637 * troff/input.cc (init_charset_table): radicalex overlaps
12640 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12641 udodo!hans@relay.NL.net).
12642 * groff/configure.in: Call it.
12644 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12645 * groff/configure.in: Call it.
12646 * include/lib.h: Conditionalize declaration of pclose.
12648 * troff/div.cc (last_page_number): New global variable.
12649 (top_level_diversion::begin_page): Exit if we just printed the
12651 * troff/div.h (last_page_number): Declare it.
12652 * troff/input.cc (parse_output_page_list): Set last_page_number.
12654 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12655 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12656 tmac/tmac.X: Likewise.
12657 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12658 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12660 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
12662 * tmac/doc-ditroff (hK): Remove groff specific code which
12663 prevented page-breaks between separate manual entries. If this is
12664 the first page, don't set the page number to 1.
12666 * acgroff.m4 (GROFF_POSIX): New macro.
12667 * configure.in: Use it.
12669 * troff/node.cc (class real_output_file,
12670 real_output_file::real_output_file,
12671 real_output_file::~real_output_file): Conditionalize use of
12672 popen/pclose on POPEN_MISSING.
12673 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12674 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12675 (pipe_source): Similarily.
12677 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12679 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12680 presence of declarations by trying to compile example with
12681 conflicting declarations. (gcc only gives a warning for missing
12684 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
12686 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12687 (from Ulrich Lauther).
12689 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
12691 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12693 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
12695 * indxbib/indxbib.cc (write_hash_table): Add code for case where
12696 pointers and ints have different sizes.
12698 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
12700 * tmac/tmac.s (par*env-init): Call par@reset.
12702 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
12704 * tmac/tmac.s (@IP): Switch to a new environment when diverting
12706 (par*push-tag-env, par*pop-tag-env): New macros.
12708 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
12710 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12711 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
12713 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12714 comment. Include <time.h>.
12716 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
12718 * grops/ps.cc (is_small_h, is_small_v): Deleted.
12719 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12722 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
12724 * troff/input.cc (read_request): Only print a prompt if reading
12725 from the terminal. Also clearerr on EOF if reading from the
12726 terminal. Declare isatty.
12728 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
12730 * refer/label.y: Rename map_t to map_func and extractor_t to
12733 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
12735 * include/assert.h: Don't use volatile.
12736 * libgroff/assert.cc: Likewise.
12738 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
12740 * troff/input.cc (abort_request): Look at character in tok before
12741 calling get_copy().
12743 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
12745 * troff/troff.h (NO_RETURN): Deleted.
12746 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
12747 * troff/input.cc (exit_troff): Likewise
12749 * Makefile.in: Remove `Making ...' messages since GNU make now
12752 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12754 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
12756 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12757 to constant 1 inch.
12759 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
12761 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12763 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
12765 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12766 MARK_REG if there was no left delimiter.
12768 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
12770 * pic/troff.cc (troff_output::text): Set line thickness to
12771 relative before outputting text.
12773 * tmac/tmac.e (@k): Don't zero ?T.
12776 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
12778 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12780 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
12782 * troff/input.cc (decode_args): Warn about unquoted tabs (from
12785 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
12787 * troff/input.cc (ignoring): New variable.
12788 (ignore): Set ignoring during call to do_define_macro.
12789 (do_define_macro): Clear ignoring before interpolating terminating
12791 (copy_mode_error): New function.
12792 (get_char_for_escape_name, read_long_escape_name,
12793 interpolate_arg): Use copy_mode_error.
12794 (warning_table): Add WARN_IG.
12795 * troff/troff.h (WARN_IG): Declare.
12796 (WARN_TOTAL): Change accordingly.
12798 * groff/pipeline.c (strsignal): Rename to xstrsignal.
12799 * groff/groff.cc (strsignal): Delete declaration.
12801 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
12803 * troff/div.cc (page_offset): Use 'm' as default scaling.
12805 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
12807 * nroff/nroff.sh: Ignore -u.
12809 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
12811 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12813 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
12815 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12817 (B2): With -Tascii, leave additional vertical space before
12818 and after. Ensure that the left and right indent is restored to
12819 what it was even if the point size changes. Don't call
12820 par@finish. Change the indent, line length and title length
12821 directly. With -Tascii, make the width of the box 1n less.
12822 (B1): Remember 1n at the current point size. Don't call
12823 par@reset. Change the indent, line length and title length
12824 directly. Ensure that the temporary indent is preserved.
12825 (par*box-mark-top): Turn off no spacing mode.
12827 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
12829 * Makefile.in (dist): Use .gz suffix.
12831 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
12833 * troff/input.cc (main): Add return 0.
12834 * pic/main.cc (main): Use return instead of exit.
12835 * tbl/main.cc (main): Likewise.
12836 * eqn/main.cc (main): Likewise.
12837 * grops/ps.cc (main): Likewise.
12838 * grotty/tty.cc (main): Likewise.
12839 * groff/groff.cc (main): Likewise.
12840 * grodvi/dvi.cc (main): Likewise.
12841 * refer/refer.cc (main): Likewise.
12842 * indxbib/indxbib.cc (main): Likewise.
12843 * lkbib/lkbib.cc (main): Likewise.
12844 * soelim/soelim.cc (main): Likewise.
12845 * addftinfo/addftinfo.cc (main): Likewise.
12846 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12847 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12849 * troff/token.h (process_input_stack): Don't declare as static.
12850 * troff/input.cc: Likewise.
12852 * troff/node.c (invalidate_fontno): Make it a static member of
12853 class font_family. Change callers.
12854 * troff/node.c: Change declaration.
12856 * tbl/main.cc (struct input_entry_format): Add explicit public
12858 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12859 struct double_hline_stuff): Likewise.
12860 * tbl/table.h (struct entry_format): Likewise.
12861 * pic/object.h (struct saved_state): Likewise.
12863 * include/stringclass.h: Add forward declarations of friend
12864 functions that are later declared as inline. Don't include inline
12865 specifier in friend declaration.
12867 * libgroff/lib.h: Declare popen and pclose.
12868 * acgroff.m4 (GROFF_POPEN): New macro.
12869 * configure.in: Call it.
12871 * include/lib.h (PI): New constant. Undef first if necessary.
12872 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12873 * grops/ps.cc (degrees, radians): Likewise.
12874 * libgroff/font.cc (font::get_skew): Likewise.
12876 * grops/ps.cc (is_ascii): New function.
12877 (ps_output::put_string): Use is_ascii. Use csprint rather than
12879 (ps_printer::define_encoding): Use csspace.
12880 * libgroff/strtol.c (ISASCII): New macro.
12881 (strtol): Cast arguments to is*() and tolower() to unsigned char.
12882 Use ISASCII rather than isascii.
12883 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12884 * libgroff/cset.cc: Likewise.
12885 * libdriver/input.cc: Include cset.h.
12886 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12889 * refer/refer.cc (main): Use %ld rather than %d for longs.
12891 * libbib/index.cc (index_search_item_iterator::get_tag): Use
12894 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12896 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
12898 * troff/input.cc (hyphenation_code): Skip white space between
12901 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
12903 * tbl/table.h (table::entry_list_tailp): New member.
12904 (table::table): Initialize it.
12905 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12908 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
12910 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12911 with negative horizontal positions. Remove casts of glyph::hpos to
12913 (USHRT_MAX): Delete definition.
12914 (SHRT_MAX, SHRT_MIN): New definitions.
12915 (glyph::hpos): Change type to short.
12916 (tty_printer::end_page): Output multiple backspaces if necessary.
12917 Remove casts of glyph::hpos to int.
12919 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
12921 * tmac/tmac.s (@RT): New definition.
12923 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
12925 * refer/refer.cc (do_file): Make sure current_filename is set when
12928 * pic/common.cc (common_output::dot_line): Handle zero length
12931 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
12933 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12934 (par@init): Initialize \n[HY].
12936 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
12938 * troff/dictionary.cc (dictionary::remove): Continue when
12941 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
12943 * Makefile.com (.y.cc): Avoid ending up with two versions of
12946 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
12948 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12949 (\(,C): Likewise. Also fix typo.
12951 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
12953 * lib.h: Delete extraneous semi-colon.
12955 * Add pso request: `so' from a pipe.
12956 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12957 (file_iterator::close): New function.
12958 (file_iterator::~file_iterator, file_iterator::next_file): Use
12959 file_iterator::close.
12960 (file_iterator::backtrace): Say `process' rather than `file' when
12961 the stream is popened.
12962 (pipe_source): New function.
12963 (init_input_requests): Bind ".pso" to pipe_source.
12965 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
12967 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12969 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
12970 digits in lower case.
12972 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
12974 * Version 1.08 released.
12976 * Makefile.in (dist): Insert || true after ln -s commands that
12979 * mm: Update to mm 1.16.
12981 * acgroff.m4 (GROFF_CSH_HACK): New macro.
12982 * configure.in: Call GROFF_CSH_HACK. Substitute for
12984 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
12986 * nroff/Makefile.sub (nroff): New target.
12987 (install_data): Install nroff.
12988 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12989 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12991 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
12993 * eqn/Makefile.sub (neqn): Add chmod +x.
12995 * grog/Makefile.sub (grog): Remove spurious semi-colon.
12997 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
12999 * troff/input.cc (string_iterator::string_iterator()): Initialize
13002 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13004 * troff/div.cc (macro_diversion::space,
13005 top_level_diversion::space): Don't set high_water_mark.
13006 (macro_diversion::output, top_level_diversion::output): Don't
13007 include post line space in high water mark.
13009 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13011 * eqn/eqn.y: Don't define YYDEBUG.
13012 * pic/pic.y: Likewise.
13014 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13016 * tmac/tmac.e ([3): Add space after comma following editors.
13017 Change double spaces to single spaces.
13018 ([4): Change double spaces to single spaces.
13020 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13021 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13022 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13023 after %!PS-Adobe- (for Newsprint).
13025 * troff/div.cc (top_level_diversion::begin_page): When
13026 before_first_page is 1, set page_number to 1.
13028 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13030 * eqn/box.cc (box::top_level): Protect equation with \&.
13032 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13034 * groff/groff.cc (possible_command::set_name): Delete old name.
13036 * groff/groff.cc (possible_command::~possible_command): Use
13039 * troff/node.cc (troff_output_file::begun_page): New member.
13040 (troff_output_file::troff_output_file): Initialize it.
13041 (troff_output_file::really_begin_page): Only output V command if a
13042 page has been begun.
13044 * pic/pic.y (placeless_element): Delete argument to PRINT after
13047 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13049 * Make wrapman work.
13050 * troff/div.h (class top_level_diversion): Replace
13051 first_page_begun by before_first_page (with opposite sense).
13052 * Change first_page_begun to before_first_page inverting sense.
13053 * troff/div.cc (class nl_reg): New class.
13054 (init_div_requests): Use class nl_reg for \n(nl.
13055 (top_level_diversion::begin_page): Don't call
13056 output_file::begin_page if before_first_page is 2;
13057 reset before_first_page afterwards. If have_next_page_number is
13058 false, then always increment page_number.
13059 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13060 Restore compatibility mode after loading, and then disable
13061 compatibility mode in TH.
13063 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13065 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13067 * troff/node.h (output_file::trailer): Declare.
13068 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13069 * troff/node.cc (output_file::trailer): New function.
13070 (troff_output_file::~troff_output_file): Move most code into...
13071 (troff_output_file::trailer): New function.
13072 (class troff_output_file): Delete page_length member. Declare
13074 (troff_output_file::really_begin_page): Use current page length
13075 for final V command.
13077 * tbl/main.cc (struct options): New decimal_point_char member.
13078 (options::options): Initialize this.
13079 (process_options): Implement decimalpoint option.
13080 (process_data): Pass decimal_point_char option to table::table.
13081 * tbl/table.h (class table): New decimal_point_char member.
13082 (table::table): Add additional argument.
13083 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13084 second argument specifying decimal point character. Use this
13086 (table::table): Initialize decimal_point_char.
13087 (table::add_entry): Change call to find_dot.
13089 * troff/input.cc (get_copy, token::next): Implement \V.
13090 (interpolate_environment_variable): New function.
13092 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13094 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13095 * pic/pic.y: Likewise.
13097 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13099 * refer/ref.cc (reference::insert_field, reference::delete_field):
13101 * troff/number.cc (parse_term): Likewise.
13103 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13104 * configure.in: Use GROFF_PROG_YACC.
13106 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13108 * Makefile.in (OPTIMIZE): New define.
13109 (DEBUG): Empty by default.
13110 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13112 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13113 (GROFF_ARRAY_DELETE): Likewise.
13114 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13116 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13118 * devps/psstrip.sed: Use different delimiter on last line (so that
13119 it works with BSD 4.4 sed.)
13121 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13123 * devps/psstrip.sed: Delete comments.
13125 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13126 optind, opterr, optarg.
13127 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13130 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13132 * Makefile.in (check): Dummy target.
13134 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13136 * Version 1.07 released.
13138 * Integrate mm 1.11.
13140 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13141 where start_col was meant.
13143 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13145 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13147 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13149 * troff/input.cc (token::next): Make \z\o'...' and similar things
13152 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13154 (environment): Add margin_character_flags member.
13155 * env.cc (environment::environment(symbol),
13156 environment::environment(const environment *): Initialize
13157 margin_character_flags.
13158 (margin_character): Rewrite.
13159 (environment::output_line): Add a margin character if
13160 margin_character_flags is non-zero. Turn off the
13161 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13162 zero, use margin_character_node without copying and then set
13163 margin_character_node to 0.
13165 * devps/DESC.in: Change minimum size to 1000.
13167 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13169 * troff/symbol.h (symbol::hash): Change return type to unsigned
13171 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13174 * test-groff: Use -r rather than -x.
13176 * grops/psfig.diff: Include in distribution again.
13178 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13180 * Makefile.in (dist): Use gzip.
13182 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13184 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13185 unistd.h as well as in stdlib.h.
13186 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13187 defined; otherwise include <sys/types.h> and <unistd.h> if
13188 UNISTD_H_DECLARES_GETOPT is defined.
13190 * configure.in: use builtin(include, ... rather than include(...
13191 * configure: Regenerate with autoconf 1.3.
13193 * libdriver/print.cc (printer::adjust_arc_center): Use new
13194 algorithm suggested by Andy Fyfe.
13196 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13197 * include/printer.h: Declare this.
13198 * grops/ps.cc (ps_printer::draw): Use it.
13199 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13201 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13203 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13205 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13207 * eqn/main.cc (main): Handle "eqn -".
13209 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13211 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13213 * mm: Integrate version 1.08.
13215 * pic/troff.cc (troff_output::finish_picture): Set
13216 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13217 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13218 if it's not defined. Check whether the register is non-zero rather
13219 than whether it's not defined.
13220 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13222 * indxbib/indxbib.cc: Move all signal handling into...
13223 * indxbib/signal.c: New file.
13224 * configure.in: Call AC_RETSIGTYPE.
13226 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13227 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13228 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13230 * troff/input.cc (token::token, token::operator=): Work round SGI
13232 * pic/object.cc (position::position): Likewise.
13234 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13236 * pic/pic.h: Move declaration of hypot().
13238 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13240 * pic/pic.h: Declare hypot().
13242 * pic/pic.h: Define M_PI if necessary.
13244 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13246 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13249 * devps/prologue.ps (RE): Handle the possibility that the old font
13250 doesn't have a FontName entry.
13252 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13254 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13255 (@C): Use @fam not fam.
13257 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13259 * lookbib/lookbib.cc (main): Change type of start to const char *.
13260 * lkbib/lkbib.cc (main): Likewise.
13262 * eqn/lex.cc (definition::definition): Don't use member
13263 initializer syntax for members of anonymous unions.
13265 * troff/input.cc (input_stack::backtrace): Change type of to const
13268 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13270 * include/stringclass.h (class string): Declare inline friend
13271 functions as inline in class declaration.
13272 * troff/hvunits.h (class hunits, class vunits): Likewise.
13273 * include/refid.h (class reference_id): Likewise
13274 * troff/troff.h (points_to_units(units), scale(units, double)):
13275 Delete declarations.
13276 * libdriver/input.cc (get_char): Delete declaration.
13277 * include/lib.h: Change 2nd argument of getopt from const char **
13279 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13280 char **' before assigning to a `const char **'.
13281 * tbl/table.cc: Delete extra declarations of prints().
13283 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13285 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13286 char **' before assigning to a `const char **'.
13288 * libgroff/errarg.cc (errarg::errarg): Don't use member
13289 initializer syntax for members of anonymous unions.
13291 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13293 * mm: Integrate version 1.07.
13295 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13297 * troff/input.c (translate2): Rename to
13298 (translate_no_transparent).
13299 (init_input_requests): Rename tr2 to trnt.
13301 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13303 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13304 (charinfo::set_translation, charinfo::set_special_translation):
13305 Add second argument that specifies value for
13306 transparent_translate.
13307 (charinfo::get_translation, charinfo::get_special_translation):
13308 Add optional second argument that specifies whether translation is
13309 being used for transparent throughput.
13310 * troff/input.cc (charinfo::set_translation,
13311 charinfo::set_special_translation): Handle second argument.
13312 (charinfo::charinfo): Initialize transparent_translate.
13313 (translate): Split main part off into
13314 (do_translate): New function. Pass argument saying whether
13315 translation applies to transparent throughput.
13316 (translate2): New request.
13317 (init_input_requests): Bind translate2 to `tr2'.
13319 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13321 * tbl/table.h (class table): Add `nokeep' flag.
13322 * tbl/main.cc (process_options): Handle `nokeep' option.
13323 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13324 table::do_bottom): Don't output keep/release macro definitions or
13325 calls when `nokeep' option has been specified.
13327 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13329 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13331 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13333 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13334 block_entry::divert, alphabetic_block_entry::divert): Add extra
13335 argument giving column separation.
13336 (table::compute_widths): Pass column separation to
13337 table_entry::divert().
13338 (block_entry::do_divert): If an entry spans multiple columns and a
13339 minimumum width has been specified for each column, then set the
13340 line length to the sum of the widths (plus possibly the column
13343 * troff/input.cc (set_escape_char): Don't set the escape_char
13344 until after calling has_arg().
13346 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13348 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13351 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13352 in case where r > nrows - 1.
13354 * tbl/table.cc (BODY_HEIGHT): Deleted.
13355 (LINE_SEP): New definition.
13356 (table::print_single_hline, table::print_double_hline,
13357 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13358 table::do_row, table::do_top): Use LINE_SEP space before a line
13359 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13361 * tbl/table.cc (text_entry::print_contents): New function.
13362 (text_string_name, right_text_string_name): Deleted.
13363 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13364 (simple_text_entry::do_width, numeric_text_entry::do_width,
13365 alphabetic_text_entry::do_width): Don't store the contents of the
13367 (left_text_entry::simple_print, right_text_entry::simple_print,
13368 center_text_entry::simple_print,
13369 alphabetic_text_entry::simple_print,
13370 numeric_text_entry::simple_print): Print the entry directly
13371 instead of using the stored string.
13373 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13375 * devps/Makefile: Strip PostScript files.
13376 * devps/prologue: Rename to...
13377 * devps/prologue.ps.
13378 * devps/psstrip.sed: New file.
13379 * devps/download: Use .pfa rather than .ps for installed versions
13382 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13384 * troff/env.cc (input_trap): Give a warning if the argument is out
13387 * troff/env.cc (adjust): Treat negative argument as missing. Round
13388 argument > 5 down to 5.
13390 * troff/env.cc (center, right_justify): Make negative argument zero.
13392 * troff/div.cc (page_offset, vertical_position_traps): Treat
13393 invalid argument as missing.
13394 * troff/env.cc (line_spacing, line_length, title_length, indent,
13395 underline, hyphen_line_max_request, control_char,
13396 no_break_control_char, widow_control_request, adjust, input_trap,
13397 point_size): Likewise.
13398 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13399 constant_space): Likewise.
13400 * troff/input.cc (compatible, shift, warn_request,
13401 set_escape_char): Likewise.
13403 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13404 * tbl/table.cc (table::table): Likewise.
13406 * Makefile.dev (install_dev): depends on $(DEVFILES).
13408 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13410 * devX75, devX75-12, devX100, devX100-12: New directories.
13411 * Makefile.in: Add these to DEVDIRS.
13413 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13414 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13415 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13416 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13418 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13419 (uninstall): New target.
13420 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13421 uninstall_prog, uninstall_dev): New targets.
13423 * troff/div.cc (return_request): Treat an invalid argument as
13426 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13428 * tmac/tmac.e ((f): Set up the environment even when there's a
13429 current diversion. Transperently throughput a call to @N.
13432 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13434 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13435 up to vertical resolution.
13437 * tbl/table.cc (table::do_row): Change row number after printing
13440 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13442 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13444 * Rename CHANGES to NEWS.
13446 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13448 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13450 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13452 * man.ultrix: Removed.
13454 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13456 * Makefile.comm (extraclean): Delete files whose names begin with
13459 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13462 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13464 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13465 * troff/div.cc (page_length, need_space, space_request): Treat
13466 invalid optional argument as missing.
13467 * troff/env.cc (number_lines): If the first argument is present
13468 but not a number, turn on line numbering, don't change the next
13469 line number and parse the remaining arguments.
13471 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13473 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13475 * eqn/box.h: Change declaration accordingly.
13476 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13477 the specified size was bad but don't give an error. Check for
13479 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13480 * eqn/lex (do_size): Likewise.
13482 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13484 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13485 compatible headers.
13487 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13489 * tbl/table.cc (table::init_output): Improve error message when
13490 table won't fit on one page.
13492 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13494 * pic/troff.cc (troff_output::start_picture): Generate line
13495 containing a horizontal motion equal to the width of the picture.
13497 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13498 using GROFF_COMMAND_PREFIX environment variable.
13500 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13502 * mdate.sh: Use $NF rather than $(NF).
13504 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13506 * pic/main.cc (main): Use %1 not %c in argument to warning.
13508 * eqn/main.cc (main): Output code to check that geqn was given the
13511 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13513 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13514 `ln -s ../Makefile .; make; rm -f Makefile'.
13516 * troff/hyphen: Rename to...
13518 * troff/input.cc (main): Delete -H option. Don't call
13519 read_hyphen_file().
13520 * troff/env.cc: Include searchpath.h and macropath.h.
13521 (exception_dictionary): Deleted.
13523 (read_hyphen_file): Deleted.
13524 (hyphenation_language): New struct.
13525 (class trie, class hyphen_trie): Move declarations up.
13526 (trie_node::~trie_node): Deleted.
13527 (trie::delete_trie_node): New function.
13528 (trie::do_delete): New pure virtual function.
13529 (hyphen_trie::do_delete): New function.
13530 (trie::~trie): New function.
13531 (hyphen_trie::~hyphen_trie): New function.
13532 (trie::clear): No need to chcek that tp is not 0.
13533 (current_language, language_dictionary): New variables.
13534 (hyphen_word): Give an error if no current language. Use
13535 exceptions dictionary in current language.
13536 (hyphen_trie::read_patterns_file): Find file using macro_path.
13537 Allow comments (starting with %) in patterns file. Don't make it
13538 a fatal error if the file can't be found.
13539 (hyphenate): Return if no current language. Get the exceptions
13540 dictionary and the hyphenation patterns from the current language.
13541 (set_hyphenation_language): New variable.
13542 (hyphenation_patterns_file): New function.
13543 (hyphenation_language_reg): New class.
13544 (hyphenation_language_reg::get_string): New function.
13545 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13546 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13548 * groff/groff.cc (main, help, synopsis): Delete -H option.
13549 * include/Makefile.sub: Don't define HYPHENFILE.
13550 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13551 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13552 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13553 hyphenation patterns.
13555 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13557 * eqn/neqn.sh: New file.
13558 * eqn/Makefile.sub: Handle neqn.sh.
13560 * eqn/eqn.h: Declare `nroff' variable.
13561 * eqn/box.cc (param_table): Add `nroff' param.
13562 (nroff): Define it.
13563 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13565 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13567 * troff/troff.h (WARN_FONT): New warning.
13568 (WARN_TOTAL): Change accordingly.
13569 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13570 (warning_table): Add WARN_FONT.
13571 * troff/node.cc (mount_font_no_translate): Pass argument to
13572 font::load_font. If this is non-zero, give a warning.
13573 Don't give an error message when accessing a font that has already
13574 been found to be invalid.
13575 * include/font.h (font::load, font::load_font): Add additional
13576 optional argument which suppresses error message if the font is
13578 * libgroff/font.cc (font::load_font): Handle additional argument.
13579 (font::load): Add additional argument. If this is non-null, set it
13580 to 1 and don't give error message.
13582 * include/printer.h (printer::end_page): Add argument giving
13584 * libdriver/input.cc (do_file): Pass this.
13585 * grops/ps.cc (ps_printer::end_page): Add argument.
13586 * grodvi/dvi.cc (dvi_printer::end_page,
13587 draw_dvi_printer::end_page): Add argument.
13588 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13589 columns_per_page members. New member nlines.
13590 (DEFAULT_LINES_PER_PAGE): Deleted.
13591 (tty_printer::tty_printer): Don't compute lines_per_page from
13592 font::paperlength. Don't compute columns_per_page from
13594 (tty_printer::add_char): Don't check horizontal position against
13595 columns_per_page. Grow glyphs vector if neccessary.
13596 (tty_printer::end_page): Add argument giving page_length in units.
13597 Discard lines past end of page.
13599 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13601 * tmac/tmac.tty-char: Fix definition of \(/l.
13603 * tmac/tmac.X: Define \(en.
13605 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13607 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13608 lpq, then use lp rather than lpr.
13610 * tmac/tmac.s (par@reset): Don't call `ad'.
13611 (par*env-init): Call `ad'.
13613 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13615 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13618 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13619 * indxbib/indxbib.cc: Likewise.
13621 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13623 * libgroff/putenv.c: New file.
13624 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13625 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13626 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13627 stdlib.h with AC_HAVE_HEADERS.
13629 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13631 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13634 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13636 * eqn/box.cc (gsize): Make it an int.
13637 (set_gsize): Parse argument handling increment or decrement.
13638 (box::top_level): Convert gsize to a string.
13640 * troff/input.cc (exit_troff): Make buf unsigned char [].
13641 Call to make_temp_iterator casts buf to char*.
13643 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13645 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13646 * Makefile.cpg (depend.temp): Likewise.
13648 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13650 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13652 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13654 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13656 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
13658 * Version 1.06 released.
13660 * Integrate mm 1.04.
13662 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
13664 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13666 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
13668 * afmtodit/afmtodit.pl: Add -n option that disables generation of
13670 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13671 afmtodit. Regenerate.
13673 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13674 @f back past the current position.
13676 * tmac/tmac.e: Change calls to @R so that comments are not part of
13679 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
13681 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13683 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13684 check that we can link a call to a function declared in <stdio.h>.
13685 (GROFF_UNISTD_H): New macro.
13686 * configure.in: Call it.
13687 * Makefile.in: Document it.
13688 * include/posix.h: New file.
13689 * troff/troff.h: Don't include <osfcn.h>
13690 * troff/input.cc: Include posix.h.
13691 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13693 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13694 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13696 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13697 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13698 * libbib/search.cc (O_RDONLY): Delete definition.
13699 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13700 Don't include <osfcn.h>.
13702 * acgroff.m4 (GROFF_TIME_T): New macro.
13703 * configure.in: Call it.
13704 * Makefile.in: Document it.
13706 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13707 * configure.in: Call it.
13708 * Makefile.in: Document -DTRADITIONAL_CPP.
13709 * include/ptable.h: Don't include generic.h.
13710 (name2): Define it.
13712 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13713 Afterwards remove [T1 and [T2.
13714 (ref*spec!0, ref*spec!2): Use T1 rather than T.
13715 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13716 (ref*add-T2): Renamed from ref*add-T.
13717 (ref*add-T1): New macro.
13719 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
13721 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13723 * libbib/index.cc: Include <fcntl.h>.
13724 (O_RDONLY): Define if necessary.
13725 (make_index_search_item, index_search_item_iterator::get_tag,
13726 index_search_item::check_files): Use O_RDONLY.
13727 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13728 (O_RDONLY): Define if necessary.
13729 (search_list::add_file): Use O_RDONLY.
13730 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13732 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13735 * libbib/index.cc (S_ISREG): Define it if necessary.
13736 (index_search_item::load): Use S_ISREG.
13738 * include/driver.h: Include <errno.h>.
13740 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
13742 * eqn/box.cc (body_height): Increase default value to 85.
13743 (body_depth): Increase default value to 35.
13745 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
13747 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13748 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13749 protected from expansion with \E.
13751 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13753 * Makefile (Makefile): New target.
13755 * Makefile.sub (configure, distfiles): New targets.
13757 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13760 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
13762 * eqn/box.cc (param_table): Add body_height and body_depth.
13764 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13766 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
13768 * psbb/Makefile.sub: Don't link with libgroff.a.
13770 * acgroff.m4 (GROFF_PUTENV): New macro.
13771 * configure.in: Call GROFF_PUTENV.
13772 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13773 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13776 * troff/env.cc (distribute_space): Rename force_forward argument
13777 to force_reverse. Reverse the list if force_reverse is true.
13779 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
13781 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13783 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13784 height or depth to be negative. Guard against SUP_RAISE quantity
13787 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
13789 * devps/generate/textmap: Add `an' (arrowhorizex).
13790 * tmac/tmac.ps: \(an overlaps horizontally.
13791 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13793 * devps/symbolchars: Add arrowverttp, arrowvertbt.
13794 * devps/textmap: Add arrowvertex.
13795 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13796 updownarrow delimiters.
13797 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13799 * tbl/table.cc (simple_entry::position_vertically,
13800 block_entry::position_vertically): For a centered entry, perform
13801 the motion in two stages.
13803 * refer/refer.cc (split_punct): Don't call lookup_token if there
13806 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
13808 * troff/input.cc (token::next): Delete token_node after copying
13811 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13814 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13816 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13818 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
13820 * grops/ps.cc (usage): -b option takes an argument.
13822 * devps/prologue (PLG): New procedure.
13823 * grops/ps.cc (main, usage): New -g option.
13824 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
13827 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
13829 * include/cset.h: Include <limits.h> if we have it.
13831 * libgroff/illegal.cc: New file.
13832 * include/lib.h (illegal_input_char): Use table.
13833 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13834 * pic/lex.cc (ARG1): Renumber to 14.
13835 * eqn/lex.cc (ARG1): Likewise.
13837 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13838 (eg 1.05.90) correctly.
13840 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
13842 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13843 Rename $r and $R registers to $v and $V.
13844 ($r, $R): Initialize to 0.
13845 (@v, @V): New macros.
13849 * troff/input.cc (main, usage): Add -R option that says not to
13851 * eqn/main.cc (main, usage): Rename -n to -R.
13853 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
13855 * devps/DESC.in: Leave font positions 5-9 blank.
13856 * devdvi/DESC.in: Likewise.
13858 * grog/grog.pl: Handle `.PS <file' correctly.
13860 * troff/input.cc (input_stack::push): Improve error message when
13861 input stack limit exceeded.
13863 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
13865 * refer/refer.cc (main): Fix typo in handling of `a' option.
13867 * refer/refer.cc (do_bib): In state START after a newline remain
13870 * groff/groff.sh: Deleted.
13871 * groff/Makefile.sub: Delete handling of groff.sh.
13873 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13874 to determine whether to use \X'ps:...'.
13875 * tmac/troffrc: Set 0p register to 0.
13876 * tmac/tmac.ps: Set 0p register to 1.
13878 * groff/groff.cc: Support -X option. Give warning for -TXps and
13879 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13880 * tmac/troffrc: Support -r.X=1.
13882 * pic/troff.cc (troff_output::dot): Don't test
13883 zero_length_line_flag.
13885 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
13887 * include/lib.h: Declare getopt() and friends unless
13888 STDLIB_H_DECLARES_GETOPT is defined.
13890 * doc/chars.tr: Delete.
13891 * man/groff_char.man: New file.
13893 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
13895 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13896 user has changed register format.
13898 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
13900 * groff/groff.cc: Get rid of device_table. Get postprocessor from
13901 `postpro' command in DESC file. Get spooler command from `print'
13902 command in DESC file. Execute spooler command with /bin/sh.
13904 * groff/groff.cc: Split Unix-specific parts into...
13905 * groff/pipeline.c: New file.
13908 * COPYING: New file.
13909 * all files: Update copyright notices.
13911 * Rearrange files. Redo Makefiles. Use autoconf.
13913 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
13915 * troff/input.c (charinfo_to_node_list): Interpret character
13916 definition with escape_char of `\'.
13918 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
13920 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13921 Define INT_DIGITS as big enough for 64-bit integer.
13922 * lib/strtol.c: Don't include lib.h.
13923 * lib/lib.h: Delete ifdef __cplusplus stuff.
13925 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
13927 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
13928 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
13929 get DESC from current directory.
13931 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
13933 * tbl/main.c (main): Always reset the line number when reading
13936 * tbl/table.c (table::print_single_hline, table::print_double_hline,
13937 table::define_bottom_macro, table::do_row, table::do_top): Round
13938 vertical spacing up to vertical resolution.
13940 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
13942 * ps/ps.h (enum resource_type): Avoid comma at end of
13944 * dvi/dvi.c (class dvi_printer): Likewise.
13945 * dvi/tfmtodit.c (gf::load): Likewise.
13946 * refer/label.y (struct expression): Likewise.
13947 * refer/refer.c (class label_processing_state): Likewise.
13948 * refer/indxbib.c (do_file): Likewise.
13949 * troff/troff.c (enum warning_type): Likewise.
13950 * tbl/main.c (process_data): Likewise.
13951 * troff/charinfo.h (class charinfo):
13953 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
13955 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
13957 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
13959 * groff.c: Move to new groff subdirectory.
13960 * groff/Makefile: New file.
13961 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13963 * man/mdate.sh: Use ls -L if supported.
13965 * Consolidate all header files produced by gendef into lib/defs.h.
13966 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13967 Don't include path.h.
13968 * lib/Makefile (path.h): Don't generate.
13969 * troff/input.c: Include defs.h. Don't include config.h.
13970 * troff/Makefile (config.h): Don't generate.
13971 * refer/index.h: Don't include suffix.h.
13972 * refer/index.c: Include defs.h.
13973 * refer/indxbib.c: Include defs.h.
13974 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13976 * refer/Makefile (suffix.h, path.h): Don't generate.
13977 * groff.c: Don't include config.h. Include defs.h.
13978 * Makefile (config.h): Don't generate.
13979 (lib/defs.h): Generate.
13980 (topclean): Remove lib/defs.h.
13982 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
13984 * lib/malloc.c, lib/getpagesize.h: Deleted.
13985 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
13987 * lib/Makefile: Delete malloc-related stuff.
13988 * lib/new.c: Workaround COOKIE_BUG if necessary.
13990 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
13991 needed header files directly.
13992 * refer/refer.h: Omit definition of DEFAULT_INDEX.
13993 * Makefile: Include definition of DEFAULT_INDEX in path.h.
13995 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
13997 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13999 * lib/font (font::load_desc, font::load): Don't split argument of
14001 (font::handle_unknown_font_command): Change type.
14002 * ps/ps.c (ps_font::handle_unknown_font_command,
14003 handle_unknown_desc_command): Change type.
14004 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14006 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14008 * lib/font.h (font::handle_unknown_font_command): Add file and
14010 * lib/font.c (font::handle_unknown_font_command):
14011 * ps/ps.c (ps_font::handle_unknown_font_command):
14012 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14013 lineno arguments. Use _with_file_and_line functions for error
14016 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14018 * lib/font.c (font::set_unknown_desc_command_handler): New
14020 (font::load_desc): For unknown commands, call
14021 unknown_desc_command_handler if not null.
14022 * lib/font.h (class font): Declare them.
14023 (FONT_COMMAND_HANDLER): New typedef.
14024 * ps/ps.c (handle_unknown_desc_command): New function.
14025 (main): Set bflag if we had a -b option. Call
14026 font::set_unknown_desc_command_handler.
14027 (broken.h): Don't include.
14028 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14030 * ps/devps/Makefile: Add `broken' command to DESC file using
14031 BROKEN_SPOOLER_FLAGS.
14033 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14035 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14037 * macros/tmac.e (@R, @S): New macros.
14038 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14039 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14040 Declare $H, $[0-9], .. macros with @S.
14041 Declare |0, |1, |2, |3 strings with @S.
14043 * macros/tmac.e (@S): Rename to @U.
14045 * macros/tmac.e (@z): Define @b and bp as empty instead of
14048 * macros/tmac.e (@m): Deleted.
14049 (@h): Don't call @m.
14050 (@z): Don't set @m trap.
14052 * macros/tmac.e ($h, $f): Define |z as empty string.
14054 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14057 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14059 ()f): Likewise for * register.
14061 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14062 argument is missing, don't change $R. Call sr with three
14063 arguments when initializing.
14065 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14067 * macros/tmac.e (sr): New macro.
14068 Initialize $r and $R using sr.
14070 * macros/tmac.e (,): Delete \*(#[.
14072 * troff/env.c (set_tabs): Read the tab type even if the position
14073 is bad. Allow the position of the first tab stop to be negative.
14075 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14077 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14079 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14080 rather than -DPATHCONF_MISSING.
14081 * Makefile: Get rid of PATHCONF_MISSING.
14083 * refer/map.c: New file.
14084 * refer/index.c: Interface to mmap through map.c. Rename map_size
14086 * refer/Makefile: Handle map.c.
14087 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14089 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14091 * Makefile: RANLIB should be `true' if there is no ranlib.
14092 * lib/Makefile (libgroff.a): Simplify.
14093 * driver/Makefile (libdriver.a): Simplify.
14095 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14096 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14099 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14101 * troff/env.c (compare_ranges): Declare as extern "C".
14103 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14105 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14107 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14109 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14110 but conditionalize use of \X based on \*(.T.
14111 (grops_output::*): Deleted.
14112 * pic/output.h: Delete declaration of make_grops_output.
14113 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14114 by default. -n sets it to 0.
14115 (usage): Corresponding changes.
14116 * groff.c (main): Don't pass -x or -p to pic.
14117 * groff.sh: Likewise.
14119 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14122 * ps/devps/afmtodit: Change calculation of asc_boundary and
14123 desc_boundary. Make these bounds inclusive.
14124 * ps/devps: Regenerate font files.
14126 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14128 * macros/tmac.latin1: New file.
14129 * macros/tmac.tty-char: Use tmac.latin1.
14130 (tmac.tty-tr): Deleted.
14131 * macros/Makefile: Install tmac.latin1.
14132 * macros/tmac.dvi: Use tmac.latin1.
14133 * macros/troffrc: Translate \[char160] onto no-break space here.
14134 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14136 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14138 * macros/tmac.Xps: Use `do' request.
14140 * macros/tmac.ps: Use `do' request.
14142 * macros/tmac.e (@C): Use `do' request.
14144 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14145 * macros/Makefile: Install tmac.X*.
14147 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14148 * tty/Makefile: Don't install tmac.tty*.
14149 * macros/Makefile: Install tmac.tty*.
14151 * dvi/tmac.dvi: Move to macros.
14152 * dvi/Makefile: Don't install tmac.dvi.
14153 * macros/Makefile: Install tmac.dvi.
14155 * ps/tmac.ps*: Move to macros.
14156 * ps/Makefile: Don't install tmac.ps*.
14157 * macros/Makefile: Install tmac.ps*.
14159 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14161 * macros/eqnrc: Set draw_lines parameter based on device.
14162 * groff.c: Don't pass -D flag to eqn.
14163 * groff.sh: Likewise.
14164 * eqn/main.c: Warn about use of -D.
14166 * troff/input.c (process_startup_file): New function.
14167 (main): Call process_startup_file().
14168 * macros/troffrc: New file.
14169 * macros/Makefile: Install troffrc.
14170 * groff.c (main): Don't pass extra -m option to troff. For a
14171 pseudo device pass the name of the pseudo device to troff using
14173 * groff.sh: Likewise.
14174 * groff.c (possible_command::prepend_arg): Deleted.
14176 * troff/input.c (do_request): New function.
14177 (init_input_requests): Bind "do" to do_request.
14179 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14180 load eqnrc from macro directory.
14181 * macros/eqnrc: New file.
14182 * macros/Makefile: Install eqnrc.
14183 * ps/devps/eqnchar: Deleted.
14184 * ps/devps/Makefile: Don't install eqnchar.
14185 * dvi/devdvi/eqnchar: Deleted.
14186 * dvi/devdvi/Makefile: Don't install eqnchar.
14187 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14190 * lib/device.[ch]: New files.
14191 * lib/font.h (font::set_device_name, font::get_device_name):
14193 * lib/fontfile.c: Use device.h.
14194 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14195 * troff/input.c: Delete definition of `device'.
14196 (main): Don't initialize device.
14197 * troff/troff.h: Include device.h rather than declaring device.
14198 * troff/Makefile: No need to handle DEVICE.
14199 * driver/input.c: Include device.h. Don't use
14200 font::{set,get}_device_name.
14201 * groff.c, Makefile: Rename device.h to config.h.
14202 * groff.c: Use library device variable.
14203 * eqn/main.c: Use library device variable.
14204 * eqn/Makefile: No need to handle DEVICE.
14206 * lib/searchpath.[ch]: New files.
14207 * lib/Makefile: Handle searchpath.[ch].
14208 * troff/input.c (open_file, init_dirs): Deleted.
14209 (macro_dirs): Deleted.
14210 (open_mac_file, macro_source): Use class search_path.
14211 (add_string, struct string_list): Move definition.
14212 (main): Change -M option to use macro_path. Delete call to
14214 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14215 Rewrite to use class search_path.
14216 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14217 * lib/Makefile: fontfile.c depends on searchpath.h.
14218 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14220 * lib/macropath.[ch]: New files.
14221 * troff/Makefile: No need to handle MACROPATH.
14223 * troff/input.c: Delete DUMP code.
14224 * lib/fontfile.c, lib/font.h: Delete
14225 font::forget_command_line_font_dirs.
14227 * troff/input.c (push_token): New function.
14228 (handle_first_page_transition): Use push_token().
14229 (process_input_stack): Change handling of a space at the beginning
14232 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14234 * troff/input.c (font_dirs): Delete unused variable.
14236 * eqn/lex.c (do_set): Correct error messages.
14238 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14240 * troff/input.c (do_define_string): Allow the string name to be
14241 followed immediately by a tab.
14242 (define_character): Likewise.
14244 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14246 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14249 * troff/input.c (input_iterator::is_file): New virtual function.
14250 (file_iterator::is_file): New function.
14251 (input_stack::end_file): New function.
14252 (input_stack::next_file): Handle the situation where there is no
14253 file on the input stack correctly. Avoid making two passes over
14255 (next_file): Make the filename optional; in this case call
14256 input_stack::end_file().
14258 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14260 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14261 produce a real _ charater when the current font is CW and _
14264 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14265 expression to work around gcc 2.2 bug.
14267 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14269 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14271 * troff/env.c (environment::add_padding): New function.
14272 (environment::add_char): Use add_padding().
14273 (environment::space): Likewise.
14274 (environment::wrap_up_field): Add some padding if there is none
14275 and there's no current tab.
14276 * troff/env.h: Declare environment::add_padding.
14278 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14280 * pic/pic.y: undef fmod and rand before declaring them.
14282 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14284 * troff/input.c (main): If the DESC file specifies a font name of
14285 0, then leave the corresponding font position empty.
14287 * nroff.sh: New file.
14288 * Makefile (install.nobin): Install nroff.sh.
14290 * tty/devlatin1/R.proto: Add ao as synonym for de.
14291 * tty/tmac.tty-char: Define ao as o.
14293 * tty/dev{ascii,latin1}/R.proto: Add aq.
14294 * tty/tmac.tty-char: Delete definition of aq.
14296 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14298 * troff/input.c (init_charset_table): Don't translate 0240.
14299 * ps/tmac.ps: Translate char160 to space.
14300 * dvi/tmac.dvi: Likewise.
14301 * tty/tmac.tty: Likewise.
14303 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14305 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14307 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14308 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14311 * tty/tmac.tty-char: Add \(ah.
14313 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14314 No need to define \(FM and \(!/. Conditionalize all character
14317 * ps/devps/lgreekmap: Add +h, +f, +p.
14319 * ps/tmac.psnew: New file.
14320 * ps/Makefile: Install tmac.psnew.
14322 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14323 character definitions in compatible mode.
14325 * troff/input.c (remove_character): New function.
14326 (init_input_requests): Bind remove_character to "rchar".
14328 * ps/tmac.psold: New file.
14329 * ps/Makefile: Install tmac.psold.
14330 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14331 characters into tmac.psold. Make these definitions unconditional.
14333 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14335 * ps/tmac.ps: Don't define \('c and \('C.
14337 * ps/devps/textmap: Move Greek characters to...
14338 * ps/devps/symbolchars:
14340 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14342 * ps/devps/text.enc: Add quotesingle.
14343 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14344 * tty/tmac.tty-char: Likewise.
14345 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14346 * dvi/devdvi/texi.map: Add Fn.
14347 * dvi/devdvi/msam.map: Add lz.
14348 * dvi/tmac.dvi: Handle Bq, bq, aq.
14350 * pic/lex.c (get_token): Recognize 'th.
14351 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14353 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14355 * ps/devps/textmap: Move di, mu, +- to...
14356 * ps/devps/symbolchars:
14358 * macros/tmac.s (@XS): Don't call par@reset or fi.
14359 (XA): Call LP. Turn off adjustment. Reduce line length.
14361 * macros/tmac.s: Initially alias XS to LP.
14362 (XS): Rename to @XS.
14363 (cov*ab-init): Alias XS to @XS.
14365 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14367 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14368 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14369 (token::is_size, token::changes_env): Deleted.
14370 * troff/number.c (parse_term): No need to process \s explicitly.
14371 Call tok.next() only after scale indicator has been processed.
14372 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14374 (token::next): Handle \s, \f, \S, \H immediately rather than
14375 returning them as tokens.
14376 (token::operator==, token::description, token::add_to_node_list,
14377 token::process): Remove handling of deleted tokens.
14379 * troff/env.c (environment::add_char): When adding padding
14380 indicator character, call start_line() if necessary.
14382 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14384 * ps/devps/afmtodit: Don't output 0 kerns.
14386 * ps/devps/afmtodit: Remove directory from name of encoding in
14387 font description file.
14389 * ps/devps/afmtodit: Improve error messages.
14391 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14393 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14394 * ps/devps/FontMakefile: Deleted.
14395 * ps/devps/afmname: New file.
14397 * ps/devps/symbol.sed: New file.
14398 * ps/devps/symbol.diff: Deleted.
14399 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14400 Generate zapfdr.afm from zapfd.afm.
14402 * tty/tmac.tty (tty-char): Prefix definition with ".
14404 * macros/tmac.an (TP): Don't start a diversion if one has already
14407 * tty/tmac.tty-char: Add Latin-1 characters.
14409 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14411 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14413 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14414 Move declaration of struct horizontal_span.
14416 * tbl/table.c (table::table): Initialize span_list.
14417 (table::~table): Delete span_list.
14419 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14421 * ps/devps/Makefile: Avoid dependency on GNU make.
14423 * ps/tmac.ps: Check that character does not already exist before
14426 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14427 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14428 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14431 * tty/tmac.tty-char: New file.
14432 * tty/Makefile: Install tmac.tty-char.
14433 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14436 * tty/tmac.tty: Fix definition of \(34.
14438 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14439 bracket-drawing characters onto |. Add *o.
14441 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14442 only if current_field.
14444 * troff/dictionary.c (dictionary::lookup): Free old_table after
14447 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14449 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14450 whose glyphs are identical to glyphs of some Roman character.
14452 * tty/devlatin1/R.proto (bu): Deleted.
14453 * tty/devascii/R.proto (bu): Deleted.
14454 * tty/tmac.tty: Add definition of \(bu.
14456 * eqn/main.c (do_file): Pass FILE as argument.
14457 (main): Automatically load eqnchar. New options -F and -n.
14458 Pass do_file an opened FILE.
14459 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14460 No need to include font.h.
14461 * groff.sh: Likewise. Don't need to use - for standard input.
14462 Prefix files with -- if first file starts with -.
14464 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14466 * troff/env.c (environment::possibly_break_line): Don't set line
14467 to 0 across call to output_line(). Don't call output_line() until
14468 after discarding nodes after break.
14470 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14472 * request.h (macro::empty): Declare it.
14473 * input.c (macro::empty): New method.
14474 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14477 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14479 * troff/env.c (environment::start_field): Decrement space_total
14480 when a space is frozen.
14482 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14484 * macros/tmac.an (R): Delete macro.
14486 * troff/input.c (get_copy, token::next): Support \# (like \" but
14487 newline is ignored).
14489 * troff/input.c (token::next): Fix error message in 'Y' case.
14491 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14493 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14496 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14498 * c++test.c: Include <osfcn.h>.
14500 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14503 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14505 * tbl/table.c (table::divide_span): Don't count column separation
14506 if expand was specified.
14508 * tbl/main.c (process_format): Don't ignore width specs in
14509 continued format. Give warning for changing equal widths or
14510 column separation in continued format.
14511 (process_data): Set column separation, minimum width, equal
14512 columns at end of table.
14514 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14516 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14517 node::add_discretionary_hyphen): Use soft_hyphen_char.
14518 (set_soft_hyphen_char): New function.
14519 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14521 * Makefile (c++tested): Give more helpful message if test fails.
14523 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14525 * troff/input.c (init_charset_table): Translate 0240 to
14526 an unbreakable space.
14528 * troff/token.h (token::hyphen_indicator): New function.
14529 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14531 * troff/input.c (translate): Allow translation to \%.
14532 * troff/node.c (node::add_char): Handle
14533 TRANSLATE_HYPHEN_INDICATOR.
14534 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14536 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14539 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14541 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14543 * groff.c (run_commands): If the last command gets a SIGPIPE send
14544 a SIGPIPE to all children than haven't yet terminated. When
14545 command terminates, set pid field to -1.
14547 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14549 * groff.c (main): Pass an appropriate -filename option to gxditview.
14551 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14553 * Makefile.bd (install): Remove existing program before copying.
14555 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14556 programs which have Unix counterparts to be installed with
14557 user-specified prefix.
14559 * troff/input.c (exit_troff): Don't check if exit_started.
14560 (exit_request): Don't call exit_troff if exit_started.
14562 * Makefile.bd (install.mm): Rename to install.dwbmm.
14564 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14566 * driver/input.c (do_file): Add missing break for '#' case.
14568 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14570 * troff/input.c (input_stack::clear): Clear past any boundaries and
14571 then add the boundaries back.
14573 * troff/input.c (exit_troff): Return immediately if already
14576 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14578 (pg*end-page): If the text has ended and there are no more
14579 footnotes or keeps, exit.
14581 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14583 * troff/input.c (init_charset_table): Make \(rq transparent by
14586 * macros/tmac.an: Define lq and rq strings.
14588 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14590 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14592 * troff/env.c (environment::final_break): New function.
14593 (environment::newline): Set prev_line_interrupted to 2 if
14595 * troff/env.h: Declare environment::final_break.
14596 * troff/input.c (exit_troff): Call environment::final_break()
14597 instead of environment::do_break().
14599 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14600 doesn't already exist.
14601 * macros/man.local: New file.
14602 * macros/tmac.an: Load man.local.
14603 * macros/man.ultrix: New file.
14605 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14607 * troff/input.c (exit_groff): Rename to...
14608 (exit_troff): New function.
14610 * troff/div.c (exit_started, done_end_macro,
14611 seen_last_page_ejector): New global variables.
14612 (began_page_in_end_macro): New static variable.
14613 (exit_flag): Deleted.
14614 (top_level_diversion::top_level_diversion): Initialize
14616 (top_level_diversion): More elaborate test for whether
14617 cleanup_and_exit() should be called.
14618 Set began_page_in_end_macro if the end macro isn't yet finished.
14619 * troff/div.h (top_level_diversion::last_page_count): New data
14621 (top_level_diversion::set_last_page): New function.
14622 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14623 * troff/env.c (do_break): Zero prev_line_interrupted.
14624 * troff/input.c (exit_flag): Delete declaration.
14625 (LAST_PAGE_EJECTOR): New magic cookie.
14626 (token::next): Handle LAST_PAGE_EJECTOR.
14627 (exit_groff): Set exit_started and done_end_macro instead of
14628 exit_flag. Call top_level_diversion::set_last_page. Push a
14629 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14630 another ejection after setting seen_last_page_ejector.
14632 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14634 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14636 * macros/tmac.e (TH): Make sure there's room for the initial
14639 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14640 Set FVS in points rather than units.
14642 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14644 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14645 position of empty slots.
14647 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14649 * ps/devps/S: Fix height and depth of parenrightex.
14650 * ps/devps/symbol.diff: Regenerate.
14652 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14654 * tmac.e (u): Do underlining as in -mgs.
14656 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
14658 * tty/tty.c (tty_printer::end_page): If overstriking is
14659 suppressed, still turn overstruck horizontal and vertical lines
14662 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14665 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14667 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
14669 * Version 1.05 released.
14671 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
14673 * tty/tty.c: Instead of keeping an array of glyphs and then
14674 sorting it, keep a ordered linked list of glyphs for each line.
14676 * driver/driver.h: Include stddef.h.
14678 * tty/tty.c (compare_glyph):
14679 * refer/refer.c (rcompare):
14680 * troff/env.c (compare_ranges): Arguments of qsort comparison
14681 function should be const void *.
14683 * troff/number.c (parse_term):
14684 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14687 * refer/label.y (consider_authors): Don't access variables
14688 constructed under a condition outside that condition: put braces
14689 round for statement containing declaration; redeclare use of same
14692 * pic/pic.y (text_expr): Delete production that allows
14693 parenthesised text_expr.
14694 (expr): Allow a conditional_expr to appear in parentheses.
14695 (conditional_expr): Rename to any_expr.
14697 * mm: Install new version 1.01 from jh.
14699 * lib/font.c (font::get_width): Cache scaled widths.
14700 (font::font): Initialize widths_cache.
14701 (font::~font): Destroy widths_cache.
14702 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14704 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
14706 * c++test.c, c++test.ref: New files.
14707 * Makefile: Check that the C++ compiler works.
14709 * ps/tmac.pspic (PSPIC): Do a break.
14711 * ps/tmac.ps: Move definition of PSPIC into...
14712 * ps/tmac.pspic: New file.
14713 (PSPIC): Draw box around picture, but make it invisible to grops.
14714 * ps/tmac.ps: Load tmac.pspic.
14715 * ps/Makefile: Install tmac.pspic.
14717 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
14719 * lib/font.c (scale_round): If n is negative,
14720 subtract .5 before truncating floating point result.
14722 * lib/fontfile.c: Include <errno.h>.
14724 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
14726 * driver/input.c (get_char): Inline. Don't update current_lineno.
14727 Change callers to up date current_lineno if necessary.
14728 Use get_char() instead of getc(current_file).
14730 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
14732 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14734 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
14736 * tty/tty.c (tmac.tty): Define \(rg as (R).
14738 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
14740 * lib/lib.h: New define a_delete.
14741 * Use a_delete instead of delete when deleting an array of objects
14742 without destructors.
14744 * lib/lib.h: Rename adelete to ad_delete.
14745 * Change uses of adelete.
14747 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
14749 * eqn/eqn.y: Include lib.h.
14751 * troff/node.c (grow_font_table): Delete old_font_table.
14753 * mm: Install new version from jh.
14755 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
14757 * tbl/table.h (format_type): Make global instead of local to class
14758 entry_format. Prefix enumerators with FORMAT_.
14759 * tbl/table.c, tbl/main.c: Corresponding changes.
14760 * refer/token.h (token_type): Make global. Prefix enumerators
14762 * refer/token.[ch]: Corresponding changes.
14763 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14765 * troff/div.c (node::set_vertical_size): Don't name argument.
14767 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
14769 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14770 * lib/lib.h: Define adelete accordingly.
14771 * pic/object.c (graphic_object::graphic_object):
14772 * tbl/main.c (format::~format):
14773 * tbl/table.c (table::~table):
14774 * refer/ref.c (reference::~reference, reference::merge,
14775 reference::insert_field, reference::delete_field): Use adelete.
14777 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14779 * tbl/table.h: Corresponding changes.
14781 * common.c (common_output::dashed_arc, common_output::dotted_arc):
14782 Ensure total_angle is positive.
14784 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
14786 * refer/ref.c (reference::merge, reference::insert_field,
14787 reference::delete_field): Avoid delete[0].
14789 * refer/token.c (init_special_chars): Move calls to cmupper
14790 outside calls to init_two_char_letter to work around bug in gcc
14793 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
14795 * lib/new.c (operator new): Use __builtin_new for g++.
14797 * pic/object.c (graphic_object::~graphic_object): Don't use
14800 * pic/object.c (output::compute_scale): Initialize max_width and
14803 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
14805 * troff/input.c (write_request): Call fflush.
14807 * troff/node.h (class composite_node): Move declaration to node.c
14808 * troff/input.c (charinfo_to_node): Rename to ...
14809 (charinfo_to_node_list): Return node list rather than composite
14811 * troff/node.c (make_composite_node): New function.
14812 (make_node, add_char): Call make_composite_node instead of
14814 (class composite_node): Add a tfont * member. Delete font_size
14816 (composite_node::composite_node, composite_node::copy,
14817 composite_node::size): Corresponding changes.
14818 (composite_node::tprint): Provide constant spacing, emboldening
14819 and track kerning as specified in tfont.
14820 (composite_node::width): Change width calculation accordingly.
14821 * troff/env.h (environment::composite): New member.
14822 (environment::is_composite, environment::set_composite): New
14824 * troff/env.c (environment::environment): Initialize composite.
14825 * troff/input.c (charinfo_to_node): Call
14826 environment::set_composite.
14827 * troff/node.c (make_composite_node, make_glyph_node): Use the
14828 plain version of the tfont if the environment is composite.
14830 * troff/node.c (font_info::get_space_width): Additional argument
14831 giving space_size. Handle constant space correctly. Scale by
14832 space_size unless constant spaced.
14833 (env_sentence_space_width): New function.
14834 * troff/node.h: Declare it.
14835 * troff/env.h (environment::get_space_size,
14836 environment::get_sentence_space_size,
14837 environment::get_narrow_space_width,
14838 environment::get_half_narrow_space_width): Make inline.
14839 (environment::get_space_width): Make inline. Just call
14841 * troff/env.c: Delete definitions for funtions made inline.
14842 (environment::space_newline, environment::space): Use
14843 env_sentence_space_width(). Don't scale by space_size.
14844 * troff/node.h: Move declarations of env*space_width() functions
14847 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
14849 * macros/tmac.s (PS): Don't try to set negative indent.
14851 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
14853 * pic/pic.y: Fix min function.
14855 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
14857 * man/mdate.sh: Clear LANGUAGE.
14859 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
14861 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14862 * pic/lex.c: New COMMAND keyword.
14863 * pic/pic.y (print_args, print_arg): New rules.
14864 (placeless_element): Use print_args for PRINT.
14865 New COMMAND element.
14867 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
14869 * troff/input.c (terminal): Handle missing argument correctly.
14871 * pic/pic.y (text_expr): New rule.
14873 * pic/pic.y: Implement := operator.
14875 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
14877 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14880 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
14882 * ps/devps/dingbatsrmap: Include this in the distribution.
14884 * macros/tmac.doc: Replace with new version from 2nd Networking
14885 Release. Fix loading of doc-* files.
14886 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14887 * macros/tmac.doc.old: New file. Apply fixes that had been
14888 applied to old tmac.doc.
14889 * macros/tmac.andoc: Check that we're running under groff.
14890 * macros/Makefile: Rework.
14892 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
14894 * tbl/table.h (format_type):
14895 * refer/token.h (token_type): If NESTED_TYPES is defined, use
14896 typedef to make these types visible at file scope.
14897 * Makefile: Add NESTED_TYPES configuration option.
14899 * troff/div.c (mark): At the top level use the value of
14900 nl_reg_contents rather than the current vertical position.
14902 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
14904 * tty/tty.c: Implement \D for horizontal or vertical lines.
14905 (tty_printer::set_char): Use vec_used+2 as serial number.
14906 Don't allow size of vector to exceed USHRT_MAX-2.
14907 Split off part into...
14908 (tty_printer::add_char): New function.
14909 (tty_printer::draw): New function.
14910 (compare_glyph): Handle equal serial numbers.
14911 (tty_printer::end_page): Handle overstruck characters from \D.
14912 (main, usage): Implement -d option.
14914 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
14916 * tbl/main.c (process_format):
14917 * eqn/text.c (split_text):
14918 * troff/input.c (token::next): Use inner block for declarations
14919 with initializers in switch statement.
14921 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
14923 * pic/common.c (common_output::dash_line): Cope with zero-length
14926 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
14928 * Version 1.04 released.
14930 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
14932 * macros/tmac.an (TH): Define a macro an-init to define variables
14933 based on command line arguments.
14934 (an-header): Call it.
14936 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
14938 * Makefile (install.mm): Rename to install.dwbmm.
14940 * Makefile: Integrate mm.
14941 * mm: New directory.
14943 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
14945 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14948 * pic/troff.c (troff_output::simple_spline,
14949 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14950 shadowing parameter.
14952 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14954 * lib/ptable.h: Add explicit casts when converting from unsigned
14957 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14958 * dvi/devdvi/Makefile: Install SA, SB.
14960 * refer/indxbib.c: Add declaration of mktemp.
14962 * refer/lookbib.c: Add declaration of isatty.
14964 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
14966 * pic/lex.c (interpolate_macro_with_args): While collecting
14967 arguments, keep track of whether we're in a string.
14969 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
14971 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14972 down with \v, so as to avoid problems with top of page trap
14973 setting no space mode.
14975 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
14977 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14979 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
14981 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14982 Improve error message.
14984 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
14986 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14989 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
14991 * groff.c (possible_command::execp): Always use _exit() after a
14994 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14995 NO_SYS_WAIT_H configuration options.
14996 * groff.c: Use these options. Use POSIX-style macros to extract
14997 fields from the status returned by wait().
14999 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15001 * tbl/table.c (table::compute_separation_factor): Allow the
15002 separation factor to drop to 0.
15004 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15006 * refer/search.c: Include <errno.h>.
15008 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15010 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15012 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15015 * pic/lex.c (input_stack::bol): Move definition out of class body.
15017 * pic/main.c: On MSDOS munge argv[0].
15019 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15021 * lib/ptable.c (hash_string): Use unsigned long rather than
15023 (next_ptable_size): Use unsigned rather than int. Give an error
15024 message if we've hit the largest table size.
15025 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15028 * pic/object.h (object_spec): Make flags unsigned long. Declare
15029 flags as const unisgned long rather than as enums.
15031 * pic/output.c: Deleted.
15033 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15035 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15036 Add additional argument.
15037 (line_entry::note_double_vrule_on_{left,right}): Set value of
15038 douvle_vrule_on_{right,left} flag according to argument.
15039 (simple_line_entry::simple_print,
15040 simple_line_entry::double_line_print): If adjacent to double vrule
15041 on a corner extend rather than shorten the rule by half the double
15044 * troff/number.c (parse_term): In checking for overflow, handle the
15045 case where the current horizontal position is negative.
15047 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15049 * pic/object.c (draw_arrow): Check for object having zero length.
15051 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15053 * eqn/main.c (do_file): Split off inline equation handling into...
15054 (inline_equation): New function. Search for starting delimiter
15056 (delim_search): New function. Don't recognize a delimiter that
15057 occurs in the name of an escape sequence, number register, string
15060 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15062 * eqn/delim.c (delim_box::compute_metrics): Don't call
15063 define_extensible_string if left is 0.
15064 (delim_box::output): Don't print the left delimiter if left is 0.
15065 (delim_box::debug_print): Check for left == 0 before calling printf.
15067 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15069 * troff/Makefile (majorminor.c): Include only digits in
15072 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15074 * refer/dirnamemax.c: new file.
15075 * refer/genlimits.c: Deleted.
15076 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15077 Don't check path length.
15078 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15079 * Makefile: Add PATHCONF_MISSING option.
15081 * refer/indxbib.c (get_cwd): New function.
15082 (main): Use get_cwd().
15083 * lib/getcwd.c: New file.
15084 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15085 GETCWD in SUBFLAGS.
15086 * lib/Makefile: Compile getcwd.o.
15088 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15091 * refer/indxbib.c (main): Check success of mktemp.
15093 * lib/tmpfile.c: New file.
15094 * lib/Makefile: Add tmpfile.c.
15095 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15096 * ps/ps.h: Delete declaration of mktemp().
15097 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15098 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15099 * driver/driver.h: No need now to include errno.h.
15101 * everywhere: Set errno to 0 before calling fopen().
15103 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15104 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15105 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15107 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15109 * troff/env.h (translate_space_to_dummy): Declare it.
15110 * troff/env.c (environment::space_newline, environment::space):
15111 If translate_space_to_dummy is set then make the width of spaces 0.
15112 * troff/input.c (translate): If the second character of a
15113 translation is a space, translate to unbreakable space. If the
15114 first character is a space, set or clear translate_space_to_dummy
15115 according to whether the second character is \&. Weird!
15117 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15119 * groff.c (run_commands): Don't use non-zero exit code because a
15120 command gets SIGPIPE.
15122 * groff.c, groff.sh: Use -mXps with -TXps.
15124 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15125 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15126 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15127 (ps_printer::special): New specials invis and endinvis.
15128 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15129 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15130 (ps_printer::end_page): Check that invis_count == 0.
15131 (ps_printer::invis_count): New member.
15132 (ps_printer::ps_printer): Initialize invis_count to 0.
15134 * troff/env.c (environment::hyphenate_line): Hyphenation
15135 indicator at beginning of word inhibits splitting after -, \(em
15138 * pic/pic.y (element): Allow another element to follow } without
15139 any intervening separator.
15141 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15143 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15145 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15147 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15148 declaration of wait() in header files.
15149 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15151 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15153 * lib/lib.h: Declare return type of strerror as char *.
15155 * man/Makefile: Add g flag to sed substitutions.
15156 * Makefile (shgroff, bindist): Likewise.
15158 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15160 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15161 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15164 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15166 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15169 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15171 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15174 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15176 * troff/input.c (define_number_reg): If currently undefined,
15177 don't define it if the argument is an invalid expression.
15179 * Makefile: Ignore return value of `if' commands without `else'
15182 * Makefile: Split up CPPDEFINES into a series of separate
15183 configuration options.
15185 * troff/input.c (init_registers): Use time_t instead of long
15186 unless LONG_FOR_TIME_T is defined. Use returned result rather
15187 than passing pointer.
15188 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15190 * lib/Makefile (fontpath.h): Use gendef.
15192 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15194 * troff/input.c (input_iterator::shift): Delete argument name.
15195 * troff/node.c (suppress_output_file::really_begin_page,
15196 suppress_output_file::really_transparent_char, node::ascii_print,
15197 node::tprint): Delete names of unused arguments.
15199 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15201 * refer/label.y (string): Pass $4 to command_error.
15203 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15205 * Version 1.03 released.
15207 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15209 * Makefile: Pass definition of SHELL in SUBFLAGS.
15211 * gendef: New file.
15212 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15213 ps/Makefile: Use gendef to construct header files that are
15214 constructed from the Makefile.
15216 * macros/Makefile: make all should build stripped version of tmac.e.
15218 * refer/Makefile (clean): Remove y.output.
15220 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15222 * ps/pfbtops.c (main): Add -v option which prints out a version
15224 * ps/Makefile (pfbtops): Link with libgroff.a.
15226 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15228 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15229 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15231 * refer/lkbib.c (main): Always terminate reference with blank
15233 * refer/lookbib.c (main): Likewise.
15235 * refer/linear.c (file_buffer::load): Check that the file is not a
15238 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15239 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15240 Delete second inclusion of <sys/param.h>.
15242 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15244 * troff/token.h (token::special): Deleted.
15246 * tbl/main.c (process_format): Rework so that opt->tab_char is
15247 recognized only when appropriate.
15249 * ps/Makefile (clean): Remove pfbtops.
15251 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15253 * lib/font.c (text_file::next): Don't return if we have got a
15256 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15258 * refer/refer.c (store_reference): Get hash code from old_table[i]
15259 when rehashing the table.
15261 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15263 * eqn/box.c (box::top_level): Save size and prev size using \R and
15264 restore it afterwards. Set the size to the size at the beginning
15266 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15267 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15269 * refer/Makefile (limits.h): Use ./genlimits.
15271 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15273 * refer/index.c: Delete declarations of stat() and fstat().
15275 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15277 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15279 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15281 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15283 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15285 * troff/input.c (token::get_char): Handle \e.
15287 * refer/linear.c: Delete declarations of fstat() and stat().
15289 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15291 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15292 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15294 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15296 * troff/input.c (do_define_macro): Improve error handling for end
15297 of file while defining macro.
15299 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15301 * eqn/box.h: Fix declaration of set_gsize.
15302 * eqn/box.c (set_gsize): Make argument const char *.
15303 (gsize): Declare as char *.
15304 * eqn/main.c (main): Don't convert gsize to int.
15305 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15307 * Version 1.02 released.
15309 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15311 * macros/tmac.andoc: New file.
15312 * macros/Makefile: Install tmac.andoc.
15314 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15315 operator new and delete on OP_DELETE_BROKEN not being defined.
15316 * Makefile: Mention OP_DELETE_BROKEN.
15318 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15320 * Makefile (bindist): Pass SUBFLAGS.
15322 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15324 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15326 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15329 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15331 * ps/ps.h, ps/psrm.c: Make comment_table and
15332 header_comment_table local to resource_manager::process_file.
15334 * groff.sh: With -TXps pass -printCommand option to gxditview.
15336 * groff.c (possible_command::print): Implement using
15337 append_arg_to_string.
15339 * xditview: Merge in new implementation with own ChangeLog.
15341 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15343 * groff.c (main): Implement PRINT_OPTION.
15344 (append_arg_to_string): New command.
15345 (device_table): Set PRINT_OPTION flag for Xps.
15347 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15349 * troff/groff.h: Rename to troff.h.
15351 * pic/lex.c (lookup_keyword, docmp): New functions.
15352 (get_token): Use new lookup_keyword.
15353 Don't include key.h.
15354 * pic/key.[ch], pic/pic.gperf: Deleted.
15355 * pic/Makefile: Remove gperf stuff.
15357 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15359 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15361 * troff/Makefile, troff/node.c: Move definition of
15362 STORE_WIDTH into node.c.
15364 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15366 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15368 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15369 dvi/devdvi/texb.map: Add lq and rq.
15370 dvi/devdvi: Regenerate fonts.
15371 * ps/devps/textmap: Add lq and rq.
15372 * ps/devps: Regenerate fonts.
15373 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15374 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15376 * pic/object.c (position_rectangle): When checking radius
15377 cope with possiblity that width or height is negative.
15378 (box_object::box_object): Have separate xrad and yrad with
15379 signs matching signs of dim components.
15380 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15381 (box_object::print): With rounded boxes use absolute values
15382 for dim and rad arguments.
15384 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15387 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15389 * various files: Add explicit destructors to keep Saber CC +d
15392 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15394 * eqn/box.c (box::top_level): Restore fonts correctly after
15395 font changes in line containing inline equation. Also
15396 restore previous font as well as current font.
15397 * eqn/pbox.h: Define necessary string and register names.
15399 * troff/input.c (token::next): Case 'R' calls do_register.
15400 (do_register): New function.
15402 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15404 * groff.c, groff.sh: Support Xps device. Allow each device
15405 to have a pseudo_name and a real_name.
15407 * groff.c (run_commands): Don't print `Broken pipe' messages.
15409 * ps/pfbtops.c: New file.
15410 * ps/Makefile: Add pfbtops.
15412 * troff/number.c (parse_term): Improved error message.
15414 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15416 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15418 * Makefile: Integrate refer.
15419 * refer: New directory.
15420 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15421 man/lkbib.man: New files.
15422 * man/Makefile: Support refer man pages.
15424 * lib/lib.h: Declare is_prime.
15425 * lib/prime.c: New file.
15427 * troff/input.c (macro_source): New function.
15428 (init_input_requests): Bind "mso" to macro_source.
15430 * troff/env.c (environment::possibly_break_line): Maintain
15431 pointer to pointer to node to be split in ndp so as to avoid
15432 using address of freed node.
15434 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15435 pointer to first node to be hyphenated in startp so as to
15436 avoid using address of freed node.
15438 * troff/env.c (class trie, class hyphen_trie): Make the
15439 elements of the trie be of type char not unsigned char.
15440 Declare arguments to be const char* instead of unsigned char *.
15442 * troff/env.c (hyphenate): Initialize hbuf[0].
15444 * troff/input.c (set_string): Declare p to be char * and cast
15445 *p to unsigned char when necessary.
15447 * troff/input.c (do_define_macro): Declare s to be const
15448 char*. Cast element to unisgned char when necessary, Declare
15449 d to be an int. Handle EOF better.
15451 * troff/Makefile, troff/input.c: Different scheme for passing
15452 definitions of MACROPATH, HYPHENFILE and DEVICE.
15454 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15456 * tty/devascii/R.proto: Delete entry for em.
15457 * tty/devlatin1/R.proto: Likewise.
15459 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15461 * troff/input.c (translate): Stop when we get a space. Treat eof
15464 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15466 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15468 * tbl/main.c (process_format): A font name following a `f'
15469 modifier that starts with a digit can be only one character long.
15470 Also deal with EOF on the second character of the font name.
15472 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15474 * troff/input.c (token::next): Turn \~ into an
15475 unbreakable_space_node.
15476 * troff/node.c (unbreakable_space_node): New class.
15477 * troff/node.h: Declare it.
15479 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15481 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15482 it's >= 0, before outputting it as a single byte.
15484 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15486 * lib/font.c: Make font_char_metric::code an int.
15487 (font::get_code): Change return type to int.
15488 (font::load): Allow code to be arbitrary integer.
15489 * lib/font.h (font::get_code): Change return type to int.
15490 (font::number_to_index): Change argument type to int.
15491 * troff/input.c (token::next): In case 'N', allow any value.
15492 Store value in token::val.
15493 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15494 (token::get_char, token::add_to_node_list, token::process): Get
15496 (charinfo::set_number): Change argument to int.
15497 (charinfo::get_number): Require that NUMBERED flag be set.
15498 (get_charinfo_by_number): Store numbered characters not between 0
15499 and 255 in a dictionary.
15500 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15502 (charinfo::number): Change type to int.
15503 (charinfo::set_number): Change type of set_number to int.
15504 * troff/node.c (troff_output_file::put_char_width,
15505 troff_output_file::put_char): Test whether character is numbered
15506 using charinfo::numbered().
15507 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15509 * lib/nametoindex.c: New implementation to cope with arbitrary
15512 * troff/input.c (token::operator==): Test val for
15513 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15516 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15517 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15519 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15521 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15524 * all Makefiles: rm targets of cp and >.
15526 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15529 * eqn/lex.c (def_table): Add dollar.
15531 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15533 * troff/input.c (do_width): Push back newline before closing delim
15536 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15538 * groff.c (possible_command::prepend_arg): New function.
15539 (main): Prepend device -m option.
15540 * groff.sh: Put device -m options before command-line options.
15542 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15544 * macros/tmac.an (IP): Quote argument to TP.
15546 * ps/ps.c (main): New option -b, which sets...
15547 (broken_flags): New variable.
15548 (ps_printer::~ps_printer): Incorporate the setup section in the
15549 prolog if (broken_flags & NO_SETUP_SECTION).
15550 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15551 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15552 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15553 ps_printer::print_needed_font_comment,
15554 ps_printer::print_supplied_font_comment,
15555 ps_printer::print_include_font_comments,
15556 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15557 ps_printer::read_download_file, read_document_fonts, add_font,
15558 skip_line, parse_fonts_arg, document_font::document_font,
15559 document_font::~document_font, document_font::download,
15560 ps_output::include_file): Deleted.
15561 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15562 rather than %!PS-Adobe-2.0. Make calls to
15563 resource_manager::need_font for each font that we used. Replace
15564 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15565 print_supplied_font_comment, print_needed_font_comment by call to
15566 resource_manager::print_header_comments. Output %%Orientation
15567 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15568 Don't output the prolog directly. Instead call
15569 resource_manager::output_prolog. Only define #copies when ncopies
15570 > 1. Delete calls to print_include_font_comments and
15571 download_fonts. Add call to resource_manager::document_setup.
15572 (ps_printer::do_file): Call resource_manager::import_file instead
15573 of including it ourselves.
15574 (ps_printer::do_import): Likewise. Also don't call
15575 merge_import_fonts. Push userdict on the dictionary stack before
15576 and pop it afterwards.
15577 Move declaration of ps_output into ps.h.
15578 * ps/psrm.c: New file implementing resource_manager class.
15579 * ps/ps.h: New file declaring ps_output and resource_manager
15581 * ps/devps/zapfdr.ps:
15582 * ps/devps/symbolsl.ps:
15583 * ps/devps/prologue: Use 3.0 conventions.
15584 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15585 Add default definition of BROKEN_SPOOLER_FLAGS.
15586 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15587 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15589 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15591 * etc/grog.pl: New file.
15592 * Makefile (GROG): New variable.
15593 Add GROG to SUBFLAGS.
15594 * etc/Makefile (GROG): New variable.
15595 (install.nobin): Install $(GROG) rather than grog.sh.
15597 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15599 * eqn/special.c (special_box::compute_metrics): Make the input and
15600 output strings the same. Get the new height and depth from the
15601 predefined height and depth registers. Also make subscript kern
15602 and skew available.
15603 (special_box::compute_subscript_kern, special_box::compute_skew):
15606 * eqn/box.c (pointer_box::compute_skew,
15607 simple_box::compute_metrics, box::top_level)
15608 * eqn/text.c (prime_box::compute_metrics,
15609 prime_box::comput_subscript_kern)
15610 * eqn/limit.c (limit_box::compute_metrics):
15611 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15612 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15613 negative numbers in `nr' requests with a leading 0.
15615 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15617 * eqn/special.c: New file.
15618 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15619 Add new rule for simple.
15620 * eqn/lex.c (token_table): Add SPECIAL.
15621 * eqn/box.h: Declare make_special_box.
15622 * eqn/Makefile: Add special.[co].
15624 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15626 * ps/devps/prologue: Possibly set packing to true while defining.
15627 Create grops dictionary here. Initialize local variables before
15628 defining procedures.
15629 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15630 the dictionary stack. Set strokeadjust and overprint to false if
15631 the relevant operators are defined.
15632 (PEND): New procedure.
15633 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15634 prologue. Do everything else in the setup section.
15635 (ps_printer::do_import): Just call PBEGIN and PEND around the
15636 picture. Also push userdict before, and pop it afterwards.
15638 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15640 * troff/node.c (bracket_node::tprint): Brackets were being printed
15643 * macros/tmac.an (SH, SS): Set fill mode.
15645 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15647 * troff/div.c (top_level_diversion::begin_page): Set
15648 high_water_mark to 0.
15650 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15652 * man/mdate.sh: New file.
15653 * man/mdate.c: Deleted.
15654 * man/Makefile: Use mdate.sh instead of mdate.
15657 * eqn/lex.c (do_gsize): Supply missing argument to error message.
15659 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
15661 * man/mdate.c: New file.
15662 * man/*.man: Replace modification date by @MDATE@.
15663 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15664 (mdate): New target.
15666 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15667 Remove illegal input characters.
15669 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
15671 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15673 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
15675 * troff/div.c (begin_page): Change behaviour when
15676 !first_page_begun and !break_flag.
15678 * troff/input.c (do_name_test): Return 0 if argument is empty.
15680 * troff/input.c (read_long_escape_name): Require closing ] to be
15681 at same input level as opening [.
15683 * troff/input.c (read_increment_and_escape_name): New function.
15684 (get_copy, process_input_stack): Use this for \n.
15686 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
15688 * troff/div.c (top_level_diversion::begin_page): Ignore the
15689 current value of page_number if !first_page_begun.
15691 * groff.c (main): Fix declaration of buf.
15693 * troff/input.c (do_name_test): New function.
15694 (token::next): Implement \A.
15695 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15696 (token::description, token::add_to_node_list, token::process):
15697 Handle TOKEN_ESCAPE.
15698 * troff/token.h: New token TOKEN_ESCAPE.
15700 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
15702 * pic/main.c (do_picture): Allow space before and after filename
15703 following `<'. Check that the filename is not empty.
15705 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
15707 * Version 1.01 released.
15709 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15711 * dvi/tmac.dvi: ftr HR to H.
15713 * macros/tmac.e: Round up computation of $r.
15715 * xditview/tmac.X: Don't give up completely in compatibility mode.
15716 Use \n(.s instead of \n[.s].
15718 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15719 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15720 Add u to factors inside \s[...]. Rename frac to dvi-frac.
15721 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15722 short names in the char definitions.
15724 * ps/tmac.ps: Don't give up completely in compatibility mode.
15725 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15726 quote in front of \n(.s. Add u to factors inside \s[...].
15728 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
15730 * tty/tmac.tty: Call the nroff request.
15732 * macros/tmac.e ((x, )x): Better definitions that work properly
15734 (@0, @1): Helper macros for (x.
15736 * macros/tmac.e ($s, hl): Use \l rather than \D.
15738 * tty/tmac.tty: Make it work better in compatibility mode.
15739 (pchar): Rename to tty-char.
15741 * macros/tmac.e (@E): New macro.
15742 (r, i, b, rb, bi): Use @E.
15744 * macros/tmac.e (@F): Don't use (;...) syntax.
15746 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
15747 it was modified for groff.
15749 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15751 * macros/tmac.e (<., .>): Removed.
15752 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15754 * macros/tmac.e: Remove check that groff is being used.
15756 * macros/tmac.e (@C): Change families only if using groff; turn
15757 compatibility mode off while changing familes. Save compatibility
15758 mode before changing families and restore it afterwards.
15760 * macros/tmac.e (@h): Remove test for offset + line length.
15762 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
15763 (lo, th, ac): Define to call @S instead of using als.
15765 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15766 the ratio of the vertical spacing to the point size in units
15767 expressed as a percentage. Use these instead of $10r and $10R,
15768 Delete $10r and $10R.
15770 * lib/font.c (font::load): In default computation of space_width,
15771 divide by sizescale. Use scale_round.
15773 * macros/tmac.an (TP): Don't call `nf'.
15774 (an-do-tag): Don't call `fi'.
15776 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
15778 * troff/input.c (process_input_stack): Handle the case where
15779 spaces at the beginning of an input line are followed by a
15782 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
15784 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15785 * groff.sh: Use pic -x with the dvi device.
15787 * dvi/devdvi/FontMakefile (H): Don't use -s.
15789 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15790 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15791 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15794 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
15796 * ps/psfig.diff: New file.
15797 * ps/tmac.psfig: New file.
15799 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
15801 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15802 (]-): Don't call ref*do-tl.
15804 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15806 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15807 (fn@do-FS): Rename to fn*do-FS.
15809 * troff/input.c (transparent_translate): New function.
15810 (process_input_stack): Apply transparent_translate before calling
15811 diversion::transparent_output(unsigned char).
15813 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
15815 * troff/input.c (do_define_macro): Define the macro before calling
15818 * xditview/Makefile: Add DEVICES variable. Change install target
15821 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
15823 * groff.c (run_commands): Handle the possibility that there are
15824 child processes other than those forked by us.
15826 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
15828 * lib/string.c (string::append): New function.
15829 * lib/stringclass.h: Declare it.
15831 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
15833 * eqn/main.c (main): New option -N which sets
15834 no_newline_in_delim_flag.
15835 (do_file): If no_newline_in_delim_flag is set don't allow newlines
15837 * groff.c (main): Pass -N on to eqn.
15838 (help, synopsis): Mention -N.
15839 * groff.sh: Implement -N.
15841 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
15843 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15844 (]-): Call ref*do-tl if ref*need-tl is non-zero.
15845 (XP): Allow as initializer.
15847 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
15849 * troff/env.c (environment::wrap_up_field): If field_spaces are
15850 non-zero and we have a current_tab, subtract padding from
15851 tab_distance. If this makes tab_distance <= 0, use the next tab
15852 stop instead. If there isn't any next tab or it's a left tab,
15853 wrap up the current tab.
15854 (environment::start_field): Initialize tab_precedes_field.
15855 (environment::wrap_up_tab): If there's a current field, update
15856 pre_field_width, field_distance and tab_precedes_field.
15857 * troff/env.h (environment::tab_precedes_field): New member.
15859 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
15861 * ps/ps.c (ps_printer::do_file): New function.
15862 (ps_printer::special): Bind to `file' special.
15863 (ps_printer::do_exec): Set ndefined_styles to 0.
15865 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
15867 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15868 Avoid stripping first character from the start of unrecognized
15869 escapes. Use lex_error instead of error to report errors.
15870 * eqn/lex.c (get_token): Rework handling of escapes.
15871 (lex_error): Move declaration into...
15874 * xditview/xditview.c (main): Make -page option work.
15876 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15878 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
15880 * macros/tmac.s (B2): Correct size of box.
15882 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
15884 * macros/tmac.s (B2): Postpone drawing the box until in the
15885 top-level diversion.
15887 * tty/tmac.tty: Add font translations for C, CR, CW.
15889 * groff.c (synopsis, help): Document -i.
15890 * groff.sh: Implement -i.
15892 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15893 Simplify the construction of SN.
15895 * troff/number.c (parse_term): Give `|' a higher precedence.
15896 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15899 * macros/tmac.s (B2): Use par@finish instead of par@reset.
15901 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
15903 * lib/string.c (string::move): New function.
15904 * lib/stringclass.h: Declare it.
15906 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
15908 * troff/env.c (distribute_space): Add optional argument
15910 (environment::wrap_up_field): Call distribute_space with
15911 `force_forward' argument of 1.
15913 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
15915 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15916 Inline it. Move reallocation into...
15917 (string::grow1): New function.
15918 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15919 dependencies to include library header files.
15920 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15922 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
15924 * macros/tmac.s (@NH): Use the same number registers than -ms does
15925 for the heading level counters. Use the same string that -ms does
15926 for the number for this heading.
15928 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
15930 * lib/new.c (operator new): Cast result of malloc to char *.
15932 * troff/input.c (spring_trap, lookup_request): Add assert that nm
15935 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
15937 * groff.c (main): Support -i.
15939 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
15941 * pic/pic.h: Include <osfcn.h>.
15943 * ps/ps.c: Add declaration of mktemp.
15945 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15946 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15947 argument as union wait *.
15948 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15949 argument to union wait *.
15951 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
15953 * tty/tmac.tty: Add definition of \(co.
15955 * pic/object.c (make_arc): Only increase radius when radius
15956 strictly less than d.
15957 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15960 * troff/env.c (environment::environment(symbol),
15961 environment::environment(const environment *)): Initialize
15964 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
15966 * tbl/main.c (main): Add exit(0).
15968 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15970 * pic/main.c (main):
15971 * eqn/main.c (main):
15972 * tbl/main.c (main):
15973 * etc/soelim.c (main):
15974 * driver/printer.c (printer::~printer):
15975 * troff/node.c (real_output_file::~real_output_file,
15976 real_output_file::flush): Check for errors on stdout.
15978 * most files: Add 1991 to copyright notice.
15980 * macros/tmac.s: Don't test \n(.x and \n(.y.
15982 * troff/input.c (token::next): Rename `escape_char' label to
15983 `handle_escape_char' and `normal_char' label to
15984 `handle_normal_char'.
15986 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
15988 * groff.c (main, synopsis, help): Support -a option.
15989 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
15990 to trflags while parsing options.
15992 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
15994 * troff/number.c (parse_term): With `m', `M' and `n' scale
15995 indicators, convert scale factor to hunits before scaling.
15997 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
15999 * lib/font.c (scale_round): Better test for overflow when n is
16002 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16004 * tbl/main.c (process_format): Add second argument of type
16005 options*. Change callers. Allow opt->tab_char as well as '\t'
16006 between format items.
16008 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16010 * macros/tmac.an (PD): With no arguments, make sure register PD is
16012 (TH): Call PD with no argument, instead of setting register PD
16015 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16017 * Version 1.00 released.
16019 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16021 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16023 * dvi/devdvi/DESC: Mount CW instead of CR.
16025 * dvi/tmac.dvi: Add definition of \(tm.
16027 * dvi/devdvi/texsy.map: Add lh, and rh.
16028 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16029 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16031 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16032 * dvi/devdvi/Makefile: Install H.
16033 * dvi/devdvi/H: New file.
16035 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16037 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16040 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16042 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16044 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16046 * macros/tmac.s (@EN): Handle the case where the equation is empty
16047 but the label is not.
16049 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16051 * troff/groff.h: New warning category WARN_SPACE.
16052 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16053 WARN_SPACE to warning_table.
16054 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16055 is longer than two characters and is not defined, but the first
16056 two characters do make a defined name.
16058 * PROBLEMS: New file.
16060 * CHANGES: New file.
16061 * README-0.6, README-1.00: Deleted.
16063 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16064 * xditview/devX75/Makefile: Make devX75-12.
16065 * xditview/devX100/Makefile: Make devX100-12.
16067 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16068 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16070 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16072 * README-0.7: Rename to README-1.00.
16074 * macros/tmac.pic: New file.
16075 * macros/Makefile (install.nobin): Install tmac.pic.
16077 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16079 * troff/env.c (hyphen_word): Correct the test for whether the
16080 token is a hyphen. Reset npos to 0.
16082 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16084 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16086 * macros/tmac.s (ds*common-end): Call par*reset.
16088 (par@reset-indent): Deleted.
16090 * macros/tmac.s (@IP): Divert the label.
16092 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16094 * xditview/draw.c (setGC): Use a line width of .1m rather than
16095 .04m by default; round rather than truncate value.
16097 * tbl/table.c (class empty_entry): New class.
16098 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16099 (table::add_entry): Represent empty entries by objects of type
16101 (table_entry::line_type): Return -1.
16102 (table::determine_row_type): Ignore entries with line_type 0.
16103 Treat type -1 as non-lines.
16105 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16107 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16108 macros/tmac.s: Rename \(-d to \(Sd.
16110 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16112 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16113 * xditview/libXdvi/DviChar.c: Likewise.
16114 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16116 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16118 * troff/div.c (top_level_diversion::begin_page): Call
16119 init_output() if the_output is 0.
16121 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16123 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16125 (get_copy): Turn \E into ESCAPE_E.
16126 (token::process, asciify): Handle ESCAPE_E.
16128 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16130 (DS): Implement `.DS R'.
16132 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16134 * macros/tmac.s (FS): New macro.
16136 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16138 * macros/tmac.s (cov*tl-init): Remove after first execution
16139 instead of aliasing to @nop. Call top of page macro explicitly
16140 instead of setting trap; call @init first. Set pg@top as top of
16142 (cov*auto-init): Deleted. Set cov*tl-init instead of
16143 cov*auto-init as top of page trap.
16144 (TL, LP): Do a break instead of calling cov*tl-init.
16145 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16146 @FE; in this case also give a warning and always start another
16147 page. No need to set pg@top here.
16148 (cov*tl-init): Rename to cov*first-page-init.
16150 * macros/tmac.s (RP): Do `.pn 0'.
16151 (cov*tl-init): With RP format don't do `.pn 0'.
16153 * macros/tmac.s (pg@cs-top): Set no space mode.
16155 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16156 (cov*ab-init): Alias TL, AU and AI to these.
16158 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16160 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16161 (@EN): Do nothing unless \n[dl] is > 0.
16163 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16165 * pic/object.c (ellipse_object::radius): New function.
16167 * VERSION: Change version to 0.7.
16169 * tbl/table.c (block_entry::do_divert): Declare return type as
16171 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16173 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16175 * troff/column.c: New file.
16176 * troff/Makefile: Corresponding changes.
16178 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16181 * troff/div.c (top_level_diversion::space): If the space causes
16182 the first-page transition and springs a trap, truncate the space
16185 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16187 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16190 * pic/troff.c (troff_output::line_thickness,
16191 troff_output::set_fill): Do a horizontal motion to compensate for
16192 the width of the \D escape sequence.
16194 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16196 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16199 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16202 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16203 Supply empty definition.
16204 (text_entry::simple_print, simple_text_entry::simple_print):
16205 Delete declarations.
16206 (table::add_entry): Represent empty entries by objects of type
16209 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16211 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16213 * tbl/table.c (left_text_entry::add_tab): New function.
16215 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16216 initialize like LP.
16218 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16220 * troff/env.c (environment::start_field): Give an error message if
16221 there is no next tab.
16223 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16225 * troff/env.c (hyphenate): Skip initial elements with zero
16228 * macros/tmac.s (par@init): Keep VS in points rather than units.
16230 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16232 * pic/main.c (main): Implement `-c' option.
16233 * pic/output.h: Declare make_tpic_output().
16234 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16236 (tpic_output): New class.
16237 (tpic_output::tpic_output, tpic_output::set_pen_size,
16238 tpic_output::command, make_tpic_output): New functions.
16240 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16242 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16243 if they're not already defined.
16244 * tbl/table.c (init_output): Don't test \n(.g.
16246 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16247 `d', `r' and `c' conditions even in compatibility mode.
16249 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16251 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16254 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16256 * troff/env.h (environment::prev_line_interrupted): New member.
16257 (environment::get_prev_line_interrupted): New function.
16258 * troff/env.c (environment::newline): Set prev_line_interrupted.
16259 (environment::environment(const environment *),
16260 environment::environment(symbol)): Initialize
16261 prev_line_interrupted.
16262 * troff/input.c (process_input_stack): Don't give special
16263 treatment to space and newline at the beginning of the line if the
16264 previous line was interrupted.
16266 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16268 * eqn/eqn.y: Disallow PRIME by itself.
16269 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16271 (def_table): Remove definition of '. Define prime to be `.
16273 * eqn/eqn.y: Split off part of rule `script' into a new rule
16276 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16278 * macros/tmac.s ({, }): New string aliases.
16280 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16282 * README-0.7: New file.
16284 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16286 * macros/tmac.s: New file.
16287 * man/groff_ms.man: New file.
16288 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16289 * Makefile.bd: Similarily.
16290 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16291 definition of TMAC_S.
16292 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16293 * macros/TODO: New file.
16295 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16297 * troff/env.c (right_justify): New function.
16298 (init_env_requests): Bind this to request "rj".
16299 (center_lines): Set right_justify_lines to 0. If we get a bad
16300 integer, center 1 line.
16301 (environment::environment(symbol), environment::environment(const
16302 environment *)): Initialize right_justify_lines.
16303 (environment::get_right_justify_lines): New function.
16304 (init_env_requests): Bind this to number_register ".rj".
16306 * troff/env.c (environment::choose_breakpoint): Implement
16307 hyphenation_margin and hyphenation_space.
16308 (environment::get_hyphenation_space,
16309 environment::get_hyphenation_margin): New functions.
16310 (init_env_requests): Bind these to .hys and .hym.
16311 (hyphenation_space_request, hyphenation_margin_request): New
16313 (init_env_requests): Bind these to hys and hym.
16314 (environment::environment(symbol), environment::environment(const
16315 environment *)): Initialize hyphenation_margin and
16317 * troff/env.h: Corresponding changes to class environment.
16319 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16321 * troff/div.c (blank_line): Always do a break.
16323 * eqn/box.c (do_text): Turn off escapes while appending text to
16326 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16328 * troff/input.c (while_break_request, while_continue_request): New
16330 (init_input_requests): Bind these to "break" and "continue".
16331 (while_depth, while_break_flag): New variables.
16332 (while_request): Update while_depth. Break out of loop if
16333 while_break_flag is set.
16335 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16337 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16340 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16342 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16344 * stringify: New file.
16345 * Makefile (groff.o): Use stringify.
16347 * xditview/tmac.X: Remove definition of \(rn.
16348 * xditview/libXdvi/DviChar.c: Remove radicalex from
16351 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16353 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16354 (alphabetic_block_entry::alphabetic_block_entry,
16355 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16357 (block_entry::divert): Split off body into ...
16358 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16359 from the line length; also update the span width to dl+2n, and the
16360 alphabetic span width to dl.
16362 * driver/input.c (do_file): While reading argument to D command,
16363 when expanding buffer, multiply szp by sizeof(int) rather than 2
16364 in the argument to memcpy.
16366 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16367 width of alphabetic columns.
16369 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16371 * troff/node.c (lookup_family): Supply second argument to lookup.
16373 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16374 search, return immediately if v is 0.
16376 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16377 (troff_output::start_picture): Set this reg.
16378 (troff_output::end_picture): Remove this reg
16379 * eqn/box.c (box::extra_space): Don't produce `\x's if
16380 EQN_NO_EXTRA_SPACE_REG is defined.
16382 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16383 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16386 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16388 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16391 * troff/div.c (top_level_diversion::top_level_diversion):
16392 Initialize page_number to 0.
16394 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16396 * groff/troff (environment::environment(const environment *)):
16397 Initialize name to e->name, rather than "anonymous".
16399 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16401 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16402 requested_page. Split middle part into ...
16403 (FindPage): New function.
16404 (SetValues): If we don't yet know the last page, and the requested
16405 page is greater than the current page, call FindPage.
16406 Update the font_map_string before doing this.
16408 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16409 Translate \(lh and \(rh into left and right double arrows.
16411 * troff/node.c (class hyphen_inhibitor_node): New class.
16412 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16413 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16414 hyphen_inhibitor_node::type,
16415 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16416 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16417 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16420 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16422 * troff/node.h (dummy_node::get_hyphenation_type,
16423 transparent_dummy_node::get_hyphenation_type): Declare them.
16424 * troff/node.c: (dummy_node::get_hyphenation_type,
16425 transparent_dummy_node::get_hyphenation_type): New functions.
16427 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16429 * xditview/libXdvi/draw.c: If M_PI not defined after including
16430 math.h, then define it.
16432 * xditview/Makefile: Add definition of AR. Pass it to the submake
16434 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16436 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16438 * troff/dictionary.h (object_dictionary::alias): Declare return
16440 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16441 if the old name was defined.
16442 * troff/input.c (alias_macro): Give a warning if the old name was
16444 * troff/reg.c (alias_reg): Likewise.
16446 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16448 * troff/input.c (token::next): Delete implementation of \R.
16450 * macros/Makefile: Strip comments from tmac.e while installing it.
16452 * troff/input.c: New variable `nroff_mode'.
16453 (troff_request, nroff_request): New functions.
16454 (init_input_requests): Bind `troff' and `nroff' to troff_request
16456 (do_if_request): Compute results of t and n conditions from
16459 * text/text.c (split_text): Fix typo in >=.
16461 * eqn/lex.c: Add definition of `==' to def_table.
16463 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16465 * pic/tex.c (tex_output::start_picture): Change the definitions of
16466 \graph and \graphtemp so that they work properly with Plain TeX.
16468 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16469 argument to `ar' is not less than the first.
16471 * pic/pic.y: Allow a comma between elements of the variable list
16472 in the argument to `reset'.
16474 * pic/object.c (arc_object::arc_object): Fix computation of
16477 * eqn/main.c (main): Add exit(0).
16479 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16481 * troff/div.c (begin_page): Test no_space_mode after doing the
16482 break, but still push the page ejector cookie before doing the
16483 break. Also set the next page number after doing the break.
16485 * xditview/xditview.c (NewFile): Don't set the title and icon name
16486 if this is the first file and its name is `-'.
16487 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16488 the X75 and X100 devices.
16489 (main): If a device has the XT_OPTION flag set and there's exactly
16490 one file argument, pass the driver -xrm and -title options to set
16491 the icon name and window title to the name of the file.
16493 * troff/env.c (environment_switch): If there was an argument but
16494 it wasn't a valid number or name, then pop an environment but
16495 don't give an error message on underflow.
16497 * troff/number.c (start_number): Correct spelling in error message.
16499 * troff/input.c (token::delimiter): Don't print an error message
16502 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16503 ParseDrawFunction if dw->display_enable is true.
16505 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16507 * pic/pic.y: Parse text positioning like normal attributes, so as
16508 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16509 positioning attribute.
16511 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16513 * tbl/main.c (process_data): When in state START while reading a
16514 text block, don't change to state MIDDLE if c is a newline.
16516 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16518 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16519 so as to avoid shadowing parameter.
16521 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16523 * tbl/table.c (trim_space): Deleted.
16524 (table::add_entry): Don't call trim_space.
16526 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16528 * VERSION: Change version to 0.6.
16530 * troff/number.c (parse_expr): Make == work.
16532 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16534 * man/grog.man: New file.
16535 * man/Makefile: Add grog.n to MAN1PAGES.
16536 * etc/grog.sh: New file.
16537 * etc/Makefile: Install grog.sh as grog.
16539 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16541 * troff/input.c (token::next): Implement \E.
16543 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16545 * xditview/tmac.X: Change font translations to match tmac.ps.
16547 * troff/input.c (non_empty_name_warning): Don't give a warning if
16548 `\{' terminates the name.
16550 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16552 * ps/devps/symbol.diff: New file.
16553 * ps/devps/FontMakefile: Mention symbol.diff.
16555 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16557 * troff/node.c (font_position): Use get_long_name to read the
16560 * troff/env.c (environment_switch): If we get a number that's < 0
16561 or >= NENVIRONMENTS, treat it like a name.
16562 Change NENVIRONMENTS to 10.
16564 * troff/groff.h: Remove definition of FONTS_MAX.
16565 * troff/node.h (class font_family): Make map a pointer instead of
16566 an array. Add a map_size member. Make it a class. Make nm const
16567 and public. Make invalidate_fontno a friend.
16568 * troff/node.c: Define font_table_size. Make font_info a pointer
16569 rather than an array.
16570 (class troff_output_file): Allocate font_position dynamically. Add
16571 nfont_positions member.
16572 (troff_output_file::set_font): Grow font_position if necessary.
16573 (troff_output_file::~troff_output_file): Delete font_position.
16574 (troff_output_file::troff_output_file): Allocate font_position.
16575 (grow_font_table): New function.
16576 (troff_output_file::really_begin_page,
16577 troff_output_file:really_copy_page): Use nfont_positions rather
16579 (mount_font_no_translate, mount_style): Call grow_font_table if
16581 (font_family::font_family): Allocate map.
16582 (font_family::make_definite): Grow map if necessary. Use
16583 font_table_size instead of FONTS_MAX.
16584 (font_family::~font_family): New function.
16585 (invalidate_fontno): Use font_family::map_size.
16586 (get_fontno, env_space_width, env_half_narrow_space_width,
16587 env_narrow_space_width, symbol_fotno, is_good_fontno,
16588 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16590 (next_available_font_position): Never return 0.
16592 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16594 * ps/tmac.ps: Add font translations for compatibility with dpost.
16596 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16598 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16599 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16600 Move definitions baseline_sep, shift_down, column_sep,
16601 matrix_side_sep into...
16602 * eqn/box.c: Add them to param_table.
16603 * eqn/pbox.h: Add declarations to pbox.h.
16605 * troff/input.c (set_string): Cast value to unsigned char *.
16607 * troff/token.h (process_input_stack): Declare it static before
16608 declaring it a friend.
16610 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16612 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16614 * dvi/devdvi/EX: Regenerate.
16616 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16619 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16621 * eqn/lex.c: In defaults_table, make definition of `dot' call
16622 `dot_def'. Don't explicitly make it roman. Similarily for other
16625 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16627 (for_input::get, for_input::peek): Use this.
16628 (do_for): Add by_is_multiplicative argument.
16629 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16630 Change semantic value of optional_by to be a double plus a flag
16631 saying whethet the by clause is multiplicative.
16633 * eqn/lex.c (get_delimited_text): Remember location of start of
16634 definition. Improve error handling when EOF is encountered.
16636 * lib/font.h: Rename handle_x_command to
16637 handle_unknown_font_command.
16638 * lib/font.c (font::load): Call handle_unknown_font_command for
16639 any unknown command in the font description file. Don't call
16640 handle_x_command. Include the name of the command in the argv.
16641 Improve message for unknown command after kernpairs or charset
16643 * ps/ps.c (ps_font::handle_x_command): Rename to
16644 handle_unknown_font_command. Remove message about `x download'
16645 command. Give error message for wrong number of arguments.
16646 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16647 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16648 handle_unknown_font_command. Give an error message for wrong
16649 number of arguments. Rename design_size to designsize.
16650 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16651 checksum', `designsize' instead of `design_size'.
16653 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16655 * eqn/*.[chy]: Change underaccent to uaccent.
16657 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
16658 give it the same precedence as ACCENT.
16659 * eqn/other.c (make_underaccent_box): New function.
16660 * eqn/box.h: Declare it.
16661 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16664 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
16666 * pic/pic.y (reset_all): New function. Called in rule for RESET.
16667 (parse_init): Call reset_all.
16668 (define_variable): When defining scale reset only those
16669 pre-defined variables that are scaled.
16670 (defaults_table): Add `scale' as non-scaled value.
16672 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16673 together with the text; allow any number of positioning words;
16674 allow center as a positioning word.
16676 * pic/object.c (output::compute_scale): Get picture maximum height
16677 and width from variables called maxpswid and maxpsht.
16678 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16680 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
16682 * pic/object.c (object_spec::make_text): Multiply textht by number
16685 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16687 (do_sprintf): New function.
16688 (pic.gperf): Add sprintf token.
16689 (text, sprintf): New rules.
16691 * pic/pic.y: `rand()' with no arguments returns a random number
16692 in the range [0,1).
16694 * pic/pic.y: Allow a bare expression to be an attribute: change
16695 precedences to support this. Change optional_ordinal rule to
16696 optional_ordinal_last to avoid reduce/reduce conflict.
16697 * pic/object.c (object_spec::object_spec): Initialize direction.
16699 * pic/pic.y: Implement ^ operator meaning exponentiation.
16701 * troff/node.h: Add default argument to mount_font.
16702 * troff/node.c (font_position): Read an optional third argument
16703 giving the external_name.
16704 (mount_font): Add optional argument giving the external_name.
16705 (mount_font_not_translate): Have additional argument giving
16706 external name. Use this name to load the font. Pass both names
16707 to font_info::font_info.
16708 (font_info::font_info): Have additional argument giving
16710 (class tfont): New member external_name.
16711 (font_info::get_tfont): Use external name to construct tfont_spec.
16713 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
16715 * eqn/lex.c (init_table): Add argument giving device. Define
16716 name of device to be "1".
16717 (do_ifdef): Counts as true if the argument has been defined with
16719 * eqn/main.c (main): Call init_table with device argument. Make
16720 device local to main.
16721 * eqn/eqn.h: Change declaration of init_table. Remove declaration
16724 * pic/lex.c (get_delimited): Allow text to be delimited by
16725 matching {}s. Don't recognize ending delimiter within a string.
16727 * troff/input.c (get_delim_name): New function.
16728 (token::next): Implement \C.
16730 * lib/font.c (font::load): Grok ---. Add an alias for each
16731 character based on its code.
16732 (font::get_code_width): Deleted.
16733 * lib/font.h (class font): Declare font::number_to_index().
16734 Remove declaration of font::get_code_width.
16735 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16736 to indices of named characters.
16737 (font::number_to_index): New function.
16738 * troff/input.c (font::number_to_index): New function.
16739 (get_charinfo_by_number, charinfo::get_number,
16740 charinfo::set_number): New functions.
16741 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16742 (token::process, token::description, token::get_char,
16743 token::add_to_node_list, token::operator==): Handle
16744 TOKEN_NUMBERED_CHAR.
16745 * troff/charinfo.h: Declare get_charinfo_by_number,
16746 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
16748 (charinfo::numbered): New function.
16749 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16750 * troff/env.h (class environment): Remove declaration of ...
16751 * troff/env.c (environment::make_numbered_char_node): Deleted.
16752 * troff/node.c (make_numbered_node): Deleted.
16753 (class numbered_glyph_node): Remove.
16754 (troff_output_file::put_char_width, troff_output_file::put_char):
16755 Handle numbered chars.
16756 (troff_output_file::numbered_char): Removed.
16757 (tfont::get_code_width): Removed.
16758 (make_glyph_node): Don't search special fonts for numbered
16760 * troff/node.h: Remove declaration of make_numbered_node.
16761 * driver/input.c (do_file): Handle N command.
16762 * driver/printer.h: Add declaration of ...
16763 * driver/printer.c (printer::set_numbered_char): New function.
16764 * dvi/tfmtodit.c (main): Generate unnamed entries.
16765 * ps/devps/afmtodit: Likewise.
16766 * xditview/xtotroff.c (MapFont): Likewise.
16767 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16769 * tbl/main.c (process_format): If multiple widths are specified
16770 for a column but all the widths are the same, don't give an error
16773 * tbl/table.c (table::do_row): If the current row is all lines and
16774 the stuff doesn't contains a line, mark the top of the row after
16775 printing stuff before the row. If the current row is not all
16776 lines and the stuff doesn't contain a line, don't unnecessarily
16777 mark the top of the row before printing the stuff.
16779 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
16781 * troff/groff.h: Remove MAX_PATH.
16782 * troff/input.c (open_file): Dynamically allocate space for the
16784 (open_mac_file, process_macro_file): Corresponding changes.
16786 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
16788 * troff/node.h (class output_file): Make copy_file pure. Add
16789 vspace method ifdef COLUMN. Add is_printing method.
16790 * troff/node.c: Add class printing_reg. Add class
16791 real_output_file. Derive other output_file classes from
16792 real_output_file; in these classes rename begin_page to
16793 really_begin_page, print_line to really_print_line, copy_file to
16794 really_copy_file, transparent_char to really_transparent_char.
16795 Move output_file::flush to real_output_file. Add printing member
16796 to class output_file.
16797 * troff/div.h: Remove printing member from top_level_diversion.
16798 Add vspace member function to class diversion ifdef COLUMN. Add
16799 some declarations ifdef COLUMN.
16800 * troff/div.c (top_level_diversion::copy_file,
16801 top_level_diversion::transparent_output,
16802 top_level_diversion::output): Don't test printing member before
16804 * troff/input.c: Handle initial variable_space_request ifdef
16806 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16807 but comment it out.
16809 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
16811 * troff/div.c (diversion::need): Make any space forced. If we
16812 sprung a trap, set truncated_space to minus the distance to the
16813 trap and set needed_space to the amount that was needed.
16814 (top_level_diversion::space): A forced space turns no_space_mode
16816 (class constant_vunits_reg): New class.
16817 (init_div_requests): Implement number registers .trunc and .ne
16818 using constant_vunits_reg.
16819 (class truncated_space_reg): Deleted.
16821 * troff/div.h: Don't have a no_space_mode member in diversion.
16822 Instead have it in top_level_diversion.
16823 * troff/div.c (diversion::diversion): Don't initialize
16825 (top_level_diversion::top_level_diversion): Initialize
16827 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16828 (macro_diversion::output): Don't clear no_space_mode.
16830 * troff/input.c (diverted_space_node::reread): Don't call
16831 environment::do_break. In fill mode, act like a blank line.
16832 (diverted_copy_file_node::reread): Don't call
16833 environment::do_break.
16835 * troff/div.c (blank_line): New function.
16836 * troff/div.h: Declare it.
16837 * troff/input.c (process_input_stack): Call it.
16839 * troff/div.c (truncated_space_reg::get_string): New function.
16840 (init_div_requests): Bind to .trunc.
16841 (space_request, top_level_diversion::space,
16842 top_level_diversion::output, macro_diversion::space,
16843 macro_diversion::output): Update truncated_space.
16844 (macro_diversion::output): Redo calculations when trap sprung.
16845 (macro_diversion::output, macro_diversion::space): No need for
16848 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16849 after truncating post line spacing.
16851 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
16853 * ps/devps/prologue (MF, SF): Make them work even if setfont is
16854 defined as a procedure rather than as an operator.
16856 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
16858 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16860 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
16862 * troff/div.c (top_level_diversion::output): Merge
16863 output_file::print_line and output_file::end_of_line member
16865 * troff/div.h (class output_file):
16866 * troff/node.c (troff_output_file::print_line,
16867 troff_output_file::end_of_line, output_file::end_of_line,
16868 ascii_output_file::print_line, suppress_output_file::print_line):
16869 Corresponding changes.
16871 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
16873 * troff/input.c (token::next): Don't give a warning for `\.'.
16875 * troff/env.c (environment::get_center_lines): New function.
16876 (init_env_requests): Bind number register .ce to it.
16877 * troff/env.h: Declare it.
16878 * tbl/table.c (table::init_output): Define reset macro to restore
16879 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
16881 (table::print): If center option not given, then imply center
16882 option if SAVED_CENTER_REG > 0.
16884 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
16886 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16887 Troff.ps from DOWNLOAD.
16889 * troff/Makefile: Change comment in DEFINES to avoid confusing
16892 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16893 code. Don't try to catch errors with stopped.
16894 (check_line_lengths): New function.
16895 * ps/devps/prologue (EXEC): Deleted.
16896 (EBEGIN, EEND): New procedures.
16898 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
16900 * troff/input.c: Include request.h before node.h.
16901 * troff/node.c: Likewise.
16902 * troff/env.c: Likewise.
16903 * troff/div.c: Likewise.
16904 * troff/node.h (class special_node): Store argument as a macro
16905 rather than a char *.
16906 * troff/node.c (special_node::special_node, special_node::copy):
16908 (special_node::~special_node): Deleted.
16909 (special_node::tprint): Deleted.
16910 (special_node::tprint_start, special_node::tprint_end,
16911 special_node::tprint_char): New functions.
16912 (troff_output_file::special): Deleted.
16913 (troff_output_file::start_special, troff_output_file::end_special,
16914 troff_output_file::special_char): New functions.
16915 * troff/input.c (special_node::tprint): New function.
16916 (do_special): Use macro not char *.
16917 (do_transparent_macro): Deleted.
16918 (token::next): Don't call do_transparent_macro.
16920 * troff/input.c (token::next): Add 'Y' case.
16921 (do_transparent_macro): New function.
16922 * troff/node.c (troff_output_file::special): Handle newlines with
16923 argument using new continuation convention.
16924 * driver/input.c (get_string): Cope with continuation convention.
16925 (do_file): Don't call skip_line after calling get_string(1).
16926 * ps/ps.c (ps_printer::special, ps_printer::do_import,
16927 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16929 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16932 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
16934 * troff/input.c (asciify): By default, illegal input characters
16935 should return empty string.
16937 * troff/input.c (copy_file): Handle first page transition like title.
16938 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16940 * troff/input.c (token::next): Improve error message for EOF after
16942 (input_char_description): New function.
16943 (get_char_for_escape_name): Use input_char_description.
16944 (token::next): Warn about unrecognized escape sequences.
16945 (warning_table): Add WARN_ESCAPE.
16946 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16949 * troff/token.h: Remove declaration of process_input_stack.
16951 * troff/input.c: Remove declaration of init_hyphen_requests.
16952 * troff/request.h: Correct spelling in declaration of same.
16954 * troff/input.c (token::next): Check whether escape_char is 0.
16956 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
16958 * groff.c (main, usage, help): Implement -P and -L options.
16959 * groff.sh: Likewise.
16961 * troff/input.c (token::next): Use some gotos to avoid code
16964 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16965 Avoid calling symbol::symbol if name empty.
16967 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
16969 * troff/input.c (init_input_requests): Make \n(.x return the major
16970 version number and \n(.y return the minor version number.
16971 * troff/Makefile: Construct file majorminor.c defining
16972 major_version and minor_version automatically from ../VERSION.
16974 * troff/node.c (class glyph_node): Make operator new and operator
16976 (class ligature_node): Similarily.
16978 * troff/input.c (operator==(const macro &, const macro &)): New
16980 (non_interpreted_node::same): Use this.
16981 (string_iterator::string_iterator): Make macro& argument const.
16983 * troff/input.c (input_iterator::get): New function. Don't make
16984 asciify_macro or class non_interpreted_node friends of class
16986 (non_interpreted_node::interpret): Use input_iterator::get.
16987 (asciify_macro): Likewise.
16989 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16990 ~non_interpreted_node): Deleted.
16991 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16994 * troff/symbol.h: Make all symbol member functions const.
16996 * lib/strtol.c: New file.
16997 * lib/Makefile: Add strtol.c.
16998 * Makefile: Define STRTOL as strtol.o to include strtol in
17001 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17003 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17005 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17007 * troff/input.c (do_special): Use input_level.
17009 * troff/token.h (TOKEN_BACKSPACE): New token.
17010 (token::backspace): New function.
17011 * troff/input.c (token::description, token::next, token::process):
17012 Grok TOKEN_BACKSPACE.
17013 (do_special): Turn TOKEN_BACKSPACE back into \b.
17015 * troff/token.h (token::leader): New function.
17016 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17018 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17020 * troff/input.c (do_special): Use token::description in error
17023 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17025 * troff/input.c (decode_args): Combine quoted and
17026 quote_input_level variables. Make it a for (;;) loop.
17028 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17030 * troff/input.c (read_long_escape_name): The test for whether to
17031 expand buffer was off by 1.
17032 (read_string): Similarily.
17034 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17036 * troff/input.c: Use `const int' rather than `static const int'.
17038 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17039 (macro_diversion::copy_file): New function.
17040 * troff/node.h: New class diverted_copy_file_node.
17041 * troff/node.c: Implement it.
17042 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17043 first page transition by pushing a diverted_copy_file_node.
17044 * troff/input.c (token::next, process_input_stack): Don't handle
17047 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17049 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17050 whether space widths need adjusting.
17052 * troff/charinfo.h: Generalize translated_to_space to
17053 special_translation so as to allow translation to \&.
17054 * troff/input.c (translate): Allow translation to \&.
17055 (charinfo::*): Corresponding changes.
17056 * troff/node.c (make_node, node::add_char): Corresponding changes.
17057 * troff/node.h (dummy_node::dummy_node): Allow optional first
17060 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17061 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17063 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17064 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17065 (token::process): Grok that.
17066 * troff/input.c (copy_file): Handle first page transition like
17067 title by pushing a COPY_FILE_REQUEST cookie.
17068 (token::next, process_input_stack): Grok that.
17069 * troff/node.h (output_file::copy_file): Add x and y arguments.
17071 * troff/div.c (top_level_diversion::copy_file): Supply them.
17072 * troff/node.c (troff_output_file::copy_file): Add x and y
17073 arguments; moveto specified position. Invalidate font_position
17074 array after copying file.
17075 (output_file::copy_file): New function.
17076 (suppressed_output_file::copy_file, ascii_output::copy_file):
17078 * troff/input.c (transparent_file): New function.
17079 (init_input_requests): Bind to "trf".
17080 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17081 (process_input_stack): Likewise.
17083 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17085 * troff/node.c (init_node_requests): New number registers .kern
17086 pointing to global_kern_mode, and .lg pointing to
17087 global_ligature_mode.
17089 * troff/node.c (ligature): Don't change it if we get a bad
17092 * troff/input.c (do_define_string): Don't strip tabs.
17094 * troff/input.c (asciify_macro): Make the string_iterator auto.
17096 * troff/node.c (init_font_requests): Rename to...
17097 (init_node_requests):
17098 * troff/node.h: Change declaration.
17099 * troff/input.c (main): Change call.
17101 * troff/input.c (node::reread, diverted_space_node::reread): New
17103 (process_input_stack): Call reread rather than
17104 get_diverted_space_node.
17105 * troff/node.c (node::get_diverted_space_node,
17106 diverted_space_node::get_diverted_space_node): Removed.
17107 * troff/node.h: Declare reread methods instead of
17108 get_diverted_space_node methods. Make `n' member private.
17109 * troff/input.c: (token::diverted_space): Removed.
17110 * troff/token.h: Removed declaration.
17113 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17115 * eqn/script.c (script_box::compute_metrics): Don't let
17116 SUP_RAISE_FORMAT become negative.
17118 * tbl/table.c (table::do_row): Entries that don't end in the
17119 this row shouldn't make the row non-blank.
17121 * tbl/table.c (table::make_columns_equal): Only set the width of
17122 columns which are marked as equal.
17124 * tbl/main.c (process_data): Before issuing excess data error,
17125 if last character was a newline unget it; then get it again after
17126 the error. Also include the contents of the entry in the message.
17128 * groff.c: New file.
17129 * Makefile: Build groff from groff.c. Make it possible to use
17130 either groff.sh or groff.c as groff.
17131 * Makefile.bd: Similarily.
17133 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17135 * groff.sh: Don't delay expansion of $@ in assignment to files.
17136 Remove occurrences of \".
17138 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17140 * all Makefiles: Simplify and rearrange.
17142 * Makefile: Handle fmod like malloc.
17143 * lib/Makefile: Similarily.
17144 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17146 * Makefile: Rename OPTIMISE to OPTIMIZE.
17148 * groff.sh: Remove assignment to PATH.
17149 * Makefile: Remove SHPATH variable.
17150 * Makefile.bd: Similarily.
17152 * groff.sh: Add -V option to print the pipeline instead of
17155 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17157 * lib/font.c: Split off file searching into ...
17158 * lib/fontfile.c: New file.
17160 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17162 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17164 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17165 Also change misleading comment.
17166 (table::do_vspan): Change similarily misleading comment.
17167 * tbl/main.c (process_data): A format row with an explicit `s'
17168 uses up a data line, even if all the other columns are `_' or `='.
17170 * troff/input.c (token::description): Fix description of
17171 TOKEN_DUMMY and TOKEN_EMPTY.
17173 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17175 * groff.sh: Fix description of -Z in help message.
17177 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17179 * pic/object.c (object_spec::make_object): Allow negative and zero
17181 * pic/pic.y: Give linethick default value of -1.0.
17182 * pic/troff.c (troff_output::troff_output): Initialize
17183 last_line_thickness to BAD_THICKNESS.
17184 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17185 (troff_output::line_thickness): Canonicalize negative thicknesses
17186 to RELATIVE_THICKNESS.
17187 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17188 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17190 (tex_output::start_picture): Set pen_size to -2.0.
17192 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17193 0, then use 0 linewidth.
17194 (ps_printer::ps_printer): Initialize line_thickness to -1.
17196 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17198 * ps/devps/symbolchars: Remove `or'.
17199 * ps/tmac.ps: Implement \(or with .char.
17201 * ps/devps/symbolchars: Move most characters into textmap.
17202 * ps/devps/textmap: Add names for troff bracket characters. Remove
17205 * ps/devps/TSymbol.ps: Removed.
17206 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17207 * ps/tmac.ps: Do with .char what TSymbol did.
17208 * ps/devps/download: Remove TSymbol.
17210 * ps/devps/T: Removed.
17211 * ps/devps/Troff.ps: Removed.
17212 * ps/devps/Troff.afm: Removed.
17213 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17214 * ps/devps/download: Remove Troff.
17215 * ps/devps/FontMakefile: Remove T target.
17216 * ps/devps/DESC-A4: Remove T from font list.
17217 * ps/devps/DESC-letter: Likewise.
17219 * troff/input.c (macro_to_node): Rename to ...
17220 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17221 character's definition while processing it.
17222 * troff/node.c (node::add_char, make_node): Change calls to
17223 macro_to_node accordingly.
17225 * troff/input.c (token::next): Translate \_ to \(ul.
17227 * tty/devascii/R.proto: Add `|'.
17228 * tty/devlatin1/R.proto: Likewise.
17230 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17232 * man: Put the version number in all the man pages.
17234 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17236 * Makefile.bd: New file.
17237 * README.bd: New file.
17239 * VERSION: New file.
17240 * lib/version.c: Removed.
17241 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17244 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17245 environment variable.
17247 * all Makefiles: Split install target into install.bin for
17248 binaries, and install.nobin for everything else.
17249 * Makefile: Add bindist target.
17251 * man/afmtodit.man: New file.
17252 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17253 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17255 * ps/Makefile: Pass BINDIR to make install in devps.
17257 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17258 the space character.
17260 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17262 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17264 * ps/ps.c: Redo font downloading.
17265 * ps/devps/download: New file.
17266 * ps/devps/Makefile: Add download to DEVICEFILES.
17267 * ps/devps/afmtodit: Remove -d option.
17268 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17269 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17270 * ps/devps/zapfdr.ps: Likewise.
17271 * ps/devps/TSymbol.ps: Likewise.
17273 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17275 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17277 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17279 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17280 then strip the first line if it starts with %.
17281 * Makefile: Add a comment about this.
17283 * man/tfmtodit.man: New file.
17284 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17285 * dvi/Makefile: Install tfmtodit in BINDIR.
17287 * dvi/tfmtodit.c (usage): Mention -v option.
17289 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17291 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17292 * troff/node.c (troff_output_file::transparent_char): Don't call
17295 * eqn: Add check_tabs method to most box classes.
17296 * eqn/box.c (box::top_level): Call check_tabs.
17298 * eqn/script.c (script_box::output): Use \Z.
17299 * eqn/limit.c (limit_box::output): Use \Z.
17301 * eqn/box.c (box::top_level): Use itoa.
17303 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17305 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17306 * dvi/devdvi/Makefile: Don't make links to CW.
17308 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17310 * xditview/tmac.X: Likewise.
17312 * troff/node.c: Add font translation feature.
17313 (get_font_translation): New function.
17314 (symbol_fontno): Translate the font name.
17315 (mount_font_no_translate): Rename to mount_font to this.
17316 (mount_font): New function.
17317 (font_family::make_definite): Call mount_font_no_translate instead
17319 (mount_style): Translate the font name.
17320 (font_translate): New function.
17321 (init_font_requests): Bind "ftr" to font_translate.
17323 * ps/devps/prologue (SN): New procedure that rounds a position to
17324 the nearest (pixel + (.25,.25)).
17325 (DL): Use SN to round endpoints.
17327 * lib/version.c: Changed version to 0.5.
17329 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17331 * Makefile: Move definition of PAGE to the very beginning, so that
17332 people are less likely to miss it.
17334 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17336 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17338 * troff/env.c (environment::choose_breakpoint): Make `can't find
17339 breakpoint' error a warning of type WARN_BREAK. Change message to
17340 `can't break line'.
17341 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17343 * troff/input.c: Add WARN_BREAK to warning_table. Include
17344 WARN_BREAK in DEFAULT_WARNING_MASK.
17346 * tty/tmac.tty: Add definition of \(+-.
17348 * groff.sh: Remove `--' option to set command.
17350 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17352 * ps/devps/eqnchar: Better definition of cdot using md.
17353 * dvi/devdvi/eqnchar: Likewise.
17354 * xditview/devX100/eqnchar: Likewise.
17355 * xditview/devX75/eqnchar: Likewise.
17356 * eqn/lex.c: Add definition of cdot.
17358 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17360 * troff/input.c (get_optional_char): New function.
17361 * troff/input.c (set_page_character): Use get_optional_char(),
17362 rather than has_arg() and tok.get_char(1).
17363 * troff/env.c (tab_character, leader_character, hyphen_char,
17364 field_characters): Likewise.
17365 (margin_character): Likewise. Also always delete the
17366 margin_character_node.
17368 * troff/input.c (token::get_char): Use token::description.
17370 * troff/input.c (has_arg): Don't skip over tab and \}.
17371 * troff/number.c (start_number): Give a warning if the number
17372 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17374 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17376 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17378 (get_name, get_long_name): Use these. Rename `warn' argument to
17381 * troff/node.c (get_fontno): Test that the symbol is not null.
17383 * troff/input.c (token::description): New function.
17384 * troff/number.c (parse_term): Use token::description in `numeric
17385 expression expected' message.
17386 * troff/groff.h: Add WARN_MISSING.
17387 * troff/number.c (start_number): New function.
17388 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17389 get_incr_number): Use start_number().
17390 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17392 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17393 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17395 * troff/input.c (token::get_char): Use WARN_MISSING.
17396 * troff/input.c (token::delimiter): Use token::description.
17397 * troff/env.c (environment_switch): Back out Aug 3 change.
17398 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17400 * troff/token.h (token::tab): New function.
17401 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17402 * troff/reg.c (alter_format): Likewise.
17403 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17405 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17407 * troff (most files): Redo warnings. Divide warnings into various
17408 categories; warning() has an additional first argument indicating
17409 the category it falls into.
17410 * troff/input.c (main): -w now takes an argument. New option -W.
17411 (enable_warning, disable_warning): New functions.
17413 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17414 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17416 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17418 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17419 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17420 * xditview/devX75/eqnchar: Likewise.
17421 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17423 * eqn/other.c: When bar or over applies to a single character
17424 don't produce an overline_box or an underline_box. Instead produce
17425 an accent_box or an underaccent_box, with the accent a line
17426 whose width is accent_width. New classes underaccent_box,
17427 overline_char_box and underline_char_box.
17428 * eqn/box.h: Move overline_box, underline_box, accent_box class
17429 declarations into eqn/other.c. Add declarations of
17430 make_underline_box, make_overline_box, make_accent_box.
17431 * eqn/eqn.y: Call make_overline_box, make_underline_box
17432 make_accent_box instead of constructors.
17433 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17435 * eqn/other.c: Add accent_box::~accent_box.
17436 * eqn/box.h: Declare it.
17438 * groff.sh: With -Tps, use eqn -D.
17440 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17442 (underline_box::output): Similarily.
17443 (accent_box::output): Use \Z.
17445 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17448 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17450 * troff/div.c (top_level_diversion::transparent_output(unsigned
17451 char)): Use asciify.
17452 * troff/input.c (asciify): Don't make it static.
17453 * troff/token.h (asciify): Declare it.
17455 * troff/input.c (get_name, get_long_name, token::get_char,
17456 token::delimiter): Add an extra default argument which says
17457 whether a warning should be printed.
17458 * troff: Pass a non-zero argument to one of these rather than
17459 printing a warning directly.
17461 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17463 * troff: Consistently use symbol::is_null.
17465 * troff/dictionary.h: Move some inline functions into
17468 * troff/request.h: Move inline functions into input.c.
17469 (request_or_macro::invoke): Make it pure.
17471 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17472 * troff/input.c (init_input_requests): Use class constant_int_reg.
17473 (class compatible_reg): Deleted.
17474 * troff/div.c (init_div_requests): Use class constant_int_reg.
17475 (class last_post_line_extra_space_reg): Deleted.
17477 * troff/env.c (tab_character): Don't change the tab character if
17478 we get an invalid argument.
17479 (hyphen_char): Similarily.
17481 * troff/reg.c (alter_format): Check that nm is not null.
17483 * Makefile, groff.sh: Make it possible to customize the commands
17484 used for printing PostScript and dvi files. Also make it possible
17485 to customize the path used by groff.sh.
17487 * eqn/eqn.y: Make `left' right associative.
17489 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17491 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17494 * pic/pic.h: Removed definition of INT_MAX.
17496 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17499 * troff/input.c (token::next): Handle \R like \n.
17501 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17503 * ps/tmac.pc (PSPIC): Simplify.
17505 * troff/env.c (tab_stops::to_string):
17506 * pic/pic.y (object_type_name):
17507 * pic/troff.c (simple_output::line):
17508 * pic/tex.c (tex_output::spline):
17509 * pic/object.c (object_spec::make_object):
17510 * tbl/main.c (process_data): Add cases to switch statements to
17511 avoid cfront warnings. (Some of these are spurious, since the
17512 switch already has a default case.)
17514 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17515 `ps-'. Don't test systat; instead check number of arguments to
17518 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17520 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17522 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17523 Unlink the file as soon as we have opened it, so that we don't
17524 have to bother with signal handlers.
17525 (handler): Deleted.
17526 (fatal_error_exit): Deleted.
17527 (main): Don't call signal.
17529 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17531 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17533 * pic/pic.y: If there is a label, or an nth construction before
17534 the first `.' in the argument to `with', ignore it and generate a
17536 * pic/lex.c (lex_warning): New function.
17538 * tbl/table.c (table::init_output): In section keep and release
17539 macro, use 0 indent when diverting and the correct indent when
17542 * troff/input.c (interpolate_number_format): Do not interpolate
17543 anything if the number register is not defined.
17545 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17547 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17549 * ps/devps/prologue (PICTURE): Set components of graphics state to
17550 their default values.
17552 * ps/devps/text.enc: Add trademark
17553 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17554 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17555 * ps/devps/symbolchars: Add names for summation and product.
17557 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17558 suchthat. Add pp. Add upper-case letters.
17560 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17561 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17564 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17565 rA (right angle bracket) to ra. Introduce names for double-headed
17566 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17567 * ps/devps/textmap: Likewise for ps device.
17568 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17569 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17570 * tty/devascii/R.proto: Likewise.
17571 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17573 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17575 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17577 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17580 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17582 * troff/div.c (when_request): Use symbol::is_null rather than
17583 has_arg to determine whether we have an argument.
17584 (change_trap): Remove the trap if we get an invalid number. Give
17585 an error if we don't get at least the macro name.
17586 (diversion_trap): Remove trap if we get an invalid name or number.
17588 * troff/env.c (environment_switch): Pop if we get an invalid
17589 symbol or numeric expression.
17591 * troff/input.c (do_define_macro): If EOF is encoutered while
17592 defining the macro, do tok.next() before returning.
17594 * troff/token.h (has_arg): Move definition from here, to ...
17595 * troff/input.c (has_arg): ... here
17597 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17598 * troff/input.c (shift): Likewise.
17600 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17603 * pic/troff.c (troff_output::start_picture): Comment out calls to
17606 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17607 interpret_lf_args succeeds.
17609 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17610 \\. This avoids problems with \$N.
17612 * groff.sh: Pass -C to preprocessors.
17614 * lib/lf.c (interpret_lf_args): Be more flexible.
17616 * tbl/main.c (main): Add -C option.
17617 (table_input::get): Do not recognize TE if followed by character
17618 other than a space or newline unless -C option given.
17619 (process_input_file): Likewise for lf, TS.
17620 (process_data): Likewise for lf in text blocks.
17622 * eqn/main.c (main): Add -C option.
17623 (do_file): Don't recognize EQ, EN or lf if followed by character
17624 other than space or newline unless -C option given.
17625 * eqn/lex.c (file_input::read_line): Similarily.
17626 * eqn/eqn.h: Declare compatible_flag.
17628 * etc/soelim.c (main): Add -C option.
17629 (interpret_lf_args): Use version in libgroff.
17632 * pic/main.c (main): Add -C option, which sets compatible_flag.
17633 (top_input::get), (top_input::peek): If -C option not given,
17634 do not recognize .PS/.PE/.PF/.lf if followed by a character
17635 other than space or newline.
17636 * pic/lex.c (file_input::read_line): Similarily.
17637 * pic/pic.h: Add declaration of compatible_flag.
17639 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17641 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17643 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17644 derived from node. New class space_char_hmotion_node.
17645 * troff/input.c (asciify_macro): New function.
17646 * troff/input.c (init_input_requests): New request `asciify' bound
17648 * macros/mm.diff: New file.
17649 * Makefile: In install.mm target use `patch' to apply
17652 * troff/input.c (macro::print_size): Just print the size in bytes.
17654 * troff/div.c (return_request): Correct the argument
17657 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
17659 * troff/node.h (class composite_node): Add sz member.
17660 * troff/node.c (composite_node::size): Return sz.
17661 * troff/input.c (macro_to_node): Use the initial size in the
17662 environment as the size of the composite_node.
17664 * troff/node.c (node::zero_width_tprint): Provide a reasonable
17667 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
17669 * troff/div.c (change_trap): If we get a bad number expression,
17672 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
17674 * lib/matherr.c (matherr): Define this only if math.h defines
17677 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
17679 * troff/div.c (macro_diversion::distance_to_next_trap): If there
17680 no diversion trap return vunits(INT_MAX - vresolution).
17682 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
17684 * troff/input.c (do_zero_width): New implementation that doesn't
17685 use a temporary environment. Use instead:
17686 (token::add_to_node_list): New function.
17687 * troff/env.c (environment::get_prev_char_height),
17688 (environment::get_prev_char_height),
17689 (environment::get_prev_char_skew): New functions.
17690 (environment::get_prev_char): New function.
17691 (environment::get_prev_char_width): Change to use get_prev_char.
17692 (init_env_request): Implement new registers .cht, .cdp, .csk.
17693 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17694 \Z being processed in a separate environment.
17696 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
17698 * tbl/table.c: Removed TABLE_BOTTOM_REG.
17700 * tbl/table.c (table::init_output): In the section release macro,
17701 give a warning message if the section won't fit on one page.
17703 * tbl/table.c (table::do_top): Emit table keep only if table is
17705 (table::do_bottom): Likewise for table release.
17706 (table::table), (table::add_vertical_rule): Remove reference to
17708 * tbl/table.h: Remove keep member.
17710 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17711 SECTION_RELEASE_MACRO, if there's not enough space before the next
17712 trap to output the diversion, call T# ourselves, set
17713 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17714 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
17715 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
17716 vertical position and return to it before turning traps on again.
17718 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
17720 * troff/node.c, troff/node.h: In classes derived from node,
17721 replace prev_char_width method by last_char_node method.
17722 * troff/env.c (environment::get_prev_char_width): Use
17723 node::last_char_node rather than node::get_prev_char_width.
17725 * Makefile: Added comment about -fno-inline on 68030-based
17728 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17729 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17730 expressions using sizeof to int.
17731 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17733 * macros/tmac.e (TS): Don't move @f back past the current
17736 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
17738 * ps/ps.c (main): Buffer stderr.
17739 * dvi/dvi.c (main): Likewise.
17740 * tty/tty.c (main): Likewise.
17742 * ps/ps.c (ps_printer::do_import): Improve error handling.
17744 * troff/input.c (abort_request): Use asciify.
17746 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17747 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17748 type of first argument int rather than char. This works around a
17749 bug on the 68030 based Apollo using g++ 1.37.1.
17751 * tbl/table.h (class table): Add `keep' member.
17752 * tbl/table.c (table::table): Initialize `keep'.
17753 (table::add_vertical_rule): Set `keep' to 1.
17754 (table::do_top): Only emit table keep macro is `keep' is non-zero.
17755 (table::do_bottom): Likewise for table release macro.
17756 (table::do_row): Emit section keep macro even if the row is 0.
17758 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
17760 * macros/tmac.e (@C): Preserve the font family across the change
17763 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
17765 * lib/font.c: Initialize font::hor and font::vert to 1.
17766 (font::load_desc): Check the values of font::hor and font::vert.
17768 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17769 be included in a C compilation.
17770 (iftoa): Use INT_DIGITS. Include lib.h.
17772 (as_string): Likewise.
17773 * tbl/table.c: Removed definition of INT_DIGITS.
17774 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17775 * troff/input.c (input_input_requests): Likewise.
17776 * ps/ps.c (make_encoding_name): Likewise.
17777 (ps_printer::set_style): Likewise.
17778 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17780 * tty/devascii/R.proto: Map fm onto '.
17781 * tty/devlatin1/R.proto: Likewise.
17783 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
17785 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17786 argument to \w is at a different input level.
17788 * tbl/table.c (table::init_output): Define a new macro
17789 REPEATED_VPT_MACRO, like vpt but if in a diversion also
17790 transparently outputs itself.
17791 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17793 (table::do_row): Likewise.
17795 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17796 TRANSPARENT_STRING_NAME.
17798 * tbl/table.c (table::init_output): In the table release macro
17799 print an error message and don't produce any output if after
17800 issuing the need request the table still will not fit. Also
17801 remove the diversion after bringing it back.
17803 * tbl/table.c (table::init_output): Define a new macro
17804 REPEATED_MARK_MACRO, like mk but if in a diversion also
17805 transparently outputs itself.
17806 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17807 is necessary because .TH might not call .T#.
17808 (table::do_top): Likewise TOP_REG.
17809 (table::define_bottom_macro): If TOP_REG is no longer valid, use
17810 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17811 table header might contain just the two top rules.
17813 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
17815 * troff/div.c: Implement new request `ptr' to print all traps.
17817 * troff/env.c (init_env_requests): Implement `.tabs' reg with
17818 init_string_env_reg.
17819 * troff/env.c (class tab_reg): Deleted.
17821 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
17823 * troff/div.c: New number register .pn returns the number of the
17824 next page as set by the pn request.
17826 * macros/tmac.an: Redid headers and footers. Number each manual
17827 entry starting from 1 unless \nC is > 0, like Sun. Added an
17828 optional 5th argument to .TH which specifies the manual name and
17829 appears in the center of the header. Understand the X, P and D
17830 registers like Sun.
17832 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
17834 * troff/env.c (init_env_requests): New number register `.lt' to
17835 return the title length.
17837 * troff/node.h (class transparent_dummy_node): New class.
17838 * troff/node.c (class transparent_dummy_node): Provide member
17840 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17843 * troff/input.c (token::next): New escape sequence \).
17844 * troff/input.c (get_copy): Recognize \) in copy mode.
17846 * troff/input.c (input_stack::clear): New function.
17847 * troff/input.c (exit_request): Use input_stack::clear.
17849 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17850 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17852 * troff/env.c: Move set_page_character to input.c. Move
17853 page_character to input.c also.
17854 * troff/env.c (title): Split off the reading of the parts of the
17855 title into read_title_parts.
17856 * troff/input.c (read_title_parts): New function. Check the
17857 input_level when testing whether a token matches the delimiter.
17859 * troff/input.c (exit_request): New function.
17860 * troff/input.c (init_input_requests): Bind ex request to
17861 exit_request rather than exit_groff.
17863 * troff/input.c (exit_groff): Call tok.next() before
17864 process_input_stack().
17866 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
17868 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17869 * troff/env.h: ditto.
17870 * troff/input.c: ditto.
17872 * troff/env.c (environment::is_empty): Test pending_lines.
17874 * troff/env.c (environment::have_pending_lines): Removed.
17876 * troff/input.c: Add request to flush pending lines from the
17879 * troff/env.c, troff/env.h: Add automatic widow control feature.
17881 * troff/input.c (exit_groff): Do process_input_stack() after
17882 do_break() but before setting exit_flag to 2.
17884 * troff/input.c: Remove FLUSH_PENDING_LINES and
17885 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17886 environment after END_TRAP token seen, but only if there aren't
17887 any more traps still unfinished.
17888 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17890 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
17892 * troff/env.c: Rename the `retain_size' member of class
17893 pending_output_line to `no_fill'.
17895 * troff/env.c (title): When the line is output, make the
17896 retain_size argument !fill.
17898 * troff/node.h: Add `hyphenated' member to struct breakpoint.
17899 * troff/node.c (space_node::get_breakpoints),
17900 (dbreak_node::get_breakpoints): Fill this in.
17901 * troff/env.c: Allow specification of maximum number of
17902 consecutive hyphenated lines.
17904 * troff/env.c (environment::is_empty): Add test for !current_tab.
17906 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
17908 * troff/env.c (environment::hyphenate_line): Don't completely give
17909 up if the word is not to be hyphenated; continue so that breaks
17910 can be made at break_char_node's.
17912 * lib/lib.h: Only define INT_MAX if it's not already defined;
17913 undef INT_MIN if it's already defined.
17915 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17917 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17918 This works around a bug in AT&T C++ 2.0 used with an ANSI C
17921 * macros/tmac.an (an-header): Set no-space mode.
17923 * macros/tmac.an (TH): Start a new page if necessary.
17925 * Started using ChangeLog at version 0.4.
17928 version-control: never