1 2004-12-15 Thomas Klausner <wiz@netbsd.org>
3 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
5 2004-12-15 Werner LEMBERG <wl@gnu.org>
7 Make `test-groff' work again -- previously, wrong paths have been
8 used. Additionally, it can now be called from anywhere.
10 * test-groff.in: Don't test for groff binary. This is no longer
11 necessary since the proper paths are determined by `configure'.
12 (EXEEXT): Removed. No longer used.
13 (srcdir, builddir): Use values provided by the configure script.
14 (XENVIRONMENT): Updated.
18 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
20 Make .tag and .taga work for all devices (but only grohtml actually
23 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
24 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
25 html_printer::handle_assertion): Don't use hard-coded string
27 (html_printer::lookahead_for_table): Reset `tbl' properly if
29 (html_printer::devtag): New function, handling `devtag'.
30 (html_printer::special): Don't handle `html-tag'.
32 * src/include/printer.h, src/libs/libdriver/printer.cpp
33 (printer::devtag): New virtual function.
35 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
38 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
39 src/roff/troff/node.cpp: s/html-tag/devtag/.
41 * src/roff/troff/input.cpp (tag, taga): Always call
44 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
45 macros instead of HTML-TAG*.
47 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
49 * tmac/www.tmac: Load devtag.tmac.
50 Replace HTML-TAG* macros with DEVTAG* macros.
51 (HTML, HTML-NS): Changed definitions.
53 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
55 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
57 2004-12-10 Werner LEMBERG <wl@gnu.org>
59 Import Mike's `gdiffmk' package.
61 * contrib/gdiffmk/*: New files.
62 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
65 2004-12-08 Werner LEMBERG <wl@gnu.org>
67 Import Keith's `pdfmark' package. Integration is very preliminary.
69 * contrib/pdfmark/*: New files.
70 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
73 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
75 Fix a bug with title handling in HTML.
77 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
78 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
80 (html_printer::handle_tag_within_title): New function.
81 (html_printer::do_title): Use it.
83 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
84 (cov*tl-au-print): Emit `.eo.tl' tag.
86 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
88 * man/groff_char.man: Minor imrovements.
90 2004-12-04 Werner LEMBERG <wl@gnu.org>
92 * src/preproc/eqn/eqn.man: Revised.
94 2004-11-25 Werner LEMBERG <wl@gnu.org>
96 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
100 Remove X_NOT_STDC_ENV conditional.
101 (Version_string, program_name): New global variables.
102 (groff_flag): Removed.
104 (usage): Take a stream as argument.
107 (main): Add `long_options' array for `--help' and `--version'.
108 Make `-g' a dummy option.
109 Handle `-v' and unknown options.
110 Remove unused `position' variable.
112 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
113 (XLIBS): Add LIBGROFF.
115 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
118 * src/devices/xditview/Dvi.c (default_font_map): Split into three
119 parts to avoid compiler warning.
120 (resources): Don't initialize with `default_font_map'.
121 (ClassInitialize): Initialize first element of `resources'.
123 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
126 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
127 src/utils/pfbtops/pfbtops.man: Revised, updated.
129 * configure.ac: Generate src/utils/xtotroff/Makefile.
130 * configure: Regenerated.
132 2004-11-24 Werner LEMBERG <wl@gnu.org>
134 First fixes to get produce HTML.
136 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
139 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
140 (HR, LI): Use `HTML</p>', not `HTML'.
142 * doc/webpage.ms: Minor updates.
144 2004-11-23 Larry Kollar <kollar@alltel.net>
146 Add option -S grohtml to determine the file split level.
148 * src/devices/grohtml/post-html.cpp (split_level): New global
150 (html_header::determine_header_level): Use split_level.
151 (main): Handle `-S' command line option.
154 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
156 * src/devices/grohtml/grohtml.man: Document it.
161 2004-11-23 Y T <doarhop@hotmail.com>
163 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
164 the volume and number refer entries.
166 2004-11-22 Werner LEMBERG <wl@gnu.org>
168 * src/devices/grohtml/html-table.cpp
169 (html_table::emit_table_header): Don't emit `cols' attribute which
170 doesn't exist in HTML 4.0 and is thus invalid.
172 * NEWS: More minor fixes and updates.
174 2004-11-18 Werner LEMBERG <wl@gnu.org>
176 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
177 (HTML</p>): Minor clean-up.
179 * tmac/groff_www.man: Updated.
181 * src/devices/grohtml/grohtml.man: Revised and updated.
185 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
187 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
189 (html_printer::do_links): Fix rules generation around automatic
192 * tmac/www.tmac (LK): Use HTML-TAG-NS.
194 No longer emit empty line for non-HTML devices.
196 2004-11-17 Werner LEMBERG <wl@gnu.org>
198 * doc/Makefile.in (prepare_examples, webpage.html): Handle
201 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
202 prepare_examples, webpage.html): Handle `groff.css'.
204 2004-11-15 Werner LEMBERG <wl@gnu.org>
206 * NEWS, README, doc/webpage.ms: Updated.
208 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
210 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
212 * src/include/printer.h (printer): Remove virtual function
214 Update all source files.
216 * src/devices/grohtml/post-html.cpp (html_printer): New member
217 function `round_width'.
219 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
221 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
222 column key letter suffix.
224 2004-10-14 Werner LEMBERG <wl@gnu.org>
226 * Makefile.in (check): Depend on `site.exp' and `docheck'.
227 (docheck): Run dejagnu's `runtest' if it exists.
228 (site.exp): Create dejagnu configuration file.
230 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
232 2004-10-13 Werner LEMBERG <wl@gnu.org>
234 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
235 src/devices/grohtml/post-html.cpp (make_val,
236 html_printer::handle_state_assertion): Fix compiler warnings.
238 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
239 (diversion::diversion): Fix order of initializers.
241 * src/roff/troff/div.h: Don't include `mtsm.h'.
243 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
244 (environment::environment): Fix order of initializers.
245 (environment::make_tag, environment::construct_format_state): Fix
248 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
249 (input_iterator::input_iterator, macro::macro): Fix order of
252 * src/roff/troff/mtsm.cpp: Include only necessary header files.
253 (state_set::add, state_set::val): Fix compiler warnings.
255 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
256 (bool_value_state, int_value_state, units_value_state,
257 string_value_state): Remove comma after last element which causes
258 an error with g++ 3.3.3.
260 * src/roff/troff/node.cpp: Include `stringclass.h'.
261 (hline_node::hline_node, vline_node::vline_node,
262 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
264 (zero_width_node::zero_width_node): Fix order of initializers.
266 * src/roff/troff/node.h: Don't include `mtsm.h'.
267 (hmotion_node): Fix compiler warnings.
269 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
271 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
273 * doc/groff.css: New file.
275 * doc/webpage.ms: Use `groff.css'.
278 * tmac/an-old.tmac (need_eo_h): New number register.
279 (TH): Emit `.eo.tl' tag after title.
280 (SH): Set `need_eo_h'.
281 (an-trap): Handle `need_eo_h'.
282 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
284 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
285 (TL): Always start diversion.
287 (@AI): Always call `par@reset'.
288 (@AB): Update code for -Thtml.
289 (cov*tl-au-print): Handle -Thtml.
290 (par@reset): Handle `need_eo_tl', `need_eo_h'.
293 (@SH): Set `need_eo_h' for -Thtml.
294 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
296 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
297 Set `need_eo_h' for -Thtml.
298 (@EQ, @EN): Don't handle -Thtml specially.
299 (par@load-init): Don't handle -Thtml specially.
301 * tmac/www.tmac (www:paraspace): New macro.
302 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
303 (HTML</p>, HTML-TAG-NEXT): New macros.
304 (HnE): Emit tag `.eo.h' instead of break.
305 (HR): s/HTML-NS/HTML/.
306 (www-end-nowhere): End diversion only if `www-html' not set.
308 (ULS, ULE): s|HTML|HTML</p>|.
309 (LI): Call `www:paraspace'.
312 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
314 * src/roff/troff/request.h (macro): Make `p' public.
315 New variable `is_a_diversion'.
316 New member function `is_diversion'.
319 * src/devices/grohtml/html.h (simple_output): New member function
322 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
323 computation of `total'.
324 (tabs::check_init): New function.
325 (html_table::emit_table_header): Emit style data.
326 (html_table::insert_column): Improved.
328 * src/devices/grohtml/html-table.h: Updated.
330 * src/devices/grohtml/html-text.cpp (html_text::html_text):
331 Initialize `start_space' with TRUE.
332 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
334 (html_text::flush_text): Set `start_space' flag.
335 (html_text::uses_indent, html_text::remove_para_space,
336 html_text::get_alignment): New functions.
337 (html_text::push_para): Updated.
338 (html_text::do_para): Check for empty argument.
339 Don't set `space_emitted'.
340 (html_text::do_space, html_text::emit_space): Updated.
342 * src/devices/grohtml/html-text.h (tag_definition): New variable
344 (html_text): New member function `uses_indent', `remove_para_space',
347 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
349 (simple_output:nl): Always emit `\n'.
351 * src/devices/grohtml/post-html.cpp: Include `string.h'.
352 (BASE_POINT_SIZE): Removed.
353 (base_point_size, head_info): New global variables.
354 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
356 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
358 (page::add_and_encode): Pass additional parameter for tag flag.
359 (assert_pos): New structure.
360 (assert_state): New class.
361 (html_printer): Remove `indentation', `prev_indent'.
362 Add variables `troff_indent', `device_indent', `temp_indent'.
363 Add variables `seen_indent', `next_indent', `seen_pageoffset',
364 `next_pageoffset', `seen_linelenght', `next_linelength',
365 `seen_center', `next_center', `seen_space', `seen_break', `as'.
366 Add member functions `do_check_center', `do_space', `do_head',
367 `get_troff_indent', `restore_troff_indent', `handle_assertion',
368 `handle_state_assertion', `do_end_para', `set_char_and_width'.
369 Change argument to `do_fill' to `char *'.
371 (html_printer::emit_raw): Call `shutdown_table'.
373 (html_printer::do_center): Simplified.
374 (html_printer::do_title): Improved.
375 (html_printer::write_header): Emit one more newline.
377 (html_printer::do_heading, html_printer::do_indent,
378 html_printer::do_eol, html_printer::do_tab_ts,
379 html_printer::do_tab, html_printer::do_tab0,
380 html_printer::calc_po_in, html_printer::next_horiz_pos,
381 html_printer::remove_courier_tabs,
382 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
384 (html_printer::do_linelength, html_printer::do_pageoffset,
385 html_printer::do_indentation, html_printer::do_tempindent,
386 html_printer::do_tab_te): Simplified.
387 (html_printer::do_pointsize): Check whether point size is really
388 associated a `.tl' tag.
389 (html_printer::do_break): Rewritten.
390 (html_printer::troff_tag): Improved.
391 (html_printer::flush_globs): Updated.
392 (html_printer::lookahead_for_tables): Handle `is_br'.
394 (html_printer::set_char): Check `sbuf_style.f'.
395 (html_printer::write_navigation): Use string comparison.
396 (html_printer::~html_printer): Emit `head_info'.
397 (html_printer::special): Rewritten.
398 (get_str, make_val): New functions.
399 (main): New option `s' to set the base point size.
401 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
403 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
405 * src/roff/troff/node.cpp: New extern `debug_state'.
406 Include `stringclass.h' and `mtsm.h'.
407 Implement new classes and class members from `node.h'.
408 (real_output_file): Make `fp' public.
409 (troff_output_file): New variables `cur_div_level' and `tag_list'.
411 (troff_output_file::really_print_line): Check whether we should push
412 the current troff state and use the state at the start of the
413 invocation of this diversion.
414 (troff_output_file::add_to_tag_list): New member function.
415 (node::add_char): Handle `glyph_comp_np'.
417 * src/roff/troff/node.h: Include `mtsm.h'.
418 (node): New variables `state', `push_state', `div_nest_level',
419 `is_special'. Update constructors, all descendants.
420 Pass additional argument to `add_char' member function.
421 New virtual member functions `is_tag', `debug_node',
422 `debug_node_list'. Update all descendants.
423 (tag_node): New class for handling tags.
424 (output_file): Add variable `state'.
426 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
428 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
429 providing a minimal troff state machine to emit meta tags for the
430 post-grohtml device driver.
432 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
435 2004-10-09 Werner LEMBERG <wl@gnu.org>
437 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
439 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
441 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
443 * src/roff/troff/div.h: Include `mtsm.h'.
444 (diversion): New variables `any_chars_added', `needs_push',
445 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
446 `saved_suppress_next_eol', `modified_tag'.
447 New virtual member function `is_diversion'. Update all descendants.
449 * src/roff/troff/div.cpp (diversion::diversion,
450 macro_diversion::macro_diversion): Updated.
451 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
453 (top_level_diversion::space): Handle `curenv->seen_space'.
454 (page_offset): Update tag handling.
455 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
457 * src/roff/troff/env.h (environment): Make `tabs' public.
458 Remove `ignore_next_eol', `emitted_node'.
459 Update `output_line', `output'.
460 New variables `seen_space', `seen_eol', `suppress_next_eol',
462 New member functions `construct_state', `make_tag',
463 `construct_format_state, `construct_new_line_state,
465 Remove `add_html_tag', `make_html_tag'.
467 * src/roff/troff/env.cpp: New externs `suppress_push',
468 `get_diversion_state', `global_diverted_space'.
469 (pending_output_line): New variable `was_centered'.
470 Update constructor and all callers.
471 (pending_output_line::output): Call `curenv->construct_format_state'.
472 (environment::environment, environment::copy): Updated.
473 (environment::output): Handle `was_centered'.
474 (environment::add_char): Handle construct and diversion state.
475 (environment::add_node): Handle construct state.
476 (environment::newline): Handle `was_centered'.
477 (environment::output_line): Updated.
478 (environment::possibly_break_line): Updated.
480 (environment::add_html_tag): Replaced with...
481 (environment::make_tag): New function.
482 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
483 (environment::dump_troff_state): New debugging function.
484 (environment::construct_state, environment::construct_format_state,
485 environment::construct_new_line_state): New functions.
486 (environment::do_break): Updated.
487 Handle `global_diverted_space'.
488 (environment::handle_tag): Update tag handling.
489 (point_size, fill, do_break_request): Don't call `add_html_tag'.
490 (no_fill): Don't call `add_html_tag'.
491 Set `suppress_next_eol'.
492 (center, right_justify, line_length, indent, temporary_indent,
496 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
497 (input_iterator): New variables `is_diversion', `diversion_state'.
499 (input_stack): New member functions `get_div_level',
500 `get_diversion_state', `check_end_diversion'.
501 New variables `div_level', `diversion_state'. Initialize them.
502 (suppress_push, global_diverted_space): New global variables.
503 (input_stack::finish_get, input_stack::finish_peek,
504 input_stack::remove_boundary, input_stack::end_file,
505 input_stack::clear, input_stack::pop_macro): Call
506 `check_end_diversion'.
507 (input_stack::push): Handle `div_level' and `diversion_state'.
508 (get_diversion_state): New function.
509 (diverted_space_node::reread): Handle `global_diverted_space'.
510 (macro::macro): Update constructors.
511 (macro::is_diversion): New function.
512 (macro::operator=): Set `is_a_diversion'.
513 (string_iterator): New member function `is_diversion'.
514 (string_iterator::string_iterator): Update constructors.
515 (string_iterator::fill): Set `div_nest_level'.
516 (macro_iterator): New member function `is_diversion'.
517 (do_if_request): Handle `suppress_push'.
518 (tag, taga): New functions.
519 (init_input_requests): Add `tag' and `taga' requests.
521 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
523 * src/include/font.h (font): New member function
524 `get_image_generator'.
525 New variables `unscaled_charwidths' and `image_generator'.
527 * src/libs/libgroff/font.cpp (font::get_width): Always return the
528 character's unscaled width if `font::unscaled_charwidths' is set.
529 (font::get_image_generator): New function.
530 (font::load_desc): Check the `unscaled_charwidths' and
531 `image_generator' keywords.
533 * src/libs/libgroff/fontfile.cpp: Initialize
534 `font::unscaled_charwidths' and `font::image_generator'.
536 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
538 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
540 * man/groff_font.man: Document `unscaled_charwidths' and
543 * src/preproc/html/pre-html.cpp: Include `device.h'.
544 (image_gen): New global variable.
545 (imageList::createPage): Use `image_gen'.
546 (main): Use `image_generator' keyword.
548 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
550 * tmac/html.tmac: Handle \[sqrtex].
552 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
554 * src/include/printer.h (printer): New virtual method `round_width'.
556 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
557 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
558 src/devices/grotty/tty.cpp (printer::round_width): New function
561 * src/devices/grohtml/post-html.cpp (printer::round_width): New
563 (html_printer::set_numbered_char): Use it.
565 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
567 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
569 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
571 * configure: Regenerated.
573 * Makefile.in (GHOSTSCRIPT): New variable.
574 (MDEFINES): Add GHOSTSCRIPT.
576 2004-10-03 Werner LEMBERG <wl@gnu.org>
578 * INSTALL.gen: Updated (taken from texinfo CVS).
580 2004-09-28 Werner LEMBERG <wl@gnu.org>
584 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
586 * tmac/groff_www.man: Revised and updated.
588 2004-09-26 Werner LEMBERG <wl@gnu.org>
590 Fix \$@ and \$* to handle any number of arguments.
592 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
595 * src/roff/troff/input.cpp (input_iterator::internal_level):
597 (input_stack): New member functions `increase_level' and
599 (input_stack::get_level): Don't use `internal_level'.
600 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
601 (end_quote_iterator): Completely removed.
602 (interpolate_arg): Build string for \$@ and \$* which is then
603 pushed onto the input stack.
605 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
607 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
610 2004-09-23 Werner LEMBERG <wl@gnu.org>
612 * tmac/an-old.tmac (ne): Using default scaling operator.
614 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
616 This change implements the following features:
619 New numeric register: Defines number of lines following LP, PP,
620 QP, IP or XP, which must be kept together, before any automatic
621 page break. If insufficient space remains on the current page, a
622 page break is forced before the new paragraph begins.
625 New numeric register: Sets number of lines of following paragraph
626 which must be kept with a heading, defined by NH or SH, before any
627 automatic page break. If insufficient space remains on the
628 current page, a page break is forced before the heading.
631 (Thanks to Joerg van den Hoff, for this idea).
633 New numeric register: Sets the first level of heading (set with
634 NH), which will keep the same point size as body text; e.g. if
635 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
636 point size specified by \n[PS], but .NH 2 and .NH 1 will have
637 progressively larger point sizes, determined by \n[PSINCR] (see
641 New numeric register: Sets the point size increment for each level
642 of heading, (set with NH), below the threshold level set by
643 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
644 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
645 and all other levels will remain at 10pt, (because \n[PS] = 10).
648 Existing macro now accepts a numeric argument, to make heading
649 size match that of NH with same argument value, when the
650 GROWPS/PSINCR feature is enabled.
653 New string, set by NH macro, replaces the existing (undocumented)
654 use of SN, to represent the assigned section number.
657 New string, set by NH macro, represents the assigned section
658 number, but omits the terminal period (periods at intermediate
659 levels are retained).
662 String set by NH macro, originally undocumented, now implemented
663 as an alias for SN-DOT (which reproduces original behaviour).
665 * tmac/s.tmac (PORPHANS): New register.
667 (HORPHANS, GROWPS, PSINCR): New registers.
668 (SH-NO-TAG, @SH): Use them.
671 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
673 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
674 of `Ds' and `De' macros.
676 2004-09-10 Werner LEMBERG <wl@gnu.org>
678 In tbl, handle \a as an interpreted leader character if in
681 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
682 LEADER_CHAR): New macros.
683 (compatible_flag): New declaration.
685 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
686 LEADER_3, and LEADER_4 to `state'.
687 (table_input::get): Handle `\a'.
689 * src/preproc/tbl/table.cpp (PREFIX): Removed.
690 (LEADER_REG): New macro.
691 (table::init_output): Define LEADER_REG string register if in
694 * src/preproc/tbl/tbl.man: Document it.
696 2004-08-18 Werner LEMBERG <wl@gnu.org>
698 * tmac/doc.tmac (An): Fix error message.
700 2004-08-06 Werner LEMBERG <wl@gnu.org>
702 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
703 file can't be opened. UNIX tbl has the same behaviour.
705 2004-08-05 Y T <doarhop@hotmail.com>
707 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
708 (DBRead): If in compatibility mode, take into account the text
709 when computing figure boundaries.
711 2004-08-05 Werner LEMBERG <wl@gnu.org>
713 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
714 from Tadziu Hoffmann.
716 2004-08-03 Werner LEMBERG <wl@gnu.org>
718 * doc/meref.me: Document `_M' register.
720 2004-08-03 Martin Husemann <martin@duskware.de>
722 Make hpftodit work correctly on big-endian systems.
724 * src/utils/hpftodit/hpftodit.cpp (File): New method
725 `get_uint32(char *)'.
726 (entry): New member `orig_value'.
727 (read_tags): Use new method.
728 (output_font_name, read_and_output_pcltypeface, dump_ascii):
731 2004-08-01 Werner LEMBERG <wl@gnu.org>
733 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
734 are already in X11's `macros.t' file.
736 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
738 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
740 (read_and_output_pcltypeface): Handle strings with length <= 4.
742 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
744 * tmac/s.tmac (pg@top): Don't save `PO' register.
745 (pg*end-col, pg*end-page): Directly use `PO' register.
747 2004-07-27 Werner LEMBERG <wl@gnu.org>
749 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
751 * src/preproc/refer/refer.cpp (output_references): Check for
753 * src/preproc/refer/refer.man: Improve documentation of
754 `bibliography' command.
756 2004-07-26 Werner LEMBERG <wl@gnu.org>
758 Add requests `fcolor' and `gcolor'.
760 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
762 (init_env_requests): Add `fcolor' and `gcolor'.
764 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
766 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
767 Document new requests.
769 2004-07-24 Werner LEMBERG <wl@gnu.org>
771 Add support for fractional point sizes in ms macros. A value for
772 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
773 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
775 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
776 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
778 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
780 2004-07-19 Werner LEMBERG <wl@gnu.org>
782 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
784 (do_for, for_input::get, for_input::peek): Handle negative `by'.
785 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
787 2004-07-08 Thomas Klausner <wiz@netbsd.org>
789 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
790 * tmac/groff_mdoc.man: Updated.
792 2004-07-05 Werner LEMBERG <wl@gnu.org>
794 * doc/groff.texinfo: Further improve documentation of `hcode'.
796 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
798 Improve appearance of arrows in pic.
800 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
802 Use two line segments for drawing non-filled arrow head.
803 (line_object::print, spline_object::print): Shorten line length to
804 avoid arrow sticking.
805 (arc_object::print): Take arrow direction into account.
807 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
809 * tmac/groff_www.man: Update documentation of .MPIMG.
811 2004-07-03 Werner LEMBERG <wl@gnu.org>
813 * tmac/an-old.tmac (RI): Always start with font `R'.
814 (RI, IR): Properly end with font `R'.
816 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
818 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
819 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
820 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
821 Don't pass more than six arguments to .R, .I, .B, etc., for
822 compatibility with traditional troff macros.
824 2004-07-02 Werner LEMBERG <wl@gnu.org>
826 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
827 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
829 (PUSH_COMP_MODE): New internal character constant.
832 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
833 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
834 (token::next, macro::append): Handle PUSH_COMP_MODE.
835 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
836 POP_GROFFCOMP after each of the decoded arguments to make them
837 independent from the compatibility mode status.
838 (comp_mode): Add `COMP_ENABLE'.
839 (do_define_string, do_define_macro): Handle COMP_ENABLE.
840 (define_string, append_string, define_macro, define_indirect_macro,
841 append_macro, append_indirect_macro): Handle `compatible_flag'.
842 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
844 * man/groff_diff.man, doc/groff.texinfo: Updated.
846 2004-07-01 Werner LEMBERG <wl@gnu.org>
848 * doc/groff.texinfo: Improve documentation of `hcode'.
849 Use @documentencoding and convert document to latin-1; to do that
850 make latin characters active and assign proper macros (within a
851 @tex...@end tex environment).
852 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
853 * doc/Makefile.sub (groff): Ditto.
855 2004-06-29 Werner LEMBERG <wl@gnu.org>
857 Implement two new conditional operators `F <name>' and `S <name>'
858 which check whether <name> is a valid font or style, respectively.
860 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
861 (text_file::text_file): Updated.
862 (text_file::error): Don't emit message if `silent' is set.
863 (font::load_font): Add optional third argument (which is directly
865 (font::load): Add optional second argument to check the header of
866 a font only, without emitting warning or error messages.
867 * src/include/font.h (font): Updated.
869 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
871 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
872 fourth argument to check a font without mounting.
873 (check_font, check_style): New functions.
874 * src/roff/troff/node.h: Updated.
876 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
879 2004-06-27 Werner LEMBERG <wl@gnu.org>
881 Implement new string-valued register `.sty' to return the current
884 * env.cpp (environment::get_style_name_string): New function.
885 (init_env_requests): Add `.sty' register.
886 * env.h (environment): Updated.
887 * node.cpp (font_info): Make `get_style_name' a friend.
888 (get_style_name): New function.
891 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
894 2004-06-15 Werner LEMBERG <wl@gnu.org>
896 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
899 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
901 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
902 and \n[mo] to avoid dependency on current date.
904 2004-06-08 Werner LEMBERG <wl@gnu.org>
906 * Makefile.sub (install_data): New target.
908 2004-06-04 Werner LEMBERG <wl@gnu.org>
910 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
912 2004-06-03 Werner LEMBERG <wl@gnu.org>
914 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
916 (install_data): Add $(srcdir).
918 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
921 2004-06-02 Werner LEMBERG <wl@gnu.org>
923 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
924 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
925 Add test for Xmu library.
926 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
927 GROFF_APPRESDIR_DEFAULT): New macros.
929 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
930 and GROFF_APPRESDIR_DEFAULT.
932 * configure: Regenerated.
934 * Makefile.in (appresdir): New variable.
935 (MDEFINES): Add appresdir.
937 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
939 (install_data, uninstall_sub): New targets to handle GXditview.ad.
941 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
942 `$(srcdir)/eign', not `eign'.
944 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
946 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
947 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
948 Protect (g)xditview with `\%' to avoid hyphenation.
949 Other minor formatting.
951 2004-06-01 Werner LEMBERG <wl@gnu.org>
953 Integrate gxditview into groff's standard directory hierarchy.
955 * src/xditview/*: Moved to ...
956 * src/devices/xditview/*: Here.
957 Moved DviChar.h and XFontName.h to src/include.
958 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
959 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
960 Moved xtotroff.c to new directory src/utils/xtotroff.
961 Provide proper Makefile.sub files (reusing the stuff from
963 DESC renamed to DESC.in.
964 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
965 Converted everything from K&R to ANSI C.
966 Decorated with const where appropriate.
967 Cast string constants with `String' and `char *' where appropriate.
968 Made it compile with C++ (used as a C compiler).
969 Removed other minor compiler warnings.
971 * src/devices/xditview/device.c: Include config.h, string.h, and
973 Don't declare `exit', `strtok', `strchr', and `getenv'.
976 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
979 * src/devices/xditview/xditview.c: Include config.h.
980 Include stdio.h earlier.
981 Protect declaration of `popen' and `pclose' with
982 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
983 Replace `caddr_t' with `XtPointer'.
984 (MakePromptFunc): New typedef.
985 (DoPrint): Use RETSIGTYPE.
986 (promptfunction): Change type to MakePromptFunc.
987 (MakePrompt): Use MakePromptFunc for third argument.
990 * src/devices/xditview/ad2c: Add casts to `String'.
992 * src/include/XFontName.h (XFontNameString): Don't use array
994 Add prototypes for `XParseFontName', `XFormatFontName',
995 `XCompareFontName', and `XCopyFontName'.
997 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1000 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1001 Don't declare `XParseFontName' and `XFormatFontName'.
1003 (main): Remove `optind' and `optarg'.
1005 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1006 (to select programs which need X).
1007 Make XDEVIDIRS depend on `FORCE'.
1008 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1010 (MDEFINES): Updated.
1011 (LIBDIRS): Use XLIBDIRS.
1012 (CPROGDIRS): Use XPROGDIRS.
1013 (DEVDIRS): Remove font directories for gxditview.
1014 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1015 (EXTRADIRS): Remove src/xditview.
1017 * Makefile.sub (DISCLEANFILES): Updated.
1019 * Makefile.comm (LIBXUTIL): New variable.
1020 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1021 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1023 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1025 * aclocal.m4 (GROFF_X11): New function.
1027 * configure.ac: Call GROFF_X11.
1028 Don't create src/xditview/Imakefile.
1029 Don't emit notice how to build gxditview.
1031 * configure: Regenerated.
1033 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1035 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1037 * Makefile.in (CPPFLAGS): Define.
1038 (MDEFINES): Add CPPFLAGS.
1040 2004-05-27 Werner LEMBERG <wl@gnu.org>
1042 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1044 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1046 Fix problems with `friend name injections'.
1048 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1049 make_script_box), src/roff/troff/div.h (end_diversions),
1050 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1053 2004-05-25 Bernd Warken <bwarken@mayn.de>
1055 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1057 2004-05-25 Werner LEMBERG <wl@gnu.org>
1059 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1060 src/libs/libgroff/color.cpp: Include lib.h.
1062 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1064 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1065 through Forte 6u1, and for how to get GNU make on Solaris.
1067 2004-05-24 Werner LEMBERG <wl@gnu.org>
1069 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1072 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1074 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1077 2005-05-14 Werner LEMBERG <wl@gnu.org>
1079 * REVISION: Set to 2.
1081 * aclocal.m4 (GROFF_STDINT_H): Removed.
1082 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1084 * configure.ac: Updated.
1085 * configure, src/include/config.hin: Regenerated.
1087 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1088 inttypes.h conditionally.
1090 2003-05-13 Werner LEMBERG <wl@gnu.org>
1092 Version 1.19.1 released
1093 =======================
1095 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1097 * src/preproc/refer/label.y (same_author_last_name,
1098 same_author_name): Handle empty sort keys.
1100 2004-05-10 Werner LEMBERG <wl@gnu.org>
1102 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1105 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1106 doc-str-Lb-librt): Reset font.
1107 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1108 Provide `doc-str-Lb' to reset font.
1109 * tmac/groff_mdoc.man: Updated.
1111 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1113 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1114 snprintf versions which don't conform to ANSI C 99 (this is,
1115 counting the string's trailing null byte in the return value).
1117 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1119 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1120 that all implementations of sprintf handle null pointers correctly.
1122 2004-05-04 Werner LEMBERG <wl@gnu.org>
1124 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1125 Document `.U' register.
1127 * src/roff/troff/env.cpp (environment::mark_last_line)
1128 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1130 2004-05-04 Larry Kollar <kollar@alltel.net>
1132 New read-only register `.U'; it returns 1 in safer mode and 0
1135 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1138 2004-05-03 Werner LEMBERG <wl@gnu.org>
1140 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1142 2004-04-17 Werner LEMBERG <wl@gnu.org>
1144 * src/include/font.h (font): Use `int' for ch_index.
1145 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1146 font::compact): Updated.
1148 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1151 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1152 (hyphen_word): Fix compiler warnings.
1153 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1156 (get_delim_number, get_line_arg): Change second argument type to
1158 (macro_header::copy, token::next, do_define_string,
1159 do_define_character, substring_request, asciify_macro,
1160 unformat_macro, read_size, non_interpreted_node::interpret,
1161 while_request, main: Fix compiler warnings.
1162 (read_color_draw_node): Initialize `col'.
1164 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1165 `start_col' and `end_col' of type `int'.
1166 (vertical_rule): Make `col' of type `int'.
1168 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1171 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1173 (format_serial): Use them to remove dependency on ASCII.
1175 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1177 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1180 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1182 (glyph): Change type of `hpos' to `int'.
1184 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1185 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1187 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1189 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1191 2004-04-16 Werner LEMBERG <wl@gnu.org>
1193 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1194 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1195 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1196 `double' instead of `float' everywhere.
1197 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1199 (main): Add return value.
1200 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1202 Update all user functions.
1204 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1205 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1206 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1207 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1208 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1209 src/roff/troff/input.cpp, src/roff/troff/request.h,
1210 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1213 * src/utils/indxbib/signal.c: Include stdlib.h.
1215 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1217 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1218 before the first page.
1220 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1222 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1223 (doc-operating-system-*): Updated.
1224 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1225 (doc-str-Lb-*): Add more library names.
1227 2004-04-10 Art Haas <ahaas@airmail.net>
1229 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1232 2004-04-09 Art Haas <ahaas@airmail.net>
1234 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1236 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1238 * arch/misc/shdeps.sh: Generate better comment for sed script.
1240 2004-04-08 Art Haas <ahaas@airmail.net>
1242 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1243 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1244 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1245 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1246 (polyfill), src/preproc/grn/main.cpp (polyfill),
1247 src/preproc/refer/command.cpp (command_table),
1248 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1249 gcc 3.5 doesn't like).
1251 2004-04-08 Werner LEMBERG <wl@gnu.org>
1253 Removing many compiler warnings. groff should now compile with
1254 a C++ compiler used for C files also. [Simple variable renamings
1255 to avoid shadowing aren't logged in detail.]
1257 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1258 (draw_dvi_printer::draw) ['c']: Enclose in block.
1260 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1261 (page::add_line): Fix typos.
1262 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1264 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1265 Some local variable renamings.
1266 * src/devices/grolbp/lbp.h: Some local variable renamings.
1268 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1271 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1272 Remove redundant local variable declaration.
1273 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1274 Don't use `caddr_t' but `void *'.
1275 Enclose functions with `extern "C"' for C++.
1277 * src/libs/libdriver/input.cpp (remember_filename,
1278 remember_source_filename): Use cast for string constant.
1280 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1281 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1282 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1283 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1285 Enclose functions with `extern "C"' for C++.
1286 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1287 (needs_quoting): Return `int'.
1288 (quote_arg): Add proper casts to malloc and realloc.
1289 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1290 various MS Windows environments.
1291 (spawnvp_wrapper): Add proper cast to malloc.
1293 * src/preproc/eqn/box.h: Remove redundant declarations of
1294 `make_script_box', `make_mark_box' and `make_lineup_box'.
1295 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1296 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1299 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1300 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1301 (dx, dy): Renamed functions to...
1302 (deltax, deltay): This.
1303 * src/preproc/grn/main.cpp: Some local variable renamings.
1304 (deffont): Add `const'.
1305 (initpic, conv): Use cast for string constant.
1307 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1308 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1309 (char_buffer::run_output_filter): Second argument is unused.
1310 * src/preproc/html/pushback.cpp: Some local variable renamings.
1312 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1313 * src/preproc/pic/object.cpp: Some local variable renamings.
1315 * src/preproc/refer/label.y (lookup_label): Remove redundant
1316 declaration of local variable.
1318 * src/preproc/soelim.cpp: Remove redundant declaration of
1319 `interpret_lf_args'.
1321 * src/preproc/tbl/main.cpp: Some local variable renamings.
1323 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1324 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1325 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1326 Don't use C++-style comments.
1328 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1329 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1330 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1332 * src/roff/troff/div.h: Remove redundant declaration of
1334 * src/roff/troff/troff.h: Remove redundant declaration of
1336 * src/roff/troff/input.cpp: Remove redundant declaration of
1337 `handle_first_page_transition' and `process_input_stack'.
1339 * src/utils/hpftodit.cpp: Some local variable renamings.
1341 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1343 Don't define RETSIGTYPE.
1344 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1346 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1347 (error): Use `const' in argument.
1348 (main): Remove redundant declaration of `optind'.
1349 Move declaration of `Version_string' to top-level.
1351 * PROBLEMS: Document difficulties compiling signal.c if a C++
1352 compiler is used for C.
1354 2004-04-07 Werner LEMBERG <wl@gnu.org>
1356 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1358 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1360 Make scripts like nroff.sh and neqn.sh portable across various
1361 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1362 non-POSIX path separators. The idea is to extend those scripts to
1363 decide at run-time (of the script) which path separator to use.
1365 * arch/misc/Makefile.sub: New file.
1366 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1367 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1368 a proper definition of the variable `GROFF_RUNTIME'.
1370 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1371 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1372 (PROGDEPDIRS): New variable.
1374 (PROGDIRS): Add PROGDEPDIRS.
1376 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1377 Don't substitute @SEP@ and @BINDIR@.
1378 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1379 (PATH): Use GROFF_RUNTIME.
1381 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1382 Don't substitute @SEP@ and @BINDIR@.
1383 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1384 (PATH): Use GROFF_RUNTIME.
1386 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1388 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1389 Cygwin which doesn't handle stderr correctly.
1391 2004-03-08 Werner LEMBERG <wl@gnu.org>
1393 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1394 against empty argument. Problem reported by <cgd@broadcom.com>.
1396 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1398 * Makefile.in (SEP): Replaced with...
1399 (RT_SEP, SH_SEP): Separators for the target platform's native path
1400 separator and the build environment, respectively.
1401 (fontpath, tmacpath): Use RT_SEP.
1402 (MDEFINES): Updated.
1404 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1405 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1406 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1407 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1409 2004-03-05 Werner LEMBERG <wl@gnu.org>
1411 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1412 reduce alignment problems with newer printers which use built-in
1413 TrueType fonts (instead of the older Intellifonts). The ideal
1414 solution is to provide a second set of groff metric files, but this
1415 is extremely time-consuming to produce, given that HP's metric
1416 files are very rudimentary.
1418 2004-03-01 Werner LEMBERG <wl@gnu.org>
1420 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1421 s/operand/argument/ in error message.
1423 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1425 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1428 2004-03-01 Antti Kantee <pooka@netbsd.org>
1430 * tmac/s.tmac (XE): Fix error message.
1432 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1434 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1437 * src/roff/groff/pipeline.c: Declare strcasecmp.
1438 (run_pipeline) [_WIN32]: Use function name variants which don't
1440 Fix stream handling.
1442 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1444 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1445 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1446 for platforms which use the native Win32 runtime libraries.
1447 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1449 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1450 QUOTE_ARG_REALLOC_ERROR): Fix string.
1452 * src/preproc/html/pre-html.cpp: Remove declaration of
1454 Don't use __MINGW32__.
1455 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1456 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1457 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1458 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1459 calls to `set_redirection' and `WAIT'.
1460 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1461 Fix calls to `set_redirection' and `save_and_redirect'.
1462 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1463 to `set_redirection' and `save_and_redirect'.
1464 (usage): Fix message.
1465 (makeTempFiles, main): Use `DEBUG_FILE'.
1467 2004-02-21 Werner LEMBERG <wl@gnu.org>
1469 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1471 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1473 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1474 quoting for MSVC's spawn* and exec* functions.
1475 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1476 spawnvp with proper quoting for MSVC.
1478 * src/libs/libgroff/assert.cpp (program_name),
1479 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1480 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1482 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1484 * src/include/error.h (program_name): Declare as `extern "C"'.
1485 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1487 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1489 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1491 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1493 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1495 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1497 (sbasename) [__MSDOS__ || ...]: New function.
1498 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1500 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1501 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1503 Use STDOUT_FILENO instead of hardcoded file handle.
1504 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1506 2004-02-19 Werner LEMBERG <wl@gnu.org>
1508 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1509 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1511 2004-02-18 Werner LEMBERG <wl@gnu.org>
1513 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1514 new font and mapping files.
1516 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1517 Keith Marshall <keith.d.marshall@ntlworld.com>
1519 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1520 an input pipe. This is needed for the MSVC compiler to make troff's
1523 * src/roff/troff/div.cpp: Include nonposix.h.
1524 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1526 2004-02-17 Werner LEMBERG <wl@gnu.org>
1528 * font/devlj4/generate/special.awk: New script.
1529 * font/devlj4/generate/Makefile (S): Use special.awk.
1530 * font/devlj4/*: Regenerated, including the following new files:
1531 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1532 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1533 * NEWS: Document new lj4 fonts and revised hpftodit.
1535 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1537 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1539 2004-01-25 Werner LEMBERG <wl@gnu.org>
1541 * src/libs/libgroff/progname.cpp: Replaced with...
1542 * src/libs/libgroff/progname.c: New file.
1543 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1545 2004-01-17 Werner LEMBERG <wl@gnu.org>
1547 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1549 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1551 * font/devlj4/generate/wingdings.map,
1552 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1553 Use groff glyph names where possible.
1554 * src/devices/grolj4/lj4_font.man: Minor updates.
1556 2004-01-13 Werner LEMBERG <wl@gnu.org>
1558 * tmac/www.tmac (DC): Handle TTY devices.
1560 * doc/webpage.ms: Document viewCVS from ffii.org.
1561 * NEWS, README: Updated.
1563 * src/roff/groff/groff.man: Mention lj4_font man page.
1565 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1567 (FONTS): Add SYMBOL and WINGDINGS.
1568 (SYMBOL, WINGDINGS): New targets.
1570 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1572 * src/devices/grolj4/lj4_font.man: New man page.
1573 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1574 * src/devices/grolj4.man: Mention lj4_font man page.
1576 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1577 * src/utils/hpftodit/hpftodit.man: Document it.
1579 Remove details about fonts (which are now in lj4_font.man).
1581 * font/devlj4/generate/symbol.map,
1582 font/devlj4/generate/wingdings.map: New files.
1584 2004-01-12 Werner LEMBERG <wl@gnu.org>
1586 * README: Mention ffii's viewcvs access.
1588 2004-01-09 Werner LEMBERG <wl@gnu.org>
1590 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1592 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1594 Revert most of the change from 2004-01-03 to better control used
1597 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1598 (text_symbol_sets, special_symbol_sets): New arrays.
1599 (symbol_set_table): New global variable.
1600 (read_symbol_sets): Use search order given in the text_symbol_sets
1601 and special_symbol_sets arrays. If command line flag -a is not
1602 given, search both arrays.
1603 (output_charset): Require x_height_tag only for command line flag -i.
1605 2004-01-06 Werner LEMBERG <wl@gnu.org>
1607 Implement string-valued registers \n[.m] and \n[.M] to return the
1608 name of the current drawing and background color, respectively.
1610 * src/roff/troff/symbol.h: Moved to...
1611 * src/include/symbol.h: Here.
1612 Small fixes to make it work outside of the `troff' directory.
1613 * src/roff/troff/symbol.cpp: Moved to...
1614 * src/libs/libgroff/symbol.cpp: Here.
1615 Small fixes to make it work outside of the `troff' directory.
1617 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1618 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1621 * src/include/color.h: Include symbol.h.
1622 (color): Add new field `nm'.
1623 * src/libs/libgroff/color.cpp (color::color): Updated.
1625 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1626 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1627 src/roff/troff/reg.cpp: Don't include symbol.h.
1629 * src/roff/troff/env.cpp: Don't include symbol.h.
1630 (environment::get_glyph_color_string,
1631 environment_get_fill_color_string): New member functions.
1632 (init_env_requests): Handle `.m' and `.M' registers.
1633 * src/roff/troff/input.cpp: Don't include symbol.h.
1634 (default_symbol): Moved to symbol.cpp/symbol.h.
1635 (do_glyph_color, do_fill_color, define_color): Pass symbol name
1636 to color constructor.
1637 * src/roff/troff/env.h: Updated.
1639 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1640 Document new registers.
1642 2004-01-05 Werner LEMBERG <wl@gnu.org>
1644 * src/roff/troff/node.cpp (space_node::get_breakpoints,
1645 space_node::nbreaks): Protect against zero `next' field.
1647 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
1649 In hpftodit, use the symbol sets offered in the TFM.
1651 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1652 (symbol_set, text_symbol_sets, special_symbol_sets,
1653 symbol_set_table): Removed.
1654 (get_printcode): Removed.
1655 (read_symbol_sets): Initialize `symbol_set' field with
1657 Simplify code to just use the `kind' value.
1658 (output_charset): Improve output formatting.
1659 (dump_symbols): Simplified.
1661 2004-01-02 Werner LEMBERG <wl@gnu.org>
1663 * font/devlj4/generate/text.map: Add more MSL numbers.
1665 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
1667 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1668 (text_symbol_sets): Add more symbol sets.
1669 (debug_flag): New static variable (moved from `main').
1670 (get_printcode, show_symset): New functions.
1671 (main): Remove `debug_flag'.
1672 (output_charset): Use `show_symset'.
1673 (dump_symbols): Use `show_symset'.
1674 Print symsets for all glyphs.
1675 (read_map): Actually call `unicode_to_ucode_make' but this time
1678 2004-01-01 Werner LEMBERG <wl@gnu.org>
1680 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1681 Fix placement of comments.
1683 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
1685 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1686 option `-d' is given.
1687 (output_charset): Improve warning messages to give more information.
1688 (dump_symbols): Make information more precise.
1690 (read_map): Don't call unicode_to_ucode_name; the glyph names must
1691 appear as-is and shouldn't be decomposed.
1693 2003-12-31 Werner LEMBERG <wl@gnu.org>
1695 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1696 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1697 (FONTS): Add TrueType font families Arial and Times New Roman.
1698 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1699 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1702 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
1704 * test-groff.in (SEP): Quote value.
1705 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1706 `tem' to `char*' to avoid deallocation of a pointer to a constant
1707 object which some compilers don't like.
1709 2003-12-31 Werner LEMBERG <wl@gnu.org>
1711 * font/devlj4/generate (text.map, special.map): Rewritten to work
1712 with the new hpftodit version.
1714 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
1716 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1717 set and 8bit character code for all glyphs also.
1719 2003-12-30 Werner LEMBERG <wl@gnu.org>
1721 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1723 2003-12-29 Werner LEMBERG <wl@gnu.org>
1725 More fixes for MSVC compiler.
1727 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1730 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1731 STDERR_FILENO) [_MSC_VER]: Define conditionally.
1732 (getpid) [_MSC_VER]: Remove.
1733 Include direct.h and process.h conditionally.
1735 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1736 parentheses for a_delete.
1738 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1740 * test-groff: Replaced with...
1741 * test-groff.in: This new template to handle path separator
1744 * configure.ac: Check for direct.h and process.h.
1745 Generate test-groff script.
1746 * configure, src/include/config.hin: Regenerated.
1748 2003-12-28 Werner LEMBERG <wl@gnu.org>
1750 Add integral extension glyph.
1751 Add new option `-x' to afmtodit to suppress use of built-in AGL.
1753 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1755 * font/devps/generate/textmap: Provide entry for `integralex' to
1756 override (old) PUA value of the AGL.
1757 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1758 * font/devps/*: Regenerated.
1760 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1761 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1763 2003-12-27 Werner LEMBERG <wl@gnu.org>
1765 Add forgotten `coproduct' symbol (already available for DVI).
1767 * font/devhtml/R.proto, font/devps/generate/textmap,
1768 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1769 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1770 U+2210 (\[coproduct]).
1772 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
1774 hpftodit has been extended to handle TrueType metric files and
1775 more glyphs. See hpftodit.man for more details.
1777 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
1778 ctype.h, and unicode.h.
1779 s/msl/charcode/ everywhere since we now handle Unicode values also.
1780 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1781 Use it where appropriate.
1782 (MULTIPLIER): Replaced with...
1783 (multiplier): New global static variable.
1785 (tag_type): Add more TFM tags.
1786 (tag_name): New array.
1787 (ENUM_TYPE, FLOAT_TYPE): Removed.
1788 (BYTE_TYPE): New value assigned.
1789 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1790 (text_symbol_sets, special_symbol_sets): Extended to cover more
1792 (check_type): Add return value.
1793 (check_units): Add parameters to get ppi and upem values.
1794 Handle TrueType TFM data.
1795 (output_font_name): New function.
1796 (output_charset): Add parameter to handle TFM type.
1797 Handle TrueType TFMs also.
1798 (em_fract): New macro.
1799 (dump_tags): Be much more verbose and handle more tags.
1800 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1801 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1803 (read_map): Add parameter to handle TFM type.
1804 Handle both MSL and Unicode mappings.
1805 (main): Add two new command line options `-a' and `-q'.
1806 Updated to make use of new functions.
1809 * src/utils/hpftodit/hpuni.cpp: New file.
1811 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1814 2003-12-25 Werner LEMBERG <wl@gnu.org>
1816 * src/include/nonposix.h (read) [_MSC_VER]: Define.
1818 2003-12-24 Werner LEMBERG <wl@gnu.org>
1820 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1821 by Michail Vidiassov <master@iaas.msu.ru>.
1823 2003-12-20 Werner LEMBERG <wl@gnu.org>
1825 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1827 Add missing latin-2 glyphs.
1828 * font/devutf8/R.proto: Add missing latin-2 glyphs.
1830 * tmac/troffrc: Load `composite.tmac' earlier.
1832 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1833 u00{53,73}_0327, and u0049_0307.
1834 * tmac/X.tmac: Add u00{47,67}_0306.
1835 * tmac/tty-char.tmac: Use composite glyph names for readability.
1839 * src/include/unicode.h: Remove `extern' keywords.
1841 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
1843 * tmac/latin5.tmac: New file.
1845 2003-12-19 Werner LEMBERG <wl@gnu.org>
1847 Add some glyphs needed for Turkish.
1849 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1852 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
1853 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1854 u00{53,73}_0327, and u0049_0307.
1856 2003-12-18 Werner LEMBERG <wl@gnu.org>
1858 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1860 Remove trailing zeros.
1862 2003-12-17 Werner LEMBERG <wl@gnu.org>
1864 Make \? transparent to end-of-sentence recognition.
1866 * src/roff/troff/input.cc (non_interpreted_node): Add
1867 `ends_sentence' member function.
1869 2003-12-16 Werner LEMBERG <wl@gnu.org>
1871 * doc/groff.texinfo: Document `dt' request correctly.
1872 Other minor typographical improvements.
1874 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
1876 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1878 2003-12-10 Richard Stallman <rms@gnu.org>
1880 * LICENSE: Better wording.
1882 2003-12-09 Werner LEMBERG <wl@gnu.org>
1884 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1885 * configure, NEWS: Updated.
1887 2003-12-08 Werner LEMBERG <wl@gnu.org>
1889 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1891 2003-12-07 Bernd Warken <bwarken@mayn.de>
1895 2003-12-07 Werner LEMBERG <wl@gnu.org>
1897 * INSTALL: Improved.
1899 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1901 Use path separator character of target platform for compiled-in
1904 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1905 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1906 * configure: Regenerated.
1907 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1909 2003-12-05 Werner LEMBERG <wl@gnu.org>
1911 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1912 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1914 2003-12-04 Bernd Warken <bwarken@mayn.de>
1916 * LICENSE: New file.
1918 2003-12-03 Werner LEMBERG <wl@gnu.org>
1920 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1921 ligatures present in AFM files since groff currently only
1922 understands some standard ligatures and nothing else.
1924 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
1926 * src/roff/groff/groff.cpp (main): Don't run the spooler if
1929 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1932 Don't use Unix wait flags.
1934 2003-12-02 Werner LEMBERG <wl@gnu.org>
1936 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1937 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1938 src/roff/troff/uniuni.cpp: Moved to...
1939 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1940 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1941 src/libs/libgroff/uniuni.cpp: Here.
1943 * src/include/Makefile.sub.old (HDRS),
1944 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1945 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1947 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1949 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1953 2003-12-01 Werner LEMBERG <wl@gnu.org>
1955 * groff.texinfo: Document special behaviour of `.vs 0'.
1956 Improve documentation of `cflags' request.
1959 2003-11-29 Werner LEMBERG <wl@gnu.org>
1961 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1962 * font/devlj4/CORONET: Regenerated.
1964 2003-11-24 Werner LEMBERG <wl@gnu.org>
1966 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1967 if processing hyphenation patterns in traditional mode.
1968 Improve error messages.
1970 2003-11-20 Werner LEMBERG <wl@gnu.org>
1972 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1973 troff_output_file::put_char): Fix type of local variable `c'.
1975 2003-11-19 Werner LEMBERG <wl@gnu.org>
1977 * src/roff/groff/pipeline.c (P): Removed. Updated all function
1979 (i_to_a): Removed. libgroff already provides this function.
1980 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1982 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1984 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1987 2003-11-17 Werner LEMBERG <wl@gnu.org>
1989 * COPYING: Use correct version.
1991 2003-11-11 Werner LEMBERG <wl@gnu.org>
1993 LynxOS 4.0.0 doesn't declare vfprintf.
1995 * configure.ac: Check for vfprintf.
1996 * configure: Regenerated.
1997 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1998 * src/include/config.hin: Regenerated.
2000 2003-11-10 Werner LEMBERG <wl@gnu.org>
2002 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2004 * configure.ac: Check for vsnprintf.
2005 * configure: Regenerated.
2006 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2008 * src/include/config.hin: Regenerated.
2010 2003-11-09 Werner LEMBERG <wl@gnu.org>
2012 * aclocal.m4: Updated syntax to autoconf 2.59.
2013 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2014 Don't check for gsos2.
2015 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2016 working abs_top_srcdir and abs_top_builddir.
2018 * configure.ac: Updated syntax to autoconf 2.59.
2019 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2020 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2021 * configure: Regenerated.
2023 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2024 s/@groff_top_builddir@/@abs_top_builddir@/.
2026 * src/roff/groff/pipeline.c (xstrsignal):
2027 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2029 2003-11-07 Werner LEMBERG <wl@gnu.org>
2031 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2032 make start angle smaller than end angle to circumvent a bug in tpic
2033 handling of some versions of dvipdfm (and dvipdfmx).
2035 2003-10-30 Werner LEMBERG <wl@gnu.org>
2037 * src/devices/grops/grops.man: Improve section on creating EPS.
2039 2003-10-29 Werner LEMBERG <wl@gnu.org>
2041 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2044 2003-10-28 Werner LEMBERG <wl@gnu.org>
2046 * doc/groff.texinfo: Fix documentation of `.if'.
2048 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2050 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2051 the form `uniXXXX' also.
2053 2003-10-27 Werner LEMBERG <wl@gnu.org>
2055 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2056 contrib/pic2graph/pic2graph.sh: Implement secure management of
2058 Pass `-P-pletter' to groff to avoid data outside of the converted
2059 area -- some versions of `convert' (for example 5.3.8) don't check
2060 the bounding box of the image but always use a fixed image size
2061 (letter paper format).
2062 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2063 contrib/pic2graph/pic2graph.man: Updated.
2065 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2067 2003-10-26 Werner LEMBERG <wl@gnu.org>
2069 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2070 troff_output::simple_ellipse, troff_output::simple_arc,
2071 troff_output::simple_line, troff_output::simple_spline,
2072 troff_output::simple_polygon): Insert a space before arguments.
2073 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2074 latter doesn't produce a node, so the following `.sp -1' would do
2076 Don't emit `.sp -1' after \M. This also doesn't produce a token
2077 (and we don't have to care about compatibility mode).
2078 (troff_output::set_color, troff_output::reset_color): Don't emit
2079 `.sp -1' after \M and \m.
2081 * src/roff/troff/input.cpp (old_have_input): New global variable.
2082 (input_stack::get): Handle `old_have_input'.
2083 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2084 `trapping_blank_line' depending on `old_have_input', not
2087 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2089 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2090 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2091 default directory names for temporary files.
2092 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2094 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2095 [__MSDOS__] (run_pipeline): Honour environment variables.
2096 Don't use `tmpnam' but `tempnam' to work around messy
2099 * README.MinGW: New file.
2101 2003-10-16 Werner LEMBERG <wl@gnu.org>
2103 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2104 `(*t)->next' without testing validity of `*t'.
2105 (usage): Make it more readable.
2107 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2109 Make html device run under both MS-DOS and Win32.
2111 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2112 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2113 spawn or fork+exec has to be used, and whether parent must sleep
2114 until the child process terminates. Used in
2115 `char_buffer::run_output_filter'.
2116 (copyofstdoutfd): Removed.
2117 (char_buffer): Replace `write_file_html' and `write_file_troff'
2118 member functions with `emit_troff_output' and `run_output_filter'.
2119 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2121 (replaceFd): Replaced with...
2122 (set_redirection): New auxiliary function.
2123 (waitForChild): Replaced with...
2124 (save_and_redirect): New auxiliary function for.
2126 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2129 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2131 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2132 (GROFF_LIBC): New function.
2133 * configure.ac: Call GROFF_LIBC.
2135 * configure: Regenerated.
2137 * src/include/lib.h: Handle __MINGW32__.
2138 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2139 Add macro for `pipe'.
2142 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2145 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2148 2003-10-13 Werner LEMBERG <wl@gnu.org>
2150 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2153 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2156 2003-10-12 Werner LEMBERG <wl@gnu.org>
2158 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2159 src/roff/troff/input.cc (usage): Updated.
2161 * NEWS, doc/groff.texinfo: Updated.
2163 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2165 * src/libs/libgroff/searchpath.cpp
2166 (search_path::open_file_cautious): New function which also handles
2167 `-' as stdin and stdout depending on the access mode.
2168 * src/include/searchpath.h (search_path): Updated.
2170 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2171 * src/devices/grops/ps.h: Include `searchpath.h'.
2172 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2173 Open resource file with `include_search_path.open_file_cautious'.
2174 * src/devices/grops/grops.man: Document new `-I' switch.
2176 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2177 (main), src/devices/grolj4/lj4.cpp (main),
2178 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2180 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2182 (include_search_path): New global variable.
2183 (include_path_append): Removed.
2184 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2185 (do_file): Simplify, using new
2186 `include_search_path.open_file_cautious'.
2188 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2190 (main): Pass arguments to `-I' to both troff and devices.
2191 Improve handling of `-V'.
2192 * src/roff/groff/groff.man: Document changes to -I and -V.
2194 * src/roff/troff/input.cpp (include_search_path): New global
2196 (next_file, source, ps_bbox_request, transparent_file,
2197 process_input_file): Use new
2198 `include_search_path.open_file_cautious'.
2199 (main) Handle `-I' switch.
2200 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2201 Use new `include_search_path.open_file_cautious'.
2202 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2203 * src/roff/troff/troff.man: Document new `-I' switch.
2205 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2207 Support multiple calls of .Lb in LIBRARY section.
2209 * tmac/doc-common (doc-in-library-section): New register.
2210 (doc-section-library): New string.
2211 (Sh): Set `doc-in-library-section'.
2213 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2214 if in LIBRARY section.
2215 * tmac/doc.tmac (doc-save-global-vars): Updated.
2216 * NEWS, tmac/groff_mdoc.man: Updated.
2218 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2220 * tmac/doc-common (doc-default-operating-system): New variable.
2223 2003-09-08 Werner LEMBERG <wl@gnu.org>
2225 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2227 2003-08-31 Werner LEMBERG <wl@gnu.org>
2229 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2230 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2231 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2232 $(DEVFILES) are not empty.
2233 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2235 2003-08-26 Chuck Silvers <chuq@chuq.com>
2237 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2238 with parallel runs of `make'.
2240 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2242 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2243 insert SORT_SEP. With certain combinations of sort specifications,
2244 refer sorted entries in the wrong order. In particular, entries
2245 with a missing field should be be sorted before all entries that
2246 have that field, before refer looks to the next field.
2248 2003-08-23 Werner LEMBERG <wl@gnu.org>
2250 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2251 g++ linker is used. Reported by Mark J. Reed
2252 <mark.reed@turner.com>.
2254 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2256 Add key character `x' to tbl which makes tbl call a user-defined
2257 macro on a table cell.
2259 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2260 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2261 `set_modifier' after printing the compatibility request.
2262 (set_modifier): Print call to `m->macro' if not empty.
2263 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2265 (process_format): Implement cases `x' and `X'.
2266 * src/preproc/tbl/tbl.man, NEWS: Updated.
2268 2003-08-15 Werner LEMBERG <wl@gnu.org>
2270 * doc/groff.texinfo: Minor fixes.
2272 2003-08-09 Werner LEMBERG <wl@gnu.org>
2274 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2276 2003-08-07 Werner LEMBERG <wl@gnu.org>
2278 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2279 argument list to nothing if there is no file to match. Use `ls' as
2280 a protection, similar to autoconf.
2282 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2283 empty argument lists.
2285 * doc/groff.texinfo: Improve documentation how vertical spacing
2286 and line breaks interact.
2289 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2291 2003-08-03 Werner LEMBERG <wl@gnu.org>
2293 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2294 EPS (using eps2eps or similar programs to compute the bounding box).
2296 2003-07-24 Werner LEMBERG <wl@gnu.org>
2298 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2299 * doc/texinfo.tex: Updated from texinfo 4.6.
2300 * README.CVS: From now on we need texinfo 4.6.
2302 2003-07-23 Werner LEMBERG <wl@gnu.org>
2304 Add requests `dei1' and `ami1' for completeness.
2306 * src/roff/troff/input.cc (calling_mode): Remove
2307 CALLING_DISABLE_COMP.
2308 (comp_mode): New enumeration.
2309 (do_define_string, define_string, define_nocomp_string,
2310 append_string, append_nocomp_string): Updated.
2311 (do_define_macro): Add third parameter.
2312 (define_macro, define_nocomp_macro, define_indirect_macro,
2313 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2314 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2317 (init_input_requests): Add `dei1' and `ami1'.
2319 * tmac/trace.tmac: Handle de1 and am1.
2320 (de): Improve tracing message.
2321 (am): Add missing `do'.
2324 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2325 Document new requests.
2327 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2329 Add option -G to .MPIMG to insert a gap between text and the image.
2331 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2332 www-finish-left-ll): Updated.
2333 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2334 (MPIMG): Make option -L and -R optional.
2335 Implement option -G.
2337 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2339 * src/devices/grohtml/post-html.cpp
2340 (html_printer::do_file_components): Don't use `stdout' as lvalue
2341 since it can be a macro.
2343 2003-07-22 Werner LEMBERG <wl@gnu.org>
2345 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2346 the corresponding test in aclocal.m4.
2348 2003-07-21 Werner LEMBERG <wl@gnu.org>
2350 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2351 names but RGB values directly. Otherwise pnmtopng depends on
2352 an external file `rgb.txt' which maps colour names to values.
2354 2003-07-20 Werner LEMBERG <wl@gnu.org>
2356 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2357 * configure, src/include/config.hin: Regenerated.
2359 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2361 2003-07-19 Werner LEMBERG <wl@gnu.org>
2363 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2365 2003-07-18 Werner LEMBERG <wl@gnu.org>
2367 * *.man: Switch to non-compatibility mode temporarily if GNU
2368 syntax extensions are used in the particular man page.
2370 * PROBLEMS: Add solutions for SGR problems.
2372 2003-07-17 Werner LEMBERG <wl@gnu.org>
2374 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2375 used to change the drawing scheme.
2377 * src/devives/grotty/tty.cpp (bold_flag_option,
2378 underline_flag_option, italic_flag_option, reverse_flag_option,
2379 bold_underline_mode_option): New global variables.
2380 (update_options): New function.
2381 (tty_printer::special): Call update_options.
2382 (main): Don't set xxx_flag but xxx_flag_option, then call
2385 2003-07-14 Werner LEMBERG <wl@gnu.org>
2387 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2389 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2391 (hline_char, vline_char): New global variables.
2392 (tty_printer::tty_printer): Initialize them.
2393 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2394 horizontal and vertical lines.
2395 (crossings): New global array.
2396 (tty_printer::end_page): Use it to determine the proper crossing
2397 character for -Tutf8.
2399 2003-07-12 Werner LEMBERG <wl@gnu.org>
2401 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2402 (HTMLDOCFILES): Revert to `pic.html'.
2403 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2405 2003-07-11 Werner LEMBERG <wl@gnu.org>
2407 * doc/pic.ms: Improve documentation of absolute coordinates.
2408 Document absolute positioning of pictures.
2410 * NEWS: Add new pic capability.
2412 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2414 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2417 2003-07-07 Werner LEMBERG <wl@gnu.org>
2419 Implement support for dashed and dotted ellipses in pic. Based on
2420 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2422 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2423 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2424 functions. Ellipse arcs are approximated with circle arcs.
2425 * src/preproc/pic/common.h (common_output): Updated.
2426 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2428 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2430 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2432 2003-07-06 Werner LEMBERG <wl@gnu.org>
2434 Make grotty work on platforms which have unsigned char as the
2435 default for char. Based on a patch by Thomas Klausner
2438 * src/devices/grotty/tty.cpp (schar): New typedef.
2439 Updated calls to declare_ptable and implement_ptable.
2440 (glyph): Use schar for back_color_idx and fore_color_idx.
2441 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2442 (tty_printer::tty_color, tty_printer::tty_printer,
2443 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2445 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2447 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2448 * src/roff/nroff/nroff.man: Updated.
2450 2003-07-05 Werner LEMBERG <wl@gnu.org>
2452 * NEWS, tmac/groff_www.man: Updated.
2453 * doc/Makefile.sub: Updated.
2455 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2457 Implement support for multiple HTML output files.
2459 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2460 -j command line option.
2462 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2464 (file): New fields `new_output_file', `require_links',
2466 (file::file): Updated.
2467 (files::set_file_name, files::set_links_required,
2468 files::are_links_required, files::is_new_output_file,
2469 files::file_name, files::next_file_name): New functions.
2470 (header_desc): New fields `no_of_level_one_headings',
2472 (header_desc::header_desc): Updated.
2473 (header_desc::write_headings): Handle multiple files.
2474 (html_printer::write_header): Save file name in which header occurs.
2475 (html_printer::determine_header_level): Possibly split files on
2477 (html_printer::do_links, html_printer::troff_tag): Updated.
2478 (html_printer::insert_split_file, html_printer::do_job_name,
2479 html_printer::emit_link, html_printer::write_navigation,
2480 html_printer::do_file_components): New functions.
2481 (html_printer::~html_printer): Handle multiple files.
2482 (main): Handle command line option `-j'.
2484 * src/devices/grohtml/grohtml.man: Updated.
2486 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2489 * tmac/www.tmac (JOBNAME): New macro.
2490 * tmac/s.tmac (SH-NO-TAG): New macro.
2491 (@SH): Call SH-NO-TAG.
2494 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2496 * tmac/groff_mdoc.man: Improve documentation of punctuation
2499 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2501 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2503 2003-07-03 Werner LEMBERG <wl@gnu.org>
2505 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2507 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2509 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2510 after `/*' and `*/'.
2512 (Fn, Fo): Reduce indentation in synopsis.
2514 * tmac/doc-common (doc-check-depth): New macro.
2515 (doc-end-macro, Sh, Ss): Use it.
2516 (Cd): Fix behaviour in synopsis.
2517 (In): Make it parsed and callable.
2518 If not in the synopsis, represent the C header file enclosed in
2520 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2521 Use minus, not hyphen.
2523 * tmc/groff_mdoc.man: Updated.
2525 2003-07-01 Werner LEMBERG <wl@gnu.org>
2527 Integrated grap2graph, contributed by Eric S. Raymond.
2529 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2531 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2532 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2534 2003-07-01 Colin Watson <cjwatson@debian.org>
2536 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2537 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2539 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2541 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2543 2003-06-31 Werner LEMBERG <wl@gnu.org>
2545 * doc/Makefile.sub (CLEANADD): Remove all files created by
2546 running `make groff.{pdf,dvi}'.
2548 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2551 2003-06-30 Werner LEMBERG <wl@gnu.org>
2553 * Makefile.in (SHELL): Define as @SHELL@.
2554 (mkinstalldirs): Use $(SHELL).
2555 (MDEFINES): Add $(SHELL).
2556 * Makefile.comm (SHELL): Removed.
2558 2003-06-29 Werner LEMBERG <wl@gnu.org>
2560 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2561 The X11 documentation files use them.
2562 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2564 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2566 * tmac/e.tmac (@C): Handle .ad also.
2568 2003-06-12 Werner LEMBERG <wl@gnu.org>
2570 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2572 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2573 Assign `n' even here. It is possible to construct a node
2574 immediately following an escape character:
2582 2003-06-10 Werner LEMBERG <wl@gnu.org>
2584 * README.WIN32: Removed.
2585 * MANIFEST: Updated.
2587 2003-06-07 Werner LEMBERG <wl@gnu.org>
2589 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2591 2003-06-05 Werner LEMBERG <wl@gnu.org>
2593 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2594 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2596 2003-06-03 Werner LEMBERG <wl@gnu.org>
2598 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2599 is done by the calling function.
2601 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2603 * tmac/X.tmac: Fix definition of `em'.
2605 2003-05-22 Werner LEMBERG <wl@gnu.org>
2607 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2610 2003-05-18 Werner LEMBERG <wl@gnu.org>
2612 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2613 to make items work which consist only of a tag.
2615 2003-05-17 Werner LEMBERG <wl@gnu.org>
2617 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2618 aren't stretched in a tag (this can fail with unformatted boxes).
2619 Instead, insert a break and go back one line.
2621 2003-05-16 Werner LEMBERG <wl@gnu.org>
2623 * src/roff/troff/input.cc (return_macro_request): If called with
2624 argument pop macro twice. We need this to trace `return'.
2626 * tmac/trace.tmac: Handle `return'.
2629 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2632 2003-05-15 Larry Kollar <kollar@alltel.net>
2634 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2635 registers `FPS', `FVS', and `FPD'.
2637 2003-05-15 Werner LEMBERG <wl@gnu.org>
2639 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2642 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
2644 * tmac/groff_mdoc.man: Slight improvements.
2646 2003-05-03 Werner LEMBERG <wl@gnu.org>
2648 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2649 `doc-header-space' after header line if register `cR' is set.
2651 2003-05-02 Werner LEMBERG <wl@gnu.org>
2655 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
2657 * tmac/doc-common (Nd): Use \[em].
2659 2003-05-01 Werner LEMBERG <wl@gnu.org>
2661 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2662 doc-footer-space): Initialize to 0.5i.
2663 (doc-setup-page-layout): Don't set doc-header-space and
2666 2003-04-30 Werner LEMBERG <wl@gnu.org>
2668 * REVISION: Set to 1.
2670 * doc/pic.ms: Document possible problems with `figname'.
2672 2003-04-29 Werner LEMBERG <wl@gnu.org>
2674 Version 1.19 released
2675 =====================
2677 * VERSION: Set to 1.19.
2678 * REVISION: Set to 0.
2679 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2681 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2682 Define charset as `US-ASCII' in html output.
2684 * tmac/www.tmac (ULE): Add missing scaling indicator.
2686 * win32-diffs: Removed.
2688 2003-04-28 Werner LEMBERG <wl@gnu.org>
2690 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2692 Document how to insert discardable whitespace with `.ss'.
2694 2003-04-27 Werner LEMBERG <wl@gnu.org>
2696 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2697 work with plain TeX also.
2699 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2701 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
2703 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2706 2003-04-24 Werner LEMBERG <wl@gnu.org>
2708 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2709 vbox with positive height and zero depth if in TeX mode.
2711 * NEWS: Document glyph name changes for grodvi and grolj4.
2713 2003-04-23 Werner LEMBERG <wl@gnu.org>
2715 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2716 * doc/pic.ms: Fixed.
2718 2003-04-21 Werner LEMBERG <wl@gnu.org>
2720 HP-UX 10.20 has `snprintf' but it isn't declared.
2722 * configure.ac: Add declaration test for snprintf.
2723 * configure: Regenerated.
2724 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2725 * src/include/config.hin: Regenerated.
2727 2003-04-19 Werner LEMBERG <wl@gnu.org>
2729 Add keyword `figname' to pic, specifying the name of the picture
2730 box in TeX mode. Based on a patch from William J Poser
2731 <wjposer@unagi.cis.upenn.edu>.
2733 * src/preproc/pic/pic.y: New token `FIGNAME'.
2734 (macro_name): New rule of type <str>.
2735 (placeless_element): Handle `FIGNAME'.
2736 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2737 * src/preproc/pic/main.cpp (graphname): New global variable.
2738 (do_picture): Initialize `graphname'.
2739 * src/preproc/pic/pic.h: Updated.
2740 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2743 (tex_output::text): Beautify output.
2744 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2745 `shaded' and `outlined' unconditionally.
2746 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2749 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2750 greater is necessary.
2752 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
2754 Add option -r to soelim to avoid emission of `.lf' lines.
2755 Add option -t to produces TeX comment lines instead of `.lf' lines.
2757 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2760 (main): Handle `-r' and `-t'.
2761 (set_location): Handle `raw_flag' and `tex_flag'.
2762 * src/preproc/soelim/soelim.man, NEWS: Updated.
2764 2003-04-17 Werner LEMBERG <wl@gnu.org>
2766 * tmac/hyphenex.sh: Replaced with...
2767 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2770 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2771 if --quiet is used for the configure script.
2772 * configure: Regenerated.
2774 2003-04-16 Werner LEMBERG <wl@gnu.org>
2776 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2777 Add `const' to second argument.
2778 (html_printer::add_table_end): Add `const' to argument.
2779 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2780 `const' to arguments.
2781 * src/devices/grohtml/html-text.h: Updated.
2783 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2784 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2787 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2788 cast for integer constant.
2790 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2791 (writeNbytes): Add `const' to first argument.
2792 (writeString): Add `const' to argument.
2793 (char_buffer::can_see): Add `const' to third argument.
2794 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2795 `const' to argument.
2796 * src/preproc/html/pushback.h: Updated.
2798 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2799 (include_path_append): Add `const' to argument.
2802 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2804 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2805 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2807 (unicode_decompose_init::unicode_decompose_init): Updated.
2808 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2810 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2811 * src/roff/troff/input.cc (process_startup_file): Add `const' to
2814 * tmac/hyphenex.sh: Make script more portable by using a here
2817 2003-04-15 Werner LEMBERG <wl@gnu.org>
2819 Renamed all `*.cc' files to `*.cpp'.
2820 Updated all configuration files, makefiles, and documentation.
2822 2003-04-14 Werner LEMBERG <wl@gnu.org>
2824 * tmac/hyphenex.sh: Slight improvements.
2826 2003-04-13 Werner LEMBERG <wl@gnu.org>
2828 * font/devascii/R.proto, font/devcp1037/R.proto,
2829 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2830 character slots with unnamed glyphs.
2832 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2833 (an-first): New global variable.
2834 (an-header): Emit vertical space between multiple man pages.
2836 2003-04-11 Werner LEMBERG <wl@gnu.org>
2838 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2841 2003-04-10 Werner LEMBERG <wl@gnu.org>
2843 * PROBLEMS: Revised.
2845 2003-04-10 Bernd Warken <bwarken@mayn.de>
2847 * doc/webpage.ms: Improved.
2849 2003-04-09 Werner LEMBERG <wl@gnu.org>
2851 Add register \n[.height] which returns the value of \H.
2852 Add register \n[.slant] which returns the value of \S.
2854 * src/roff/troff/env.cc (init_env_requests): Implement.
2855 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2858 2003-04-08 Werner LEMBERG <wl@gnu.org>
2860 * tmac/html.tmac: Move some of the data into html-end.tmac.
2861 Remove most of the character translations for eqn since html fonts
2862 now cover those characters.
2864 * tmac/html-end.tmac: New file.
2865 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2866 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2867 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2869 2003-04-07 Werner LEMBERG <wl@gnu.org>
2871 * man/groff_out.man: Document negative values of `N' if -Thtml is
2874 2003-04-06 Werner LEMBERG <wl@gnu.org>
2876 * Makefile.comm (depend.temp): Check location of YTABC.
2878 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2880 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2882 (groff_bin_path): Rename to GROFF_BIN_PATH.
2883 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2884 * doc/Makefile.in (TROFFBIN): New variable for troff
2886 (GROFFBIN): New variable for groff binary path.
2887 (groff_bin_path): Rename to GROFF_BIN_PATH.
2888 (TROFF): Use TROFFBIN.
2889 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2890 * doc/Makefile.sub (GROFFBIN): New variable for groff
2892 (groff_bin_path): Rename to GROFF_BIN_PATH.
2893 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2895 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2896 with INSTALL_SCRIPT.
2897 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2898 * Makefile.dev (all): Depend on DEVSCRIPTS.
2899 (install_dev): Likewise.
2900 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2902 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2903 (DEVGENSCRIPTS): New variable to hold generated scripts.
2905 2003-04-05 Werner LEMBERG <wl@gnu.org>
2907 * src/libs/libdriver/input.cc (IntArray::operator[],
2908 IntArray::get_data): Remove meaningless `const' in return value.
2910 * README.CVS: New file.
2912 2003-04-04 Werner LEMBERG <wl@gnu.org>
2914 Check for stdint.h in C++, not in C.
2916 * aclocal.m4 (GROFF_STDINT_H): New function,
2917 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2919 * configure, src/include/config.hin: Regenerated.
2920 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2923 Fix handling of in grohtml. To do this, troff emits `N'
2924 with a negative value, representing the width of the unbreakable
2925 space (only for -Thtml). grohtml then converts this back to
2926 and uses the value of N as its width.
2928 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2929 unbreakable_space_node::tprint): Emit `N-<width>'.
2930 * src/include/printer.h (printer::set_numbered_char): Make it
2932 Make members `font_table' and `nfonts' protected instead of private.
2933 * src/devices/grohtml/post-html.cc
2934 (html_printer::set_numbered_char): New member function.
2937 * src/libs/libgroff/maxfilename.cc:
2938 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2940 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2943 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
2945 * man/roff.man: Small fixes.
2947 2003-04-03 Werner LEMBERG <wl@gnu.org>
2949 Make groff independent from locale's numeric settings.
2951 * configure.ac: Check for `setlocale'.
2952 * configure, src/include/config.hin: Regenerated.
2954 * src/include/lib.h: Handle HAVE_SETLOCALE.
2956 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2957 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2958 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2961 * doc/groff.texinfo: Change dir category to `Typesetting'.
2962 (Man font macros): Mention that there is no space between arguments
2965 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2966 (*printer::change_color, *printer::change_fill_color): Add missing
2969 2003-04-02 Werner LEMBERG <wl@gnu.org>
2971 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2972 html_table::is_gap): Compute table widths after converting border
2973 positions to avoid rounding errors.
2975 2003-04-01 Werner LEMBERG <wl@gnu.org>
2977 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2978 `space_emitted' properly.
2980 2003-03-31 Werner LEMBERG <wl@gnu.org>
2982 * src/devices/grohtml/html-table.cc: Fix column width calculation.
2983 (html_table::set_linelength): Don't add 1.
2984 (html_table::add_indent): Don't subtract 1.
2986 * tmac/html.tmac: Set default page offset to zero.
2988 2003-03-30 Werner LEMBERG <wl@gnu.org>
2990 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
2992 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2993 unbreakable_space_node::tprint): New functions.
2994 (troff_output_file): Make space_char_hmotion_mode::tprint and
2995 unbreakable_space_node::tprint to friends.
2996 * src/roff/troff/node.h: Updated.
2998 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
2999 in the HTML standard).
3001 2003-03-29 Werner LEMBERG <wl@gnu.org>
3003 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3004 Otherwise, the following code
3013 produces `x a' instead of `xa'. This is a temporary fix, disabling
3014 font changes in diversions for -Thtml.
3016 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3018 (an-do-tag-html): Merge with ...
3019 (an-do-tag): This macro.
3020 Change code slightly to circumvent grohtml bug.
3021 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3023 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3024 html_table::is_gap): Round `width' properly.
3026 * tmac/html.tmac: Provide some default layout parameters for
3029 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3032 2003-03-28 Werner LEMBERG <wl@gnu.org>
3034 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3036 2003-03-27 Werner LEMBERG <wl@gnu.org>
3038 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3041 2003-03-20 Werner LEMBERG <wl@gnu.org>
3043 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3045 * doc/groff.texinfo: Updated.
3047 2003-03-19 Werner LEMBERG <wl@gnu.org>
3049 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3050 TOKEN_END_TRAP>: Reset `have_input'.
3052 2003-03-18 Werner LEMBERG <wl@gnu.org>
3054 * src/roff/groff/groff.man: Mention groff_trace man page.
3056 2003-03-16 Werner LEMBERG <wl@gnu.org>
3058 * Makefile.in (LIBEXT): New variable to indicate the file extension
3059 of library files. Computed heuristically from $(OBJEXT).
3060 (MDEFINES): Add $(LIBEXT).
3061 * Makefile.lib, Makefile.comm: Use it.
3063 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3064 overlong lines into smaller chunks.
3065 (get_binary): New function.
3067 * src/utils/pfbtops/pfbtops.man: Updated.
3069 2003-03-15 Colin Watson <cjwatson@debian.org>
3071 * src/roff/groff/groff.man: Minor syntax fix.
3073 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3075 * src/devices/grops/ps.cc (ps_printer::media_set,
3076 ps_printer::~ps_printer): Handle zero paper width and length.
3078 2003-03-13 Werner LEMBERG <wl@gnu.org>
3080 Add options -p and -l to grodvi.
3082 * src/devices/grodvi/dvi.cc: Include paper.h.
3083 (landscape_flag, user_paper_length, user_paper_width): New global
3085 (dvi_printer::begin_page): Emit `papersize' special.
3086 Set color after initialization of `cur_h' and `cur_v'.
3087 (main): Add options `-l' and `-p'.
3088 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3089 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3091 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3093 2003-03-12 Werner LEMBERG <wl@gnu.org>
3095 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3096 * man/groff_tmac.man: This man page.
3097 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3100 * tmac/X.tmac: Don't load pspic.tmac.
3102 2003-03-11 Werner LEMBERG <wl@gnu.org>
3104 Make variable `pr' local to libdriver/input.cc. Based on a patch
3105 by Bernd Warken <bwarken@mayn.de>.
3107 * src/include/driver.h (pr): Removed.
3109 * src/libs/libdriver/input.cc (pr): New global variable.
3110 (do_file): Deallocate `pr'.
3111 * src/libs/libdriver/printer.cc (pr): Removed.
3113 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3114 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3115 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3116 (main): Don't delete `pr'.
3118 2003-03-10 Werner LEMBERG <wl@gnu.org>
3120 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3121 * tmac/papersize.tmac: New file.
3122 * tmac/troffrc: Include `papersize.tmac'.
3123 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3124 * tmac/an-old.tmac: Set LT to LL by default.
3126 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3127 doc/groff.texinfo: Updated.
3129 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3130 bug which caused all odd iso papers to have wrong dimensions.
3132 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3133 (main) <'p'>: Set `user_paper_width' also.
3134 (ps_printer::media_width, ps_printer::media_height): Use values
3135 given with option `-p'.
3137 2003-03-09 Werner LEMBERG <wl@gnu.org>
3139 * src/include/nonposix.h: Provide default for SET_BINARY.
3141 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3142 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3145 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3146 (main): Treat \r\n as \n.
3148 2003-03-08 Werner LEMBERG <wl@gnu.org>
3150 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3151 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3153 2003-03-07 Werner LEMBERG <wl@gnu.org>
3155 Added support to access more than 256 glyphs in Type 1 fonts.
3157 * src/devices/grops/ps.cc (subencoding): New structure.
3158 (style): Add `sub' field.
3160 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3161 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3164 (ps_printer::set_char): Use `set_subencoding'.
3165 (make_subencoding_name): New function.
3166 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3167 (ps_printer::~ps_printer): Emit subencoding definitions.
3169 * src/devices/grops/psrm.cc (valid_input_table): New array to
3170 properly support EBCDIC.
3171 (white_space): Add `\f'.
3172 (ps_get_line): Change first argument to be of type `string &'.
3173 Updated all callers.
3174 This allows to get lines of arbitrary length.
3175 Use `valid_input_table'.
3176 Remove warning about non-conforming PS line length. This seems
3177 not to be of great importance -- for example, dvips don't emit
3179 (PS_LINE_MAX): Removed.
3180 (matches_comment): Change first argument to be of type `string &'.
3182 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3184 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3185 %AGL_to_unicode, %default_ligatures): New hash tables.
3186 Read all map entries.
3187 Add unencoded characters.
3188 Check for default ligatures if there are no `L' entries.
3189 Print all kern entries.
3190 Print all characters in charset.
3191 * src/utils/afmtodit/afmtodit.man: Updated.
3193 * font/devps/*: Regerated all fonts.
3195 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3196 of characters, just use `.trin'. Otherwise the mapping depends
3197 on the font encoding.
3198 * tmac/ps.tmac: Add `fi' and `fl'.
3199 Improve `Fi' and `Fl'.
3200 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3201 * tmac/Xps.tmac: Fix `em'.
3205 2003-03-04 Werner LEMBERG <wl@gnu.org>
3207 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3210 2003-03-03 Werner LEMBERG <wl@gnu.org>
3212 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3214 * font/devps/generate/textmap: Remove entry `similarequal'.
3215 * font/devps/symbolmap: Updated.
3217 2003-03-02 Werner LEMBERG <wl@gnu.org>
3219 * src/libs/libgroff/font.cc (font::load): Fix error message for
3222 * src/devices/grops/grops.man: Improve documentation of the -b
3225 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3226 `ascii' and `cp1047'.
3228 2003-03-01 Werner LEMBERG <wl@gnu.org>
3230 Document composite glyphs and the `composite' request.
3232 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3234 2003-02-28 Werner LEMBERG <wl@gnu.org>
3236 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3237 * font/devdvi/*EC: Updated.
3239 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3240 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3241 * tmac/troffrc: Load `composite.tmac'.
3242 * tmac/Makefile.sub (NORMALFILES): Updated.
3244 * doc/groff.texinfo (Input Encodings): New section.
3247 2003-02-27 Werner LEMBERG <wl@gnu.org>
3249 * doc/texinfo.tex: New version 2003-02-11.06.
3251 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3252 * tmac/groff_mdoc.man: Fix description of `Dt'.
3254 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3256 * font/devps/prologue.ps: Fix for included Postscript that does
3257 a setpagedevice -- which is now safely ignored.
3261 * src/devices/grops/ps.cc: Now sets the page size in the generated
3262 document. This is done in two ways: Via a %%-comment for gv and
3263 the like, and via a PageSize and setpagedevice for programs that
3264 understands Postscript proper, like ps2pdf.
3266 * src/devices/grops/ps.h: New broken-flag to avoid page size
3267 definition, if required.
3269 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3271 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3272 Not really necessary due to the fix in prologue.ps, but cleaner:
3273 Such information does not belong in an .eps file.
3275 * doc/Makefile.sub: See doc/Makefile.in.
3277 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3279 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3280 instead of P1 since the latter is broken in some versions of netpbm.
3281 * configure: Updated.
3283 2003-02-26 Larry Kollar <kollar@alltel.net>
3285 Make man pages more customizable.
3287 * tmac/an-old.tmac (FT): New register holding footer distance from
3289 (HF): New string holding the default heading font.
3290 (TH): Handle registers `IN' and `SN' set on the command line.
3292 (PT, BT): New strings to customize header and footer lines.
3293 (an-header, an-footer): Use them.
3295 * tmac/groff_man.man: Document changes.
3297 * doc/groff.texinfo: Document man changes.
3298 Document Ultrix extensions of man.
3300 2003-02-26 Werner LEMBERG <wl@gnu.org>
3302 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3303 `have_input' after changing back to old environment.
3305 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3306 function up to be defined before first call. This is necessary to
3307 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3309 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3310 the default font directory also. Based on a patch from James
3311 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3312 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3313 * src/utils/afmtodit/afmtodit.man: Document it.
3317 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3319 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3321 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3322 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3323 * configure.ac: Use it.
3324 * configure: Regenerated.
3325 * Makefile.in: Updated.
3327 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3328 (CLEANADD): Add www.tmac-sed.
3329 (pnmtops_nosetpage): Define default.
3330 (install_data): Handle www.tmac-sed and substitute
3331 @PNMTOPS_NOSETPAGE@.
3332 (stamp-sed): Add www.tmac.
3333 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3334 It now breaks URLs at suitable places.
3335 (www:substring_ok): New register set by...
3336 (www:@test_substring): New macro.
3337 (www:error): New alias to www-error.
3338 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3340 (URL): Use www:url_breaks.
3341 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3342 (CDS, CDE): New macros.
3344 2003-02-25 Werner LEMBERG <wl@gnu.org>
3346 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3349 2003-02-24 Werner LEMBERG <wl@gnu.org>
3351 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3352 can be negative also.
3354 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3356 (read_char_table): Avoid negative ascenders.
3357 (output_charset): Add cast.
3358 * font/devlj4/*: Regenerated.
3360 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3363 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3364 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3366 * font/devdvi/*: Regenerated.
3368 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3369 normal width, while the previously used characters (U+2329 and
3370 U+232A) are classified as wide due to canonical equivalence with the
3371 CJK punctuation characters U+3008 and U+3009.
3373 * font/devutf8/R.proto: Updated.
3374 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3376 * man/groff_char.man: Simplify handling of table traps by
3377 introducing `start block' and `end block' macros.
3378 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3379 (DL): Make it work with Unix troff also.
3380 Fix code values of `la' and `ra'.
3382 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3384 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3386 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3387 New destructor, fixing a major memory leak.
3389 2003-02-22 Werner LEMBERG <wl@gnu.org>
3391 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3392 to be in conformance with Unicode 3.0 and newer.
3394 * font/devlj4/generate/text.map: Add `Eu'.
3395 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3396 * font/devlj4/S: Regenerated.
3398 * man/groff_char.man: Completely rewritten.
3400 * doc/groff.texinfo: Fix description of request and macro arguments.
3402 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3406 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3407 Deallocate `columns' list.
3408 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3410 (text_glob::text_glob_html, text_glob::text_glob_special,
3411 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3412 text_glob::text_glob_tag): Avoid memory leaks.
3413 (text_glob::remember_table): Free memory before reassigning.
3415 2003-02-19 Werner LEMBERG <wl@gnu.org>
3417 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3418 alias `hbar'), the Planck constant over two pi.
3420 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3421 `+e' for position 34.
3422 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3423 `u2662' and `u2661'.
3424 * font/devdvi/{MI,S}: Regenerated.
3425 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3426 * font/devlbp/*: Add `hbar' alias.
3427 * font/devlj4/generate/special.map: Ditto.
3428 * font/devlj4/S: Regenerated.
3429 * font/devps/generate/symbolchars: Add `+e'.
3430 * font/devps/generate/textmap: Fix PS name for `-h'.
3432 * font/devps/symbolmap: Regenerated.
3434 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3436 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3438 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3441 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3443 * tmac/tty-char.tmac: Add `+e'.
3445 2003-02-17 Werner LEMBERG <wl@gnu.org>
3447 Another round trying to really fix problems with `have_input'.
3449 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3450 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3452 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3453 handling if both foreground and background colors are default.
3455 * doc/groff.texinfo (Debugging): Document .lf differences to
3458 2003-02-16 Werner LEMBERG <wl@gnu.org>
3460 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3461 null-bytes in created string.
3463 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3464 alias_macro, lookup_request): Improve warning messages.
3466 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3468 Free `last_image_filename'.
3470 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3472 (imageList::createPage, imageList::createImage): Use `free', not
3474 (imageItem::~imageItem): Free `imageName'.
3475 (addRegDef): Use `strsave', not `strdup'.
3476 (get_resolution): Free `pathp'.
3478 2003-02-15 Werner LEMBERG <wl@gnu.org>
3480 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3483 2003-02-14 Werner LEMBERG <wl@gnu.org>
3485 Add memory management for colors to deallocate unnamed colors
3488 * src/include/color.h (color): New members `free_list' and `next'.
3489 New member functions `new' and `delete'.
3491 * src/libs/libgroff/color.cc: Implement it.
3493 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3494 for array size of new operator.
3496 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3497 redundant comparison.
3499 * src/roff/troff/input.cc (word_space_node::reread,
3500 hmotion_node::reread): Avoid warning about unused parameter.
3501 (reset_output_registers): Remove redundant parameter.
3502 (define_color): Undo change 2003-02-12.
3504 * src/roff/troff/reg.h: Updated.
3506 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3507 output_file::put_filename, real_output_file::really_put_filename,
3508 ascii_output_file::really_print_line,
3509 break_char_node::get_hyphen_list): Avoid warning about unused
3511 (suppress_node::tprint): Updated.
3513 * configure.ac: Check declaration for rand() and srand().
3514 * configure: Regenerated.
3516 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3518 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3521 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3522 to avoid compiler warnings.
3524 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3527 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3529 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3531 Updated all callers.
3533 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3535 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3536 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3538 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3539 Parameter is unused.
3540 (html_printer::add_table_end): Define parameter conditionally.
3541 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3544 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3545 (lbp_printer::set_char): Last parameter is unused.
3547 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3549 2003-02-13 Werner LEMBERG <wl@gnu.org>
3551 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3552 Make \D'f ...' move horizontally again for backwards compatibility.
3553 Replace it with \D'Fg ...' where appropriate to avoid dependency
3554 on horizontal resolution.
3556 * src/roff/troff/input.cc (do_get_long_name): New function.
3557 (get_long_name): Call it.
3559 (read_draw_node): Handle `\D'Fx ...' by calling ...
3560 (read_color_draw_node): New function.
3562 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3564 Pass it to `do_get_long_name' which is used instead of
3567 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3568 unnecessary value guard.
3569 (parse_D_command) <'f'>: Add horizontal shift.
3571 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3572 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3573 (FILL_MAX): Removed.
3575 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3578 2003-02-12 Werner LEMBERG <wl@gnu.org>
3580 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3581 do_zero_width): Push `\n' if closing delimiter is missing.
3583 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3584 <'F'>: Make \F non-transparent at the beginning of line.
3585 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3586 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3589 (define_color): Free color in case of reassignment.
3591 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3592 @DefescListEnd): Use @Var, not @var.
3595 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3597 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3598 `shaded' and `outlined' arrays.
3599 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3600 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3602 (closed_object::set_fill_color): Ditto.
3603 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3605 (troff_output::reset_color): Use a_delete instead of free.
3606 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3608 2003-02-11 Werner LEMBERG <wl@gnu.org>
3610 * doc/groff.texinfo: Improve documentation of `ad'.
3611 Document that \D'f...' is dependent on the horizontal resolution.
3612 * man/groff_diff.man: Improve documentation of \D'f...'.
3614 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3615 compensating \h'...' for \D'f ...' since the latter no longer moves
3617 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3619 2003-02-10 Werner LEMBERG <wl@gnu.org>
3621 Improve error messages for `x F' (and `F') commands.
3623 * src/include/error.h: Add declaration for
3624 `current_source_filename'.
3625 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3626 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3627 parameter for source file string.
3628 Updated all callers.
3630 * src/libs/libdriver/input.cc: Add `current_source_filename'.
3631 (remember_source_filename): New function.
3632 (parse_x_command <'F'>, do_file <'F'>): Use it.
3634 2003-02-09 Werner LEMBERG <wl@gnu.org>
3636 Make grotty not emit warnings about unknown colors more than
3639 * src/devices/grotty/tty.cc: Include `ptable.h'.
3640 (TTY_MAX_COLORS): Removed.
3641 (DEFAULT_COLOR_IDX): Defined to -1.
3642 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3643 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3644 Change `tty_colors' to be a ptable.
3645 First arg of `put_color' is now `char'.
3646 New functions `make_rgb_string' and `tty_color'.
3647 (tty_printer::tty_printer): Use `tty_color'.
3648 (tty_printer::color_to_idx): Return value is now `char'.
3651 * src/include/color.h (color): Add `print_color' member function.
3652 * src/libs/libgroff/color.cc (color::print_color): Implement it.
3654 2003-02-08 Werner LEMBERG <wl@gnu.org>
3658 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3661 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3662 assume that value has been allocated with `new[]', thus use
3663 `a_delete' for deallocation.
3665 * src/libs/libdriver/input.cc (get_integer_arg,
3666 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3669 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3670 * src/libs/libgroff/nametoindex.cc
3671 (character_indexer::named_char_index): Use `new <type>[1]'.
3673 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3675 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3676 (split_text): Use `a_delete'.
3678 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3681 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3682 harmless memory leak.
3683 (hyphen_trie::read_patterns_file): Initialize `buf'.
3684 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3685 Initialize `current_fill_color'and `current_glyph_color'.
3686 * src/roff/troff/glyphuni.cc
3687 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3688 * src/roff/troff/uniuni.cc
3689 (unicode_decompose_init::unicode_decompose_init): Ditto.
3690 * src/roff/troff/uniglyph.cc
3691 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3693 2003-01-26 Werner LEMBERG <wl@gnu.org>
3695 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3696 `access' before calling `unlink'.
3697 (do_file): Handle __EMX__.
3699 * src/include/nonposix.h: Handle __EMX__.
3701 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3702 (fontpath,tmacpath): Use it.
3704 Sorted alphabetically.
3706 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3708 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3711 2003-01-27 Werner LEMBERG <wl@gnu.org>
3713 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3714 New files, copied from gnulib.
3715 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3716 * configure.ac: Updated.
3717 * configure: Regenerated.
3719 * src/include/config.hin: Regenerated.
3720 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3721 Don't define `strcasecmp' as `strcmp'.
3722 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3723 Dont define `strncasecmp' as `strncmp'.
3725 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3728 2003-01-26 Werner LEMBERG <wl@gnu.org>
3730 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3733 2003-01-25 Werner LEMBERG <wl@gnu.org>
3735 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3737 2003-01-24 Werner LEMBERG <wl@gnu.org>
3739 Add US-english hyphenation exceptions (converted from Barbara
3740 Beeton's hyphenation exception log reports which appear irregularly
3743 * tmac/hyphen.us: Updated to latest version.
3744 * tmac/README: Updated.
3745 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3746 * tmac/troffrc: Load `hyphenex.us'.
3747 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3748 * doc/groff.texinfo: Updated.
3750 2003-01-23 Werner LEMBERG <wl@gnu.org>
3752 Improve hyphenation slightly. This is a first step in redesigning
3753 the hyphenation algorithm to make it more flexible (e.g. allowing
3754 kerns and ligatures between the hyphenation character and the
3755 following character -- while not used normally in English, other
3756 languages like German would benefit).
3758 * src/roff/troff/env.cc (environment::hyphenate_line): Use
3759 assertion instead of if-clause.
3760 Let `get_hyphen_list' return the number of involved characters in
3761 the hyphenation pattern instead of computing it directly (which
3762 often yields too small values).
3763 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3764 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3767 2003-01-22 Werner LEMBERG <wl@gnu.org>
3769 Fixing a bug which caused groff to hang if the hyphenation exception
3770 dictionary tried to grow.
3772 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3773 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3774 pointer to dictionary.
3776 2003-01-20 Werner LEMBERG <wl@gnu.org>
3778 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3779 negative left italic correction.
3780 * src/utils/afmtodit/afmtodit.man: Document it.
3782 * font/devps/generate/Makefile (RFLAG): Add `-m'.
3783 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3784 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3788 2003-01-16 Werner LEMBERG <wl@gnu.org>
3792 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
3794 * src/preproc/refer/refer.man: Mention REFER environment variable.
3796 2003-01-05 Werner LEMBERG <wl@gnu.org>
3798 Similar to \[is], the square root glyph (\[sr]) and the square root
3799 extension glyph (\[radicalex]) are now text symbols. The new
3800 mathematical versions are called \[sqrt] and \[sqrtex],
3803 * font/devX*/S: Regenerated.
3804 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3805 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3806 * font/devdvi/EX, font/devdvi/S: Regenerated.
3807 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3808 * font/devlj4/generate/special.map: Add `sqrt'.
3809 * font/devlj4/S: Regenerated.
3810 * font/devps/generate/textmap: Add `sqrt'.
3811 * font/devps/S, font/devps/symbolmap: Regenerated.
3813 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3814 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3815 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3816 overlap horizontally.
3818 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3819 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3822 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3823 and `sqrtex' are overlapping glyphs.
3825 2003-01-04 Werner LEMBERG <wl@gnu.org>
3827 * font/devdvi/generate/texsy.map: Add `is'.
3828 * font/devps/symbolmap: Regenerated.
3829 * font/devdvi/*TC, MI, S: Regenerated.
3831 * tmac/dvi.tmac: Remove `is'.
3833 2003-01-03 Werner LEMBERG <wl@gnu.org>
3835 `is' is now a text symbol (only relevant for dvi). The math variant
3836 can be accessed with `integral'.
3838 * font/devX*/S: Regenerated.
3839 * font/devdvi/generate/texex.map: Remove `is'.
3840 * font/devdvi/EX: Updated.
3841 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3842 * font/devlj4/generate/special.map: Ditto.
3843 * font/devlj4/S: Regenerated.
3844 * font/devps/generate/textmap: Add `integral'.
3845 * font/devps/S: Regenerated.
3847 * tmac/dvi.tmac: Define `is'.
3849 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3851 * src/preproc/tbl/main.cc (process_format): Fix error message.
3853 2003-01-02 Werner LEMBERG <wl@gnu.org>
3855 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3856 * font/devps/textmap: Fix entries for `ne' and `nc'.
3857 * font/devps/symbolmap: Regenerated.
3859 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3860 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3861 `38', `58', `78', `-+', `|=', `nc', `ne'.
3863 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3864 Use `schar' for `aq'.
3865 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3866 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3867 * tmac/tty.tmac: Add `ne'.
3869 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3870 for fallback glyphs.
3872 2002-12-29 Werner LEMBERG <wl@gnu.org>
3876 * font/devX*/*: Regenerated.
3877 * font/devdvi/generate/ec.map: Remove `eq'.
3878 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3879 Assign `|=' to position 39.
3880 * font/devdvi/*EC, S: Regenerated.
3881 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3882 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3883 Assign `|=' to position 549.
3884 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3886 Add `uni2243' for `|='.
3888 * tmac/ec.tmac: Add `eq'.
3889 * tmac/dvi.tmac: Add `=~'.
3890 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3893 2002-12-21 Werner LEMBERG <wl@gnu.org>
3895 * font/devdvi/generate/tc.map: Remove `**'.
3896 * font/devdvi/*TC: Regenerated.
3897 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3899 * font/devutf8/NOTES: Updated.
3901 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3902 Don't give default parameter to `set_macro'.
3903 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3904 instead of `set_macro'.
3905 (charinfo::setx_macro): Implement it.
3906 (charinfo::set_macro): Don't change `mode'.
3908 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3909 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3910 * tmac/dvi.tmac: Define `!=' with `.schar'.
3912 2002-12-20 Werner LEMBERG <wl@gnu.org>
3914 * font/devX*/S: Regenerated.
3915 * font/devdvi/generate/ec.map: Remove `pl'.
3916 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3917 * font/devdvi/*{TC,EC}: Regenerated.
3918 * font/devhtml/R.proto: Add `-+'.
3919 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3920 * font/devlbp/*: Remove `or'.
3921 * font/devlj4/generate/special.map: Remove `or'.
3922 * font/devlj4/S: Regenerated.
3923 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3924 `seveneighths', `threeeighths'.
3926 Replace `minusplus' with `uni2213'.
3927 * font/devps/symbolmap: Regenerated.
3928 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3931 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3933 * src/roff/troff/node.cc (troff_output_file::put_char_width):
3934 Call glyph_color and fill_color even if tcommand_flag isn't set.
3935 (make_node, node::add_char): Check not ci->is_fallback but
3938 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3939 * tmac/ec.tmac: Add .rchar entry for `f/'.
3940 Don't remove `12', `14', `34'.
3941 Define `pl' to be always roman.
3942 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3943 Define `18', `38', `58', `78'.
3944 * tmac/tty.tmac: Add `-+'.
3945 * tmac/dvi.tmac: Define `f/'.
3946 (dvi-frac): Use `f/'.
3947 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3948 Define `18', `38', `58', `78'.
3950 2002-12-15 Colin Watson <cjwatson@debian.org>
3952 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3954 2002-12-10 Werner LEMBERG <wl@gnu.org>
3956 Add glyph `tno', a textual variant of `no'.
3958 * font/devX*/*: Regenerated.
3959 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3960 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3961 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3962 * font/devdvi/*: Regenerated.
3963 * font/devlbp/*: Add `tno'.
3964 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3965 * font/devlj4/*: Regenerated.
3966 * font/devps/generate/textmap: Replace `no' with `tno'.
3967 * font/devps/generate/symbolchars: Add `no'.
3968 * font/devps/*: Regenerated.
3970 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3972 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3973 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3977 * tmac/dvi.tmac: Replace most `\\' with `\E'.
3978 Add definition for `sd'.
3979 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3981 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3983 2002-12-08 Werner LEMBERG <wl@gnu.org>
3985 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3986 mode to avoid rounding errors.
3987 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3989 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3990 src/roff/troff/troff.man: Improve documentation of -T.
3992 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
3994 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3995 (run_pipeline) [_WIN32]: Provide working function without `fork'.
3997 2002-12-06 Werner LEMBERG <wl@gnu.org>
3999 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4000 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4001 Scaling Euro.sansserif glyphs down to have the same height as
4003 Removed unnecessary points; added some extrema.
4005 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4008 2002-12-04 Werner LEMBERG <wl@gnu.org>
4010 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4011 and `Euro.symbol.bold.slanted'.
4012 Improve some glyph offsets and widths.
4013 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4015 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4017 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4020 * tmac/europs.tmac: Updated to new glyph indices.
4021 Use Euro.symbol for font familiy `A'.
4023 * doc/groff.texinfo: Minor improvements.
4025 2002-12-02 Werner LEMBERG <wl@gnu.org>
4027 * font/devdvi/generate.tc.map: s/%O/%0/.
4028 * font/devdvi/*TC: Regenerated.
4030 * src/roff/troff/div.cc (init_div_requests): Sorted.
4032 * tmac/dvi.tmac: Remove `Ye'.
4033 * tmac/ec.tmac: Remove `Ye'.
4034 Add .rchar entry for `de'.
4036 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4037 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4040 2002-11-30 Werner LEMBERG <wl@gnu.org>
4042 Add PS font for various Euro glyphs.
4044 * font/devps/generate/freeeuro.sfd: New master font file for
4046 * font/devps/generate/sfdtopfa.pe: New conversion script for
4048 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4049 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4050 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4052 * font/devps/EURO: Generated from `freeeuro.afm'.
4053 * font/devps/download: Add `freeuro.pfa'.
4054 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4057 * tmac/europs.tmac: New file.
4058 * tmac/ps.tmac: Include `europs.tmac'.
4059 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4061 2002-11-29 Werner LEMBERG <wl@gnu.org>
4063 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4064 * font/devdvi/S: Regenerated.
4065 * font/devhtml/R.proto: Fix `CR' and `ci'.
4067 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4069 * font/devps/symbolmap: Regenerated.
4070 * font/devutf8/R.proto: Fix `CR' and `ci'.
4072 * font/devutf8/NOTES: Updated.
4074 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4077 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4079 * tmac/dvi.tmac: Add `lh' and `rh'.
4080 * tmac/Xps.tmac: Fix `lh' and `rh'.
4081 * tmac/X.tmac: Add `OK'.
4082 * tmac/lj4.tmac: Ditto.
4084 2002-11-24 Werner LEMBERG <wl@gnu.org>
4086 * font/devX*/S: Regenerated.
4087 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4088 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4089 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4090 * font/devdvi/S: Regenerated.
4091 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4092 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4093 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4094 `bracketleftbt', `bracketrighttp', `bracketrightex',
4095 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4096 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4097 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4099 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4100 * font/devutf8/NOTES: Updated.
4101 * font/devlj4/generate/special.map: Add glyph `braceex'.
4102 * font/devlj4/S: Regenerated.
4104 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4106 2002-11-14 Werner LEMBERG <wl@gnu.org>
4108 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4111 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4113 * doc/texinfo.tex: New version from texinfo 4.3.
4114 * doc/groff.texinfo: Updated for texinfo 4.3.
4115 Use @tie{} where appropriate.
4116 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4117 * font/devdvi/generate/tc.map: Remove `rn'.
4118 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4119 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4121 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4122 font/devX75-12/*: Regenerated.
4124 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4125 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4126 Improve definition of `an'.
4127 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4129 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4130 * tmac/X.tmac: Add definition for `or'.
4131 * tmac/Xps.tmac: Undo change 2002-11-05.
4132 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4134 2002-11-11 Werner LEMBERG <wl@gnu.org>
4136 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4139 2002-11-10 Werner LEMBERG <wl@gnu.org>
4141 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4142 defines a glyph which is searched after the check for fonts declared
4143 with `.special' (and before the check for all mounted special
4144 fonts). `fschar' defines a glyph for a particular font which is
4145 searched after the check for fonts declared with `.fspecial' (and
4146 before the check for fonts declared with `.special'). `rfschar'
4147 removes glyphs defined with `fschar'.
4149 * src/roff/troff/token.h (char_mode): New enum.
4150 Declare do_define_character.
4151 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4153 (charinfo::is_fallback): Updated.
4154 (charinfo::is_special): New method.
4155 * src/roff/troff/input.cc (do_define_character): Add and use
4156 optional second parameter used as a prefix for font-specific glyph
4158 (define_character, define_fallback_character): Updated.
4159 (define_special_character): New function.
4160 (init_input_requests): Add `schar'.
4161 (charinfo::charinfo, charinfo::set_macro): Updated.
4162 * src/roff/troff/node.cc: Include `stringclass.h'.
4163 (make_glyph_node): Handle special glyphs defined with `.schar' and
4165 (define_font_special_character, remove_font_special_character): New
4167 (init_node_requests): Sorted.
4168 Add `fschar' and `rfschar'.
4169 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4170 Document new requests.
4172 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4173 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4175 2002-11-08 Werner LEMBERG <wl@gnu.org>
4177 Added new font `SC' (cmtex10) to devdvi.
4179 * devdvi/generate/Makefile (FONTS): Add `SC'.
4181 * devdvi/generate/textex.map: New map file for cmtex.
4183 * devdvi/Makefile.sub (DEVFILES): Updated.
4184 * tmac/dvi.tmac: Add fspecial entries for SC.
4185 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4186 found before `S' since the font position of `SC' is lower due to the
4187 gaps in DESC's `font' line.
4188 * tmac/ec.tmac: Add a `special' call.
4191 * font/devhtml/R.proto: Remove double entry for `ti'.
4192 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4193 * tmac/tty-char.tmac: Remove entry for `bq'.
4194 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4195 * tmac/ec.tmac: Don't remove `aq' glyph.
4196 * tmac/X.tmac: Fix entry for `em'.
4197 Add entries for `fo' and `fc'.
4198 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4200 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4201 documentation of `special' and `fspecial' requests.
4203 2002-11-05 Werner LEMBERG <wl@gnu.org>
4205 * font/devascii/R.proto, font/devcp1047/R.proto,
4206 font/devlatin1/R.proto: Remove entry for `.i'.
4207 * font/devdvi/generate/textt.map: Add entry for `ad'.
4208 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4209 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4210 We need this for getting kerning values to compose `/l' and `/L'.
4211 * font/devdvi: Regenerated font definition files for CM fonts.
4212 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4213 * font/devutf8/R.proto: Ditto.
4214 Remove double entry for `ti'.
4216 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4217 for (groff) ligatures, `la', and `ra'.
4218 Add "'C", "'c", `IJ', and `ij'.
4219 Remove double entry for `ti'.
4220 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4222 Add "'C", "'c", `IJ', and `ij'.
4223 Fix entries for (groff) ligatures, `la', and `ra'.
4225 * tmac/ps.tmac (ps-achar): New macro.
4226 Define "'c" and "'C".
4227 * tmac/tty.tmac: Add entry for `.i'.
4228 * tmac/X.tmac (X-achar): New macro.
4229 Define "'c", "'C", and `:Y'.
4230 Add entries for `IJ' and `ij'.
4231 * tmac/Xps.tmac (Xps-achar): New macro.
4232 Define "'c" and "'C".
4233 Add entries for `IJ' and `ij'.
4234 * tmac/lbp.tmac (lbp-achar): New macro.
4235 Add fallback characters for all groff ligatures and many other
4237 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4238 Add entries for `/l' and `/L'.
4239 Define "'c" and "'C".
4240 Add entries for `IJ' and `ij'.
4242 2002-11-02 Larry Kollar <kollar@alltel.net>
4244 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4246 2002-11-02 Werner LEMBERG <wl@gnu.org>
4248 Adding support for composite glyphs: \[xxx yyy ...] and the
4249 `composite' request.
4251 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4252 to Unicode-based glyph names.
4253 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4254 glyph names to groff glyph names.
4255 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4256 Unicode-based glyph names.
4257 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4258 for handling Unicode glyph names.
4259 * src/roff/troff/input.cc: Include unicode.h.
4260 (composite_glyph_name): New function.
4261 (token::next) <'['>: Handle Unicode glyph names and composite
4263 (composite_dictionary): New dictionary for the `composite' request.
4264 (composite_request): Implement `composite' request.
4265 (init_input_requests): Add `composite'.
4266 Alphabetically sorted.
4267 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4269 (init_env_requests): Alphabetically sorted.
4270 Removed `tas' and `tar' (already commented out).
4271 * src/roff/troff/Makefile.sub: Updated.
4273 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4275 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4278 2002-10-29 Werner LEMBERG <wl@gnu.org>
4280 Fix computation of .trunc register. Additionally, its value (and
4281 the value of the .ne register) is now always set before entering the
4284 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4285 `needed_space' before calling `space'.
4286 (top_level_diversion::space): Remove special code for 'sp before the
4288 Call `begin_page' with the discarded space as a parameter.
4289 (top_level_diversion::begin_page): Add optional parameter to set
4291 * src/roff/troff/div.h: Updated.
4293 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4296 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4297 (LP): Remove superfluous call to `br'.
4298 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4299 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4301 2002-10-26 Werner LEMBERG <wl@gnu.org>
4303 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4304 (doc-setup-header): Don't set page register `%'.
4305 * tmac/doc-nroff: Remove variable `C'.
4306 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4307 (doc-setup-header): Don't set page register `%'.
4309 * tmac/doc-common (doc-header): Call `ns'.
4310 (doc-paragraph): Protect .sp with .br so that it survives traps
4311 possibly set by the user.
4312 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4314 * tmac/doc*: Replace ' with . for consistency if no effect.
4316 2002-10-26 Werner LEMBERG <wl@gnu.org>
4318 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4319 so that it survives traps possibly set by the user.
4321 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4322 (troff_output_file::set_font): Call flush_tbuf if necessary.
4323 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4324 flush_tbuf and do_motion only if necessary.
4325 (troff_output_file::start_special,
4326 troff_output_file::put_char_width, troff_output_file::put_char,
4327 troff_output_file::draw): Updated.
4328 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4329 vmotion_node::tprint): Undo change 2002-10-23.
4331 2002-10-25 Werner LEMBERG <wl@gnu.org>
4333 * tmac/www.tmac (DC): Fix case of overlapping images.
4335 2002-10-23 Werner LEMBERG <wl@gnu.org>
4337 * src/roff/troff/node.cc (troff_output_file::fill_color,
4338 troff_output_file::glyph_color): Set current color before testing
4340 (troff_output_file::put_char_width, troff_output_file::put_char,
4341 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4343 (troff_output_file::file_color, troff_output_file::glyph_color):
4345 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4346 vmotion_node::tprint): Move first, then call fill_color.
4348 2002-10-20 Werner LEMBERG <wl@gnu.org>
4350 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4351 possible to use multiple main macro packages.
4353 2002-10-19 Werner LEMBERG <wl@gnu.org>
4355 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4356 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4357 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4359 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4360 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4362 2002-10-16 Werner LEMBERG <wl@gnu.org>
4364 * NEWS, doc/webpage.ms: Updated.
4366 2002-10-14 Werner LEMBERG <wl@gnu.org>
4368 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4369 troff_output_file::put_char, troff_output_file::fill_color,
4370 troff_output_file::glyph_color): Handle case where color pointer
4373 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4375 Add the new -r option to grotty. It is similar to the -i option
4376 except it tells grotty(1) to use the "reverse video" attribute to
4377 render italic fonts.
4379 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4380 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4381 (tty_printer::make_underline, tty_printer::put_color,
4382 tty_printer::end_page): Use it.
4383 (main): Add -r switch.
4385 * src/devices/grotty/grotty.man: Document it.
4387 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4389 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4390 cast to `unsigned char' to properly read patterns with 8bit
4393 2002-10-08 Werner LEMBERG <wl@gnu.org>
4395 * REVISION: Increased to 2.
4397 Version 1.18.1 released
4398 =======================
4400 2002-10-08 Werner LEMBERG <wl@gnu.org>
4402 * doc/webpage.ms, NEWS: Updated.
4404 2002-10-07 Werner LEMBERG <wl@gnu.org>
4406 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4407 suppress additional whitespace after the header.
4409 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4412 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4414 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4416 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4417 (Dt): Use it to improve language localization (especially Russian
4420 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4422 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4423 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4425 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4427 Call `picurve' for BSPLINE.
4428 (HGPrintElt): Handle BSPLINE.
4429 * src/preproc/grn/README: Document it.
4431 2002-10-03 Werner LEMBERG <wl@gnu.org>
4433 * src/roff/troff/node.cc (break_char_node::col): New variable.
4434 Updated constructor.
4435 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4437 (space_node::space_node): Remove assertion.
4438 (break_char_node::add_self): Pass color argument to space node.
4439 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4441 * src/roff/troff/env.cc (environment::do_break,
4442 environment::add_padding): Ditto.
4444 2002-10-02 Werner LEMBERG <wl@gnu.org>
4446 Redesigning color support in troff. Colors are no longer
4447 represented as separate nodes but are now part of glyph nodes and
4448 friends. This fixes the current formatting misbehaviour due to the
4449 changes introduced on 2002-09-20. Some extra code is necessary for
4450 proper grotty support: Without adding color variables to
4451 space-related nodes, the background color would be changed too late.
4453 * src/roff/troff/node.h, src/roff/troff/node.cc:
4454 s/current_pagecolor/current_fill_color/.
4455 s/current_glyphcolor/current_glyph_color/.
4456 (glyph_color_node, fill_color_node): Removed.
4457 (node::get_glyph_color, node::get_fill_color): New virtual member
4459 (space_node::col): New variable.
4460 Updated constructors of space_node and derived classes accordingly.
4461 (hmotion_node::col): New variable.
4462 Updated constructors of hmotion_node and space_char_hmotion_node
4464 (vmotion_node::col): New variable.
4465 Updated constructor accordingly.
4466 (draw_node::gcol, draw_node::fcol): New variables.
4467 Updated constructor accordingly.
4468 (special_node::gcol, special_node::fcol): New variables.
4469 Updated constructors accordingly.
4470 (troff_output_file::put_char, troff_output_file::put_charwidth,
4471 troff_output_file::draw): Set glyph and fill color.
4472 (troff_output_file::start_special): Set glyph and fill color.
4473 Always set current font.
4474 (troff_output_file::fill_color, troff_output_file::glyph_color):
4475 Don't call `do_motion'.
4476 (glyph_node::gcol, glyph_node::fcol): New variables.
4477 Updated constructors of glyph_node and ligature_node accordingly.
4478 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4480 (glyph_node::merge_glyph_node,
4481 kern_pair_node::add_discretionary_hyphen,
4482 node::add_discretionary_hyphen): Updated.
4483 (break_char_node::merge_self): Updated.
4484 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4485 vmotion_node::tprint): Handle color.
4486 (make_glyph_node, make_node, node::add_char): Updated.
4488 * src/roff/troff/env.cc (environment::space_newline,
4489 environment::space, environment::output_line, environment::do_break,
4490 environment::make_tab_node, environment::add_padding, title):
4492 (environment_switch, environment_copy): Don't add color nodes.
4494 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4496 (token::next): Updated.
4497 \m and \M now are as transparent as \s.
4498 (process_input_stack, token::add_to_node_list, token::process,
4499 read_draw_node): Updated.
4500 (charinfo_to_node_list): Don't add color nodes.
4502 * doc/groff.texinfo: Updated.
4504 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4506 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4509 2002-09-27 Colin Watson <cjwatson@debian.org>
4511 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4513 2002-09-23 Werner LEMBERG <wl@gnu.org>
4515 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4517 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4518 (linewidth_factor): New global variable.
4519 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4521 (long_options): Add -w/--linewidth option.
4523 (main): Handle -w option to set linewidth_factor.
4524 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4527 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4529 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4531 Fixed a bug in the line thickness setting code.
4533 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4535 (lbp_printer::set_line_thickness): Pass environment as second
4537 Implement it actually.
4538 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4539 and `set_line_thickness, depending on the current font size.
4541 2002-09-21 Werner LEMBERG <wl@gnu.org>
4543 Some Debian patches.
4545 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4546 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4549 2002-09-20 Werner LEMBERG <wl@gnu.org>
4551 * configure: Regenerated with autoconf 2.54.
4553 2002-09-20 Werner LEMBERG <wl@gnu.org>
4555 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4557 Rename cur_fill_color to fill_color.
4558 * src/roff/troff/env.cc: Updated.
4560 2002-09-20 Werner LEMBERG <wl@gnu.org>
4562 * src/roff/troff/env.cc (title): Copy color status after processing
4564 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4565 fill color nodes to reset colors properly.
4567 * tmac/www.tmac (DC): Fix color handling.
4569 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4570 * doc/groff.texinfo: Fixing documentation of `tl' request.
4571 * doc/webpage.ms: Updated.
4573 2002-09-19 Werner LEMBERG <wl@gnu.org>
4575 * src/roff/troff/env.cc (environent_switch, environment_copy):
4576 Emit glyph and fill color nodes to initialize colors properly.
4578 2002-09-17 Colin Watson <cjwatson@debian.org>
4580 * src/roff/troff/env.cc (environment::set_glyph_color,
4581 environment::set_fill_color): Fix typo which prevented \m[] work
4584 2002-09-17 Werner LEMBERG <wl@gnu.org>
4586 Add left and right italic correction to non-slanted PS fonts. This
4587 is an experimental feature to improve image rendering of grohtml.
4589 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4590 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4591 * font/devps/*: All non-slanted fonts regenerated.
4594 2002-09-16 Werner LEMBERG <wl@gnu.org>
4596 Add a site-specific font directory.
4598 * Makefile.in (localfontdir, legacyfontdir): New variables.
4599 (fontpath): Use them.
4600 (MDEFINES, uninstall_dirs): Updated.
4601 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4602 Remove `FONTPATH' and `MACROPATH'.
4604 * src/roff/troff/troff.man, NEWS: Updated.
4605 * doc/groff.texinfo (Font Directories): New section.
4608 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4609 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4610 src/preproc/grn/grn.man: Minor fixes.
4612 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4613 Remove unused variable.
4615 2002-09-11 Werner LEMBERG <wl@gnu.org>
4617 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4618 * man/groff_out.man: Fix documentation of 'N'.
4620 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4622 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4623 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4625 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4626 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4627 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4628 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4629 PRE_TAG>: Call `begin' with `FALSE'.
4631 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4633 * src/libs/libgroff/string.cc (string::extract): Fix position of
4634 terminating null byte.
4636 2002-09-08 Werner LEMBERG <wl@gnu.org>
4638 Add global option `nospaces' to tbl so that leading and trailing
4639 spaces in data items are ignored.
4641 * src/libs/libgroff/string.cc (string::remove_spaces): New member
4642 function to remove leading and trailing spaces.
4643 * src/include/stringclass.h: Updated.
4645 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4647 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4649 Fix typo in error messages.
4650 (process_data): Implement `nospaces' option.
4651 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4653 2002-09-07 Werner LEMBERG <wl@gnu.org>
4655 * src/include/config.hin: Add `HAVE_ISATTY'.
4656 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4658 * src/libs/libgroff/tmpname.cc: Include `time.h'.
4659 * src/libs/libdriver/input.cc (Char): Add `operator==' and
4660 `operator!=' for `char'.
4661 * doc/groff.texinfo: Replace @ifnottex block for top node with
4664 2002-09-06 Werner LEMBERG <wl@gnu.org>
4666 * doc/Makefile.in (.texinfo.html): Add -I switch.
4667 * doc/groff.texinfo: Add @ifnottex block for top node to make
4668 translation to HTML work.
4670 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
4672 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4673 (get_papersize, determine_vertical_offset): Removed.
4674 (char_buffer::do_image): Always specify letter size.
4676 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4679 2002-09-05 Werner LEMBERG <wl@gnu.org>
4681 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4682 default indentation.
4684 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
4686 * src/preproc/html/pre-html.cc (imageList::createPage): Use
4688 (generateImages): Clean up push-back buffer.
4690 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4692 * doc/groff.texinfo: Minor fixes.
4694 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4696 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4697 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4699 (determine_vertical_offset): Use LETTER_LENGTH.
4700 (createPage): Moved to ...
4701 (imageList::createPage): This.
4702 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4703 (imageList::getMaxX): New function.
4704 (createImage): Moved to ...
4705 (imageList::createImage): This.
4706 (imageList::createImages): New function.
4707 (generateImages): Read `maxx' directly.
4709 (scanArguments): Don't specify `gsPaper' for `-o'.
4710 (makeTempFiles): Call `xtmpfile' with the last argument set to
4713 2002-08-24 Werner LEMBERG <wl@gnu.org>
4715 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4716 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4717 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4718 * src/preproc/html/pushback.cc: Include nonposix.h.
4719 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4722 2002-08-23 Werner LEMBERG <wl@gnu.org>
4724 Use $(OBJEXT) for the object file extension.
4726 * Makefile.comm (.SUFFIXES): Add .obj.
4727 (.cc.obj, .c.obj): New implicit rules.
4728 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4729 (MDEFINES): Add EXEEXT and OBJEXT.
4730 * */Makefile.sub: s/.o/.$(OBJEXT)/.
4732 2002-08-22 Werner LEMBERG <wl@gnu.org>
4734 * INSTALL: Mention texinfo 4.2 as a prerequisite.
4736 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4738 * src/devices/grohtml/post-html.cc (colType): Make enum global to
4740 (html_printer::update_min_max, html_printer::add_table_end): New
4742 (html_printer::lookahead_for_tables): Use them.
4743 Reset page offset correctly.
4744 (html_printer::~html_printer): Add creation of creator comment up.
4746 2002-08-20 Werner LEMBERG <wl@gnu.org>
4748 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4749 * man/groff_tmac.man: Fix typos.
4750 * man/groff_font.man: Minor reordering.
4751 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4753 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4755 Avoid endless loops while scanning for tables.
4757 * src/devices/grohtml/post-html.cc (list::insert): Set
4759 (html_printer::next_horiz_pos): Add `text_glob' argument; update
4761 Return immediately if that argument is NULL.
4762 (html_printer::calc_nf): Don't test if `g' is NULL.
4763 (html_printer::lookahead_for_tables): Use
4764 `glyphs.move_right_get_data'.
4765 Don't test if `g' is NULL.
4767 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4769 A better fix, replacing fix 2002-08-15, for increasing SIZE.
4771 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4773 (char_block::char_block): Allocate `buffer'.
4774 (char_buffer::add_string): Use it.
4776 2002-08-15 Werner LEMBERG <wl@gnu.org>
4778 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4779 src/devices/grodvi/grodvi.man: Document default line thickness.
4781 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
4783 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4786 2002-08-14 Werner LEMBERG <wl@gnu.org>
4788 * doc/webpage.ms: Updated.
4790 2002-08-09 Werner LEMBERG <wl@gnu.org>
4792 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4795 2002-08-08 Aaron Campbell <aaron@monkey.org>
4797 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4800 2002-08-08 Werner LEMBERG <wl@gnu.org>
4802 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4805 Don't push back a space but a newline onto the stack.
4807 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
4809 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4812 * src/devices/grohtml/post-html.cc (html_printer::end_font,
4813 html_printer::start_font): Handle them.
4814 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4816 (html_text::do_bold): Don't reset italic and tt.
4817 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4818 * font/devhtml/DESC.proto: Add those fonts.
4819 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4821 2002-08-07 Werner LEMBERG <wl@gnu.org>
4823 * MORE.STUFF: Added gpresent.
4825 * tmac/trace.tmac: Show nesting level by a corresponding amount of
4826 whitespace before printing the logging message.
4828 2002-07-31 Colin Watson <cjwatson@debian.org>
4830 * src/devices/grohtml/html-table.cc (html_table::finish_row):
4831 Initialize `n' to zero. This fixes a segfault on ARM.
4833 2002-07-30 Werner LEMBERG <wl@gnu.org>
4835 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4837 2002-07-29 Werner LEMBERG <wl@gnu.org>
4839 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4842 2002-07-28 Colin Watson <cjwatson@debian.org>
4844 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4846 (html_printer::html_printer): Initialize `pointsize'.
4848 2002-07-26 Werner LEMBERG <wl@gnu.org>
4850 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4852 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4853 (gnu.eps): Add -rle switch to pnmtops.
4854 (distfiles): Add gnu.eps and gnu.png.
4856 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
4858 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4861 2002-07-24 Werner LEMBERG <wl@gnu.org>
4863 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4864 ' \+' but ' *' for sed.
4865 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4867 2002-07-23 Werner LEMBERG <wl@gnu.org>
4869 * doc/groff.texinfo: Document `papersize' keyword.
4870 * NEWS, man/groff_font.man: Updated.
4872 2002-07-23 Colin Watson <cjwatson@debian.org>
4874 Extend papersize keyword to accept more than a single entry. The
4875 first valid will be used.
4877 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4878 (font::scan_papersize): Really skip final newline.
4879 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4881 2002-07-23 Werner LEMBERG <wl@gnu.org>
4883 * configure.ac: Test for isatty.
4884 * configure: Regenerated.
4885 * src/include/posix.h: Check HAVE_ISATTY.
4886 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4887 * src/utils/lookbib/lookbib.cc: Include posix.h.
4888 Don't declare isatty.
4890 2002-07-21 Werner LEMBERG <wl@gnu.org>
4892 * NEWS: Add `output' request.
4894 * REVISION: Increased to 1.
4896 Version 1.18.0 released
4897 =======================
4899 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
4901 Allow internal glyph indices > 0xFF in grohtml for input characters.
4903 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4905 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4906 Updated all callers.
4907 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4908 (html_printer): Updated.
4910 2002-07-19 Werner LEMBERG <wl@gnu.org>
4912 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4913 * font/devutf8/R.proto: Adding some missing glyphs.
4914 * font/devutf8/NOTES: Updated.
4916 * tmac/dvi.tmac: Add more composite glyphs.
4917 * tmac/html.tmac: Updated.
4919 * man/groff_char.man: Add `sum' and `product' entities.
4923 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
4925 Improved table, tab, and indenting support.
4927 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4928 string_iterator::suppress_newline_flag): Removed. Updated all
4929 function which have used it.
4931 * src/roff/troff/env.cc: Include `input.h'.
4932 (environment::add_node): Accept 0 as parameter.
4933 (environment::add_html_tag): Add `force' parameter.
4934 Updated all callers.
4935 (environment::add_html_tag_tabs): Ditto.
4936 For the moment, support left-aligned tabs only.
4937 (environment::make_html_tag): New function.
4938 (fill, no_fill): Set .br html tag additionally.
4939 (environment::newline): Emit `eol.ce' or `eol' tag for html.
4940 (environment::add_html_tag_eol): Removed.
4941 (tab_stops::distance_to_next_tab): Add variant for handling
4943 (environment::distance_to_next_tab): Ditto.
4944 Updated all callers.
4945 (environment::handle_tab): Handle tabs for html.
4947 * src/roff/troff/env.h: Updated.
4949 * src/roff/troff/div.cc: Updated all callers of
4950 `environment::add_html_tag'.
4952 * src/devices/grohtml/html-table.cc,
4953 src/devices/grohtml/html-table.h: New files.
4955 * src/devices/grohtml/html-text.cc (html_text): New members
4956 `blank_para' and `start_space'.
4957 (html_text::issue_tag): Don't emit TABLE_TAG.
4958 Handle indentation for PRE_TAG and P_TAG.
4959 (html_text::end_tag): Updated.
4960 (html_text::table_is_void, html_text::issue_table_begin,
4961 html_text::issue_table_end): Removed.
4962 (html_text::do_push): Simplified.
4963 [DEBUGGING]: Small fix.
4964 (html_text::push_para): Add new parameter for indentation; updated
4967 (html_text::do_indent, html_text::do_table, html_text::done_table,
4968 html_text::is_in_table): Removed.
4969 (html_text::do_pre): Handle P_TAG also.
4970 (html_text::shutdown): Handle p->indent.
4971 (html_text::check_emit_text): Simplified.
4972 (html_text::do_emittext): Reset `blank_para'.
4973 (html_text::do_para): Add new parameter for indentation; updated
4975 (html_text::remove_indent): New function.
4976 (html_text::do_space): Handle verbatim text properly.
4977 (html_text::ever_emitted_text, html_text::starts_with_space,
4978 html_text::remove_para_align): New functions.
4979 (html_text::dump_stack_element, html_text::dump_stack): Updated.
4981 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4984 * src/devices/grohtml/post-html.cc: Include html-table.h.
4985 (INDENTATION): Removed.
4986 (text_glob): Added many `is_<foo>' functions.
4987 Added table description `tab'.
4988 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4990 (list): Add `insert' and `move_to' member functions.
4991 (page): Add `insert_tag' member function.
4992 (page::dump_page) [DEBUG_TABLES]: Improved.
4993 (html_printer): Add `table' and `max_linelength' elements.
4994 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4995 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4996 `remove_tabs', `remove_courier_tabs'.
4997 (html_printer::emit_raw): Handle indentation.
4998 (html_printer::do_center, html_printer::write_header): Updated.
4999 (html_printer::is_courier_until_eol): Check for tag.
5000 (html_printer::do_linelength): Handle max_linelength.
5001 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5003 (html_printer::do_tempindent): Updated.
5004 (html_printer::do_indentedparagraph): Removed.
5005 (html_printer::do_indent): Simplified.
5006 (html_printer::do_eol): Use `ever_emitted_text'.
5007 (html_printer::do_flush, html_printer::do_links): Don't call
5009 (html_printer::do_break): Handle end_tempindent.
5010 (html_printer::troff_tag): Get argument.
5012 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5013 (html_printer::flush_page): Call `lookahead_for_tables'.
5014 Don't call `done_table'.
5015 (html_printer::add_to_sbuf): Always call do_indent.
5017 * src/devices/grohtml/Makefile.sub: Updated.
5019 * tmac/an-old.tmac (TP): Don't handle html device specially.
5020 (an-do-tag-html): New function which will be used instead of
5021 `an-do-tag' if html device is used.
5023 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5025 * tmac/s.tmac (@IP): Don't handle html device specially.
5026 (@IP-html): New function which will be used instead of `@IP' if
5027 html device is used.
5029 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5030 is a hack which will eventually vanish again.
5031 (PIMG): Handle `-C' option correctly if not html.
5034 2002-07-17 Werner LEMBERG <wl@gnu.org>
5036 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5038 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5040 * contrib/pic2graph/pic2graph.*: Use convert(1).
5041 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5043 2002-07-14 Bernd Warken <bwarken@mayn.de>
5045 * tmac/groff_trace.man: New file.
5046 * tmac/Makefile.sub: Updated.
5049 2002-07-13 Werner LEMBERG <wl@gnu.org>
5051 * src/roff/groff/groff.man: Add some cross references.
5053 2002-07-12 Werner LEMBERG <wl@gnu.org>
5055 * src/roff/troff/input.cc (substring_request): Add warnings for
5056 string indices out of range.
5058 2002-07-11 Werner LEMBERG <wl@gnu.org>
5060 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5061 * font/devdvi/*EC: Regenerated.
5063 2002-07-10 Bernd Warken <bwarken@mayn.de>
5065 * man/groff_char.man: Updated and extended.
5067 2002-07-10 Werner LEMBERG <wl@gnu.org>
5069 * src/roff/troff/input.cc (length_macro): Renamed to...
5070 (length_request): This.
5071 Move call of `tok.next()' to the very end, otherwise the register
5072 value hasn't been updated yet.
5073 (init_input_requests): Updated.
5075 2002-07-09 Werner LEMBERG <wl@gnu.org>
5077 * src/roff/troff/input.cc (substring_macro): Renamed to...
5078 (substring_request): This.
5079 (init_input_requests): Updated.
5080 * src/roff/troff/request.h: Updated.
5082 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5084 * src/roff/grog/grog.sh: Fix typo.
5086 2002-07-08 Werner LEMBERG <wl@gnu.org>
5088 * win32-diffs: Updated.
5090 Handle `papersize' keyword properly in DESC.
5092 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5094 Updated all callers.
5095 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5097 * src/include/paper.h: Updated.
5099 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5100 Other minor C syntax fixes.
5101 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5102 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5104 (lbp_printer::lbp_printer): Pass three arguments.
5105 Set paper dimensions properly.
5106 (make_printer, main): Updated.
5107 (handle_unknown_desc_command): Fix error messages.
5108 (main): Handle papersize keyword in DESC properly.
5110 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5112 (lbp_printer::lbp_printer): Pass an argument.
5113 Set paper_size properly.
5114 (handle_unknown_desc_command): Removed.
5115 (make_printer, main): Updated.
5116 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5118 * man/groff_font.man, NEWS: Updated.
5120 2002-07-07 Werner LEMBERG <wl@gnu.org>
5122 Integrated eqn2graph, contributed by Eric S. Raymond.
5124 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5126 * Makefile.in, NEWS: Updated.
5128 2002-06-04 Werner LEMBERG <wl@gnu.org>
5130 Changing the substring request to make it fit better with other
5131 string manipulation functions in other programming languages:
5132 Index 0 is now the first character in the string, and index -1
5133 indicates the last character. Since this request didn't work
5134 properly anyway in the last release, it doesn't harm too much to
5137 * src/roff/troff/input.cc (substring_macro): Use loops to get
5138 the real string length (ignoring COMPATIBLE_SAVE and
5139 COMPATIBLE_RESTORE) and offsets.
5140 Implement change described above.
5142 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5143 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5145 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5147 2002-06-03 Werner LEMBERG <wl@gnu.org>
5149 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5150 COMPATIBLE_RESTORE are completely ignored.
5152 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5154 (macro): `length' field renamed to `len'.
5155 Added new field `empty_macro' (1 if macro is empty), to be used
5156 instead of checking `len'.
5157 Updated all callers.
5158 (macro::empty): Updated.
5159 (macro::length, macro::set, macro::get): New functions.
5160 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5162 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5163 COMPATIBLE_RESTORE pairs.
5164 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5165 * src/roff/troff/request.h: Updated.
5167 * doc/groff.texinfo: Document .chop's behaviour better.
5169 2002-06-02 Werner LEMBERG <wl@gnu.org>
5171 * doc/pic.ms: Fix documentation for the addition of positions.
5173 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5175 2002-06-29 Werner LEMBERG <wl@gnu.org>
5177 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5179 * src/roff/troff/input.cc (have_string_arg): New global variable.
5180 (read_mode): New enumeration.
5181 (read_escape_name): Use it. Update all calls.
5182 (read_long_escape_name): Use it. Update all calls.
5183 Set have_string_arg if appropriate.
5184 (get_char_for_escape_name): Add parameter for handling space
5186 (interpolate_string_with_args, decode_string_args): New functions.
5187 (get_copy, token::next): Call it if necessary.
5188 (interpolate_string): Fix error message.
5190 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5193 2002-06-24 Bernd Warken <bwarken@mayn.de>
5195 * man/groff_tmac.man: Updated and extended.
5197 2002-06-24 Werner LEMBERG <wl@gnu.org>
5199 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5201 2002-06-23 Werner LEMBERG <wl@gnu.org>
5203 * doc/pic.ms: Improve documentation of composite block objects.
5205 2002-06-22 Werner LEMBERG <wl@gnu.org>
5207 * src/roff/troff/input.cc (init_registers): Add three registers
5208 `seconds', `minutes', and `hours' to hold the current time.
5210 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5213 2002-06-20 Werner LEMBERG <wl@gnu.org>
5215 Make \X accept both `\ ' and `\~', converting them to single space
5218 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5219 (token::unstretchable_space): New inline function.
5220 * src/roff/troff/input.cc (token::next, token::delimiter,
5221 token::description, token::add_to_node_list, token::process): Handle
5222 TOKEN_UNSTRETCHABLE_NODE.
5223 (encode_char): Handle tok.stretchable_space and
5224 tok.unstretchable_space.
5226 * NEWS, doc/groff.texinfo: Document it..
5228 2002-06-19 Werner LEMBERG <wl@gnu.org>
5230 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5232 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5233 keyword to enable/disable SGR output.
5234 (tty_printer::change_fill_color): New function.
5235 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5237 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5240 2002-06-18 Werner LEMBERG <wl@gnu.org>
5242 Add a `color' request and a `.color' register to control usage of
5245 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5246 (color_flag): This (which is the inverse).
5247 (activate_color): New function.
5248 (main, init_input_requests): Updated.
5249 * src/roff/troff/troff.h, src/roff/troff/node.cc
5250 (troff_output_file::fill_color, troff_output_file::glyph_color):
5253 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5254 Document the changes.
5256 2002-06-17 Colin Watson <cjwatson@debian.org>
5258 Circumvent bug in autoconf 2.53 regarding top_builddir.
5260 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5261 * Makefile.in, doc/Makefile.in:
5262 s/@top_builddir@/@groff_top_builddir@/.
5263 * configure: Regenerated (with autoconf 2.53).
5265 2002-06-17 Werner LEMBERG <wl@gnu.org>
5267 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5268 `paperwidth' and `paperlength' for the `papersize' keyword.
5270 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5272 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5274 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5276 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5277 html_printer::do_linelength, html_printer::do_pageoffset,
5278 html_printer::do_indentation, html_printer::do_tempindent,
5279 html_printer::do_break, html_printer::begin_page): Clear indented
5281 * tmac/html.tmac: Disable hyphenation.
5283 2002-06-15 Werner LEMBERG <wl@gnu.org>
5285 Don't produce HTML files if utility programs are missing.
5287 * Makefile.in (make_html, make_install_html): New variables.
5288 (MDEFINES): Updated.
5290 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5292 * configure.ac: Use it.
5293 * configure: Regenerated.
5295 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5296 (HTMLEXAMPLESFILES): This new variable.
5297 (EXAMPLESIMAGEFILES): Renamed to...
5298 (HTMLEXAMPLEIMAGEFILES): This.
5299 (CLEANADD): Add HTMLEXAMPLEFILES.
5300 (all): Use `make_html'.
5302 (install_data): Use `make_install_html'.
5303 Move html stuff to...
5304 (install_html): This new target.
5305 (uninstall_sub): Updated.
5307 2002-06-14 Bernd Warken <bwarken@mayn.de>
5309 * src/roff/grog/Makefile.sub (grog): Renamed to...
5311 (grog): New rule to always install grog.sh as grog.
5313 2002-06-08 Bernd Warken <bwarken@mayn.de>
5315 * src/roff/grog/grog.pl: Fix typo.
5317 2002-06-07 Werner LEMBERG <wl@gnu.org>
5319 * doc/groff.texinfo: Add more info on .tr arguments.
5321 2002-06-05 Werner LEMBERG <wl@gnu.org>
5323 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5325 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5326 * configure: Regenerated.
5328 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5330 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5332 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5334 2002-06-04 Werner LEMBERG <wl@gnu.org>
5336 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5337 is not initialized at the time we need it in case `--prefix' hasn't
5338 been set. Check for `ac_default_prefix' also.
5339 Test for `papersize' keyword also and generalize allowed whitespace.
5340 * configure: Regenerated.
5342 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5345 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5347 (src_version, src_revision): New variables to avoid overwriting
5348 from parent make process.
5349 (version.cc): Updated.
5351 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5352 (linebuf, linebufsize): New global variables.
5353 (sys_fatal): Use `fatal' to abort properly.
5354 (get_line): New function.
5355 (get_resolution): Use it.
5356 Improve error messages.
5357 (get_papersize): Check `papersize' also.
5359 Improve error messages.
5361 2002-06-03 Werner LEMBERG <wl@gnu.org>
5363 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5364 should be removed only if builddir is not srcdir.
5365 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5366 (clean): Depend on `mostlyclean'.
5367 (distclean): Depend on `clean'.
5368 (realclean, extraclean): Depend on `distclean'.
5369 (.y.cc, .y.o): Simplified. The output files are no longer written
5370 to srcdir but to builddir.
5371 * Makefile.in (MDEFINES): Add `version' and `revision'.
5372 (uninstall_dirs): Fix order of directories.
5373 * doc/Makefile.sub (version, revision): Removed.
5374 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5375 Added `HTMLDOCFILES'.
5376 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5377 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5378 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5381 * doc/texinfo.tex (\authortt): New macro.
5382 (\shortcontt): Define.
5383 (\titlepage): Set \tt to \authortt while defining \authorfont.
5384 (\appendixbox): New macro.
5385 (\chapmacro, \appendixentry): Use \appendixbox to get even
5386 indentation for letters.
5387 (\summarycontents): Set \tt.
5388 (\internalpagesize): Add two arguments for real paper width and
5389 height as needed by pdfTeX.
5390 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5392 (\tempdima, \tempdimb): New temporary dimensions.
5393 (\pagesizesyyy): Updated.
5395 2002-06-02 Werner LEMBERG <wl@gnu.org>
5397 Adding a new keyword `papersize' to the DESC file format (similar
5398 but not completely identical to grolbp's extension). grops now has
5399 a -p command line option to override `papersize'. Finally, grolbp
5400 has been adapted to the new syntax.
5402 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5403 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5405 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5406 (CCSRCS): Add `paper.cc'.
5408 * src/include/font.h (font): Add `papersize' element.
5409 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5410 (font::scan_papersize): New function.
5411 (font::load_desc): Use it for handling `papersize' keyword.
5412 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5414 * src/devices/grops/ps.cc: Include paper.h.
5415 (user_paper_length): New global variable.
5416 (ps_printer): Use paper length as initializer.
5417 (make_printer): Updated.
5418 (main): Handle new `-p' option.
5419 * src/devices/grops/grops.man: Updated.
5421 * src/devices/grolbp/lbp.cc: Include paper.h.
5422 s/papersizes/lbp_papersizes/.
5423 (set_papersize): Use new `papersizes' array.
5424 (handle_unknown_desc_command): Don't handle `papersize'.
5425 (main): Use `font::scan_papersize' for handling `-p' option.
5426 * src/devices/grolbp/grolbp.man: Updated.
5428 * man/groff_font.man: Document `papersize'.
5431 2002-05-30 Werner LEMBERG <wl@gnu.org>
5433 * src/devices/grops/TODO: Updated.
5434 * src/devices/grops/grops.man: More info on paper formats.
5435 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5437 2002-05-29 Werner LEMBERG <wl@gnu.org>
5439 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5440 to list only if srcdir != currdir.
5441 (distfiles): New target.
5443 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5444 (NOMAKEDIRS): New variable.
5447 2002-05-26 Werner LEMBERG <wl@gnu.org>
5449 Add .output request, similar to \! at top-level.
5451 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5452 (output_request): New function.
5453 (init_input_requests): Add it.
5455 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5458 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5459 (prepare_examples): Fix typo.
5460 * doc/groff.texinfo (@direntry): Fix it.
5462 2002-05-25 Werner LEMBERG <wl@gnu.org>
5464 Including the doc subdir into groff's Makefile system.
5466 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5467 * configure.ac: Use it.
5468 Generate `doc/Makefile'.
5469 * configure: Regenerated.
5471 * Makefile.in (infodir, INSTALL_INFO): New variables.
5472 (MDEFINES, uninstall_dirs): Updated.
5473 (OTHERDIRS): Add `doc'.
5474 * Makefile.comm (CLEANDIRADD): New variable.
5475 (mostlyclean): Use it.
5477 * doc/Makefile.sub, doc/Makefile.in: New files.
5478 * doc/Makefile: Removed.
5480 * NEWS, INSTALL: Updated.
5482 2002-05-24 Werner LEMBERG <wl@gnu.org>
5484 * doc/homepage.ms: Renamed to ...
5485 * doc/webpage.ms: This.
5488 2002-05-23 Werner LEMBERG <wl@gnu.org>
5490 Integrating the `mom' macro package, contributed by Peter Schaffter
5493 * contrib/mom/*: New subdirectory tree.
5494 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5495 be used for documentation files.
5496 (MDEFINES, uninstall_dirs): Use them.
5497 (OTHERDIRS): Add contrib/mom.
5498 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5500 * MANIFEST, NEWS: Updated.
5502 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5504 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5505 if at outer level; at start-up we are at outer level.
5507 * src/roff/troff/input.cc (do_suppress): Implement it.
5510 Add option -p to show progress information.
5511 pre-grohtml will now render only one page at a time, reducing the
5512 size of needed disk resources enormously.
5514 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5515 (imagePageName): New global variable.
5516 (psPageName, show_progress, currentPageNo): New global variables.
5517 (html_system): Close saved stderr and stdout handles.
5518 (write_end_image): Accept a parameter to control \O escape.
5519 (write_start_image): Adapted to new \O meaning.
5520 (char_buffer::write_upto_newline): Updated.
5521 (createAllPages): Replaced with...
5522 (createPage): This new function to create a single page for images.
5523 It uses `psselect' from the psutils package.
5524 (removeAllPages): Removed.
5525 (createImage): Updated.
5526 Handle progress display.
5527 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5528 (scanArguments): Add option -p.
5529 (makeTempFiles): Updated to create temp files for psPageName and
5531 (removeTempFiles): Removed.
5534 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5535 html_printer::write_header): Append `\0' to `buffer'.
5536 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5538 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5539 Handle `text_emitted'.
5540 (html_text::table_is_void): Slightly rewritten.
5541 (stop): New external symbol.
5542 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5543 (html_text::shutdown): Call `dump_stack'.
5544 (html_text::do_space): Rewritten.
5545 * src/devices/grohtml/grohtml.man: Document -p and the need of
5548 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5550 Call \O[0] if `ps4html' is active.
5551 * tmac/s.tmac (@EQ, @EN): Handle html better.
5553 * tmac/html.tmac: Don't use black for background colour.
5555 * src/roff/troff/node.cc: Include `div.h'.
5556 (troff_output_file::really_print_line): Don't use `is_on'.
5557 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5558 troff_output_file::check_charinfo,
5559 troff_output_file::put_char_width, troff_output_file::put_char,
5560 troff_output_file::determine_line_limits, troff_output_file::draw,
5561 real_output_file::begin_page, glyph_color_node::tprintf,
5562 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5564 (troff_output_file::really_on): Call `do_motion'.
5565 (suppress_node::tprint): Use `get_page_number' instead of `%'
5567 Call `reset_output_registers' conditionally on `is_on'.
5569 * doc/groff.texinfo: Document new syntax of \O.
5570 * NEWS, man/groff_diff.man: Updated.
5572 2002-05-22 Werner LEMBERG <wl@gnu.org>
5574 * MORE.STUFF: Add info about David Frey's deroff implementation.
5577 2002-05-16 Werner LEMBERG <wl@gnu.org>
5579 Pic's `with' attribute now accepts positions.
5581 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5582 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5584 (object_spec): Add rule for `WITH' and `position'.
5585 (relative_path): Give `corner' the precedence of `CHOP'.
5586 * src/preproc/pic/object.h (path): New members `pos' and
5588 * src/preproc/pic/object.cc: Updated initializers of `path'.
5589 (path::follow): Handle `is_position'.
5591 * doc/pic.ms: Completely updated grammar description.
5592 Many typographical improvements.
5594 2002-05-15 Werner LEMBERG <wl@gnu.org>
5596 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5597 code of x in range 0-127) also.
5598 * doc/groff.texinfo, man/groff_diff.man: Updated.
5600 Added keywords `north', `south', `east', and `west' for corners
5603 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5605 (yylex): Handle them.
5606 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5607 (corner): Handle them.
5609 2002-05-14 Werner LEMBERG <wl@gnu.org>
5611 * src/devices/grops/grops.man: Clarify handling of `download' file.
5613 2002-05-11 Werner LEMBERG <wl@gnu.org>
5615 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5616 Jeffrey Friedl <jfriedl@yahoo.com>.
5618 * src/roff/troff/input.cc (spread_limit, warn_scale,
5619 warn_scaling_indicator): New global variables.
5620 (warnscale_request, spreadwarn_requests): New functions.
5621 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5622 (init_input_requests): Updated.
5623 (error_type): Add `OUTPUT_WARNING'.
5624 (do_error): Handle it.
5625 (output_warning): New warning function which shows output location.
5626 * src/roff/troff/env.h (spread_limit): New external variable.
5627 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5629 (distribute_space): Emit warning if added space is larger than
5631 (environment::possibly_break_line): Emit warning if a line can't
5632 be adjusted on both sides.
5634 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5636 2002-05-08 Werner LEMBERG <wl@gnu.org>
5638 * src/roff/troff/node.cc (special_node::special_node): Use
5639 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
5640 \X''\% crashes, for example.
5642 * doc/groff.texinfo: Document \! and \? used at top-level.
5644 2002-05-06 Werner LEMBERG <wl@gnu.org>
5646 * src/preproc/pic/pic.man: Fix some keyword syntax.
5647 Other minor typographical fixes.
5649 * src/roff/groff/groff.man: Fix typos.
5651 2002-05-04 Werner LEMBERG <wl@gnu.org>
5653 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5654 (ShortOpt[]): This to avoid problems with refer.
5656 * doc/pic.ms: Fix typo.
5657 Fix pic grammar description.
5659 * tmac/an-old.tmac (ne): Use de1, not de.
5661 2002-05-03 Werner LEMBERG <wl@gnu.org>
5663 * doc/groff.texinfo: Finished separation of glyphs and characters.
5664 Don't use the string `Appendix' for appendix headers (both in
5665 the text and the table of contents).
5666 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5669 Use registers LL and LT (similar to -ms) for controlling the
5670 length of title and line, respectively, in the -man and -mdoc
5673 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5674 (doc-setup-page-layout): Use \n[LL] and \n[LT].
5675 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5677 (an-header, an-p-footer): Use \n[LT].
5678 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5679 doc/groff.texinfo: Document it.
5681 2002-05-02 Werner LEMBERG <wl@gnu.org>
5683 * doc/fdl.texi: New file.
5684 * doc/groff.texinfo: Include it.
5685 Define and use @copying.
5686 Starting with separating glyph, symbol, and character.
5688 2002-04-27 Werner LEMBERG <wl@gnu.org>
5690 * Makefile.in (EXEEXT): Set it.
5691 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5694 * src/include/nonposix.h: Define GS_NAME.
5695 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5697 Some preliminary changes for EMX support under OS/2.
5699 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5700 __EMX__ similar to __MSDOS__.
5701 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5703 2002-04-25 Werner LEMBERG <wl@gnu.org>
5705 * doc/groff.texinfo: Integrated groff_out.man.
5708 2002-04-23 Werner LEMBERG <wl@gnu.org>
5710 * man/groff_out.man: Minor fixes.
5712 2002-04-23 Werner LEMBERG <wl@gnu.org>
5714 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5715 correct page references.
5716 Fixed many index entries.
5718 2002-04-23 Bernd Warken <bwarken@mayn.de>
5720 * man/roff.man: Enlarged.
5722 2002-04-22 Werner LEMBERG <wl@gnu.org>
5724 * doc/groff.texinfo: More examples, other fixes.
5726 2002-04-20 Werner LEMBERG <wl@gnu.org>
5728 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5729 will now form a chain, e.g.
5738 This is for compatibility with plan 9's troff.
5740 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5744 * doc/groff.texinfo: Add documentation of remaining requests and
5747 2002-04-19 Werner LEMBERG <wl@gnu.org>
5749 * doc/groff.texinfo: Add documentation of remaining escapes.
5751 * font/devdvi/generate/tc.map: Remove entry for `sr'.
5752 * font/devdvi/*TC: Regenerated.
5754 2002-04-18 Werner LEMBERG <wl@gnu.org>
5756 * src/roff/troff/input.cc (token::next): Make \H behave consistently
5757 if not in compatibility mode, i.e., increment relative to the
5759 * doc/groff.texinfo: Updated accordingly.
5761 2002-04-17 Werner LEMBERG <wl@gnu.org>
5763 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5765 2002-04-16 Bernd Warken <bwarken@mayn.de>
5767 * src/roff/groff/groff.man: Improve documentation of -P option.
5770 2002-04-15 Werner LEMBERG <wl@gnu.org>
5772 Add new escape \F to switch font family.
5774 * src/roff/troff/input.cc (token::next): Handle \F.
5775 * src/roff/troff/env.cc (environment::set_family): Handle
5777 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5780 2002-04-14 Werner LEMBERG <wl@gnu.org>
5782 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5785 2002-04-13 Werner LEMBERG <wl@gnu.org>
5787 Implement \f[] as an alternative to \fP. Change \mP and \MP to
5788 \m[] and \M[], respectively.
5790 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5791 (symbol::symbol): Handle NULL string and empty string differently.
5792 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5793 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5794 Add optional parameter.
5795 Updated calling functions.
5796 (get_copy, do_glyph_color, do_fill_color, token::next): Use
5798 * src/roff/troff/env.cc (environment::set_font): Ditto.
5800 * src/preproc/pic/troff.cc (troff_output::set_fill,
5801 troff_output::reset_color: Updated.
5803 * tmac/www.tmac: Updated.
5805 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5806 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5809 * tmac/Xps.tmac: Remove some redundant code.
5811 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5812 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5813 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5816 2002-04-13 Bernd Warken <bwarken@mayn.de>
5818 * src/include/printer.h, src/libs/libdriver/printer.cc
5819 (printer::change_fill_color): New member function.
5820 * src/libs/libdriver/input.cc (parse_D_command): Use it.
5822 2002-04-12 Werner LEMBERG <wl@gnu.org>
5824 * doc/groff.texinfo: Completed pass on gtroff reference.
5826 2002-04-11 Werner LEMBERG <wl@gnu.org>
5828 * doc/groff.texinfo: More fixes.
5830 2002-04-11 Bernd Warken <bwarken@mayn.de>
5832 * src/include/color.h: Decorate with `const'.
5835 * src/libs/libgroff.color.cc: Decorate with `const'.
5837 (color::color): Initialize members.
5838 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5839 command according to the documentation.
5841 * man/groff_out.man: Updated.
5844 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
5846 * src/preproc/html/pre-html.cc (write_start_image): Remove
5848 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5850 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5851 \C'hy' caused an assertion failure.
5853 * src/roff/troff/env.cc (environment::environment): Initialize
5855 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5857 2002-04-10 Werner LEMBERG <wl@gnu.org>
5859 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5860 Document pvs request and .pvs register.
5862 2002-04-09 Werner LEMBERG <wl@gnu.org>
5864 * doc/groff.texinfo: Improve and fix documentation of diversions
5867 2002-04-08 Werner LEMBERG <wl@gnu.org>
5869 * doc/groff.texinfo: Fix documentation of drawing functions.
5872 2002-04-07 Werner LEMBERG <wl@gnu.org>
5874 * doc/groff.texinfo: Better documentation of double quotes as
5878 2002-04-06 Werner LEMBERG <wl@gnu.org>
5880 * man/groff_font.man: Document names of special characters better.
5881 * doc/groff.texinfo: Minor improvements.
5883 * tmac/lbp.tmac: Load latin1.tmac.
5884 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5886 * font/devX*/*: Regenerated (all chars > 0x80 removed).
5888 2002-04-05 Werner LEMBERG <wl@gnu.org>
5890 * tmac/tty.tmac: Don't use shc request.
5891 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5894 * man/groff_diff.man: Minor fixes.
5896 * font/devlbp/*: Remove all `charXXX' entities.
5898 * src/libs/libgroff/font.cc (font::~font): Deallocate
5899 `special_device_coding'.
5900 (font::load): Use `new' for allocating `special_device_coding'.
5901 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5902 Removed unused member.
5904 2002-04-05 Werner LEMBERG <wl@gnu.org>
5906 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5907 (resource_manager::do_begin_binary,
5908 resource_manager::do_begin_data): Use it.
5910 * doc/texinfo.tex: Updated to version 4.2.
5912 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5913 (token::zero_width_break): New inline function.
5914 * src/roff/troff/input.cc (token::next): Use it.
5915 (token::description): Updated.
5916 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5917 (token::add_to_node_list, token::process): Use it.
5918 * NEWS, doc/groff.texinfo: Updated.
5920 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5921 * tmac/tty.tmac: Add missing backslash.
5923 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
5925 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5926 `.ps' register instead of `.s' to handle fractional point sizes.
5927 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5928 limit_box::output): Ditto.
5929 * src/preproc/eqn/other.cc (size_box::compute_metrics,
5930 size_box::output): Ditto.
5931 * src/preproc/eqn/over.cc (over_box::compute_metrics,
5932 over_box::output): Ditto.
5933 * src/preproc/eqn/script.cc (script_box::compute_metrics,
5934 script_box::output): Ditto.
5935 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5936 sqrt_box::output): Ditto.
5938 2002-04-03 Michael Selway <mas@ssl.co.uk>
5940 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5943 2002-04-03 Werner LEMBERG <wl@gnu.org>
5945 * doc/homepage.ms: Reduce title size.
5946 * doc/groff.texinfo: Fix documentation of .t register.
5947 Fix handling of colon.
5950 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5951 only if page length is positive to avoid a loop.
5953 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5956 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
5958 * src/include/nonposix.h, src/roff/groff/pipeline.c:
5959 s/__CYGWIN32__/__CYGWIN__/.
5961 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
5963 * doc/gnu.xpm: New image contributed by Emily Mulley.
5964 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5965 (homepage.html): Be dependent on gnu.eps.
5966 * doc/homepage.ms: Updated to new image.
5968 * src/devices/grohtml/post-html.cc (html_printer): New member
5970 (html_printer::flush_sbuf, html_printer::set_char): Set it.
5971 (html_printer::sbuf_continuation): Use it.
5973 2002-03-28 Werner LEMBERG <wl@gnu.org>
5975 * src/libs/libgroff/getopt.c: Updated to latest version.
5977 * tmac/README: More on hyphen.tex license.
5979 2002-03-26 Larry Kollar <kollar@alltel.net>
5981 * doc/groff.texinfo: Add documentation of most missing requests.
5983 2002-03-25 Werner LEMBERG <wl@gnu.org>
5985 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5986 of `+-', `mu', and `di', respectively.
5988 * font/devascii/R.proto, font/devutf8/R.proto,
5989 font/devlatin1/R.proto, font/devhtml/R.proto,
5990 font/devcp1047/R.proto, font/devlpb/*: Add them.
5991 * font/devps/generate/textmap: Ditto.
5992 * font/devps/*: Regenerated.
5993 * font/devlj4/generate/text.map: Add them.
5994 * font/devlj4/*: Regenerated.
5995 * font/devdvi/generate/tc.map: Use them.
5996 * font/devdvi/generate/texsy.map: Add them.
5997 * font/devdvi/*: Regenerated.
5998 * font/devX*/*: Regenerated.
6000 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6001 tmac/tty-char.tmac: Updated.
6003 * NEWS, man/groff_char.man: Updated.
6005 2002-03-24 Werner LEMBERG <wl@gnu.org>
6007 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6008 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6009 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6010 we use `.fchar' in dvi.tmac.
6011 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6012 * tmac/Xps.tmac: Simplify some char definitions.
6013 Add definition for \[f/].
6014 * man/groff_char.man: Updated for new X.tmac.
6016 * tmac/README: New file.
6018 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6020 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6021 internal .y.o rule took precendence over the .y.cc rule, compiling
6022 the yacc files with gcc instead of g++.
6024 2002-03-23 Werner LEMBERG <wl@gnu.org>
6026 * tmac/dvi.tmac: Add replacement font for `CB'.
6028 * tmac/doc.tmac: s/request/macro/ in messages.
6029 (doc-generic-macro): Improve error message.
6030 * tmac/groff_mdoc.man: Minor improvements.
6032 2002-03-22 Werner LEMBERG <wl@gnu.org>
6034 * doc/groff.texinfo: Document possible conflict between `tr' and
6037 2002-03-21 Werner LEMBERG <wl@gnu.org>
6039 Improve handling of hyphenation patterns. It is now possible to
6040 use most of TeX's pattern files unmodified. To make the process
6041 more flexible, a new request `hpfcode' has been added which
6042 provides a character code mapping for the `hpf' request. See
6043 comment before hpf_getc() for more details.
6045 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6047 (read_patterns_file): Additional parameter for exception dictionary.
6048 Extended to recognize \pattern, \hyphenation, and \endinput.
6049 (do_hyphenation_patterns_file): Updated.
6050 * src/roff/troff/env.h (hpf_code_table): New extern.
6052 * src/roff/troff/input.cc (hpf_code_table): New array.
6053 (init_hpf_code_table, hyphenation_patterns_file_code): New
6055 (hyphenation_code): Handle translation from `trin' correctly.
6056 (main, init_input_requests): Updated.
6057 (charinfo::set_translation): Handle hyphenation code also.
6059 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6062 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6063 char' is used for offsets in hyphenation exceptions.
6065 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6067 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6069 2002-03-20 Larry Kollar <kollar@alltel.net>
6071 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6074 2002-03-18 Werner LEMBERG <wl@gnu.org>
6076 * tmac/html.tmac: Fix serious typo.
6078 2002-03-17 Larry Kollar <kollar@alltel.net>
6080 * doc/groff.texinfo: Add documentation for `writec' request.
6082 2002-03-17 Werner LEMBERG <wl@gnu.org>
6084 Added request `hpfa' to append hyphenation patterns.
6086 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6088 (hyphenation_patterns_file): Renamed to...
6089 (do_hyphenation_patterns_file): This.
6090 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6092 (init_hyphen_requests): Updated.
6093 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6095 2002-03-16 Werner LEMBERG <wl@gnu.org>
6097 Added request `writec' in analogy to `tmc'.
6099 * src/roff/troff/input.cc (write_request): Renamed to...
6100 (do_write_request): This.
6101 Added one parameter.
6102 (write_request, write_request_continue): New functions.
6103 (init_input_requests): Updated.
6104 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6106 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6108 * NEWS: Document it.
6110 2002-03-15 Werner LEMBERG <wl@gnu.org>
6112 * man/groff.man: Add writem request.
6114 Add request `trin' (translate input) to make `.asciify' work
6115 correctly. This is necessary since `charXXX' entity names are no
6116 longer hardcoded in font definition files.
6118 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6119 `translate_input' members.
6120 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6121 charinfo::set_translation_input): New methods.
6122 (charinfo::set_translation): Add third argument.
6123 * src/roff/troff/input.cc (charinfo:set_translation): Set
6125 (do_translate): Add second argument.
6126 (translate_input): New function.
6127 (init_input_requests): Updated.
6128 * src/roff/troff/node.cc (glyph_node::asciify,
6129 composite_node::asciify): Use `get_asciify_code'.
6131 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6133 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6135 2002-03-14 Larry Kollar <kollar@alltel.net>
6137 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6139 2002-03-14 Werner LEMBERG <wl@gnu.org>
6141 Add a new request `sizes' similar to the `sizes' command in DESC
6144 * src/roff/troff/env.cc (override_sizes): New function.
6145 (init_env_requests): Use it.
6146 * src/roff/troff/token.h: Export `read_string'.
6147 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6149 2002-03-12 Werner LEMBERG <wl@gnu.org>
6151 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6153 2002-03-10 Werner LEMBERG <wl@gnu.org>
6155 * tmac/pspic.tmac: Add support for -Tdvi.
6156 * tmac/dvi.tmac: Include pspic.tmac.
6157 * src/devices/grodvi/grodvi.man: Document it.
6160 * font/devlj4/generate/Makefile: Fix URL of metric files.
6162 2002-03-09 Werner LEMBERG <wl@gnu.org>
6164 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6166 2002-03-09 Larry Kollar <kollar@alltel.net>
6168 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6170 2002-03-08 Werner LEMBERG <wl@gnu.org>
6172 * doc/groff.texinfo: Fixes for texinfo 4.1.
6174 2002-03-07 Werner LEMBERG <wl@gnu.org>
6176 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6178 Handle CYGWIN properly.
6180 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6182 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6183 * tmac/lbp.tmac: Add some font translations.
6185 2002-03-02 Werner LEMBERG <wl@gnu.org>
6187 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6188 font/devhtml/R.proto: Remove `charXXX' entries.
6189 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6192 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6193 * font/devlj4/*: Regenerated all font definition files.
6194 * tmac/lj4.tmac: Load latin1.tmac.
6196 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6197 from 2000-06-17: LJ4 metric files are *not* text files.
6199 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6200 register to test for EBCDIC.
6202 2002-03-01 Werner LEMBERG <wl@gnu.org>
6204 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6205 files (as grops already does).
6206 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6208 * src/devices/grops/grops.man: Document comment lines in encoding
6211 * tmac/cp1047.tmac: New file.
6212 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6213 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6214 * tmac/Makefile.sub (NORMALFILES): Updated.
6216 * tmac/ec.tmac: Don't load latin1.tmac again.
6218 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6219 font/devps/generate/dingbats.map,
6220 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6221 font/devps/generate/Makefile (symbolmap): Add header comment.
6222 * font/devps/generate/textmap: Ditto.
6223 Remove `charXXX' entries.
6224 * font/devps/symbolmap: Regenerated.
6225 * font/devps/*: Regenerated all font definition files.
6227 2002-02-28 Werner LEMBERG <wl@gnu.org>
6229 Add color support to grodvi (for drawing colors are currently
6230 translated to gray values).
6232 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6233 (dvi_printer): Add `cur_color' member.
6234 (dvi_printer::set_color): New function.
6235 (draw_dvi_printer): Remove `fill'.
6236 (draw_dvi_printer::fill_next): Pass environment as parameter.
6237 Update code for new color support translated to gray.
6238 (dvi_printer::set_char): Updated.
6239 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6240 changes crossing the page border.
6241 (dvi_printer::draw): Updated.
6242 Remove cases `f' and `F'.
6243 * tmac/dvi.tmac: Add color definitions.
6244 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6246 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6249 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6250 versions of autoconf.
6251 * configure: Updated.
6253 * doc/homepage.ms: Use `.blm'.
6254 * tmac/www.tmac (www-depth): New auxiliary variable.
6255 (www-pop-level): Don't issue HTML tag.
6256 (ULS, ULE, LI): Use absolute indentation.
6258 * src/devices/grops/ps.cc (ps_printer::begin_page,
6259 ps_printer::end_page): Switch forth and back to default color while
6260 starting a new page.
6262 2002-02-27 Werner LEMBERG <wl@gnu.org>
6264 Add EC and TC fonts to devdvi.
6266 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6267 * font/devdvi/generate/cork.map: Renamed to...
6268 * font/devdvi/generate/ec.map: This.
6269 Remove entry for `aq'.
6270 * font/devdvi/generate/tc.map: New file.
6271 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6274 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6275 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6276 * tmac/ec.tmac: New file.
6277 * tmac/Makefile.sub (NORMALFILES): Updated.
6278 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6279 * man/groff_char.man: Check `ECFONTS' register.
6281 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6283 2002-02-26 Werner LEMBERG <wl@gnu.org>
6285 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6286 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6287 * font/devdvi/*: Updated.
6288 * tmac/dvi.tmac: Formatting.
6290 Add font `HBI' for the dvi output.
6291 Add support for font families `T' and `H'.
6293 * font/devdvi/HBI: New file.
6294 * font/devdvi/B: Renamed to ...
6295 * font/devdvi/TB: This.
6296 * font/devdvi/BI: Renamed to ...
6297 * font/devdvi/TBI: This.
6298 * font/devdvi/I: Renamed to ...
6299 * font/devdvi/TI: This.
6300 * font/devdvi/R: Renamed to ...
6301 * font/devdvi/TR: This.
6302 * font/devdvi/H: Renamed to ...
6303 * font/devdvi/HR: This.
6304 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6305 * font/devdvi/generate/Makefile (HBI): New rule.
6307 (R, I, B, BI, H): Renamed to ...
6308 (TR, TI, TB, TBI, HR): This, respectively.
6310 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6311 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6312 Add `styles' and `family' keywords.
6313 * tmac/dvi.tmac: Alias `H' to `HR'.
6314 Add some fspecial requests for italic fonts.
6315 Add TR and TI as special.
6316 Add support for `_' with font CWI.
6318 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6319 operator `:'. Until now, the expression `0:1' would return 2
6322 2002-02-25 Werner LEMBERG <wl@gnu.org>
6324 * man/groff_char.man: Added some missing PS glyph names (from the
6326 * font/devps/generate/textmap, font/devps/symbolmap: Add
6329 * doc/groff.texinfo: Minor additions and fixes.
6330 * man/groff_diff.man: Remove documentation of fp request. This
6331 is already covered in the original troff manual.
6332 Updated to be consistent with other doc files.
6335 2002-02-24 Werner LEMBERG <wl@gnu.org>
6337 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6339 Define new variable OTHERDEVDIRS (containing `font/devlj4
6340 font/devlbp' if not EBCDIC).
6341 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6342 (OTHERDEVDIRS): New variable.
6343 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6344 * configure: Regenerated.
6346 * NEWS, src/devices/grotty/grotty.man: Updated.
6348 2002-02-23 Werner LEMBERG <wl@gnu.org>
6350 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6351 get_line_arg): Honour input level.
6353 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6355 * font/*/*: Implement it in all font files.
6356 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6357 * font/devps/symbolmap: Updated.
6358 * font/devlj4/generate/text.map: Updated.
6359 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6360 * font/devdvi/generate/texmi.map: Updated.
6362 * font/devutf8/R.proto: Remove all `charXXX' entries.
6363 * font/devutf8/NOTES: Updated.
6365 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6368 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6370 * NEWS, man/groff_char.man: Updated.
6372 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6374 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6376 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6378 * src/roff/grog/grog.pl: Fix computation of $refer.
6380 2002-02-19 Werner LEMBERG <wl@gnu.org>
6382 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6383 `snprintf' and `vsnprintf'.
6385 * src/include/htmlindicate.h: Renamed to...
6386 * src/include/htmlhint.h: This.
6387 * src/include/Makefile.sub: Updated.
6388 * src/preproc/eqn/main.cc: Updated.
6390 2002-02-18 Werner LEMBERG <wl@gnu.org>
6392 * man/roff.man, man/groff_out.man, man/groff.man,
6393 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6394 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6396 * win32-diffs: Updated.
6398 2002-02-17 Werner LEMBERG <wl@gnu.org>
6400 * doc/Makefile (clean): Add *.eps.
6401 (MEMACROS): Removed.
6402 (TFLAG): New variable.
6405 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6407 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6409 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6411 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6413 * src/roff/troff/troff.man: Fix order of parameter description.
6417 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6419 Simplify image handling for grohtml.
6422 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6424 (html_text::dump_stack): Don't emit newline while debugging.
6425 (html_text::do_push) [DEBUGGING]: Print more info.
6426 (html_text::check_emit_text): Fix handling of <p>.
6427 * src/devices/grohtml/html.h: Updated.
6428 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6429 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6430 send its data to stderr also.
6432 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6433 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6434 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6436 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6438 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6439 is_inline_image): Removed.
6440 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6441 (graphic_start, graphic_end): Removed.
6442 * src/include/htmlindicate.h: Updated.
6443 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6444 (macroset_template): New global variable.
6445 (makeFileName): Use `macroset_template'.
6446 (write_end_image): Don't take a parameter.
6448 (write_start_image: Don't emit newline.
6449 (char_buffer::write_upto_newline): Updated.
6450 (char_buffer::skip_to_newline): Renamed to ...
6451 (char_buffer::skip_until_newline): This.
6453 (char_buffer::write_file_troff, char_buffer::write_file_html):
6455 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6456 (removeAllPages): Remove `DEBUGGING' conditionals.
6457 (addRegDef, dump_args): New functions.
6458 (char_buffer::do_html, char_buffer::do_image): Handle
6459 `www-image-template' command line variable.
6460 Add more debugging code.
6461 (addps4html): Removed.
6462 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6464 * src/preproc/eqn/main.cc: Include `ctype.h'.
6465 (suppress_html): Removed.
6467 (inline_equation): Use `html_begin_suppress' and
6468 `html_end_suppress'.
6469 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6470 (troff_output::start_picture, troff_output::finish_picture):
6472 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6473 (process_input_file): Updated.
6475 * src/roff/troff/div.cc (page_number): Set page number only if the
6476 `ps4html' register isn't defined.
6477 * src/roff/troff/input.cc (image_no): New external variable.
6478 (do_suppress): Use it.
6479 * src/roff/troff/node.h (suppress_node::image_id): New member.
6480 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6481 (suppress_node::suppress_node): Initialize `image_id' member.
6482 (suppress_node::same): Handle `image_id' also.
6483 (suppress_node::copy): Updated.
6484 (last_image_id): New global variable.
6485 (suppress_node::tprint): Use it.
6487 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6489 * tmac/pspic.mac (PSPIC): Fix html support.
6490 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6491 * tmac/www.tmac (www-image-template): Set up.
6492 (HTMLINDEX): Renamed to...
6494 (BODYCOLOR): Renamed to...
6496 (BACKGROUND): Renamed to...
6498 (URL): Change order of parameters for consistency.
6499 (MAILTO): Renamed to...
6501 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6502 (IMG, PIMG, MPIMG): This.
6503 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6505 (LINKS): Renamed to...
6507 (LINE): Renamed to...
6509 (NO-AUTO-RULE): Renamed to...
6511 (HTML-TL): Renamed to...
6513 (UL-BEGIN, UL-END): Renamed to...
6515 (DROPCAP): Renamed to...
6517 (TS, TE, EQ, EN): Provide default definitions.
6518 (www-make-unique-name): Updated.
6519 (HTML-IMAGE-INLINE): Fix typo.
6520 * tmac/groff_www.man: Updated.
6522 * doc/Makefile (homepage.html): Add option -r to grohtml.
6523 Use shortened image name.
6524 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6525 * doc/homepage.ms: Updated and extended.
6527 2002-02-14 Werner LEMBERG <wl@gnu.org>
6529 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6531 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6532 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6533 (tty_printer::put_color): Use it.
6534 (ttr_printer::end_page): Simplify.
6536 2002-02-13 Werner LEMBERG <wl@gnu.org>
6538 * tmac/groff_tmac.man: Moved to...
6539 * man/groff_tmac.man: This place.
6540 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6542 2002-02-12 Werner LEMBERG <wl@gnu.org>
6544 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6545 $(COMPILE.c) to not include groff's assert.h.
6547 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6549 * NEWS, src/drivers/grotty/grotty.man: Document it.
6551 2002-02-11 Werner LEMBERG <wl@gnu.org>
6553 * src/libs/snprintf/snprintf.c: Updated to latest version
6556 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6557 test whether there is `.]' also.
6558 Don't check for spaces after `.['.
6559 * src/roff/grog/grog.sh: Do the same.
6561 2002-02-10 Werner LEMBERG <wl@gnu.org>
6565 * src/libs/libgroff/illegal.cc: Renamed to ...
6566 * src/libs/libgroff/invalid.cc: This.
6567 (illegal_char_table): Renamed to ...
6568 (invalid_char_table): This.
6569 * src/libs/libgroff/Makefile.sub: Updated.
6570 * win32-diffs: Updated.
6572 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6573 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6574 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6575 font::load), src/preproc/eqn/main.cc (read_line, main),
6576 src/preproc/eqn/lex.cc (file_input::read_line),
6577 src/preproc/pic/lex.cc (file_input::read_line,
6578 simple_file_input::get, simple_file_input::peek),
6579 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6580 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6581 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6582 do_bib), src/preproc/tbl/main.cc (table_input::get),
6583 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6584 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6585 do_zero_width, read_request, encode_char, ps_get_line,
6586 transparent_file, get_char_for_escape_name, transparent_translate,
6587 asciify, input_char_description, read_string, set_string),
6588 src/roff/troff/env.cc (environment::add_html_tag),
6589 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6591 * src/include/lib.h: Updated.
6593 * src/preproc/eqn/eqn.cc: Removed.
6597 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6599 2002-02-09 Werner LEMBERG <wl@gnu.org>
6601 * doc/gnu.xpm: New image.
6602 * doc/Makefile (DOCS): Add homepage.ps.
6603 Add rules for converting xpm->png and xpm->eps.
6604 Use `gnu.{xpm,eps}' as image names.
6605 * doc/homepage.ms: Updated.
6607 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6609 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6610 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6611 Remove calls to `B1' and `B2'
6612 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6613 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6614 auxiliary variables for MARGIN-PNG-IMAGE.
6615 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6616 auxiliary macros for MARGIN-PNG-IMAGE.
6617 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6619 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6620 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6621 (DROPCAP): New macro to produce dropcap characters.
6622 (www-do-image): Renamed back to...
6623 (HTML-DO-IMAGE): This.
6624 Updated all callers.
6626 * doc/Makefile (gnubw.eps): Updated.
6627 * doc/homepage.ms: Updated.
6629 2002-02-08 Werner LEMBERG <wl@gnu.org>
6631 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6632 Added `linethick' to table in section `Style Variables'.
6634 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
6636 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6638 2002-02-07 Werner LEMBERG <wl@gnu.org>
6640 Adding options -C (compatibility mode) and -c (grotty's old output
6643 * src/roff/nroff/nroff.sh: Implement it.
6645 * NEWS, src/roff/nroff/nroff.man: Updated.
6647 * PROBLEMS: Document bison 1.32 bug.
6649 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6651 * src/roff/troff/node.cc (make_tfont): Define it earlier.
6652 * src/roff/troff/div.h: Add prototype for `end_diversions'.
6653 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6654 * src/roff/troff/env.h: Add prototype for `title'.
6656 Adding EBCDIC support to grotty.
6658 * src/devices/grotty/tty.cc (CSI): New macro.
6659 (SGR_*, tty_printer::put_color): Use it.
6661 2002-02-06 Werner LEMBERG <wl@gnu.org>
6663 Implementing color support in grotty. The new switch -c activates
6664 the old drawing scheme, disabling color at the same time. The new
6665 switch `-i' selects italic instead of underlining (SGR only).
6667 * src/devices/grotty/tty.cc (putstring): New define instead of
6668 `fputs'. Updated all callers.
6669 (old_drawing_scheme): New global variable.
6670 (COLOR_CHANGE): New enum value.
6671 (SGR_*): New defines containing color handling escape sequences.
6672 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6673 (glyph): New members `back_color_idx' and `fore_color_idx'.
6674 (glyph::order): Add COLOR_CHANGE.
6675 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6676 `is_underline', `is_bold', `cu_flag', `tty_colors'.
6677 New methods `make_underline', `make_bold', `color_to_idx',
6678 `change_color', `put_color'.
6679 (cu_flag): Moved into `tty_printer' class.
6680 (tty_printer::tty_printer): Initialize colors.
6681 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6682 tty_printer::draw, tty_printer::end_page): Handle colors also.
6683 (main): Add options `-c' and `-i'.
6685 * NEWS, src/devices/grotty/grotty.man: Updated.
6687 * src/include/errarg.h (errarg): Add support for `unsigned int'.
6688 * src/libs/libgroff/errarg.c: Implement it.
6690 * src/include/printer.h (printer): Add `change_color' method
6691 (currently used by grotty only).
6692 * src/libs/libdriver/printer.cc: Implement it.
6693 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6694 call to `pr->change_color'.
6696 * src/roff/troff/node.cc (troff_output_file::fill_color,
6697 troff_output_file::glyph_color): Call `do_motion'.
6699 * tmac/tty.tmac: Add color definitions.
6701 * src/roff/groff/groff.man: Minor fixes.
6703 2002-02-05 Bernd Warken <bwarken@mayn.de>
6705 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6706 it. This is a preparation for future changes.
6708 2002-02-05 Werner LEMBERG <wl@gnu.org>
6710 * src/roff/troff/input.cc (process_input_stack): Fix the case
6711 where leading spaces are followed by \f or \s; previously, an
6712 incorrect space width has been used.
6714 * doc/roff.man (quoted_char): Fix argument.
6715 (comment): Define string.
6717 2002-02-04 Larry Kollar <kollar@alltel.net>
6719 * doc/groff.texinfo: More fixes.
6721 2002-02-04 Werner LEMBERG <wl@gnu.org>
6723 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6724 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6725 `restore_compatibility' before `output_string' -- the LINE_STRING
6726 register now already contains proper switches from and to
6729 * man/groff_char.man: Add Euro symbol.
6730 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6731 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6732 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6735 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6737 (.texinfo.html): Add support for texinfo->html.
6739 2002-02-03 Werner LEMBERG <wl@gnu.org>
6741 Added three new requests `ds1', `as1', and `ami'. The former two
6742 are equivalent to `ds' and `as' with the difference that
6743 compatibility mode is saved on entry, switched off during string
6744 expansion, and restored on exit. The latter is the pendant to `dei'
6747 (do_define_string): Use `define_mode' and `calling mode'.
6748 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6749 end of string, respectively.
6750 (define_string, append_string): Use `calling_mode'.
6751 (define_nocomp_string, append_nocomp_string,
6752 define_string_indirect): New functions.
6753 (init_input_requests): Updated.
6754 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6756 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6757 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
6758 mm macro package accesses this string register directly.
6759 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6761 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
6764 2002-02-02 Larry Kollar <kollar@alltel.net>
6766 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6768 2002-01-31 Werner LEMBERG <wl@gnu.org>
6770 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6772 2002-01-31 Bernd Warken <bwarken@mayn.de>
6774 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6775 * man/groff_out.man: Revised and updated.
6777 2002-01-30 Bernd Warken <bwarken@mayn.de>
6779 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6780 out the unused `{' and `}' commands. Undefined by default.
6781 (IntArray): Make `data' private.
6782 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6783 new methods instead.
6784 (skip_line_D, skip_to_end_of_line): New functions.
6785 (get_D_fixed_args): Use `skip_line_D'.
6786 Changed to handle dummy odd arguments by ...
6787 (get_D_fixed_args_odd_dummy): This new function.
6788 (get_D_variable_args): Split some code into ...
6789 (get_possibly_integer_args): This new function.
6790 (send_draw): Use more `const'.
6791 (delete_current_env): New function.
6792 (position_to_end_of_args): Use `size_t'.
6794 (send_draw): Updated.
6795 (parse_D_command): Handle `c', `C', and `t' better.
6799 2002-01-29 Werner LEMBERG <wl@gnu.org>
6802 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6803 @Def...ListEnd which replaces @Def...x. This is necessary to get
6804 proper HTML output -- see the comment in the file for more
6808 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
6810 Fixes to make color changes of 2002-01-21 work with grohtml.
6812 * src/devices/grohtml/post-html.cc (style): Updated.
6813 (html_printer): Remove unused methods.
6814 (html_printer::do_font, html_printer::draw, html_printer::set_char,
6815 html_printer::special): Updated.
6816 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6817 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6818 Added some debugging code.
6819 (html_text::start_tag): Updated.
6820 (html_text::do_push): New method.
6821 (html_text::push_para): Call it.
6822 Add method for handling color.
6823 (html_text::do_color): Updated.
6824 (html_text::shutdown): Handle color.
6825 * src/devices/grohtml/html-text.h (tag_definition): New member
6829 2002-01-28 Werner LEMBERG <wl@gnu.org>
6831 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6833 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
6835 Add two switches -a and -g to control the antialiasing bits for
6836 text and graphics, respectively.
6838 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6840 * src/devices/grohtml/grohtml.man: Document them.
6841 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6843 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6844 (setupAntiAlias): New function.
6845 (createAllPages): Updated.
6846 (scanArguments): Handle `-a' and `-g'.
6847 (main): Call `setupAntiAlias'.
6850 2002-01-27 Werner LEMBERG <wl@gnu.org>
6852 * doc/groff.texinfo (Def*): Call index function after deffn.
6854 * tmac/html.tmac: Call `nroff' request.
6856 2002-01-26 Larry Kollar <kollar@alltel.net>
6858 * tmac/groff_ms.man: Add some omissions.
6860 2002-01-25 Larry Kollar <kollar@alltel.net>
6862 * tmac/groff_ms.man: Typographical improvements.
6864 2002-01-25 Werner LEMBERG <wl@gnu.org>
6866 * doc/groff.texinfo: Updated version and copyright.
6867 * src/devices/grops/grops.man: Updated.
6869 * tmac/groff_tmac.man: Fix `ig' macro.
6871 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6873 Use `.ne' unconditionally everywhere.
6874 (TS): Only insert some vertical space. Doing a page break is no
6875 longer necessary due to the redefinition of the `ne' request.
6877 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6878 warning for unknown subcommands but parse and pass them to the
6881 2002-01-24 Werner LEMBERG <wl@gnu.org>
6883 * tmac/groff_www.man, NEWS: Fix typos.
6885 2002-01-21 Werner LEMBERG <wl@gnu.org>
6887 Complete revision of color support:
6889 Adapt programs to the new libdriver/input.cc.
6891 Color spaces are no longer converted to RGB but transferred as-is
6892 in the troff intermediate output format.
6894 Handle default color gracefully. troff now supports a `default'
6895 color (which can't be changed).
6897 grops will now use the proper color space functions if available.
6901 Note that currently grohtml doesn't handle colors properly. This
6904 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6905 (ui_to_a): New function.
6906 * src/include/lib.h: Updated.
6908 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6909 (color): Simplified; removed all `double' members and methods.
6910 A new array `components' now holds the color parameters.
6911 (color::is_default, color::get_components): New methods.
6912 (color::operator==, color:operator!=): New.
6913 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6914 to make access to the `components' array more comprehensible.
6915 * src/libs/libgroff/color.cc: Implement new color support.
6916 (atoh): Small fixes.
6917 (color::read_encoding): Simplified for new troff intermediate color
6919 (default_color): New global variable.
6921 * src/roff/troff/input.cc (default_symbol): New global variable.
6922 (lookup_color): Use it.
6923 (default_black): Removed.
6924 (do_glyph_color, do_fill_color): Simplified.
6925 (define_color): Handle default color.
6927 (do_if_request): Handle default color.
6928 * src/roff/troff/env.cc (environment::environment): Initialize
6929 colors with `default_color'.
6930 * src/roff/troff/node.cc (troff_output_file::put): Add method
6932 (troff_output_file::hex): Removed.
6933 (troff_output_file::fill_color, troff_output_file::glyph_color):
6934 Updated to include/color.h and libdriver/input.cc.
6936 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6937 fill color properly (identically to the outline color). \D'f...'
6938 doesn't work any more.
6939 All function calls to it updated.
6941 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6943 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6946 * src/devices/grops/ps.cc (ps_output::put_color): New method.
6947 (ps_printer::sbuf_color): Make a real member instead of pointer.
6948 (ps_printer::fill_color, ps_printer::output_color): Removed.
6949 (ps_printer::ps_printer): Updated.
6950 (ps_printer::set_char): Ditto.
6951 (ps_printer::set_color): Use various color schemes.
6952 Use `put_color' method.
6953 (ps_printer::flush_sbuf): Don't set color.
6954 (ps_printer::fill_path): Take `environment' as parameter.
6955 Simplify color handling.
6956 (ps_printer::set_line_thickness): Renamed to ...
6957 (ps_printer::set_line_thickness_and_color): This (and updated).
6958 (ps_printer::set_color): Change second parameter from `complete'
6959 to `fill' which better describes what it does.
6960 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6961 and text in the right order.
6963 Remove branches for `f' and `F'; this is handled by
6965 * src/devices/grops/ps.h: Updated.
6966 * font/devps/prologue (FL): Redefined.
6967 ({F,C}r,k,g: New color functions (with and without filling).
6969 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6970 * man/groff_diff.man, man/groff.man, man/groff_out.man,
6971 doc/groff.texinfo, NEWS: Updated.
6973 2002-01-20 Bernd Warken <bwarken@mayn.de>
6975 * src/libs/libdriver/input.cc: Completely rewritten. See comments
6976 in this file for what has been changed.
6978 2002-01-19 Werner LEMBERG <wl@gnu.org>
6980 * test-groff: Fix GROFF_FONT_PATH.
6981 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6982 is read before .TH or .Dd is parsed.
6984 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
6986 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6987 quadrant boundaries.
6989 2002-01-18 Werner LEMBERG <wl@gnu.org>
6991 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
6994 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
6996 * tmac/doc.common: Initialize %I register for the %I macro to
6997 avoid (harmless) warning.
6998 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6999 when in the SYNOPSIS section.
7001 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7003 * src/preproc/pic/lex.cc (get_token): Fix typo.
7005 2002-01-17 Werner LEMBERG <wl@gnu.org>
7007 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7009 2002-01-17 Larry Kollar <kollar@alltel.net>
7011 * tmac/groff_ms.man: Completely rewritten.
7013 2002-01-16 Werner LEMBERG <wl@gnu.org>
7015 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7017 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7019 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7021 (ps_printer::draw): Ditto.
7023 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7025 * tmac/groff_mdoc.man: Minor fixes.
7027 2002-01-13 Werner LEMBERG <wl@gnu.org>
7029 * man/groff_out.man: Some fixes.
7031 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7033 * doc/pic.ms: Fix typos.
7035 2002-01-12 Werner LEMBERG <wl@gnu.org>
7037 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7039 2002-01-10 Werner LEMBERG <wl@gnu.org>
7041 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7045 2002-01-09 Bernd Warken <bwarken@mayn.de>
7047 * man/groff_out.man: Revised.
7048 * man/roff.man: Minor fixes.
7049 * src/roff/troff/troff.man: Some reordering.
7051 2002-01-09 Werner LEMBERG <wl@gnu.org>
7053 * tmac/an-old.tmac: Add dummy macros for equation support.
7055 2002-01-07 Werner LEMBERG <wl@gnu.org>
7057 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7059 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7061 * tmac/groff_man.man: Small improvements.
7063 2002-01-07 Bernd Warken <bwarken@mayn.de>
7065 * man/groff_diff.man: Revised.
7067 2002-01-06 Werner LEMBERG <wl@gnu.org>
7069 * tmac/www.tmac: Remove extraneous backslash.
7071 2002-01-06 Bernd Warken <bwarken@mayn.de>
7073 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7075 2002-01-05 Werner LEMBERG <wl@gnu.org>
7077 Integrated groffer, contributed by Bernd Warken.
7079 * contrib/groffer/*: New.
7080 * Makefile.in, NEWS: Updated.
7082 2002-01-04 Werner LEMBERG <wl@gnu.org>
7084 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7085 registers defined in macro packages.
7086 Revising the ms part.
7088 2002-01-04 Larry Kollar <kollar@alltel.net>
7090 * doc/groff.texinfo: Add documentation for ms macros.
7092 2002-01-02 Werner LEMBERG <wl@gnu.org>
7094 First step in adding PS support for the Euro symbol. `eu' is the
7095 official Euro logo, `Eu' is a font-specific glyph variant.
7097 * font/devps/text.enc: Add `Euro' at position 9.
7098 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7099 * font/devps/symbolmap: Regenerated.
7103 2002-01-02 Bernd Warken <bwarken@mayn.de>
7105 * man/roff.man: Revised.
7107 2002-01-01 Bernd Warken <bwarken@mayn.de>
7109 * src/roff/groff/groff.man: Completely rewritten.
7111 2001-12-31 Werner LEMBERG <wl@gnu.org>
7113 * doc/Makefile: Updated.
7115 2001-12-30 Werner LEMBERG <wl@gnu.org>
7117 * tmac/www.tmac: Make all names of internal macros/registers/strings
7118 lowercase, and prepend `www-'.
7119 Other minor changes.
7120 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7122 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7124 Implement option `-b' in grohtml to set the HTML background colour.
7126 * src/devices/grohtml/post-html.cc (default_background): New global
7128 (html_printer::html_printer): Initialize `background' to
7129 `default_background'.
7130 (main): Implement option `-b'.
7132 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7134 * src/devices/grohtml/grohtml.man: Updated.
7135 * doc/Makefile (.ms.html): Use `-b'.
7136 * tmac/html.tmac: Don't set background color.
7138 Add new grohtml tag `.html-tl'.
7140 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7142 (title_desc::title_desc): Updated.
7143 (html_printer::troff_tag): Handle `.html-tl'.
7144 (html_printer::write_title): Use `with_h1'.
7145 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7146 (HTML-TL): New macro.
7148 Add support for unordered lists in HTML.
7150 * tmac/www.tmac (www-level): New auxiliary register.
7151 (www-level1, www-level2, www-level3): New auxiliary strings.
7152 (www-push-level, www-pop-level): New auxiliary macros
7153 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7157 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7158 (DEFAULT_VERTICAL_OFFSET): Removed.
7159 (IMAGE_BOARDER_PIXELS): Set to 0.
7160 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7161 (vertical_offset): Initialize with 0.
7162 (gsPaper): New global variable.
7163 (get_resolution): Scan for and return unsigned int.
7164 (get_papersize): New function to get paper length from devps/DESC.
7165 (determine_vertical_offset): New function.
7166 (createAllPages): Produce gray-level images and use proper page
7168 (createImage): Use `-quiet' option of pnmcrop.
7169 (addZ): Fix passing of `-Z'.
7170 (scanArguments): Fix handling of `-o'.
7171 (main): Call `determine_vertical_offset'.
7172 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7175 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7176 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7177 glyph descenders properly.
7179 * doc/homepage.ms: Include `gnubw.eps'.
7180 * doc/Makefile (gnubw.eps): New rule.
7181 (homepage.html): Depend on `gnubw.eps'.
7183 2001-12-25 Werner LEMBERG <wl@gnu.org>
7185 * src/roff/troff/input.cc (default_black): Fix return value.
7187 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7189 * tmac/doc-common (Dt): Change output of architecture strings.
7190 Do some syntax cleanup.
7191 * tmac/groff_mdoc.man: Updated.
7193 2001-12-23 Werner LEMBERG <wl@gnu.org>
7195 Adding an `itc' request (input line trap accepting \c).
7197 * src/roff/troff/env.h (environment): New member
7198 `continued_input_trap'.
7199 Make `do_input_trap' a friend function instead of `input_trap'.
7200 * src/roff/troff/env.cc (environment::environment,
7201 environment::copy): Updated.
7202 (environment::newline): Implement it.
7203 (do_input_trap): New function.
7204 (input_trap): Call `do_input_trap'.
7205 (input_trap_continued): New function.
7206 (init_env_requests): Updated.
7207 * src/roff/troff/TODO: Updated.
7209 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7212 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7214 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7216 * tmac/doc-common, tmac/doc-syms: Small updates.
7218 2001-12-22 Colin Watson <cjwatson@debian.org>
7220 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7222 2001-12-22 Bernd Warken <bwarken@mayn.de>
7224 * MANIFEST: New file.
7226 2001-12-22 Werner LEMBERG <wl@gnu.org>
7228 * src/preproc/grn/grn.man: Updated.
7230 2001-12-22 Solar Designer <solar@openwall.com>
7232 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7235 2001-12-19 Werner LEMBERG <wl@gnu.org>
7237 Implement a fallback character request `.fchar'.
7239 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7240 (is_fallback): New inline function.
7241 * src/roff/troff/input.cc (do_define_character): New function.
7242 (define_character): Call `do_define_character'.
7243 (define_fallback_character): New function.
7244 (init_input_requests): Add `fchar'.
7245 (charinfo::charinfo): Updated.
7246 (charinfo::set_macro): New argument to set `fallback' flag.
7247 * src/roff/troff/node.cc (make_glyph_node, make_node,
7248 node::add_char): Check `fallback' flag.
7249 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7251 2001-12-16 Werner LEMBERG <wl@gnu.org>
7253 * groff.texinfo: Document exact search algorithm for glyphs.
7255 2001-12-15 Werner LEMBERG <wl@gnu.org>
7257 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7258 the left side of $(MANPAGES) rule to make it always non-empty.
7260 2001-12-14 Werner LEMBERG <wl@gnu.org>
7262 * src/roff/troff/input.cc (default_black): Define default color
7263 `black' if not yet defined.
7265 2001-12-13 Werner LEMBERG <wl@gnu.org>
7267 Implement new string-valued register `.fn' to return the current
7268 real (internal) font name.
7270 * env.cc (environment::get_font_name_string): New function.
7271 (init_env_requests): Add `.fn' register.
7272 * env.h (environment): Updated.
7273 * node.cc (font_info): Make `get_font_name' a friend.
7274 (get_font_name): New function.
7277 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7279 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7281 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7283 2001-12-12 Werner LEMBERG <wl@gnu.org>
7285 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7287 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7289 * man/groff_diff.man: Adding documentation for \O.
7291 2001-12-10 Werner LEMBERG <wl@gnu.org>
7293 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7294 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7296 2001-12-09 Werner LEMBERG <wl@gnu.org>
7298 * man/roff.man: Revised.
7299 * src/roff/groff/groff.man: Replace man page references with a
7300 pointer to roff.man.
7302 2001-12-09 Bernd Warken <bwarken@mayn.de>
7304 * man/roff.man: Completely rewritten.
7306 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7308 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7310 2001-12-05 Werner LEMBERG <wl@gnu.org>
7312 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7314 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7315 order of initializers.
7318 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7320 * doc/groff.texinfo: Fix documentation of \O.
7322 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7323 html_text::do_table, html_text::do_emittext, html_text::do_para):
7324 Use `const' for first argument.
7325 (html_text::do_table): Use cast.
7326 * src/devices/grohtml/html-text.h: Updated.
7327 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7328 method for `const string &s'.
7329 * src/devices/grohtml/html.h: Updated.
7330 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7331 (ANCHOR_TEMPLATE): Modified.
7332 (manufacture_headings): New global variable to handle `-h' option.
7333 (is_subsection): Removed.
7334 (char_buffer::add_string): Add `const' to first argument.
7335 Protect against invalid string argument.
7336 Add method for `const string &s'.
7337 (text_glob): Completely redesigned.
7338 (page): Use `const' for strings and remove string length variable.
7339 (page::add_html): Removed.
7340 (page::add_end_encode): New member function.
7341 (to_unicode): Moved upwards.
7342 (title_desc, header_desc): Updated.
7343 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7345 (html_printer::is_bold, html_printer::make_bold): New member
7347 (html_printer::end_of_line): Updated.
7348 (generate_img_src, html_printer::do_auto_image,
7349 html_printer::do_title, html_printer::write_header,
7350 html_printer::determine_header_level, html_printer::do_heading,
7351 html_printer::do_linelength, html_printer::do_pageoffset,
7352 html_printer::do_indentation, html_printer::do_tempindent,
7353 html_printer::do_indentedparagraph, html_printer::do_break,
7354 html_printer::flush_sbuf, get_html_translation,
7355 html_printer::begin_page, html_printer::special): Rewritten to get
7356 rid of static string length limit.
7357 (html_printer::troff_tag): Added `.no-auto-rule'.
7358 (html_printer::flush_globs): Small fix.
7359 (html_printer::determine_space): Don't compute `space_width'.
7360 (html_printer::translate_to_html): Renamed to ...
7361 (html_printer::emit_html): This (with updates).
7362 (html_printer::write_header): Implement `-h' option.
7363 (html_printer::draw): Remove commented-out code. Handle `F'
7365 (html_printer::add_char_to_sbuf): Removed.
7366 (html_printer::add_to_sbuf): Rewritten.
7367 (html_printer::sbuf_continuation): Fixed.
7368 (html_printer::seen_backwards_escape, reverse,
7369 html_printer::remove_last_char_from_sbuf): Removed.
7370 (char_translate_to_html, str_translate_to_html): Removed.
7371 (html_printer::overstrike): New function member.
7372 (html_printer::set_char): Use it.
7373 (html_printer::do_body): New function member.
7374 (html_printer::~html_printer): Use it.
7375 (main): Handle `-h' option.
7377 * src/devices/grohtml/grohtml.man: Document -h switch.
7379 * src/preproc/html/pre-html.cc: Include searchpath.h
7380 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7381 (get_resolution): New function.
7382 (checkImageDir): Use `0777' permissions in mkdir()
7383 (write_start_image): Rewritten to use `\O[5...]'.
7384 (createImage, generateImages): Updated.
7385 (main): Handle `F' and `h' options.
7386 Use `get_resolution'.
7388 * src/roff/troff/input.cc (begin, end, image): Removed.
7389 (do_suppress): Take parameter.
7390 Handle modified syntax of `\O'.
7391 (token::next): Updated.
7392 (init_markup_requests): Removed.
7395 * src/roff/troff/div.h: Add declaration for begin_page().
7397 * tmac/color-html.tmac: Removed. Contents moved to...
7398 * tmac/html.tmac: Here. Set background color.
7399 * tmac/color.tmac: Removed. Contents moved to...
7400 * tmac/ps.tmac: Here.
7401 * tmac/www.tmac: Remove the title command when generating images
7403 (NO_AUTO_RULE): New macro.
7404 (HTML_DO_IMAGE): Use revised `\O' escapes.
7405 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7407 2001-12-02 Werner LEMBERG <wl@gnu.org>
7409 * tmac/groff_mdoc.man: Fix typo.
7411 2001-12-01 Colin Watson <cjwatson@debian.org>
7413 * man/roff.man: Fix typo.
7415 2001-11-29 Werner LEMBERG <wl@gnu.org>
7417 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7420 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7421 more than one argument to \D'f ...'.
7423 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7425 2001-11-28 Werner LEMBERG <wl@gnu.org>
7427 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7430 * tmac/groff_man.man: Minor cosmetic fix.
7432 2001-11-27 Werner LEMBERG <wl@gnu.org>
7434 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7435 tmac/groff_www.man: s/mwww/www/.
7437 2001-11-26 Werner LEMBERG <wl@gnu.org>
7439 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7440 * configure: Regenerated.
7441 * win32-diffs: Updated.
7443 * tmac/groff_mwww.tmac: Renamed to ...
7444 * tmac/groff_www.tmac: This.
7445 * tmac/mwww.tmac: Removed.
7446 * NEWS, tmac/Makefile.sub: Updated.
7448 2001-11-21 Werner LEMBERG <wl@gnu.org>
7450 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7451 Fix explanation of `\D' and `rt'.
7453 2001-11-20 Werner LEMBERG <wl@gnu.org>
7455 * tmac/an-old.tmac (an-header): Set header length equal to page
7457 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7461 2001-11-19 Werner LEMBERG <wl@gnu.org>
7463 * NEWS, man/Makefile.sub: Updated.
7465 2001-11-19 Bernd Warken <bwarken@mayn.de>
7467 * man/ditroff.man: New file.
7469 2001-11-17 Werner LEMBERG <wl@gnu.org>
7471 * man/groff_differences.man: Renamed to ...
7472 * man/groff_diff.man: This. Updated.
7473 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7475 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7476 * src/preproc/html/pushback.cc: This. Updated.
7477 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7478 * src/preproc/html/pushback.h: This.
7479 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7482 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7483 * src/libs/libgroff/htmlhint.cc: This.
7484 * src/libs/libgroff/Makefile.sub: Updated.
7486 * tmac/an-old.tmac (an-end): Fix page length.
7488 2001-11-16 Werner LEMBERG <wl@gnu.org>
7490 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7491 * man/Makefile.sub: Include groff_differences.man.
7492 * VERSION: Set to 1.18.
7493 * REVISION: Set to 0.
7495 2001-11-16 Bernd Warken <bwarken@mayn.de>
7497 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7498 the second dot (or ending macro name) to end a macro.
7499 * doc/groff.texinfo: Doc fix.
7501 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7503 * tmac/doc-common (doc-header): Handle very long document titles
7506 2001-11-16 Werner LEMBERG <wl@gnu.org>
7508 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7510 2001-11-15 Werner LEMBERG <wl@gnu.org>
7512 * src/roff/troff/troff.man: Revised and split into troff.man and...
7513 * man/groff_differences.man: New file.
7516 2001-11-13 Werner LEMBERG <wl@gnu.org>
7518 * tmac/an-old.tmac (TS, TE): New macros for table support.
7520 2001-11-12 Werner LEMBERG <wl@gnu.org>
7522 * src/include/lib.h: Provide a fix for emx to not include
7525 2001-10-27 Werner LEMBERG <wl@gnu.org>
7527 * src/roff/troff/input.cc (substring_macro): Fix computation of
7530 2001-10-20 Werner LEMBERG <wl@gnu.org>
7532 Undo change from 2001-08-28.
7534 * src/roff/troff/input.cc (have_input): New global variable.
7535 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7536 in compatibility mode.
7537 (process_input_stack): Use it.
7539 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7541 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7542 being handled as end-of-sentence characters,
7544 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7546 * src/roff/troff/input.cc (file_iterator): New members
7547 `suppress_newline_flag' and `seen_escape'.
7548 (file_iterator::next_file): Updated.
7549 (file_iterator::fill): Use it.
7550 (string_iterator): New member `suppress_newline_flag'.
7551 (string_iterator::fill): Set it.
7552 (get_color_element): Use MAX_COLOR_VAL.
7553 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7554 (no_fill): Don't set `env->ignore_next_eol'.
7555 (environment::newline): Handle `eol' tag properly.
7557 (environment::add_html_tag): Set `env->ignore_next_eol'.
7559 * src/roff/troff/env.h (environment): Updated.
7561 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7563 (html_printer::outstanding_eol): New member function.
7564 (html_printer::do_title): Use new functions.
7565 (html_printer::troff_tag): Test `id_eol_ce'.
7567 2001-10-10 Werner LEMBERG <wl@gnu.org>
7569 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7570 files work with -C also.
7572 2001-10-05 Werner LEMBERG <wl@gnu.org>
7574 * doc/pic.ms: Minor fix.
7575 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7576 as a valid command line switch.
7577 * src/devices/grohtml/post-html.cc (main): Ditto.
7579 * src/devices/grohtml/grohtml.man: Updated.
7580 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7582 2001-10-04 Werner LEMBERG <wl@gnu.org>
7584 Implementing color support in troff, pic, grops, and grohtml. These
7585 changes are based on a major patch provided by Gaius Mulley
7588 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7589 definitions with both hex values and fractions.
7591 New escapes: \m and \M for drawing and background color,
7592 respectively. This corresponds to the troff output commands `m'
7595 groff and troff accept command line switch `-c' to disable color
7596 output (which is automatically disabled in compatibility mode).
7598 New scaling indicator `f' for fractions (1f = 65536u).
7600 New conditional operator `m' to test for defined colors with `if'
7603 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7604 (or `outlined'), and `shaded' added to pic.
7606 * src/include/color.h: New file.
7607 * src/include/driver.h: Include it.
7608 * src/include/printer.h: Include color.h.
7609 (environment): New members `col' and `fill'.
7610 (printer): Remove `adjust_arc_center' member function.
7611 * src/include/Makefile.sub: Updated.
7613 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7615 Handle `m' and `DF' troff commands.
7616 * src/libs/libgroff/color.cc: New file.
7617 * src/libs/libgroff/Makefile.sub: Updated.
7619 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7621 (createImage): Fix computation of `y2'.
7623 (buffer::write_file_html): Remove calls to `stop'.
7625 * src/preproc/pic/common.h (common_output): New abstract function
7626 members `set_color', `reset_color', `get_last_filled', and
7627 `get_outline_color'.
7628 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7629 (object_spec): Add members `shaded' and `outlined'.
7630 * src/preproc/pic/output.h (output): `command' is now abstract.
7631 New function members `set_color', `reset_color', `get_last_filled',
7632 and `get_outline_color'.
7633 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7634 `outline[d]', and `shaded'.
7635 * src/preproc/pic/object.cc (output::command): Removed.
7636 (output::set_location): Moved to output.h.
7637 (graphic_object): Add protected members `outline_color' and
7639 Add member functions `set_outline_color', `get_outline_color', and
7641 (closed_object): Add member function `set_fill_color'.
7642 Add member `color_fill'.
7643 (graphic_object::print_text): Use `out->set_color' and
7645 (box_object::print, ellipse_object::print, circle_object::print,
7646 line_object::print, spline_object::print, arc_object::print): Ditto.
7647 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7648 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7649 `SHADED', making them `%left'.
7650 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7651 * src/preproc/pic/tex.cc (tex_output): New dummy function members
7652 `set_color', `reset_color', `get_last_filled', and
7653 `get_outline_color'.
7654 * src/preproc/pic/troff.cc (simple_output): New abstract function
7655 members `set_color', `reset_color', and `get_last_filled'.
7656 (simple_output::polygon, simple_output::circle,
7657 simple_output::ellipse): Use `get_last_filled'.
7658 (troff_output): New members `last_filled' and `last_outlined'.
7659 New function members `set_color', `reset_color', `get_last_filled',
7660 and `get_outline_color'.
7661 (troff_output::finish_picture): Use `reset_color'.
7662 (troff_output::set_fill): Test `last_filled'.
7663 * src/preproc/pic/pic.man: Updated.
7665 * src/roff/groff/groff.cc (main): Implement `-c' option.
7666 (synopsis, help): Updated.
7667 src/roff/groff/groff.man: Updated.
7669 * src/roff/troff/troff.h: Include color.h.
7670 (warning_type): Add WARN_COLOR.
7671 * src/roff/troff/env.h (environment): New members
7672 `{cur,prev}_{glyph,fill}_color'.
7673 New member functions `get_{prev_,}{glyph,fill}_color'.
7674 * src/roff/troff/env.cc: Initialize and implement them.
7675 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7676 Replace `NULL' with `0' everywhere for consistency.
7677 (lookup_color, default_black, do_glyph_color, do_fill_color,
7678 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7679 define_color): New functions.
7680 (token::next): Implement \M and \m escapes.
7681 (do_if_request): Implement `m' operator.
7683 (main): Implement `-c' option.
7684 (init_markup_requests): Add `defcolor' request.
7685 (warning_table): Add `color' warning.
7686 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7688 * src/roff/troff/node.cc (troff_output_file): New members
7689 `current_{page,glyph}color'. New member functions `put_hex',
7690 `glyph_color', and `fill_color'.
7691 (glyph_color_node::*, fill_color_node::*): Implement it.
7692 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7693 (parse_term): Add support for `f'.
7694 * src/roff/troff/troff.man: Updated.
7696 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7698 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7699 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7701 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7702 (tag_definition): Use `void *' for arg1.
7703 (html_text): New member functions `do_color' and `done_color'.
7704 Use `void *' for second parameter of `push_para' member function.
7705 New `push_para' member function with a single parameter.
7706 Use `char *' for parameter of `issue_table_begin' member funtion.
7707 New `issue_color_begin' member function.
7708 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7710 (html_text::issue_color_begin): New function.
7711 (html_text::issue_table_begin): Use `char *' for parameter.
7712 (html_text::start_tag, html_text::shutdown,
7713 html_text::check_emit_text): Updated.
7714 (html_text::push_para): Use `void *' for second parameter.
7715 Add same function with only one parameter.
7716 (html_text::do_*): Updated.
7717 (html_text::do_color, html_text::done_color): New functions.
7718 * src/devices/grohtml/post-html.cc (style): New member `col'.
7719 Mew member `style' with 6 parameters.
7720 (style::style, style::operator==): Updated.
7721 (html_printer::do_font): Use it.
7722 (html_printer::draw): Add dummy entry for `F'.
7723 (html_printer::set_char): Updated.
7724 * src/devices/grohtml/grohtml.man: Updated.
7726 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7727 trailing zeroes removed.
7728 (ps_printer): New members `sbuf_color', `fill_color', and
7730 Removed member `fill'.
7731 New member function `set_color'.
7732 (ps_printer::ps_printer, ps_printer::set_char): Updated.
7733 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7734 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7736 * tmac/color-html.tmac, tmac/color.tmac: New files.
7737 * tmac/troffrc: Include them.
7738 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7739 * tmac/Makefile.sub: Updated.
7741 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7742 man/groff.man: Updated.
7743 * font/devps/prologue.ps: Define FC and CO functions.
7745 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
7747 Fix incorrect cropping of images and incorrect handling of special
7748 characters. Fix handling of file names in \O.
7750 * src/include/geometry.h: New file.
7751 * src/libs/libgroff/geometry.cc: New file.
7752 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7754 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7756 (do_suppress): Updated.
7757 * src/roff/troff/node.cc: Include geometry.h.
7758 (troff_output_file::flush_tbuf): Fixed parameters to
7759 `check_output_limits'.
7760 (troff_output_file::check_charinfo): Ditto.
7761 (troff_output_file::determine_line_limits): Add support for `Da'
7764 * src/devices/grohtml/post-html.cc (str_translate_to_html):
7765 Add new parameter `is_special' to decode special characters from
7767 (html_printer::do_title, html_printer::do_heading,
7768 html_printer::do_indentedparagraph,
7769 html_printer::translate_to_html, html_printer::special): Updated.
7771 2001-10-03 Werner LEMBERG <wl@gnu.org>
7773 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7774 Fix entry for config.h.
7775 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7776 * tmac/troffrc: Translate nonbreakable space character to `\~'.
7777 * src/preproc/eqn/eqn.man: Document -d command line option.
7779 2001-09-27 Werner LEMBERG <wl@gnu.org>
7781 * man/groff.man: Use
7789 instead of the old code (`.ad .hy' after the table) to suppress
7790 incorrect hyphenation for grohtml output.
7792 2001-09-22 Werner LEMBERG <wl@gnu.org>
7794 * man/groff_font.man, man/groff_out.man: Minor fixes.
7796 2001-09-20 Werner LEMBERG <wl@gnu.org>
7798 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
7799 Arnold Robbins <arnold@skeeve.com>).
7801 2001-09-09 Werner LEMBERG <wl@gnu.org>
7803 * configure: Regenerated with autoconf 2.52.
7805 * doc/groff.texinfo: Complete revision of indices.
7807 2001-09-07 Werner LEMBERG <wl@gnu.org>
7809 * doc/Makefile (clean): Updated to delete all indices.
7811 2001-09-05 Werner LEMBERG <wl@gnu.org>
7813 * src/roff/troff/troff.man: Remove superfluous line.
7815 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7816 given on the command line (or rather, if only the default warnings
7819 2001-09-03 Werner LEMBERG <wl@gnu.org>
7821 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7822 use .ne for TTY devices.
7824 2001-08-31 Werner LEMBERG <wl@gnu.org>
7826 * src/roff/troff/token.h, src/roff/troff/input.cc:
7827 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7829 2001-08-28 Werner LEMBERG <wl@gnu.org>
7831 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7832 * src/roff/troff/input.cc (token::next): Return
7833 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7835 (token::description): Updated.
7836 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7837 (token::add_to_node_list, token::process): Ignore
7838 TOKEN_TRANSPARENT_ESCAPE.
7840 2001-08-27 Werner LEMBERG <wl@gnu.org>
7842 * tmac/an-old.tmac: Fix `S' string.
7844 2001-08-26 Werner LEMBERG <wl@gnu.org>
7846 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7848 2001-08-25 Werner LEMBERG <wl@gnu.org>
7850 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7852 Many other minor fixes.
7854 * configure.ac: Add message at end to inform how to compile
7856 * configure: Regenerated.
7858 2001-08-24 Werner LEMBERG <wl@gnu.org>
7860 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7861 Updated to latest version of libc.
7863 2001-08-23 Werner LEMBERG <wl@gnu.org>
7865 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7866 Autoconf 2.50 and newer can handle this.
7867 * configure: Regenerated.
7869 2001-08-21 Werner LEMBERG <wl@gnu.org>
7871 * doc/pic.ms: Fix typo.
7872 * src/preproc/tbl/tbl.man: Document case of global options.
7874 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
7876 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7877 handling of `CR' font.
7879 2001-08-20 Werner LEMBERG <wl@gnu.org>
7881 Use a config.h file.
7883 * src/include/lib.h: Include config.h.
7884 * All C files: Ditto (if necessary).
7885 * All C++ source and header files: Include lib.h first (if
7888 * src/include/config.hin: New file (autogenerated by autoheader).
7889 * stamp-h.in: New file.
7890 * configure.ac: Updated.
7891 * aclocal.m4: Add third parameters to AC_DEFINE macros.
7892 (GROFF_ARRAY_DELETE): Simplified.
7893 * Makefile.sub (DISTCLEANFILES): Updated.
7894 Added targets for remaking config.status, config.hin, config.h,
7895 stamp-h.in, and stamp-h.
7896 * configure: Regenerated.
7898 2001-08-19 Werner LEMBERG <wl@gnu.org>
7902 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
7904 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7905 (do_sprintf): Use snprintf().
7907 2001-08-18 Werner LEMBERG <wl@gnu.org>
7909 * src/libs/snprintf/*: Added an snprintf module written by Mark
7911 * src/libs/libgroff/Makefile.sub: Updated.
7912 * configure.ac: Add test for snprintf().
7913 * Makefile.in: Updated.
7914 * configure: Regenerated.
7916 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7919 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
7921 * tmac/doc.tmac (Ex): New implementation.
7922 * tmac/doc-common, tmac/groff_tmac.man: Updated.
7924 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
7926 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7928 * tmac/groff_tmac.man: Updated.
7930 2001-08-13 Werner LEMBERG <wl@gnu.org>
7932 * src/preproc/tbl/tbl.man: Minor documentation update.
7934 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
7936 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7937 * configure.ac: Add declaration test for gettimeofday().
7938 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7939 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7940 * configure: Regenerated.
7942 2001-08-11 Werner LEMBERG <wl@gnu.org>
7944 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7945 * configure.ac: Add declaration test for strcasecmp().
7946 * Makefile.in: Updated.
7947 * configure: Regenerated.
7948 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7949 this is necessary because groff's mkstemp.cc is C++.
7950 Add declaration conditionally for strcasecmp().
7952 2001-08-10 Werner LEMBERG <wl@gnu.org>
7954 Integrated pic2graph, contributed by Eric S. Raymond.
7956 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7958 * Makefile.in, NEWS: Updated.
7960 * src/preproc/tbl/tbl.man: Revised.
7962 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
7964 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7966 2001-08-09 Werner LEMBERG <wl@gnu.org>
7968 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7971 2001-08-08 Paul Eggert <eggert@twinsun.com>
7973 * Makefile.sub (configure): Depend on configure.ac, not
7975 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7977 2001-08-07 Werner LEMBERG <wl@gnu.org>
7979 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7982 2001-08-06 Werner LEMBERG <wl@gnu.org>
7984 * src/roff/troff/troff.man: Improve documentation of -E option.
7986 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7988 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7991 2001-07-27 Werner LEMBERG <wl@gnu.org>
7993 * src/preproc/refer/refer.cc: Undo last change.
7994 * src/devices/grohtml/post-html.cc: Ditto.
7996 2001-07-26 Werner LEMBERG <wl@gnu.org>
7998 * src/preproc/refer/refer.cc: Include `lib.h'.
7999 * src/devices/grohtml/post-html.cc: Ditto.
8001 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8003 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8004 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8005 * Makefile.in: Comment updated.
8006 * configure: Regenerated.
8008 2001-07-25 Werner LEMBERG <wl@gnu.org>
8010 * src/preproc/pic/pic.cc: Removed.
8011 * src/preproc/pic/pic_tab.h: Removed.
8012 * src/preproc/refer/label.cc: Removed.
8014 * doc/Makefile (.ms.html): Don't use a file name extension in
8015 argument to grohtml's -I option.
8016 * Makefile.in (dist): Remove CVS directories.
8017 Call `distfiles' target.
8019 * src/devices/grohtml/grohtml.man: Add information about valid
8020 versions of pnmtopng.
8021 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8022 name instead of number.
8024 2001-07-24 Werner LEMBERG <wl@gnu.org>
8026 * doc/groff.texinfo: Minor fixes.
8028 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8030 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8033 2001-07-20 Werner LEMBERG <wl@gnu.org>
8035 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8036 * src/libs/libgroff/mkstemp.cc: New file.
8037 * src/libs/libgroff/mksdir.cc: New file.
8038 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8039 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8040 * src/libs/libgroff/Makefile.sub: Updated.
8041 * src/include/lib.h: Add mksdir() prototype.
8042 * src/include/posix.h: Define S_IXUSR if not yet defined.
8044 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8045 (createAllPages): Use mksdir() instead of current code.
8046 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8047 (main): [!HAVE_MKSTEMP]: Removed.
8049 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8050 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8052 * configure.ac: Add tests for stdint.h, sys/time.h, and
8054 Call new GROFF_xxx macros.
8055 * configure: Regenerated.
8056 * Makefile.in: Comments updated.
8058 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8060 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8061 instead of current code.
8062 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8063 * src/roff/groff/groff.cc (possible_command::insert_args): New
8065 (main): Use it for predriver handling instead of insert_arg().
8067 2001-07-19 Werner LEMBERG <wl@gnu.org>
8069 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8072 * src/include/posix.h: Define S_IWUSR if not yet defined.
8074 2001-07-18 Werner LEMBERG <wl@gnu.org>
8078 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8080 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8081 Some other minor fixes.
8082 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8084 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8086 Replace call to `troff' with `groff -Z' to make it aware of
8089 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8090 (troff_command, command_prefix): Removed.
8091 (alterDeviceTo): Use groff.
8092 (addZ): New function.
8093 (char_buffer::do_html): Use it.
8094 (scanArguments): Use TROFF_COMMAND.
8095 (findPrefix): Removed.
8097 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8099 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8101 * doc/pic.ms: Documentation fixes.
8103 2001-07-17 Werner LEMBERG <wl@gnu.org>
8105 Replace atexit() with global destructor.
8107 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8108 (xtmpfile_list_init): New global structure to deallocate
8109 xtmpfile_list on exit. Its destructor inherits most code from
8111 (remove_tmp_files): Deleted.
8112 (add_tmp_file): Simplified.
8114 2001-07-16 Werner LEMBERG <wl@gnu.org>
8116 Replace strdup() with strsave().
8118 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8119 (set_papersize): Use strsave() and a_delete.
8120 (main): Use strsave().
8121 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8122 removeAllPages): Use strsave() and a_delete.
8124 * configure.ac: Remove test for strdup.
8125 * Makefile.in: Comment updated.
8126 * configure: Regenerated.
8128 2001-07-15 Werner LEMBERG <wl@gnu.org>
8130 * win32-diffs: Updated.
8132 2001-07-14 Werner LEMBERG <wl@gnu.org>
8134 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8135 removing the old one.
8136 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8138 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8140 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8142 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8144 Merge -xwidth into -width. Add -xwidth functionality to -column
8147 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8149 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8150 string immediately following a leading dot starts with a valid mdoc
8152 Add similar code to the -column branch.
8153 (doc-Bl-usage): Updated.
8154 * groff_mdoc.man: s/-xwidth/-width/.
8156 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8158 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8159 running into centered or non-formatted text.
8161 2001-07-11 Werner LEMBERG <wl@gnu.org>
8163 Introduce short and long prefixes to have the selection at run-time
8164 whether there is a 8+3 limit for names of temporary files.
8166 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8167 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8168 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8170 (temp_init): New global structure to initialize above three
8172 (xtmptemplate): Use two parameters for long and short prefix.
8173 Simplify code use above three variables.
8174 (xtmpfile): Use long and short prefixes as parameters.
8175 * src/include/lib.h: Updated.
8177 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8179 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8180 (createAllPages, makeTempFiles): Updated.
8182 2001-07-09 Werner LEMBERG <wl@gnu.org>
8184 * REVISION: Increased to 3.
8186 Version 1.17.2 released
8187 =======================
8189 2001-07-07 Werner LEMBERG <wl@gnu.org>
8191 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8194 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8196 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8198 * tmac/groff_mdoc.man: Fix synopsis.
8200 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8202 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8203 Restore `doc-Pa-font'.
8205 2001-07-04 Werner LEMBERG <wl@gnu.org>
8207 * src/utils/indxbib/dirnamemax.c: Moved to ...
8208 * src/libs/libgroff/maxfilename.cc: Here.
8209 s/dir_name_max/file_name_max/.
8211 * src/include/lib.h: Add file_name_max.
8212 * src/utils/indxbib/indxbib.cc: Updated.
8213 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8216 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8218 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8220 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8221 REGION_TEMPLATE): New macros.
8222 (createAllPages, makeTempFiles): Use them.
8223 Include `nonposix.h'.
8224 (html_system): New function.
8225 (createAllPages, createImage): Use it.
8228 * tmac/www.tmac: Fix typos.
8230 2001-07-03 Werner LEMBERG <wl@gnu.org>
8232 * tmac/www.tmac: Disable hyphenation in normal text only if output
8234 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8235 * tmac/groff_mwww.man, NEWS: Updated.
8237 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8239 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8242 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8244 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8245 doc-display-ps-stack): Implement font and font size stack for
8248 2001-07-02 Werner LEMBERG <wl@gnu.org>
8250 * REVISION: Increased to 2.
8251 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8253 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8254 beginning of a line.
8255 * src/groff/grog/grog.sh: Ditto.
8257 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8259 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8262 2001-06-27 Werner LEMBERG <wl@gnu.org>
8264 Fix problems with preprocessor string for `man' program.
8266 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8267 Updated/added copyright.
8268 Moved Emacs's local variable to identify nroff mode to the end of
8269 the file; add local variable if missing.
8271 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8273 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8274 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8275 * configure: Regenerated.
8277 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8279 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8280 * configure: Regenerated.
8282 2001-06-24 Werner LEMBERG <wl@gnu.org>
8284 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8286 * doc/pic.ms: Fix typos.
8288 Version 1.17.1 released
8289 =======================
8291 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8293 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8294 * configure: Updated.
8296 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8298 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8300 * src/roff/troff/dic.cc (blank_line): Add html tag.
8302 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8304 * src/roff/troff/input.cc (do_suppress): Fix typo.
8306 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8308 Added two new options (-D and -I) to specify image names and a
8309 subdirectory to place the images in.
8311 Change syntax from \\Ox to \\O[x].
8313 * src/devices/grohtml/post-html.cc (main): Add options.
8315 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8316 Use `NULL' instead of `0' for null string pointers.
8317 (MAX_RETRIES): New macro.
8318 (lengthOfintToStr, intToStr, make_message): New functions.
8319 (makeFileName): Make function static.
8320 Implement -D and -I options.
8321 (checkImageDir): New function.
8322 (write_end_image, write_start_image): Use new syntax of \O.
8323 (createAllPages, removeAllPages): Implement -D and -I options. Use
8325 (createImage): Use make_message().
8326 (addps4html): Add guard for malloc().
8327 (usage, scanArguments): Updated.
8328 (makeTempFiles): Use mkstemp().
8329 (removeTempFiles): Use unlink().
8330 (findPrefix): Add guard for malloc().
8332 * src/roff/troff/input.cc (get_delim_file_name): New function to
8334 (do_suppress): Updated to parse new syntax.
8335 * src/devices/grohtml/grohtml.man: Updated.
8336 * tmac/www.tmac: Updated to new syntax.
8340 2001-06-15 Werner LEMBERG <wl@gnu.org>
8342 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8344 * src/devices/grohtml/grohtml.man: Minor improvements.
8346 2001-06-14 Werner LEMBERG <wl@gnu.org>
8348 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8350 2001-06-11 Werner LEMBERG <wl@gnu.org>
8352 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8353 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8355 * src/preproc/grn/grn.man: Add proper '\" string.
8357 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8359 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8361 2001-06-08 Werner LEMBERG <wl@gnu.org>
8363 Updated to autoconf 2.50.
8365 * configure.in: Renamed to...
8366 * configure.ac: This.
8367 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8368 (GROFF_OS390): Updated.
8369 * configure: Regenerated.
8371 2001-05-18 Werner LEMBERG <wl@gnu.org>
8373 * src/roff/troff/env.c, src/roff/troff/env.h,
8374 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8377 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8379 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8381 2001-05-16 Werner LEMBERG <wl@gnu.org>
8383 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8384 less than or equal zero; set it to 1 then.
8385 * src/roff/troff/node.h (node::node): Initialize `last'.
8387 2001-05-08 Werner LEMBERG <wl@gnu.org>
8389 * tmac/an-old.tmac: Make predefined strings work in compatibility
8391 Add troff version guard.
8392 * tmac/doc.tmac: Simplify version guard.
8394 2001-05-07 Werner LEMBERG <wl@gnu.org>
8396 The .ns and .rs requests are now honoured not only in the top-level
8397 but in all diversions (similar to UNIX troff).
8399 This change is based on a patch from Tadziu Hoffmann
8400 <hoffmann@usm.uni-muenchen.de>.
8402 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8403 (top_level_diversion): Remove `no_space_mode' member.
8404 * src/roff/troff/div.cc (diversion::diversion,
8405 top_level_diversion::top_level_diversion): Updated.
8406 (macro_diversion::output): Reset `no_space_mode'.
8407 (no_space, restore_spacing): Use `curdiv' unconditionally.
8408 (space_request, blank_line): Check `curdiv->no_space_mode'.
8409 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8410 `curdiv' unconditionally.
8411 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8414 2001-05-06 Werner LEMBERG <wl@gnu.org>
8416 Added two new requests `de1' and `am1' which are similar to `de' and
8417 `am' with the difference that compatibility mode is saved on entry,
8418 switched off during macro execution, and restored on exit.
8420 * src/roff/troff/input.h: Added two new special characters
8421 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8422 * src/roff/troff/input.cc (input_iterator): Added two member
8423 functions `save_compatible_flag' and `get_compatible_flag'.
8424 (input_stack): Ditto.
8425 (string_iterator): Ditto. Also add private member
8426 `saved_compatible_flag'.
8427 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8428 (calling_mode): New enumeration.
8429 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8430 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8431 (define_macro, define_indirect_macro, append_macro, ignore): Use
8433 (define_nocomp_macro, append_nocomp_macro): New functions.
8434 (init_input_requests): Updated.
8435 (do_request): Rename local variable `saved_compatible_flag' to
8436 `old_compatible_flag'.
8437 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8439 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8440 public and trap-invoked macros. As a consequence, the man macros
8441 work in compatibility mode also.
8443 2001-05-06 Solar Designer <solar@openwall.com>
8445 * Makefile.in: Use $(mandir).
8447 2001-05-06 Alexios Zavras <zvr@pobox.com>
8449 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8451 2001-05-05 Werner LEMBERG <wl@gnu.org>
8453 Added `.ns' number register: Returns 1 in no-space mode (if in
8454 top-level diversion), 0 otherwise.
8456 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8457 (init_div_requests): Updated.
8458 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8461 2001-05-04 Werner LEMBERG <wl@gnu.org>
8463 * src/roff/nroff/nroff.man: Improved documentation (especially
8466 2001-05-02 Werner LEMBERG <wl@gnu.org>
8468 Added `brp' request: This is \p as a request.
8470 * src/roff/troff/env.cc (environment::do_break): Add parameter
8472 (do_break_request): New function (was `break_request').
8473 (break_request): Calls `do_break_request'.
8474 (break_spread_request): New; calls `do_break_request'.
8475 (init_env_requests): Updated.
8476 * src/roff/troff/env.h: Updated.
8477 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8479 * REVISION: Increased to 1.
8480 * win32-diffs: Updated.
8482 2001-05-01 Werner LEMBERG <wl@gnu.org>
8484 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8485 * tmac/troffrc-end: Make it really work in compatibility mode.
8487 2001-04-27 Werner LEMBERG <wl@gnu.org>
8489 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8492 2001-04-22 Werner LEMBERG <wl@gnu.org>
8494 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8495 latest versions from glibc CVS archive.
8497 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8498 <c.zeelenberg@hccnet.nl>.
8500 2001-04-21 Werner LEMBERG <wl@gnu.org>
8502 * configure.in: Move check for mkstemp() to...
8503 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8504 * configure: Regenerated.
8506 * src/include/groff-getopt.h: Don't use variable names in
8509 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8510 * src/devices/grohtml/Makefile.sub,
8511 src/devices/grohtml/post-html.cc: Updated.
8513 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8515 * configure.in: Add special check for mkstemp().
8516 * src/libs/libgroff/tmpfile.cc: Use it.
8517 * src/utils/indxbib/indxbib.cc: Ditto.
8518 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8519 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8522 2001-04-20 Bruce Lilly <blilly@erols.com>
8524 `Version_string' as C++ object was not visible to linker from C
8526 Add `const' to `Version_string'.
8528 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8529 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8530 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8531 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8532 (scanArguments), src/preproc/refer/refer.cc (main),
8533 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8534 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8535 (main), src/devices/grohtml/post-html.cc (main),
8536 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8537 (main), src/utils/hpftodit/hpftodit.cc (main),
8538 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8539 (main), src/utils/lkbib/lkbib.cc (main),
8540 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8542 * src/roff/groff/pipeline.c: Add _UWIN.
8543 * src/include/nonposix.h: Ditto.
8545 2001-04-20 Werner LEMBERG <wl@gnu.org>
8547 * src/include/lib.h: Use HAVE_STRERROR.
8548 * src/roff/groff/pipeline.c: Ditto.
8549 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8550 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8551 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8552 * win32-diffs: Updated.
8553 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8555 2001-04-19 Werner LEMBERG <wl@gnu.org>
8557 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8558 instead of hardwired `"troff"'.
8559 (char_buffer::read_file): Remove unused variables.
8560 (char_buffer::write_file_troff): Ditto.
8561 (char_buffer::write_file_html): Ditto.
8562 (generateImages): Ditto.
8564 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8566 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8568 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8569 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8570 index_search_item::search1): Ditto.
8571 * src/roff/troff/node.h (width_list): Reorder members.
8572 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8573 (lookup_warning): Ditto.
8574 (prepend_string): Commented out.
8575 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8576 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8577 * src/preproc/tbl/main.cc (process_format): Ditto.
8578 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8580 * src/preproc/pic/pic.cc: Updated.
8581 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8582 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8583 * src/preproc/refer/command.cc (execute_command): Ditto.
8584 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8585 * src/preproc/refer/token.cc (lookup_token): Ditto.
8586 * src/preproc/soelim/soelim.cc: Ditto.
8587 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8588 (isHexDigit): Commented out.
8589 (pushBackBuffer::isString): Remove unused variable.
8590 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8592 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8593 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8595 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8596 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8597 lookup_paper_size): Ditto.
8598 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8599 (text_glob, element_list): Reorder members.
8600 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8602 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8603 return value to `void'.
8604 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8606 * src/devices/grohtml/html.h (simple_output::check_newline,
8607 simple_output::space_or_newline, simple_output::enable_newlines):
8609 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8611 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8612 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8613 output_ligatures, output_charset, read_map): Ditto.
8614 * src/utils/lookbib/lookbib.cc (main): Ditto.
8615 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8616 (do_file): Fix typo (`=' -> `==').
8617 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8618 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8620 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8622 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8623 Fix usage of GROFF_BIN_PATH.
8624 * src/roff/nroff/nroff.man: Updated.
8626 2001-04-18 Werner LEMBERG <wl@gnu.org>
8628 * NEWS: Fixing typos.
8631 Version 1.17 released
8632 =====================
8634 2001-04-17 Werner LEMBERG <wl@gnu.org>
8636 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8637 directory, not in $(srcdir).
8639 2001-04-16 Werner LEMBERG <wl@gnu.org>
8641 * doc/groff.texinfo: More info on conditionals.
8643 2001-04-15 Werner LEMBERG <wl@gnu.org>
8645 * doc/groff.texinfo: Added some info about groff internals.
8647 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8648 about missing special character only if the name is non-null.
8650 2001-04-14 Werner LEMBERG <wl@gnu.org>
8652 Removing the grohtml-old device driver which is now obsolete.
8654 * src/devices/grohtml-old/*: Removed.
8655 * font/devhtml-old/*: Removed.
8656 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8658 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8659 * test-groff (PATH): Updated.
8660 * tmac/Makefile.sub (NORMALFILES): Updated.
8661 * tmac/an-old.tmac: Remove special code for html-old device.
8662 Replace `html-or-html-old' register with `an-html'.
8663 * tmac/eqnrc: Updated.
8664 * tmac/html-old.tmac: Removed.
8665 * tmac/troffrc, tmac/troffrc-end: Updated.
8666 * tmac/www.tmac: Remove special code for html-old device.
8667 Replace `html-or-html-old' register with `www-html'.
8669 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8670 src/libs/libgroff/htmlindicate.cc (graphic_end),
8671 include/htmlindicate.h, src/preproc/grn/*.cc,
8672 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8673 single argument for consistency with rest of source code.
8675 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8677 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
8679 * src/roff/troff/troff.man: Fixing typos.
8681 2001-04-13 Werner LEMBERG <wl@gnu.org>
8683 * doc/pic.ms: Fixing many font switches.
8684 * doc/groff.texinfo: Fixes, additions.
8685 * MORE.STUFF: Updated.
8687 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
8689 * src/devices/grohtml/grohtml.man: Updated manual page regarding
8691 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8693 (removeTempFiles): New function to tidy up temporary files.
8694 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8695 Many fixes to do with the new inline suppress node and image regions
8697 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8698 (generate_img_src): New function.
8699 (html_printer::do_auto_image): Utilizes it.
8700 (do_heading, do_title): Include inline images within their contents.
8701 (html_printer::begin_page): Tidied up comments that are issued to
8702 the html output file.
8703 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8705 (text_glob::is_br): New method used by do_heading.
8706 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8707 equivalent diversion.
8708 * src/include/html-strings.h: Altered image tags to reflect the
8710 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8712 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8713 it is already inside a pic image. Only emit tags if the argument
8714 `-Tps:html' is present.
8715 * src/preproc/tbl/main.cc: Changes to reflect additional
8716 `html_end_suppress' parameter.
8717 * src/roff/troff/env.cc: Only emit eol tag if a node has been
8718 emitted since the last eol tag was written.
8719 * src/roff/troff/env.h: New boolean `emitted_node'.
8720 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8721 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
8722 * src/roff/troff/node.cc (check_charinfo): New method.
8723 (troff_output_file::determine_line_limits): Alterations to limit
8725 * tmac/www.tmac: Changes to reflect new suppress nodes.
8727 2001-04-12 Bruno Haible <haible@clisp.cons.org>
8729 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8730 Escape the html_glyph in the buffer.
8731 (str_translate_to_html): Output the unescaped escaped_char.
8732 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8733 `frame=void', not `frame=none'. Add `border=0'.
8735 2001-04-12 Werner LEMBERG <wl@gnu.org>
8737 * PROBLEMS: Add some words on how to avoid wrapper macros.
8739 2001-04-11 Blake McBride <blake@florida-software.com>
8741 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8743 2001-04-11 Werner LEMBERG <wl@gnu.org>
8745 * font/devlbp/Makefile.sub (CLEANADD): Set it.
8746 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8747 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8748 * Makefile.sub (DISTCLEANFILES): Here.
8750 * libs/libgroff/new.cc: Include `nonposix.h'.
8751 * win32-diffs: Updated.
8753 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
8755 Added skeleton macro for defunct macros.
8757 Updated documentation.
8759 When inside displays, an empty input line warning should be
8760 suppressed. If another macro call is put inside a display,
8761 all subsequent empty lines found in that display caused a
8762 warning to be emitted.
8764 * tmac/doc.tmac (doc-defunct-macro): New macro.
8765 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8766 (doc-restore-global-vars): Fixed typo.
8767 (doc-empty-line): Check the `doc-display-depth' register to
8768 determine whether we are inside display or not.
8770 * tmac/doc-common: Removed `Or' and `Sf' registers.
8771 Moved obsolete `Ds' macro to doc.tmac.
8773 * tmac/groff_mdoc.man: Bump document date.
8774 Document `.Vt' under ``Variable Types''.
8775 Removed documentation for obsolete `.Or' macro.
8777 2001-04-10 Werner LEMBERG <wl@gnu.org>
8780 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8782 2001-04-10 Bruno Haible <haible@clisp.cons.org>
8784 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8785 (usage): Add stream argument. Don't exit.
8786 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8787 Write --version output to stdout, not stderr.
8788 (usage): Add stream argument. Don't exit.
8789 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8790 (usage): Add stream argument. Don't exit.
8791 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8793 (usage): Add stream argument. Don't exit.
8794 (main): Write --help output to stdout, not stderr.
8795 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8796 (usage): Add stream argument. Don't exit.
8797 * src/devices/grops/ps.cc (main): Accept --help and --version.
8798 (usage): Add stream argument. Don't exit.
8799 * src/devices/grotty/tty.cc (main): Accept --help and --version.
8800 (usage): Add stream argument. Don't exit.
8801 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8802 (main): Accept --help and --version.
8803 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8804 (main): Accept --help and --version.
8805 * src/preproc/html/pre-html.cc (usage): Add stream argument.
8806 (scanArguments): Accept --help and --version.
8807 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8808 (main): Accept --help and --version.
8809 * src/preproc/refer/refer.cc (main): Accept --help and --version.
8810 (usage): Add stream argument. Don't exit.
8811 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8813 (main): Accept --help and --version.
8814 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8815 (main): Accept --help and --version.
8816 * src/roff/groff/groff.cc (main): Accept --help and --version.
8817 (synopsis): Add stream argument.
8818 (help): Write --help output to stdout, not stderr.
8819 (usage): Add stream argument. Don't exit.
8820 * src/roff/grog/grog.pl: Accept --help and --version.
8822 * src/roff/grog/grog.sh: Accept --help and --version.
8823 * src/roff/nroff/nroff.sh: Accept --help and --version.
8824 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8825 (usage): Add stream argument. Don't exit.
8826 (main): Accept --help and --version.
8827 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8828 (usage): New function with stream argument, doesn't exit.
8829 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8830 (usage): New function with stream argument, doesn't exit.
8831 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8832 (usage): Add stream argument. Don't exit.
8833 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8834 (main): Accept --help and --version.
8835 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8837 (main): Accept --help and --version.
8838 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8839 (main): Accept --help and --version.
8840 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8841 (usage): Add stream argument. Don't exit.
8843 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
8845 Fix indentation in SYNOPSIS.
8847 Updated to include changes of latest BSD mdoc version (basically,
8848 the only change is that `.Fn' and `.Fc' put a final semicolon after
8849 a function declaration in the SYNOPSIS section).
8851 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8852 (doc-in-synopsis-section): New variable. Updated all related
8854 (doc-indent-synopsis-active): New register.
8855 (Nd, Fn, Fo): Use it.
8856 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8857 `.Cd' with long argument line produces indented wrapped lines.
8858 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8859 undesirable line break to be output.
8860 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8862 (Fn, Fc): Add final `;' to output.
8863 (doc-save-global-vars, doc-restore-global-vars): Updated.
8864 * tmac/doc-common: Remove `Ex' register.
8866 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8869 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8871 * tmac/doc.tmac (Cd): Simplify code.
8872 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8874 2001-04-06 Werner LEMBERG <wl@gnu.org>
8876 Implement continuous underlining for nroff mode. To do that, a new
8877 request in the ditroff language has been added: `x u N' (N is 0
8880 \X and \Y are now transparent to end-of-sentence recognition.
8882 * src/include/printer.h (printer): Add `type' parameter to `special'
8884 * src/libs/libdriver/printer.cc (printer::special): Updated.
8885 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8887 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8888 specials of type `p'.
8889 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8890 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8891 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8892 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8893 (glyph::order): New method.
8894 (tty_printer::add_char): Use it.
8895 (tty_printer::special): New method.
8896 (tty_printer::end_page): Implement it.
8898 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8899 * src/roff/troff/node.cc (special_node::special_node): Add parameter
8900 to set `no_init_string'.
8901 (special_node::tprint_start): Use it.
8902 (special_node::same, special_node::copy): Updated.
8903 (special_node::ends_sentence): New method.
8904 (troff_output_file::start_special): Add parameter to include
8905 inititialization of special conditionally.
8907 * src/roff/troff/env.h (environment): New member `underline_spaces'.
8908 * src/roff/troff/env.cc (do_underline_special): New function.
8909 (environment::set_font): Use it.
8910 (do_underline): Use it. This was `underline()'.
8911 (underline): Call `do_underline()'.
8912 (continuous_underline): New function which calls `do_underline()'.
8913 (environment::newline): Use `do_underline_special()'.
8914 (init_env_requests): Updated.
8916 * NEWS, man/troff_out.man: Updated.
8918 2001-04-06 Bruno Haible <haible@clisp.cons.org>
8920 * font/devutf8/R.proto: Fix code of 'shc'.
8922 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8924 Many fixes. Diag lists can now be nested also; additionally,
8925 `-compact' and `-offset' are supported.
8927 * tmac/doc.tmac (doc-have-indent): Replaced with ...
8928 (doc-list-have-indent-stackXXX): A new register stack.
8929 (doc-have-diag-list): Removed.
8930 (Bl): Use `doc-list-have-indent-stackXXX'.
8932 (doc-diag-list): Use `doc-compact-list-stackXXX'.
8933 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8934 (doc-set-vertical-and-indent): Ditto.
8935 (doc-next-list-depth): Removed.
8936 (doc-increment-list-stack): Updated.
8937 (doc-decrement-list-stack): Use `doc-list-depth' instead of
8938 `doc-next-list-depth'.
8939 (doc-end-list, doc-end-column-list): Don't use
8940 `doc-increment-list-stack'.
8941 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8942 (doc-save-global-vars, doc-restore-global-vars): Updated.
8943 * tmac/doc-common: Updated.
8944 * tmac/groff_mdoc.man: Updated.
8947 2001-04-02 Werner LEMBERG <wl@gnu.org>
8949 * src/devices/grotty/grotty.man: Fix grammatical error.
8951 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
8953 Remove .Ld from mdoc package; replace it with special handling of
8956 * tmac/doc-common: Remove `Ld' register.
8957 Uncomment `doc-volume-ds-*' strings.
8958 Remove `doc-operating-system-default'.
8960 * tmac/doc-syms (Ld): Removed.
8961 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8965 * tmac/groff_mdoc.man: Many fixes and updates.
8967 2001-03-29 Werner LEMBERG <wl@gnu.org>
8969 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
8970 Bond <tkb@tkb.mpl.com>.
8971 * tmac/www.tmac: Save compatibility mode.
8973 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
8975 * tmac/groff_mdoc.man: Many fixes.
8977 2001-03-28 Werner LEMBERG <wl@gnu.org>
8979 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8982 2001-03-27 Werner LEMBERG <wl@gnu.org>
8984 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8985 diversion. This fixes overlong tags.
8987 2001-03-26 Werner LEMBERG <wl@gnu.org>
8989 * doc/groff.texinfo: Fixed and improved documentation of fonts.
8990 * tmac/doc-syms: Fix error messages.
8991 * tmac/an-old.tmac: Remove incorrect double backslashes.
8993 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
8995 * tmac/Makefile.sub: Strip mdoc.local also
8996 * tmac/strip.sed: Fixed.
8998 2001-03-24 Werner LEMBERG <wl@gnu.org>
9000 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9001 selecting the font size.
9002 * tmac/groff_mdoc.man, NEWS: Document it.
9004 2001-03-23 Werner LEMBERG <wl@gnu.org>
9006 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9008 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9009 argument to restore previous font family.
9010 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9012 * doc/groff.texinfo: More fixes and additions (mainly for font
9013 manipulating commands).
9015 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9016 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9017 * tmac/Makefile.sub, NEWS: Updated.
9019 2001-03-23 Werner LEMBERG <wl@gnu.org>
9021 Replaced mdoc implementation. The new version is `state of the
9022 art', using almost all new features of groff 1.17 -- it won't run
9023 with older versions.
9025 * tmac/doc.tmac: Completely rewritten.
9026 * tmac/doc-common: Ditto.
9027 * tmac/doc-nroff: Ditto.
9028 * tmac/doc-ditroff: Ditto.
9029 * tmac/doc-syms: Ditto.
9030 * tmac/mdoc.local: New file.
9031 * tmac/groff_mdoc.samples.man: Replaced with ...
9032 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9033 * tmac/strip.sed: Updated.
9034 * tmac/Makefile.sub: Updated.
9037 * tmac/groff_man.man: Add `man.local' to the FILES section.
9039 2001-03-22 Werner LEMBERG <wl@gnu.org>
9041 * doc/groff.texinfo: Added many @noindent.
9042 Replaced @end_Example -> @endExample.
9043 Added info whether registers are r/o.
9044 Many other additions and fixes.
9046 2001-03-21 Werner LEMBERG <wl@gnu.org>
9048 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9049 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9050 Improved @Def* macros: Now the exact syntax of request, register,
9051 and escapes is shown.
9052 Added macros for parentheses and brackets to be used in @Def*.
9053 Many fixes and improvements of the documentation.
9055 2001-03-20 Werner LEMBERG <wl@gnu.org>
9057 * doc/groff.texinfo: Added new index: `st' (for strings).
9058 Added macros @Defstr(x).
9059 Added macro @Example (adding @group).
9060 Other minor improvements.
9062 2001-03-19 Werner LEMBERG <wl@gnu.org>
9064 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9065 `rq' for requests. `fn' is no longer used.
9066 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9069 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9070 number with name of man page.
9072 2001-03-19 Larry Kollar <kollar@alltel.net>
9074 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9077 2001-03-19 Werner LEMBERG <wl@gnu.org>
9079 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9080 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9081 * src/devices/grohtml/grohtml.man: Fixing typos.
9083 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9085 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9086 * tmac/groff_mwww.man: Remove .LINE macro
9087 * tmac/www.tmac (LINE): Add `.ti'.
9089 * src/devices/grohtml/post-html.cc (html_printer): New member
9091 (html_printer::emit_raw): Use it.
9092 (html_printer::do_linelength): Ditto.
9093 (html_printer::do_pageoffset): Ditto.
9094 (html_printer::do_indentation): Ditto.
9095 (html_printer::do_tempindent): Ditto.
9096 (html_printer::do_break): Ditto.
9097 (html_printer::begin_page): Ditto.
9098 (html_printer::do_indentedparagraph): New function.
9099 (html_printer::troff_tag): Handle `.ip'.
9100 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9101 Add `<td width=...>' handling.
9102 (html_text::do_table): Add parameter.
9103 (html_text::do_indent): Updated.
9104 * src/devices/groohtml/html-text.h: Updated.
9106 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9108 Introduced simple html tables to implement indentation.
9110 * src/devices/grohtml/html.h (word, word_list): New structures.
9111 (simple_output): Use it.
9112 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9113 (html_printer): Improve indentation handling.
9114 (html_printer::emit_raw): Set `in_table' element. Handle
9116 (html_printer::write_header): Move conditional downwards.
9117 Don't allow whitespace in tags.
9118 (html_printer::do_linelength): Handle line length and indentation
9120 (html_printer::do_pageoffset): Handle indentation conditionally.
9121 (html_printer::do_indentation): Ditto.
9122 (html_printer::do_tempindent): New function member.
9123 (html_printer::do_fill): Take care of indentation.
9124 (html_printer::do_flush): Finish table.
9125 (html_printer::do_links): Ditto.
9126 (html_printer::do_break): New function for handling `.br' and `.ti'.
9127 (html_printer::troff_tag): Use it.
9129 (html_printer::flush_globs): Fix.
9130 (html_printer::flush_page): Finish table.
9131 (html_printer::html_printer): Fix error message. Set up
9133 (html_printer::add_to_sbuf): Remove special handling of character
9135 (to_unicode): Remove `stop()'.
9136 (html_printer::write_title): Cleanup.
9137 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9138 (html_printer::~html_printer): Flush text and end the line.
9140 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9141 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9143 (html_text::start_tag): Disable newlines.
9144 (html_text::table_is_void): New function.
9145 (html_text::issue_table_begin): Ditto.
9146 (html_text::issue_table_end): Ditto.
9147 (html_text::push_para): Better table handling.
9148 (html_text::do_indent): New function.
9149 (html_text::do_table): Ditto.
9150 (html_text::done_table): Ditto.
9151 (html_text::do_tt): Handle PRE_TAG.
9152 (html_text::is_in_table): New function.
9153 (html_text::check_emit_text): Handle tables.
9154 (html_text::do_emittext): Use `nl()'.
9155 (html_text::do_para): Handle table.
9156 (html_text::remove_def): New function.
9157 * src/devices/grohtml/output.cc (word, word_list): Implement
9159 (simple_output::end_line): Flush last word.
9160 (simple_output::simple_comment): Ditto.
9161 (simple_output::begin_comment): Recoded.
9162 (simple_output::end_comment): Ditto.
9163 (simple_output::comment_arg): Removed.
9164 (simple_output::check_newline): Improve test and flush last word.
9165 (simple_output::space_or_newline): Improved.
9166 (simple_output::write_newline): Replaced with...
9167 (simple_output::nl): This.
9168 (simple_output::put_raw_char): Flush last word.
9169 (simple_output::check_space): Removed.
9170 (simple_output::put_translated_string): Ditto.
9171 (simple_output::put_string): Simplified.
9172 (simple_output::put_number): Updated.
9173 (simple_output::put_float): Ditto.
9174 (simple_output::put_symbol): Removed.
9175 (simple_output::enable_newlines): Add `check_newline()'.
9176 (simple_output::flush_last_word): New function.
9178 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9179 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9181 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9182 * tmac/an-old.tmac (TP): Ditto.
9184 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9186 * mdate.sh: Make it POSIX compliant.
9188 2001-03-09 Werner LEMBERG <wl@gnu.org>
9190 Added the `return' request to end a macro immediately. It simply
9191 pops iterators from the input stack until a macro iterator is found.
9193 * src/roff/troff/input.cc (input_iterator::is_macro,
9194 macro_iterator::is_macro): New member.
9195 (input_return_boundary): New class to signal an immediate return
9197 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9199 (input_stack::clear): Use it.
9200 (input_stack::pop_macro): New function.
9201 (while_request): Use `is_return_boundary()'.
9202 (return_macro_request): New function.
9203 (init_input_requests): Use it.
9205 * src/roff/troff/TODO: Updated.
9206 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9208 2001-03-08 Werner LEMBERG <wl@gnu.org>
9210 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9213 2001-03-07 Werner LEMBERG <wl@gnu.org>
9215 Make `\B' more rigid.
9217 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9219 (get_number_rigidly): New function.
9220 * src/roff/troff/input.cc (do_expr_test): Use it.
9221 * src/roff/troff/token.h: Updated.
9223 * src/roff/troff/request.h: Fix typo (init_html_request ->
9224 init_markup_request).
9226 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9228 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9229 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9230 are now `.begin', `.end', `.image'.
9232 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9233 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9234 Use add_char_to_sbuf().
9235 (to_unicode): New function.
9236 (char_translate_to_html): Changing type of `ch' parameter.
9238 (html_printer::~html_printer): Comment out doctype string.
9239 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9240 instead of `.html-end'.
9241 (write_start_image): Use `.begin' and `.image' instead of
9242 `.html-begin' and `.html-image'.
9243 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9244 (html_begin): Renamed to ...
9246 (html_end): Renamed to ...
9248 (html_image): Renamed to ...
9250 (init_html_requests): Renamed to ...
9251 (init_markup_requests): This.
9252 * tmac/www.tmac: Updated.
9254 2001-02-28 Bram <bram@avontuur.org>
9256 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9259 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9261 * doc/meref.me: Fixing some typos.
9263 2001-02-16 Werner LEMBERG <wl@gnu.org>
9265 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9266 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9267 * src/roff/troff/node.h: Updated.
9269 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9271 * tmac/groff_tmac.man: Fix typo.
9273 2001-02-16 Werner LEMBERG <wl@gnu.org>
9275 Fixing a bug which prevented proper end-of-sentence recognition
9276 between an `unformatted' box and the following text. As a
9277 consequence, vertical line distances are no longer preserved in
9278 boxes after a call to `.unformat' -- because boxes aren't
9279 line-oriented (contrary to diversions), this doesn't make sense
9282 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9284 (vertical_size_node::set_unformat_flag): New method.
9285 * src/roff/troff/node.hh: Updated.
9286 * src/roff/troff/input.cc (word_space_node::reread,
9287 hmotion_node::reread): Reset `unformat' flag after usage.
9288 (unformat_macro): Append only if `set_unformat_flag()' returns
9290 * src/roff/troff/troff.man: Updated.
9292 2001-02-15 Werner LEMBERG <wl@gnu.org>
9294 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9295 documentation of `asciify' and `unformat' requests.
9297 2001-02-13 Werner LEMBERG <wl@gnu.org>
9299 Redesigned the `unformat' request. It is no longer connected with
9300 `asciify' but rather uses new `reread()' methods if the `unformat'
9301 flag is set. Additionally, the handling of space characters after
9302 unformatting has been fixed so that they retain their width.
9304 * src/roff/troff/node.h (width_list): New structure to store
9305 original widths of spaces.
9306 (node): Added `unformat' member.
9307 Replaced `num_spaces' variable with `orig_width' list.
9308 * src/roff/troff/node.cc (*node::asciify,
9309 asciify_reverse_node_list): Removed `unformat_only' flag and related
9311 (word_space_node::asciify, word_space_node::word_space_node): Use
9313 (word_space_node::~word_space_node): New destructor.
9314 (word_space_node::copy): Updated to handle `orig_width'.
9315 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9316 (*node::merge_space): Update `orig_width' list if necessary.
9317 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9318 * src/roff/troff/enc.cc (environment::space_newline): Use
9320 (environment::space): Added method to handle space width and
9321 sentence space width as parameters. Use `width_list'.
9322 (environment::make_tab_node): Updated.
9323 * src/roff/troff/env.h: Updated.
9324 * src/roff/troff/input.cc (word_space_node::reread,
9325 unbreakable_space_node::reread, hmotion_node::reread): New methods
9326 to handle nodes specially if `unformat' flag is set.
9327 (do_asciify_macro): Renamed back to ...
9328 (asciify_macro): This.
9329 (unformat_macro): New implementation to simply set the `unformat'
9332 * MORE.STUFF: Added more info about deroff.
9334 2001-02-08 Werner LEMBERG <wl@gnu.org>
9336 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9337 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9338 and `add_self()' methods to avoid hyphenation. For example, the
9339 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9340 soft hyphen after `foo'. Now the hyphen list is correctly
9341 `foo<ignore><ignore>bar'.
9343 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9345 * tmac/groff_tmac.man: Fix `BIR' macro.
9347 2001-02-04 Werner LEMBERG <wl@gnu.org>
9349 A new escape sequence `\:', inserting a zero-width break point.
9351 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9352 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9354 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9356 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9357 and `asciify()' methods.
9358 * src/roff/troff/node.cc (space_node::space_node): Updated.
9359 (space_node::asciify): Handle `was_escape_colon'.
9360 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9362 Handle `\~' similar to other comparable requests.
9364 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9366 (token::next): Move creation of an unbreakable_space_node to...
9367 (token::add_to_node_list): Here.
9369 Fix a bug which sometimes prevented hyphenation of words connected
9370 with `\~' or `\ ' (and other escape sequences handled as
9371 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9372 (after a call to the `unformat' request).
9374 * src/roff/troff/env.h (environment::possibly_break_line,
9375 environment::hyphenate_line): Introducing `start_here' parameter.
9376 * src/roff/troff/env.cc (environment::space_newline,
9377 environment::space): Use it.
9378 (environment::possibly_break_line, environment::hyphenate_line):
9380 * src/roff/troff/input.cc (process_input_stack): Use it.
9381 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9382 space_char_hmotion_node, overstrike_node): Add
9383 `get_hyphenation_type()' method.
9384 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9385 if `unformat_only' is active.
9387 2001-01-30 Werner LEMBERG <wl@gnu.org>
9389 Implemented new read-only number register `.linetabs' which
9390 returns 1 if in line-tabs mode, 0 otherwise.
9392 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9393 * src/roff/troff/env.cc (get_line_tabs): New function.
9394 (init_env_requests): Use it.
9395 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9397 * VERSION, REVISION: Changing to 1.17.0.
9399 2001-01-28 Werner LEMBERG <wl@gnu.org>
9401 Fixed a bug which prevented hyphenation of words which are finished
9404 * src/roff/troff/token.h (token): Add enum type
9405 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9406 * src/roff/troff/input.cc (token::next, token::description,
9407 get_line_arg, token::add_to_node_list, token::process): Use it.
9409 2001-01-27 Werner LEMBERG <wl@gnu.org>
9411 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9412 * src/roff/troff/div.cc (do_divert): Use it.
9414 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9416 2001-01-25 Werner LEMBERG <wl@gnu.org>
9418 Adding the `linetabs' request. If set, tab distances are not
9419 computed relative to the input line but relative to the output line.
9421 * src/roff/troff/env.h (environment): New member `line_tabs'.
9422 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9423 (environment::environment, environment::copy): Updated.
9424 (environment::distance_to_next_tab): Use `line_tabs'.
9425 (init_env_requests): Register request.
9426 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9429 2001-01-24 Werner LEMBERG <wl@gnu.org>
9431 Introducing a new read-only register `.int' which is set to a
9432 positive value if the last output line is interrupted (i.e., if it
9435 * src/roff/troff/env.cc (init_env_requests): Add it.
9436 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9438 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9440 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9441 * src/preproc/html/pre-html.cc (findPrefix): New function which
9442 generates the troff executable name via the system prefix.
9443 * src/preproc/eqn/main.cc: Modified warning message.
9445 2001-01-23 Werner LEMBERG <wl@gnu.org>
9447 troff's `box' and `boxa' requests didn't preserve temporary
9450 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9451 `saved_target_text_length' members.
9452 * src/roff/troff/div.cc (do_divert): Use them.
9454 Tabs (but not yet leaders and fields) are now handled correctly by
9457 * node.h (hmotion_node): Add field `was_tab'.
9458 * env.cc (environment::make_tab_node): Set it.
9459 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9461 Added new request `unformat' which will, contrary to `asciify',
9462 preserve font information after unformatting (i.e., only nodes
9463 dealing with horizontal space are converted back to input
9466 * input.cc (asciify_macro): Renamed to ...
9467 (do_asciify_macro): this, having a new parameter `unformat_only'.
9468 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9469 (init_input_requests): Added `unformat'.
9470 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9471 parameter to control asciification process.
9472 * node.h (*_node::asciify): Ditto.
9473 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9475 2001-01-20 Werner LEMBERG <wl@gnu.org>
9477 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9479 2001-01-18 Werner LEMBERG <wl@gnu.org>
9481 * tmac/ps.tmac: Remove call of psold.tmac.
9482 * tmac/psold.tmac: Comment updated.
9483 * tmac/psnew.tmac: Removed since no longer needed.
9484 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9486 * font/devutf8/R.proto: Adding `shc' glyph.
9487 * font/devutf8/NOTES: Updated.
9489 * test-groff: Updated.
9491 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9493 First cut of the new html device driver. Changes to pre-html and
9494 the new grohtml are too numerous to be documented here.
9496 Stuff related to `html' has been renamed to `html-old' and `html2'
9497 stuff has been renamed to `html' (including directories). The new
9498 html device driver is therefore invoked as `-Thtml'.
9500 Added new `\O' escape to suppress output (needed by html driver).
9502 Added functions and code to pass info about input-level commands
9503 (`.in', `.fl', etc.) to html driver.
9505 Three new functions (.html-begin, .html-end, and .html-image) for
9506 better html handling: `html-begin' will execute the remaining line
9507 if at the outermost nesting level, increasing an internal counter.
9508 `html-end' does the same but decreases the internal counter.
9509 `html_image' puts its arguments into a special node (suppress_node)
9510 to define an image region.
9512 The `output' request has been removed.
9514 * tmac/html-tags.tmac: Removed.
9515 * tmac/arkup.tmac: Updated and renamed to ...
9516 * tmac/www.tmac: New file.
9517 * tmac/markup.tmac Updated and renamed to ...
9518 * tmac/mwww.tmac: New file.
9519 * tmac/Makefile.sub: Updated.
9520 * tmac/an-old.tmac: Updated.
9521 * tmac/eqnrc: Updated.
9522 * tmac/groff_man.man
9523 * tmac/groff_markup.man: Updated and renamed to ...
9524 * tmac/groff_mwww.man: New file.
9525 * tmac/groff_tmac.man: Updated.
9526 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9527 * tmac/html.tmac: Updated and renamed from html2.tmac.
9528 * tmac/pspic.tmac: Updated html support.
9529 * tmac/s.tmac: Added html output support.
9530 * tmac/troffrc, tmac/troffrc-end: Updated.
9532 * Makefile.in, doc/Makefile: Updated.
9533 * doc/groff.texinfo: Added info about new `\O' escape.
9534 * doc/homepage.ms: Use `MAILTO' macro.
9536 * font/devhtml/DESC.proto: Add `C' font.
9537 * font/devhtml/Makefile.sub: Updated.
9538 * font/devhtml/R.proto: Minor fixes.
9539 * font/devhtml-old/Makefile.sub: Updated.
9541 * src/devices/grohtml-old/Makefile.sub: Updated.
9543 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9545 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9546 graphic_start): Add `inline' parameter. Update.
9547 (html_end_suppress, graphic_end): Update.
9549 * src/include/html-strings.h: New file.
9550 * src/include/htmlindicate.h: Comments updated.
9551 * src/include/printer.h: Updated.
9553 * src/preproc/eqn/main.cc (do_file, main): Updated.
9554 * src/preproc/pic/troff.cc (troff_output::start_picture,
9555 troff_output::finish_picture): Updated.
9556 * src/preproc/tbl/main.cc (process_input_file): Updated.
9558 * src/roff/groff/groff.cc (main): Updated.
9559 Pass device arguments to predrivers also.
9560 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9561 * src/roff/troff/env.h (environment): Updated.
9562 New elements `need_eol' and `ignore_next_eol' (for html output).
9563 * src/roff/troff/env.cc (environment::environment): Add initializers
9564 for `need_eol' and `ignore_next_eol'.
9565 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9567 (point_size, fill, no_fill, center, right_justify, line_length,
9568 indent, temporary_indent, break_request, handle_tab): Use
9570 (set_tabs): Use `add_html_tag_tabs()'.
9571 (environment::add_html_tag): Updated.
9572 (environment::do_break): Updated.
9573 * src/roff/troff/div.cc (space_request, flush_output): Use
9574 `environment::add_html_tag()'.
9575 * src/roff/troff/input.cc: Updated.
9576 New variable `html_level' to indicate nested `html-begin' requests.
9577 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9578 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9579 `force_tprint()' method.
9580 (token::next): Handle `\O'.
9581 (do_suppress): Implement it.
9582 (html_begin, html_end, html_image): New functions.
9583 (init_output_requests): Renamed to ...
9584 (init_html_requests): this.
9586 (macro::append_str, macro::append_unsigned, macro::append_int): New
9588 New variable `output_low_mark_miny' to limit minimal value of y.
9589 (reset_output_registers): Use it.
9590 (output_request): Removed.
9591 (get_output_registers): New function.
9592 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9593 (*_node): Added `force_tprint()' if necessary.
9594 (special_node): New elements `tf' and `get_tfont()'.
9595 (suppress_node): New class.
9596 * src/roff/troff/node.cc:
9597 New global variables `image_no' and `suppress_start_page'.
9598 (real_output_file): New method `is_on()'.
9599 (troff_output_file): New method `start_special(tfont)'.
9600 (troff_output_file::really_print_line): Use `tprint' conditionally.
9601 (real_output_file::print_line): Updated.
9602 (real_output_file::on): Updated.
9603 (*_node): Added `force_tprint()'.
9604 (special_node::special_node): Initializer updated.
9605 (special_node::same, special_node::copy, special_node::tprint_start):
9607 (get_reg_int, get_reg_str): New functions.
9608 (suppress_node::*): New methods.
9609 New global variables last_position, last_image_filename;
9610 (min): New inline function.
9611 * src/roff/troff/reg.h, src/roff/troff/request.h,
9612 src/roff/troff/troff.h: Updated.
9614 2001-01-13 Werner LEMBERG <wl@gnu.org>
9616 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9617 documentation of `asciify' request.
9619 2001-01-12 Werner LEMBERG <wl@gnu.org>
9621 * src/roff/troff/input.cc: Move definition of special characters
9622 like `ESCAPE_TILDE' to ...
9623 * src/roff/troff/input.h: New file.
9624 * src/roff/troff/Makefile.sub (HDRS): Add it.
9626 Extending the .asciify request to `unformat' space characters also.
9628 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9629 to count input space characters.
9630 Update constructors to take care of it.
9631 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9632 `ESCAPE_SPACE' instead of normal space.
9633 (word_space_node::asciify): New method.
9634 (unbreakable_space_node::asciify): New method.
9635 (word_space_node::merge_space): New method.
9636 * src/roff/troff/env.cc (environment::space_newline,
9637 environment::space): Add code to initialize `num_spaces' (using the
9638 constructor of `word_space_node').
9639 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9642 2001-01-09 Werner LEMBERG <wl@gnu.org>
9644 * man/groff_char.man: Use table header traps only conditionally.
9646 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
9648 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9650 2001-01-08 Werner LEMBERG <wl@gnu.org>
9652 Introducing the `box' and `boxa' requests which are similar to
9653 `di' resp. `da' but omitting a partially filled line (which is
9654 restored after ending the diversion).
9656 * src/roff/troff/div.h (diversion): Add elements to save partially
9658 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9659 partially filled line.
9660 (divert, divert_append): Updated.
9661 (box, box_append): New functions.
9662 (init_div_requests): Use them.
9663 * src/roff/troff/env.h (environment): do_divert() is now a friend.
9664 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9666 * doc/groff.texinfo: Fix documentation of `lf' request.
9668 2000-12-25 Werner LEMBERG <wl@gnu.org>
9670 * src/roff/troff/troff.man, NEWS: Document `writem' request.
9672 2000-12-21 Werner LEMBERG <wl@gnu.org>
9674 Ignore `ss' request if in compatibility mode.
9676 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9677 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9678 * src/roff/troff/env.cc (space_size): Use it.
9680 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9681 `ss' request in nroff mode.
9683 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9686 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
9688 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9690 2000-12-13 Werner LEMBERG <wl@gnu.org>
9692 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9693 * src/preproc/eqn/neqn.man: Small fixes and additions.
9695 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
9697 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9700 * src/preproc/eqn/neqn.man: New file.
9702 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9705 * tmac/e.tmac: Add `T&' macro.
9706 Fix `indent cannot be negative' warning.
9707 * tmac/s.tmac: Fix `indent cannot be negative' warning.
9709 2000-12-07 Werner LEMBERG <wl@gnu.org>
9711 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9713 2000-12-06 Werner LEMBERG <wl@gnu.org>
9715 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9718 * MORE.STUFF: Added info about deroff for djgpp.
9720 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9721 documentation of -rcR switch.
9723 2000-12-03 Werner LEMBERG <wl@gnu.org>
9725 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9726 if -rcR=1 (which is now the default in nroff mode), a single, very
9727 long page is created instead of multiple pages: All `ne' and `wh'
9728 requests are put into conditionals; a new macro `an-end' is added to
9729 be called with `em'.
9731 Some other minor cleanups.
9733 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9735 2000-12-02 Werner LEMBERG <wl@gnu.org>
9737 Fixing a bug which prevented hyphenation in words followed
9738 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9740 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9741 Adding possibly_break_line().
9742 * src/roff/troff/env.h (environment): Make possibly_break_line()
9745 Make `\~' usable in .tr request.
9747 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9748 (token): Add stretchable_space().
9749 * src/roff/troff/input.cc (token::next, token::delimiter,
9750 token::description, process_input_stack, do_translate,
9751 add_to_node_list, token::process): Use it.
9752 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9753 for adjusting the space.
9754 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
9755 for stretchable space.
9756 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9757 (make_node): Add code for stretchable space.
9758 * src/roff/troff/env.cc (environment::add_char): Use it.
9759 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9760 (get_copy, token::next, transparent_translate, asciify): Use it.
9762 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9763 doc/groff.texinfo: Updated.
9764 * man/groff.man: Small reorderings.
9766 2000-11-23 Werner LEMBERG <wl@gnu.org>
9769 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9771 * src/roff/troff/input.cc (main): Add `config_macro_path' and
9772 `safer_macro_path' to -M option.
9773 * src/roff/troff/troff.man: Fixes.
9775 2000-11-22 Werner LEMBERG <wl@gnu.org>
9777 Use safer path (except for config files) if -U isn't specified. Add
9778 a special macro path (without home and current directory) for config
9779 files. Add home directory to unsafe path for consistency. Don't
9780 include the home directory in the font path.
9782 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9784 * src/include/macropath.h: Add `config_macrp_path'.
9785 * src/libs/libgroff/fontfile.cc: Fix font path.
9786 * src/roff/troff/input.cc (process_startup_file): Use
9787 `config_macro_path'.
9788 (main): Select unsafe path if -U is given.
9790 * src/preproc/eqn/main.cc (main): Fixing search path for
9792 * src/preproc/eqn/eqn.man: Updated.
9794 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9797 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9798 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9799 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9800 src/devices/grotty/grotty.man: Updated.
9802 * Makefile.in: Fix comments.
9804 2000-11-17 Werner LEMBERG <wl@gnu.org>
9806 * tmac/safer.tmac: Empty file added (again) for compatibility
9808 * tmac/Makefile.sub: Updated.
9810 2000-11-16 Werner LEMBERG <wl@gnu.org>
9812 * src/devices/grodvi/dvi.cc (main),
9813 src/devices/grohtml2/post-html.cc (main),
9814 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9815 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9816 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9817 (main), src/preproc/html2/pre-html.cc (main),
9818 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9819 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9820 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9821 (main), src/utils/hpftodit/hpftodit.cc (main),
9822 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9823 (main), src/utils/lookbib/lookbib.cc (main),
9824 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9825 (main): Use stdout for -v.
9826 * src/roff/groff/groff.cc (run_commands),
9827 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9828 to make direct printing to stdout possible.
9829 * src/roff/groff/pipeline.h: Updated.
9831 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9832 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9833 * src/utils/afmtodit/afmtodit.man: Updated.
9835 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9836 (version): New function.
9838 * src/utils/addftinfo/addftinfo.man: Updated.
9840 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9841 Fixing copyright dates.
9843 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9846 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9849 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9851 2000-11-15 Werner LEMBERG <wl@gnu.org>
9853 In all programs, make -v return immediately with exit status 0 to
9854 be compliant with the GNU standard.
9856 * src/devices/grodvi/dvi.cc (main),
9857 src/devices/grohtml2/post-html.cc (main),
9858 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9859 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9860 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9861 (main), src/preproc/html2/pre-html.cc (main),
9862 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9863 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9864 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9865 (main): Implement it.
9868 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
9869 and postprocessors to the -v option.
9871 * src/roff/grog/grog.pl: Implement -v.
9872 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9873 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9875 * src/roff/nroff/nroff.sh: Implement -v.
9876 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9877 * src/roff/nroff/nroff.man: Updated.
9879 * src/preproc/eqn/main.cc (main): Fix comment typo.
9881 * MORE.STUFF: Added info about djgpp port of grap.
9883 2000-11-14 Werner LEMBERG <wl@gnu.org>
9885 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9886 mode (or rather, implemented non-compatibility mode).
9887 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9889 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9890 replacing it -- we don't find gxditview otherwise.
9891 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9893 * src/preproc/pic/depend: Removed. Unnecessary.
9895 Implemented dummy keyword `solid' in pic for compatibility with
9898 * lex.cc (lookup_keyword): Added `solid'.
9899 * pic.y: Added SOLID with dummy rule.
9900 * pic.cc, pic_tab.h: Regenerated.
9901 * doc/pic.ms: Updated.
9903 2000-11-13 Werner LEMBERG <wl@gnu.org>
9905 For security reasons, don't use the current directory but the home
9906 directory while searching and scanning troffrc and troffrc-end.
9907 Similarly, replace the current directory with the home directory
9910 * Makefile.in (fontpath, tmacpath): Remove current directory.
9912 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9913 two parameters `add_home' and `add_current'.
9914 (search_path::~search_path, search_path::command_line_dir,
9915 search_path::open_file): Remove tests for `dirs' being zero.
9916 * src/include/searchpath.h: Adjust.
9917 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9919 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9921 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9922 * src/roff/troff/input.cc: Use `mac_path', initialized with
9924 (process_startup_file): Set `mac_path' to `safer_macro_path'.
9925 * src/roff/troff/env.cc: Use `mac_path'.
9927 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9929 * NEWS, man/roff.man, src/roff/troff/troff.man,
9930 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9933 2000-11-12 Werner LEMBERG <wl@gnu.org>
9935 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9937 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9938 * configure.in: Fix typo in comment.
9939 * configure: Regenerated.
9941 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9944 2000-11-08 Werner LEMBERG <wl@gnu.org>
9946 Add system tmac directory (/usr/local/lib/groff/site-tmac).
9948 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9949 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9952 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9953 * tmac/Makefile.sub (install_data): Create
9954 $(systemtmacdir) and $(localtmacdir).
9955 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9956 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9957 NEWS, doc/groff.texinfo: Updated and minor fixes.
9959 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9960 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9961 $(systemtmacdir) since the wrapper files are platform-dependent.
9963 2000-11-01 Werner LEMBERG <wl@gnu.org>
9965 * doc/groff.texinfo: Fix typo.
9967 2000-10-26 Werner LEMBERG <wl@gnu.org>
9969 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
9970 tmac.doc.old -> doc-old.tmac
9971 tmac.an.old -> an-old.tmac
9973 * tmac/tmac.*: Moved to ...
9974 * tmac/*.tmac: this.
9975 * tmac/man.local: Fix comment.
9976 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9977 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
9978 Added some `FILES' sections. More use of @...@ directives. Other
9980 * arch/djgpp/README, font/devutf8/NOTES: Updated.
9981 * doc/homepage.ms, doc/groff.texinfo: Updated.
9982 * man/groff.man, man/roff.man: Updated.
9983 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9984 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9985 src/devices/grotty/grotty.man: Updated.
9986 * src/preproc/pic/pic.man: Updated.
9987 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9988 instead of -mdoc.old.
9989 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9990 * src/roff/nroff/nroff.man: Updated.
9993 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9995 * tmac/mm.diff: Removed -- it has no use now since the mm package
9998 * tmac/*: Removed trailing spaces.
10000 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10001 the tmac subdirectory also).
10003 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10004 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10005 stuff since it is no longer needed.
10007 * README, PROBLEMS: Updated.
10009 2000-10-25 Werner LEMBERG <wl@gnu.org>
10011 Invert current behaviour: Search first FOOBAR.tmac, then
10014 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10015 (open_mac_file, macro_source): Implement it.
10016 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10017 doc/groff.texinfo, NEWS: Document it.
10019 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10020 Small documentation improvements.
10022 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10023 subdirectory also).
10025 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10027 2000-10-24 Werner LEMBERG <wl@gnu.org>
10029 Add local tmac directory (groff/site-tmac).
10031 * Makefile.in: Add $(localtmacdir).
10032 (uninstall_dirs): Add $(localtmacdir).
10033 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10034 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10035 in $(localtmacdir). Create $(localtmacdir).
10036 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10037 Updated and minor fixes.
10039 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10041 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10043 2000-10-23 Werner LEMBERG <wl@gnu.org>
10045 Move hyphen.us to tmac directory.
10047 * src/roff/troff/hyphen.us: Removed.
10048 * src/tmac/hyphen.us: Added.
10049 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10051 Change installation structure for data files from .../groff/... to
10052 .../groff/<version><revision>/... to be conform with other GNU
10055 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10056 doc/Makefile: Implement it.
10057 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10058 * configure: Updated.
10059 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10060 * NEWS: Document it.
10061 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10062 @MACRODIR@ instead of hard-coded directories.
10064 2000-10-22 Werner LEMBERG <wl@gnu.org>
10066 Implement $GROFF_BIN_PATH environment variable (which defaults to
10067 $bindir) used for child programs of groff and similar wrappers.
10069 * gendefs.sh: Improve documentation.
10070 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10071 src/preproc/eqn/Makefile.sub (neqn),
10072 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10073 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10075 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10076 $GROFF_PATH__ (the latter for communication with troff).
10077 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10079 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10080 doc/groff.texinfo: Document it.
10082 * doc/groff.texinfo: Improve documentation of troff's -a option.
10084 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10086 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10087 non-intrusive eol marker.
10088 (troff_output_file::determine_line_limits): New function.
10089 (troff_output_file::draw): Use it.
10090 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10091 output_pending_lines() instead of output_line().
10092 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10093 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10094 createImage): Small fixes.
10096 2000-10-14 Werner LEMBERG <wl@gnu.org>
10098 Replace tmac.safer with a real secure solution.
10100 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10101 system_request, pipe_output): Disable requests if in safer mode.
10102 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10103 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10104 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10105 doc/groff.texinfo, src/roff/groff/groff.man,
10106 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10108 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10109 (resource_manager::output_prolog): Replace setenv() with putenv().
10111 2000-10-09 Werner LEMBERG <wl@gnu.org>
10113 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10114 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10115 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10116 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10117 compilation errors with some compilers. It seems that this code
10118 is no longer necessary -- if yes, it is easy to add some #ifdef's
10119 for that particular old-fashioned compiler.
10121 * MORE.STUFF: Added info about Meta-tbl.
10123 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10125 2000-10-07 Werner LEMBERG <wl@gnu.org>
10127 Adding a new escape sequence \B'...': If the string between
10128 the delimiters is a valid numeric expression, return the character
10129 `1', and `0' otherwise. This is an analogon to \A.
10131 * src/roff/troff/input.cc (do_expr_test): Implement it.
10132 (token::next): Use it.
10133 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10135 * tmac/tmac.trace: Made independent from escape character.
10137 2000-10-06 Werner LEMBERG <wl@gnu.org>
10139 Adding a new request .dei: define indirect. The first and second
10140 parameter of .dei are taken from string registers instead directly;
10141 this very special request is needed to make tmac.trace independent
10142 from the escape character (which might even be disabled).
10144 * src/roff/troff/input.cc (do_define_macro): Implement it.
10145 (define_macro_indirect): New function.
10146 (init_input_requests): Use it.
10148 Adding two requests .ecs and .ecr: Save and restore the escape
10149 character. These two requests are needed to make tmac.trace
10150 independent from the escape character (which might even be
10153 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10155 (init_input_requests): Use it.
10157 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10159 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10161 Adding a new option -P and new environment variable GROPS_PROLOGUE
10162 to grops, selecting a different prologue file (minor modifications
10165 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10166 src/devices/grops/ps.cc (main): Implement it.
10167 * src/devices/grops/grops.man, NEWS: Document it.
10169 2000-09-22 Werner LEMBERG <wl@gnu.org>
10171 * INSTALL: Add info about selecting paper format.
10173 2000-09-21 Werner LEMBERG <wl@gnu.org>
10175 * src/roff/troff/input.cc (main): Fixing compiler warning.
10176 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10177 strings.h from the former to the latter.
10178 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10179 stuff from the former to the latter.
10181 2000-09-11 Werner LEMBERG <wl@gnu.org>
10183 Implementing two new requests .tm1 and .tmc: The former is similar
10184 to .tm but can output leading spaces; its syntax is similar to
10185 defining a string, i.e., a `"' can be used to mark the beginning of
10186 the string to be written to stderr: `.tm1 " test'. The latter is
10187 similar to .tm1 but doesn't write out a final newline character.
10189 * src/roff/troff/input.cc (terminal1, terminal_continue,
10190 do_terminal): New functions.
10191 (init_input_requests): Use them.
10192 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10194 2000-09-09 Werner LEMBERG <wl@gnu.org>
10196 * tmac/groff_mdoc.samples.man: Small fixes.
10198 2000-09-08 Werner LEMBERG <wl@gnu.org>
10200 * tmac/groff_mdoc.man: Fixing typo.
10202 2000-09-02 Werner LEMBERG <wl@gnu.org>
10204 Implementing a .nop request which does nothing.
10206 * src/roff/troff/input.cc (nop_request): New function.
10207 (init_input_requests): Use it.
10208 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10210 2000-09-01 Werner LEMBERG <wl@gnu.org>
10212 * doc/groff.texinfo: Added some comments.
10214 2000-08-30 Werner LEMBERG <wl@gnu.org>
10216 * src/roff/troff/TODO: Updated.
10218 2000-08-25 Werner LEMBERG <wl@gnu.org>
10220 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10222 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10224 * font/devps/generate/Makefile (SHELL): Define explicitly to
10225 "/bin/sh", for non-Unix platforms.
10226 (extraclean): Use a more portable "" quoting instead of a
10227 backslash (which doesn't work on DOS/Windows).
10229 * font/devlj4/generate/Makefile (extraclean): Ditto.
10231 * font/devdvi/generate/Makefile (extraclean): Ditto.
10233 2000-08-25 Werner LEMBERG <wl@gnu.org>
10235 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10236 src/roff/troff/troff.man: Document Eli's latest changes.
10238 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10240 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10241 macro file names of the form NAME.tmac as well as tmac.NAME.
10243 2000-08-25 Werner LEMBERG <wl@gnu.org>
10245 * src/include/posix.h: Remove definition of FILENAME_MAX.
10247 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10248 `sys_fatal' and `stop' function().
10250 * test-groff: Updated.
10252 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10254 Added the new troff command .output <arg> to suppress output (while
10255 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10256 registers (for passing the output dimensions to the output device).
10258 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10260 * src/roff/troff/node.h, src/roff/troff/node.cc
10261 (troff_output_file::really_print_line,
10262 ascii_output_file::really_print_line,
10263 supress_output_file::really_print_line): Use `width' parameter.
10264 (troff_output_file::really_on, troff_output_file::really_off,
10265 output_file::on, output_file::off, real_output_file::on,
10266 real_output_file::off, real_output_file::really_on,
10267 real_output_file::really_off): New functions.
10268 (real_output_file:public output_file): New variable `output_on'.
10269 (real_output_file::begin_page, real_output_file::copy_file,
10270 real_output_file::transparent_char, real_output_file::print_line):
10272 (real_output_file::print_line): Use check_output_limits.
10273 * src/roff/troff/reg.h, src/roff/troff/request.h,
10274 src/roff/troff/input.cc (assign_registers): New function to remove
10276 (do_ps_file): Use it.
10277 (check_output_limits, reset_output_registers, output_request,
10278 init_output_requests): New functions.
10279 (init_input_requests): Updated.
10281 Added new grohtml2 device and html2 preprocessor (coding
10282 not yet finished) which will eventually replace grohtml.
10284 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10286 * src/include/htmlindicate.h, src/include/htmlindicate
10287 (html_begin_suppress, html_end_suppress): New functions.
10288 * src/preproc/tbl/main.cc: Use it.
10289 * src/roff/groff/groff.cc: Add support for html2 device (which will
10290 automatically invoke the html2 preprocessor).
10291 * src/roff/troff/input.cc (is_html2): New variable.
10292 * src/roff/troff/troff.h, src/roff/troff/env.h,
10293 src/roff/troff/env.cc (environment::add_html_tag): New function
10295 (environment::do_break): Use it.
10296 * font/devhtml2/*: New files.
10297 * src/devices/grohtml2: New device.
10298 * src/preproc/html2: New preprocessor.
10299 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10301 2000-08-23 Werner LEMBERG <wl@gnu.org>
10303 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10305 2000-08-22 Werner LEMBERG <wl@gnu.org>
10307 * src/include/lib.h: Provide a fix for IRIX to not include
10310 2000-08-18 Werner LEMBERG <wl@gnu.org>
10312 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10313 since some non-GNU sed programs can't handle null regexps.
10314 * configure, src/preproc/eqn/Makefile.sub,
10315 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10317 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10318 bug (string.h and strings.h are both needed according to latest
10321 * MORE.STUFF: Added info about unroff and troffcvt.
10323 2000-08-08 Werner LEMBERG <wl@gnu.org>
10325 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10328 * tmac/tmac.man.old: Remove unused number register.
10330 * tmac.doc: Minor documentation fix.
10332 2000-08-07 Paul Eggert <eggert@twinsun.com>
10334 * src/roff/groff/pipeline.c (is_system_shell):
10335 Fix typo: "monocased_shell" no longer exists.
10337 2000-08-07 Paul Eggert <eggert@twinsun.com>
10339 Remove FILENAME_MAX limits.
10341 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10342 that the argument length is less than FILENAME_MAX.
10343 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10344 Use struct hack to allocate and free file name.
10345 (struct xtmpfile_list): fname is now part of the structure,
10346 not a pointer to another string.
10348 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10350 * src/include/posix.h: Add a default value for FILENAME_MAX.
10352 2000-08-06 Paul Eggert <eggert@twinsun.com>
10354 Add support for new BSD-style man pages (with ".Dd" instead of
10355 ".TH"), so that "groff -man" understands both styles, even
10356 when running "groff -man" on a host whose system man page
10357 macros don't support ".Dd".
10359 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10360 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10361 in case the system man macros don't define Dd or TH.
10363 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10364 * tmac/tmac.an: New one-line file.
10365 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10367 2000-08-06 Werner LEMBERG <wl@gnu.org>
10369 * src/roff/troff/troff.man: Fixing typos.
10371 Version 1.16.1 released
10372 =======================
10374 2000-07-31 Werner LEMBERG <wl@gnu.org>
10376 Preparing release 1.16.1.
10378 * REVISION: Revision number set to 1.
10379 * MORE.STUFF: Added info about port to DOS.
10380 * NEWS, win32-diffs: Updated.
10382 * src/include/nonposix.h: Remove first line -- this file is used
10385 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10388 2000-07-30 Werner LEMBERG <wl@gnu.org>
10390 * doc/texinfo.tex: Update to latest version.
10392 2000-06-28 Paul Eggert <eggert@twinsun.com>
10394 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10395 commands that fail. Don't assume that "export a=b" is valid shell
10396 syntax. This is needed for Solaris 2.5.1.
10398 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10399 comment about missing Solaris headers.
10401 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10403 2000-06-25 Werner LEMBERG <wl@gnu.org>
10405 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10408 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10410 * win32-diffs: Updated.
10411 * README.WIN32: Added CRs to make all Windows editors happy.
10413 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10414 src/roff/groff/pipeline.c).
10416 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10418 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10419 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10421 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10423 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10424 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10426 (main): Support non-Posix systems with several different styles of
10427 slash characters in file names.
10429 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10430 (main) [SET_BINARY]: Switch stdin into binary mode.
10432 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10433 (main): Support file names with several possible slash-type
10434 characters, as given by DIR_SEPS[] in nonposix.h.
10435 (main) [__MSDOS__]: If renaming the temporary index file fails
10436 because it has more than one dot in its trunk, replace the dot
10437 with an underscore and try again.
10438 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10440 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10442 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10443 (File::File): Open the input file in binary mode. Strip CR
10444 characters from each CR-LF pair.
10445 (xbasename): Support file names with several possible slash-type
10446 characters, as given by DIR_SEPS[] in nonposix.h.
10448 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10450 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10451 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10452 [!_POSIX_VERSION]: Define for traditional Unix systems.
10453 (real_output_file::real_output_file): Remove the MSVC-specific
10454 call to popen, use instead POPEN_WT, appropriately defined on
10455 nonposix.h. #include nonposix.h.
10456 (real_output_file::~real_output_file): Remove the MSVC-specific
10457 call to pclose, a suitable macro is now defined on nonposix.h.
10458 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10459 and WEXITSTATUS instead of assuming traditional Unix
10460 interpretation of the status returned by pclose.
10462 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10463 call to popen, use POPEN_RT instead (appropriately defined on
10464 nonposix.h). #include nonposix.h.
10465 (ps_bbox_request): Open the PostScript file in binary mode.
10466 Close the file after processing it.
10467 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10470 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10471 A version of run_pipeline that doesn't use `fork'.
10472 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10473 (system_shell_name, system_shell_dash_c)
10474 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10475 the ugliness of testing DOS/Windows file names for equality, and
10476 support both stock shells and ports of Unix shells.
10478 * src/roff/groff/groff.cc: #include nonposix.h.
10479 (BSHELL): Definition moved to nonposix.h.
10480 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10481 instead of a literal "-c".
10482 (xbasename): Support file names with several possible slash-type
10483 characters, as given by DIR_SEPS[] in nonposix.h.
10484 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10485 of literal strings.
10487 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10488 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10490 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10493 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10495 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10498 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10500 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10501 P_tmpdir is defined, use it instead of the literal "/tmp".
10502 (remove_tmp_files, add_tmp_file): New functions.
10503 (xtmpfile): Record temporary files and register an atexit function
10504 to delete them explicitly, instead of relying on the OS to do
10505 that, which doesn't work on non-Unix systems.
10507 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10508 (search_path::search_path): Use PATH_SEP instead of a literal
10510 (search_path::command_line_dir): Ditto.
10511 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10512 to support non-Posix systems.
10514 * src/libs/libbib/search.cc: #include nonposix.h.
10515 (search_list::add_file): Open the file in binary mode.
10517 * src/libs/libbib/linear.cc: #include nonposix.h.
10518 (file_buffer::load): Remove \r characters preceding \n from the
10521 * src/libs/libbib/index.cc: #include nonposix.h.
10522 (make_index_search_item): Open index_filename in O_BINARY mode.
10523 (index_search_item_iterator::get_tag): Ditto. Remove \r
10524 characters before \n characters.
10525 (index_search_item::check_files): Open files in binary mode.
10526 (index_search_item::munge_filename): Support DOS-style file names
10527 with backslashes and drive letters, use IS_ABSOLUTE.
10529 * src/devices/grops/ps.cc: #include nonposix.h.
10530 (main) [SET_BINARY]: Switch stdout to binary mode.
10532 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10533 (main) [SET_BINARY]: Switch stdout to binary mode.
10535 * src/devices/grolbp/lbp.cc: #include nonposix.h
10536 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10538 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10539 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10541 (main) [SET_BINARY]: Switch stdout to binary mode.
10542 [_MSC_VER]: Remove an explicit call to _setmode.
10544 * src/include/nonposix.h: New file.
10546 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10547 operation when building with DJGPP.
10548 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10549 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10552 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10554 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10555 etc. can include a semi-colon on DOS/Windows.
10556 (depend.temp): Use depend1.temp instead of depend.temp1, to
10557 prevent files from overerwiting each other on 8+3 filesystems.
10559 * gendef.sh (t): Change definition to work with DOS/Windows.
10561 doc/groff.texinfo: Apart of some typo corrections, I also changed
10562 some index entris, to make them more non-ambiguous, and also put
10563 @ignore around some parts that are not yet written, to allow the
10564 Info output be readable.
10566 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10568 Replaced specific checks for function declarations with a generic
10569 routine taken from GNU bfd.
10571 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10572 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10573 * configure.in: Use it.
10574 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10575 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10576 src/roff/groff/groff.cc: Use it.
10577 * Makefile.in, configure: Updated.
10579 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10581 * src/devides/grolbp/lbp.h: Removed unused variables.
10583 2000-05-31 Keith Thompson <kst@sdsc.edu>
10585 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10588 2000-05-31 Werner LEMBERG <wl@gnu.org>
10590 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10591 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10592 * configure.in: Use it.
10593 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10594 * configure, Makefile.in: Updated.
10596 * configure.in: Add test for strncasecmp().
10597 * src/include/lib.h: Use it.
10599 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10601 * src/preproc/grn/Makefile.sub: Add MLIB.
10603 2000-05-29 Nix <nix@esperi.demon.co.uk>
10605 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10607 2000-05-29 Werner LEMBERG <wl@gnu.org>
10609 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10611 * PROBLEMS: Small update.
10613 * src/devices/grolbp/lbp.cc: Various small fixes.
10615 2000-05-28 Keith Thompson <kst@sdsc.edu>
10617 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10619 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10621 2000-05-25 Werner LEMBERG <wl@gnu.org>
10623 * man/roff.man: Removed unused macro.
10625 2000-05-24 Werner LEMBERG <wl@gnu.org>
10627 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
10628 This is needed e.g. if you do
10629 `make distclean; ./configure; make dist'.
10631 Version 1.16 released
10632 =====================
10634 2000-05-23 Werner LEMBERG <wl@gnu.org>
10636 Adding font CWI (constant width italic) to devdvi.
10638 * font/devdvi/CWI: New file.
10639 * font/devdvi/generate/Makefile: Add generating rule.
10640 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10641 tmac/tmac.dvi: Use it.
10642 * NEWS: Announce it.
10644 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10645 * font/devlj4/generate/Makefile: Cosmetic changes only.
10647 * man/groff.man: Removed most of the redundant description of
10648 special characters (which is in groff_char.man). Added font
10649 translation CB->CR for devdvi. Other minor fixes.
10651 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10652 (registered) symbols.
10654 2000-05-22 Werner LEMBERG <wl@gnu.org>
10656 * doc/Makefile: Added rule for creating info files.
10658 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
10660 * font/devdvi/generate/Makefile: Fixed dependencies.
10662 * font/devps/*: Regenerated. Heavy changes for Bookman and
10663 NewCentury Schoolbook!
10664 * font/devps/generate/afmname: Will now run with GNU awk.
10665 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10666 * font/devps/generate/Makefile: Cosmetic changes only.
10668 2000-05-21 Werner LEMBERG <wl@gnu.org>
10670 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10671 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
10672 `.SS' now produces a heading with a smaller size than `.SH'.
10673 Completely formatted.
10674 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10676 * man/groff.man: Improved table appearance. Use of `eo' request
10677 to reduce number of doubled backslashes in macro definitions.
10678 Replacing `\e' with `\(rs'. Other minor fixes.
10680 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10681 to have correct line number.
10683 * INSTALL: Small improvement.
10685 2000-05-20 Bernd Warken <bwarken@mayn.de>
10687 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10690 2000-05-19 Bernd Warken <bwarken@mayn.de>
10692 * man/groff.man: Complete update (with a lot of corrections by WL).
10694 2000-05-18 Werner LEMBERG <wl@gnu.org>
10696 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10698 * font/*/*: Implement it.
10699 * man/groff_char.man, NEWS: Document it.
10701 * src/include/unix.h: Removed. It isn't used.
10703 * doc/groff.texinfo: Slight improvements.
10705 2000-05-17 Werner LEMBERG <wl@gnu.org>
10707 * README, win32-diffs: Small fixes and improvements.
10709 2000-05-16 Werner LEMBERG <wl@gnu.org>
10711 * FDL: New file (the Free Documentation License version 1.1).
10713 * doc/groff.texinfo: Added many start-up values for gtroff.
10714 Some structural improvements of the source code.
10716 2000-05-15 Werner LEMBERG <wl@gnu.org>
10718 * src/roff/troff/input.cc: Added small comment about troffrc-end.
10719 * src/roff/troff/troff.man: Added info about troffrc-end.
10721 2000-05-14 Werner LEMBERG <wl@gnu.org>
10723 * Makefile.in (EXTRADIRS): Fix typos.
10724 (dist): Handle deletion of old .tar.gz file correctly.
10725 (DISTDIRS): Include all tty output devices.
10727 * doc/groff.texinfo: Adding more cross references; countless other
10730 2000-05-13 Werner LEMBERG <wl@gnu.org>
10732 * MORE.STUFF: Added Robert Marks's utilities.
10734 2000-05-12 Werner LEMBERG <wl@gnu.org>
10736 Added win32 port contributed by Blake McBride
10737 <blake@florida-software.com>.
10739 * README.WIN32, win32-diffs: New files.
10742 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10743 (tmove, tmove2): Added parentheses to avoid compiler warnings.
10744 (change): Removed unused variables.
10746 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10747 (savebounds): Changed return value from `int' to `void'.
10748 * src/preproc/grn/hdb.cc: Ditto.
10750 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10751 final backslash in comment to avoid compiler warning.
10753 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10755 * doc/groff.texinfo: More fixes.
10757 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
10759 * tmac/tmac.doc: Documentation fix.
10761 2000-05-11 Werner LEMBERG <wl@gnu.org>
10763 * doc/groff.texinfo: Reading the source code shows up a lot of
10764 omissions and incorrect data... More conversion to @Deffn macros.
10766 2000-05-10 Werner LEMBERG <wl@gnu.org>
10768 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10771 * src/roff/troff/request.h: Removing unused `no_break_flag'.
10773 2000-05-09 Werner LEMBERG <wl@gnu.org>
10775 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10778 * doc/groff.texinfo: Extended history section. More conversion to
10779 @Deffn macros. More .tr documentation.
10781 2000-05-07 Werner LEMBERG <wl@gnu.org>
10783 * doc/groff.texinfo: Completed tab section. Added info about
10786 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
10788 * PROBLEMS: Describe configure script fix for OS/390 Unix.
10790 2000-05-05 Werner LEMBERG <wl@gnu.org>
10792 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10794 * NEWS: Document it.
10796 * man/troff.man: Minor optical improvements.
10798 2000-05-03 Werner LEMBERG <wl@gnu.org>
10800 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10802 * font/*/*: Implement it.
10803 * man/groff_char.man, NEWS: Document it.
10805 2000-05-02 Werner LEMBERG <wl@gnu.org>
10807 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10809 * NEWS: Document the three new man pages.
10811 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10812 * configure: Updated.
10814 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10816 2000-05-01 Werner LEMBERG <wl@gnu.org>
10818 Added grap support to grog.
10820 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10821 * src/roff/grog/grog.man: Document it.
10823 * doc/groff.texinfo, NEWS: Add info about grap support.
10825 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10826 (with slight fixes by me).
10828 * tmac/groff_tmac.man: New file documenting tmac mechanism.
10829 * tmac/Makefile.sub: Add groff_tmac.man.
10830 * man/roff.man: New file giving overview of roff system.
10831 * man/troff.man: A short reference of troff.
10832 * man/Makefile.sub: Add roff.man and troff.man.
10834 2000-04-30 Werner LEMBERG <wl@gnu.org>
10836 Added grap support to groff.
10838 * src/roff/groff/groff.cc: Implement it.
10839 * src/roff/groff/groff.man: Document it.
10841 * src/devices/grotty/grotty.man: Add cp1047 device.
10842 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10844 * src/roff/groff/groff.man: Ditto.
10845 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10846 * doc/groff.texinfo: Ditto.
10848 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10851 2000-04-29 Werner LEMBERG <wl@gnu.org>
10853 * man/groff_char.man: Add `pc' glyph.
10854 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10855 * tmac/tmac.tty: Add `pc' glyph.
10856 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
10857 we use cp1047 output device.
10859 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10860 there are still hardcoded latin1->unicode values in utf8's font
10862 * configure: Updated.
10863 * NEWS: Minor clarification. Updated.
10865 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
10868 2000-04-28 Werner LEMBERG <wl@gnu.org>
10870 Adding EBCDIC code page 1047.
10872 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10873 font/devcp1047/DESC.proto: New files.
10875 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10876 either ascii/latin1 or cp1047.
10877 * Makefile.in: Use it.
10878 * configure: Updated.
10880 Replacing and/or adding `md' (mathdot) glyph with `pc'
10881 (periodcentered) in all text fonts.
10883 * font/*/*: Change it.
10885 2000-04-27 Werner LEMBERG <wl@gnu.org>
10887 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10889 * configure.in: Add check for strings.h.
10890 * src/include/driver.h: Use HAVE_STRINGS_H.
10891 * src/devices/grolbp/lpb.cc: Remove string.h.
10893 * src/include/groff-getopt.h: New file. It will be used instead of
10894 getopt.h (to be included in lib.h) to avoid endless problems with
10895 picky C++ compilers.
10896 * src/include/lib.h: Use groff-getopt.h.
10897 * src/include/Makefile.sub: Updated.
10899 * configure: Updated.
10900 * Makefile.in: Updated.
10902 * NEWS: Mention EBCDIC support.
10904 2000-04-26 Werner LEMBERG <wl@gnu.org>
10906 * TODO: Some additions.
10908 2000-04-25 Werner LEMBERG <wl@gnu.org>
10910 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10913 2000-04-23 Werner LEMBERG <wl@gnu.org>
10915 * src/roff/troff/troff.man: Minor fixes.
10917 2000-04-22 Werner LEMBERG <wl@gnu.org>
10919 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10920 `.T' string register and the incompatible definition of the `.T'
10921 number register (compared to Unix troff).
10923 * man/groff_char.man: Add some missing characters.
10924 * font/devutf8/NOTES: Update.
10926 2000-04-21 Werner LEMBERG <wl@gnu.org>
10928 * src/include/htmlindicate.h, src/include/lib.h,
10929 src/include/posix.h: Fix copyright.
10931 * src/include/Makefile.sub: Update.
10933 2000-04-20 Werner LEMBERG <wl@gnu.org>
10935 * src/roff/troff/input.cc (input_char_description): Removing
10936 superfluous space char.
10938 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10940 * doc/groff.texinfo: Document EBCDIC.
10942 2000-04-19 Werner LEMBERG <wl@gnu.org>
10944 Introducing `shc' as the glyph name for the soft hyphen character.
10946 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10947 font/devlatin1/R.proto: Use it.
10951 2000-04-18 Werner LEMBERG <wl@gnu.org>
10953 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10954 dependency on ASCII order.
10956 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
10958 * src/libs/libgroff/illegal.c: Added EBCDIC table.
10959 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10961 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10962 to increase portability.
10964 2000-04-15 Werner LEMBERG <wl@gnu.org>
10966 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10967 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10968 the generic `\n' if under OS/390 Unix.
10970 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10972 * configure: Regenerated.
10974 2000-04-14 Werner LEMBERG <wl@gnu.org>
10976 * doc/groff.texinfo: More conversions to @Deffn.
10978 2000-04-12 Werner LEMBERG <wl@gnu.org>
10980 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10983 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10985 2000-04-10 Werner LEMBERG <wl@gnu.org>
10987 * doc/groff.texinfo: More conversions to @Deffn.
10989 2000-04-08 Werner LEMBERG <wl@gnu.org>
10991 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10992 Updated to latest version (glibc 2.1.3).
10994 2000-04-07 Werner LEMBERG <wl@gnu.org>
10996 * doc/Makefile (clean): Include more index files.
10997 Add rule texinfo->dvi.
10999 2000-04-05 Werner LEMBERG <wl@gnu.org>
11001 * doc/groff.texinfo: Added new index `op' for operators. More
11002 info on end of sentence characters. More use of @Deffn.
11004 2000-03-30 Werner LEMBERG <wl@gnu.org>
11006 * */*.man: Adding a note that a whitespace can be inserted between
11007 a command line option and its parameter -- we are using GNU getopt.
11009 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11011 2000-03-28 Werner LEMBERG <wl@gnu.org>
11013 Correct anachronism of calling the man macro file with `-man'
11014 instead of `-m man' etc.
11016 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11017 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11018 load tmac.<package>.
11020 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11024 * doc/groff.texinfo: Updated.
11026 * tmac/groff_man.man: Copyright added.
11028 2000-03-27 Werner LEMBERG <wl@gnu.org>
11030 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11031 typeset the request resp. escape name with a tt font -- due to a
11032 bug in texinfo.tex it is necessary to use the `-e' switch with
11035 Improving info about usage of groff units.
11039 2000-03-20 Werner LEMBERG <wl@gnu.org>
11041 * doc/groff.texinfo: Added section about man macro package
11042 (I've basically taken groff_man.man). Introducing new indices `ma'
11043 for macros/strings and `gl' for glyph names. Other minor fixes.
11045 * tmac/groff_man.man: Fixed some typos.
11047 2000-03-19 Werner LEMBERG <wl@gnu.org>
11049 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11052 * doc/texinfo.tex: New file.
11054 2000-03-18 Werner LEMBERG <wl@gnu.org>
11056 * doc/groff.texinfo: Improved section on number registers. Other
11059 2000-03-16 Werner LEMBERG <wl@gnu.org>
11061 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11064 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11065 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11066 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11067 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11069 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11071 * src/roff/grog/grog.man: Updated copyright date.
11073 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11075 * configure.in: Added test for strdup.
11077 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11080 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11084 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11086 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11088 2000-03-11 Werner LEMBERG <wl@gnu.org>
11090 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11092 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11093 * src/include/lib.h: Remove some spaces.
11095 2000-03-10 Werner LEMBERG <wl@gnu.org>
11097 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11098 initializers from arguments (some compilers don't like this).
11100 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11102 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11103 used by pic and eqn to tell grohtml where the graphic regions start
11105 * src/libs/libgroff/Makefile.sub: Use it.
11106 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11107 graphic_start() and graphic_end() from htmlindicate.cc.
11109 2000-03-09 Werner LEMBERG <wl@gnu.org>
11111 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11112 * tmac/groff_man.man: More fixes.
11114 2000-03-08 Werner LEMBERG <wl@gnu.org>
11116 * doc/Makefile: Added texput.log to the `clean' target.
11117 * doc/groff.texinfo: Added info about delimiters for escapes.
11119 2000-03-08 Bernd Warken <bwarken@mayn.de>
11121 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11122 other graphic formats.
11124 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11126 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11127 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11128 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11131 2000-03-07 Werner LEMBERG <wl@gnu.org>
11133 * doc/groff.texinfo: Spelling fixes.
11135 2000-03-06 Werner LEMBERG <wl@gnu.org>
11137 * tmac/groff_man.man: Completely revised to cover everything in
11140 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11141 Other minor fixings.
11142 * src/roff/troff/env.cc (environment_copy): Improve error message and
11144 * src/roff/troff/TODO: Updated.
11146 * doc/Makefile: Bug fixes -- this is still provisional, though...
11148 * tmac/eqnrc: Small fixes.
11150 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11152 Adding a request `evc' to copy environments.
11154 * src/roff/troff/env.cc (environment::copy, environment_copy):
11156 * src/roff/troff/env.h: Add prototype.
11158 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11160 Adding strsep() -- Solaris 8 doesn't have it.
11162 * configure.in: Test it.
11163 * src/devices/grolbp/lbp.cc: Add code.
11165 2000-03-05 Werner LEMBERG <wl@gnu.org>
11167 * src/roff/troff/div.cc (macro_diversion::output,
11168 top_level_diversion::output): Fixing an incompatibility with
11169 original troff: \x'0' updates the .a register also. Thanks to
11170 <Andries.Brouwer@cwi.nl> for pointing this out.
11171 * doc/groff.texinfo: Document it.
11173 * Makefile.in: Create Makefile.dep if necessary before calling the
11174 submake process to avoid warning about nonexistent file.
11176 * NEWS, PROJECTS: Updated.
11178 2000-03-04 Werner LEMBERG <wl@gnu.org>
11180 * tmac/troffrc: Add tmac.lbp.
11182 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11184 * tmac/tmac.lbp: New file.
11185 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11188 2000-03-03 Werner LEMBERG <wl@gnu.org>
11190 * Makefile.in: Fixing $(subdir).
11192 * README, NEWS: Small fixes.
11194 * test-groff: Adding path to grolbp.
11196 * configure.in: The (new) file src/xditview/Imakefile.in will be
11197 also configured -- it is now possible to build gxditview in a
11198 directory different from $srcdir.
11200 2000-03-02 Blake McBride <blake@florida-software.com>
11202 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11204 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11206 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11208 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11211 2000-02-29 Werner LEMBERG <wl@gnu.org>
11213 Adding GNU getopt to the groff distribution.
11215 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11217 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11218 * aclocal.a4: Remove GROFF_GETOPT function.
11219 * configure.in, Makefile.in, PROBLEMS: Update.
11220 * src/include/lib.h: Replace getopt tests with getopt.h.
11221 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11223 * doc/groff.texinfo: Further checking/updating. Adding more index
11226 * man/groff_out.man: Fix nroff mode activation (for emacs).
11227 * man/groff_font.man: Add missing ligature.
11229 2000-02-28 Werner LEMBERG <wl@gnu.org>
11231 * doc/groff.texinfo: Further checking/updating. Adding more index
11234 * src/devices/grolbp/grolbp.man: Added a comment line at the
11235 beginning of the file (similar to shell scripts) which indicates
11236 that `tbl' should be used as a preprocessor.
11238 2000-02-27 Blake McBride <blake@florida-software.com>
11240 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11241 Windows NT 4.0). Uses _MSC_VER define where necessary.
11243 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11244 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11245 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11246 src/include/lib.h, src/libs/libgroff/errarg.cc,
11247 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11248 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11249 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11250 src/roff/troff/div.cc, src/roff/troff/env.cc,
11251 src/roff/troff/input.cc, src/roff/troff/node.cc,
11252 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11253 if_to_a() to avoid name clashes.
11254 * src/include/posix.h: Don't use unistd.h.
11255 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11256 clause for integrating non-Unix xtmpfile() code.
11257 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11258 structure; use "rt" for popen() in pipe_source(); add getpid()
11260 * src/roff/troff/node.cc: Use special versions of popen() in
11261 real_output_file() and pclose() in ~real_output_file().
11263 2000-02-27 Werner LEMBERG <wl@gnu.org>
11265 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11266 LBP-8 series laser printers). This code has been contributed by
11267 Francisco Andrés Verdú <pandres@dragonet.es>.
11269 * src/devices/grolbp/*: The grolbp output device.
11270 * font/devlpb/*: The font description files.
11271 * Makefile.in: Add grolpb and devlbp subdirectories.
11273 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11274 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11277 * doc/groff.texinfo: Further checking/updating. Adding more index
11282 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11284 * man/groff_font.man: Adding info about obsolete DESC keywords.
11285 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11288 2000-02-26 Werner LEMBERG <wl@gnu.org>
11290 * src/preproc/grn/grn.man: Added info about the gremlin file format
11291 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11293 2000-02-25 Werner LEMBERG <wl@gnu.org>
11295 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11296 friends to be non-integer.
11298 * src/preproc/grn/grn.man: Document it.
11300 * doc/groff.texinfo: Further checking/updating. Adding more index
11303 2000-02-24 Werner LEMBERG <wl@gnu.org>
11305 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11306 line thicknesses to be integer multiples of this value.
11308 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11309 corresponding code doesn't work (yet).
11311 * doc/groff.texinfo: Further checking/updating. Adding more index
11314 2000-02-23 Werner LEMBERG <wl@gnu.org>
11316 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11317 specify line thickness instead of base units. The new default
11318 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11319 thick lines respectively.
11321 Removed unused variable `prevval'.
11323 * src/preproc/grn/grn.man: Updated.
11325 2000-02-22 Werner LEMBERG <wl@gnu.org>
11327 * src/preproc/grn/main.cc: Slight formatting.
11329 * src/roff/groff/groff.man: Formatting fix.
11330 * src/preproc/grn/grn.man: Ditto.
11332 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11334 * doc/groff.texinfo: Further checking/updating.
11336 2000-02-21 Werner LEMBERG <wl@gnu.org>
11338 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11340 * test-groff: Added grn subdir to path.
11342 * doc/groff.texinfo: Some restructing and other small improvements.
11344 * src/roff/groff/groff.cc (help): Fixed info string.
11346 2000-02-20 Werner LEMBERG <wl@gnu.org>
11348 * doc/meref.me: Fix description of .GS request.
11350 * src/roff/troff/troff.man: Fixing typo.
11352 Adding the `grn' preprocessor for gremlin graphic files.
11354 * src/preproc/grn/*: This is the Berkeley distribution written by
11355 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11356 Senderowicz and Werner Lemberg.
11358 * doc/grnexampl.{me,g}: A sample for grn.
11360 * Makefile.in: Added subdirectory entry for grn.
11362 * src/roff/groff/groff.cc: Added support for grn. It can be now
11363 called with the switch `-g'.
11365 * src/roff/groff/groff.man: Updated.
11367 * src/roff/grog/grog.{man,pl,sh}: Updated.
11371 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11373 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11374 parametrically polymorphic.
11376 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11377 and the alterations to xtmpfile.
11378 xtmpfile can be requested to return the filename created
11379 and asked not to unlink the temp file. The default behaviour
11380 if parameters are absent is exactly the same as before.
11382 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11384 A new request `length' is available which returns the length of a
11385 string in a number register:
11387 * src/roff/troff/input.cc (length_macro): Implement it.
11388 * src/roff/troff/input.cc (init_input_requests): Register it.
11390 2000-02-11 Werner LEMBERG <wl@gnu.org>
11392 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11393 of the `substring' request.
11395 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11398 * src/roff/troff/TODO, NEWS: Updated.
11400 2000-02-09 Werner LEMBERG <wl@gnu.org>
11402 * src/roff/groff/groff.man: Added an example.
11404 2000-02-06 Werner LEMBERG <wl@gnu.org>
11406 I've considerably modified the directory structure of the
11407 distribution to get a more vertical layout. For example, the number
11408 of top level directories has been reduced from 42 to 6.
11410 As a consequence, many changes, especially to the makefiles, were
11413 * The makefile variables `top_builddir' and `top_srcdir' have been
11414 introduced. Virtually all relative paths have been replaced with
11415 absolute ones using these two variables.
11417 * Dependencies (in the files `Makefile.dep') are no longer part of
11418 the distribution. Instead, they are created during a `make install'
11419 in the build directory.
11421 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11422 make `top_srcdir' and `top_builddir' absolute.
11424 Some other changes:
11426 * Man pages now depend on the files `VERSION' and `REVISION'.
11428 * The added shell script `mkinstalldirs' will replace `mkdir' in
11431 * VERSION: Version number increased to 1.16.
11433 2000-02-04 Werner LEMBERG <wl@gnu.org>
11435 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11437 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11438 (after an update of the mm stuff).
11440 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11442 2000-02-03 Werner LEMBERG <wl@gnu.org>
11444 The .psbb request will now also accept Mac PS images (i.e. using LF
11445 as the EOL character).
11447 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11448 (with slight modifications).
11449 * troff/input.cc (do_ps_file): Use it.
11451 * test-groff: Add grohtml and grolj4 output devices to PATH.
11453 2000-01-30 Werner LEMBERG <wl@gnu.org>
11455 * NEWS, MORE.STUFF: Updated.
11457 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11459 Add the `srand' command to pic.
11461 * pic/lex.cc, pic/pic.y: Implement it.
11462 * pic/pic.man: Document it.
11463 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11465 2000-01-30 Werner LEMBERG <wl@gnu.org>
11467 Add a new request `.psbb'. This does exactly what the external
11468 program psbb did. It scans a PostScript image file for a
11469 %%BoundingBox comment and extracts the bounding box values (in
11470 PostScript units) which are then stored in the four new (read-only)
11471 number registers `llx', `lly', `urx', and `ury'.
11473 This will allow the usage of the .PSPIC macro without worrying
11474 about unsafe behaviour of groff, i.e., it will work without the
11475 `-U' switch of groff.
11477 * troff/input.cc: Implement it.
11478 * tmac/tmac.pspic: Use it.
11479 * troff/troff.man, grops/grops.man, NEWS: Document it.
11480 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11482 This is bloody C code simply adapted from psbb.c! Any improvements
11485 2000-01-29 Werner LEMBERG <wl@gnu.org>
11487 * man/groff_font.man: Minor clarifications.
11491 2000-01-28 Werner LEMBERG <wl@gnu.org>
11493 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11495 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11497 * man/groff_font.man: Brought up to date regarding tcommand
11499 * libgroff/font.cc: Handle everything after `--' as a comment
11501 * devps/*: Added comment delimiter inside devps font files.
11503 2000-01-28 Werner LEMBERG <wl@gnu.org>
11505 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11506 \fC...\fP (which now works as expected).
11508 * troff/troff.man: Fix typo.
11510 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11512 Completed the pass_filenames implementation in troff.
11514 * libdriver/input.cc: Will read the new `F' tcommand.
11515 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11516 * troff/input.cc: Use it.
11518 2000-01-26 Werner LEMBERG <wl@gnu.org>
11520 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11521 font will now be updated even if an invalid font is selected.
11523 2000-01-24 Werner LEMBERG <wl@gnu.org>
11525 * doc/homepage.ms: Updated for new tmac.arkup.
11527 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11529 * tmac/tmac.arkup: Cleanup.
11531 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11533 Removed obsolete .LINK macro completely.
11535 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11536 will be immediately appended to the second argument (to be used with
11537 punctuation, for example).
11539 Disabled .CDFTP macro temporarily for security reasons.
11541 * tmac/groff_markup.man: Complete revision for latest changes in
11542 tmac.arkup -- note that it does not yet format correctly with
11545 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11547 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11548 * devutf8/R.proto: Add mappings for wp, lh, rh.
11549 * devutf8/NOTES: Updated.
11551 2000-01-23 Werner LEMBERG <wl@gnu.org>
11553 * doc/groff.texinfo: Updated version/copyright info.
11555 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11557 Added support for two new directives in device descriptions:
11558 `pass_filenames' (to pass the input file name to the output device)
11559 and `use_charnames_in_special' (to support e.g. accented characters
11560 in the `X' request).
11562 * include/font.h, troff/charinfo.h: Declare it.
11564 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11566 * devhtml/DESC: Use it.
11568 * troff/input.cc: New function encoded_char.
11570 * troff/token.h: Add test for `specialness'.
11572 2000-01-21 Werner LEMBERG <wl@gnu.org>
11574 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11575 mistake from the list of files to be installed.
11577 2000-01-18 Werner LEMBERG <wl@gnu.org>
11579 * README: Added info how to apply patches.
11581 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11583 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11585 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11587 * troff/input.cc: Add support for troffrc-end.
11589 * tbl/main.cc: Altered to issue table-start and table-end special
11590 characters if using the html device.
11592 * devhtml/*: Modified font files to incorporate html encoding of
11595 * tmac/groff_markup.man: New file documenting tmac.arkup.
11597 * tmac/troffrc-end: New file. This is invoked after all user
11598 specified macros. Currently used by the html device to include
11599 tmac.html. Thus no need for users to specify -mhtml anymore.
11601 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11602 (MAN7): Add groff_markup.man.
11604 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11606 * tmac/troffrc: tmac.arkup will now be called for the html device.
11608 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11609 extra device specific information about fonts.
11611 * doc/homepage.ms: New file. It is an example how an HTML home page
11612 could look like with grohtml.
11614 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11616 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11618 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11621 * devutf8/NOTES: Updated.
11623 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11625 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11626 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11627 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11628 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11629 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11630 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11631 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11632 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11635 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11637 2000-01-12 Fabrizio Polacco <fab@prosa.it>
11639 grolj4: Paper size will be searched case-insensitively.
11641 * include/lib.h: Add check for strcasecmp().
11642 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11643 * configure.in: Check for strcasecmp().
11645 2000-01-11 Werner LEMBERG <wl@gnu.org>
11647 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11650 2000-01-10 Werner LEMBERG <wl@gnu.org>
11652 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11655 Add a new read-only register, `.Y', which contains the groff
11658 * troff/input.cc (init_input_requests): Define it.
11659 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11660 * doc/groff.texinfo, troff/troff.man: Document it.
11662 * libgroff/Makefile.sub (version.cc): Add definition of
11663 `Version_string[]', consisting of `<major>.<minor>.<revision>'
11664 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11665 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11666 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11667 troff/input.cc, pfbtops/pfbtops.c: Use it.
11669 2000-01-10 Fabrizio Polacco <fab@prosa.it>
11671 Add a revision scheme to the groff package.
11673 * REVISION: New file.
11674 * libgroff/Makefile.sub (version.cc): Use it to define
11675 `revision_string[]'.
11676 * grops/psrm.cc: Use revision_string (converted to an unsigned
11677 integer) in constructor of resource_manager.
11679 2000-01-10 Bruno Haible <haible@clisp.cons.org>
11681 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11683 * Makefile.in (DEVDIRS): Add devutf8.
11684 * grotty/tty.cc: Include device.h.
11685 (glyph): Change type of `code' to `unsigned int'.
11686 (tty_printer): New field is_utf8. Constructor takes device argument.
11687 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11688 (tty_printer::add_char): Change type of first arg to `unsigned int'.
11689 (tty_printer::put_char): New function.
11690 (tty_printer::end_page): Use put_char() instead of ::putchar().
11691 (make_printer): Pass device to tty_printer constructor.
11692 * nroff.sh: Determine default device by calling 'locale'. As a
11693 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11694 Recognize UTF-8 locales.
11695 * tmac/eqnrc: Recognize utf8 like latin1.
11696 * tmac/troffrc: Device utf8 needs tmac.tty.
11698 2000-01-07 Werner LEMBERG <wl@gnu.org>
11700 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11702 2000-01-07 Paul Eggert <eggert@twinsun.com>
11704 Add a new predefined writeable number register, `year',
11705 which contains the current year.
11707 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11708 * tmac/tmac.s: Use it.
11709 * troff/input.cc (init_registers): Initialize it.
11711 2000-01-06 Werner LEMBERG <wl@gnu.org>
11713 * PROBLEMS: Fixed typo.
11715 2000-01-04 Paul Eggert <eggert@twinsun.com>
11717 * PROBLEMS: Add Y2k advice for the yr number register.
11719 2000-01-03 Paul Eggert <eggert@twinsun.com>
11721 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11723 2000-01-02 Werner LEMBERG <wl@gnu.org>
11725 * tmac/tmac.arkup: Slight modification of macros to provide better
11726 appearance for non-HTML formats.
11728 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
11730 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11731 does not automatically translate to malloc(n) on all OSes
11732 (e.g., SunOS) so do it explicitly. Also, check the returned
11735 2000-01-01 Werner LEMBERG <wl@gnu.org>
11737 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
11739 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11740 expects this variable
11742 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
11744 * doc/Makefile: Added instructions to create HTML and text
11745 versions of some files.
11747 1999-12-31 Werner LEMBERG <wl@gnu.org>
11749 * Updated INSTALL.gen.
11751 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11752 better resp. correctly with non-HTML devices.
11754 Version 1.15 released
11755 =====================
11757 1999-12-28 Werner LEMBERG <wl@gnu.org>
11759 * NEWS, VERSION: Changed to 1.15
11761 1999-12-27 Paul Eggert <eggert@twinsun.com>
11763 * nroff/nroff.man: -S is safer, not safe.
11765 * groff/groff.cc (main): Use `safer', not `safe', in variable
11766 names. This does not change the behavior.
11768 * troff/input.cc (main): Likewise.
11770 * nroff/nroff.sh: Likewise.
11772 * troff/input.cc (prepend_string): New function.
11773 (main): Prepend -msafer, so that we check macro libraries for
11776 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11778 Version 1.14 released
11779 =====================
11781 1999-12-26 Werner LEMBERG <wl@gnu.org>
11783 * NEWS, VERSION: Changed to 1.14.
11785 1999-12-24 Werner LEMBERG <wl@gnu.org>
11787 * refer/refer.cc: Fixing the last fix.
11789 Version 1.13 released
11790 =====================
11792 1999-12-23 Werner LEMBERG <wl@gnu.org>
11794 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11799 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11801 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11802 document conventions, the version number must be a real.
11804 Version 1.12.1 released
11805 =======================
11807 1999-12-22 Werner LEMBERG <wl@gnu.org>
11809 * VERSION: Changed to 1.12.1.
11811 1999-12-22 Alan Rooks <arooks@istar.ca>
11813 * refer/refer.cc (do_file): Slight modification to satisfy the
11814 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11817 1999-12-20 Werner LEMBERG <wl@gnu.org>
11819 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11822 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11823 list of unsafe requests.
11825 * pic/pic.man: Fixed a typo.
11827 * man/groff_out.man: Fixed a typo.
11829 1999-12-18 Werner LEMBERG <wl@gnu.org>
11831 * Makefile.in: Doc fixes.
11833 1999-12-17 Fabrizio Polacco <fab@prosa.it>
11835 * groff/groff.cc: Missing `U' option added to getopt().
11837 * troff/troff.man: Missing `U' option added to synopsis.
11839 Version 1.12 released
11840 =====================
11842 1999-12-14 Werner LEMBERG <wl@gnu.org>
11844 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11847 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11848 with the more appropriate terms `safer' and `unsafe'.
11850 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11851 sys_nerr and sys_errlist[].
11853 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11855 * pic/pic.y, pic/pic.cc: Added check for fmod().
11857 1999-12-13 Werner LEMBERG <wl@gnu.org>
11859 * VERSION: Changed to 1.12.
11861 Here some patches from various sources; most of them taken from
11862 the Debian distribution.
11864 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11865 tmac/Makefile.sub: New files copied directly from the NetBSD
11866 distribution. Probably, some additional adaptation later on is
11869 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11870 of unsafe requests.
11872 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11873 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11874 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
11875 (`-S') is now the default.
11877 * README, NEWS: Updated.
11879 1999-12-09 Werner LEMBERG <wl@gnu.org>
11881 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11883 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11885 1999-12-06 Werner LEMBERG <wl@gnu.org>
11887 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11888 grief than relief today. Additionally, it is against the GNU
11891 * configure: Recreated.
11893 1999-12-05 Werner LEMBERG <wl@gnu.org>
11895 * configure.in: Added GROFF_LIBM.
11897 * configure: Recreated.
11899 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11902 * Makefile.in: Added definition of $(LIBM).
11904 * Makefile.comm (LIBM): Removed.
11906 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11908 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
11910 * doc/Makefile: Added rule for generation pic.html.
11912 (clean): Files produced by grohtml will be removed also.
11914 * doc/pic.ms: Small fix.
11916 * tmac/tmac.html: Fixed suppression of headers.
11918 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
11920 * tmac/tmac.html: Fixing horizontal arrows.
11922 Turning off hyphenation.
11924 * tmac/tmac.an: Improved support for grohtml; better indentation,
11925 no footers/headers.
11927 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
11929 * tmac/tmac.arkup: Added CDFTP macro
11931 * tmac/tmac.html: All headers are turned off for ms, me, and mm
11934 * tmac/troffrc: Some additions for HTML stuff.
11936 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
11938 * tmac/tmac.html: Small changes.
11940 1999-09-26 Werner LEMBERG <wl@gnu.org>
11942 * doc/groff.texinfo: Minor fixes.
11944 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
11946 * devhtml/TR: Changed spacewidth to 3.
11948 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11950 * tmac/tmac.html: Moved markup macros to tmap.arkup.
11952 * tmac/tmac.arkup: New file.
11954 * grohtml/ChangeLog: New file.
11956 1999-09-16 Werner LEMBERG <wl@gnu.org>
11958 * doc/groff.texinfo (Common Features): Added Copying chapter.
11959 Changed format to @smallbook.
11961 1999-09-15 Werner LEMBERG <wl@gnu.org>
11963 * NEWS: Added info about groff.texinfo.
11965 * doc/groff.texinfo: Will now compile (using texi2dvi) without
11968 1999-09-14 Werner LEMBERG <wl@gnu.org>
11970 * groff/groff.man: More updates.
11972 1999-09-13 Werner LEMBERG <wl@gnu.org>
11974 * doc/groff.texinfo: New file. This manual is still very
11975 rudimentary. It has been originally contributed by Trent
11976 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11979 * INSTALL: Added information about the `doc' subdir
11981 * troff/troff.man: Minor fixes.
11983 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11986 * troff/input.cc (usage): Added missing `-ffam' to usage message.
11988 * Makefile.in (dist): groff-$(version).tar.gz must be removed
11989 also, otherwise it is included itself in another call of `make
11992 * groff/groff.cc (synopsis): Removed superfluous space.
11994 * PROJECTS, PROBLEMS, NEWS: Updated.
11996 * VERSION: Updated to 1.12beta.
11998 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12000 * README: Updated: Included documentation about CVS repository,
12001 mailing lists, and daily snapshots.
12003 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12005 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12007 * tmac/tmac.an: If the tag didn't fit into the space that the
12008 macro `TP' specifies, the rest of the tag went into the space for
12011 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12013 * grolj4/lj4.cc: Added duplex printing (option `-d').
12015 * grolj4/grolj4.man: Document duplex printing.
12017 1999-09-12 Werner LEMBERG <wl@gnu.org>
12019 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12020 non-GNUish sed programs.
12022 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12025 * configure.in (LIBS): Added `-lc'
12027 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12029 * pic/tex.cc (solid_arc): Casting M_PI to double.
12031 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12033 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12034 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12035 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12037 * groff/groff_man.man: New file. This manual page was originally
12038 written for the Debian GNU/Linux system by Susan G. Kleinmann
12041 * eqn/list.cc (list_box::compute_metrics,
12042 list_box::compute_sublist_width): Removed variable declaration to
12043 avoid shadowing warnings.
12045 * grops/psrm.cc (resource_manager::process_file): Ditto.
12047 * tfmtodit/tfmtodit.cc (main): Ditto.
12049 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12050 to avoid shadowing warnings.
12052 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12053 shadowing loop variable.
12055 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12057 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12059 New grohtml frontend to convert groff input to html.
12061 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12063 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12065 * tmac/eqnrc: Added html device.
12067 * tmac/tmac.html: New file.
12069 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12070 (troff_output::start_picture, troff_output::finish_picture),
12071 tbl/main.cc (process_input_file):
12072 Surrounded output with `graphics_start' and `graphics_end' so that
12073 the html driver can identify non-text portions.
12075 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12076 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12077 grotty/tty.ps (tty_printer::set_char): Additional parameter
12080 * include/printer.h: Class printer: New function
12081 set_char_and_width; new variables (is_char_named, is_named_set,
12082 named_command, named_char_s, named_char_n) to hold information
12083 about named characters -- needed by the html driver.
12085 * libdriver/printer.cc (printer::set_ascii_char,
12086 printer::set_special_char): Use set_char_and_width.
12088 * devhtml/*: New device files for html driver.
12090 * grohtml/*: New driver grohtml.
12092 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12094 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12097 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12099 * libgroff/string.cc (search): Small fix to test against NULL
12102 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12104 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12105 \b'abc') were stacked in reverse order when processed in a
12108 * troff/node.h: Added `*last' to struct `node' to make the above
12111 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12112 The default scale for the 'f' and 't' graphics functions were 'm'
12113 rather than 'u' (i.e., no scaling).
12115 1999-09-11 Peter Miller <peterm@jna.com.au>
12117 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12118 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12119 defining include paths.
12121 * soelim/soelim.cc (include_path_append): New function.
12123 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12125 * tbl/main.cc (process_options): Unix (at least Documenter's
12126 Workbench) tbl allows arbitrary non-alpha characters between
12129 1999-09-11 Paul Eggert <eggert@twinsun.com>
12131 Y2k fixes. Don't assume that the current year precedes 2000.
12133 * doc/meref.me: Add \n(y2, \n(y4.
12135 * tmac/doc-common (Yr): New number register.
12136 (Dd): Don't assume current year precedes 2000.
12138 * tmac/tmac.e (td): Likewise.
12139 (y2, y4): New number registers.
12141 * pic/pic.man: Update reference for pic paper to May, 1991
12144 1999-09-11 Werner LEMBERG <wl@gnu.org>
12146 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12147 Removed quotation marks which prevented correct expansion of
12150 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12152 1999-09-10 Werner LEMBERG <wl@gnu.org>
12154 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12157 * Removed configure.old.
12159 1999-08-31 Werner LEMBERG <wl@gnu.org>
12161 * VERSION: Updated to 1.11.1
12163 1999-05-27 Werner LEMBERG <wl@gnu.org>
12165 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12167 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12168 added quotations around $(tmac_wrap) to avoid syntax error if
12171 * configure: Newly generated using autoconf 2.13.
12173 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12175 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12177 * README, PROJECTS, NEWS, INSTALL, VERSION,
12178 doc/Makefile. doc/pic.ms, groff/groff.man:
12179 Prepare for 1.11 release. No code changes.
12180 Documentation for pic added (doc/pic.ms).
12182 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12184 * Version 1.10 released.
12186 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12188 * afmtodit/afmtodit.pl: Avoid comment on first line.
12190 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12192 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12193 * configure.in: Call it.
12195 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12196 (distfiles): Doesn't depend on config.log or config.cache.
12198 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12200 * grog/grog.sh: Use print "" rather than print in END rule.
12202 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12204 * tbl/main.cc (process_data): Don't give error for excess data
12205 entries that are comments.
12207 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12209 * tbl/main.cc (process_data): Fix case where new for-scope rules
12210 silently change meaning of code.
12212 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12214 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12215 of non-zero hyphenation codes.
12217 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12219 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12221 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12223 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12225 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12227 * tmac/tmac.andoc: Make it work in compatibility mode.
12229 * refer/token.h (token_info::is_range_sep): New function.
12230 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12231 * refer/ref.cc (reference::output): More sophisticated check for
12234 * devps/prologue.ps (MANUAL): New procedure.
12235 * grops/ps.cc (main): New -m option.
12236 (usage): Include -m.
12237 (ps_printer::~ps_printer): Implement -m.
12239 * aclocal.m4 (GROFF_G): New macro.
12240 * configure.in: Call it.
12241 * Makefile.in (g): Provided by configure.
12243 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12245 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12248 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12249 (tmac_m, tmac_s): Deleted.
12250 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12251 tmac_s_prefix): New variables.
12252 (MDEFINES): Change accordingly.
12253 * Makefile.comm (.man.n): Use new TMAC_* variables.
12254 * configure.in (GROFF_TMAC): Call.
12255 * aclocal.m4 (GROFF_TMAC): Define.
12256 * tmac/Makefile.sub (stamp_wrap): New target.
12257 (install_data, uninstall_sub): Handle macro wrapping.
12259 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12261 * tbl/main.cc (main): Ignore -T option.
12263 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12265 * devlj4/generate/special.map: Add definition of \(nb.
12267 * tmac/tmac.dvi: Add definition of \(nb.
12269 * troff/dictionary.c (dictionary::dictionary): association::v gets
12270 initialized by association::association.
12272 * tmac/Makefile.sub: Avoid using temporary files when installing.
12274 * troff/env.cc (environment::set_font): Make bad font number a
12277 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12279 * Makefile.in (datadir): Use share rather than lib.
12281 * groff/groff.cc (basename): Rename to xbasename.
12283 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12285 * Makefile (CCLIBS): Don't use.
12286 * Makefile.ccpg: Likewise.
12288 * acgroff.m4: Rename to...
12289 * aclocal.m4: Modify extensively for autoconf 2.
12290 * configure.in: Likewise.
12291 * Makefile.in: Likewise.
12293 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12295 (xstrsignal): Check for definition of NSIG. Conditionalize
12296 on SYS_SIGLIST_DECLARED. Make return type const.
12298 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12300 * troff/input.cc (interpolate_macro): Rephrase missing space
12303 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12305 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12306 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12307 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12308 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12309 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12310 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12311 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12312 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12313 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12314 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12315 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12318 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12320 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12322 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12324 (macro_iterator::macro_iterator): Add additional argument.
12326 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12328 * troff/div.cc (vertical_size::vertical_size): In place of integer
12329 specifying line spacing use cunits specifying post vertical
12331 (macro_diversion::output, top_level_diversion::output): Likewise.
12332 * troff/div.h: Change declarations accordingly.
12333 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12335 (pending_output_line::pending_output_line,
12336 pending_output_line::output, environment::output,
12337 environment::output_line, environment::output_title,
12338 environment::hyphenate_line): In place of
12339 integer specifying line spacing use cunits specifying post vertical
12341 (environment::environment): Add post_vertical_spacing and
12342 prev_post_vertical_spacing arguments.
12343 (environment::get_post_vertical_spacing): New function.
12344 (environment::total_post_vertical_spacing): New function.
12345 (environment::post_vertical_spacing): New function.
12346 (init_env_requests): Initialize pvs request and .pvs register.
12347 * troff/env.h: Change declarations.
12349 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12351 * tmac/tmac.pspic: Immediately remove the temporary file.
12353 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12355 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12356 height is specified.
12358 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12360 * tbl/table.c (struct vertical rule, class table_entry): Use int
12361 not short for start_row and end_row.
12363 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12365 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12367 (diverted_space_node::reread, process_input_stack): Call
12368 trapping_blank_line() rather than blank_line().
12369 (init_input_requests): Bind "blm" to blank_line_macro().
12371 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12373 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12375 * troff/env.cc (environment::possibly_break_line): Require that
12376 width total excluding width of final space node be greater than
12377 the target text length.
12379 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12381 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12383 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12385 * troff/node.cc (charinfo_node): New class.
12386 (glyph_node, composite_node): Derive from charinfo_node. Change
12387 member functions accordingly.
12389 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12391 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12393 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12395 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12397 * devps/generate/textmap (notsubset): Add.
12399 * tmac/tmac.a4: New file.
12401 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12403 * pic/main.cc (had_parse_error): New variable.
12404 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12406 (main): Return 1 if had_parse_error is true.
12408 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12410 * grolj4/lj4.cc (main): Avoid use of strtoul.
12412 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12414 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12415 iso_8859_1 or $LESSCHARSET is latin1.
12417 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12419 * hpftodit: New directory.
12420 * Makefile.in (CCPROGDIRS): Add hpftodit.
12421 * devlj4/generate: New directory.
12423 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12425 * configure.in: Don't use AC_VFORK.
12426 * groff/pipeline.c (run_pipeline): Use fork() always.
12428 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12430 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12432 * Makefile.in (CCPROGDIRS): Add grolj4.
12433 (DEVDIRS): Add devlj4.
12434 * grolj4, devlj4: New directories.
12435 * tmac/troffrc: Handle lj4.
12436 * tmac/tmac.lj4: New file.
12438 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12440 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12442 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12444 * troff/input.cc (do_if_request): At end of second string, switch
12445 environments before getting next token.
12447 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12449 * devps/psstrip.sed: Split rule that strips whitespace on either
12450 side of delimiters.
12452 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12454 * troff/node.h (font_family::make_definition): Add return value to
12455 declaration. * troff/symbol.h (symbol::operator==,
12456 symbol::operator!=): Likewise.
12458 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12460 * groff/groff.cc (main, help, synopsis): Handle -S.
12461 (possible_command::insert_arg): New function.
12463 * tmac/tmac.safer: New file.
12464 * tmac/msafer.man: New file.
12465 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12467 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12469 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12470 * pic/pic.y (placeless_element): Avoid unsafe operations if
12471 `safer_flag' is set.
12472 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12474 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12476 * eqn/lex.cc (get_token): Put call to add_context() in block to
12477 work around Sun C++ 4.0 bug.
12479 * include/stringclass.h (operator +): Use ?: instead of `if' to
12480 work around Sun C++ 4.0 bug.
12482 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12484 * tbl/main.cc (process_format): Accept - as a synonym for the _
12487 * libbib/index.cc (minus_one): Don't declare as const.
12489 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12491 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12493 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12495 * troff/input.cc (write_macro_request): New function.
12496 (init_input_requests): Bind write_macro_request to writem.
12498 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12500 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12503 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12505 * tmac/tmac.s (@TS): Renamed from TS.
12506 (TS): Call LP then TS again.
12507 (cov*ab-init): Alias @TS to TS.
12509 * tmac/tmac.s: Allow QP or RS to initialize.
12511 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12512 Move initializations of PS and LL here.
12513 (par@init): Don't initialize HY. Avoid changing environment 0.
12514 (par*env-init): Don't all par@reset.
12516 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12518 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12520 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12522 * Makefile.in (MDEFINES): Add LDFLAGS.
12523 (LDFLAGS): Add definition line.
12525 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12527 * troff/input.cc (get_optional_char): Split off error check into...
12528 (check_missing_character): New function.
12529 * troff/token.h: Declare it.
12530 * troff/env.cc (margin_character): Don't call get_optional_char.
12531 Only call tok.next() after making the node.
12533 * include/lib.h (getopt): Make 2nd argument char *const *.
12535 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12537 * nroff/conftest.sh: Deleted.
12539 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12541 * pic/make-dos-dist: Deleted.
12543 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12545 * devps/psstrip.sed: Strip comments before stripping trailing
12548 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12550 * Version 1.09 released.
12552 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12554 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12556 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12558 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12560 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12562 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12563 about returning without a value.
12565 * troff/charinfo.h (charinfo::get_special_translation): Cast
12566 TRANSLATE_NONE to int.
12568 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12569 test. Fix test so that it works with n unsigned.
12571 * pic/pic.y (defaults_table): Fully bracket initializer.
12572 * pic/lex.cc (lookup_keyword): Likewise.
12573 * eqn/lex.cc (token_table, def_table): Likewise.
12574 * eqn/box.cc (param_table): Likewise.
12575 * troff/input.cc (warning_table): Likewise.
12576 * libgroff/font.cc (table): Likewise.
12577 * grops/ps.cc (ps_printer::special): Likewise.
12578 * grops/psrm.cc (resource_manager::process_file): Likewise.
12579 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12580 * refer/command.cc (command_table): Likewise.
12581 * addftinfo/addftinfo.cc (param_table): Likewise.
12583 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12584 about temp's being unused.
12585 (unused): New function.
12587 * groff/pipeline.cc: Declare c_fatal.
12589 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12592 * libbib/index.cc (index_search_item::load): Prevent compiler
12593 warnings about fd_closer's being unused.
12594 (unused): New function.
12596 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12598 * troff/input.cc (copy_mode_error): Make `prefix' static.
12601 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12603 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12604 HAVE_CC_OSFCN_H and modify accordingly.
12606 * troff/input.cc (init_charset_table): radicalex overlaps
12609 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12610 udodo!hans@relay.NL.net).
12611 * groff/configure.in: Call it.
12613 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12614 * groff/configure.in: Call it.
12615 * include/lib.h: Conditionalize declaration of pclose.
12617 * troff/div.cc (last_page_number): New global variable.
12618 (top_level_diversion::begin_page): Exit if we just printed the
12620 * troff/div.h (last_page_number): Declare it.
12621 * troff/input.cc (parse_output_page_list): Set last_page_number.
12623 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12624 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12625 tmac/tmac.X: Likewise.
12626 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12627 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12629 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
12631 * tmac/doc-ditroff (hK): Remove groff specific code which
12632 prevented page-breaks between separate manual entries. If this is
12633 the first page, don't set the page number to 1.
12635 * acgroff.m4 (GROFF_POSIX): New macro.
12636 * configure.in: Use it.
12638 * troff/node.cc (class real_output_file,
12639 real_output_file::real_output_file,
12640 real_output_file::~real_output_file): Conditionalize use of
12641 popen/pclose on POPEN_MISSING.
12642 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12643 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12644 (pipe_source): Similarily.
12646 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12648 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12649 presence of declarations by trying to compile example with
12650 conflicting declarations. (gcc only gives a warning for missing
12653 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
12655 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12656 (from Ulrich Lauther).
12658 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
12660 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12662 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
12664 * indxbib/indxbib.cc (write_hash_table): Add code for case where
12665 pointers and ints have different sizes.
12667 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
12669 * tmac/tmac.s (par*env-init): Call par@reset.
12671 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
12673 * tmac/tmac.s (@IP): Switch to a new environment when diverting
12675 (par*push-tag-env, par*pop-tag-env): New macros.
12677 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
12679 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12680 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
12682 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12683 comment. Include <time.h>.
12685 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
12687 * grops/ps.cc (is_small_h, is_small_v): Deleted.
12688 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12691 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
12693 * troff/input.cc (read_request): Only print a prompt if reading
12694 from the terminal. Also clearerr on EOF if reading from the
12695 terminal. Declare isatty.
12697 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
12699 * refer/label.y: Rename map_t to map_func and extractor_t to
12702 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
12704 * include/assert.h: Don't use volatile.
12705 * libgroff/assert.cc: Likewise.
12707 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
12709 * troff/input.cc (abort_request): Look at character in tok before
12710 calling get_copy().
12712 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
12714 * troff/troff.h (NO_RETURN): Deleted.
12715 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
12716 * troff/input.cc (exit_troff): Likewise
12718 * Makefile.in: Remove `Making ...' messages since GNU make now
12721 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12723 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
12725 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12726 to constant 1 inch.
12728 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
12730 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12732 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
12734 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12735 MARK_REG if there was no left delimiter.
12737 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
12739 * pic/troff.cc (troff_output::text): Set line thickness to
12740 relative before outputting text.
12742 * tmac/tmac.e (@k): Don't zero ?T.
12745 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
12747 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12749 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
12751 * troff/input.cc (decode_args): Warn about unquoted tabs (from
12754 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
12756 * troff/input.cc (ignoring): New variable.
12757 (ignore): Set ignoring during call to do_define_macro.
12758 (do_define_macro): Clear ignoring before interpolating terminating
12760 (copy_mode_error): New function.
12761 (get_char_for_escape_name, read_long_escape_name,
12762 interpolate_arg): Use copy_mode_error.
12763 (warning_table): Add WARN_IG.
12764 * troff/troff.h (WARN_IG): Declare.
12765 (WARN_TOTAL): Change accordingly.
12767 * groff/pipeline.c (strsignal): Rename to xstrsignal.
12768 * groff/groff.cc (strsignal): Delete declaration.
12770 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
12772 * troff/div.cc (page_offset): Use 'm' as default scaling.
12774 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
12776 * nroff/nroff.sh: Ignore -u.
12778 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
12780 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12782 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
12784 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12786 (B2): With -Tascii, leave additional vertical space before
12787 and after. Ensure that the left and right indent is restored to
12788 what it was even if the point size changes. Don't call
12789 par@finish. Change the indent, line length and title length
12790 directly. With -Tascii, make the width of the box 1n less.
12791 (B1): Remember 1n at the current point size. Don't call
12792 par@reset. Change the indent, line length and title length
12793 directly. Ensure that the temporary indent is preserved.
12794 (par*box-mark-top): Turn off no spacing mode.
12796 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
12798 * Makefile.in (dist): Use .gz suffix.
12800 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
12802 * troff/input.cc (main): Add return 0.
12803 * pic/main.cc (main): Use return instead of exit.
12804 * tbl/main.cc (main): Likewise.
12805 * eqn/main.cc (main): Likewise.
12806 * grops/ps.cc (main): Likewise.
12807 * grotty/tty.cc (main): Likewise.
12808 * groff/groff.cc (main): Likewise.
12809 * grodvi/dvi.cc (main): Likewise.
12810 * refer/refer.cc (main): Likewise.
12811 * indxbib/indxbib.cc (main): Likewise.
12812 * lkbib/lkbib.cc (main): Likewise.
12813 * soelim/soelim.cc (main): Likewise.
12814 * addftinfo/addftinfo.cc (main): Likewise.
12815 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12816 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12818 * troff/token.h (process_input_stack): Don't declare as static.
12819 * troff/input.cc: Likewise.
12821 * troff/node.c (invalidate_fontno): Make it a static member of
12822 class font_family. Change callers.
12823 * troff/node.c: Change declaration.
12825 * tbl/main.cc (struct input_entry_format): Add explicit public
12827 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12828 struct double_hline_stuff): Likewise.
12829 * tbl/table.h (struct entry_format): Likewise.
12830 * pic/object.h (struct saved_state): Likewise.
12832 * include/stringclass.h: Add forward declarations of friend
12833 functions that are later declared as inline. Don't include inline
12834 specifier in friend declaration.
12836 * libgroff/lib.h: Declare popen and pclose.
12837 * acgroff.m4 (GROFF_POPEN): New macro.
12838 * configure.in: Call it.
12840 * include/lib.h (PI): New constant. Undef first if necessary.
12841 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12842 * grops/ps.cc (degrees, radians): Likewise.
12843 * libgroff/font.cc (font::get_skew): Likewise.
12845 * grops/ps.cc (is_ascii): New function.
12846 (ps_output::put_string): Use is_ascii. Use csprint rather than
12848 (ps_printer::define_encoding): Use csspace.
12849 * libgroff/strtol.c (ISASCII): New macro.
12850 (strtol): Cast arguments to is*() and tolower() to unsigned char.
12851 Use ISASCII rather than isascii.
12852 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12853 * libgroff/cset.cc: Likewise.
12854 * libdriver/input.cc: Include cset.h.
12855 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12858 * refer/refer.cc (main): Use %ld rather than %d for longs.
12860 * libbib/index.cc (index_search_item_iterator::get_tag): Use
12863 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12865 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
12867 * troff/input.cc (hyphenation_code): Skip white space between
12870 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
12872 * tbl/table.h (table::entry_list_tailp): New member.
12873 (table::table): Initialize it.
12874 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12877 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
12879 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12880 with negative horizontal positions. Remove casts of glyph::hpos to
12882 (USHRT_MAX): Delete definition.
12883 (SHRT_MAX, SHRT_MIN): New definitions.
12884 (glyph::hpos): Change type to short.
12885 (tty_printer::end_page): Output multiple backspaces if necessary.
12886 Remove casts of glyph::hpos to int.
12888 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
12890 * tmac/tmac.s (@RT): New definition.
12892 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
12894 * refer/refer.cc (do_file): Make sure current_filename is set when
12897 * pic/common.cc (common_output::dot_line): Handle zero length
12900 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
12902 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12903 (par@init): Initialize \n[HY].
12905 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
12907 * troff/dictionary.cc (dictionary::remove): Continue when
12910 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
12912 * Makefile.com (.y.cc): Avoid ending up with two versions of
12915 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
12917 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12918 (\(,C): Likewise. Also fix typo.
12920 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
12922 * lib.h: Delete extraneous semi-colon.
12924 * Add pso request: `so' from a pipe.
12925 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12926 (file_iterator::close): New function.
12927 (file_iterator::~file_iterator, file_iterator::next_file): Use
12928 file_iterator::close.
12929 (file_iterator::backtrace): Say `process' rather than `file' when
12930 the stream is popened.
12931 (pipe_source): New function.
12932 (init_input_requests): Bind ".pso" to pipe_source.
12934 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
12936 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12938 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
12939 digits in lower case.
12941 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
12943 * Version 1.08 released.
12945 * Makefile.in (dist): Insert || true after ln -s commands that
12948 * mm: Update to mm 1.16.
12950 * acgroff.m4 (GROFF_CSH_HACK): New macro.
12951 * configure.in: Call GROFF_CSH_HACK. Substitute for
12953 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
12955 * nroff/Makefile.sub (nroff): New target.
12956 (install_data): Install nroff.
12957 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12958 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12960 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
12962 * eqn/Makefile.sub (neqn): Add chmod +x.
12964 * grog/Makefile.sub (grog): Remove spurious semi-colon.
12966 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
12968 * troff/input.cc (string_iterator::string_iterator()): Initialize
12971 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
12973 * troff/div.cc (macro_diversion::space,
12974 top_level_diversion::space): Don't set high_water_mark.
12975 (macro_diversion::output, top_level_diversion::output): Don't
12976 include post line space in high water mark.
12978 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
12980 * eqn/eqn.y: Don't define YYDEBUG.
12981 * pic/pic.y: Likewise.
12983 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
12985 * tmac/tmac.e ([3): Add space after comma following editors.
12986 Change double spaces to single spaces.
12987 ([4): Change double spaces to single spaces.
12989 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12990 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12991 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12992 after %!PS-Adobe- (for Newsprint).
12994 * troff/div.cc (top_level_diversion::begin_page): When
12995 before_first_page is 1, set page_number to 1.
12997 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
12999 * eqn/box.cc (box::top_level): Protect equation with \&.
13001 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13003 * groff/groff.cc (possible_command::set_name): Delete old name.
13005 * groff/groff.cc (possible_command::~possible_command): Use
13008 * troff/node.cc (troff_output_file::begun_page): New member.
13009 (troff_output_file::troff_output_file): Initialize it.
13010 (troff_output_file::really_begin_page): Only output V command if a
13011 page has been begun.
13013 * pic/pic.y (placeless_element): Delete argument to PRINT after
13016 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13018 * Make wrapman work.
13019 * troff/div.h (class top_level_diversion): Replace
13020 first_page_begun by before_first_page (with opposite sense).
13021 * Change first_page_begun to before_first_page inverting sense.
13022 * troff/div.cc (class nl_reg): New class.
13023 (init_div_requests): Use class nl_reg for \n(nl.
13024 (top_level_diversion::begin_page): Don't call
13025 output_file::begin_page if before_first_page is 2;
13026 reset before_first_page afterwards. If have_next_page_number is
13027 false, then always increment page_number.
13028 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13029 Restore compatibility mode after loading, and then disable
13030 compatibility mode in TH.
13032 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13034 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13036 * troff/node.h (output_file::trailer): Declare.
13037 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13038 * troff/node.cc (output_file::trailer): New function.
13039 (troff_output_file::~troff_output_file): Move most code into...
13040 (troff_output_file::trailer): New function.
13041 (class troff_output_file): Delete page_length member. Declare
13043 (troff_output_file::really_begin_page): Use current page length
13044 for final V command.
13046 * tbl/main.cc (struct options): New decimal_point_char member.
13047 (options::options): Initialize this.
13048 (process_options): Implement decimalpoint option.
13049 (process_data): Pass decimal_point_char option to table::table.
13050 * tbl/table.h (class table): New decimal_point_char member.
13051 (table::table): Add additional argument.
13052 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13053 second argument specifying decimal point character. Use this
13055 (table::table): Initialize decimal_point_char.
13056 (table::add_entry): Change call to find_dot.
13058 * troff/input.cc (get_copy, token::next): Implement \V.
13059 (interpolate_environment_variable): New function.
13061 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13063 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13064 * pic/pic.y: Likewise.
13066 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13068 * refer/ref.cc (reference::insert_field, reference::delete_field):
13070 * troff/number.cc (parse_term): Likewise.
13072 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13073 * configure.in: Use GROFF_PROG_YACC.
13075 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13077 * Makefile.in (OPTIMIZE): New define.
13078 (DEBUG): Empty by default.
13079 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13081 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13082 (GROFF_ARRAY_DELETE): Likewise.
13083 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13085 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13087 * devps/psstrip.sed: Use different delimiter on last line (so that
13088 it works with BSD 4.4 sed.)
13090 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13092 * devps/psstrip.sed: Delete comments.
13094 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13095 optind, opterr, optarg.
13096 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13099 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13101 * Makefile.in (check): Dummy target.
13103 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13105 * Version 1.07 released.
13107 * Integrate mm 1.11.
13109 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13110 where start_col was meant.
13112 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13114 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13116 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13118 * troff/input.cc (token::next): Make \z\o'...' and similar things
13121 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13123 (environment): Add margin_character_flags member.
13124 * env.cc (environment::environment(symbol),
13125 environment::environment(const environment *): Initialize
13126 margin_character_flags.
13127 (margin_character): Rewrite.
13128 (environment::output_line): Add a margin character if
13129 margin_character_flags is non-zero. Turn off the
13130 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13131 zero, use margin_character_node without copying and then set
13132 margin_character_node to 0.
13134 * devps/DESC.in: Change minimum size to 1000.
13136 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13138 * troff/symbol.h (symbol::hash): Change return type to unsigned
13140 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13143 * test-groff: Use -r rather than -x.
13145 * grops/psfig.diff: Include in distribution again.
13147 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13149 * Makefile.in (dist): Use gzip.
13151 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13153 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13154 unistd.h as well as in stdlib.h.
13155 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13156 defined; otherwise include <sys/types.h> and <unistd.h> if
13157 UNISTD_H_DECLARES_GETOPT is defined.
13159 * configure.in: use builtin(include, ... rather than include(...
13160 * configure: Regenerate with autoconf 1.3.
13162 * libdriver/print.cc (printer::adjust_arc_center): Use new
13163 algorithm suggested by Andy Fyfe.
13165 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13166 * include/printer.h: Declare this.
13167 * grops/ps.cc (ps_printer::draw): Use it.
13168 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13170 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13172 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13174 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13176 * eqn/main.cc (main): Handle "eqn -".
13178 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13180 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13182 * mm: Integrate version 1.08.
13184 * pic/troff.cc (troff_output::finish_picture): Set
13185 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13186 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13187 if it's not defined. Check whether the register is non-zero rather
13188 than whether it's not defined.
13189 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13191 * indxbib/indxbib.cc: Move all signal handling into...
13192 * indxbib/signal.c: New file.
13193 * configure.in: Call AC_RETSIGTYPE.
13195 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13196 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13197 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13199 * troff/input.cc (token::token, token::operator=): Work round SGI
13201 * pic/object.cc (position::position): Likewise.
13203 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13205 * pic/pic.h: Move declaration of hypot().
13207 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13209 * pic/pic.h: Declare hypot().
13211 * pic/pic.h: Define M_PI if necessary.
13213 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13215 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13218 * devps/prologue.ps (RE): Handle the possibility that the old font
13219 doesn't have a FontName entry.
13221 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13223 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13224 (@C): Use @fam not fam.
13226 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13228 * lookbib/lookbib.cc (main): Change type of start to const char *.
13229 * lkbib/lkbib.cc (main): Likewise.
13231 * eqn/lex.cc (definition::definition): Don't use member
13232 initializer syntax for members of anonymous unions.
13234 * troff/input.cc (input_stack::backtrace): Change type of to const
13237 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13239 * include/stringclass.h (class string): Declare inline friend
13240 functions as inline in class declaration.
13241 * troff/hvunits.h (class hunits, class vunits): Likewise.
13242 * include/refid.h (class reference_id): Likewise
13243 * troff/troff.h (points_to_units(units), scale(units, double)):
13244 Delete declarations.
13245 * libdriver/input.cc (get_char): Delete declaration.
13246 * include/lib.h: Change 2nd argument of getopt from const char **
13248 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13249 char **' before assigning to a `const char **'.
13250 * tbl/table.cc: Delete extra declarations of prints().
13252 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13254 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13255 char **' before assigning to a `const char **'.
13257 * libgroff/errarg.cc (errarg::errarg): Don't use member
13258 initializer syntax for members of anonymous unions.
13260 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13262 * mm: Integrate version 1.07.
13264 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13266 * troff/input.c (translate2): Rename to
13267 (translate_no_transparent).
13268 (init_input_requests): Rename tr2 to trnt.
13270 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13272 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13273 (charinfo::set_translation, charinfo::set_special_translation):
13274 Add second argument that specifies value for
13275 transparent_translate.
13276 (charinfo::get_translation, charinfo::get_special_translation):
13277 Add optional second argument that specifies whether translation is
13278 being used for transparent throughput.
13279 * troff/input.cc (charinfo::set_translation,
13280 charinfo::set_special_translation): Handle second argument.
13281 (charinfo::charinfo): Initialize transparent_translate.
13282 (translate): Split main part off into
13283 (do_translate): New function. Pass argument saying whether
13284 translation applies to transparent throughput.
13285 (translate2): New request.
13286 (init_input_requests): Bind translate2 to `tr2'.
13288 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13290 * tbl/table.h (class table): Add `nokeep' flag.
13291 * tbl/main.cc (process_options): Handle `nokeep' option.
13292 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13293 table::do_bottom): Don't output keep/release macro definitions or
13294 calls when `nokeep' option has been specified.
13296 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13298 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13300 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13302 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13303 block_entry::divert, alphabetic_block_entry::divert): Add extra
13304 argument giving column separation.
13305 (table::compute_widths): Pass column separation to
13306 table_entry::divert().
13307 (block_entry::do_divert): If an entry spans multiple columns and a
13308 minimumum width has been specified for each column, then set the
13309 line length to the sum of the widths (plus possibly the column
13312 * troff/input.cc (set_escape_char): Don't set the escape_char
13313 until after calling has_arg().
13315 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13317 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13320 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13321 in case where r > nrows - 1.
13323 * tbl/table.cc (BODY_HEIGHT): Deleted.
13324 (LINE_SEP): New definition.
13325 (table::print_single_hline, table::print_double_hline,
13326 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13327 table::do_row, table::do_top): Use LINE_SEP space before a line
13328 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13330 * tbl/table.cc (text_entry::print_contents): New function.
13331 (text_string_name, right_text_string_name): Deleted.
13332 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13333 (simple_text_entry::do_width, numeric_text_entry::do_width,
13334 alphabetic_text_entry::do_width): Don't store the contents of the
13336 (left_text_entry::simple_print, right_text_entry::simple_print,
13337 center_text_entry::simple_print,
13338 alphabetic_text_entry::simple_print,
13339 numeric_text_entry::simple_print): Print the entry directly
13340 instead of using the stored string.
13342 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13344 * devps/Makefile: Strip PostScript files.
13345 * devps/prologue: Rename to...
13346 * devps/prologue.ps.
13347 * devps/psstrip.sed: New file.
13348 * devps/download: Use .pfa rather than .ps for installed versions
13351 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13353 * troff/env.cc (input_trap): Give a warning if the argument is out
13356 * troff/env.cc (adjust): Treat negative argument as missing. Round
13357 argument > 5 down to 5.
13359 * troff/env.cc (center, right_justify): Make negative argument zero.
13361 * troff/div.cc (page_offset, vertical_position_traps): Treat
13362 invalid argument as missing.
13363 * troff/env.cc (line_spacing, line_length, title_length, indent,
13364 underline, hyphen_line_max_request, control_char,
13365 no_break_control_char, widow_control_request, adjust, input_trap,
13366 point_size): Likewise.
13367 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13368 constant_space): Likewise.
13369 * troff/input.cc (compatible, shift, warn_request,
13370 set_escape_char): Likewise.
13372 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13373 * tbl/table.cc (table::table): Likewise.
13375 * Makefile.dev (install_dev): depends on $(DEVFILES).
13377 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13379 * devX75, devX75-12, devX100, devX100-12: New directories.
13380 * Makefile.in: Add these to DEVDIRS.
13382 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13383 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13384 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13385 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13387 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13388 (uninstall): New target.
13389 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13390 uninstall_prog, uninstall_dev): New targets.
13392 * troff/div.cc (return_request): Treat an invalid argument as
13395 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13397 * tmac/tmac.e ((f): Set up the environment even when there's a
13398 current diversion. Transperently throughput a call to @N.
13401 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13403 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13404 up to vertical resolution.
13406 * tbl/table.cc (table::do_row): Change row number after printing
13409 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13411 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13413 * Rename CHANGES to NEWS.
13415 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13417 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13419 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13421 * man.ultrix: Removed.
13423 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13425 * Makefile.comm (extraclean): Delete files whose names begin with
13428 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13431 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13433 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13434 * troff/div.cc (page_length, need_space, space_request): Treat
13435 invalid optional argument as missing.
13436 * troff/env.cc (number_lines): If the first argument is present
13437 but not a number, turn on line numbering, don't change the next
13438 line number and parse the remaining arguments.
13440 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13442 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13444 * eqn/box.h: Change declaration accordingly.
13445 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13446 the specified size was bad but don't give an error. Check for
13448 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13449 * eqn/lex (do_size): Likewise.
13451 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13453 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13454 compatible headers.
13456 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13458 * tbl/table.cc (table::init_output): Improve error message when
13459 table won't fit on one page.
13461 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13463 * pic/troff.cc (troff_output::start_picture): Generate line
13464 containing a horizontal motion equal to the width of the picture.
13466 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13467 using GROFF_COMMAND_PREFIX environment variable.
13469 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13471 * mdate.sh: Use $NF rather than $(NF).
13473 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13475 * pic/main.cc (main): Use %1 not %c in argument to warning.
13477 * eqn/main.cc (main): Output code to check that geqn was given the
13480 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13482 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13483 `ln -s ../Makefile .; make; rm -f Makefile'.
13485 * troff/hyphen: Rename to...
13487 * troff/input.cc (main): Delete -H option. Don't call
13488 read_hyphen_file().
13489 * troff/env.cc: Include searchpath.h and macropath.h.
13490 (exception_dictionary): Deleted.
13492 (read_hyphen_file): Deleted.
13493 (hyphenation_language): New struct.
13494 (class trie, class hyphen_trie): Move declarations up.
13495 (trie_node::~trie_node): Deleted.
13496 (trie::delete_trie_node): New function.
13497 (trie::do_delete): New pure virtual function.
13498 (hyphen_trie::do_delete): New function.
13499 (trie::~trie): New function.
13500 (hyphen_trie::~hyphen_trie): New function.
13501 (trie::clear): No need to chcek that tp is not 0.
13502 (current_language, language_dictionary): New variables.
13503 (hyphen_word): Give an error if no current language. Use
13504 exceptions dictionary in current language.
13505 (hyphen_trie::read_patterns_file): Find file using macro_path.
13506 Allow comments (starting with %) in patterns file. Don't make it
13507 a fatal error if the file can't be found.
13508 (hyphenate): Return if no current language. Get the exceptions
13509 dictionary and the hyphenation patterns from the current language.
13510 (set_hyphenation_language): New variable.
13511 (hyphenation_patterns_file): New function.
13512 (hyphenation_language_reg): New class.
13513 (hyphenation_language_reg::get_string): New function.
13514 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13515 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13517 * groff/groff.cc (main, help, synopsis): Delete -H option.
13518 * include/Makefile.sub: Don't define HYPHENFILE.
13519 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13520 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13521 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13522 hyphenation patterns.
13524 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13526 * eqn/neqn.sh: New file.
13527 * eqn/Makefile.sub: Handle neqn.sh.
13529 * eqn/eqn.h: Declare `nroff' variable.
13530 * eqn/box.cc (param_table): Add `nroff' param.
13531 (nroff): Define it.
13532 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13534 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13536 * troff/troff.h (WARN_FONT): New warning.
13537 (WARN_TOTAL): Change accordingly.
13538 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13539 (warning_table): Add WARN_FONT.
13540 * troff/node.cc (mount_font_no_translate): Pass argument to
13541 font::load_font. If this is non-zero, give a warning.
13542 Don't give an error message when accessing a font that has already
13543 been found to be invalid.
13544 * include/font.h (font::load, font::load_font): Add additional
13545 optional argument which suppresses error message if the font is
13547 * libgroff/font.cc (font::load_font): Handle additional argument.
13548 (font::load): Add additional argument. If this is non-null, set it
13549 to 1 and don't give error message.
13551 * include/printer.h (printer::end_page): Add argument giving
13553 * libdriver/input.cc (do_file): Pass this.
13554 * grops/ps.cc (ps_printer::end_page): Add argument.
13555 * grodvi/dvi.cc (dvi_printer::end_page,
13556 draw_dvi_printer::end_page): Add argument.
13557 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13558 columns_per_page members. New member nlines.
13559 (DEFAULT_LINES_PER_PAGE): Deleted.
13560 (tty_printer::tty_printer): Don't compute lines_per_page from
13561 font::paperlength. Don't compute columns_per_page from
13563 (tty_printer::add_char): Don't check horizontal position against
13564 columns_per_page. Grow glyphs vector if neccessary.
13565 (tty_printer::end_page): Add argument giving page_length in units.
13566 Discard lines past end of page.
13568 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13570 * tmac/tmac.tty-char: Fix definition of \(/l.
13572 * tmac/tmac.X: Define \(en.
13574 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13576 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13577 lpq, then use lp rather than lpr.
13579 * tmac/tmac.s (par@reset): Don't call `ad'.
13580 (par*env-init): Call `ad'.
13582 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13584 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13587 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13588 * indxbib/indxbib.cc: Likewise.
13590 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13592 * libgroff/putenv.c: New file.
13593 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13594 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13595 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13596 stdlib.h with AC_HAVE_HEADERS.
13598 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13600 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13603 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13605 * eqn/box.cc (gsize): Make it an int.
13606 (set_gsize): Parse argument handling increment or decrement.
13607 (box::top_level): Convert gsize to a string.
13609 * troff/input.cc (exit_troff): Make buf unsigned char [].
13610 Call to make_temp_iterator casts buf to char*.
13612 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13614 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13615 * Makefile.cpg (depend.temp): Likewise.
13617 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13619 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13621 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13623 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13625 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
13627 * Version 1.06 released.
13629 * Integrate mm 1.04.
13631 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
13633 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13635 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
13637 * afmtodit/afmtodit.pl: Add -n option that disables generation of
13639 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13640 afmtodit. Regenerate.
13642 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13643 @f back past the current position.
13645 * tmac/tmac.e: Change calls to @R so that comments are not part of
13648 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
13650 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13652 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13653 check that we can link a call to a function declared in <stdio.h>.
13654 (GROFF_UNISTD_H): New macro.
13655 * configure.in: Call it.
13656 * Makefile.in: Document it.
13657 * include/posix.h: New file.
13658 * troff/troff.h: Don't include <osfcn.h>
13659 * troff/input.cc: Include posix.h.
13660 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13662 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13663 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13665 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13666 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13667 * libbib/search.cc (O_RDONLY): Delete definition.
13668 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13669 Don't include <osfcn.h>.
13671 * acgroff.m4 (GROFF_TIME_T): New macro.
13672 * configure.in: Call it.
13673 * Makefile.in: Document it.
13675 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13676 * configure.in: Call it.
13677 * Makefile.in: Document -DTRADITIONAL_CPP.
13678 * include/ptable.h: Don't include generic.h.
13679 (name2): Define it.
13681 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13682 Afterwards remove [T1 and [T2.
13683 (ref*spec!0, ref*spec!2): Use T1 rather than T.
13684 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13685 (ref*add-T2): Renamed from ref*add-T.
13686 (ref*add-T1): New macro.
13688 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
13690 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13692 * libbib/index.cc: Include <fcntl.h>.
13693 (O_RDONLY): Define if necessary.
13694 (make_index_search_item, index_search_item_iterator::get_tag,
13695 index_search_item::check_files): Use O_RDONLY.
13696 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13697 (O_RDONLY): Define if necessary.
13698 (search_list::add_file): Use O_RDONLY.
13699 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13701 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13704 * libbib/index.cc (S_ISREG): Define it if necessary.
13705 (index_search_item::load): Use S_ISREG.
13707 * include/driver.h: Include <errno.h>.
13709 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
13711 * eqn/box.cc (body_height): Increase default value to 85.
13712 (body_depth): Increase default value to 35.
13714 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
13716 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13717 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13718 protected from expansion with \E.
13720 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13722 * Makefile (Makefile): New target.
13724 * Makefile.sub (configure, distfiles): New targets.
13726 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13729 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
13731 * eqn/box.cc (param_table): Add body_height and body_depth.
13733 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13735 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
13737 * psbb/Makefile.sub: Don't link with libgroff.a.
13739 * acgroff.m4 (GROFF_PUTENV): New macro.
13740 * configure.in: Call GROFF_PUTENV.
13741 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13742 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13745 * troff/env.cc (distribute_space): Rename force_forward argument
13746 to force_reverse. Reverse the list if force_reverse is true.
13748 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
13750 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13752 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13753 height or depth to be negative. Guard against SUP_RAISE quantity
13756 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
13758 * devps/generate/textmap: Add `an' (arrowhorizex).
13759 * tmac/tmac.ps: \(an overlaps horizontally.
13760 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13762 * devps/symbolchars: Add arrowverttp, arrowvertbt.
13763 * devps/textmap: Add arrowvertex.
13764 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13765 updownarrow delimiters.
13766 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13768 * tbl/table.cc (simple_entry::position_vertically,
13769 block_entry::position_vertically): For a centered entry, perform
13770 the motion in two stages.
13772 * refer/refer.cc (split_punct): Don't call lookup_token if there
13775 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
13777 * troff/input.cc (token::next): Delete token_node after copying
13780 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13783 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13785 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13787 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
13789 * grops/ps.cc (usage): -b option takes an argument.
13791 * devps/prologue (PLG): New procedure.
13792 * grops/ps.cc (main, usage): New -g option.
13793 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
13796 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
13798 * include/cset.h: Include <limits.h> if we have it.
13800 * libgroff/illegal.cc: New file.
13801 * include/lib.h (illegal_input_char): Use table.
13802 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13803 * pic/lex.cc (ARG1): Renumber to 14.
13804 * eqn/lex.cc (ARG1): Likewise.
13806 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13807 (eg 1.05.90) correctly.
13809 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
13811 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13812 Rename $r and $R registers to $v and $V.
13813 ($r, $R): Initialize to 0.
13814 (@v, @V): New macros.
13818 * troff/input.cc (main, usage): Add -R option that says not to
13820 * eqn/main.cc (main, usage): Rename -n to -R.
13822 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
13824 * devps/DESC.in: Leave font positions 5-9 blank.
13825 * devdvi/DESC.in: Likewise.
13827 * grog/grog.pl: Handle `.PS <file' correctly.
13829 * troff/input.cc (input_stack::push): Improve error message when
13830 input stack limit exceeded.
13832 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
13834 * refer/refer.cc (main): Fix typo in handling of `a' option.
13836 * refer/refer.cc (do_bib): In state START after a newline remain
13839 * groff/groff.sh: Deleted.
13840 * groff/Makefile.sub: Delete handling of groff.sh.
13842 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13843 to determine whether to use \X'ps:...'.
13844 * tmac/troffrc: Set 0p register to 0.
13845 * tmac/tmac.ps: Set 0p register to 1.
13847 * groff/groff.cc: Support -X option. Give warning for -TXps and
13848 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13849 * tmac/troffrc: Support -r.X=1.
13851 * pic/troff.cc (troff_output::dot): Don't test
13852 zero_length_line_flag.
13854 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
13856 * include/lib.h: Declare getopt() and friends unless
13857 STDLIB_H_DECLARES_GETOPT is defined.
13859 * doc/chars.tr: Delete.
13860 * man/groff_char.man: New file.
13862 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
13864 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13865 user has changed register format.
13867 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
13869 * groff/groff.cc: Get rid of device_table. Get postprocessor from
13870 `postpro' command in DESC file. Get spooler command from `print'
13871 command in DESC file. Execute spooler command with /bin/sh.
13873 * groff/groff.cc: Split Unix-specific parts into...
13874 * groff/pipeline.c: New file.
13877 * COPYING: New file.
13878 * all files: Update copyright notices.
13880 * Rearrange files. Redo Makefiles. Use autoconf.
13882 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
13884 * troff/input.c (charinfo_to_node_list): Interpret character
13885 definition with escape_char of `\'.
13887 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
13889 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13890 Define INT_DIGITS as big enough for 64-bit integer.
13891 * lib/strtol.c: Don't include lib.h.
13892 * lib/lib.h: Delete ifdef __cplusplus stuff.
13894 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
13896 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
13897 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
13898 get DESC from current directory.
13900 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
13902 * tbl/main.c (main): Always reset the line number when reading
13905 * tbl/table.c (table::print_single_hline, table::print_double_hline,
13906 table::define_bottom_macro, table::do_row, table::do_top): Round
13907 vertical spacing up to vertical resolution.
13909 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
13911 * ps/ps.h (enum resource_type): Avoid comma at end of
13913 * dvi/dvi.c (class dvi_printer): Likewise.
13914 * dvi/tfmtodit.c (gf::load): Likewise.
13915 * refer/label.y (struct expression): Likewise.
13916 * refer/refer.c (class label_processing_state): Likewise.
13917 * refer/indxbib.c (do_file): Likewise.
13918 * troff/troff.c (enum warning_type): Likewise.
13919 * tbl/main.c (process_data): Likewise.
13920 * troff/charinfo.h (class charinfo):
13922 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
13924 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
13926 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
13928 * groff.c: Move to new groff subdirectory.
13929 * groff/Makefile: New file.
13930 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13932 * man/mdate.sh: Use ls -L if supported.
13934 * Consolidate all header files produced by gendef into lib/defs.h.
13935 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13936 Don't include path.h.
13937 * lib/Makefile (path.h): Don't generate.
13938 * troff/input.c: Include defs.h. Don't include config.h.
13939 * troff/Makefile (config.h): Don't generate.
13940 * refer/index.h: Don't include suffix.h.
13941 * refer/index.c: Include defs.h.
13942 * refer/indxbib.c: Include defs.h.
13943 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13945 * refer/Makefile (suffix.h, path.h): Don't generate.
13946 * groff.c: Don't include config.h. Include defs.h.
13947 * Makefile (config.h): Don't generate.
13948 (lib/defs.h): Generate.
13949 (topclean): Remove lib/defs.h.
13951 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
13953 * lib/malloc.c, lib/getpagesize.h: Deleted.
13954 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
13956 * lib/Makefile: Delete malloc-related stuff.
13957 * lib/new.c: Workaround COOKIE_BUG if necessary.
13959 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
13960 needed header files directly.
13961 * refer/refer.h: Omit definition of DEFAULT_INDEX.
13962 * Makefile: Include definition of DEFAULT_INDEX in path.h.
13964 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
13966 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13968 * lib/font (font::load_desc, font::load): Don't split argument of
13970 (font::handle_unknown_font_command): Change type.
13971 * ps/ps.c (ps_font::handle_unknown_font_command,
13972 handle_unknown_desc_command): Change type.
13973 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13975 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
13977 * lib/font.h (font::handle_unknown_font_command): Add file and
13979 * lib/font.c (font::handle_unknown_font_command):
13980 * ps/ps.c (ps_font::handle_unknown_font_command):
13981 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13982 lineno arguments. Use _with_file_and_line functions for error
13985 * lib/fontfile.c (font::unknown_desc_command_handler): New static
13987 * lib/font.c (font::set_unknown_desc_command_handler): New
13989 (font::load_desc): For unknown commands, call
13990 unknown_desc_command_handler if not null.
13991 * lib/font.h (class font): Declare them.
13992 (FONT_COMMAND_HANDLER): New typedef.
13993 * ps/ps.c (handle_unknown_desc_command): New function.
13994 (main): Set bflag if we had a -b option. Call
13995 font::set_unknown_desc_command_handler.
13996 (broken.h): Don't include.
13997 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
13999 * ps/devps/Makefile: Add `broken' command to DESC file using
14000 BROKEN_SPOOLER_FLAGS.
14002 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14004 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14006 * macros/tmac.e (@R, @S): New macros.
14007 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14008 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14009 Declare $H, $[0-9], .. macros with @S.
14010 Declare |0, |1, |2, |3 strings with @S.
14012 * macros/tmac.e (@S): Rename to @U.
14014 * macros/tmac.e (@z): Define @b and bp as empty instead of
14017 * macros/tmac.e (@m): Deleted.
14018 (@h): Don't call @m.
14019 (@z): Don't set @m trap.
14021 * macros/tmac.e ($h, $f): Define |z as empty string.
14023 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14026 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14028 ()f): Likewise for * register.
14030 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14031 argument is missing, don't change $R. Call sr with three
14032 arguments when initializing.
14034 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14036 * macros/tmac.e (sr): New macro.
14037 Initialize $r and $R using sr.
14039 * macros/tmac.e (,): Delete \*(#[.
14041 * troff/env.c (set_tabs): Read the tab type even if the position
14042 is bad. Allow the position of the first tab stop to be negative.
14044 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14046 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14048 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14049 rather than -DPATHCONF_MISSING.
14050 * Makefile: Get rid of PATHCONF_MISSING.
14052 * refer/map.c: New file.
14053 * refer/index.c: Interface to mmap through map.c. Rename map_size
14055 * refer/Makefile: Handle map.c.
14056 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14058 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14060 * Makefile: RANLIB should be `true' if there is no ranlib.
14061 * lib/Makefile (libgroff.a): Simplify.
14062 * driver/Makefile (libdriver.a): Simplify.
14064 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14065 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14068 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14070 * troff/env.c (compare_ranges): Declare as extern "C".
14072 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14074 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14076 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14078 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14079 but conditionalize use of \X based on \*(.T.
14080 (grops_output::*): Deleted.
14081 * pic/output.h: Delete declaration of make_grops_output.
14082 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14083 by default. -n sets it to 0.
14084 (usage): Corresponding changes.
14085 * groff.c (main): Don't pass -x or -p to pic.
14086 * groff.sh: Likewise.
14088 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14091 * ps/devps/afmtodit: Change calculation of asc_boundary and
14092 desc_boundary. Make these bounds inclusive.
14093 * ps/devps: Regenerate font files.
14095 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14097 * macros/tmac.latin1: New file.
14098 * macros/tmac.tty-char: Use tmac.latin1.
14099 (tmac.tty-tr): Deleted.
14100 * macros/Makefile: Install tmac.latin1.
14101 * macros/tmac.dvi: Use tmac.latin1.
14102 * macros/troffrc: Translate \[char160] onto no-break space here.
14103 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14105 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14107 * macros/tmac.Xps: Use `do' request.
14109 * macros/tmac.ps: Use `do' request.
14111 * macros/tmac.e (@C): Use `do' request.
14113 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14114 * macros/Makefile: Install tmac.X*.
14116 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14117 * tty/Makefile: Don't install tmac.tty*.
14118 * macros/Makefile: Install tmac.tty*.
14120 * dvi/tmac.dvi: Move to macros.
14121 * dvi/Makefile: Don't install tmac.dvi.
14122 * macros/Makefile: Install tmac.dvi.
14124 * ps/tmac.ps*: Move to macros.
14125 * ps/Makefile: Don't install tmac.ps*.
14126 * macros/Makefile: Install tmac.ps*.
14128 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14130 * macros/eqnrc: Set draw_lines parameter based on device.
14131 * groff.c: Don't pass -D flag to eqn.
14132 * groff.sh: Likewise.
14133 * eqn/main.c: Warn about use of -D.
14135 * troff/input.c (process_startup_file): New function.
14136 (main): Call process_startup_file().
14137 * macros/troffrc: New file.
14138 * macros/Makefile: Install troffrc.
14139 * groff.c (main): Don't pass extra -m option to troff. For a
14140 pseudo device pass the name of the pseudo device to troff using
14142 * groff.sh: Likewise.
14143 * groff.c (possible_command::prepend_arg): Deleted.
14145 * troff/input.c (do_request): New function.
14146 (init_input_requests): Bind "do" to do_request.
14148 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14149 load eqnrc from macro directory.
14150 * macros/eqnrc: New file.
14151 * macros/Makefile: Install eqnrc.
14152 * ps/devps/eqnchar: Deleted.
14153 * ps/devps/Makefile: Don't install eqnchar.
14154 * dvi/devdvi/eqnchar: Deleted.
14155 * dvi/devdvi/Makefile: Don't install eqnchar.
14156 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14159 * lib/device.[ch]: New files.
14160 * lib/font.h (font::set_device_name, font::get_device_name):
14162 * lib/fontfile.c: Use device.h.
14163 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14164 * troff/input.c: Delete definition of `device'.
14165 (main): Don't initialize device.
14166 * troff/troff.h: Include device.h rather than declaring device.
14167 * troff/Makefile: No need to handle DEVICE.
14168 * driver/input.c: Include device.h. Don't use
14169 font::{set,get}_device_name.
14170 * groff.c, Makefile: Rename device.h to config.h.
14171 * groff.c: Use library device variable.
14172 * eqn/main.c: Use library device variable.
14173 * eqn/Makefile: No need to handle DEVICE.
14175 * lib/searchpath.[ch]: New files.
14176 * lib/Makefile: Handle searchpath.[ch].
14177 * troff/input.c (open_file, init_dirs): Deleted.
14178 (macro_dirs): Deleted.
14179 (open_mac_file, macro_source): Use class search_path.
14180 (add_string, struct string_list): Move definition.
14181 (main): Change -M option to use macro_path. Delete call to
14183 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14184 Rewrite to use class search_path.
14185 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14186 * lib/Makefile: fontfile.c depends on searchpath.h.
14187 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14189 * lib/macropath.[ch]: New files.
14190 * troff/Makefile: No need to handle MACROPATH.
14192 * troff/input.c: Delete DUMP code.
14193 * lib/fontfile.c, lib/font.h: Delete
14194 font::forget_command_line_font_dirs.
14196 * troff/input.c (push_token): New function.
14197 (handle_first_page_transition): Use push_token().
14198 (process_input_stack): Change handling of a space at the beginning
14201 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14203 * troff/input.c (font_dirs): Delete unused variable.
14205 * eqn/lex.c (do_set): Correct error messages.
14207 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14209 * troff/input.c (do_define_string): Allow the string name to be
14210 followed immediately by a tab.
14211 (define_character): Likewise.
14213 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14215 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14218 * troff/input.c (input_iterator::is_file): New virtual function.
14219 (file_iterator::is_file): New function.
14220 (input_stack::end_file): New function.
14221 (input_stack::next_file): Handle the situation where there is no
14222 file on the input stack correctly. Avoid making two passes over
14224 (next_file): Make the filename optional; in this case call
14225 input_stack::end_file().
14227 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14229 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14230 produce a real _ charater when the current font is CW and _
14233 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14234 expression to work around gcc 2.2 bug.
14236 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14238 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14240 * troff/env.c (environment::add_padding): New function.
14241 (environment::add_char): Use add_padding().
14242 (environment::space): Likewise.
14243 (environment::wrap_up_field): Add some padding if there is none
14244 and there's no current tab.
14245 * troff/env.h: Declare environment::add_padding.
14247 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14249 * pic/pic.y: undef fmod and rand before declaring them.
14251 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14253 * troff/input.c (main): If the DESC file specifies a font name of
14254 0, then leave the corresponding font position empty.
14256 * nroff.sh: New file.
14257 * Makefile (install.nobin): Install nroff.sh.
14259 * tty/devlatin1/R.proto: Add ao as synonym for de.
14260 * tty/tmac.tty-char: Define ao as o.
14262 * tty/dev{ascii,latin1}/R.proto: Add aq.
14263 * tty/tmac.tty-char: Delete definition of aq.
14265 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14267 * troff/input.c (init_charset_table): Don't translate 0240.
14268 * ps/tmac.ps: Translate char160 to space.
14269 * dvi/tmac.dvi: Likewise.
14270 * tty/tmac.tty: Likewise.
14272 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14274 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14276 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14277 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14280 * tty/tmac.tty-char: Add \(ah.
14282 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14283 No need to define \(FM and \(!/. Conditionalize all character
14286 * ps/devps/lgreekmap: Add +h, +f, +p.
14288 * ps/tmac.psnew: New file.
14289 * ps/Makefile: Install tmac.psnew.
14291 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14292 character definitions in compatible mode.
14294 * troff/input.c (remove_character): New function.
14295 (init_input_requests): Bind remove_character to "rchar".
14297 * ps/tmac.psold: New file.
14298 * ps/Makefile: Install tmac.psold.
14299 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14300 characters into tmac.psold. Make these definitions unconditional.
14302 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14304 * ps/tmac.ps: Don't define \('c and \('C.
14306 * ps/devps/textmap: Move Greek characters to...
14307 * ps/devps/symbolchars:
14309 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14311 * ps/devps/text.enc: Add quotesingle.
14312 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14313 * tty/tmac.tty-char: Likewise.
14314 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14315 * dvi/devdvi/texi.map: Add Fn.
14316 * dvi/devdvi/msam.map: Add lz.
14317 * dvi/tmac.dvi: Handle Bq, bq, aq.
14319 * pic/lex.c (get_token): Recognize 'th.
14320 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14322 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14324 * ps/devps/textmap: Move di, mu, +- to...
14325 * ps/devps/symbolchars:
14327 * macros/tmac.s (@XS): Don't call par@reset or fi.
14328 (XA): Call LP. Turn off adjustment. Reduce line length.
14330 * macros/tmac.s: Initially alias XS to LP.
14331 (XS): Rename to @XS.
14332 (cov*ab-init): Alias XS to @XS.
14334 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14336 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14337 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14338 (token::is_size, token::changes_env): Deleted.
14339 * troff/number.c (parse_term): No need to process \s explicitly.
14340 Call tok.next() only after scale indicator has been processed.
14341 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14343 (token::next): Handle \s, \f, \S, \H immediately rather than
14344 returning them as tokens.
14345 (token::operator==, token::description, token::add_to_node_list,
14346 token::process): Remove handling of deleted tokens.
14348 * troff/env.c (environment::add_char): When adding padding
14349 indicator character, call start_line() if necessary.
14351 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14353 * ps/devps/afmtodit: Don't output 0 kerns.
14355 * ps/devps/afmtodit: Remove directory from name of encoding in
14356 font description file.
14358 * ps/devps/afmtodit: Improve error messages.
14360 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14362 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14363 * ps/devps/FontMakefile: Deleted.
14364 * ps/devps/afmname: New file.
14366 * ps/devps/symbol.sed: New file.
14367 * ps/devps/symbol.diff: Deleted.
14368 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14369 Generate zapfdr.afm from zapfd.afm.
14371 * tty/tmac.tty (tty-char): Prefix definition with ".
14373 * macros/tmac.an (TP): Don't start a diversion if one has already
14376 * tty/tmac.tty-char: Add Latin-1 characters.
14378 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14380 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14382 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14383 Move declaration of struct horizontal_span.
14385 * tbl/table.c (table::table): Initialize span_list.
14386 (table::~table): Delete span_list.
14388 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14390 * ps/devps/Makefile: Avoid dependency on GNU make.
14392 * ps/tmac.ps: Check that character does not already exist before
14395 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14396 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14397 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14400 * tty/tmac.tty-char: New file.
14401 * tty/Makefile: Install tmac.tty-char.
14402 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14405 * tty/tmac.tty: Fix definition of \(34.
14407 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14408 bracket-drawing characters onto |. Add *o.
14410 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14411 only if current_field.
14413 * troff/dictionary.c (dictionary::lookup): Free old_table after
14416 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14418 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14419 whose glyphs are identical to glyphs of some Roman character.
14421 * tty/devlatin1/R.proto (bu): Deleted.
14422 * tty/devascii/R.proto (bu): Deleted.
14423 * tty/tmac.tty: Add definition of \(bu.
14425 * eqn/main.c (do_file): Pass FILE as argument.
14426 (main): Automatically load eqnchar. New options -F and -n.
14427 Pass do_file an opened FILE.
14428 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14429 No need to include font.h.
14430 * groff.sh: Likewise. Don't need to use - for standard input.
14431 Prefix files with -- if first file starts with -.
14433 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14435 * troff/env.c (environment::possibly_break_line): Don't set line
14436 to 0 across call to output_line(). Don't call output_line() until
14437 after discarding nodes after break.
14439 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14441 * request.h (macro::empty): Declare it.
14442 * input.c (macro::empty): New method.
14443 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14446 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14448 * troff/env.c (environment::start_field): Decrement space_total
14449 when a space is frozen.
14451 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14453 * macros/tmac.an (R): Delete macro.
14455 * troff/input.c (get_copy, token::next): Support \# (like \" but
14456 newline is ignored).
14458 * troff/input.c (token::next): Fix error message in 'Y' case.
14460 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14462 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14465 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14467 * c++test.c: Include <osfcn.h>.
14469 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14472 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14474 * tbl/table.c (table::divide_span): Don't count column separation
14475 if expand was specified.
14477 * tbl/main.c (process_format): Don't ignore width specs in
14478 continued format. Give warning for changing equal widths or
14479 column separation in continued format.
14480 (process_data): Set column separation, minimum width, equal
14481 columns at end of table.
14483 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14485 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14486 node::add_discretionary_hyphen): Use soft_hyphen_char.
14487 (set_soft_hyphen_char): New function.
14488 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14490 * Makefile (c++tested): Give more helpful message if test fails.
14492 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14494 * troff/input.c (init_charset_table): Translate 0240 to
14495 an unbreakable space.
14497 * troff/token.h (token::hyphen_indicator): New function.
14498 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14500 * troff/input.c (translate): Allow translation to \%.
14501 * troff/node.c (node::add_char): Handle
14502 TRANSLATE_HYPHEN_INDICATOR.
14503 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14505 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14508 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14510 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14512 * groff.c (run_commands): If the last command gets a SIGPIPE send
14513 a SIGPIPE to all children than haven't yet terminated. When
14514 command terminates, set pid field to -1.
14516 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14518 * groff.c (main): Pass an appropriate -filename option to gxditview.
14520 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14522 * Makefile.bd (install): Remove existing program before copying.
14524 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14525 programs which have Unix counterparts to be installed with
14526 user-specified prefix.
14528 * troff/input.c (exit_troff): Don't check if exit_started.
14529 (exit_request): Don't call exit_troff if exit_started.
14531 * Makefile.bd (install.mm): Rename to install.dwbmm.
14533 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14535 * driver/input.c (do_file): Add missing break for '#' case.
14537 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14539 * troff/input.c (input_stack::clear): Clear past any boundaries and
14540 then add the boundaries back.
14542 * troff/input.c (exit_troff): Return immediately if already
14545 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14547 (pg*end-page): If the text has ended and there are no more
14548 footnotes or keeps, exit.
14550 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14552 * troff/input.c (init_charset_table): Make \(rq transparent by
14555 * macros/tmac.an: Define lq and rq strings.
14557 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14559 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14561 * troff/env.c (environment::final_break): New function.
14562 (environment::newline): Set prev_line_interrupted to 2 if
14564 * troff/env.h: Declare environment::final_break.
14565 * troff/input.c (exit_troff): Call environment::final_break()
14566 instead of environment::do_break().
14568 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14569 doesn't already exist.
14570 * macros/man.local: New file.
14571 * macros/tmac.an: Load man.local.
14572 * macros/man.ultrix: New file.
14574 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14576 * troff/input.c (exit_groff): Rename to...
14577 (exit_troff): New function.
14579 * troff/div.c (exit_started, done_end_macro,
14580 seen_last_page_ejector): New global variables.
14581 (began_page_in_end_macro): New static variable.
14582 (exit_flag): Deleted.
14583 (top_level_diversion::top_level_diversion): Initialize
14585 (top_level_diversion): More elaborate test for whether
14586 cleanup_and_exit() should be called.
14587 Set began_page_in_end_macro if the end macro isn't yet finished.
14588 * troff/div.h (top_level_diversion::last_page_count): New data
14590 (top_level_diversion::set_last_page): New function.
14591 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14592 * troff/env.c (do_break): Zero prev_line_interrupted.
14593 * troff/input.c (exit_flag): Delete declaration.
14594 (LAST_PAGE_EJECTOR): New magic cookie.
14595 (token::next): Handle LAST_PAGE_EJECTOR.
14596 (exit_groff): Set exit_started and done_end_macro instead of
14597 exit_flag. Call top_level_diversion::set_last_page. Push a
14598 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14599 another ejection after setting seen_last_page_ejector.
14601 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14603 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14605 * macros/tmac.e (TH): Make sure there's room for the initial
14608 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14609 Set FVS in points rather than units.
14611 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14613 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14614 position of empty slots.
14616 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14618 * ps/devps/S: Fix height and depth of parenrightex.
14619 * ps/devps/symbol.diff: Regenerate.
14621 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14623 * tmac.e (u): Do underlining as in -mgs.
14625 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
14627 * tty/tty.c (tty_printer::end_page): If overstriking is
14628 suppressed, still turn overstruck horizontal and vertical lines
14631 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14634 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14636 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
14638 * Version 1.05 released.
14640 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
14642 * tty/tty.c: Instead of keeping an array of glyphs and then
14643 sorting it, keep a ordered linked list of glyphs for each line.
14645 * driver/driver.h: Include stddef.h.
14647 * tty/tty.c (compare_glyph):
14648 * refer/refer.c (rcompare):
14649 * troff/env.c (compare_ranges): Arguments of qsort comparison
14650 function should be const void *.
14652 * troff/number.c (parse_term):
14653 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14656 * refer/label.y (consider_authors): Don't access variables
14657 constructed under a condition outside that condition: put braces
14658 round for statement containing declaration; redeclare use of same
14661 * pic/pic.y (text_expr): Delete production that allows
14662 parenthesised text_expr.
14663 (expr): Allow a conditional_expr to appear in parentheses.
14664 (conditional_expr): Rename to any_expr.
14666 * mm: Install new version 1.01 from jh.
14668 * lib/font.c (font::get_width): Cache scaled widths.
14669 (font::font): Initialize widths_cache.
14670 (font::~font): Destroy widths_cache.
14671 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14673 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
14675 * c++test.c, c++test.ref: New files.
14676 * Makefile: Check that the C++ compiler works.
14678 * ps/tmac.pspic (PSPIC): Do a break.
14680 * ps/tmac.ps: Move definition of PSPIC into...
14681 * ps/tmac.pspic: New file.
14682 (PSPIC): Draw box around picture, but make it invisible to grops.
14683 * ps/tmac.ps: Load tmac.pspic.
14684 * ps/Makefile: Install tmac.pspic.
14686 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
14688 * lib/font.c (scale_round): If n is negative,
14689 subtract .5 before truncating floating point result.
14691 * lib/fontfile.c: Include <errno.h>.
14693 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
14695 * driver/input.c (get_char): Inline. Don't update current_lineno.
14696 Change callers to up date current_lineno if necessary.
14697 Use get_char() instead of getc(current_file).
14699 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
14701 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14703 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
14705 * tty/tty.c (tmac.tty): Define \(rg as (R).
14707 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
14709 * lib/lib.h: New define a_delete.
14710 * Use a_delete instead of delete when deleting an array of objects
14711 without destructors.
14713 * lib/lib.h: Rename adelete to ad_delete.
14714 * Change uses of adelete.
14716 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
14718 * eqn/eqn.y: Include lib.h.
14720 * troff/node.c (grow_font_table): Delete old_font_table.
14722 * mm: Install new version from jh.
14724 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
14726 * tbl/table.h (format_type): Make global instead of local to class
14727 entry_format. Prefix enumerators with FORMAT_.
14728 * tbl/table.c, tbl/main.c: Corresponding changes.
14729 * refer/token.h (token_type): Make global. Prefix enumerators
14731 * refer/token.[ch]: Corresponding changes.
14732 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14734 * troff/div.c (node::set_vertical_size): Don't name argument.
14736 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
14738 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14739 * lib/lib.h: Define adelete accordingly.
14740 * pic/object.c (graphic_object::graphic_object):
14741 * tbl/main.c (format::~format):
14742 * tbl/table.c (table::~table):
14743 * refer/ref.c (reference::~reference, reference::merge,
14744 reference::insert_field, reference::delete_field): Use adelete.
14746 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14748 * tbl/table.h: Corresponding changes.
14750 * common.c (common_output::dashed_arc, common_output::dotted_arc):
14751 Ensure total_angle is positive.
14753 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
14755 * refer/ref.c (reference::merge, reference::insert_field,
14756 reference::delete_field): Avoid delete[0].
14758 * refer/token.c (init_special_chars): Move calls to cmupper
14759 outside calls to init_two_char_letter to work around bug in gcc
14762 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
14764 * lib/new.c (operator new): Use __builtin_new for g++.
14766 * pic/object.c (graphic_object::~graphic_object): Don't use
14769 * pic/object.c (output::compute_scale): Initialize max_width and
14772 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
14774 * troff/input.c (write_request): Call fflush.
14776 * troff/node.h (class composite_node): Move declaration to node.c
14777 * troff/input.c (charinfo_to_node): Rename to ...
14778 (charinfo_to_node_list): Return node list rather than composite
14780 * troff/node.c (make_composite_node): New function.
14781 (make_node, add_char): Call make_composite_node instead of
14783 (class composite_node): Add a tfont * member. Delete font_size
14785 (composite_node::composite_node, composite_node::copy,
14786 composite_node::size): Corresponding changes.
14787 (composite_node::tprint): Provide constant spacing, emboldening
14788 and track kerning as specified in tfont.
14789 (composite_node::width): Change width calculation accordingly.
14790 * troff/env.h (environment::composite): New member.
14791 (environment::is_composite, environment::set_composite): New
14793 * troff/env.c (environment::environment): Initialize composite.
14794 * troff/input.c (charinfo_to_node): Call
14795 environment::set_composite.
14796 * troff/node.c (make_composite_node, make_glyph_node): Use the
14797 plain version of the tfont if the environment is composite.
14799 * troff/node.c (font_info::get_space_width): Additional argument
14800 giving space_size. Handle constant space correctly. Scale by
14801 space_size unless constant spaced.
14802 (env_sentence_space_width): New function.
14803 * troff/node.h: Declare it.
14804 * troff/env.h (environment::get_space_size,
14805 environment::get_sentence_space_size,
14806 environment::get_narrow_space_width,
14807 environment::get_half_narrow_space_width): Make inline.
14808 (environment::get_space_width): Make inline. Just call
14810 * troff/env.c: Delete definitions for funtions made inline.
14811 (environment::space_newline, environment::space): Use
14812 env_sentence_space_width(). Don't scale by space_size.
14813 * troff/node.h: Move declarations of env*space_width() functions
14816 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
14818 * macros/tmac.s (PS): Don't try to set negative indent.
14820 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
14822 * pic/pic.y: Fix min function.
14824 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
14826 * man/mdate.sh: Clear LANGUAGE.
14828 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
14830 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14831 * pic/lex.c: New COMMAND keyword.
14832 * pic/pic.y (print_args, print_arg): New rules.
14833 (placeless_element): Use print_args for PRINT.
14834 New COMMAND element.
14836 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
14838 * troff/input.c (terminal): Handle missing argument correctly.
14840 * pic/pic.y (text_expr): New rule.
14842 * pic/pic.y: Implement := operator.
14844 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
14846 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14849 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
14851 * ps/devps/dingbatsrmap: Include this in the distribution.
14853 * macros/tmac.doc: Replace with new version from 2nd Networking
14854 Release. Fix loading of doc-* files.
14855 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14856 * macros/tmac.doc.old: New file. Apply fixes that had been
14857 applied to old tmac.doc.
14858 * macros/tmac.andoc: Check that we're running under groff.
14859 * macros/Makefile: Rework.
14861 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
14863 * tbl/table.h (format_type):
14864 * refer/token.h (token_type): If NESTED_TYPES is defined, use
14865 typedef to make these types visible at file scope.
14866 * Makefile: Add NESTED_TYPES configuration option.
14868 * troff/div.c (mark): At the top level use the value of
14869 nl_reg_contents rather than the current vertical position.
14871 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
14873 * tty/tty.c: Implement \D for horizontal or vertical lines.
14874 (tty_printer::set_char): Use vec_used+2 as serial number.
14875 Don't allow size of vector to exceed USHRT_MAX-2.
14876 Split off part into...
14877 (tty_printer::add_char): New function.
14878 (tty_printer::draw): New function.
14879 (compare_glyph): Handle equal serial numbers.
14880 (tty_printer::end_page): Handle overstruck characters from \D.
14881 (main, usage): Implement -d option.
14883 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
14885 * tbl/main.c (process_format):
14886 * eqn/text.c (split_text):
14887 * troff/input.c (token::next): Use inner block for declarations
14888 with initializers in switch statement.
14890 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
14892 * pic/common.c (common_output::dash_line): Cope with zero-length
14895 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
14897 * Version 1.04 released.
14899 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
14901 * macros/tmac.an (TH): Define a macro an-init to define variables
14902 based on command line arguments.
14903 (an-header): Call it.
14905 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
14907 * Makefile (install.mm): Rename to install.dwbmm.
14909 * Makefile: Integrate mm.
14910 * mm: New directory.
14912 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
14914 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14917 * pic/troff.c (troff_output::simple_spline,
14918 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14919 shadowing parameter.
14921 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14923 * lib/ptable.h: Add explicit casts when converting from unsigned
14926 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14927 * dvi/devdvi/Makefile: Install SA, SB.
14929 * refer/indxbib.c: Add declaration of mktemp.
14931 * refer/lookbib.c: Add declaration of isatty.
14933 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
14935 * pic/lex.c (interpolate_macro_with_args): While collecting
14936 arguments, keep track of whether we're in a string.
14938 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
14940 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14941 down with \v, so as to avoid problems with top of page trap
14942 setting no space mode.
14944 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
14946 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14948 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
14950 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14951 Improve error message.
14953 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
14955 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14958 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
14960 * groff.c (possible_command::execp): Always use _exit() after a
14963 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14964 NO_SYS_WAIT_H configuration options.
14965 * groff.c: Use these options. Use POSIX-style macros to extract
14966 fields from the status returned by wait().
14968 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
14970 * tbl/table.c (table::compute_separation_factor): Allow the
14971 separation factor to drop to 0.
14973 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
14975 * refer/search.c: Include <errno.h>.
14977 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
14979 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14981 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14984 * pic/lex.c (input_stack::bol): Move definition out of class body.
14986 * pic/main.c: On MSDOS munge argv[0].
14988 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14990 * lib/ptable.c (hash_string): Use unsigned long rather than
14992 (next_ptable_size): Use unsigned rather than int. Give an error
14993 message if we've hit the largest table size.
14994 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
14997 * pic/object.h (object_spec): Make flags unsigned long. Declare
14998 flags as const unisgned long rather than as enums.
15000 * pic/output.c: Deleted.
15002 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15004 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15005 Add additional argument.
15006 (line_entry::note_double_vrule_on_{left,right}): Set value of
15007 douvle_vrule_on_{right,left} flag according to argument.
15008 (simple_line_entry::simple_print,
15009 simple_line_entry::double_line_print): If adjacent to double vrule
15010 on a corner extend rather than shorten the rule by half the double
15013 * troff/number.c (parse_term): In checking for overflow, handle the
15014 case where the current horizontal position is negative.
15016 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15018 * pic/object.c (draw_arrow): Check for object having zero length.
15020 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15022 * eqn/main.c (do_file): Split off inline equation handling into...
15023 (inline_equation): New function. Search for starting delimiter
15025 (delim_search): New function. Don't recognize a delimiter that
15026 occurs in the name of an escape sequence, number register, string
15029 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15031 * eqn/delim.c (delim_box::compute_metrics): Don't call
15032 define_extensible_string if left is 0.
15033 (delim_box::output): Don't print the left delimiter if left is 0.
15034 (delim_box::debug_print): Check for left == 0 before calling printf.
15036 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15038 * troff/Makefile (majorminor.c): Include only digits in
15041 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15043 * refer/dirnamemax.c: new file.
15044 * refer/genlimits.c: Deleted.
15045 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15046 Don't check path length.
15047 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15048 * Makefile: Add PATHCONF_MISSING option.
15050 * refer/indxbib.c (get_cwd): New function.
15051 (main): Use get_cwd().
15052 * lib/getcwd.c: New file.
15053 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15054 GETCWD in SUBFLAGS.
15055 * lib/Makefile: Compile getcwd.o.
15057 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15060 * refer/indxbib.c (main): Check success of mktemp.
15062 * lib/tmpfile.c: New file.
15063 * lib/Makefile: Add tmpfile.c.
15064 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15065 * ps/ps.h: Delete declaration of mktemp().
15066 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15067 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15068 * driver/driver.h: No need now to include errno.h.
15070 * everywhere: Set errno to 0 before calling fopen().
15072 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15073 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15074 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15076 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15078 * troff/env.h (translate_space_to_dummy): Declare it.
15079 * troff/env.c (environment::space_newline, environment::space):
15080 If translate_space_to_dummy is set then make the width of spaces 0.
15081 * troff/input.c (translate): If the second character of a
15082 translation is a space, translate to unbreakable space. If the
15083 first character is a space, set or clear translate_space_to_dummy
15084 according to whether the second character is \&. Weird!
15086 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15088 * groff.c (run_commands): Don't use non-zero exit code because a
15089 command gets SIGPIPE.
15091 * groff.c, groff.sh: Use -mXps with -TXps.
15093 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15094 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15095 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15096 (ps_printer::special): New specials invis and endinvis.
15097 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15098 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15099 (ps_printer::end_page): Check that invis_count == 0.
15100 (ps_printer::invis_count): New member.
15101 (ps_printer::ps_printer): Initialize invis_count to 0.
15103 * troff/env.c (environment::hyphenate_line): Hyphenation
15104 indicator at beginning of word inhibits splitting after -, \(em
15107 * pic/pic.y (element): Allow another element to follow } without
15108 any intervening separator.
15110 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15112 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15114 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15116 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15117 declaration of wait() in header files.
15118 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15120 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15122 * lib/lib.h: Declare return type of strerror as char *.
15124 * man/Makefile: Add g flag to sed substitutions.
15125 * Makefile (shgroff, bindist): Likewise.
15127 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15129 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15130 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15133 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15135 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15138 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15140 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15143 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15145 * troff/input.c (define_number_reg): If currently undefined,
15146 don't define it if the argument is an invalid expression.
15148 * Makefile: Ignore return value of `if' commands without `else'
15151 * Makefile: Split up CPPDEFINES into a series of separate
15152 configuration options.
15154 * troff/input.c (init_registers): Use time_t instead of long
15155 unless LONG_FOR_TIME_T is defined. Use returned result rather
15156 than passing pointer.
15157 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15159 * lib/Makefile (fontpath.h): Use gendef.
15161 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15163 * troff/input.c (input_iterator::shift): Delete argument name.
15164 * troff/node.c (suppress_output_file::really_begin_page,
15165 suppress_output_file::really_transparent_char, node::ascii_print,
15166 node::tprint): Delete names of unused arguments.
15168 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15170 * refer/label.y (string): Pass $4 to command_error.
15172 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15174 * Version 1.03 released.
15176 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15178 * Makefile: Pass definition of SHELL in SUBFLAGS.
15180 * gendef: New file.
15181 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15182 ps/Makefile: Use gendef to construct header files that are
15183 constructed from the Makefile.
15185 * macros/Makefile: make all should build stripped version of tmac.e.
15187 * refer/Makefile (clean): Remove y.output.
15189 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15191 * ps/pfbtops.c (main): Add -v option which prints out a version
15193 * ps/Makefile (pfbtops): Link with libgroff.a.
15195 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15197 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15198 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15200 * refer/lkbib.c (main): Always terminate reference with blank
15202 * refer/lookbib.c (main): Likewise.
15204 * refer/linear.c (file_buffer::load): Check that the file is not a
15207 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15208 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15209 Delete second inclusion of <sys/param.h>.
15211 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15213 * troff/token.h (token::special): Deleted.
15215 * tbl/main.c (process_format): Rework so that opt->tab_char is
15216 recognized only when appropriate.
15218 * ps/Makefile (clean): Remove pfbtops.
15220 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15222 * lib/font.c (text_file::next): Don't return if we have got a
15225 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15227 * refer/refer.c (store_reference): Get hash code from old_table[i]
15228 when rehashing the table.
15230 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15232 * eqn/box.c (box::top_level): Save size and prev size using \R and
15233 restore it afterwards. Set the size to the size at the beginning
15235 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15236 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15238 * refer/Makefile (limits.h): Use ./genlimits.
15240 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15242 * refer/index.c: Delete declarations of stat() and fstat().
15244 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15246 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15248 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15250 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15252 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15254 * troff/input.c (token::get_char): Handle \e.
15256 * refer/linear.c: Delete declarations of fstat() and stat().
15258 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15260 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15261 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15263 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15265 * troff/input.c (do_define_macro): Improve error handling for end
15266 of file while defining macro.
15268 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15270 * eqn/box.h: Fix declaration of set_gsize.
15271 * eqn/box.c (set_gsize): Make argument const char *.
15272 (gsize): Declare as char *.
15273 * eqn/main.c (main): Don't convert gsize to int.
15274 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15276 * Version 1.02 released.
15278 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15280 * macros/tmac.andoc: New file.
15281 * macros/Makefile: Install tmac.andoc.
15283 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15284 operator new and delete on OP_DELETE_BROKEN not being defined.
15285 * Makefile: Mention OP_DELETE_BROKEN.
15287 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15289 * Makefile (bindist): Pass SUBFLAGS.
15291 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15293 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15295 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15298 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15300 * ps/ps.h, ps/psrm.c: Make comment_table and
15301 header_comment_table local to resource_manager::process_file.
15303 * groff.sh: With -TXps pass -printCommand option to gxditview.
15305 * groff.c (possible_command::print): Implement using
15306 append_arg_to_string.
15308 * xditview: Merge in new implementation with own ChangeLog.
15310 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15312 * groff.c (main): Implement PRINT_OPTION.
15313 (append_arg_to_string): New command.
15314 (device_table): Set PRINT_OPTION flag for Xps.
15316 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15318 * troff/groff.h: Rename to troff.h.
15320 * pic/lex.c (lookup_keyword, docmp): New functions.
15321 (get_token): Use new lookup_keyword.
15322 Don't include key.h.
15323 * pic/key.[ch], pic/pic.gperf: Deleted.
15324 * pic/Makefile: Remove gperf stuff.
15326 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15328 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15330 * troff/Makefile, troff/node.c: Move definition of
15331 STORE_WIDTH into node.c.
15333 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15335 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15337 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15338 dvi/devdvi/texb.map: Add lq and rq.
15339 dvi/devdvi: Regenerate fonts.
15340 * ps/devps/textmap: Add lq and rq.
15341 * ps/devps: Regenerate fonts.
15342 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15343 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15345 * pic/object.c (position_rectangle): When checking radius
15346 cope with possiblity that width or height is negative.
15347 (box_object::box_object): Have separate xrad and yrad with
15348 signs matching signs of dim components.
15349 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15350 (box_object::print): With rounded boxes use absolute values
15351 for dim and rad arguments.
15353 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15356 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15358 * various files: Add explicit destructors to keep Saber CC +d
15361 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15363 * eqn/box.c (box::top_level): Restore fonts correctly after
15364 font changes in line containing inline equation. Also
15365 restore previous font as well as current font.
15366 * eqn/pbox.h: Define necessary string and register names.
15368 * troff/input.c (token::next): Case 'R' calls do_register.
15369 (do_register): New function.
15371 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15373 * groff.c, groff.sh: Support Xps device. Allow each device
15374 to have a pseudo_name and a real_name.
15376 * groff.c (run_commands): Don't print `Broken pipe' messages.
15378 * ps/pfbtops.c: New file.
15379 * ps/Makefile: Add pfbtops.
15381 * troff/number.c (parse_term): Improved error message.
15383 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15385 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15387 * Makefile: Integrate refer.
15388 * refer: New directory.
15389 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15390 man/lkbib.man: New files.
15391 * man/Makefile: Support refer man pages.
15393 * lib/lib.h: Declare is_prime.
15394 * lib/prime.c: New file.
15396 * troff/input.c (macro_source): New function.
15397 (init_input_requests): Bind "mso" to macro_source.
15399 * troff/env.c (environment::possibly_break_line): Maintain
15400 pointer to pointer to node to be split in ndp so as to avoid
15401 using address of freed node.
15403 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15404 pointer to first node to be hyphenated in startp so as to
15405 avoid using address of freed node.
15407 * troff/env.c (class trie, class hyphen_trie): Make the
15408 elements of the trie be of type char not unsigned char.
15409 Declare arguments to be const char* instead of unsigned char *.
15411 * troff/env.c (hyphenate): Initialize hbuf[0].
15413 * troff/input.c (set_string): Declare p to be char * and cast
15414 *p to unsigned char when necessary.
15416 * troff/input.c (do_define_macro): Declare s to be const
15417 char*. Cast element to unisgned char when necessary, Declare
15418 d to be an int. Handle EOF better.
15420 * troff/Makefile, troff/input.c: Different scheme for passing
15421 definitions of MACROPATH, HYPHENFILE and DEVICE.
15423 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15425 * tty/devascii/R.proto: Delete entry for em.
15426 * tty/devlatin1/R.proto: Likewise.
15428 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15430 * troff/input.c (translate): Stop when we get a space. Treat eof
15433 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15435 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15437 * tbl/main.c (process_format): A font name following a `f'
15438 modifier that starts with a digit can be only one character long.
15439 Also deal with EOF on the second character of the font name.
15441 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15443 * troff/input.c (token::next): Turn \~ into an
15444 unbreakable_space_node.
15445 * troff/node.c (unbreakable_space_node): New class.
15446 * troff/node.h: Declare it.
15448 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15450 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15451 it's >= 0, before outputting it as a single byte.
15453 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15455 * lib/font.c: Make font_char_metric::code an int.
15456 (font::get_code): Change return type to int.
15457 (font::load): Allow code to be arbitrary integer.
15458 * lib/font.h (font::get_code): Change return type to int.
15459 (font::number_to_index): Change argument type to int.
15460 * troff/input.c (token::next): In case 'N', allow any value.
15461 Store value in token::val.
15462 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15463 (token::get_char, token::add_to_node_list, token::process): Get
15465 (charinfo::set_number): Change argument to int.
15466 (charinfo::get_number): Require that NUMBERED flag be set.
15467 (get_charinfo_by_number): Store numbered characters not between 0
15468 and 255 in a dictionary.
15469 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15471 (charinfo::number): Change type to int.
15472 (charinfo::set_number): Change type of set_number to int.
15473 * troff/node.c (troff_output_file::put_char_width,
15474 troff_output_file::put_char): Test whether character is numbered
15475 using charinfo::numbered().
15476 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15478 * lib/nametoindex.c: New implementation to cope with arbitrary
15481 * troff/input.c (token::operator==): Test val for
15482 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15485 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15486 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15488 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15490 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15493 * all Makefiles: rm targets of cp and >.
15495 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15498 * eqn/lex.c (def_table): Add dollar.
15500 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15502 * troff/input.c (do_width): Push back newline before closing delim
15505 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15507 * groff.c (possible_command::prepend_arg): New function.
15508 (main): Prepend device -m option.
15509 * groff.sh: Put device -m options before command-line options.
15511 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15513 * macros/tmac.an (IP): Quote argument to TP.
15515 * ps/ps.c (main): New option -b, which sets...
15516 (broken_flags): New variable.
15517 (ps_printer::~ps_printer): Incorporate the setup section in the
15518 prolog if (broken_flags & NO_SETUP_SECTION).
15519 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15520 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15521 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15522 ps_printer::print_needed_font_comment,
15523 ps_printer::print_supplied_font_comment,
15524 ps_printer::print_include_font_comments,
15525 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15526 ps_printer::read_download_file, read_document_fonts, add_font,
15527 skip_line, parse_fonts_arg, document_font::document_font,
15528 document_font::~document_font, document_font::download,
15529 ps_output::include_file): Deleted.
15530 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15531 rather than %!PS-Adobe-2.0. Make calls to
15532 resource_manager::need_font for each font that we used. Replace
15533 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15534 print_supplied_font_comment, print_needed_font_comment by call to
15535 resource_manager::print_header_comments. Output %%Orientation
15536 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15537 Don't output the prolog directly. Instead call
15538 resource_manager::output_prolog. Only define #copies when ncopies
15539 > 1. Delete calls to print_include_font_comments and
15540 download_fonts. Add call to resource_manager::document_setup.
15541 (ps_printer::do_file): Call resource_manager::import_file instead
15542 of including it ourselves.
15543 (ps_printer::do_import): Likewise. Also don't call
15544 merge_import_fonts. Push userdict on the dictionary stack before
15545 and pop it afterwards.
15546 Move declaration of ps_output into ps.h.
15547 * ps/psrm.c: New file implementing resource_manager class.
15548 * ps/ps.h: New file declaring ps_output and resource_manager
15550 * ps/devps/zapfdr.ps:
15551 * ps/devps/symbolsl.ps:
15552 * ps/devps/prologue: Use 3.0 conventions.
15553 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15554 Add default definition of BROKEN_SPOOLER_FLAGS.
15555 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15556 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15558 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15560 * etc/grog.pl: New file.
15561 * Makefile (GROG): New variable.
15562 Add GROG to SUBFLAGS.
15563 * etc/Makefile (GROG): New variable.
15564 (install.nobin): Install $(GROG) rather than grog.sh.
15566 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15568 * eqn/special.c (special_box::compute_metrics): Make the input and
15569 output strings the same. Get the new height and depth from the
15570 predefined height and depth registers. Also make subscript kern
15571 and skew available.
15572 (special_box::compute_subscript_kern, special_box::compute_skew):
15575 * eqn/box.c (pointer_box::compute_skew,
15576 simple_box::compute_metrics, box::top_level)
15577 * eqn/text.c (prime_box::compute_metrics,
15578 prime_box::comput_subscript_kern)
15579 * eqn/limit.c (limit_box::compute_metrics):
15580 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15581 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15582 negative numbers in `nr' requests with a leading 0.
15584 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15586 * eqn/special.c: New file.
15587 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15588 Add new rule for simple.
15589 * eqn/lex.c (token_table): Add SPECIAL.
15590 * eqn/box.h: Declare make_special_box.
15591 * eqn/Makefile: Add special.[co].
15593 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15595 * ps/devps/prologue: Possibly set packing to true while defining.
15596 Create grops dictionary here. Initialize local variables before
15597 defining procedures.
15598 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15599 the dictionary stack. Set strokeadjust and overprint to false if
15600 the relevant operators are defined.
15601 (PEND): New procedure.
15602 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15603 prologue. Do everything else in the setup section.
15604 (ps_printer::do_import): Just call PBEGIN and PEND around the
15605 picture. Also push userdict before, and pop it afterwards.
15607 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15609 * troff/node.c (bracket_node::tprint): Brackets were being printed
15612 * macros/tmac.an (SH, SS): Set fill mode.
15614 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15616 * troff/div.c (top_level_diversion::begin_page): Set
15617 high_water_mark to 0.
15619 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15621 * man/mdate.sh: New file.
15622 * man/mdate.c: Deleted.
15623 * man/Makefile: Use mdate.sh instead of mdate.
15626 * eqn/lex.c (do_gsize): Supply missing argument to error message.
15628 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
15630 * man/mdate.c: New file.
15631 * man/*.man: Replace modification date by @MDATE@.
15632 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15633 (mdate): New target.
15635 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15636 Remove illegal input characters.
15638 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
15640 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15642 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
15644 * troff/div.c (begin_page): Change behaviour when
15645 !first_page_begun and !break_flag.
15647 * troff/input.c (do_name_test): Return 0 if argument is empty.
15649 * troff/input.c (read_long_escape_name): Require closing ] to be
15650 at same input level as opening [.
15652 * troff/input.c (read_increment_and_escape_name): New function.
15653 (get_copy, process_input_stack): Use this for \n.
15655 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
15657 * troff/div.c (top_level_diversion::begin_page): Ignore the
15658 current value of page_number if !first_page_begun.
15660 * groff.c (main): Fix declaration of buf.
15662 * troff/input.c (do_name_test): New function.
15663 (token::next): Implement \A.
15664 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15665 (token::description, token::add_to_node_list, token::process):
15666 Handle TOKEN_ESCAPE.
15667 * troff/token.h: New token TOKEN_ESCAPE.
15669 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
15671 * pic/main.c (do_picture): Allow space before and after filename
15672 following `<'. Check that the filename is not empty.
15674 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
15676 * Version 1.01 released.
15678 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15680 * dvi/tmac.dvi: ftr HR to H.
15682 * macros/tmac.e: Round up computation of $r.
15684 * xditview/tmac.X: Don't give up completely in compatibility mode.
15685 Use \n(.s instead of \n[.s].
15687 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15688 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15689 Add u to factors inside \s[...]. Rename frac to dvi-frac.
15690 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15691 short names in the char definitions.
15693 * ps/tmac.ps: Don't give up completely in compatibility mode.
15694 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15695 quote in front of \n(.s. Add u to factors inside \s[...].
15697 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
15699 * tty/tmac.tty: Call the nroff request.
15701 * macros/tmac.e ((x, )x): Better definitions that work properly
15703 (@0, @1): Helper macros for (x.
15705 * macros/tmac.e ($s, hl): Use \l rather than \D.
15707 * tty/tmac.tty: Make it work better in compatibility mode.
15708 (pchar): Rename to tty-char.
15710 * macros/tmac.e (@E): New macro.
15711 (r, i, b, rb, bi): Use @E.
15713 * macros/tmac.e (@F): Don't use (;...) syntax.
15715 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
15716 it was modified for groff.
15718 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15720 * macros/tmac.e (<., .>): Removed.
15721 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15723 * macros/tmac.e: Remove check that groff is being used.
15725 * macros/tmac.e (@C): Change families only if using groff; turn
15726 compatibility mode off while changing familes. Save compatibility
15727 mode before changing families and restore it afterwards.
15729 * macros/tmac.e (@h): Remove test for offset + line length.
15731 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
15732 (lo, th, ac): Define to call @S instead of using als.
15734 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15735 the ratio of the vertical spacing to the point size in units
15736 expressed as a percentage. Use these instead of $10r and $10R,
15737 Delete $10r and $10R.
15739 * lib/font.c (font::load): In default computation of space_width,
15740 divide by sizescale. Use scale_round.
15742 * macros/tmac.an (TP): Don't call `nf'.
15743 (an-do-tag): Don't call `fi'.
15745 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
15747 * troff/input.c (process_input_stack): Handle the case where
15748 spaces at the beginning of an input line are followed by a
15751 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
15753 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15754 * groff.sh: Use pic -x with the dvi device.
15756 * dvi/devdvi/FontMakefile (H): Don't use -s.
15758 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15759 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15760 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15763 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
15765 * ps/psfig.diff: New file.
15766 * ps/tmac.psfig: New file.
15768 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
15770 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15771 (]-): Don't call ref*do-tl.
15773 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15775 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15776 (fn@do-FS): Rename to fn*do-FS.
15778 * troff/input.c (transparent_translate): New function.
15779 (process_input_stack): Apply transparent_translate before calling
15780 diversion::transparent_output(unsigned char).
15782 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
15784 * troff/input.c (do_define_macro): Define the macro before calling
15787 * xditview/Makefile: Add DEVICES variable. Change install target
15790 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
15792 * groff.c (run_commands): Handle the possibility that there are
15793 child processes other than those forked by us.
15795 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
15797 * lib/string.c (string::append): New function.
15798 * lib/stringclass.h: Declare it.
15800 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
15802 * eqn/main.c (main): New option -N which sets
15803 no_newline_in_delim_flag.
15804 (do_file): If no_newline_in_delim_flag is set don't allow newlines
15806 * groff.c (main): Pass -N on to eqn.
15807 (help, synopsis): Mention -N.
15808 * groff.sh: Implement -N.
15810 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
15812 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15813 (]-): Call ref*do-tl if ref*need-tl is non-zero.
15814 (XP): Allow as initializer.
15816 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
15818 * troff/env.c (environment::wrap_up_field): If field_spaces are
15819 non-zero and we have a current_tab, subtract padding from
15820 tab_distance. If this makes tab_distance <= 0, use the next tab
15821 stop instead. If there isn't any next tab or it's a left tab,
15822 wrap up the current tab.
15823 (environment::start_field): Initialize tab_precedes_field.
15824 (environment::wrap_up_tab): If there's a current field, update
15825 pre_field_width, field_distance and tab_precedes_field.
15826 * troff/env.h (environment::tab_precedes_field): New member.
15828 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
15830 * ps/ps.c (ps_printer::do_file): New function.
15831 (ps_printer::special): Bind to `file' special.
15832 (ps_printer::do_exec): Set ndefined_styles to 0.
15834 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
15836 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15837 Avoid stripping first character from the start of unrecognized
15838 escapes. Use lex_error instead of error to report errors.
15839 * eqn/lex.c (get_token): Rework handling of escapes.
15840 (lex_error): Move declaration into...
15843 * xditview/xditview.c (main): Make -page option work.
15845 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15847 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
15849 * macros/tmac.s (B2): Correct size of box.
15851 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
15853 * macros/tmac.s (B2): Postpone drawing the box until in the
15854 top-level diversion.
15856 * tty/tmac.tty: Add font translations for C, CR, CW.
15858 * groff.c (synopsis, help): Document -i.
15859 * groff.sh: Implement -i.
15861 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15862 Simplify the construction of SN.
15864 * troff/number.c (parse_term): Give `|' a higher precedence.
15865 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15868 * macros/tmac.s (B2): Use par@finish instead of par@reset.
15870 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
15872 * lib/string.c (string::move): New function.
15873 * lib/stringclass.h: Declare it.
15875 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
15877 * troff/env.c (distribute_space): Add optional argument
15879 (environment::wrap_up_field): Call distribute_space with
15880 `force_forward' argument of 1.
15882 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
15884 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15885 Inline it. Move reallocation into...
15886 (string::grow1): New function.
15887 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15888 dependencies to include library header files.
15889 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15891 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
15893 * macros/tmac.s (@NH): Use the same number registers than -ms does
15894 for the heading level counters. Use the same string that -ms does
15895 for the number for this heading.
15897 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
15899 * lib/new.c (operator new): Cast result of malloc to char *.
15901 * troff/input.c (spring_trap, lookup_request): Add assert that nm
15904 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
15906 * groff.c (main): Support -i.
15908 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
15910 * pic/pic.h: Include <osfcn.h>.
15912 * ps/ps.c: Add declaration of mktemp.
15914 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15915 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15916 argument as union wait *.
15917 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15918 argument to union wait *.
15920 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
15922 * tty/tmac.tty: Add definition of \(co.
15924 * pic/object.c (make_arc): Only increase radius when radius
15925 strictly less than d.
15926 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15929 * troff/env.c (environment::environment(symbol),
15930 environment::environment(const environment *)): Initialize
15933 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
15935 * tbl/main.c (main): Add exit(0).
15937 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15939 * pic/main.c (main):
15940 * eqn/main.c (main):
15941 * tbl/main.c (main):
15942 * etc/soelim.c (main):
15943 * driver/printer.c (printer::~printer):
15944 * troff/node.c (real_output_file::~real_output_file,
15945 real_output_file::flush): Check for errors on stdout.
15947 * most files: Add 1991 to copyright notice.
15949 * macros/tmac.s: Don't test \n(.x and \n(.y.
15951 * troff/input.c (token::next): Rename `escape_char' label to
15952 `handle_escape_char' and `normal_char' label to
15953 `handle_normal_char'.
15955 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
15957 * groff.c (main, synopsis, help): Support -a option.
15958 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
15959 to trflags while parsing options.
15961 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
15963 * troff/number.c (parse_term): With `m', `M' and `n' scale
15964 indicators, convert scale factor to hunits before scaling.
15966 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
15968 * lib/font.c (scale_round): Better test for overflow when n is
15971 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
15973 * tbl/main.c (process_format): Add second argument of type
15974 options*. Change callers. Allow opt->tab_char as well as '\t'
15975 between format items.
15977 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
15979 * macros/tmac.an (PD): With no arguments, make sure register PD is
15981 (TH): Call PD with no argument, instead of setting register PD
15984 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
15986 * Version 1.00 released.
15988 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
15990 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15992 * dvi/devdvi/DESC: Mount CW instead of CR.
15994 * dvi/tmac.dvi: Add definition of \(tm.
15996 * dvi/devdvi/texsy.map: Add lh, and rh.
15997 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15998 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16000 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16001 * dvi/devdvi/Makefile: Install H.
16002 * dvi/devdvi/H: New file.
16004 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16006 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16009 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16011 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16013 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16015 * macros/tmac.s (@EN): Handle the case where the equation is empty
16016 but the label is not.
16018 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16020 * troff/groff.h: New warning category WARN_SPACE.
16021 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16022 WARN_SPACE to warning_table.
16023 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16024 is longer than two characters and is not defined, but the first
16025 two characters do make a defined name.
16027 * PROBLEMS: New file.
16029 * CHANGES: New file.
16030 * README-0.6, README-1.00: Deleted.
16032 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16033 * xditview/devX75/Makefile: Make devX75-12.
16034 * xditview/devX100/Makefile: Make devX100-12.
16036 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16037 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16039 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16041 * README-0.7: Rename to README-1.00.
16043 * macros/tmac.pic: New file.
16044 * macros/Makefile (install.nobin): Install tmac.pic.
16046 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16048 * troff/env.c (hyphen_word): Correct the test for whether the
16049 token is a hyphen. Reset npos to 0.
16051 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16053 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16055 * macros/tmac.s (ds*common-end): Call par*reset.
16057 (par@reset-indent): Deleted.
16059 * macros/tmac.s (@IP): Divert the label.
16061 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16063 * xditview/draw.c (setGC): Use a line width of .1m rather than
16064 .04m by default; round rather than truncate value.
16066 * tbl/table.c (class empty_entry): New class.
16067 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16068 (table::add_entry): Represent empty entries by objects of type
16070 (table_entry::line_type): Return -1.
16071 (table::determine_row_type): Ignore entries with line_type 0.
16072 Treat type -1 as non-lines.
16074 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16076 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16077 macros/tmac.s: Rename \(-d to \(Sd.
16079 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16081 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16082 * xditview/libXdvi/DviChar.c: Likewise.
16083 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16085 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16087 * troff/div.c (top_level_diversion::begin_page): Call
16088 init_output() if the_output is 0.
16090 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16092 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16094 (get_copy): Turn \E into ESCAPE_E.
16095 (token::process, asciify): Handle ESCAPE_E.
16097 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16099 (DS): Implement `.DS R'.
16101 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16103 * macros/tmac.s (FS): New macro.
16105 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16107 * macros/tmac.s (cov*tl-init): Remove after first execution
16108 instead of aliasing to @nop. Call top of page macro explicitly
16109 instead of setting trap; call @init first. Set pg@top as top of
16111 (cov*auto-init): Deleted. Set cov*tl-init instead of
16112 cov*auto-init as top of page trap.
16113 (TL, LP): Do a break instead of calling cov*tl-init.
16114 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16115 @FE; in this case also give a warning and always start another
16116 page. No need to set pg@top here.
16117 (cov*tl-init): Rename to cov*first-page-init.
16119 * macros/tmac.s (RP): Do `.pn 0'.
16120 (cov*tl-init): With RP format don't do `.pn 0'.
16122 * macros/tmac.s (pg@cs-top): Set no space mode.
16124 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16125 (cov*ab-init): Alias TL, AU and AI to these.
16127 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16129 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16130 (@EN): Do nothing unless \n[dl] is > 0.
16132 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16134 * pic/object.c (ellipse_object::radius): New function.
16136 * VERSION: Change version to 0.7.
16138 * tbl/table.c (block_entry::do_divert): Declare return type as
16140 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16142 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16144 * troff/column.c: New file.
16145 * troff/Makefile: Corresponding changes.
16147 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16150 * troff/div.c (top_level_diversion::space): If the space causes
16151 the first-page transition and springs a trap, truncate the space
16154 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16156 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16159 * pic/troff.c (troff_output::line_thickness,
16160 troff_output::set_fill): Do a horizontal motion to compensate for
16161 the width of the \D escape sequence.
16163 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16165 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16168 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16171 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16172 Supply empty definition.
16173 (text_entry::simple_print, simple_text_entry::simple_print):
16174 Delete declarations.
16175 (table::add_entry): Represent empty entries by objects of type
16178 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16180 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16182 * tbl/table.c (left_text_entry::add_tab): New function.
16184 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16185 initialize like LP.
16187 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16189 * troff/env.c (environment::start_field): Give an error message if
16190 there is no next tab.
16192 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16194 * troff/env.c (hyphenate): Skip initial elements with zero
16197 * macros/tmac.s (par@init): Keep VS in points rather than units.
16199 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16201 * pic/main.c (main): Implement `-c' option.
16202 * pic/output.h: Declare make_tpic_output().
16203 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16205 (tpic_output): New class.
16206 (tpic_output::tpic_output, tpic_output::set_pen_size,
16207 tpic_output::command, make_tpic_output): New functions.
16209 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16211 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16212 if they're not already defined.
16213 * tbl/table.c (init_output): Don't test \n(.g.
16215 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16216 `d', `r' and `c' conditions even in compatibility mode.
16218 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16220 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16223 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16225 * troff/env.h (environment::prev_line_interrupted): New member.
16226 (environment::get_prev_line_interrupted): New function.
16227 * troff/env.c (environment::newline): Set prev_line_interrupted.
16228 (environment::environment(const environment *),
16229 environment::environment(symbol)): Initialize
16230 prev_line_interrupted.
16231 * troff/input.c (process_input_stack): Don't give special
16232 treatment to space and newline at the beginning of the line if the
16233 previous line was interrupted.
16235 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16237 * eqn/eqn.y: Disallow PRIME by itself.
16238 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16240 (def_table): Remove definition of '. Define prime to be `.
16242 * eqn/eqn.y: Split off part of rule `script' into a new rule
16245 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16247 * macros/tmac.s ({, }): New string aliases.
16249 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16251 * README-0.7: New file.
16253 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16255 * macros/tmac.s: New file.
16256 * man/groff_ms.man: New file.
16257 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16258 * Makefile.bd: Similarily.
16259 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16260 definition of TMAC_S.
16261 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16262 * macros/TODO: New file.
16264 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16266 * troff/env.c (right_justify): New function.
16267 (init_env_requests): Bind this to request "rj".
16268 (center_lines): Set right_justify_lines to 0. If we get a bad
16269 integer, center 1 line.
16270 (environment::environment(symbol), environment::environment(const
16271 environment *)): Initialize right_justify_lines.
16272 (environment::get_right_justify_lines): New function.
16273 (init_env_requests): Bind this to number_register ".rj".
16275 * troff/env.c (environment::choose_breakpoint): Implement
16276 hyphenation_margin and hyphenation_space.
16277 (environment::get_hyphenation_space,
16278 environment::get_hyphenation_margin): New functions.
16279 (init_env_requests): Bind these to .hys and .hym.
16280 (hyphenation_space_request, hyphenation_margin_request): New
16282 (init_env_requests): Bind these to hys and hym.
16283 (environment::environment(symbol), environment::environment(const
16284 environment *)): Initialize hyphenation_margin and
16286 * troff/env.h: Corresponding changes to class environment.
16288 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16290 * troff/div.c (blank_line): Always do a break.
16292 * eqn/box.c (do_text): Turn off escapes while appending text to
16295 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16297 * troff/input.c (while_break_request, while_continue_request): New
16299 (init_input_requests): Bind these to "break" and "continue".
16300 (while_depth, while_break_flag): New variables.
16301 (while_request): Update while_depth. Break out of loop if
16302 while_break_flag is set.
16304 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16306 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16309 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16311 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16313 * stringify: New file.
16314 * Makefile (groff.o): Use stringify.
16316 * xditview/tmac.X: Remove definition of \(rn.
16317 * xditview/libXdvi/DviChar.c: Remove radicalex from
16320 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16322 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16323 (alphabetic_block_entry::alphabetic_block_entry,
16324 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16326 (block_entry::divert): Split off body into ...
16327 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16328 from the line length; also update the span width to dl+2n, and the
16329 alphabetic span width to dl.
16331 * driver/input.c (do_file): While reading argument to D command,
16332 when expanding buffer, multiply szp by sizeof(int) rather than 2
16333 in the argument to memcpy.
16335 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16336 width of alphabetic columns.
16338 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16340 * troff/node.c (lookup_family): Supply second argument to lookup.
16342 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16343 search, return immediately if v is 0.
16345 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16346 (troff_output::start_picture): Set this reg.
16347 (troff_output::end_picture): Remove this reg
16348 * eqn/box.c (box::extra_space): Don't produce `\x's if
16349 EQN_NO_EXTRA_SPACE_REG is defined.
16351 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16352 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16355 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16357 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16360 * troff/div.c (top_level_diversion::top_level_diversion):
16361 Initialize page_number to 0.
16363 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16365 * groff/troff (environment::environment(const environment *)):
16366 Initialize name to e->name, rather than "anonymous".
16368 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16370 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16371 requested_page. Split middle part into ...
16372 (FindPage): New function.
16373 (SetValues): If we don't yet know the last page, and the requested
16374 page is greater than the current page, call FindPage.
16375 Update the font_map_string before doing this.
16377 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16378 Translate \(lh and \(rh into left and right double arrows.
16380 * troff/node.c (class hyphen_inhibitor_node): New class.
16381 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16382 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16383 hyphen_inhibitor_node::type,
16384 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16385 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16386 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16389 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16391 * troff/node.h (dummy_node::get_hyphenation_type,
16392 transparent_dummy_node::get_hyphenation_type): Declare them.
16393 * troff/node.c: (dummy_node::get_hyphenation_type,
16394 transparent_dummy_node::get_hyphenation_type): New functions.
16396 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16398 * xditview/libXdvi/draw.c: If M_PI not defined after including
16399 math.h, then define it.
16401 * xditview/Makefile: Add definition of AR. Pass it to the submake
16403 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16405 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16407 * troff/dictionary.h (object_dictionary::alias): Declare return
16409 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16410 if the old name was defined.
16411 * troff/input.c (alias_macro): Give a warning if the old name was
16413 * troff/reg.c (alias_reg): Likewise.
16415 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16417 * troff/input.c (token::next): Delete implementation of \R.
16419 * macros/Makefile: Strip comments from tmac.e while installing it.
16421 * troff/input.c: New variable `nroff_mode'.
16422 (troff_request, nroff_request): New functions.
16423 (init_input_requests): Bind `troff' and `nroff' to troff_request
16425 (do_if_request): Compute results of t and n conditions from
16428 * text/text.c (split_text): Fix typo in >=.
16430 * eqn/lex.c: Add definition of `==' to def_table.
16432 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16434 * pic/tex.c (tex_output::start_picture): Change the definitions of
16435 \graph and \graphtemp so that they work properly with Plain TeX.
16437 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16438 argument to `ar' is not less than the first.
16440 * pic/pic.y: Allow a comma between elements of the variable list
16441 in the argument to `reset'.
16443 * pic/object.c (arc_object::arc_object): Fix computation of
16446 * eqn/main.c (main): Add exit(0).
16448 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16450 * troff/div.c (begin_page): Test no_space_mode after doing the
16451 break, but still push the page ejector cookie before doing the
16452 break. Also set the next page number after doing the break.
16454 * xditview/xditview.c (NewFile): Don't set the title and icon name
16455 if this is the first file and its name is `-'.
16456 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16457 the X75 and X100 devices.
16458 (main): If a device has the XT_OPTION flag set and there's exactly
16459 one file argument, pass the driver -xrm and -title options to set
16460 the icon name and window title to the name of the file.
16462 * troff/env.c (environment_switch): If there was an argument but
16463 it wasn't a valid number or name, then pop an environment but
16464 don't give an error message on underflow.
16466 * troff/number.c (start_number): Correct spelling in error message.
16468 * troff/input.c (token::delimiter): Don't print an error message
16471 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16472 ParseDrawFunction if dw->display_enable is true.
16474 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16476 * pic/pic.y: Parse text positioning like normal attributes, so as
16477 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16478 positioning attribute.
16480 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16482 * tbl/main.c (process_data): When in state START while reading a
16483 text block, don't change to state MIDDLE if c is a newline.
16485 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16487 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16488 so as to avoid shadowing parameter.
16490 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16492 * tbl/table.c (trim_space): Deleted.
16493 (table::add_entry): Don't call trim_space.
16495 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16497 * VERSION: Change version to 0.6.
16499 * troff/number.c (parse_expr): Make == work.
16501 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16503 * man/grog.man: New file.
16504 * man/Makefile: Add grog.n to MAN1PAGES.
16505 * etc/grog.sh: New file.
16506 * etc/Makefile: Install grog.sh as grog.
16508 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16510 * troff/input.c (token::next): Implement \E.
16512 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16514 * xditview/tmac.X: Change font translations to match tmac.ps.
16516 * troff/input.c (non_empty_name_warning): Don't give a warning if
16517 `\{' terminates the name.
16519 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16521 * ps/devps/symbol.diff: New file.
16522 * ps/devps/FontMakefile: Mention symbol.diff.
16524 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16526 * troff/node.c (font_position): Use get_long_name to read the
16529 * troff/env.c (environment_switch): If we get a number that's < 0
16530 or >= NENVIRONMENTS, treat it like a name.
16531 Change NENVIRONMENTS to 10.
16533 * troff/groff.h: Remove definition of FONTS_MAX.
16534 * troff/node.h (class font_family): Make map a pointer instead of
16535 an array. Add a map_size member. Make it a class. Make nm const
16536 and public. Make invalidate_fontno a friend.
16537 * troff/node.c: Define font_table_size. Make font_info a pointer
16538 rather than an array.
16539 (class troff_output_file): Allocate font_position dynamically. Add
16540 nfont_positions member.
16541 (troff_output_file::set_font): Grow font_position if necessary.
16542 (troff_output_file::~troff_output_file): Delete font_position.
16543 (troff_output_file::troff_output_file): Allocate font_position.
16544 (grow_font_table): New function.
16545 (troff_output_file::really_begin_page,
16546 troff_output_file:really_copy_page): Use nfont_positions rather
16548 (mount_font_no_translate, mount_style): Call grow_font_table if
16550 (font_family::font_family): Allocate map.
16551 (font_family::make_definite): Grow map if necessary. Use
16552 font_table_size instead of FONTS_MAX.
16553 (font_family::~font_family): New function.
16554 (invalidate_fontno): Use font_family::map_size.
16555 (get_fontno, env_space_width, env_half_narrow_space_width,
16556 env_narrow_space_width, symbol_fotno, is_good_fontno,
16557 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16559 (next_available_font_position): Never return 0.
16561 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16563 * ps/tmac.ps: Add font translations for compatibility with dpost.
16565 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16567 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16568 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16569 Move definitions baseline_sep, shift_down, column_sep,
16570 matrix_side_sep into...
16571 * eqn/box.c: Add them to param_table.
16572 * eqn/pbox.h: Add declarations to pbox.h.
16574 * troff/input.c (set_string): Cast value to unsigned char *.
16576 * troff/token.h (process_input_stack): Declare it static before
16577 declaring it a friend.
16579 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16581 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16583 * dvi/devdvi/EX: Regenerate.
16585 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16588 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16590 * eqn/lex.c: In defaults_table, make definition of `dot' call
16591 `dot_def'. Don't explicitly make it roman. Similarily for other
16594 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16596 (for_input::get, for_input::peek): Use this.
16597 (do_for): Add by_is_multiplicative argument.
16598 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16599 Change semantic value of optional_by to be a double plus a flag
16600 saying whethet the by clause is multiplicative.
16602 * eqn/lex.c (get_delimited_text): Remember location of start of
16603 definition. Improve error handling when EOF is encountered.
16605 * lib/font.h: Rename handle_x_command to
16606 handle_unknown_font_command.
16607 * lib/font.c (font::load): Call handle_unknown_font_command for
16608 any unknown command in the font description file. Don't call
16609 handle_x_command. Include the name of the command in the argv.
16610 Improve message for unknown command after kernpairs or charset
16612 * ps/ps.c (ps_font::handle_x_command): Rename to
16613 handle_unknown_font_command. Remove message about `x download'
16614 command. Give error message for wrong number of arguments.
16615 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16616 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16617 handle_unknown_font_command. Give an error message for wrong
16618 number of arguments. Rename design_size to designsize.
16619 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16620 checksum', `designsize' instead of `design_size'.
16622 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16624 * eqn/*.[chy]: Change underaccent to uaccent.
16626 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
16627 give it the same precedence as ACCENT.
16628 * eqn/other.c (make_underaccent_box): New function.
16629 * eqn/box.h: Declare it.
16630 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16633 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
16635 * pic/pic.y (reset_all): New function. Called in rule for RESET.
16636 (parse_init): Call reset_all.
16637 (define_variable): When defining scale reset only those
16638 pre-defined variables that are scaled.
16639 (defaults_table): Add `scale' as non-scaled value.
16641 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16642 together with the text; allow any number of positioning words;
16643 allow center as a positioning word.
16645 * pic/object.c (output::compute_scale): Get picture maximum height
16646 and width from variables called maxpswid and maxpsht.
16647 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16649 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
16651 * pic/object.c (object_spec::make_text): Multiply textht by number
16654 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16656 (do_sprintf): New function.
16657 (pic.gperf): Add sprintf token.
16658 (text, sprintf): New rules.
16660 * pic/pic.y: `rand()' with no arguments returns a random number
16661 in the range [0,1).
16663 * pic/pic.y: Allow a bare expression to be an attribute: change
16664 precedences to support this. Change optional_ordinal rule to
16665 optional_ordinal_last to avoid reduce/reduce conflict.
16666 * pic/object.c (object_spec::object_spec): Initialize direction.
16668 * pic/pic.y: Implement ^ operator meaning exponentiation.
16670 * troff/node.h: Add default argument to mount_font.
16671 * troff/node.c (font_position): Read an optional third argument
16672 giving the external_name.
16673 (mount_font): Add optional argument giving the external_name.
16674 (mount_font_not_translate): Have additional argument giving
16675 external name. Use this name to load the font. Pass both names
16676 to font_info::font_info.
16677 (font_info::font_info): Have additional argument giving
16679 (class tfont): New member external_name.
16680 (font_info::get_tfont): Use external name to construct tfont_spec.
16682 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
16684 * eqn/lex.c (init_table): Add argument giving device. Define
16685 name of device to be "1".
16686 (do_ifdef): Counts as true if the argument has been defined with
16688 * eqn/main.c (main): Call init_table with device argument. Make
16689 device local to main.
16690 * eqn/eqn.h: Change declaration of init_table. Remove declaration
16693 * pic/lex.c (get_delimited): Allow text to be delimited by
16694 matching {}s. Don't recognize ending delimiter within a string.
16696 * troff/input.c (get_delim_name): New function.
16697 (token::next): Implement \C.
16699 * lib/font.c (font::load): Grok ---. Add an alias for each
16700 character based on its code.
16701 (font::get_code_width): Deleted.
16702 * lib/font.h (class font): Declare font::number_to_index().
16703 Remove declaration of font::get_code_width.
16704 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16705 to indices of named characters.
16706 (font::number_to_index): New function.
16707 * troff/input.c (font::number_to_index): New function.
16708 (get_charinfo_by_number, charinfo::get_number,
16709 charinfo::set_number): New functions.
16710 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16711 (token::process, token::description, token::get_char,
16712 token::add_to_node_list, token::operator==): Handle
16713 TOKEN_NUMBERED_CHAR.
16714 * troff/charinfo.h: Declare get_charinfo_by_number,
16715 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
16717 (charinfo::numbered): New function.
16718 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16719 * troff/env.h (class environment): Remove declaration of ...
16720 * troff/env.c (environment::make_numbered_char_node): Deleted.
16721 * troff/node.c (make_numbered_node): Deleted.
16722 (class numbered_glyph_node): Remove.
16723 (troff_output_file::put_char_width, troff_output_file::put_char):
16724 Handle numbered chars.
16725 (troff_output_file::numbered_char): Removed.
16726 (tfont::get_code_width): Removed.
16727 (make_glyph_node): Don't search special fonts for numbered
16729 * troff/node.h: Remove declaration of make_numbered_node.
16730 * driver/input.c (do_file): Handle N command.
16731 * driver/printer.h: Add declaration of ...
16732 * driver/printer.c (printer::set_numbered_char): New function.
16733 * dvi/tfmtodit.c (main): Generate unnamed entries.
16734 * ps/devps/afmtodit: Likewise.
16735 * xditview/xtotroff.c (MapFont): Likewise.
16736 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16738 * tbl/main.c (process_format): If multiple widths are specified
16739 for a column but all the widths are the same, don't give an error
16742 * tbl/table.c (table::do_row): If the current row is all lines and
16743 the stuff doesn't contains a line, mark the top of the row after
16744 printing stuff before the row. If the current row is not all
16745 lines and the stuff doesn't contain a line, don't unnecessarily
16746 mark the top of the row before printing the stuff.
16748 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
16750 * troff/groff.h: Remove MAX_PATH.
16751 * troff/input.c (open_file): Dynamically allocate space for the
16753 (open_mac_file, process_macro_file): Corresponding changes.
16755 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
16757 * troff/node.h (class output_file): Make copy_file pure. Add
16758 vspace method ifdef COLUMN. Add is_printing method.
16759 * troff/node.c: Add class printing_reg. Add class
16760 real_output_file. Derive other output_file classes from
16761 real_output_file; in these classes rename begin_page to
16762 really_begin_page, print_line to really_print_line, copy_file to
16763 really_copy_file, transparent_char to really_transparent_char.
16764 Move output_file::flush to real_output_file. Add printing member
16765 to class output_file.
16766 * troff/div.h: Remove printing member from top_level_diversion.
16767 Add vspace member function to class diversion ifdef COLUMN. Add
16768 some declarations ifdef COLUMN.
16769 * troff/div.c (top_level_diversion::copy_file,
16770 top_level_diversion::transparent_output,
16771 top_level_diversion::output): Don't test printing member before
16773 * troff/input.c: Handle initial variable_space_request ifdef
16775 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16776 but comment it out.
16778 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
16780 * troff/div.c (diversion::need): Make any space forced. If we
16781 sprung a trap, set truncated_space to minus the distance to the
16782 trap and set needed_space to the amount that was needed.
16783 (top_level_diversion::space): A forced space turns no_space_mode
16785 (class constant_vunits_reg): New class.
16786 (init_div_requests): Implement number registers .trunc and .ne
16787 using constant_vunits_reg.
16788 (class truncated_space_reg): Deleted.
16790 * troff/div.h: Don't have a no_space_mode member in diversion.
16791 Instead have it in top_level_diversion.
16792 * troff/div.c (diversion::diversion): Don't initialize
16794 (top_level_diversion::top_level_diversion): Initialize
16796 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16797 (macro_diversion::output): Don't clear no_space_mode.
16799 * troff/input.c (diverted_space_node::reread): Don't call
16800 environment::do_break. In fill mode, act like a blank line.
16801 (diverted_copy_file_node::reread): Don't call
16802 environment::do_break.
16804 * troff/div.c (blank_line): New function.
16805 * troff/div.h: Declare it.
16806 * troff/input.c (process_input_stack): Call it.
16808 * troff/div.c (truncated_space_reg::get_string): New function.
16809 (init_div_requests): Bind to .trunc.
16810 (space_request, top_level_diversion::space,
16811 top_level_diversion::output, macro_diversion::space,
16812 macro_diversion::output): Update truncated_space.
16813 (macro_diversion::output): Redo calculations when trap sprung.
16814 (macro_diversion::output, macro_diversion::space): No need for
16817 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16818 after truncating post line spacing.
16820 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
16822 * ps/devps/prologue (MF, SF): Make them work even if setfont is
16823 defined as a procedure rather than as an operator.
16825 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
16827 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16829 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
16831 * troff/div.c (top_level_diversion::output): Merge
16832 output_file::print_line and output_file::end_of_line member
16834 * troff/div.h (class output_file):
16835 * troff/node.c (troff_output_file::print_line,
16836 troff_output_file::end_of_line, output_file::end_of_line,
16837 ascii_output_file::print_line, suppress_output_file::print_line):
16838 Corresponding changes.
16840 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
16842 * troff/input.c (token::next): Don't give a warning for `\.'.
16844 * troff/env.c (environment::get_center_lines): New function.
16845 (init_env_requests): Bind number register .ce to it.
16846 * troff/env.h: Declare it.
16847 * tbl/table.c (table::init_output): Define reset macro to restore
16848 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
16850 (table::print): If center option not given, then imply center
16851 option if SAVED_CENTER_REG > 0.
16853 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
16855 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16856 Troff.ps from DOWNLOAD.
16858 * troff/Makefile: Change comment in DEFINES to avoid confusing
16861 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16862 code. Don't try to catch errors with stopped.
16863 (check_line_lengths): New function.
16864 * ps/devps/prologue (EXEC): Deleted.
16865 (EBEGIN, EEND): New procedures.
16867 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
16869 * troff/input.c: Include request.h before node.h.
16870 * troff/node.c: Likewise.
16871 * troff/env.c: Likewise.
16872 * troff/div.c: Likewise.
16873 * troff/node.h (class special_node): Store argument as a macro
16874 rather than a char *.
16875 * troff/node.c (special_node::special_node, special_node::copy):
16877 (special_node::~special_node): Deleted.
16878 (special_node::tprint): Deleted.
16879 (special_node::tprint_start, special_node::tprint_end,
16880 special_node::tprint_char): New functions.
16881 (troff_output_file::special): Deleted.
16882 (troff_output_file::start_special, troff_output_file::end_special,
16883 troff_output_file::special_char): New functions.
16884 * troff/input.c (special_node::tprint): New function.
16885 (do_special): Use macro not char *.
16886 (do_transparent_macro): Deleted.
16887 (token::next): Don't call do_transparent_macro.
16889 * troff/input.c (token::next): Add 'Y' case.
16890 (do_transparent_macro): New function.
16891 * troff/node.c (troff_output_file::special): Handle newlines with
16892 argument using new continuation convention.
16893 * driver/input.c (get_string): Cope with continuation convention.
16894 (do_file): Don't call skip_line after calling get_string(1).
16895 * ps/ps.c (ps_printer::special, ps_printer::do_import,
16896 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16898 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16901 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
16903 * troff/input.c (asciify): By default, illegal input characters
16904 should return empty string.
16906 * troff/input.c (copy_file): Handle first page transition like title.
16907 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16909 * troff/input.c (token::next): Improve error message for EOF after
16911 (input_char_description): New function.
16912 (get_char_for_escape_name): Use input_char_description.
16913 (token::next): Warn about unrecognized escape sequences.
16914 (warning_table): Add WARN_ESCAPE.
16915 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16918 * troff/token.h: Remove declaration of process_input_stack.
16920 * troff/input.c: Remove declaration of init_hyphen_requests.
16921 * troff/request.h: Correct spelling in declaration of same.
16923 * troff/input.c (token::next): Check whether escape_char is 0.
16925 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
16927 * groff.c (main, usage, help): Implement -P and -L options.
16928 * groff.sh: Likewise.
16930 * troff/input.c (token::next): Use some gotos to avoid code
16933 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16934 Avoid calling symbol::symbol if name empty.
16936 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
16938 * troff/input.c (init_input_requests): Make \n(.x return the major
16939 version number and \n(.y return the minor version number.
16940 * troff/Makefile: Construct file majorminor.c defining
16941 major_version and minor_version automatically from ../VERSION.
16943 * troff/node.c (class glyph_node): Make operator new and operator
16945 (class ligature_node): Similarily.
16947 * troff/input.c (operator==(const macro &, const macro &)): New
16949 (non_interpreted_node::same): Use this.
16950 (string_iterator::string_iterator): Make macro& argument const.
16952 * troff/input.c (input_iterator::get): New function. Don't make
16953 asciify_macro or class non_interpreted_node friends of class
16955 (non_interpreted_node::interpret): Use input_iterator::get.
16956 (asciify_macro): Likewise.
16958 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16959 ~non_interpreted_node): Deleted.
16960 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16963 * troff/symbol.h: Make all symbol member functions const.
16965 * lib/strtol.c: New file.
16966 * lib/Makefile: Add strtol.c.
16967 * Makefile: Define STRTOL as strtol.o to include strtol in
16970 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
16972 * pic/troff.c (troff_output::simple_circle): Divide by scale.
16974 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
16976 * troff/input.c (do_special): Use input_level.
16978 * troff/token.h (TOKEN_BACKSPACE): New token.
16979 (token::backspace): New function.
16980 * troff/input.c (token::description, token::next, token::process):
16981 Grok TOKEN_BACKSPACE.
16982 (do_special): Turn TOKEN_BACKSPACE back into \b.
16984 * troff/token.h (token::leader): New function.
16985 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16987 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16989 * troff/input.c (do_special): Use token::description in error
16992 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
16994 * troff/input.c (decode_args): Combine quoted and
16995 quote_input_level variables. Make it a for (;;) loop.
16997 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16999 * troff/input.c (read_long_escape_name): The test for whether to
17000 expand buffer was off by 1.
17001 (read_string): Similarily.
17003 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17005 * troff/input.c: Use `const int' rather than `static const int'.
17007 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17008 (macro_diversion::copy_file): New function.
17009 * troff/node.h: New class diverted_copy_file_node.
17010 * troff/node.c: Implement it.
17011 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17012 first page transition by pushing a diverted_copy_file_node.
17013 * troff/input.c (token::next, process_input_stack): Don't handle
17016 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17018 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17019 whether space widths need adjusting.
17021 * troff/charinfo.h: Generalize translated_to_space to
17022 special_translation so as to allow translation to \&.
17023 * troff/input.c (translate): Allow translation to \&.
17024 (charinfo::*): Corresponding changes.
17025 * troff/node.c (make_node, node::add_char): Corresponding changes.
17026 * troff/node.h (dummy_node::dummy_node): Allow optional first
17029 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17030 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17032 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17033 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17034 (token::process): Grok that.
17035 * troff/input.c (copy_file): Handle first page transition like
17036 title by pushing a COPY_FILE_REQUEST cookie.
17037 (token::next, process_input_stack): Grok that.
17038 * troff/node.h (output_file::copy_file): Add x and y arguments.
17040 * troff/div.c (top_level_diversion::copy_file): Supply them.
17041 * troff/node.c (troff_output_file::copy_file): Add x and y
17042 arguments; moveto specified position. Invalidate font_position
17043 array after copying file.
17044 (output_file::copy_file): New function.
17045 (suppressed_output_file::copy_file, ascii_output::copy_file):
17047 * troff/input.c (transparent_file): New function.
17048 (init_input_requests): Bind to "trf".
17049 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17050 (process_input_stack): Likewise.
17052 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17054 * troff/node.c (init_node_requests): New number registers .kern
17055 pointing to global_kern_mode, and .lg pointing to
17056 global_ligature_mode.
17058 * troff/node.c (ligature): Don't change it if we get a bad
17061 * troff/input.c (do_define_string): Don't strip tabs.
17063 * troff/input.c (asciify_macro): Make the string_iterator auto.
17065 * troff/node.c (init_font_requests): Rename to...
17066 (init_node_requests):
17067 * troff/node.h: Change declaration.
17068 * troff/input.c (main): Change call.
17070 * troff/input.c (node::reread, diverted_space_node::reread): New
17072 (process_input_stack): Call reread rather than
17073 get_diverted_space_node.
17074 * troff/node.c (node::get_diverted_space_node,
17075 diverted_space_node::get_diverted_space_node): Removed.
17076 * troff/node.h: Declare reread methods instead of
17077 get_diverted_space_node methods. Make `n' member private.
17078 * troff/input.c: (token::diverted_space): Removed.
17079 * troff/token.h: Removed declaration.
17082 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17084 * eqn/script.c (script_box::compute_metrics): Don't let
17085 SUP_RAISE_FORMAT become negative.
17087 * tbl/table.c (table::do_row): Entries that don't end in the
17088 this row shouldn't make the row non-blank.
17090 * tbl/table.c (table::make_columns_equal): Only set the width of
17091 columns which are marked as equal.
17093 * tbl/main.c (process_data): Before issuing excess data error,
17094 if last character was a newline unget it; then get it again after
17095 the error. Also include the contents of the entry in the message.
17097 * groff.c: New file.
17098 * Makefile: Build groff from groff.c. Make it possible to use
17099 either groff.sh or groff.c as groff.
17100 * Makefile.bd: Similarily.
17102 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17104 * groff.sh: Don't delay expansion of $@ in assignment to files.
17105 Remove occurrences of \".
17107 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17109 * all Makefiles: Simplify and rearrange.
17111 * Makefile: Handle fmod like malloc.
17112 * lib/Makefile: Similarily.
17113 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17115 * Makefile: Rename OPTIMISE to OPTIMIZE.
17117 * groff.sh: Remove assignment to PATH.
17118 * Makefile: Remove SHPATH variable.
17119 * Makefile.bd: Similarily.
17121 * groff.sh: Add -V option to print the pipeline instead of
17124 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17126 * lib/font.c: Split off file searching into ...
17127 * lib/fontfile.c: New file.
17129 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17131 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17133 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17134 Also change misleading comment.
17135 (table::do_vspan): Change similarily misleading comment.
17136 * tbl/main.c (process_data): A format row with an explicit `s'
17137 uses up a data line, even if all the other columns are `_' or `='.
17139 * troff/input.c (token::description): Fix description of
17140 TOKEN_DUMMY and TOKEN_EMPTY.
17142 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17144 * groff.sh: Fix description of -Z in help message.
17146 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17148 * pic/object.c (object_spec::make_object): Allow negative and zero
17150 * pic/pic.y: Give linethick default value of -1.0.
17151 * pic/troff.c (troff_output::troff_output): Initialize
17152 last_line_thickness to BAD_THICKNESS.
17153 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17154 (troff_output::line_thickness): Canonicalize negative thicknesses
17155 to RELATIVE_THICKNESS.
17156 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17157 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17159 (tex_output::start_picture): Set pen_size to -2.0.
17161 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17162 0, then use 0 linewidth.
17163 (ps_printer::ps_printer): Initialize line_thickness to -1.
17165 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17167 * ps/devps/symbolchars: Remove `or'.
17168 * ps/tmac.ps: Implement \(or with .char.
17170 * ps/devps/symbolchars: Move most characters into textmap.
17171 * ps/devps/textmap: Add names for troff bracket characters. Remove
17174 * ps/devps/TSymbol.ps: Removed.
17175 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17176 * ps/tmac.ps: Do with .char what TSymbol did.
17177 * ps/devps/download: Remove TSymbol.
17179 * ps/devps/T: Removed.
17180 * ps/devps/Troff.ps: Removed.
17181 * ps/devps/Troff.afm: Removed.
17182 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17183 * ps/devps/download: Remove Troff.
17184 * ps/devps/FontMakefile: Remove T target.
17185 * ps/devps/DESC-A4: Remove T from font list.
17186 * ps/devps/DESC-letter: Likewise.
17188 * troff/input.c (macro_to_node): Rename to ...
17189 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17190 character's definition while processing it.
17191 * troff/node.c (node::add_char, make_node): Change calls to
17192 macro_to_node accordingly.
17194 * troff/input.c (token::next): Translate \_ to \(ul.
17196 * tty/devascii/R.proto: Add `|'.
17197 * tty/devlatin1/R.proto: Likewise.
17199 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17201 * man: Put the version number in all the man pages.
17203 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17205 * Makefile.bd: New file.
17206 * README.bd: New file.
17208 * VERSION: New file.
17209 * lib/version.c: Removed.
17210 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17213 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17214 environment variable.
17216 * all Makefiles: Split install target into install.bin for
17217 binaries, and install.nobin for everything else.
17218 * Makefile: Add bindist target.
17220 * man/afmtodit.man: New file.
17221 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17222 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17224 * ps/Makefile: Pass BINDIR to make install in devps.
17226 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17227 the space character.
17229 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17231 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17233 * ps/ps.c: Redo font downloading.
17234 * ps/devps/download: New file.
17235 * ps/devps/Makefile: Add download to DEVICEFILES.
17236 * ps/devps/afmtodit: Remove -d option.
17237 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17238 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17239 * ps/devps/zapfdr.ps: Likewise.
17240 * ps/devps/TSymbol.ps: Likewise.
17242 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17244 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17246 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17248 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17249 then strip the first line if it starts with %.
17250 * Makefile: Add a comment about this.
17252 * man/tfmtodit.man: New file.
17253 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17254 * dvi/Makefile: Install tfmtodit in BINDIR.
17256 * dvi/tfmtodit.c (usage): Mention -v option.
17258 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17260 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17261 * troff/node.c (troff_output_file::transparent_char): Don't call
17264 * eqn: Add check_tabs method to most box classes.
17265 * eqn/box.c (box::top_level): Call check_tabs.
17267 * eqn/script.c (script_box::output): Use \Z.
17268 * eqn/limit.c (limit_box::output): Use \Z.
17270 * eqn/box.c (box::top_level): Use itoa.
17272 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17274 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17275 * dvi/devdvi/Makefile: Don't make links to CW.
17277 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17279 * xditview/tmac.X: Likewise.
17281 * troff/node.c: Add font translation feature.
17282 (get_font_translation): New function.
17283 (symbol_fontno): Translate the font name.
17284 (mount_font_no_translate): Rename to mount_font to this.
17285 (mount_font): New function.
17286 (font_family::make_definite): Call mount_font_no_translate instead
17288 (mount_style): Translate the font name.
17289 (font_translate): New function.
17290 (init_font_requests): Bind "ftr" to font_translate.
17292 * ps/devps/prologue (SN): New procedure that rounds a position to
17293 the nearest (pixel + (.25,.25)).
17294 (DL): Use SN to round endpoints.
17296 * lib/version.c: Changed version to 0.5.
17298 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17300 * Makefile: Move definition of PAGE to the very beginning, so that
17301 people are less likely to miss it.
17303 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17305 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17307 * troff/env.c (environment::choose_breakpoint): Make `can't find
17308 breakpoint' error a warning of type WARN_BREAK. Change message to
17309 `can't break line'.
17310 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17312 * troff/input.c: Add WARN_BREAK to warning_table. Include
17313 WARN_BREAK in DEFAULT_WARNING_MASK.
17315 * tty/tmac.tty: Add definition of \(+-.
17317 * groff.sh: Remove `--' option to set command.
17319 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17321 * ps/devps/eqnchar: Better definition of cdot using md.
17322 * dvi/devdvi/eqnchar: Likewise.
17323 * xditview/devX100/eqnchar: Likewise.
17324 * xditview/devX75/eqnchar: Likewise.
17325 * eqn/lex.c: Add definition of cdot.
17327 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17329 * troff/input.c (get_optional_char): New function.
17330 * troff/input.c (set_page_character): Use get_optional_char(),
17331 rather than has_arg() and tok.get_char(1).
17332 * troff/env.c (tab_character, leader_character, hyphen_char,
17333 field_characters): Likewise.
17334 (margin_character): Likewise. Also always delete the
17335 margin_character_node.
17337 * troff/input.c (token::get_char): Use token::description.
17339 * troff/input.c (has_arg): Don't skip over tab and \}.
17340 * troff/number.c (start_number): Give a warning if the number
17341 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17343 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17345 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17347 (get_name, get_long_name): Use these. Rename `warn' argument to
17350 * troff/node.c (get_fontno): Test that the symbol is not null.
17352 * troff/input.c (token::description): New function.
17353 * troff/number.c (parse_term): Use token::description in `numeric
17354 expression expected' message.
17355 * troff/groff.h: Add WARN_MISSING.
17356 * troff/number.c (start_number): New function.
17357 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17358 get_incr_number): Use start_number().
17359 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17361 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17362 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17364 * troff/input.c (token::get_char): Use WARN_MISSING.
17365 * troff/input.c (token::delimiter): Use token::description.
17366 * troff/env.c (environment_switch): Back out Aug 3 change.
17367 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17369 * troff/token.h (token::tab): New function.
17370 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17371 * troff/reg.c (alter_format): Likewise.
17372 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17374 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17376 * troff (most files): Redo warnings. Divide warnings into various
17377 categories; warning() has an additional first argument indicating
17378 the category it falls into.
17379 * troff/input.c (main): -w now takes an argument. New option -W.
17380 (enable_warning, disable_warning): New functions.
17382 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17383 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17385 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17387 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17388 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17389 * xditview/devX75/eqnchar: Likewise.
17390 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17392 * eqn/other.c: When bar or over applies to a single character
17393 don't produce an overline_box or an underline_box. Instead produce
17394 an accent_box or an underaccent_box, with the accent a line
17395 whose width is accent_width. New classes underaccent_box,
17396 overline_char_box and underline_char_box.
17397 * eqn/box.h: Move overline_box, underline_box, accent_box class
17398 declarations into eqn/other.c. Add declarations of
17399 make_underline_box, make_overline_box, make_accent_box.
17400 * eqn/eqn.y: Call make_overline_box, make_underline_box
17401 make_accent_box instead of constructors.
17402 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17404 * eqn/other.c: Add accent_box::~accent_box.
17405 * eqn/box.h: Declare it.
17407 * groff.sh: With -Tps, use eqn -D.
17409 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17411 (underline_box::output): Similarily.
17412 (accent_box::output): Use \Z.
17414 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17417 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17419 * troff/div.c (top_level_diversion::transparent_output(unsigned
17420 char)): Use asciify.
17421 * troff/input.c (asciify): Don't make it static.
17422 * troff/token.h (asciify): Declare it.
17424 * troff/input.c (get_name, get_long_name, token::get_char,
17425 token::delimiter): Add an extra default argument which says
17426 whether a warning should be printed.
17427 * troff: Pass a non-zero argument to one of these rather than
17428 printing a warning directly.
17430 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17432 * troff: Consistently use symbol::is_null.
17434 * troff/dictionary.h: Move some inline functions into
17437 * troff/request.h: Move inline functions into input.c.
17438 (request_or_macro::invoke): Make it pure.
17440 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17441 * troff/input.c (init_input_requests): Use class constant_int_reg.
17442 (class compatible_reg): Deleted.
17443 * troff/div.c (init_div_requests): Use class constant_int_reg.
17444 (class last_post_line_extra_space_reg): Deleted.
17446 * troff/env.c (tab_character): Don't change the tab character if
17447 we get an invalid argument.
17448 (hyphen_char): Similarily.
17450 * troff/reg.c (alter_format): Check that nm is not null.
17452 * Makefile, groff.sh: Make it possible to customize the commands
17453 used for printing PostScript and dvi files. Also make it possible
17454 to customize the path used by groff.sh.
17456 * eqn/eqn.y: Make `left' right associative.
17458 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17460 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17463 * pic/pic.h: Removed definition of INT_MAX.
17465 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17468 * troff/input.c (token::next): Handle \R like \n.
17470 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17472 * ps/tmac.pc (PSPIC): Simplify.
17474 * troff/env.c (tab_stops::to_string):
17475 * pic/pic.y (object_type_name):
17476 * pic/troff.c (simple_output::line):
17477 * pic/tex.c (tex_output::spline):
17478 * pic/object.c (object_spec::make_object):
17479 * tbl/main.c (process_data): Add cases to switch statements to
17480 avoid cfront warnings. (Some of these are spurious, since the
17481 switch already has a default case.)
17483 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17484 `ps-'. Don't test systat; instead check number of arguments to
17487 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17489 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17491 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17492 Unlink the file as soon as we have opened it, so that we don't
17493 have to bother with signal handlers.
17494 (handler): Deleted.
17495 (fatal_error_exit): Deleted.
17496 (main): Don't call signal.
17498 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17500 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17502 * pic/pic.y: If there is a label, or an nth construction before
17503 the first `.' in the argument to `with', ignore it and generate a
17505 * pic/lex.c (lex_warning): New function.
17507 * tbl/table.c (table::init_output): In section keep and release
17508 macro, use 0 indent when diverting and the correct indent when
17511 * troff/input.c (interpolate_number_format): Do not interpolate
17512 anything if the number register is not defined.
17514 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17516 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17518 * ps/devps/prologue (PICTURE): Set components of graphics state to
17519 their default values.
17521 * ps/devps/text.enc: Add trademark
17522 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17523 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17524 * ps/devps/symbolchars: Add names for summation and product.
17526 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17527 suchthat. Add pp. Add upper-case letters.
17529 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17530 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17533 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17534 rA (right angle bracket) to ra. Introduce names for double-headed
17535 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17536 * ps/devps/textmap: Likewise for ps device.
17537 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17538 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17539 * tty/devascii/R.proto: Likewise.
17540 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17542 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17544 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17546 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17549 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17551 * troff/div.c (when_request): Use symbol::is_null rather than
17552 has_arg to determine whether we have an argument.
17553 (change_trap): Remove the trap if we get an invalid number. Give
17554 an error if we don't get at least the macro name.
17555 (diversion_trap): Remove trap if we get an invalid name or number.
17557 * troff/env.c (environment_switch): Pop if we get an invalid
17558 symbol or numeric expression.
17560 * troff/input.c (do_define_macro): If EOF is encoutered while
17561 defining the macro, do tok.next() before returning.
17563 * troff/token.h (has_arg): Move definition from here, to ...
17564 * troff/input.c (has_arg): ... here
17566 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17567 * troff/input.c (shift): Likewise.
17569 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17572 * pic/troff.c (troff_output::start_picture): Comment out calls to
17575 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17576 interpret_lf_args succeeds.
17578 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17579 \\. This avoids problems with \$N.
17581 * groff.sh: Pass -C to preprocessors.
17583 * lib/lf.c (interpret_lf_args): Be more flexible.
17585 * tbl/main.c (main): Add -C option.
17586 (table_input::get): Do not recognize TE if followed by character
17587 other than a space or newline unless -C option given.
17588 (process_input_file): Likewise for lf, TS.
17589 (process_data): Likewise for lf in text blocks.
17591 * eqn/main.c (main): Add -C option.
17592 (do_file): Don't recognize EQ, EN or lf if followed by character
17593 other than space or newline unless -C option given.
17594 * eqn/lex.c (file_input::read_line): Similarily.
17595 * eqn/eqn.h: Declare compatible_flag.
17597 * etc/soelim.c (main): Add -C option.
17598 (interpret_lf_args): Use version in libgroff.
17601 * pic/main.c (main): Add -C option, which sets compatible_flag.
17602 (top_input::get), (top_input::peek): If -C option not given,
17603 do not recognize .PS/.PE/.PF/.lf if followed by a character
17604 other than space or newline.
17605 * pic/lex.c (file_input::read_line): Similarily.
17606 * pic/pic.h: Add declaration of compatible_flag.
17608 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17610 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17612 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17613 derived from node. New class space_char_hmotion_node.
17614 * troff/input.c (asciify_macro): New function.
17615 * troff/input.c (init_input_requests): New request `asciify' bound
17617 * macros/mm.diff: New file.
17618 * Makefile: In install.mm target use `patch' to apply
17621 * troff/input.c (macro::print_size): Just print the size in bytes.
17623 * troff/div.c (return_request): Correct the argument
17626 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
17628 * troff/node.h (class composite_node): Add sz member.
17629 * troff/node.c (composite_node::size): Return sz.
17630 * troff/input.c (macro_to_node): Use the initial size in the
17631 environment as the size of the composite_node.
17633 * troff/node.c (node::zero_width_tprint): Provide a reasonable
17636 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
17638 * troff/div.c (change_trap): If we get a bad number expression,
17641 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
17643 * lib/matherr.c (matherr): Define this only if math.h defines
17646 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
17648 * troff/div.c (macro_diversion::distance_to_next_trap): If there
17649 no diversion trap return vunits(INT_MAX - vresolution).
17651 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
17653 * troff/input.c (do_zero_width): New implementation that doesn't
17654 use a temporary environment. Use instead:
17655 (token::add_to_node_list): New function.
17656 * troff/env.c (environment::get_prev_char_height),
17657 (environment::get_prev_char_height),
17658 (environment::get_prev_char_skew): New functions.
17659 (environment::get_prev_char): New function.
17660 (environment::get_prev_char_width): Change to use get_prev_char.
17661 (init_env_request): Implement new registers .cht, .cdp, .csk.
17662 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17663 \Z being processed in a separate environment.
17665 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
17667 * tbl/table.c: Removed TABLE_BOTTOM_REG.
17669 * tbl/table.c (table::init_output): In the section release macro,
17670 give a warning message if the section won't fit on one page.
17672 * tbl/table.c (table::do_top): Emit table keep only if table is
17674 (table::do_bottom): Likewise for table release.
17675 (table::table), (table::add_vertical_rule): Remove reference to
17677 * tbl/table.h: Remove keep member.
17679 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17680 SECTION_RELEASE_MACRO, if there's not enough space before the next
17681 trap to output the diversion, call T# ourselves, set
17682 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17683 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
17684 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
17685 vertical position and return to it before turning traps on again.
17687 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
17689 * troff/node.c, troff/node.h: In classes derived from node,
17690 replace prev_char_width method by last_char_node method.
17691 * troff/env.c (environment::get_prev_char_width): Use
17692 node::last_char_node rather than node::get_prev_char_width.
17694 * Makefile: Added comment about -fno-inline on 68030-based
17697 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17698 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17699 expressions using sizeof to int.
17700 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17702 * macros/tmac.e (TS): Don't move @f back past the current
17705 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
17707 * ps/ps.c (main): Buffer stderr.
17708 * dvi/dvi.c (main): Likewise.
17709 * tty/tty.c (main): Likewise.
17711 * ps/ps.c (ps_printer::do_import): Improve error handling.
17713 * troff/input.c (abort_request): Use asciify.
17715 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17716 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17717 type of first argument int rather than char. This works around a
17718 bug on the 68030 based Apollo using g++ 1.37.1.
17720 * tbl/table.h (class table): Add `keep' member.
17721 * tbl/table.c (table::table): Initialize `keep'.
17722 (table::add_vertical_rule): Set `keep' to 1.
17723 (table::do_top): Only emit table keep macro is `keep' is non-zero.
17724 (table::do_bottom): Likewise for table release macro.
17725 (table::do_row): Emit section keep macro even if the row is 0.
17727 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
17729 * macros/tmac.e (@C): Preserve the font family across the change
17732 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
17734 * lib/font.c: Initialize font::hor and font::vert to 1.
17735 (font::load_desc): Check the values of font::hor and font::vert.
17737 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17738 be included in a C compilation.
17739 (iftoa): Use INT_DIGITS. Include lib.h.
17741 (as_string): Likewise.
17742 * tbl/table.c: Removed definition of INT_DIGITS.
17743 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17744 * troff/input.c (input_input_requests): Likewise.
17745 * ps/ps.c (make_encoding_name): Likewise.
17746 (ps_printer::set_style): Likewise.
17747 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17749 * tty/devascii/R.proto: Map fm onto '.
17750 * tty/devlatin1/R.proto: Likewise.
17752 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
17754 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17755 argument to \w is at a different input level.
17757 * tbl/table.c (table::init_output): Define a new macro
17758 REPEATED_VPT_MACRO, like vpt but if in a diversion also
17759 transparently outputs itself.
17760 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17762 (table::do_row): Likewise.
17764 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17765 TRANSPARENT_STRING_NAME.
17767 * tbl/table.c (table::init_output): In the table release macro
17768 print an error message and don't produce any output if after
17769 issuing the need request the table still will not fit. Also
17770 remove the diversion after bringing it back.
17772 * tbl/table.c (table::init_output): Define a new macro
17773 REPEATED_MARK_MACRO, like mk but if in a diversion also
17774 transparently outputs itself.
17775 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17776 is necessary because .TH might not call .T#.
17777 (table::do_top): Likewise TOP_REG.
17778 (table::define_bottom_macro): If TOP_REG is no longer valid, use
17779 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17780 table header might contain just the two top rules.
17782 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
17784 * troff/div.c: Implement new request `ptr' to print all traps.
17786 * troff/env.c (init_env_requests): Implement `.tabs' reg with
17787 init_string_env_reg.
17788 * troff/env.c (class tab_reg): Deleted.
17790 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
17792 * troff/div.c: New number register .pn returns the number of the
17793 next page as set by the pn request.
17795 * macros/tmac.an: Redid headers and footers. Number each manual
17796 entry starting from 1 unless \nC is > 0, like Sun. Added an
17797 optional 5th argument to .TH which specifies the manual name and
17798 appears in the center of the header. Understand the X, P and D
17799 registers like Sun.
17801 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
17803 * troff/env.c (init_env_requests): New number register `.lt' to
17804 return the title length.
17806 * troff/node.h (class transparent_dummy_node): New class.
17807 * troff/node.c (class transparent_dummy_node): Provide member
17809 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17812 * troff/input.c (token::next): New escape sequence \).
17813 * troff/input.c (get_copy): Recognize \) in copy mode.
17815 * troff/input.c (input_stack::clear): New function.
17816 * troff/input.c (exit_request): Use input_stack::clear.
17818 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17819 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17821 * troff/env.c: Move set_page_character to input.c. Move
17822 page_character to input.c also.
17823 * troff/env.c (title): Split off the reading of the parts of the
17824 title into read_title_parts.
17825 * troff/input.c (read_title_parts): New function. Check the
17826 input_level when testing whether a token matches the delimiter.
17828 * troff/input.c (exit_request): New function.
17829 * troff/input.c (init_input_requests): Bind ex request to
17830 exit_request rather than exit_groff.
17832 * troff/input.c (exit_groff): Call tok.next() before
17833 process_input_stack().
17835 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
17837 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17838 * troff/env.h: ditto.
17839 * troff/input.c: ditto.
17841 * troff/env.c (environment::is_empty): Test pending_lines.
17843 * troff/env.c (environment::have_pending_lines): Removed.
17845 * troff/input.c: Add request to flush pending lines from the
17848 * troff/env.c, troff/env.h: Add automatic widow control feature.
17850 * troff/input.c (exit_groff): Do process_input_stack() after
17851 do_break() but before setting exit_flag to 2.
17853 * troff/input.c: Remove FLUSH_PENDING_LINES and
17854 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17855 environment after END_TRAP token seen, but only if there aren't
17856 any more traps still unfinished.
17857 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17859 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
17861 * troff/env.c: Rename the `retain_size' member of class
17862 pending_output_line to `no_fill'.
17864 * troff/env.c (title): When the line is output, make the
17865 retain_size argument !fill.
17867 * troff/node.h: Add `hyphenated' member to struct breakpoint.
17868 * troff/node.c (space_node::get_breakpoints),
17869 (dbreak_node::get_breakpoints): Fill this in.
17870 * troff/env.c: Allow specification of maximum number of
17871 consecutive hyphenated lines.
17873 * troff/env.c (environment::is_empty): Add test for !current_tab.
17875 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
17877 * troff/env.c (environment::hyphenate_line): Don't completely give
17878 up if the word is not to be hyphenated; continue so that breaks
17879 can be made at break_char_node's.
17881 * lib/lib.h: Only define INT_MAX if it's not already defined;
17882 undef INT_MIN if it's already defined.
17884 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17886 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17887 This works around a bug in AT&T C++ 2.0 used with an ANSI C
17890 * macros/tmac.an (an-header): Set no-space mode.
17892 * macros/tmac.an (TH): Start a new page if necessary.
17894 * Started using ChangeLog at version 0.4.
17897 version-control: never