1 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
3 * src/devices/grohtml/post-html.cpp
4 (html_printer::lookahead_for_tables): End .ce properly to avoid a
7 2005-03-15 Werner LEMBERG <wl@gnu.org>
9 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
11 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
13 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
15 2005-03-14 Werner LEMBERG <wl@gnu.org>
17 Add Cyrillic support to devutf8 and devhtml.
19 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
21 * tmac/unicode.tmac: New file.
23 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
25 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
29 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
31 * src/libs/libdriver/printer.cpp (check_for_output_error): New
32 function. It has been introduced to catch peculiar error contexts
33 on MS-Windows platforms.
35 2005-02-28 Werner LEMBERG <wl@gnu.org>
37 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
40 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
42 * configure: Regenerated.
46 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
48 Integrate `pdfmark' into normal groff build system;
49 install macro `pdfmark' packages, build and install `pdfroff',
50 and PDF format documentation.
52 * Makefile.comm: Add PDFDOCDIR.
54 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
55 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
56 (unstall_dirs): Add pdfdocdir.
58 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
59 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
60 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
61 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
62 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
63 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
65 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
66 use of GROFF_AWK_PREFS.
67 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
68 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
70 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
71 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
72 also by modified GROFF_HTML_PROGRAMS).
74 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
76 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
78 (html_text::done_para): Unset `start_space'.
79 (html_text::remove_para_align): Call `retrieve_para_space' for the
82 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
84 (html_printer::do_check_center): Emit vertical space if necessary.
86 * src/roff/troff/env.cpp (environment_switch): Preserve
87 `seen_space', `seen_eol', and `suppress_next_eol' while switching
90 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
93 2005-02-20 Werner LEMBERG <wl@gnu.org>
95 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
98 2005-02-17 Werner LEMBERG <wl@gnu.org>
100 * doc/pic.ms, man/groff.man: Fix typos.
102 * doc/groff.texinfo: Fix typos.
103 (\LEmacro): Get proper mathematical spacing.
105 2005-02-16 Werner LEMBERG <wl@gnu.org>
107 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
108 * configure: Regenerated with autoconf 2.59b.
110 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
112 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
113 html_printer::start_font): Fix handling of preformatted text.
115 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
117 These patches modify the indentation implementation to use `<p
118 style=margin-left: n%>'. Many thanks to Peter and Larry for
119 suggesting this solution. Grohtml only uses tables for `.IP' and
120 related tags when the first operand has a short width.
122 Similarly, they modify all vertical space code. By default, grohtml
123 sets up a style sheet which uses no vertical space between `table',
124 `pre', and `p' tags. It forces spaces when it needs them using
125 `style="margin-top: 1em"'.
127 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
128 (html_table::emit_table_header, html_table::emit_new_row):
130 (html_table::set_space): New function.
131 (html_indent::html_indent): Don't set `is_used'.
132 (html_indent::begin): Rewritten.
133 (html_indent::end): Remove code in function.
135 * src/devices/grohtml/html-table.h: Updated.
136 (html_table): Make `out' public.
138 * src/devices/grohtml/html-text.cpp (html_text::html_text):
139 Initialize `start_space' with FALSE.
140 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
141 (html_text::issue_tag): Add argument to handle space style.
142 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
143 (html_text::flush_text): Don't set `start_space'.
144 (html_text::push_para): Don't set `p->really_issued'.
145 (html_text::do_emittext): Updated.
146 (html_text::do_para): Add paremeter to handle space.
148 (html_text::retrieve_para_space): New function.
150 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
151 (tag_definition): Remove `really_issued'.
152 (html_text): Updated.
154 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
155 `current_column' and `row_space'.
157 (html_printer::emit_raw, html_printer::write_header,
158 html_printer::do_indent, html_printer::do_check_center,
159 html_printer::do_tab_ts): Handle vertical space.
160 (html_printer:do_tab_te, html_printer::do_end_para): Call
162 (html_printer::do_col): Rewritten.
163 (html_printer::flush_globs): Remove debugging code.
164 (html_printer::is_line_start): New function.
165 (html_printer::start_font): Use `is_line_start'.
166 (html_printer::writeHeadMetaStyle): New function.
167 (html_printer::do_file_components, html_printer::~html_printer):
168 Call `writeHeadMetaStyle'.
170 * tmac/www.tmac (www-handle-percent): New macro.
171 (MPIMG): Handle percent values for width and height parameters.
174 * tmac/groff_www.man: Updated.
176 2005-02-14 Werner LEMBERG <wl@gnu.org>
178 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
179 $psname and $italic_angle.
180 Immediately restart file input loops if `split' returns an empty
183 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
184 Werner LEMBERG <wl@gnu.org>
186 Update afmtodit to better support Unicode (Michail).
187 Update afmtodit to use Perl 5 syntax (Werner).
189 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
191 Decorate variables with `my' where necessary.
192 Use `defined' where necessary to avoid warnings.
193 Don't use `do' for subroutine calls.
194 Other minor syntax updates.
195 Check for both `uXXXX[X[X]]' and `uniXXXX'.
196 Handle glyph variants properly.
197 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
200 * src/utils/afmtodit/afmtodit.man: Updated.
202 2005-02-13 Werner LEMBERG <wl@gnu.org>
204 Make groff.texinfo work with texinfo 4.8.
206 * doc/groff.texinfo (@Var): Use @r and @slanted.
207 (@defdummy, @Def*): Use @c to avoid empty lines.
208 (\angles): Replaced with...
209 (\Langlemacro, \Ranglemacro): New TeX macros.
210 (@Langlemacro, @Ranglemacro): New variables defined with @set.
211 (@angles): Use @Langlemacro and @Ranglemacro.
212 (\LE): Replaced with...
213 (\LEmacro): New TeX macro.
214 (@LEmacro): New variable defined with @set.
216 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
217 variables defined with @set.
218 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
219 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
224 * doc/texinfo.tex: Update to texinfo version 4.8.
226 * README.CVS: Updated.
228 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
230 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
233 2005-02-05 Werner LEMBERG <wl@gnu.org>
235 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
236 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
239 2005-02-01 Werner LEMBERG <wl@gnu.org>
241 * src/roff/groff/groff.man: Add information about paper size.
243 2005-01-25 Werner LEMBERG <wl@gnu.org>
245 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
248 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
250 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
252 (Re): Emit a warning if called without `.Rs'.
253 (doc-finish-reference): Use parameter for decreasing
254 `doc-reference-count'.
255 (doc-print-reference): Pass specific count parameters to
256 `doc-finish-reference'.
258 2005-01-21 Werner LEMBERG <wl@gnu.org>
260 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
261 Reset pointers to zero after deallocation. This fixes a crash
262 if a driver is called with multiple input files. Reported by
263 Ken Chilton <ken@chiltonfamily.org>.
265 * src/devices/grops/grops.man: Add more info on DSC.
267 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
269 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
272 2005-01-17 Werner LEMBERG <wl@gnu.org>
274 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
275 against division by zero.
277 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
279 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
281 2004-12-19 Werner LEMBERG <wl@gnu.org>
283 * install-sh: New version; taken from texinfo CVS.
285 2004-12-17 Werner LEMBERG <wl@gnu.org>
287 * tmac/devtag.tmac: Protect against loading twice.
288 Protect agains compatibility mode.
289 * tmac/www.tmac: Protect against loading twice.
290 Load `devtag.tmac' before switching off compatibility mode.
291 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
293 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
295 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
296 * configure: Updated.
298 2004-12-15 Thomas Klausner <wiz@netbsd.org>
300 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
302 2004-12-15 Werner LEMBERG <wl@gnu.org>
304 Make `test-groff' work again -- previously, wrong paths have been
305 used. Additionally, it can now be called from anywhere.
307 * test-groff.in: Don't test for groff binary. This is no longer
308 necessary since the proper paths are determined by `configure'.
309 (EXEEXT): Removed. No longer used.
310 (srcdir, builddir): Use values provided by the configure script.
311 (XENVIRONMENT): Updated.
315 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
317 Make .tag and .taga work for all devices (but only grohtml actually
320 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
321 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
322 html_printer::handle_assertion): Don't use hard-coded string
324 (html_printer::lookahead_for_table): Reset `tbl' properly if
326 (html_printer::devtag): New function, handling `devtag'.
327 (html_printer::special): Don't handle `html-tag'.
329 * src/include/printer.h, src/libs/libdriver/printer.cpp
330 (printer::devtag): New virtual function.
332 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
335 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
336 src/roff/troff/node.cpp: s/html-tag/devtag/.
338 * src/roff/troff/input.cpp (tag, taga): Always call
341 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
342 macros instead of HTML-TAG*.
344 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
346 * tmac/www.tmac: Load devtag.tmac.
347 Replace HTML-TAG* macros with DEVTAG* macros.
348 (HTML, HTML-NS): Changed definitions.
350 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
352 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
354 2004-12-10 Werner LEMBERG <wl@gnu.org>
356 Import Mike's `gdiffmk' package.
358 * contrib/gdiffmk/*: New files.
359 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
362 2004-12-08 Werner LEMBERG <wl@gnu.org>
364 Import Keith's `pdfmark' package. Integration is very preliminary.
366 * contrib/pdfmark/*: New files.
367 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
370 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
372 Fix a bug with title handling in HTML.
374 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
375 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
377 (html_printer::handle_tag_within_title): New function.
378 (html_printer::do_title): Use it.
380 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
381 (cov*tl-au-print): Emit `.eo.tl' tag.
383 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
385 * man/groff_char.man: Minor imrovements.
387 2004-12-04 Werner LEMBERG <wl@gnu.org>
389 * src/preproc/eqn/eqn.man: Revised.
391 2004-11-25 Werner LEMBERG <wl@gnu.org>
393 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
397 Remove X_NOT_STDC_ENV conditional.
398 (Version_string, program_name): New global variables.
399 (groff_flag): Removed.
401 (usage): Take a stream as argument.
404 (main): Add `long_options' array for `--help' and `--version'.
405 Make `-g' a dummy option.
406 Handle `-v' and unknown options.
407 Remove unused `position' variable.
409 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
410 (XLIBS): Add LIBGROFF.
412 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
415 * src/devices/xditview/Dvi.c (default_font_map): Split into three
416 parts to avoid compiler warning.
417 (resources): Don't initialize with `default_font_map'.
418 (ClassInitialize): Initialize first element of `resources'.
420 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
423 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
424 src/utils/pfbtops/pfbtops.man: Revised, updated.
426 * configure.ac: Generate src/utils/xtotroff/Makefile.
427 * configure: Regenerated.
429 2004-11-24 Werner LEMBERG <wl@gnu.org>
431 First fixes to get produce HTML.
433 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
436 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
437 (HR, LI): Use `HTML</p>', not `HTML'.
439 * doc/webpage.ms: Minor updates.
441 2004-11-23 Larry Kollar <kollar@alltel.net>
443 Add option -S grohtml to determine the file split level.
445 * src/devices/grohtml/post-html.cpp (split_level): New global
447 (html_header::determine_header_level): Use split_level.
448 (main): Handle `-S' command line option.
451 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
453 * src/devices/grohtml/grohtml.man: Document it.
458 2004-11-23 Y T <doarhop@hotmail.com>
460 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
461 the volume and number refer entries.
463 2004-11-22 Werner LEMBERG <wl@gnu.org>
465 * src/devices/grohtml/html-table.cpp
466 (html_table::emit_table_header): Don't emit `cols' attribute which
467 doesn't exist in HTML 4.0 and is thus invalid.
469 * NEWS: More minor fixes and updates.
471 2004-11-18 Werner LEMBERG <wl@gnu.org>
473 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
474 (HTML</p>): Minor clean-up.
476 * tmac/groff_www.man: Updated.
478 * src/devices/grohtml/grohtml.man: Revised and updated.
482 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
484 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
486 (html_printer::do_links): Fix rules generation around automatic
489 * tmac/www.tmac (LK): Use HTML-TAG-NS.
491 No longer emit empty line for non-HTML devices.
493 2004-11-17 Werner LEMBERG <wl@gnu.org>
495 * doc/Makefile.in (prepare_examples, webpage.html): Handle
498 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
499 prepare_examples, webpage.html): Handle `groff.css'.
501 2004-11-15 Werner LEMBERG <wl@gnu.org>
503 * NEWS, README, doc/webpage.ms: Updated.
505 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
507 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
509 * src/include/printer.h (printer): Remove virtual function
511 Update all source files.
513 * src/devices/grohtml/post-html.cpp (html_printer): New member
514 function `round_width'.
516 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
518 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
519 column key letter suffix.
521 2004-10-14 Werner LEMBERG <wl@gnu.org>
523 * Makefile.in (check): Depend on `site.exp' and `docheck'.
524 (docheck): Run dejagnu's `runtest' if it exists.
525 (site.exp): Create dejagnu configuration file.
527 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
529 2004-10-13 Werner LEMBERG <wl@gnu.org>
531 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
532 src/devices/grohtml/post-html.cpp (make_val,
533 html_printer::handle_state_assertion): Fix compiler warnings.
535 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
536 (diversion::diversion): Fix order of initializers.
538 * src/roff/troff/div.h: Don't include `mtsm.h'.
540 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
541 (environment::environment): Fix order of initializers.
542 (environment::make_tag, environment::construct_format_state): Fix
545 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
546 (input_iterator::input_iterator, macro::macro): Fix order of
549 * src/roff/troff/mtsm.cpp: Include only necessary header files.
550 (state_set::add, state_set::val): Fix compiler warnings.
552 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
553 (bool_value_state, int_value_state, units_value_state,
554 string_value_state): Remove comma after last element which causes
555 an error with g++ 3.3.3.
557 * src/roff/troff/node.cpp: Include `stringclass.h'.
558 (hline_node::hline_node, vline_node::vline_node,
559 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
561 (zero_width_node::zero_width_node): Fix order of initializers.
563 * src/roff/troff/node.h: Don't include `mtsm.h'.
564 (hmotion_node): Fix compiler warnings.
566 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
568 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
570 * doc/groff.css: New file.
572 * doc/webpage.ms: Use `groff.css'.
575 * tmac/an-old.tmac (need_eo_h): New number register.
576 (TH): Emit `.eo.tl' tag after title.
577 (SH): Set `need_eo_h'.
578 (an-trap): Handle `need_eo_h'.
579 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
581 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
582 (TL): Always start diversion.
584 (@AI): Always call `par@reset'.
585 (@AB): Update code for -Thtml.
586 (cov*tl-au-print): Handle -Thtml.
587 (par@reset): Handle `need_eo_tl', `need_eo_h'.
590 (@SH): Set `need_eo_h' for -Thtml.
591 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
593 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
594 Set `need_eo_h' for -Thtml.
595 (@EQ, @EN): Don't handle -Thtml specially.
596 (par@load-init): Don't handle -Thtml specially.
598 * tmac/www.tmac (www:paraspace): New macro.
599 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
600 (HTML</p>, HTML-TAG-NEXT): New macros.
601 (HnE): Emit tag `.eo.h' instead of break.
602 (HR): s/HTML-NS/HTML/.
603 (www-end-nowhere): End diversion only if `www-html' not set.
605 (ULS, ULE): s|HTML|HTML</p>|.
606 (LI): Call `www:paraspace'.
609 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
611 * src/roff/troff/request.h (macro): Make `p' public.
612 New variable `is_a_diversion'.
613 New member function `is_diversion'.
616 * src/devices/grohtml/html.h (simple_output): New member function
619 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
620 computation of `total'.
621 (tabs::check_init): New function.
622 (html_table::emit_table_header): Emit style data.
623 (html_table::insert_column): Improved.
625 * src/devices/grohtml/html-table.h: Updated.
627 * src/devices/grohtml/html-text.cpp (html_text::html_text):
628 Initialize `start_space' with TRUE.
629 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
631 (html_text::flush_text): Set `start_space' flag.
632 (html_text::uses_indent, html_text::remove_para_space,
633 html_text::get_alignment): New functions.
634 (html_text::push_para): Updated.
635 (html_text::do_para): Check for empty argument.
636 Don't set `space_emitted'.
637 (html_text::do_space, html_text::emit_space): Updated.
639 * src/devices/grohtml/html-text.h (tag_definition): New variable
641 (html_text): New member function `uses_indent', `remove_para_space',
644 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
646 (simple_output:nl): Always emit `\n'.
648 * src/devices/grohtml/post-html.cpp: Include `string.h'.
649 (BASE_POINT_SIZE): Removed.
650 (base_point_size, head_info): New global variables.
651 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
653 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
655 (page::add_and_encode): Pass additional parameter for tag flag.
656 (assert_pos): New structure.
657 (assert_state): New class.
658 (html_printer): Remove `indentation', `prev_indent'.
659 Add variables `troff_indent', `device_indent', `temp_indent'.
660 Add variables `seen_indent', `next_indent', `seen_pageoffset',
661 `next_pageoffset', `seen_linelenght', `next_linelength',
662 `seen_center', `next_center', `seen_space', `seen_break', `as'.
663 Add member functions `do_check_center', `do_space', `do_head',
664 `get_troff_indent', `restore_troff_indent', `handle_assertion',
665 `handle_state_assertion', `do_end_para', `set_char_and_width'.
666 Change argument to `do_fill' to `char *'.
668 (html_printer::emit_raw): Call `shutdown_table'.
670 (html_printer::do_center): Simplified.
671 (html_printer::do_title): Improved.
672 (html_printer::write_header): Emit one more newline.
674 (html_printer::do_heading, html_printer::do_indent,
675 html_printer::do_eol, html_printer::do_tab_ts,
676 html_printer::do_tab, html_printer::do_tab0,
677 html_printer::calc_po_in, html_printer::next_horiz_pos,
678 html_printer::remove_courier_tabs,
679 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
681 (html_printer::do_linelength, html_printer::do_pageoffset,
682 html_printer::do_indentation, html_printer::do_tempindent,
683 html_printer::do_tab_te): Simplified.
684 (html_printer::do_pointsize): Check whether point size is really
685 associated a `.tl' tag.
686 (html_printer::do_break): Rewritten.
687 (html_printer::troff_tag): Improved.
688 (html_printer::flush_globs): Updated.
689 (html_printer::lookahead_for_tables): Handle `is_br'.
691 (html_printer::set_char): Check `sbuf_style.f'.
692 (html_printer::write_navigation): Use string comparison.
693 (html_printer::~html_printer): Emit `head_info'.
694 (html_printer::special): Rewritten.
695 (get_str, make_val): New functions.
696 (main): New option `s' to set the base point size.
698 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
700 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
702 * src/roff/troff/node.cpp: New extern `debug_state'.
703 Include `stringclass.h' and `mtsm.h'.
704 Implement new classes and class members from `node.h'.
705 (real_output_file): Make `fp' public.
706 (troff_output_file): New variables `cur_div_level' and `tag_list'.
708 (troff_output_file::really_print_line): Check whether we should push
709 the current troff state and use the state at the start of the
710 invocation of this diversion.
711 (troff_output_file::add_to_tag_list): New member function.
712 (node::add_char): Handle `glyph_comp_np'.
714 * src/roff/troff/node.h: Include `mtsm.h'.
715 (node): New variables `state', `push_state', `div_nest_level',
716 `is_special'. Update constructors, all descendants.
717 Pass additional argument to `add_char' member function.
718 New virtual member functions `is_tag', `debug_node',
719 `debug_node_list'. Update all descendants.
720 (tag_node): New class for handling tags.
721 (output_file): Add variable `state'.
723 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
725 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
726 providing a minimal troff state machine to emit meta tags for the
727 post-grohtml device driver.
729 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
732 2004-10-09 Werner LEMBERG <wl@gnu.org>
734 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
736 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
738 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
740 * src/roff/troff/div.h: Include `mtsm.h'.
741 (diversion): New variables `any_chars_added', `needs_push',
742 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
743 `saved_suppress_next_eol', `modified_tag'.
744 New virtual member function `is_diversion'. Update all descendants.
746 * src/roff/troff/div.cpp (diversion::diversion,
747 macro_diversion::macro_diversion): Updated.
748 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
750 (top_level_diversion::space): Handle `curenv->seen_space'.
751 (page_offset): Update tag handling.
752 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
754 * src/roff/troff/env.h (environment): Make `tabs' public.
755 Remove `ignore_next_eol', `emitted_node'.
756 Update `output_line', `output'.
757 New variables `seen_space', `seen_eol', `suppress_next_eol',
759 New member functions `construct_state', `make_tag',
760 `construct_format_state, `construct_new_line_state,
762 Remove `add_html_tag', `make_html_tag'.
764 * src/roff/troff/env.cpp: New externs `suppress_push',
765 `get_diversion_state', `global_diverted_space'.
766 (pending_output_line): New variable `was_centered'.
767 Update constructor and all callers.
768 (pending_output_line::output): Call `curenv->construct_format_state'.
769 (environment::environment, environment::copy): Updated.
770 (environment::output): Handle `was_centered'.
771 (environment::add_char): Handle construct and diversion state.
772 (environment::add_node): Handle construct state.
773 (environment::newline): Handle `was_centered'.
774 (environment::output_line): Updated.
775 (environment::possibly_break_line): Updated.
777 (environment::add_html_tag): Replaced with...
778 (environment::make_tag): New function.
779 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
780 (environment::dump_troff_state): New debugging function.
781 (environment::construct_state, environment::construct_format_state,
782 environment::construct_new_line_state): New functions.
783 (environment::do_break): Updated.
784 Handle `global_diverted_space'.
785 (environment::handle_tag): Update tag handling.
786 (point_size, fill, do_break_request): Don't call `add_html_tag'.
787 (no_fill): Don't call `add_html_tag'.
788 Set `suppress_next_eol'.
789 (center, right_justify, line_length, indent, temporary_indent,
793 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
794 (input_iterator): New variables `is_diversion', `diversion_state'.
796 (input_stack): New member functions `get_div_level',
797 `get_diversion_state', `check_end_diversion'.
798 New variables `div_level', `diversion_state'. Initialize them.
799 (suppress_push, global_diverted_space): New global variables.
800 (input_stack::finish_get, input_stack::finish_peek,
801 input_stack::remove_boundary, input_stack::end_file,
802 input_stack::clear, input_stack::pop_macro): Call
803 `check_end_diversion'.
804 (input_stack::push): Handle `div_level' and `diversion_state'.
805 (get_diversion_state): New function.
806 (diverted_space_node::reread): Handle `global_diverted_space'.
807 (macro::macro): Update constructors.
808 (macro::is_diversion): New function.
809 (macro::operator=): Set `is_a_diversion'.
810 (string_iterator): New member function `is_diversion'.
811 (string_iterator::string_iterator): Update constructors.
812 (string_iterator::fill): Set `div_nest_level'.
813 (macro_iterator): New member function `is_diversion'.
814 (do_if_request): Handle `suppress_push'.
815 (tag, taga): New functions.
816 (init_input_requests): Add `tag' and `taga' requests.
818 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
820 * src/include/font.h (font): New member function
821 `get_image_generator'.
822 New variables `unscaled_charwidths' and `image_generator'.
824 * src/libs/libgroff/font.cpp (font::get_width): Always return the
825 character's unscaled width if `font::unscaled_charwidths' is set.
826 (font::get_image_generator): New function.
827 (font::load_desc): Check the `unscaled_charwidths' and
828 `image_generator' keywords.
830 * src/libs/libgroff/fontfile.cpp: Initialize
831 `font::unscaled_charwidths' and `font::image_generator'.
833 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
835 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
837 * man/groff_font.man: Document `unscaled_charwidths' and
840 * src/preproc/html/pre-html.cpp: Include `device.h'.
841 (image_gen): New global variable.
842 (imageList::createPage): Use `image_gen'.
843 (main): Use `image_generator' keyword.
845 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
847 * tmac/html.tmac: Handle \[sqrtex].
849 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
851 * src/include/printer.h (printer): New virtual method `round_width'.
853 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
854 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
855 src/devices/grotty/tty.cpp (printer::round_width): New function
858 * src/devices/grohtml/post-html.cpp (printer::round_width): New
860 (html_printer::set_numbered_char): Use it.
862 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
864 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
866 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
868 * configure: Regenerated.
870 * Makefile.in (GHOSTSCRIPT): New variable.
871 (MDEFINES): Add GHOSTSCRIPT.
873 2004-10-03 Werner LEMBERG <wl@gnu.org>
875 * INSTALL.gen: Updated (taken from texinfo CVS).
877 2004-09-28 Werner LEMBERG <wl@gnu.org>
881 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
883 * tmac/groff_www.man: Revised and updated.
885 2004-09-26 Werner LEMBERG <wl@gnu.org>
887 Fix \$@ and \$* to handle any number of arguments.
889 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
892 * src/roff/troff/input.cpp (input_iterator::internal_level):
894 (input_stack): New member functions `increase_level' and
896 (input_stack::get_level): Don't use `internal_level'.
897 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
898 (end_quote_iterator): Completely removed.
899 (interpolate_arg): Build string for \$@ and \$* which is then
900 pushed onto the input stack.
902 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
904 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
907 2004-09-23 Werner LEMBERG <wl@gnu.org>
909 * tmac/an-old.tmac (ne): Using default scaling operator.
911 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
913 This change implements the following features:
916 New numeric register: Defines number of lines following LP, PP,
917 QP, IP or XP, which must be kept together, before any automatic
918 page break. If insufficient space remains on the current page, a
919 page break is forced before the new paragraph begins.
922 New numeric register: Sets number of lines of following paragraph
923 which must be kept with a heading, defined by NH or SH, before any
924 automatic page break. If insufficient space remains on the
925 current page, a page break is forced before the heading.
928 (Thanks to Joerg van den Hoff, for this idea).
930 New numeric register: Sets the first level of heading (set with
931 NH), which will keep the same point size as body text; e.g. if
932 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
933 point size specified by \n[PS], but .NH 2 and .NH 1 will have
934 progressively larger point sizes, determined by \n[PSINCR] (see
938 New numeric register: Sets the point size increment for each level
939 of heading, (set with NH), below the threshold level set by
940 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
941 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
942 and all other levels will remain at 10pt, (because \n[PS] = 10).
945 Existing macro now accepts a numeric argument, to make heading
946 size match that of NH with same argument value, when the
947 GROWPS/PSINCR feature is enabled.
950 New string, set by NH macro, replaces the existing (undocumented)
951 use of SN, to represent the assigned section number.
954 New string, set by NH macro, represents the assigned section
955 number, but omits the terminal period (periods at intermediate
956 levels are retained).
959 String set by NH macro, originally undocumented, now implemented
960 as an alias for SN-DOT (which reproduces original behaviour).
962 * tmac/s.tmac (PORPHANS): New register.
964 (HORPHANS, GROWPS, PSINCR): New registers.
965 (SH-NO-TAG, @SH): Use them.
968 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
970 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
971 of `Ds' and `De' macros.
973 2004-09-10 Werner LEMBERG <wl@gnu.org>
975 In tbl, handle \a as an interpreted leader character if in
978 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
979 LEADER_CHAR): New macros.
980 (compatible_flag): New declaration.
982 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
983 LEADER_3, and LEADER_4 to `state'.
984 (table_input::get): Handle `\a'.
986 * src/preproc/tbl/table.cpp (PREFIX): Removed.
987 (LEADER_REG): New macro.
988 (table::init_output): Define LEADER_REG string register if in
991 * src/preproc/tbl/tbl.man: Document it.
993 2004-08-18 Werner LEMBERG <wl@gnu.org>
995 * tmac/doc.tmac (An): Fix error message.
997 2004-08-06 Werner LEMBERG <wl@gnu.org>
999 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1000 file can't be opened. UNIX tbl has the same behaviour.
1002 2004-08-05 Y T <doarhop@hotmail.com>
1004 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1005 (DBRead): If in compatibility mode, take into account the text
1006 when computing figure boundaries.
1008 2004-08-05 Werner LEMBERG <wl@gnu.org>
1010 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1011 from Tadziu Hoffmann.
1013 2004-08-03 Werner LEMBERG <wl@gnu.org>
1015 * doc/meref.me: Document `_M' register.
1017 2004-08-03 Martin Husemann <martin@duskware.de>
1019 Make hpftodit work correctly on big-endian systems.
1021 * src/utils/hpftodit/hpftodit.cpp (File): New method
1022 `get_uint32(char *)'.
1023 (entry): New member `orig_value'.
1024 (read_tags): Use new method.
1025 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1028 2004-08-01 Werner LEMBERG <wl@gnu.org>
1030 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1031 are already in X11's `macros.t' file.
1033 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1035 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1037 (read_and_output_pcltypeface): Handle strings with length <= 4.
1039 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1041 * tmac/s.tmac (pg@top): Don't save `PO' register.
1042 (pg*end-col, pg*end-page): Directly use `PO' register.
1044 2004-07-27 Werner LEMBERG <wl@gnu.org>
1046 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1048 * src/preproc/refer/refer.cpp (output_references): Check for
1050 * src/preproc/refer/refer.man: Improve documentation of
1051 `bibliography' command.
1053 2004-07-26 Werner LEMBERG <wl@gnu.org>
1055 Add requests `fcolor' and `gcolor'.
1057 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1059 (init_env_requests): Add `fcolor' and `gcolor'.
1061 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1063 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1064 Document new requests.
1066 2004-07-24 Werner LEMBERG <wl@gnu.org>
1068 Add support for fractional point sizes in ms macros. A value for
1069 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1070 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1072 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1073 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1075 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1077 2004-07-19 Werner LEMBERG <wl@gnu.org>
1079 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1081 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1082 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1084 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1086 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1087 * tmac/groff_mdoc.man: Updated.
1089 2004-07-05 Werner LEMBERG <wl@gnu.org>
1091 * doc/groff.texinfo: Further improve documentation of `hcode'.
1093 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1095 Improve appearance of arrows in pic.
1097 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1099 Use two line segments for drawing non-filled arrow head.
1100 (line_object::print, spline_object::print): Shorten line length to
1101 avoid arrow sticking.
1102 (arc_object::print): Take arrow direction into account.
1104 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1106 * tmac/groff_www.man: Update documentation of .MPIMG.
1108 2004-07-03 Werner LEMBERG <wl@gnu.org>
1110 * tmac/an-old.tmac (RI): Always start with font `R'.
1111 (RI, IR): Properly end with font `R'.
1113 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1115 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1116 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1117 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1118 Don't pass more than six arguments to .R, .I, .B, etc., for
1119 compatibility with traditional troff macros.
1121 2004-07-02 Werner LEMBERG <wl@gnu.org>
1123 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1124 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1126 (PUSH_COMP_MODE): New internal character constant.
1129 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1130 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1131 (token::next, macro::append): Handle PUSH_COMP_MODE.
1132 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1133 POP_GROFFCOMP after each of the decoded arguments to make them
1134 independent from the compatibility mode status.
1135 (comp_mode): Add `COMP_ENABLE'.
1136 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1137 (define_string, append_string, define_macro, define_indirect_macro,
1138 append_macro, append_indirect_macro): Handle `compatible_flag'.
1139 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1141 * man/groff_diff.man, doc/groff.texinfo: Updated.
1143 2004-07-01 Werner LEMBERG <wl@gnu.org>
1145 * doc/groff.texinfo: Improve documentation of `hcode'.
1146 Use @documentencoding and convert document to latin-1; to do that
1147 make latin characters active and assign proper macros (within a
1148 @tex...@end tex environment).
1149 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1150 * doc/Makefile.sub (groff): Ditto.
1152 2004-06-29 Werner LEMBERG <wl@gnu.org>
1154 Implement two new conditional operators `F <name>' and `S <name>'
1155 which check whether <name> is a valid font or style, respectively.
1157 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1158 (text_file::text_file): Updated.
1159 (text_file::error): Don't emit message if `silent' is set.
1160 (font::load_font): Add optional third argument (which is directly
1162 (font::load): Add optional second argument to check the header of
1163 a font only, without emitting warning or error messages.
1164 * src/include/font.h (font): Updated.
1166 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1168 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1169 fourth argument to check a font without mounting.
1170 (check_font, check_style): New functions.
1171 * src/roff/troff/node.h: Updated.
1173 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1176 2004-06-27 Werner LEMBERG <wl@gnu.org>
1178 Implement new string-valued register `.sty' to return the current
1181 * env.cpp (environment::get_style_name_string): New function.
1182 (init_env_requests): Add `.sty' register.
1183 * env.h (environment): Updated.
1184 * node.cpp (font_info): Make `get_style_name' a friend.
1185 (get_style_name): New function.
1188 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1191 2004-06-15 Werner LEMBERG <wl@gnu.org>
1193 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1196 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1198 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1199 and \n[mo] to avoid dependency on current date.
1201 2004-06-08 Werner LEMBERG <wl@gnu.org>
1203 * Makefile.sub (install_data): New target.
1205 2004-06-04 Werner LEMBERG <wl@gnu.org>
1207 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1209 2004-06-03 Werner LEMBERG <wl@gnu.org>
1211 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1213 (install_data): Add $(srcdir).
1215 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1218 2004-06-02 Werner LEMBERG <wl@gnu.org>
1220 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1221 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1222 Add test for Xmu library.
1223 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1224 GROFF_APPRESDIR_DEFAULT): New macros.
1226 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1227 and GROFF_APPRESDIR_DEFAULT.
1229 * configure: Regenerated.
1231 * Makefile.in (appresdir): New variable.
1232 (MDEFINES): Add appresdir.
1234 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1236 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1238 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1239 `$(srcdir)/eign', not `eign'.
1241 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1243 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1244 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1245 Protect (g)xditview with `\%' to avoid hyphenation.
1246 Other minor formatting.
1248 2004-06-01 Werner LEMBERG <wl@gnu.org>
1250 Integrate gxditview into groff's standard directory hierarchy.
1252 * src/xditview/*: Moved to ...
1253 * src/devices/xditview/*: Here.
1254 Moved DviChar.h and XFontName.h to src/include.
1255 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1256 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1257 Moved xtotroff.c to new directory src/utils/xtotroff.
1258 Provide proper Makefile.sub files (reusing the stuff from
1260 DESC renamed to DESC.in.
1261 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1262 Converted everything from K&R to ANSI C.
1263 Decorated with const where appropriate.
1264 Cast string constants with `String' and `char *' where appropriate.
1265 Made it compile with C++ (used as a C compiler).
1266 Removed other minor compiler warnings.
1268 * src/devices/xditview/device.c: Include config.h, string.h, and
1270 Don't declare `exit', `strtok', `strchr', and `getenv'.
1273 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1276 * src/devices/xditview/xditview.c: Include config.h.
1277 Include stdio.h earlier.
1278 Protect declaration of `popen' and `pclose' with
1279 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1280 Replace `caddr_t' with `XtPointer'.
1281 (MakePromptFunc): New typedef.
1282 (DoPrint): Use RETSIGTYPE.
1283 (promptfunction): Change type to MakePromptFunc.
1284 (MakePrompt): Use MakePromptFunc for third argument.
1287 * src/devices/xditview/ad2c: Add casts to `String'.
1289 * src/include/XFontName.h (XFontNameString): Don't use array
1291 Add prototypes for `XParseFontName', `XFormatFontName',
1292 `XCompareFontName', and `XCopyFontName'.
1294 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1297 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1298 Don't declare `XParseFontName' and `XFormatFontName'.
1300 (main): Remove `optind' and `optarg'.
1302 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1303 (to select programs which need X).
1304 Make XDEVIDIRS depend on `FORCE'.
1305 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1307 (MDEFINES): Updated.
1308 (LIBDIRS): Use XLIBDIRS.
1309 (CPROGDIRS): Use XPROGDIRS.
1310 (DEVDIRS): Remove font directories for gxditview.
1311 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1312 (EXTRADIRS): Remove src/xditview.
1314 * Makefile.sub (DISCLEANFILES): Updated.
1316 * Makefile.comm (LIBXUTIL): New variable.
1317 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1318 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1320 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1322 * aclocal.m4 (GROFF_X11): New function.
1324 * configure.ac: Call GROFF_X11.
1325 Don't create src/xditview/Imakefile.
1326 Don't emit notice how to build gxditview.
1328 * configure: Regenerated.
1330 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1332 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1334 * Makefile.in (CPPFLAGS): Define.
1335 (MDEFINES): Add CPPFLAGS.
1337 2004-05-27 Werner LEMBERG <wl@gnu.org>
1339 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1341 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1343 Fix problems with `friend name injections'.
1345 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1346 make_script_box), src/roff/troff/div.h (end_diversions),
1347 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1350 2004-05-25 Bernd Warken <bwarken@mayn.de>
1352 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1354 2004-05-25 Werner LEMBERG <wl@gnu.org>
1356 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1357 src/libs/libgroff/color.cpp: Include lib.h.
1359 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1361 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1362 through Forte 6u1, and for how to get GNU make on Solaris.
1364 2004-05-24 Werner LEMBERG <wl@gnu.org>
1366 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1369 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1371 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1374 2005-05-14 Werner LEMBERG <wl@gnu.org>
1376 * REVISION: Set to 2.
1378 * aclocal.m4 (GROFF_STDINT_H): Removed.
1379 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1381 * configure.ac: Updated.
1382 * configure, src/include/config.hin: Regenerated.
1384 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1385 inttypes.h conditionally.
1387 2003-05-13 Werner LEMBERG <wl@gnu.org>
1389 Version 1.19.1 released
1390 =======================
1392 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1394 * src/preproc/refer/label.y (same_author_last_name,
1395 same_author_name): Handle empty sort keys.
1397 2004-05-10 Werner LEMBERG <wl@gnu.org>
1399 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1402 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1403 doc-str-Lb-librt): Reset font.
1404 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1405 Provide `doc-str-Lb' to reset font.
1406 * tmac/groff_mdoc.man: Updated.
1408 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1410 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1411 snprintf versions which don't conform to ANSI C 99 (this is,
1412 counting the string's trailing null byte in the return value).
1414 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1416 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1417 that all implementations of sprintf handle null pointers correctly.
1419 2004-05-04 Werner LEMBERG <wl@gnu.org>
1421 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1422 Document `.U' register.
1424 * src/roff/troff/env.cpp (environment::mark_last_line)
1425 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1427 2004-05-04 Larry Kollar <kollar@alltel.net>
1429 New read-only register `.U'; it returns 1 in safer mode and 0
1432 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1435 2004-05-03 Werner LEMBERG <wl@gnu.org>
1437 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1439 2004-04-17 Werner LEMBERG <wl@gnu.org>
1441 * src/include/font.h (font): Use `int' for ch_index.
1442 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1443 font::compact): Updated.
1445 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1448 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1449 (hyphen_word): Fix compiler warnings.
1450 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1453 (get_delim_number, get_line_arg): Change second argument type to
1455 (macro_header::copy, token::next, do_define_string,
1456 do_define_character, substring_request, asciify_macro,
1457 unformat_macro, read_size, non_interpreted_node::interpret,
1458 while_request, main: Fix compiler warnings.
1459 (read_color_draw_node): Initialize `col'.
1461 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1462 `start_col' and `end_col' of type `int'.
1463 (vertical_rule): Make `col' of type `int'.
1465 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1468 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1470 (format_serial): Use them to remove dependency on ASCII.
1472 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1474 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1477 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1479 (glyph): Change type of `hpos' to `int'.
1481 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1482 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1484 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1486 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1488 2004-04-16 Werner LEMBERG <wl@gnu.org>
1490 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1491 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1492 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1493 `double' instead of `float' everywhere.
1494 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1496 (main): Add return value.
1497 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1499 Update all user functions.
1501 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1502 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1503 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1504 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1505 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1506 src/roff/troff/input.cpp, src/roff/troff/request.h,
1507 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1510 * src/utils/indxbib/signal.c: Include stdlib.h.
1512 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1514 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1515 before the first page.
1517 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1519 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1520 (doc-operating-system-*): Updated.
1521 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1522 (doc-str-Lb-*): Add more library names.
1524 2004-04-10 Art Haas <ahaas@airmail.net>
1526 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1529 2004-04-09 Art Haas <ahaas@airmail.net>
1531 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1533 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1535 * arch/misc/shdeps.sh: Generate better comment for sed script.
1537 2004-04-08 Art Haas <ahaas@airmail.net>
1539 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1540 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1541 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1542 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1543 (polyfill), src/preproc/grn/main.cpp (polyfill),
1544 src/preproc/refer/command.cpp (command_table),
1545 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1546 gcc 3.5 doesn't like).
1548 2004-04-08 Werner LEMBERG <wl@gnu.org>
1550 Removing many compiler warnings. groff should now compile with
1551 a C++ compiler used for C files also. [Simple variable renamings
1552 to avoid shadowing aren't logged in detail.]
1554 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1555 (draw_dvi_printer::draw) ['c']: Enclose in block.
1557 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1558 (page::add_line): Fix typos.
1559 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1561 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1562 Some local variable renamings.
1563 * src/devices/grolbp/lbp.h: Some local variable renamings.
1565 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1568 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1569 Remove redundant local variable declaration.
1570 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1571 Don't use `caddr_t' but `void *'.
1572 Enclose functions with `extern "C"' for C++.
1574 * src/libs/libdriver/input.cpp (remember_filename,
1575 remember_source_filename): Use cast for string constant.
1577 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1578 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1579 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1580 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1582 Enclose functions with `extern "C"' for C++.
1583 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1584 (needs_quoting): Return `int'.
1585 (quote_arg): Add proper casts to malloc and realloc.
1586 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1587 various MS Windows environments.
1588 (spawnvp_wrapper): Add proper cast to malloc.
1590 * src/preproc/eqn/box.h: Remove redundant declarations of
1591 `make_script_box', `make_mark_box' and `make_lineup_box'.
1592 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1593 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1596 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1597 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1598 (dx, dy): Renamed functions to...
1599 (deltax, deltay): This.
1600 * src/preproc/grn/main.cpp: Some local variable renamings.
1601 (deffont): Add `const'.
1602 (initpic, conv): Use cast for string constant.
1604 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1605 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1606 (char_buffer::run_output_filter): Second argument is unused.
1607 * src/preproc/html/pushback.cpp: Some local variable renamings.
1609 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1610 * src/preproc/pic/object.cpp: Some local variable renamings.
1612 * src/preproc/refer/label.y (lookup_label): Remove redundant
1613 declaration of local variable.
1615 * src/preproc/soelim.cpp: Remove redundant declaration of
1616 `interpret_lf_args'.
1618 * src/preproc/tbl/main.cpp: Some local variable renamings.
1620 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1621 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1622 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1623 Don't use C++-style comments.
1625 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1626 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1627 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1629 * src/roff/troff/div.h: Remove redundant declaration of
1631 * src/roff/troff/troff.h: Remove redundant declaration of
1633 * src/roff/troff/input.cpp: Remove redundant declaration of
1634 `handle_first_page_transition' and `process_input_stack'.
1636 * src/utils/hpftodit.cpp: Some local variable renamings.
1638 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1640 Don't define RETSIGTYPE.
1641 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1643 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1644 (error): Use `const' in argument.
1645 (main): Remove redundant declaration of `optind'.
1646 Move declaration of `Version_string' to top-level.
1648 * PROBLEMS: Document difficulties compiling signal.c if a C++
1649 compiler is used for C.
1651 2004-04-07 Werner LEMBERG <wl@gnu.org>
1653 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1655 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1657 Make scripts like nroff.sh and neqn.sh portable across various
1658 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1659 non-POSIX path separators. The idea is to extend those scripts to
1660 decide at run-time (of the script) which path separator to use.
1662 * arch/misc/Makefile.sub: New file.
1663 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1664 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1665 a proper definition of the variable `GROFF_RUNTIME'.
1667 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1668 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1669 (PROGDEPDIRS): New variable.
1671 (PROGDIRS): Add PROGDEPDIRS.
1673 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1674 Don't substitute @SEP@ and @BINDIR@.
1675 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1676 (PATH): Use GROFF_RUNTIME.
1678 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1679 Don't substitute @SEP@ and @BINDIR@.
1680 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1681 (PATH): Use GROFF_RUNTIME.
1683 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1685 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1686 Cygwin which doesn't handle stderr correctly.
1688 2004-03-08 Werner LEMBERG <wl@gnu.org>
1690 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1691 against empty argument. Problem reported by <cgd@broadcom.com>.
1693 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1695 * Makefile.in (SEP): Replaced with...
1696 (RT_SEP, SH_SEP): Separators for the target platform's native path
1697 separator and the build environment, respectively.
1698 (fontpath, tmacpath): Use RT_SEP.
1699 (MDEFINES): Updated.
1701 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1702 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1703 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1704 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1706 2004-03-05 Werner LEMBERG <wl@gnu.org>
1708 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1709 reduce alignment problems with newer printers which use built-in
1710 TrueType fonts (instead of the older Intellifonts). The ideal
1711 solution is to provide a second set of groff metric files, but this
1712 is extremely time-consuming to produce, given that HP's metric
1713 files are very rudimentary.
1715 2004-03-01 Werner LEMBERG <wl@gnu.org>
1717 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1718 s/operand/argument/ in error message.
1720 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1722 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1725 2004-03-01 Antti Kantee <pooka@netbsd.org>
1727 * tmac/s.tmac (XE): Fix error message.
1729 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1731 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1734 * src/roff/groff/pipeline.c: Declare strcasecmp.
1735 (run_pipeline) [_WIN32]: Use function name variants which don't
1737 Fix stream handling.
1739 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1741 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1742 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1743 for platforms which use the native Win32 runtime libraries.
1744 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1746 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1747 QUOTE_ARG_REALLOC_ERROR): Fix string.
1749 * src/preproc/html/pre-html.cpp: Remove declaration of
1751 Don't use __MINGW32__.
1752 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1753 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1754 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1755 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1756 calls to `set_redirection' and `WAIT'.
1757 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1758 Fix calls to `set_redirection' and `save_and_redirect'.
1759 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1760 to `set_redirection' and `save_and_redirect'.
1761 (usage): Fix message.
1762 (makeTempFiles, main): Use `DEBUG_FILE'.
1764 2004-02-21 Werner LEMBERG <wl@gnu.org>
1766 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1768 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1770 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1771 quoting for MSVC's spawn* and exec* functions.
1772 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1773 spawnvp with proper quoting for MSVC.
1775 * src/libs/libgroff/assert.cpp (program_name),
1776 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1777 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1779 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1781 * src/include/error.h (program_name): Declare as `extern "C"'.
1782 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1784 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1786 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1788 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1790 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1792 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1794 (sbasename) [__MSDOS__ || ...]: New function.
1795 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1797 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1798 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1800 Use STDOUT_FILENO instead of hardcoded file handle.
1801 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1803 2004-02-19 Werner LEMBERG <wl@gnu.org>
1805 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1806 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1808 2004-02-18 Werner LEMBERG <wl@gnu.org>
1810 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1811 new font and mapping files.
1813 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1814 Keith Marshall <keith.d.marshall@ntlworld.com>
1816 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1817 an input pipe. This is needed for the MSVC compiler to make troff's
1820 * src/roff/troff/div.cpp: Include nonposix.h.
1821 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1823 2004-02-17 Werner LEMBERG <wl@gnu.org>
1825 * font/devlj4/generate/special.awk: New script.
1826 * font/devlj4/generate/Makefile (S): Use special.awk.
1827 * font/devlj4/*: Regenerated, including the following new files:
1828 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1829 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1830 * NEWS: Document new lj4 fonts and revised hpftodit.
1832 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1834 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1836 2004-01-25 Werner LEMBERG <wl@gnu.org>
1838 * src/libs/libgroff/progname.cpp: Replaced with...
1839 * src/libs/libgroff/progname.c: New file.
1840 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1842 2004-01-17 Werner LEMBERG <wl@gnu.org>
1844 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1846 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1848 * font/devlj4/generate/wingdings.map,
1849 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1850 Use groff glyph names where possible.
1851 * src/devices/grolj4/lj4_font.man: Minor updates.
1853 2004-01-13 Werner LEMBERG <wl@gnu.org>
1855 * tmac/www.tmac (DC): Handle TTY devices.
1857 * doc/webpage.ms: Document viewCVS from ffii.org.
1858 * NEWS, README: Updated.
1860 * src/roff/groff/groff.man: Mention lj4_font man page.
1862 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1864 (FONTS): Add SYMBOL and WINGDINGS.
1865 (SYMBOL, WINGDINGS): New targets.
1867 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1869 * src/devices/grolj4/lj4_font.man: New man page.
1870 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1871 * src/devices/grolj4.man: Mention lj4_font man page.
1873 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1874 * src/utils/hpftodit/hpftodit.man: Document it.
1876 Remove details about fonts (which are now in lj4_font.man).
1878 * font/devlj4/generate/symbol.map,
1879 font/devlj4/generate/wingdings.map: New files.
1881 2004-01-12 Werner LEMBERG <wl@gnu.org>
1883 * README: Mention ffii's viewcvs access.
1885 2004-01-09 Werner LEMBERG <wl@gnu.org>
1887 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1889 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1891 Revert most of the change from 2004-01-03 to better control used
1894 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1895 (text_symbol_sets, special_symbol_sets): New arrays.
1896 (symbol_set_table): New global variable.
1897 (read_symbol_sets): Use search order given in the text_symbol_sets
1898 and special_symbol_sets arrays. If command line flag -a is not
1899 given, search both arrays.
1900 (output_charset): Require x_height_tag only for command line flag -i.
1902 2004-01-06 Werner LEMBERG <wl@gnu.org>
1904 Implement string-valued registers \n[.m] and \n[.M] to return the
1905 name of the current drawing and background color, respectively.
1907 * src/roff/troff/symbol.h: Moved to...
1908 * src/include/symbol.h: Here.
1909 Small fixes to make it work outside of the `troff' directory.
1910 * src/roff/troff/symbol.cpp: Moved to...
1911 * src/libs/libgroff/symbol.cpp: Here.
1912 Small fixes to make it work outside of the `troff' directory.
1914 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1915 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1918 * src/include/color.h: Include symbol.h.
1919 (color): Add new field `nm'.
1920 * src/libs/libgroff/color.cpp (color::color): Updated.
1922 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1923 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1924 src/roff/troff/reg.cpp: Don't include symbol.h.
1926 * src/roff/troff/env.cpp: Don't include symbol.h.
1927 (environment::get_glyph_color_string,
1928 environment_get_fill_color_string): New member functions.
1929 (init_env_requests): Handle `.m' and `.M' registers.
1930 * src/roff/troff/input.cpp: Don't include symbol.h.
1931 (default_symbol): Moved to symbol.cpp/symbol.h.
1932 (do_glyph_color, do_fill_color, define_color): Pass symbol name
1933 to color constructor.
1934 * src/roff/troff/env.h: Updated.
1936 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1937 Document new registers.
1939 2004-01-05 Werner LEMBERG <wl@gnu.org>
1941 * src/roff/troff/node.cpp (space_node::get_breakpoints,
1942 space_node::nbreaks): Protect against zero `next' field.
1944 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
1946 In hpftodit, use the symbol sets offered in the TFM.
1948 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1949 (symbol_set, text_symbol_sets, special_symbol_sets,
1950 symbol_set_table): Removed.
1951 (get_printcode): Removed.
1952 (read_symbol_sets): Initialize `symbol_set' field with
1954 Simplify code to just use the `kind' value.
1955 (output_charset): Improve output formatting.
1956 (dump_symbols): Simplified.
1958 2004-01-02 Werner LEMBERG <wl@gnu.org>
1960 * font/devlj4/generate/text.map: Add more MSL numbers.
1962 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
1964 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1965 (text_symbol_sets): Add more symbol sets.
1966 (debug_flag): New static variable (moved from `main').
1967 (get_printcode, show_symset): New functions.
1968 (main): Remove `debug_flag'.
1969 (output_charset): Use `show_symset'.
1970 (dump_symbols): Use `show_symset'.
1971 Print symsets for all glyphs.
1972 (read_map): Actually call `unicode_to_ucode_make' but this time
1975 2004-01-01 Werner LEMBERG <wl@gnu.org>
1977 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1978 Fix placement of comments.
1980 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
1982 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1983 option `-d' is given.
1984 (output_charset): Improve warning messages to give more information.
1985 (dump_symbols): Make information more precise.
1987 (read_map): Don't call unicode_to_ucode_name; the glyph names must
1988 appear as-is and shouldn't be decomposed.
1990 2003-12-31 Werner LEMBERG <wl@gnu.org>
1992 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1993 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1994 (FONTS): Add TrueType font families Arial and Times New Roman.
1995 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1996 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1999 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2001 * test-groff.in (SEP): Quote value.
2002 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2003 `tem' to `char*' to avoid deallocation of a pointer to a constant
2004 object which some compilers don't like.
2006 2003-12-31 Werner LEMBERG <wl@gnu.org>
2008 * font/devlj4/generate (text.map, special.map): Rewritten to work
2009 with the new hpftodit version.
2011 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2013 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2014 set and 8bit character code for all glyphs also.
2016 2003-12-30 Werner LEMBERG <wl@gnu.org>
2018 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2020 2003-12-29 Werner LEMBERG <wl@gnu.org>
2022 More fixes for MSVC compiler.
2024 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2027 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2028 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2029 (getpid) [_MSC_VER]: Remove.
2030 Include direct.h and process.h conditionally.
2032 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2033 parentheses for a_delete.
2035 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2037 * test-groff: Replaced with...
2038 * test-groff.in: This new template to handle path separator
2041 * configure.ac: Check for direct.h and process.h.
2042 Generate test-groff script.
2043 * configure, src/include/config.hin: Regenerated.
2045 2003-12-28 Werner LEMBERG <wl@gnu.org>
2047 Add integral extension glyph.
2048 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2050 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2052 * font/devps/generate/textmap: Provide entry for `integralex' to
2053 override (old) PUA value of the AGL.
2054 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2055 * font/devps/*: Regenerated.
2057 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2058 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2060 2003-12-27 Werner LEMBERG <wl@gnu.org>
2062 Add forgotten `coproduct' symbol (already available for DVI).
2064 * font/devhtml/R.proto, font/devps/generate/textmap,
2065 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2066 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2067 U+2210 (\[coproduct]).
2069 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2071 hpftodit has been extended to handle TrueType metric files and
2072 more glyphs. See hpftodit.man for more details.
2074 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2075 ctype.h, and unicode.h.
2076 s/msl/charcode/ everywhere since we now handle Unicode values also.
2077 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2078 Use it where appropriate.
2079 (MULTIPLIER): Replaced with...
2080 (multiplier): New global static variable.
2082 (tag_type): Add more TFM tags.
2083 (tag_name): New array.
2084 (ENUM_TYPE, FLOAT_TYPE): Removed.
2085 (BYTE_TYPE): New value assigned.
2086 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2087 (text_symbol_sets, special_symbol_sets): Extended to cover more
2089 (check_type): Add return value.
2090 (check_units): Add parameters to get ppi and upem values.
2091 Handle TrueType TFM data.
2092 (output_font_name): New function.
2093 (output_charset): Add parameter to handle TFM type.
2094 Handle TrueType TFMs also.
2095 (em_fract): New macro.
2096 (dump_tags): Be much more verbose and handle more tags.
2097 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2098 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2100 (read_map): Add parameter to handle TFM type.
2101 Handle both MSL and Unicode mappings.
2102 (main): Add two new command line options `-a' and `-q'.
2103 Updated to make use of new functions.
2106 * src/utils/hpftodit/hpuni.cpp: New file.
2108 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2111 2003-12-25 Werner LEMBERG <wl@gnu.org>
2113 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2115 2003-12-24 Werner LEMBERG <wl@gnu.org>
2117 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2118 by Michail Vidiassov <master@iaas.msu.ru>.
2120 2003-12-20 Werner LEMBERG <wl@gnu.org>
2122 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2124 Add missing latin-2 glyphs.
2125 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2127 * tmac/troffrc: Load `composite.tmac' earlier.
2129 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2130 u00{53,73}_0327, and u0049_0307.
2131 * tmac/X.tmac: Add u00{47,67}_0306.
2132 * tmac/tty-char.tmac: Use composite glyph names for readability.
2136 * src/include/unicode.h: Remove `extern' keywords.
2138 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2140 * tmac/latin5.tmac: New file.
2142 2003-12-19 Werner LEMBERG <wl@gnu.org>
2144 Add some glyphs needed for Turkish.
2146 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2149 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2150 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2151 u00{53,73}_0327, and u0049_0307.
2153 2003-12-18 Werner LEMBERG <wl@gnu.org>
2155 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2157 Remove trailing zeros.
2159 2003-12-17 Werner LEMBERG <wl@gnu.org>
2161 Make \? transparent to end-of-sentence recognition.
2163 * src/roff/troff/input.cc (non_interpreted_node): Add
2164 `ends_sentence' member function.
2166 2003-12-16 Werner LEMBERG <wl@gnu.org>
2168 * doc/groff.texinfo: Document `dt' request correctly.
2169 Other minor typographical improvements.
2171 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2173 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2175 2003-12-10 Richard Stallman <rms@gnu.org>
2177 * LICENSE: Better wording.
2179 2003-12-09 Werner LEMBERG <wl@gnu.org>
2181 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2182 * configure, NEWS: Updated.
2184 2003-12-08 Werner LEMBERG <wl@gnu.org>
2186 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2188 2003-12-07 Bernd Warken <bwarken@mayn.de>
2192 2003-12-07 Werner LEMBERG <wl@gnu.org>
2194 * INSTALL: Improved.
2196 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2198 Use path separator character of target platform for compiled-in
2201 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2202 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2203 * configure: Regenerated.
2204 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2206 2003-12-05 Werner LEMBERG <wl@gnu.org>
2208 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2209 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2211 2003-12-04 Bernd Warken <bwarken@mayn.de>
2213 * LICENSE: New file.
2215 2003-12-03 Werner LEMBERG <wl@gnu.org>
2217 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2218 ligatures present in AFM files since groff currently only
2219 understands some standard ligatures and nothing else.
2221 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2223 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2226 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2229 Don't use Unix wait flags.
2231 2003-12-02 Werner LEMBERG <wl@gnu.org>
2233 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2234 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2235 src/roff/troff/uniuni.cpp: Moved to...
2236 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2237 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2238 src/libs/libgroff/uniuni.cpp: Here.
2240 * src/include/Makefile.sub.old (HDRS),
2241 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2242 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2244 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2246 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2250 2003-12-01 Werner LEMBERG <wl@gnu.org>
2252 * groff.texinfo: Document special behaviour of `.vs 0'.
2253 Improve documentation of `cflags' request.
2256 2003-11-29 Werner LEMBERG <wl@gnu.org>
2258 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2259 * font/devlj4/CORONET: Regenerated.
2261 2003-11-24 Werner LEMBERG <wl@gnu.org>
2263 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2264 if processing hyphenation patterns in traditional mode.
2265 Improve error messages.
2267 2003-11-20 Werner LEMBERG <wl@gnu.org>
2269 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2270 troff_output_file::put_char): Fix type of local variable `c'.
2272 2003-11-19 Werner LEMBERG <wl@gnu.org>
2274 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2276 (i_to_a): Removed. libgroff already provides this function.
2277 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2279 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2281 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2284 2003-11-17 Werner LEMBERG <wl@gnu.org>
2286 * COPYING: Use correct version.
2288 2003-11-11 Werner LEMBERG <wl@gnu.org>
2290 LynxOS 4.0.0 doesn't declare vfprintf.
2292 * configure.ac: Check for vfprintf.
2293 * configure: Regenerated.
2294 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2295 * src/include/config.hin: Regenerated.
2297 2003-11-10 Werner LEMBERG <wl@gnu.org>
2299 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2301 * configure.ac: Check for vsnprintf.
2302 * configure: Regenerated.
2303 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2305 * src/include/config.hin: Regenerated.
2307 2003-11-09 Werner LEMBERG <wl@gnu.org>
2309 * aclocal.m4: Updated syntax to autoconf 2.59.
2310 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2311 Don't check for gsos2.
2312 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2313 working abs_top_srcdir and abs_top_builddir.
2315 * configure.ac: Updated syntax to autoconf 2.59.
2316 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2317 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2318 * configure: Regenerated.
2320 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2321 s/@groff_top_builddir@/@abs_top_builddir@/.
2323 * src/roff/groff/pipeline.c (xstrsignal):
2324 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2326 2003-11-07 Werner LEMBERG <wl@gnu.org>
2328 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2329 make start angle smaller than end angle to circumvent a bug in tpic
2330 handling of some versions of dvipdfm (and dvipdfmx).
2332 2003-10-30 Werner LEMBERG <wl@gnu.org>
2334 * src/devices/grops/grops.man: Improve section on creating EPS.
2336 2003-10-29 Werner LEMBERG <wl@gnu.org>
2338 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2341 2003-10-28 Werner LEMBERG <wl@gnu.org>
2343 * doc/groff.texinfo: Fix documentation of `.if'.
2345 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2347 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2348 the form `uniXXXX' also.
2350 2003-10-27 Werner LEMBERG <wl@gnu.org>
2352 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2353 contrib/pic2graph/pic2graph.sh: Implement secure management of
2355 Pass `-P-pletter' to groff to avoid data outside of the converted
2356 area -- some versions of `convert' (for example 5.3.8) don't check
2357 the bounding box of the image but always use a fixed image size
2358 (letter paper format).
2359 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2360 contrib/pic2graph/pic2graph.man: Updated.
2362 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2364 2003-10-26 Werner LEMBERG <wl@gnu.org>
2366 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2367 troff_output::simple_ellipse, troff_output::simple_arc,
2368 troff_output::simple_line, troff_output::simple_spline,
2369 troff_output::simple_polygon): Insert a space before arguments.
2370 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2371 latter doesn't produce a node, so the following `.sp -1' would do
2373 Don't emit `.sp -1' after \M. This also doesn't produce a token
2374 (and we don't have to care about compatibility mode).
2375 (troff_output::set_color, troff_output::reset_color): Don't emit
2376 `.sp -1' after \M and \m.
2378 * src/roff/troff/input.cpp (old_have_input): New global variable.
2379 (input_stack::get): Handle `old_have_input'.
2380 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2381 `trapping_blank_line' depending on `old_have_input', not
2384 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2386 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2387 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2388 default directory names for temporary files.
2389 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2391 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2392 [__MSDOS__] (run_pipeline): Honour environment variables.
2393 Don't use `tmpnam' but `tempnam' to work around messy
2396 * README.MinGW: New file.
2398 2003-10-16 Werner LEMBERG <wl@gnu.org>
2400 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2401 `(*t)->next' without testing validity of `*t'.
2402 (usage): Make it more readable.
2404 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2406 Make html device run under both MS-DOS and Win32.
2408 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2409 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2410 spawn or fork+exec has to be used, and whether parent must sleep
2411 until the child process terminates. Used in
2412 `char_buffer::run_output_filter'.
2413 (copyofstdoutfd): Removed.
2414 (char_buffer): Replace `write_file_html' and `write_file_troff'
2415 member functions with `emit_troff_output' and `run_output_filter'.
2416 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2418 (replaceFd): Replaced with...
2419 (set_redirection): New auxiliary function.
2420 (waitForChild): Replaced with...
2421 (save_and_redirect): New auxiliary function for.
2423 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2426 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2428 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2429 (GROFF_LIBC): New function.
2430 * configure.ac: Call GROFF_LIBC.
2432 * configure: Regenerated.
2434 * src/include/lib.h: Handle __MINGW32__.
2435 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2436 Add macro for `pipe'.
2439 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2442 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2445 2003-10-13 Werner LEMBERG <wl@gnu.org>
2447 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2450 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2453 2003-10-12 Werner LEMBERG <wl@gnu.org>
2455 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2456 src/roff/troff/input.cc (usage): Updated.
2458 * NEWS, doc/groff.texinfo: Updated.
2460 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2462 * src/libs/libgroff/searchpath.cpp
2463 (search_path::open_file_cautious): New function which also handles
2464 `-' as stdin and stdout depending on the access mode.
2465 * src/include/searchpath.h (search_path): Updated.
2467 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2468 * src/devices/grops/ps.h: Include `searchpath.h'.
2469 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2470 Open resource file with `include_search_path.open_file_cautious'.
2471 * src/devices/grops/grops.man: Document new `-I' switch.
2473 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2474 (main), src/devices/grolj4/lj4.cpp (main),
2475 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2477 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2479 (include_search_path): New global variable.
2480 (include_path_append): Removed.
2481 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2482 (do_file): Simplify, using new
2483 `include_search_path.open_file_cautious'.
2485 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2487 (main): Pass arguments to `-I' to both troff and devices.
2488 Improve handling of `-V'.
2489 * src/roff/groff/groff.man: Document changes to -I and -V.
2491 * src/roff/troff/input.cpp (include_search_path): New global
2493 (next_file, source, ps_bbox_request, transparent_file,
2494 process_input_file): Use new
2495 `include_search_path.open_file_cautious'.
2496 (main) Handle `-I' switch.
2497 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2498 Use new `include_search_path.open_file_cautious'.
2499 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2500 * src/roff/troff/troff.man: Document new `-I' switch.
2502 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2504 Support multiple calls of .Lb in LIBRARY section.
2506 * tmac/doc-common (doc-in-library-section): New register.
2507 (doc-section-library): New string.
2508 (Sh): Set `doc-in-library-section'.
2510 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2511 if in LIBRARY section.
2512 * tmac/doc.tmac (doc-save-global-vars): Updated.
2513 * NEWS, tmac/groff_mdoc.man: Updated.
2515 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2517 * tmac/doc-common (doc-default-operating-system): New variable.
2520 2003-09-08 Werner LEMBERG <wl@gnu.org>
2522 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2524 2003-08-31 Werner LEMBERG <wl@gnu.org>
2526 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2527 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2528 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2529 $(DEVFILES) are not empty.
2530 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2532 2003-08-26 Chuck Silvers <chuq@chuq.com>
2534 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2535 with parallel runs of `make'.
2537 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2539 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2540 insert SORT_SEP. With certain combinations of sort specifications,
2541 refer sorted entries in the wrong order. In particular, entries
2542 with a missing field should be be sorted before all entries that
2543 have that field, before refer looks to the next field.
2545 2003-08-23 Werner LEMBERG <wl@gnu.org>
2547 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2548 g++ linker is used. Reported by Mark J. Reed
2549 <mark.reed@turner.com>.
2551 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2553 Add key character `x' to tbl which makes tbl call a user-defined
2554 macro on a table cell.
2556 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2557 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2558 `set_modifier' after printing the compatibility request.
2559 (set_modifier): Print call to `m->macro' if not empty.
2560 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2562 (process_format): Implement cases `x' and `X'.
2563 * src/preproc/tbl/tbl.man, NEWS: Updated.
2565 2003-08-15 Werner LEMBERG <wl@gnu.org>
2567 * doc/groff.texinfo: Minor fixes.
2569 2003-08-09 Werner LEMBERG <wl@gnu.org>
2571 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2573 2003-08-07 Werner LEMBERG <wl@gnu.org>
2575 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2576 argument list to nothing if there is no file to match. Use `ls' as
2577 a protection, similar to autoconf.
2579 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2580 empty argument lists.
2582 * doc/groff.texinfo: Improve documentation how vertical spacing
2583 and line breaks interact.
2586 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2588 2003-08-03 Werner LEMBERG <wl@gnu.org>
2590 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2591 EPS (using eps2eps or similar programs to compute the bounding box).
2593 2003-07-24 Werner LEMBERG <wl@gnu.org>
2595 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2596 * doc/texinfo.tex: Updated from texinfo 4.6.
2597 * README.CVS: From now on we need texinfo 4.6.
2599 2003-07-23 Werner LEMBERG <wl@gnu.org>
2601 Add requests `dei1' and `ami1' for completeness.
2603 * src/roff/troff/input.cc (calling_mode): Remove
2604 CALLING_DISABLE_COMP.
2605 (comp_mode): New enumeration.
2606 (do_define_string, define_string, define_nocomp_string,
2607 append_string, append_nocomp_string): Updated.
2608 (do_define_macro): Add third parameter.
2609 (define_macro, define_nocomp_macro, define_indirect_macro,
2610 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2611 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2614 (init_input_requests): Add `dei1' and `ami1'.
2616 * tmac/trace.tmac: Handle de1 and am1.
2617 (de): Improve tracing message.
2618 (am): Add missing `do'.
2621 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2622 Document new requests.
2624 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2626 Add option -G to .MPIMG to insert a gap between text and the image.
2628 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2629 www-finish-left-ll): Updated.
2630 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2631 (MPIMG): Make option -L and -R optional.
2632 Implement option -G.
2634 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2636 * src/devices/grohtml/post-html.cpp
2637 (html_printer::do_file_components): Don't use `stdout' as lvalue
2638 since it can be a macro.
2640 2003-07-22 Werner LEMBERG <wl@gnu.org>
2642 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2643 the corresponding test in aclocal.m4.
2645 2003-07-21 Werner LEMBERG <wl@gnu.org>
2647 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2648 names but RGB values directly. Otherwise pnmtopng depends on
2649 an external file `rgb.txt' which maps colour names to values.
2651 2003-07-20 Werner LEMBERG <wl@gnu.org>
2653 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2654 * configure, src/include/config.hin: Regenerated.
2656 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2658 2003-07-19 Werner LEMBERG <wl@gnu.org>
2660 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2662 2003-07-18 Werner LEMBERG <wl@gnu.org>
2664 * *.man: Switch to non-compatibility mode temporarily if GNU
2665 syntax extensions are used in the particular man page.
2667 * PROBLEMS: Add solutions for SGR problems.
2669 2003-07-17 Werner LEMBERG <wl@gnu.org>
2671 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2672 used to change the drawing scheme.
2674 * src/devives/grotty/tty.cpp (bold_flag_option,
2675 underline_flag_option, italic_flag_option, reverse_flag_option,
2676 bold_underline_mode_option): New global variables.
2677 (update_options): New function.
2678 (tty_printer::special): Call update_options.
2679 (main): Don't set xxx_flag but xxx_flag_option, then call
2682 2003-07-14 Werner LEMBERG <wl@gnu.org>
2684 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2686 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2688 (hline_char, vline_char): New global variables.
2689 (tty_printer::tty_printer): Initialize them.
2690 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2691 horizontal and vertical lines.
2692 (crossings): New global array.
2693 (tty_printer::end_page): Use it to determine the proper crossing
2694 character for -Tutf8.
2696 2003-07-12 Werner LEMBERG <wl@gnu.org>
2698 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2699 (HTMLDOCFILES): Revert to `pic.html'.
2700 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2702 2003-07-11 Werner LEMBERG <wl@gnu.org>
2704 * doc/pic.ms: Improve documentation of absolute coordinates.
2705 Document absolute positioning of pictures.
2707 * NEWS: Add new pic capability.
2709 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2711 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2714 2003-07-07 Werner LEMBERG <wl@gnu.org>
2716 Implement support for dashed and dotted ellipses in pic. Based on
2717 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2719 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2720 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2721 functions. Ellipse arcs are approximated with circle arcs.
2722 * src/preproc/pic/common.h (common_output): Updated.
2723 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2725 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2727 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2729 2003-07-06 Werner LEMBERG <wl@gnu.org>
2731 Make grotty work on platforms which have unsigned char as the
2732 default for char. Based on a patch by Thomas Klausner
2735 * src/devices/grotty/tty.cpp (schar): New typedef.
2736 Updated calls to declare_ptable and implement_ptable.
2737 (glyph): Use schar for back_color_idx and fore_color_idx.
2738 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2739 (tty_printer::tty_color, tty_printer::tty_printer,
2740 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2742 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2744 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2745 * src/roff/nroff/nroff.man: Updated.
2747 2003-07-05 Werner LEMBERG <wl@gnu.org>
2749 * NEWS, tmac/groff_www.man: Updated.
2750 * doc/Makefile.sub: Updated.
2752 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2754 Implement support for multiple HTML output files.
2756 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2757 -j command line option.
2759 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2761 (file): New fields `new_output_file', `require_links',
2763 (file::file): Updated.
2764 (files::set_file_name, files::set_links_required,
2765 files::are_links_required, files::is_new_output_file,
2766 files::file_name, files::next_file_name): New functions.
2767 (header_desc): New fields `no_of_level_one_headings',
2769 (header_desc::header_desc): Updated.
2770 (header_desc::write_headings): Handle multiple files.
2771 (html_printer::write_header): Save file name in which header occurs.
2772 (html_printer::determine_header_level): Possibly split files on
2774 (html_printer::do_links, html_printer::troff_tag): Updated.
2775 (html_printer::insert_split_file, html_printer::do_job_name,
2776 html_printer::emit_link, html_printer::write_navigation,
2777 html_printer::do_file_components): New functions.
2778 (html_printer::~html_printer): Handle multiple files.
2779 (main): Handle command line option `-j'.
2781 * src/devices/grohtml/grohtml.man: Updated.
2783 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2786 * tmac/www.tmac (JOBNAME): New macro.
2787 * tmac/s.tmac (SH-NO-TAG): New macro.
2788 (@SH): Call SH-NO-TAG.
2791 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2793 * tmac/groff_mdoc.man: Improve documentation of punctuation
2796 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2798 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2800 2003-07-03 Werner LEMBERG <wl@gnu.org>
2802 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2804 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2806 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2807 after `/*' and `*/'.
2809 (Fn, Fo): Reduce indentation in synopsis.
2811 * tmac/doc-common (doc-check-depth): New macro.
2812 (doc-end-macro, Sh, Ss): Use it.
2813 (Cd): Fix behaviour in synopsis.
2814 (In): Make it parsed and callable.
2815 If not in the synopsis, represent the C header file enclosed in
2817 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2818 Use minus, not hyphen.
2820 * tmc/groff_mdoc.man: Updated.
2822 2003-07-01 Werner LEMBERG <wl@gnu.org>
2824 Integrated grap2graph, contributed by Eric S. Raymond.
2826 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2828 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2829 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2831 2003-07-01 Colin Watson <cjwatson@debian.org>
2833 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2834 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2836 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2838 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2840 2003-06-31 Werner LEMBERG <wl@gnu.org>
2842 * doc/Makefile.sub (CLEANADD): Remove all files created by
2843 running `make groff.{pdf,dvi}'.
2845 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2848 2003-06-30 Werner LEMBERG <wl@gnu.org>
2850 * Makefile.in (SHELL): Define as @SHELL@.
2851 (mkinstalldirs): Use $(SHELL).
2852 (MDEFINES): Add $(SHELL).
2853 * Makefile.comm (SHELL): Removed.
2855 2003-06-29 Werner LEMBERG <wl@gnu.org>
2857 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2858 The X11 documentation files use them.
2859 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2861 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2863 * tmac/e.tmac (@C): Handle .ad also.
2865 2003-06-12 Werner LEMBERG <wl@gnu.org>
2867 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2869 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2870 Assign `n' even here. It is possible to construct a node
2871 immediately following an escape character:
2879 2003-06-10 Werner LEMBERG <wl@gnu.org>
2881 * README.WIN32: Removed.
2882 * MANIFEST: Updated.
2884 2003-06-07 Werner LEMBERG <wl@gnu.org>
2886 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2888 2003-06-05 Werner LEMBERG <wl@gnu.org>
2890 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2891 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2893 2003-06-03 Werner LEMBERG <wl@gnu.org>
2895 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2896 is done by the calling function.
2898 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2900 * tmac/X.tmac: Fix definition of `em'.
2902 2003-05-22 Werner LEMBERG <wl@gnu.org>
2904 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2907 2003-05-18 Werner LEMBERG <wl@gnu.org>
2909 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2910 to make items work which consist only of a tag.
2912 2003-05-17 Werner LEMBERG <wl@gnu.org>
2914 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2915 aren't stretched in a tag (this can fail with unformatted boxes).
2916 Instead, insert a break and go back one line.
2918 2003-05-16 Werner LEMBERG <wl@gnu.org>
2920 * src/roff/troff/input.cc (return_macro_request): If called with
2921 argument pop macro twice. We need this to trace `return'.
2923 * tmac/trace.tmac: Handle `return'.
2926 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2929 2003-05-15 Larry Kollar <kollar@alltel.net>
2931 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2932 registers `FPS', `FVS', and `FPD'.
2934 2003-05-15 Werner LEMBERG <wl@gnu.org>
2936 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2939 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
2941 * tmac/groff_mdoc.man: Slight improvements.
2943 2003-05-03 Werner LEMBERG <wl@gnu.org>
2945 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2946 `doc-header-space' after header line if register `cR' is set.
2948 2003-05-02 Werner LEMBERG <wl@gnu.org>
2952 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
2954 * tmac/doc-common (Nd): Use \[em].
2956 2003-05-01 Werner LEMBERG <wl@gnu.org>
2958 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2959 doc-footer-space): Initialize to 0.5i.
2960 (doc-setup-page-layout): Don't set doc-header-space and
2963 2003-04-30 Werner LEMBERG <wl@gnu.org>
2965 * REVISION: Set to 1.
2967 * doc/pic.ms: Document possible problems with `figname'.
2969 2003-04-29 Werner LEMBERG <wl@gnu.org>
2971 Version 1.19 released
2972 =====================
2974 * VERSION: Set to 1.19.
2975 * REVISION: Set to 0.
2976 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2978 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2979 Define charset as `US-ASCII' in html output.
2981 * tmac/www.tmac (ULE): Add missing scaling indicator.
2983 * win32-diffs: Removed.
2985 2003-04-28 Werner LEMBERG <wl@gnu.org>
2987 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2989 Document how to insert discardable whitespace with `.ss'.
2991 2003-04-27 Werner LEMBERG <wl@gnu.org>
2993 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2994 work with plain TeX also.
2996 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2998 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3000 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3003 2003-04-24 Werner LEMBERG <wl@gnu.org>
3005 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3006 vbox with positive height and zero depth if in TeX mode.
3008 * NEWS: Document glyph name changes for grodvi and grolj4.
3010 2003-04-23 Werner LEMBERG <wl@gnu.org>
3012 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3013 * doc/pic.ms: Fixed.
3015 2003-04-21 Werner LEMBERG <wl@gnu.org>
3017 HP-UX 10.20 has `snprintf' but it isn't declared.
3019 * configure.ac: Add declaration test for snprintf.
3020 * configure: Regenerated.
3021 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3022 * src/include/config.hin: Regenerated.
3024 2003-04-19 Werner LEMBERG <wl@gnu.org>
3026 Add keyword `figname' to pic, specifying the name of the picture
3027 box in TeX mode. Based on a patch from William J Poser
3028 <wjposer@unagi.cis.upenn.edu>.
3030 * src/preproc/pic/pic.y: New token `FIGNAME'.
3031 (macro_name): New rule of type <str>.
3032 (placeless_element): Handle `FIGNAME'.
3033 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3034 * src/preproc/pic/main.cpp (graphname): New global variable.
3035 (do_picture): Initialize `graphname'.
3036 * src/preproc/pic/pic.h: Updated.
3037 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3040 (tex_output::text): Beautify output.
3041 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3042 `shaded' and `outlined' unconditionally.
3043 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3046 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3047 greater is necessary.
3049 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3051 Add option -r to soelim to avoid emission of `.lf' lines.
3052 Add option -t to produces TeX comment lines instead of `.lf' lines.
3054 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3057 (main): Handle `-r' and `-t'.
3058 (set_location): Handle `raw_flag' and `tex_flag'.
3059 * src/preproc/soelim/soelim.man, NEWS: Updated.
3061 2003-04-17 Werner LEMBERG <wl@gnu.org>
3063 * tmac/hyphenex.sh: Replaced with...
3064 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3067 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3068 if --quiet is used for the configure script.
3069 * configure: Regenerated.
3071 2003-04-16 Werner LEMBERG <wl@gnu.org>
3073 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3074 Add `const' to second argument.
3075 (html_printer::add_table_end): Add `const' to argument.
3076 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3077 `const' to arguments.
3078 * src/devices/grohtml/html-text.h: Updated.
3080 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3081 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3084 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3085 cast for integer constant.
3087 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3088 (writeNbytes): Add `const' to first argument.
3089 (writeString): Add `const' to argument.
3090 (char_buffer::can_see): Add `const' to third argument.
3091 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3092 `const' to argument.
3093 * src/preproc/html/pushback.h: Updated.
3095 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3096 (include_path_append): Add `const' to argument.
3099 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3101 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3102 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3104 (unicode_decompose_init::unicode_decompose_init): Updated.
3105 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3107 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3108 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3111 * tmac/hyphenex.sh: Make script more portable by using a here
3114 2003-04-15 Werner LEMBERG <wl@gnu.org>
3116 Renamed all `*.cc' files to `*.cpp'.
3117 Updated all configuration files, makefiles, and documentation.
3119 2003-04-14 Werner LEMBERG <wl@gnu.org>
3121 * tmac/hyphenex.sh: Slight improvements.
3123 2003-04-13 Werner LEMBERG <wl@gnu.org>
3125 * font/devascii/R.proto, font/devcp1037/R.proto,
3126 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3127 character slots with unnamed glyphs.
3129 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3130 (an-first): New global variable.
3131 (an-header): Emit vertical space between multiple man pages.
3133 2003-04-11 Werner LEMBERG <wl@gnu.org>
3135 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3138 2003-04-10 Werner LEMBERG <wl@gnu.org>
3140 * PROBLEMS: Revised.
3142 2003-04-10 Bernd Warken <bwarken@mayn.de>
3144 * doc/webpage.ms: Improved.
3146 2003-04-09 Werner LEMBERG <wl@gnu.org>
3148 Add register \n[.height] which returns the value of \H.
3149 Add register \n[.slant] which returns the value of \S.
3151 * src/roff/troff/env.cc (init_env_requests): Implement.
3152 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3155 2003-04-08 Werner LEMBERG <wl@gnu.org>
3157 * tmac/html.tmac: Move some of the data into html-end.tmac.
3158 Remove most of the character translations for eqn since html fonts
3159 now cover those characters.
3161 * tmac/html-end.tmac: New file.
3162 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3163 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3164 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3166 2003-04-07 Werner LEMBERG <wl@gnu.org>
3168 * man/groff_out.man: Document negative values of `N' if -Thtml is
3171 2003-04-06 Werner LEMBERG <wl@gnu.org>
3173 * Makefile.comm (depend.temp): Check location of YTABC.
3175 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3177 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3179 (groff_bin_path): Rename to GROFF_BIN_PATH.
3180 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3181 * doc/Makefile.in (TROFFBIN): New variable for troff
3183 (GROFFBIN): New variable for groff binary path.
3184 (groff_bin_path): Rename to GROFF_BIN_PATH.
3185 (TROFF): Use TROFFBIN.
3186 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3187 * doc/Makefile.sub (GROFFBIN): New variable for groff
3189 (groff_bin_path): Rename to GROFF_BIN_PATH.
3190 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3192 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3193 with INSTALL_SCRIPT.
3194 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3195 * Makefile.dev (all): Depend on DEVSCRIPTS.
3196 (install_dev): Likewise.
3197 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3199 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3200 (DEVGENSCRIPTS): New variable to hold generated scripts.
3202 2003-04-05 Werner LEMBERG <wl@gnu.org>
3204 * src/libs/libdriver/input.cc (IntArray::operator[],
3205 IntArray::get_data): Remove meaningless `const' in return value.
3207 * README.CVS: New file.
3209 2003-04-04 Werner LEMBERG <wl@gnu.org>
3211 Check for stdint.h in C++, not in C.
3213 * aclocal.m4 (GROFF_STDINT_H): New function,
3214 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3216 * configure, src/include/config.hin: Regenerated.
3217 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3220 Fix handling of in grohtml. To do this, troff emits `N'
3221 with a negative value, representing the width of the unbreakable
3222 space (only for -Thtml). grohtml then converts this back to
3223 and uses the value of N as its width.
3225 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3226 unbreakable_space_node::tprint): Emit `N-<width>'.
3227 * src/include/printer.h (printer::set_numbered_char): Make it
3229 Make members `font_table' and `nfonts' protected instead of private.
3230 * src/devices/grohtml/post-html.cc
3231 (html_printer::set_numbered_char): New member function.
3234 * src/libs/libgroff/maxfilename.cc:
3235 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3237 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3240 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3242 * man/roff.man: Small fixes.
3244 2003-04-03 Werner LEMBERG <wl@gnu.org>
3246 Make groff independent from locale's numeric settings.
3248 * configure.ac: Check for `setlocale'.
3249 * configure, src/include/config.hin: Regenerated.
3251 * src/include/lib.h: Handle HAVE_SETLOCALE.
3253 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3254 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3255 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3258 * doc/groff.texinfo: Change dir category to `Typesetting'.
3259 (Man font macros): Mention that there is no space between arguments
3262 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3263 (*printer::change_color, *printer::change_fill_color): Add missing
3266 2003-04-02 Werner LEMBERG <wl@gnu.org>
3268 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3269 html_table::is_gap): Compute table widths after converting border
3270 positions to avoid rounding errors.
3272 2003-04-01 Werner LEMBERG <wl@gnu.org>
3274 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3275 `space_emitted' properly.
3277 2003-03-31 Werner LEMBERG <wl@gnu.org>
3279 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3280 (html_table::set_linelength): Don't add 1.
3281 (html_table::add_indent): Don't subtract 1.
3283 * tmac/html.tmac: Set default page offset to zero.
3285 2003-03-30 Werner LEMBERG <wl@gnu.org>
3287 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3289 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3290 unbreakable_space_node::tprint): New functions.
3291 (troff_output_file): Make space_char_hmotion_mode::tprint and
3292 unbreakable_space_node::tprint to friends.
3293 * src/roff/troff/node.h: Updated.
3295 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3296 in the HTML standard).
3298 2003-03-29 Werner LEMBERG <wl@gnu.org>
3300 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3301 Otherwise, the following code
3310 produces `x a' instead of `xa'. This is a temporary fix, disabling
3311 font changes in diversions for -Thtml.
3313 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3315 (an-do-tag-html): Merge with ...
3316 (an-do-tag): This macro.
3317 Change code slightly to circumvent grohtml bug.
3318 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3320 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3321 html_table::is_gap): Round `width' properly.
3323 * tmac/html.tmac: Provide some default layout parameters for
3326 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3329 2003-03-28 Werner LEMBERG <wl@gnu.org>
3331 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3333 2003-03-27 Werner LEMBERG <wl@gnu.org>
3335 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3338 2003-03-20 Werner LEMBERG <wl@gnu.org>
3340 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3342 * doc/groff.texinfo: Updated.
3344 2003-03-19 Werner LEMBERG <wl@gnu.org>
3346 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3347 TOKEN_END_TRAP>: Reset `have_input'.
3349 2003-03-18 Werner LEMBERG <wl@gnu.org>
3351 * src/roff/groff/groff.man: Mention groff_trace man page.
3353 2003-03-16 Werner LEMBERG <wl@gnu.org>
3355 * Makefile.in (LIBEXT): New variable to indicate the file extension
3356 of library files. Computed heuristically from $(OBJEXT).
3357 (MDEFINES): Add $(LIBEXT).
3358 * Makefile.lib, Makefile.comm: Use it.
3360 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3361 overlong lines into smaller chunks.
3362 (get_binary): New function.
3364 * src/utils/pfbtops/pfbtops.man: Updated.
3366 2003-03-15 Colin Watson <cjwatson@debian.org>
3368 * src/roff/groff/groff.man: Minor syntax fix.
3370 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3372 * src/devices/grops/ps.cc (ps_printer::media_set,
3373 ps_printer::~ps_printer): Handle zero paper width and length.
3375 2003-03-13 Werner LEMBERG <wl@gnu.org>
3377 Add options -p and -l to grodvi.
3379 * src/devices/grodvi/dvi.cc: Include paper.h.
3380 (landscape_flag, user_paper_length, user_paper_width): New global
3382 (dvi_printer::begin_page): Emit `papersize' special.
3383 Set color after initialization of `cur_h' and `cur_v'.
3384 (main): Add options `-l' and `-p'.
3385 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3386 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3388 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3390 2003-03-12 Werner LEMBERG <wl@gnu.org>
3392 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3393 * man/groff_tmac.man: This man page.
3394 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3397 * tmac/X.tmac: Don't load pspic.tmac.
3399 2003-03-11 Werner LEMBERG <wl@gnu.org>
3401 Make variable `pr' local to libdriver/input.cc. Based on a patch
3402 by Bernd Warken <bwarken@mayn.de>.
3404 * src/include/driver.h (pr): Removed.
3406 * src/libs/libdriver/input.cc (pr): New global variable.
3407 (do_file): Deallocate `pr'.
3408 * src/libs/libdriver/printer.cc (pr): Removed.
3410 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3411 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3412 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3413 (main): Don't delete `pr'.
3415 2003-03-10 Werner LEMBERG <wl@gnu.org>
3417 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3418 * tmac/papersize.tmac: New file.
3419 * tmac/troffrc: Include `papersize.tmac'.
3420 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3421 * tmac/an-old.tmac: Set LT to LL by default.
3423 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3424 doc/groff.texinfo: Updated.
3426 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3427 bug which caused all odd iso papers to have wrong dimensions.
3429 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3430 (main) <'p'>: Set `user_paper_width' also.
3431 (ps_printer::media_width, ps_printer::media_height): Use values
3432 given with option `-p'.
3434 2003-03-09 Werner LEMBERG <wl@gnu.org>
3436 * src/include/nonposix.h: Provide default for SET_BINARY.
3438 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3439 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3442 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3443 (main): Treat \r\n as \n.
3445 2003-03-08 Werner LEMBERG <wl@gnu.org>
3447 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3448 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3450 2003-03-07 Werner LEMBERG <wl@gnu.org>
3452 Added support to access more than 256 glyphs in Type 1 fonts.
3454 * src/devices/grops/ps.cc (subencoding): New structure.
3455 (style): Add `sub' field.
3457 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3458 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3461 (ps_printer::set_char): Use `set_subencoding'.
3462 (make_subencoding_name): New function.
3463 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3464 (ps_printer::~ps_printer): Emit subencoding definitions.
3466 * src/devices/grops/psrm.cc (valid_input_table): New array to
3467 properly support EBCDIC.
3468 (white_space): Add `\f'.
3469 (ps_get_line): Change first argument to be of type `string &'.
3470 Updated all callers.
3471 This allows to get lines of arbitrary length.
3472 Use `valid_input_table'.
3473 Remove warning about non-conforming PS line length. This seems
3474 not to be of great importance -- for example, dvips don't emit
3476 (PS_LINE_MAX): Removed.
3477 (matches_comment): Change first argument to be of type `string &'.
3479 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3481 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3482 %AGL_to_unicode, %default_ligatures): New hash tables.
3483 Read all map entries.
3484 Add unencoded characters.
3485 Check for default ligatures if there are no `L' entries.
3486 Print all kern entries.
3487 Print all characters in charset.
3488 * src/utils/afmtodit/afmtodit.man: Updated.
3490 * font/devps/*: Regerated all fonts.
3492 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3493 of characters, just use `.trin'. Otherwise the mapping depends
3494 on the font encoding.
3495 * tmac/ps.tmac: Add `fi' and `fl'.
3496 Improve `Fi' and `Fl'.
3497 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3498 * tmac/Xps.tmac: Fix `em'.
3502 2003-03-04 Werner LEMBERG <wl@gnu.org>
3504 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3507 2003-03-03 Werner LEMBERG <wl@gnu.org>
3509 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3511 * font/devps/generate/textmap: Remove entry `similarequal'.
3512 * font/devps/symbolmap: Updated.
3514 2003-03-02 Werner LEMBERG <wl@gnu.org>
3516 * src/libs/libgroff/font.cc (font::load): Fix error message for
3519 * src/devices/grops/grops.man: Improve documentation of the -b
3522 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3523 `ascii' and `cp1047'.
3525 2003-03-01 Werner LEMBERG <wl@gnu.org>
3527 Document composite glyphs and the `composite' request.
3529 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3531 2003-02-28 Werner LEMBERG <wl@gnu.org>
3533 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3534 * font/devdvi/*EC: Updated.
3536 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3537 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3538 * tmac/troffrc: Load `composite.tmac'.
3539 * tmac/Makefile.sub (NORMALFILES): Updated.
3541 * doc/groff.texinfo (Input Encodings): New section.
3544 2003-02-27 Werner LEMBERG <wl@gnu.org>
3546 * doc/texinfo.tex: New version 2003-02-11.06.
3548 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3549 * tmac/groff_mdoc.man: Fix description of `Dt'.
3551 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3553 * font/devps/prologue.ps: Fix for included Postscript that does
3554 a setpagedevice -- which is now safely ignored.
3558 * src/devices/grops/ps.cc: Now sets the page size in the generated
3559 document. This is done in two ways: Via a %%-comment for gv and
3560 the like, and via a PageSize and setpagedevice for programs that
3561 understands Postscript proper, like ps2pdf.
3563 * src/devices/grops/ps.h: New broken-flag to avoid page size
3564 definition, if required.
3566 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3568 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3569 Not really necessary due to the fix in prologue.ps, but cleaner:
3570 Such information does not belong in an .eps file.
3572 * doc/Makefile.sub: See doc/Makefile.in.
3574 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3576 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3577 instead of P1 since the latter is broken in some versions of netpbm.
3578 * configure: Updated.
3580 2003-02-26 Larry Kollar <kollar@alltel.net>
3582 Make man pages more customizable.
3584 * tmac/an-old.tmac (FT): New register holding footer distance from
3586 (HF): New string holding the default heading font.
3587 (TH): Handle registers `IN' and `SN' set on the command line.
3589 (PT, BT): New strings to customize header and footer lines.
3590 (an-header, an-footer): Use them.
3592 * tmac/groff_man.man: Document changes.
3594 * doc/groff.texinfo: Document man changes.
3595 Document Ultrix extensions of man.
3597 2003-02-26 Werner LEMBERG <wl@gnu.org>
3599 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3600 `have_input' after changing back to old environment.
3602 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3603 function up to be defined before first call. This is necessary to
3604 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3606 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3607 the default font directory also. Based on a patch from James
3608 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3609 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3610 * src/utils/afmtodit/afmtodit.man: Document it.
3614 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3616 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3618 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3619 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3620 * configure.ac: Use it.
3621 * configure: Regenerated.
3622 * Makefile.in: Updated.
3624 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3625 (CLEANADD): Add www.tmac-sed.
3626 (pnmtops_nosetpage): Define default.
3627 (install_data): Handle www.tmac-sed and substitute
3628 @PNMTOPS_NOSETPAGE@.
3629 (stamp-sed): Add www.tmac.
3630 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3631 It now breaks URLs at suitable places.
3632 (www:substring_ok): New register set by...
3633 (www:@test_substring): New macro.
3634 (www:error): New alias to www-error.
3635 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3637 (URL): Use www:url_breaks.
3638 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3639 (CDS, CDE): New macros.
3641 2003-02-25 Werner LEMBERG <wl@gnu.org>
3643 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3646 2003-02-24 Werner LEMBERG <wl@gnu.org>
3648 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3649 can be negative also.
3651 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3653 (read_char_table): Avoid negative ascenders.
3654 (output_charset): Add cast.
3655 * font/devlj4/*: Regenerated.
3657 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3660 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3661 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3663 * font/devdvi/*: Regenerated.
3665 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3666 normal width, while the previously used characters (U+2329 and
3667 U+232A) are classified as wide due to canonical equivalence with the
3668 CJK punctuation characters U+3008 and U+3009.
3670 * font/devutf8/R.proto: Updated.
3671 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3673 * man/groff_char.man: Simplify handling of table traps by
3674 introducing `start block' and `end block' macros.
3675 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3676 (DL): Make it work with Unix troff also.
3677 Fix code values of `la' and `ra'.
3679 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3681 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3683 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3684 New destructor, fixing a major memory leak.
3686 2003-02-22 Werner LEMBERG <wl@gnu.org>
3688 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3689 to be in conformance with Unicode 3.0 and newer.
3691 * font/devlj4/generate/text.map: Add `Eu'.
3692 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3693 * font/devlj4/S: Regenerated.
3695 * man/groff_char.man: Completely rewritten.
3697 * doc/groff.texinfo: Fix description of request and macro arguments.
3699 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3703 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3704 Deallocate `columns' list.
3705 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3707 (text_glob::text_glob_html, text_glob::text_glob_special,
3708 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3709 text_glob::text_glob_tag): Avoid memory leaks.
3710 (text_glob::remember_table): Free memory before reassigning.
3712 2003-02-19 Werner LEMBERG <wl@gnu.org>
3714 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3715 alias `hbar'), the Planck constant over two pi.
3717 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3718 `+e' for position 34.
3719 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3720 `u2662' and `u2661'.
3721 * font/devdvi/{MI,S}: Regenerated.
3722 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3723 * font/devlbp/*: Add `hbar' alias.
3724 * font/devlj4/generate/special.map: Ditto.
3725 * font/devlj4/S: Regenerated.
3726 * font/devps/generate/symbolchars: Add `+e'.
3727 * font/devps/generate/textmap: Fix PS name for `-h'.
3729 * font/devps/symbolmap: Regenerated.
3731 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3733 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3735 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3738 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3740 * tmac/tty-char.tmac: Add `+e'.
3742 2003-02-17 Werner LEMBERG <wl@gnu.org>
3744 Another round trying to really fix problems with `have_input'.
3746 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3747 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3749 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3750 handling if both foreground and background colors are default.
3752 * doc/groff.texinfo (Debugging): Document .lf differences to
3755 2003-02-16 Werner LEMBERG <wl@gnu.org>
3757 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3758 null-bytes in created string.
3760 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3761 alias_macro, lookup_request): Improve warning messages.
3763 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3765 Free `last_image_filename'.
3767 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3769 (imageList::createPage, imageList::createImage): Use `free', not
3771 (imageItem::~imageItem): Free `imageName'.
3772 (addRegDef): Use `strsave', not `strdup'.
3773 (get_resolution): Free `pathp'.
3775 2003-02-15 Werner LEMBERG <wl@gnu.org>
3777 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3780 2003-02-14 Werner LEMBERG <wl@gnu.org>
3782 Add memory management for colors to deallocate unnamed colors
3785 * src/include/color.h (color): New members `free_list' and `next'.
3786 New member functions `new' and `delete'.
3788 * src/libs/libgroff/color.cc: Implement it.
3790 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3791 for array size of new operator.
3793 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3794 redundant comparison.
3796 * src/roff/troff/input.cc (word_space_node::reread,
3797 hmotion_node::reread): Avoid warning about unused parameter.
3798 (reset_output_registers): Remove redundant parameter.
3799 (define_color): Undo change 2003-02-12.
3801 * src/roff/troff/reg.h: Updated.
3803 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3804 output_file::put_filename, real_output_file::really_put_filename,
3805 ascii_output_file::really_print_line,
3806 break_char_node::get_hyphen_list): Avoid warning about unused
3808 (suppress_node::tprint): Updated.
3810 * configure.ac: Check declaration for rand() and srand().
3811 * configure: Regenerated.
3813 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3815 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3818 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3819 to avoid compiler warnings.
3821 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3824 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3826 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3828 Updated all callers.
3830 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3832 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3833 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3835 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3836 Parameter is unused.
3837 (html_printer::add_table_end): Define parameter conditionally.
3838 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3841 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3842 (lbp_printer::set_char): Last parameter is unused.
3844 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3846 2003-02-13 Werner LEMBERG <wl@gnu.org>
3848 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3849 Make \D'f ...' move horizontally again for backwards compatibility.
3850 Replace it with \D'Fg ...' where appropriate to avoid dependency
3851 on horizontal resolution.
3853 * src/roff/troff/input.cc (do_get_long_name): New function.
3854 (get_long_name): Call it.
3856 (read_draw_node): Handle `\D'Fx ...' by calling ...
3857 (read_color_draw_node): New function.
3859 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3861 Pass it to `do_get_long_name' which is used instead of
3864 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3865 unnecessary value guard.
3866 (parse_D_command) <'f'>: Add horizontal shift.
3868 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3869 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3870 (FILL_MAX): Removed.
3872 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3875 2003-02-12 Werner LEMBERG <wl@gnu.org>
3877 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3878 do_zero_width): Push `\n' if closing delimiter is missing.
3880 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3881 <'F'>: Make \F non-transparent at the beginning of line.
3882 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3883 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3886 (define_color): Free color in case of reassignment.
3888 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3889 @DefescListEnd): Use @Var, not @var.
3892 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3894 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3895 `shaded' and `outlined' arrays.
3896 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3897 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3899 (closed_object::set_fill_color): Ditto.
3900 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3902 (troff_output::reset_color): Use a_delete instead of free.
3903 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3905 2003-02-11 Werner LEMBERG <wl@gnu.org>
3907 * doc/groff.texinfo: Improve documentation of `ad'.
3908 Document that \D'f...' is dependent on the horizontal resolution.
3909 * man/groff_diff.man: Improve documentation of \D'f...'.
3911 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3912 compensating \h'...' for \D'f ...' since the latter no longer moves
3914 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3916 2003-02-10 Werner LEMBERG <wl@gnu.org>
3918 Improve error messages for `x F' (and `F') commands.
3920 * src/include/error.h: Add declaration for
3921 `current_source_filename'.
3922 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3923 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3924 parameter for source file string.
3925 Updated all callers.
3927 * src/libs/libdriver/input.cc: Add `current_source_filename'.
3928 (remember_source_filename): New function.
3929 (parse_x_command <'F'>, do_file <'F'>): Use it.
3931 2003-02-09 Werner LEMBERG <wl@gnu.org>
3933 Make grotty not emit warnings about unknown colors more than
3936 * src/devices/grotty/tty.cc: Include `ptable.h'.
3937 (TTY_MAX_COLORS): Removed.
3938 (DEFAULT_COLOR_IDX): Defined to -1.
3939 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3940 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3941 Change `tty_colors' to be a ptable.
3942 First arg of `put_color' is now `char'.
3943 New functions `make_rgb_string' and `tty_color'.
3944 (tty_printer::tty_printer): Use `tty_color'.
3945 (tty_printer::color_to_idx): Return value is now `char'.
3948 * src/include/color.h (color): Add `print_color' member function.
3949 * src/libs/libgroff/color.cc (color::print_color): Implement it.
3951 2003-02-08 Werner LEMBERG <wl@gnu.org>
3955 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3958 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3959 assume that value has been allocated with `new[]', thus use
3960 `a_delete' for deallocation.
3962 * src/libs/libdriver/input.cc (get_integer_arg,
3963 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3966 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3967 * src/libs/libgroff/nametoindex.cc
3968 (character_indexer::named_char_index): Use `new <type>[1]'.
3970 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3972 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3973 (split_text): Use `a_delete'.
3975 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3978 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3979 harmless memory leak.
3980 (hyphen_trie::read_patterns_file): Initialize `buf'.
3981 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3982 Initialize `current_fill_color'and `current_glyph_color'.
3983 * src/roff/troff/glyphuni.cc
3984 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3985 * src/roff/troff/uniuni.cc
3986 (unicode_decompose_init::unicode_decompose_init): Ditto.
3987 * src/roff/troff/uniglyph.cc
3988 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3990 2003-01-26 Werner LEMBERG <wl@gnu.org>
3992 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3993 `access' before calling `unlink'.
3994 (do_file): Handle __EMX__.
3996 * src/include/nonposix.h: Handle __EMX__.
3998 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3999 (fontpath,tmacpath): Use it.
4001 Sorted alphabetically.
4003 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4005 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4008 2003-01-27 Werner LEMBERG <wl@gnu.org>
4010 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4011 New files, copied from gnulib.
4012 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4013 * configure.ac: Updated.
4014 * configure: Regenerated.
4016 * src/include/config.hin: Regenerated.
4017 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4018 Don't define `strcasecmp' as `strcmp'.
4019 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4020 Dont define `strncasecmp' as `strncmp'.
4022 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4025 2003-01-26 Werner LEMBERG <wl@gnu.org>
4027 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4030 2003-01-25 Werner LEMBERG <wl@gnu.org>
4032 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4034 2003-01-24 Werner LEMBERG <wl@gnu.org>
4036 Add US-english hyphenation exceptions (converted from Barbara
4037 Beeton's hyphenation exception log reports which appear irregularly
4040 * tmac/hyphen.us: Updated to latest version.
4041 * tmac/README: Updated.
4042 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4043 * tmac/troffrc: Load `hyphenex.us'.
4044 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4045 * doc/groff.texinfo: Updated.
4047 2003-01-23 Werner LEMBERG <wl@gnu.org>
4049 Improve hyphenation slightly. This is a first step in redesigning
4050 the hyphenation algorithm to make it more flexible (e.g. allowing
4051 kerns and ligatures between the hyphenation character and the
4052 following character -- while not used normally in English, other
4053 languages like German would benefit).
4055 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4056 assertion instead of if-clause.
4057 Let `get_hyphen_list' return the number of involved characters in
4058 the hyphenation pattern instead of computing it directly (which
4059 often yields too small values).
4060 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4061 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4064 2003-01-22 Werner LEMBERG <wl@gnu.org>
4066 Fixing a bug which caused groff to hang if the hyphenation exception
4067 dictionary tried to grow.
4069 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4070 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4071 pointer to dictionary.
4073 2003-01-20 Werner LEMBERG <wl@gnu.org>
4075 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4076 negative left italic correction.
4077 * src/utils/afmtodit/afmtodit.man: Document it.
4079 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4080 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4081 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4085 2003-01-16 Werner LEMBERG <wl@gnu.org>
4089 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4091 * src/preproc/refer/refer.man: Mention REFER environment variable.
4093 2003-01-05 Werner LEMBERG <wl@gnu.org>
4095 Similar to \[is], the square root glyph (\[sr]) and the square root
4096 extension glyph (\[radicalex]) are now text symbols. The new
4097 mathematical versions are called \[sqrt] and \[sqrtex],
4100 * font/devX*/S: Regenerated.
4101 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4102 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4103 * font/devdvi/EX, font/devdvi/S: Regenerated.
4104 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4105 * font/devlj4/generate/special.map: Add `sqrt'.
4106 * font/devlj4/S: Regenerated.
4107 * font/devps/generate/textmap: Add `sqrt'.
4108 * font/devps/S, font/devps/symbolmap: Regenerated.
4110 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4111 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4112 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4113 overlap horizontally.
4115 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4116 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4119 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4120 and `sqrtex' are overlapping glyphs.
4122 2003-01-04 Werner LEMBERG <wl@gnu.org>
4124 * font/devdvi/generate/texsy.map: Add `is'.
4125 * font/devps/symbolmap: Regenerated.
4126 * font/devdvi/*TC, MI, S: Regenerated.
4128 * tmac/dvi.tmac: Remove `is'.
4130 2003-01-03 Werner LEMBERG <wl@gnu.org>
4132 `is' is now a text symbol (only relevant for dvi). The math variant
4133 can be accessed with `integral'.
4135 * font/devX*/S: Regenerated.
4136 * font/devdvi/generate/texex.map: Remove `is'.
4137 * font/devdvi/EX: Updated.
4138 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4139 * font/devlj4/generate/special.map: Ditto.
4140 * font/devlj4/S: Regenerated.
4141 * font/devps/generate/textmap: Add `integral'.
4142 * font/devps/S: Regenerated.
4144 * tmac/dvi.tmac: Define `is'.
4146 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4148 * src/preproc/tbl/main.cc (process_format): Fix error message.
4150 2003-01-02 Werner LEMBERG <wl@gnu.org>
4152 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4153 * font/devps/textmap: Fix entries for `ne' and `nc'.
4154 * font/devps/symbolmap: Regenerated.
4156 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4157 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4158 `38', `58', `78', `-+', `|=', `nc', `ne'.
4160 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4161 Use `schar' for `aq'.
4162 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4163 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4164 * tmac/tty.tmac: Add `ne'.
4166 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4167 for fallback glyphs.
4169 2002-12-29 Werner LEMBERG <wl@gnu.org>
4173 * font/devX*/*: Regenerated.
4174 * font/devdvi/generate/ec.map: Remove `eq'.
4175 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4176 Assign `|=' to position 39.
4177 * font/devdvi/*EC, S: Regenerated.
4178 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4179 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4180 Assign `|=' to position 549.
4181 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4183 Add `uni2243' for `|='.
4185 * tmac/ec.tmac: Add `eq'.
4186 * tmac/dvi.tmac: Add `=~'.
4187 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4190 2002-12-21 Werner LEMBERG <wl@gnu.org>
4192 * font/devdvi/generate/tc.map: Remove `**'.
4193 * font/devdvi/*TC: Regenerated.
4194 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4196 * font/devutf8/NOTES: Updated.
4198 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4199 Don't give default parameter to `set_macro'.
4200 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4201 instead of `set_macro'.
4202 (charinfo::setx_macro): Implement it.
4203 (charinfo::set_macro): Don't change `mode'.
4205 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4206 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4207 * tmac/dvi.tmac: Define `!=' with `.schar'.
4209 2002-12-20 Werner LEMBERG <wl@gnu.org>
4211 * font/devX*/S: Regenerated.
4212 * font/devdvi/generate/ec.map: Remove `pl'.
4213 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4214 * font/devdvi/*{TC,EC}: Regenerated.
4215 * font/devhtml/R.proto: Add `-+'.
4216 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4217 * font/devlbp/*: Remove `or'.
4218 * font/devlj4/generate/special.map: Remove `or'.
4219 * font/devlj4/S: Regenerated.
4220 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4221 `seveneighths', `threeeighths'.
4223 Replace `minusplus' with `uni2213'.
4224 * font/devps/symbolmap: Regenerated.
4225 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4228 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4230 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4231 Call glyph_color and fill_color even if tcommand_flag isn't set.
4232 (make_node, node::add_char): Check not ci->is_fallback but
4235 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4236 * tmac/ec.tmac: Add .rchar entry for `f/'.
4237 Don't remove `12', `14', `34'.
4238 Define `pl' to be always roman.
4239 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4240 Define `18', `38', `58', `78'.
4241 * tmac/tty.tmac: Add `-+'.
4242 * tmac/dvi.tmac: Define `f/'.
4243 (dvi-frac): Use `f/'.
4244 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4245 Define `18', `38', `58', `78'.
4247 2002-12-15 Colin Watson <cjwatson@debian.org>
4249 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4251 2002-12-10 Werner LEMBERG <wl@gnu.org>
4253 Add glyph `tno', a textual variant of `no'.
4255 * font/devX*/*: Regenerated.
4256 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4257 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4258 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4259 * font/devdvi/*: Regenerated.
4260 * font/devlbp/*: Add `tno'.
4261 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4262 * font/devlj4/*: Regenerated.
4263 * font/devps/generate/textmap: Replace `no' with `tno'.
4264 * font/devps/generate/symbolchars: Add `no'.
4265 * font/devps/*: Regenerated.
4267 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4269 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4270 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4274 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4275 Add definition for `sd'.
4276 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4278 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4280 2002-12-08 Werner LEMBERG <wl@gnu.org>
4282 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4283 mode to avoid rounding errors.
4284 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4286 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4287 src/roff/troff/troff.man: Improve documentation of -T.
4289 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4291 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4292 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4294 2002-12-06 Werner LEMBERG <wl@gnu.org>
4296 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4297 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4298 Scaling Euro.sansserif glyphs down to have the same height as
4300 Removed unnecessary points; added some extrema.
4302 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4305 2002-12-04 Werner LEMBERG <wl@gnu.org>
4307 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4308 and `Euro.symbol.bold.slanted'.
4309 Improve some glyph offsets and widths.
4310 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4312 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4314 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4317 * tmac/europs.tmac: Updated to new glyph indices.
4318 Use Euro.symbol for font familiy `A'.
4320 * doc/groff.texinfo: Minor improvements.
4322 2002-12-02 Werner LEMBERG <wl@gnu.org>
4324 * font/devdvi/generate.tc.map: s/%O/%0/.
4325 * font/devdvi/*TC: Regenerated.
4327 * src/roff/troff/div.cc (init_div_requests): Sorted.
4329 * tmac/dvi.tmac: Remove `Ye'.
4330 * tmac/ec.tmac: Remove `Ye'.
4331 Add .rchar entry for `de'.
4333 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4334 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4337 2002-11-30 Werner LEMBERG <wl@gnu.org>
4339 Add PS font for various Euro glyphs.
4341 * font/devps/generate/freeeuro.sfd: New master font file for
4343 * font/devps/generate/sfdtopfa.pe: New conversion script for
4345 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4346 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4347 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4349 * font/devps/EURO: Generated from `freeeuro.afm'.
4350 * font/devps/download: Add `freeuro.pfa'.
4351 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4354 * tmac/europs.tmac: New file.
4355 * tmac/ps.tmac: Include `europs.tmac'.
4356 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4358 2002-11-29 Werner LEMBERG <wl@gnu.org>
4360 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4361 * font/devdvi/S: Regenerated.
4362 * font/devhtml/R.proto: Fix `CR' and `ci'.
4364 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4366 * font/devps/symbolmap: Regenerated.
4367 * font/devutf8/R.proto: Fix `CR' and `ci'.
4369 * font/devutf8/NOTES: Updated.
4371 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4374 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4376 * tmac/dvi.tmac: Add `lh' and `rh'.
4377 * tmac/Xps.tmac: Fix `lh' and `rh'.
4378 * tmac/X.tmac: Add `OK'.
4379 * tmac/lj4.tmac: Ditto.
4381 2002-11-24 Werner LEMBERG <wl@gnu.org>
4383 * font/devX*/S: Regenerated.
4384 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4385 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4386 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4387 * font/devdvi/S: Regenerated.
4388 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4389 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4390 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4391 `bracketleftbt', `bracketrighttp', `bracketrightex',
4392 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4393 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4394 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4396 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4397 * font/devutf8/NOTES: Updated.
4398 * font/devlj4/generate/special.map: Add glyph `braceex'.
4399 * font/devlj4/S: Regenerated.
4401 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4403 2002-11-14 Werner LEMBERG <wl@gnu.org>
4405 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4408 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4410 * doc/texinfo.tex: New version from texinfo 4.3.
4411 * doc/groff.texinfo: Updated for texinfo 4.3.
4412 Use @tie{} where appropriate.
4413 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4414 * font/devdvi/generate/tc.map: Remove `rn'.
4415 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4416 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4418 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4419 font/devX75-12/*: Regenerated.
4421 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4422 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4423 Improve definition of `an'.
4424 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4426 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4427 * tmac/X.tmac: Add definition for `or'.
4428 * tmac/Xps.tmac: Undo change 2002-11-05.
4429 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4431 2002-11-11 Werner LEMBERG <wl@gnu.org>
4433 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4436 2002-11-10 Werner LEMBERG <wl@gnu.org>
4438 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4439 defines a glyph which is searched after the check for fonts declared
4440 with `.special' (and before the check for all mounted special
4441 fonts). `fschar' defines a glyph for a particular font which is
4442 searched after the check for fonts declared with `.fspecial' (and
4443 before the check for fonts declared with `.special'). `rfschar'
4444 removes glyphs defined with `fschar'.
4446 * src/roff/troff/token.h (char_mode): New enum.
4447 Declare do_define_character.
4448 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4450 (charinfo::is_fallback): Updated.
4451 (charinfo::is_special): New method.
4452 * src/roff/troff/input.cc (do_define_character): Add and use
4453 optional second parameter used as a prefix for font-specific glyph
4455 (define_character, define_fallback_character): Updated.
4456 (define_special_character): New function.
4457 (init_input_requests): Add `schar'.
4458 (charinfo::charinfo, charinfo::set_macro): Updated.
4459 * src/roff/troff/node.cc: Include `stringclass.h'.
4460 (make_glyph_node): Handle special glyphs defined with `.schar' and
4462 (define_font_special_character, remove_font_special_character): New
4464 (init_node_requests): Sorted.
4465 Add `fschar' and `rfschar'.
4466 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4467 Document new requests.
4469 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4470 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4472 2002-11-08 Werner LEMBERG <wl@gnu.org>
4474 Added new font `SC' (cmtex10) to devdvi.
4476 * devdvi/generate/Makefile (FONTS): Add `SC'.
4478 * devdvi/generate/textex.map: New map file for cmtex.
4480 * devdvi/Makefile.sub (DEVFILES): Updated.
4481 * tmac/dvi.tmac: Add fspecial entries for SC.
4482 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4483 found before `S' since the font position of `SC' is lower due to the
4484 gaps in DESC's `font' line.
4485 * tmac/ec.tmac: Add a `special' call.
4488 * font/devhtml/R.proto: Remove double entry for `ti'.
4489 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4490 * tmac/tty-char.tmac: Remove entry for `bq'.
4491 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4492 * tmac/ec.tmac: Don't remove `aq' glyph.
4493 * tmac/X.tmac: Fix entry for `em'.
4494 Add entries for `fo' and `fc'.
4495 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4497 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4498 documentation of `special' and `fspecial' requests.
4500 2002-11-05 Werner LEMBERG <wl@gnu.org>
4502 * font/devascii/R.proto, font/devcp1047/R.proto,
4503 font/devlatin1/R.proto: Remove entry for `.i'.
4504 * font/devdvi/generate/textt.map: Add entry for `ad'.
4505 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4506 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4507 We need this for getting kerning values to compose `/l' and `/L'.
4508 * font/devdvi: Regenerated font definition files for CM fonts.
4509 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4510 * font/devutf8/R.proto: Ditto.
4511 Remove double entry for `ti'.
4513 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4514 for (groff) ligatures, `la', and `ra'.
4515 Add "'C", "'c", `IJ', and `ij'.
4516 Remove double entry for `ti'.
4517 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4519 Add "'C", "'c", `IJ', and `ij'.
4520 Fix entries for (groff) ligatures, `la', and `ra'.
4522 * tmac/ps.tmac (ps-achar): New macro.
4523 Define "'c" and "'C".
4524 * tmac/tty.tmac: Add entry for `.i'.
4525 * tmac/X.tmac (X-achar): New macro.
4526 Define "'c", "'C", and `:Y'.
4527 Add entries for `IJ' and `ij'.
4528 * tmac/Xps.tmac (Xps-achar): New macro.
4529 Define "'c" and "'C".
4530 Add entries for `IJ' and `ij'.
4531 * tmac/lbp.tmac (lbp-achar): New macro.
4532 Add fallback characters for all groff ligatures and many other
4534 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4535 Add entries for `/l' and `/L'.
4536 Define "'c" and "'C".
4537 Add entries for `IJ' and `ij'.
4539 2002-11-02 Larry Kollar <kollar@alltel.net>
4541 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4543 2002-11-02 Werner LEMBERG <wl@gnu.org>
4545 Adding support for composite glyphs: \[xxx yyy ...] and the
4546 `composite' request.
4548 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4549 to Unicode-based glyph names.
4550 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4551 glyph names to groff glyph names.
4552 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4553 Unicode-based glyph names.
4554 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4555 for handling Unicode glyph names.
4556 * src/roff/troff/input.cc: Include unicode.h.
4557 (composite_glyph_name): New function.
4558 (token::next) <'['>: Handle Unicode glyph names and composite
4560 (composite_dictionary): New dictionary for the `composite' request.
4561 (composite_request): Implement `composite' request.
4562 (init_input_requests): Add `composite'.
4563 Alphabetically sorted.
4564 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4566 (init_env_requests): Alphabetically sorted.
4567 Removed `tas' and `tar' (already commented out).
4568 * src/roff/troff/Makefile.sub: Updated.
4570 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4572 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4575 2002-10-29 Werner LEMBERG <wl@gnu.org>
4577 Fix computation of .trunc register. Additionally, its value (and
4578 the value of the .ne register) is now always set before entering the
4581 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4582 `needed_space' before calling `space'.
4583 (top_level_diversion::space): Remove special code for 'sp before the
4585 Call `begin_page' with the discarded space as a parameter.
4586 (top_level_diversion::begin_page): Add optional parameter to set
4588 * src/roff/troff/div.h: Updated.
4590 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4593 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4594 (LP): Remove superfluous call to `br'.
4595 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4596 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4598 2002-10-26 Werner LEMBERG <wl@gnu.org>
4600 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4601 (doc-setup-header): Don't set page register `%'.
4602 * tmac/doc-nroff: Remove variable `C'.
4603 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4604 (doc-setup-header): Don't set page register `%'.
4606 * tmac/doc-common (doc-header): Call `ns'.
4607 (doc-paragraph): Protect .sp with .br so that it survives traps
4608 possibly set by the user.
4609 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4611 * tmac/doc*: Replace ' with . for consistency if no effect.
4613 2002-10-26 Werner LEMBERG <wl@gnu.org>
4615 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4616 so that it survives traps possibly set by the user.
4618 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4619 (troff_output_file::set_font): Call flush_tbuf if necessary.
4620 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4621 flush_tbuf and do_motion only if necessary.
4622 (troff_output_file::start_special,
4623 troff_output_file::put_char_width, troff_output_file::put_char,
4624 troff_output_file::draw): Updated.
4625 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4626 vmotion_node::tprint): Undo change 2002-10-23.
4628 2002-10-25 Werner LEMBERG <wl@gnu.org>
4630 * tmac/www.tmac (DC): Fix case of overlapping images.
4632 2002-10-23 Werner LEMBERG <wl@gnu.org>
4634 * src/roff/troff/node.cc (troff_output_file::fill_color,
4635 troff_output_file::glyph_color): Set current color before testing
4637 (troff_output_file::put_char_width, troff_output_file::put_char,
4638 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4640 (troff_output_file::file_color, troff_output_file::glyph_color):
4642 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4643 vmotion_node::tprint): Move first, then call fill_color.
4645 2002-10-20 Werner LEMBERG <wl@gnu.org>
4647 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4648 possible to use multiple main macro packages.
4650 2002-10-19 Werner LEMBERG <wl@gnu.org>
4652 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4653 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4654 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4656 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4657 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4659 2002-10-16 Werner LEMBERG <wl@gnu.org>
4661 * NEWS, doc/webpage.ms: Updated.
4663 2002-10-14 Werner LEMBERG <wl@gnu.org>
4665 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4666 troff_output_file::put_char, troff_output_file::fill_color,
4667 troff_output_file::glyph_color): Handle case where color pointer
4670 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4672 Add the new -r option to grotty. It is similar to the -i option
4673 except it tells grotty(1) to use the "reverse video" attribute to
4674 render italic fonts.
4676 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4677 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4678 (tty_printer::make_underline, tty_printer::put_color,
4679 tty_printer::end_page): Use it.
4680 (main): Add -r switch.
4682 * src/devices/grotty/grotty.man: Document it.
4684 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4686 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4687 cast to `unsigned char' to properly read patterns with 8bit
4690 2002-10-08 Werner LEMBERG <wl@gnu.org>
4692 * REVISION: Increased to 2.
4694 Version 1.18.1 released
4695 =======================
4697 2002-10-08 Werner LEMBERG <wl@gnu.org>
4699 * doc/webpage.ms, NEWS: Updated.
4701 2002-10-07 Werner LEMBERG <wl@gnu.org>
4703 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4704 suppress additional whitespace after the header.
4706 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4709 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4711 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4713 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4714 (Dt): Use it to improve language localization (especially Russian
4717 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4719 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4720 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4722 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4724 Call `picurve' for BSPLINE.
4725 (HGPrintElt): Handle BSPLINE.
4726 * src/preproc/grn/README: Document it.
4728 2002-10-03 Werner LEMBERG <wl@gnu.org>
4730 * src/roff/troff/node.cc (break_char_node::col): New variable.
4731 Updated constructor.
4732 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4734 (space_node::space_node): Remove assertion.
4735 (break_char_node::add_self): Pass color argument to space node.
4736 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4738 * src/roff/troff/env.cc (environment::do_break,
4739 environment::add_padding): Ditto.
4741 2002-10-02 Werner LEMBERG <wl@gnu.org>
4743 Redesigning color support in troff. Colors are no longer
4744 represented as separate nodes but are now part of glyph nodes and
4745 friends. This fixes the current formatting misbehaviour due to the
4746 changes introduced on 2002-09-20. Some extra code is necessary for
4747 proper grotty support: Without adding color variables to
4748 space-related nodes, the background color would be changed too late.
4750 * src/roff/troff/node.h, src/roff/troff/node.cc:
4751 s/current_pagecolor/current_fill_color/.
4752 s/current_glyphcolor/current_glyph_color/.
4753 (glyph_color_node, fill_color_node): Removed.
4754 (node::get_glyph_color, node::get_fill_color): New virtual member
4756 (space_node::col): New variable.
4757 Updated constructors of space_node and derived classes accordingly.
4758 (hmotion_node::col): New variable.
4759 Updated constructors of hmotion_node and space_char_hmotion_node
4761 (vmotion_node::col): New variable.
4762 Updated constructor accordingly.
4763 (draw_node::gcol, draw_node::fcol): New variables.
4764 Updated constructor accordingly.
4765 (special_node::gcol, special_node::fcol): New variables.
4766 Updated constructors accordingly.
4767 (troff_output_file::put_char, troff_output_file::put_charwidth,
4768 troff_output_file::draw): Set glyph and fill color.
4769 (troff_output_file::start_special): Set glyph and fill color.
4770 Always set current font.
4771 (troff_output_file::fill_color, troff_output_file::glyph_color):
4772 Don't call `do_motion'.
4773 (glyph_node::gcol, glyph_node::fcol): New variables.
4774 Updated constructors of glyph_node and ligature_node accordingly.
4775 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4777 (glyph_node::merge_glyph_node,
4778 kern_pair_node::add_discretionary_hyphen,
4779 node::add_discretionary_hyphen): Updated.
4780 (break_char_node::merge_self): Updated.
4781 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4782 vmotion_node::tprint): Handle color.
4783 (make_glyph_node, make_node, node::add_char): Updated.
4785 * src/roff/troff/env.cc (environment::space_newline,
4786 environment::space, environment::output_line, environment::do_break,
4787 environment::make_tab_node, environment::add_padding, title):
4789 (environment_switch, environment_copy): Don't add color nodes.
4791 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4793 (token::next): Updated.
4794 \m and \M now are as transparent as \s.
4795 (process_input_stack, token::add_to_node_list, token::process,
4796 read_draw_node): Updated.
4797 (charinfo_to_node_list): Don't add color nodes.
4799 * doc/groff.texinfo: Updated.
4801 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4803 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4806 2002-09-27 Colin Watson <cjwatson@debian.org>
4808 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4810 2002-09-23 Werner LEMBERG <wl@gnu.org>
4812 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4814 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4815 (linewidth_factor): New global variable.
4816 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4818 (long_options): Add -w/--linewidth option.
4820 (main): Handle -w option to set linewidth_factor.
4821 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4824 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4826 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4828 Fixed a bug in the line thickness setting code.
4830 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4832 (lbp_printer::set_line_thickness): Pass environment as second
4834 Implement it actually.
4835 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4836 and `set_line_thickness, depending on the current font size.
4838 2002-09-21 Werner LEMBERG <wl@gnu.org>
4840 Some Debian patches.
4842 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4843 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4846 2002-09-20 Werner LEMBERG <wl@gnu.org>
4848 * configure: Regenerated with autoconf 2.54.
4850 2002-09-20 Werner LEMBERG <wl@gnu.org>
4852 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4854 Rename cur_fill_color to fill_color.
4855 * src/roff/troff/env.cc: Updated.
4857 2002-09-20 Werner LEMBERG <wl@gnu.org>
4859 * src/roff/troff/env.cc (title): Copy color status after processing
4861 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4862 fill color nodes to reset colors properly.
4864 * tmac/www.tmac (DC): Fix color handling.
4866 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4867 * doc/groff.texinfo: Fixing documentation of `tl' request.
4868 * doc/webpage.ms: Updated.
4870 2002-09-19 Werner LEMBERG <wl@gnu.org>
4872 * src/roff/troff/env.cc (environent_switch, environment_copy):
4873 Emit glyph and fill color nodes to initialize colors properly.
4875 2002-09-17 Colin Watson <cjwatson@debian.org>
4877 * src/roff/troff/env.cc (environment::set_glyph_color,
4878 environment::set_fill_color): Fix typo which prevented \m[] work
4881 2002-09-17 Werner LEMBERG <wl@gnu.org>
4883 Add left and right italic correction to non-slanted PS fonts. This
4884 is an experimental feature to improve image rendering of grohtml.
4886 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4887 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4888 * font/devps/*: All non-slanted fonts regenerated.
4891 2002-09-16 Werner LEMBERG <wl@gnu.org>
4893 Add a site-specific font directory.
4895 * Makefile.in (localfontdir, legacyfontdir): New variables.
4896 (fontpath): Use them.
4897 (MDEFINES, uninstall_dirs): Updated.
4898 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4899 Remove `FONTPATH' and `MACROPATH'.
4901 * src/roff/troff/troff.man, NEWS: Updated.
4902 * doc/groff.texinfo (Font Directories): New section.
4905 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4906 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4907 src/preproc/grn/grn.man: Minor fixes.
4909 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4910 Remove unused variable.
4912 2002-09-11 Werner LEMBERG <wl@gnu.org>
4914 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4915 * man/groff_out.man: Fix documentation of 'N'.
4917 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4919 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4920 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4922 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4923 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4924 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4925 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4926 PRE_TAG>: Call `begin' with `FALSE'.
4928 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4930 * src/libs/libgroff/string.cc (string::extract): Fix position of
4931 terminating null byte.
4933 2002-09-08 Werner LEMBERG <wl@gnu.org>
4935 Add global option `nospaces' to tbl so that leading and trailing
4936 spaces in data items are ignored.
4938 * src/libs/libgroff/string.cc (string::remove_spaces): New member
4939 function to remove leading and trailing spaces.
4940 * src/include/stringclass.h: Updated.
4942 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4944 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4946 Fix typo in error messages.
4947 (process_data): Implement `nospaces' option.
4948 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4950 2002-09-07 Werner LEMBERG <wl@gnu.org>
4952 * src/include/config.hin: Add `HAVE_ISATTY'.
4953 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4955 * src/libs/libgroff/tmpname.cc: Include `time.h'.
4956 * src/libs/libdriver/input.cc (Char): Add `operator==' and
4957 `operator!=' for `char'.
4958 * doc/groff.texinfo: Replace @ifnottex block for top node with
4961 2002-09-06 Werner LEMBERG <wl@gnu.org>
4963 * doc/Makefile.in (.texinfo.html): Add -I switch.
4964 * doc/groff.texinfo: Add @ifnottex block for top node to make
4965 translation to HTML work.
4967 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
4969 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4970 (get_papersize, determine_vertical_offset): Removed.
4971 (char_buffer::do_image): Always specify letter size.
4973 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4976 2002-09-05 Werner LEMBERG <wl@gnu.org>
4978 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4979 default indentation.
4981 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
4983 * src/preproc/html/pre-html.cc (imageList::createPage): Use
4985 (generateImages): Clean up push-back buffer.
4987 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4989 * doc/groff.texinfo: Minor fixes.
4991 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4993 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4994 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4996 (determine_vertical_offset): Use LETTER_LENGTH.
4997 (createPage): Moved to ...
4998 (imageList::createPage): This.
4999 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5000 (imageList::getMaxX): New function.
5001 (createImage): Moved to ...
5002 (imageList::createImage): This.
5003 (imageList::createImages): New function.
5004 (generateImages): Read `maxx' directly.
5006 (scanArguments): Don't specify `gsPaper' for `-o'.
5007 (makeTempFiles): Call `xtmpfile' with the last argument set to
5010 2002-08-24 Werner LEMBERG <wl@gnu.org>
5012 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5013 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5014 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5015 * src/preproc/html/pushback.cc: Include nonposix.h.
5016 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5019 2002-08-23 Werner LEMBERG <wl@gnu.org>
5021 Use $(OBJEXT) for the object file extension.
5023 * Makefile.comm (.SUFFIXES): Add .obj.
5024 (.cc.obj, .c.obj): New implicit rules.
5025 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5026 (MDEFINES): Add EXEEXT and OBJEXT.
5027 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5029 2002-08-22 Werner LEMBERG <wl@gnu.org>
5031 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5033 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5035 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5037 (html_printer::update_min_max, html_printer::add_table_end): New
5039 (html_printer::lookahead_for_tables): Use them.
5040 Reset page offset correctly.
5041 (html_printer::~html_printer): Add creation of creator comment up.
5043 2002-08-20 Werner LEMBERG <wl@gnu.org>
5045 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5046 * man/groff_tmac.man: Fix typos.
5047 * man/groff_font.man: Minor reordering.
5048 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5050 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5052 Avoid endless loops while scanning for tables.
5054 * src/devices/grohtml/post-html.cc (list::insert): Set
5056 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5058 Return immediately if that argument is NULL.
5059 (html_printer::calc_nf): Don't test if `g' is NULL.
5060 (html_printer::lookahead_for_tables): Use
5061 `glyphs.move_right_get_data'.
5062 Don't test if `g' is NULL.
5064 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5066 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5068 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5070 (char_block::char_block): Allocate `buffer'.
5071 (char_buffer::add_string): Use it.
5073 2002-08-15 Werner LEMBERG <wl@gnu.org>
5075 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5076 src/devices/grodvi/grodvi.man: Document default line thickness.
5078 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5080 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5083 2002-08-14 Werner LEMBERG <wl@gnu.org>
5085 * doc/webpage.ms: Updated.
5087 2002-08-09 Werner LEMBERG <wl@gnu.org>
5089 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5092 2002-08-08 Aaron Campbell <aaron@monkey.org>
5094 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5097 2002-08-08 Werner LEMBERG <wl@gnu.org>
5099 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5102 Don't push back a space but a newline onto the stack.
5104 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5106 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5109 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5110 html_printer::start_font): Handle them.
5111 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5113 (html_text::do_bold): Don't reset italic and tt.
5114 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5115 * font/devhtml/DESC.proto: Add those fonts.
5116 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5118 2002-08-07 Werner LEMBERG <wl@gnu.org>
5120 * MORE.STUFF: Added gpresent.
5122 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5123 whitespace before printing the logging message.
5125 2002-07-31 Colin Watson <cjwatson@debian.org>
5127 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5128 Initialize `n' to zero. This fixes a segfault on ARM.
5130 2002-07-30 Werner LEMBERG <wl@gnu.org>
5132 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5134 2002-07-29 Werner LEMBERG <wl@gnu.org>
5136 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5139 2002-07-28 Colin Watson <cjwatson@debian.org>
5141 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5143 (html_printer::html_printer): Initialize `pointsize'.
5145 2002-07-26 Werner LEMBERG <wl@gnu.org>
5147 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5149 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5150 (gnu.eps): Add -rle switch to pnmtops.
5151 (distfiles): Add gnu.eps and gnu.png.
5153 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5155 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5158 2002-07-24 Werner LEMBERG <wl@gnu.org>
5160 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5161 ' \+' but ' *' for sed.
5162 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5164 2002-07-23 Werner LEMBERG <wl@gnu.org>
5166 * doc/groff.texinfo: Document `papersize' keyword.
5167 * NEWS, man/groff_font.man: Updated.
5169 2002-07-23 Colin Watson <cjwatson@debian.org>
5171 Extend papersize keyword to accept more than a single entry. The
5172 first valid will be used.
5174 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5175 (font::scan_papersize): Really skip final newline.
5176 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5178 2002-07-23 Werner LEMBERG <wl@gnu.org>
5180 * configure.ac: Test for isatty.
5181 * configure: Regenerated.
5182 * src/include/posix.h: Check HAVE_ISATTY.
5183 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5184 * src/utils/lookbib/lookbib.cc: Include posix.h.
5185 Don't declare isatty.
5187 2002-07-21 Werner LEMBERG <wl@gnu.org>
5189 * NEWS: Add `output' request.
5191 * REVISION: Increased to 1.
5193 Version 1.18.0 released
5194 =======================
5196 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5198 Allow internal glyph indices > 0xFF in grohtml for input characters.
5200 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5202 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5203 Updated all callers.
5204 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5205 (html_printer): Updated.
5207 2002-07-19 Werner LEMBERG <wl@gnu.org>
5209 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5210 * font/devutf8/R.proto: Adding some missing glyphs.
5211 * font/devutf8/NOTES: Updated.
5213 * tmac/dvi.tmac: Add more composite glyphs.
5214 * tmac/html.tmac: Updated.
5216 * man/groff_char.man: Add `sum' and `product' entities.
5220 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5222 Improved table, tab, and indenting support.
5224 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5225 string_iterator::suppress_newline_flag): Removed. Updated all
5226 function which have used it.
5228 * src/roff/troff/env.cc: Include `input.h'.
5229 (environment::add_node): Accept 0 as parameter.
5230 (environment::add_html_tag): Add `force' parameter.
5231 Updated all callers.
5232 (environment::add_html_tag_tabs): Ditto.
5233 For the moment, support left-aligned tabs only.
5234 (environment::make_html_tag): New function.
5235 (fill, no_fill): Set .br html tag additionally.
5236 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5237 (environment::add_html_tag_eol): Removed.
5238 (tab_stops::distance_to_next_tab): Add variant for handling
5240 (environment::distance_to_next_tab): Ditto.
5241 Updated all callers.
5242 (environment::handle_tab): Handle tabs for html.
5244 * src/roff/troff/env.h: Updated.
5246 * src/roff/troff/div.cc: Updated all callers of
5247 `environment::add_html_tag'.
5249 * src/devices/grohtml/html-table.cc,
5250 src/devices/grohtml/html-table.h: New files.
5252 * src/devices/grohtml/html-text.cc (html_text): New members
5253 `blank_para' and `start_space'.
5254 (html_text::issue_tag): Don't emit TABLE_TAG.
5255 Handle indentation for PRE_TAG and P_TAG.
5256 (html_text::end_tag): Updated.
5257 (html_text::table_is_void, html_text::issue_table_begin,
5258 html_text::issue_table_end): Removed.
5259 (html_text::do_push): Simplified.
5260 [DEBUGGING]: Small fix.
5261 (html_text::push_para): Add new parameter for indentation; updated
5264 (html_text::do_indent, html_text::do_table, html_text::done_table,
5265 html_text::is_in_table): Removed.
5266 (html_text::do_pre): Handle P_TAG also.
5267 (html_text::shutdown): Handle p->indent.
5268 (html_text::check_emit_text): Simplified.
5269 (html_text::do_emittext): Reset `blank_para'.
5270 (html_text::do_para): Add new parameter for indentation; updated
5272 (html_text::remove_indent): New function.
5273 (html_text::do_space): Handle verbatim text properly.
5274 (html_text::ever_emitted_text, html_text::starts_with_space,
5275 html_text::remove_para_align): New functions.
5276 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5278 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5281 * src/devices/grohtml/post-html.cc: Include html-table.h.
5282 (INDENTATION): Removed.
5283 (text_glob): Added many `is_<foo>' functions.
5284 Added table description `tab'.
5285 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5287 (list): Add `insert' and `move_to' member functions.
5288 (page): Add `insert_tag' member function.
5289 (page::dump_page) [DEBUG_TABLES]: Improved.
5290 (html_printer): Add `table' and `max_linelength' elements.
5291 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5292 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5293 `remove_tabs', `remove_courier_tabs'.
5294 (html_printer::emit_raw): Handle indentation.
5295 (html_printer::do_center, html_printer::write_header): Updated.
5296 (html_printer::is_courier_until_eol): Check for tag.
5297 (html_printer::do_linelength): Handle max_linelength.
5298 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5300 (html_printer::do_tempindent): Updated.
5301 (html_printer::do_indentedparagraph): Removed.
5302 (html_printer::do_indent): Simplified.
5303 (html_printer::do_eol): Use `ever_emitted_text'.
5304 (html_printer::do_flush, html_printer::do_links): Don't call
5306 (html_printer::do_break): Handle end_tempindent.
5307 (html_printer::troff_tag): Get argument.
5309 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5310 (html_printer::flush_page): Call `lookahead_for_tables'.
5311 Don't call `done_table'.
5312 (html_printer::add_to_sbuf): Always call do_indent.
5314 * src/devices/grohtml/Makefile.sub: Updated.
5316 * tmac/an-old.tmac (TP): Don't handle html device specially.
5317 (an-do-tag-html): New function which will be used instead of
5318 `an-do-tag' if html device is used.
5320 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5322 * tmac/s.tmac (@IP): Don't handle html device specially.
5323 (@IP-html): New function which will be used instead of `@IP' if
5324 html device is used.
5326 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5327 is a hack which will eventually vanish again.
5328 (PIMG): Handle `-C' option correctly if not html.
5331 2002-07-17 Werner LEMBERG <wl@gnu.org>
5333 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5335 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5337 * contrib/pic2graph/pic2graph.*: Use convert(1).
5338 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5340 2002-07-14 Bernd Warken <bwarken@mayn.de>
5342 * tmac/groff_trace.man: New file.
5343 * tmac/Makefile.sub: Updated.
5346 2002-07-13 Werner LEMBERG <wl@gnu.org>
5348 * src/roff/groff/groff.man: Add some cross references.
5350 2002-07-12 Werner LEMBERG <wl@gnu.org>
5352 * src/roff/troff/input.cc (substring_request): Add warnings for
5353 string indices out of range.
5355 2002-07-11 Werner LEMBERG <wl@gnu.org>
5357 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5358 * font/devdvi/*EC: Regenerated.
5360 2002-07-10 Bernd Warken <bwarken@mayn.de>
5362 * man/groff_char.man: Updated and extended.
5364 2002-07-10 Werner LEMBERG <wl@gnu.org>
5366 * src/roff/troff/input.cc (length_macro): Renamed to...
5367 (length_request): This.
5368 Move call of `tok.next()' to the very end, otherwise the register
5369 value hasn't been updated yet.
5370 (init_input_requests): Updated.
5372 2002-07-09 Werner LEMBERG <wl@gnu.org>
5374 * src/roff/troff/input.cc (substring_macro): Renamed to...
5375 (substring_request): This.
5376 (init_input_requests): Updated.
5377 * src/roff/troff/request.h: Updated.
5379 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5381 * src/roff/grog/grog.sh: Fix typo.
5383 2002-07-08 Werner LEMBERG <wl@gnu.org>
5385 * win32-diffs: Updated.
5387 Handle `papersize' keyword properly in DESC.
5389 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5391 Updated all callers.
5392 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5394 * src/include/paper.h: Updated.
5396 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5397 Other minor C syntax fixes.
5398 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5399 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5401 (lbp_printer::lbp_printer): Pass three arguments.
5402 Set paper dimensions properly.
5403 (make_printer, main): Updated.
5404 (handle_unknown_desc_command): Fix error messages.
5405 (main): Handle papersize keyword in DESC properly.
5407 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5409 (lbp_printer::lbp_printer): Pass an argument.
5410 Set paper_size properly.
5411 (handle_unknown_desc_command): Removed.
5412 (make_printer, main): Updated.
5413 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5415 * man/groff_font.man, NEWS: Updated.
5417 2002-07-07 Werner LEMBERG <wl@gnu.org>
5419 Integrated eqn2graph, contributed by Eric S. Raymond.
5421 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5423 * Makefile.in, NEWS: Updated.
5425 2002-06-04 Werner LEMBERG <wl@gnu.org>
5427 Changing the substring request to make it fit better with other
5428 string manipulation functions in other programming languages:
5429 Index 0 is now the first character in the string, and index -1
5430 indicates the last character. Since this request didn't work
5431 properly anyway in the last release, it doesn't harm too much to
5434 * src/roff/troff/input.cc (substring_macro): Use loops to get
5435 the real string length (ignoring COMPATIBLE_SAVE and
5436 COMPATIBLE_RESTORE) and offsets.
5437 Implement change described above.
5439 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5440 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5442 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5444 2002-06-03 Werner LEMBERG <wl@gnu.org>
5446 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5447 COMPATIBLE_RESTORE are completely ignored.
5449 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5451 (macro): `length' field renamed to `len'.
5452 Added new field `empty_macro' (1 if macro is empty), to be used
5453 instead of checking `len'.
5454 Updated all callers.
5455 (macro::empty): Updated.
5456 (macro::length, macro::set, macro::get): New functions.
5457 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5459 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5460 COMPATIBLE_RESTORE pairs.
5461 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5462 * src/roff/troff/request.h: Updated.
5464 * doc/groff.texinfo: Document .chop's behaviour better.
5466 2002-06-02 Werner LEMBERG <wl@gnu.org>
5468 * doc/pic.ms: Fix documentation for the addition of positions.
5470 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5472 2002-06-29 Werner LEMBERG <wl@gnu.org>
5474 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5476 * src/roff/troff/input.cc (have_string_arg): New global variable.
5477 (read_mode): New enumeration.
5478 (read_escape_name): Use it. Update all calls.
5479 (read_long_escape_name): Use it. Update all calls.
5480 Set have_string_arg if appropriate.
5481 (get_char_for_escape_name): Add parameter for handling space
5483 (interpolate_string_with_args, decode_string_args): New functions.
5484 (get_copy, token::next): Call it if necessary.
5485 (interpolate_string): Fix error message.
5487 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5490 2002-06-24 Bernd Warken <bwarken@mayn.de>
5492 * man/groff_tmac.man: Updated and extended.
5494 2002-06-24 Werner LEMBERG <wl@gnu.org>
5496 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5498 2002-06-23 Werner LEMBERG <wl@gnu.org>
5500 * doc/pic.ms: Improve documentation of composite block objects.
5502 2002-06-22 Werner LEMBERG <wl@gnu.org>
5504 * src/roff/troff/input.cc (init_registers): Add three registers
5505 `seconds', `minutes', and `hours' to hold the current time.
5507 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5510 2002-06-20 Werner LEMBERG <wl@gnu.org>
5512 Make \X accept both `\ ' and `\~', converting them to single space
5515 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5516 (token::unstretchable_space): New inline function.
5517 * src/roff/troff/input.cc (token::next, token::delimiter,
5518 token::description, token::add_to_node_list, token::process): Handle
5519 TOKEN_UNSTRETCHABLE_NODE.
5520 (encode_char): Handle tok.stretchable_space and
5521 tok.unstretchable_space.
5523 * NEWS, doc/groff.texinfo: Document it..
5525 2002-06-19 Werner LEMBERG <wl@gnu.org>
5527 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5529 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5530 keyword to enable/disable SGR output.
5531 (tty_printer::change_fill_color): New function.
5532 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5534 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5537 2002-06-18 Werner LEMBERG <wl@gnu.org>
5539 Add a `color' request and a `.color' register to control usage of
5542 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5543 (color_flag): This (which is the inverse).
5544 (activate_color): New function.
5545 (main, init_input_requests): Updated.
5546 * src/roff/troff/troff.h, src/roff/troff/node.cc
5547 (troff_output_file::fill_color, troff_output_file::glyph_color):
5550 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5551 Document the changes.
5553 2002-06-17 Colin Watson <cjwatson@debian.org>
5555 Circumvent bug in autoconf 2.53 regarding top_builddir.
5557 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5558 * Makefile.in, doc/Makefile.in:
5559 s/@top_builddir@/@groff_top_builddir@/.
5560 * configure: Regenerated (with autoconf 2.53).
5562 2002-06-17 Werner LEMBERG <wl@gnu.org>
5564 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5565 `paperwidth' and `paperlength' for the `papersize' keyword.
5567 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5569 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5571 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5573 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5574 html_printer::do_linelength, html_printer::do_pageoffset,
5575 html_printer::do_indentation, html_printer::do_tempindent,
5576 html_printer::do_break, html_printer::begin_page): Clear indented
5578 * tmac/html.tmac: Disable hyphenation.
5580 2002-06-15 Werner LEMBERG <wl@gnu.org>
5582 Don't produce HTML files if utility programs are missing.
5584 * Makefile.in (make_html, make_install_html): New variables.
5585 (MDEFINES): Updated.
5587 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5589 * configure.ac: Use it.
5590 * configure: Regenerated.
5592 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5593 (HTMLEXAMPLESFILES): This new variable.
5594 (EXAMPLESIMAGEFILES): Renamed to...
5595 (HTMLEXAMPLEIMAGEFILES): This.
5596 (CLEANADD): Add HTMLEXAMPLEFILES.
5597 (all): Use `make_html'.
5599 (install_data): Use `make_install_html'.
5600 Move html stuff to...
5601 (install_html): This new target.
5602 (uninstall_sub): Updated.
5604 2002-06-14 Bernd Warken <bwarken@mayn.de>
5606 * src/roff/grog/Makefile.sub (grog): Renamed to...
5608 (grog): New rule to always install grog.sh as grog.
5610 2002-06-08 Bernd Warken <bwarken@mayn.de>
5612 * src/roff/grog/grog.pl: Fix typo.
5614 2002-06-07 Werner LEMBERG <wl@gnu.org>
5616 * doc/groff.texinfo: Add more info on .tr arguments.
5618 2002-06-05 Werner LEMBERG <wl@gnu.org>
5620 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5622 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5623 * configure: Regenerated.
5625 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5627 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5629 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5631 2002-06-04 Werner LEMBERG <wl@gnu.org>
5633 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5634 is not initialized at the time we need it in case `--prefix' hasn't
5635 been set. Check for `ac_default_prefix' also.
5636 Test for `papersize' keyword also and generalize allowed whitespace.
5637 * configure: Regenerated.
5639 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5642 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5644 (src_version, src_revision): New variables to avoid overwriting
5645 from parent make process.
5646 (version.cc): Updated.
5648 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5649 (linebuf, linebufsize): New global variables.
5650 (sys_fatal): Use `fatal' to abort properly.
5651 (get_line): New function.
5652 (get_resolution): Use it.
5653 Improve error messages.
5654 (get_papersize): Check `papersize' also.
5656 Improve error messages.
5658 2002-06-03 Werner LEMBERG <wl@gnu.org>
5660 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5661 should be removed only if builddir is not srcdir.
5662 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5663 (clean): Depend on `mostlyclean'.
5664 (distclean): Depend on `clean'.
5665 (realclean, extraclean): Depend on `distclean'.
5666 (.y.cc, .y.o): Simplified. The output files are no longer written
5667 to srcdir but to builddir.
5668 * Makefile.in (MDEFINES): Add `version' and `revision'.
5669 (uninstall_dirs): Fix order of directories.
5670 * doc/Makefile.sub (version, revision): Removed.
5671 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5672 Added `HTMLDOCFILES'.
5673 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5674 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5675 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5678 * doc/texinfo.tex (\authortt): New macro.
5679 (\shortcontt): Define.
5680 (\titlepage): Set \tt to \authortt while defining \authorfont.
5681 (\appendixbox): New macro.
5682 (\chapmacro, \appendixentry): Use \appendixbox to get even
5683 indentation for letters.
5684 (\summarycontents): Set \tt.
5685 (\internalpagesize): Add two arguments for real paper width and
5686 height as needed by pdfTeX.
5687 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5689 (\tempdima, \tempdimb): New temporary dimensions.
5690 (\pagesizesyyy): Updated.
5692 2002-06-02 Werner LEMBERG <wl@gnu.org>
5694 Adding a new keyword `papersize' to the DESC file format (similar
5695 but not completely identical to grolbp's extension). grops now has
5696 a -p command line option to override `papersize'. Finally, grolbp
5697 has been adapted to the new syntax.
5699 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5700 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5702 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5703 (CCSRCS): Add `paper.cc'.
5705 * src/include/font.h (font): Add `papersize' element.
5706 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5707 (font::scan_papersize): New function.
5708 (font::load_desc): Use it for handling `papersize' keyword.
5709 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5711 * src/devices/grops/ps.cc: Include paper.h.
5712 (user_paper_length): New global variable.
5713 (ps_printer): Use paper length as initializer.
5714 (make_printer): Updated.
5715 (main): Handle new `-p' option.
5716 * src/devices/grops/grops.man: Updated.
5718 * src/devices/grolbp/lbp.cc: Include paper.h.
5719 s/papersizes/lbp_papersizes/.
5720 (set_papersize): Use new `papersizes' array.
5721 (handle_unknown_desc_command): Don't handle `papersize'.
5722 (main): Use `font::scan_papersize' for handling `-p' option.
5723 * src/devices/grolbp/grolbp.man: Updated.
5725 * man/groff_font.man: Document `papersize'.
5728 2002-05-30 Werner LEMBERG <wl@gnu.org>
5730 * src/devices/grops/TODO: Updated.
5731 * src/devices/grops/grops.man: More info on paper formats.
5732 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5734 2002-05-29 Werner LEMBERG <wl@gnu.org>
5736 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5737 to list only if srcdir != currdir.
5738 (distfiles): New target.
5740 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5741 (NOMAKEDIRS): New variable.
5744 2002-05-26 Werner LEMBERG <wl@gnu.org>
5746 Add .output request, similar to \! at top-level.
5748 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5749 (output_request): New function.
5750 (init_input_requests): Add it.
5752 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5755 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5756 (prepare_examples): Fix typo.
5757 * doc/groff.texinfo (@direntry): Fix it.
5759 2002-05-25 Werner LEMBERG <wl@gnu.org>
5761 Including the doc subdir into groff's Makefile system.
5763 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5764 * configure.ac: Use it.
5765 Generate `doc/Makefile'.
5766 * configure: Regenerated.
5768 * Makefile.in (infodir, INSTALL_INFO): New variables.
5769 (MDEFINES, uninstall_dirs): Updated.
5770 (OTHERDIRS): Add `doc'.
5771 * Makefile.comm (CLEANDIRADD): New variable.
5772 (mostlyclean): Use it.
5774 * doc/Makefile.sub, doc/Makefile.in: New files.
5775 * doc/Makefile: Removed.
5777 * NEWS, INSTALL: Updated.
5779 2002-05-24 Werner LEMBERG <wl@gnu.org>
5781 * doc/homepage.ms: Renamed to ...
5782 * doc/webpage.ms: This.
5785 2002-05-23 Werner LEMBERG <wl@gnu.org>
5787 Integrating the `mom' macro package, contributed by Peter Schaffter
5790 * contrib/mom/*: New subdirectory tree.
5791 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5792 be used for documentation files.
5793 (MDEFINES, uninstall_dirs): Use them.
5794 (OTHERDIRS): Add contrib/mom.
5795 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5797 * MANIFEST, NEWS: Updated.
5799 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5801 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5802 if at outer level; at start-up we are at outer level.
5804 * src/roff/troff/input.cc (do_suppress): Implement it.
5807 Add option -p to show progress information.
5808 pre-grohtml will now render only one page at a time, reducing the
5809 size of needed disk resources enormously.
5811 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5812 (imagePageName): New global variable.
5813 (psPageName, show_progress, currentPageNo): New global variables.
5814 (html_system): Close saved stderr and stdout handles.
5815 (write_end_image): Accept a parameter to control \O escape.
5816 (write_start_image): Adapted to new \O meaning.
5817 (char_buffer::write_upto_newline): Updated.
5818 (createAllPages): Replaced with...
5819 (createPage): This new function to create a single page for images.
5820 It uses `psselect' from the psutils package.
5821 (removeAllPages): Removed.
5822 (createImage): Updated.
5823 Handle progress display.
5824 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5825 (scanArguments): Add option -p.
5826 (makeTempFiles): Updated to create temp files for psPageName and
5828 (removeTempFiles): Removed.
5831 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5832 html_printer::write_header): Append `\0' to `buffer'.
5833 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5835 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5836 Handle `text_emitted'.
5837 (html_text::table_is_void): Slightly rewritten.
5838 (stop): New external symbol.
5839 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5840 (html_text::shutdown): Call `dump_stack'.
5841 (html_text::do_space): Rewritten.
5842 * src/devices/grohtml/grohtml.man: Document -p and the need of
5845 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5847 Call \O[0] if `ps4html' is active.
5848 * tmac/s.tmac (@EQ, @EN): Handle html better.
5850 * tmac/html.tmac: Don't use black for background colour.
5852 * src/roff/troff/node.cc: Include `div.h'.
5853 (troff_output_file::really_print_line): Don't use `is_on'.
5854 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5855 troff_output_file::check_charinfo,
5856 troff_output_file::put_char_width, troff_output_file::put_char,
5857 troff_output_file::determine_line_limits, troff_output_file::draw,
5858 real_output_file::begin_page, glyph_color_node::tprintf,
5859 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5861 (troff_output_file::really_on): Call `do_motion'.
5862 (suppress_node::tprint): Use `get_page_number' instead of `%'
5864 Call `reset_output_registers' conditionally on `is_on'.
5866 * doc/groff.texinfo: Document new syntax of \O.
5867 * NEWS, man/groff_diff.man: Updated.
5869 2002-05-22 Werner LEMBERG <wl@gnu.org>
5871 * MORE.STUFF: Add info about David Frey's deroff implementation.
5874 2002-05-16 Werner LEMBERG <wl@gnu.org>
5876 Pic's `with' attribute now accepts positions.
5878 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5879 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5881 (object_spec): Add rule for `WITH' and `position'.
5882 (relative_path): Give `corner' the precedence of `CHOP'.
5883 * src/preproc/pic/object.h (path): New members `pos' and
5885 * src/preproc/pic/object.cc: Updated initializers of `path'.
5886 (path::follow): Handle `is_position'.
5888 * doc/pic.ms: Completely updated grammar description.
5889 Many typographical improvements.
5891 2002-05-15 Werner LEMBERG <wl@gnu.org>
5893 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5894 code of x in range 0-127) also.
5895 * doc/groff.texinfo, man/groff_diff.man: Updated.
5897 Added keywords `north', `south', `east', and `west' for corners
5900 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5902 (yylex): Handle them.
5903 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5904 (corner): Handle them.
5906 2002-05-14 Werner LEMBERG <wl@gnu.org>
5908 * src/devices/grops/grops.man: Clarify handling of `download' file.
5910 2002-05-11 Werner LEMBERG <wl@gnu.org>
5912 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5913 Jeffrey Friedl <jfriedl@yahoo.com>.
5915 * src/roff/troff/input.cc (spread_limit, warn_scale,
5916 warn_scaling_indicator): New global variables.
5917 (warnscale_request, spreadwarn_requests): New functions.
5918 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5919 (init_input_requests): Updated.
5920 (error_type): Add `OUTPUT_WARNING'.
5921 (do_error): Handle it.
5922 (output_warning): New warning function which shows output location.
5923 * src/roff/troff/env.h (spread_limit): New external variable.
5924 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5926 (distribute_space): Emit warning if added space is larger than
5928 (environment::possibly_break_line): Emit warning if a line can't
5929 be adjusted on both sides.
5931 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5933 2002-05-08 Werner LEMBERG <wl@gnu.org>
5935 * src/roff/troff/node.cc (special_node::special_node): Use
5936 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
5937 \X''\% crashes, for example.
5939 * doc/groff.texinfo: Document \! and \? used at top-level.
5941 2002-05-06 Werner LEMBERG <wl@gnu.org>
5943 * src/preproc/pic/pic.man: Fix some keyword syntax.
5944 Other minor typographical fixes.
5946 * src/roff/groff/groff.man: Fix typos.
5948 2002-05-04 Werner LEMBERG <wl@gnu.org>
5950 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5951 (ShortOpt[]): This to avoid problems with refer.
5953 * doc/pic.ms: Fix typo.
5954 Fix pic grammar description.
5956 * tmac/an-old.tmac (ne): Use de1, not de.
5958 2002-05-03 Werner LEMBERG <wl@gnu.org>
5960 * doc/groff.texinfo: Finished separation of glyphs and characters.
5961 Don't use the string `Appendix' for appendix headers (both in
5962 the text and the table of contents).
5963 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5966 Use registers LL and LT (similar to -ms) for controlling the
5967 length of title and line, respectively, in the -man and -mdoc
5970 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5971 (doc-setup-page-layout): Use \n[LL] and \n[LT].
5972 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5974 (an-header, an-p-footer): Use \n[LT].
5975 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5976 doc/groff.texinfo: Document it.
5978 2002-05-02 Werner LEMBERG <wl@gnu.org>
5980 * doc/fdl.texi: New file.
5981 * doc/groff.texinfo: Include it.
5982 Define and use @copying.
5983 Starting with separating glyph, symbol, and character.
5985 2002-04-27 Werner LEMBERG <wl@gnu.org>
5987 * Makefile.in (EXEEXT): Set it.
5988 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5991 * src/include/nonposix.h: Define GS_NAME.
5992 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5994 Some preliminary changes for EMX support under OS/2.
5996 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5997 __EMX__ similar to __MSDOS__.
5998 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6000 2002-04-25 Werner LEMBERG <wl@gnu.org>
6002 * doc/groff.texinfo: Integrated groff_out.man.
6005 2002-04-23 Werner LEMBERG <wl@gnu.org>
6007 * man/groff_out.man: Minor fixes.
6009 2002-04-23 Werner LEMBERG <wl@gnu.org>
6011 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6012 correct page references.
6013 Fixed many index entries.
6015 2002-04-23 Bernd Warken <bwarken@mayn.de>
6017 * man/roff.man: Enlarged.
6019 2002-04-22 Werner LEMBERG <wl@gnu.org>
6021 * doc/groff.texinfo: More examples, other fixes.
6023 2002-04-20 Werner LEMBERG <wl@gnu.org>
6025 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6026 will now form a chain, e.g.
6035 This is for compatibility with plan 9's troff.
6037 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6041 * doc/groff.texinfo: Add documentation of remaining requests and
6044 2002-04-19 Werner LEMBERG <wl@gnu.org>
6046 * doc/groff.texinfo: Add documentation of remaining escapes.
6048 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6049 * font/devdvi/*TC: Regenerated.
6051 2002-04-18 Werner LEMBERG <wl@gnu.org>
6053 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6054 if not in compatibility mode, i.e., increment relative to the
6056 * doc/groff.texinfo: Updated accordingly.
6058 2002-04-17 Werner LEMBERG <wl@gnu.org>
6060 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6062 2002-04-16 Bernd Warken <bwarken@mayn.de>
6064 * src/roff/groff/groff.man: Improve documentation of -P option.
6067 2002-04-15 Werner LEMBERG <wl@gnu.org>
6069 Add new escape \F to switch font family.
6071 * src/roff/troff/input.cc (token::next): Handle \F.
6072 * src/roff/troff/env.cc (environment::set_family): Handle
6074 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6077 2002-04-14 Werner LEMBERG <wl@gnu.org>
6079 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6082 2002-04-13 Werner LEMBERG <wl@gnu.org>
6084 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6085 \m[] and \M[], respectively.
6087 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6088 (symbol::symbol): Handle NULL string and empty string differently.
6089 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6090 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6091 Add optional parameter.
6092 Updated calling functions.
6093 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6095 * src/roff/troff/env.cc (environment::set_font): Ditto.
6097 * src/preproc/pic/troff.cc (troff_output::set_fill,
6098 troff_output::reset_color: Updated.
6100 * tmac/www.tmac: Updated.
6102 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6103 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6106 * tmac/Xps.tmac: Remove some redundant code.
6108 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6109 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6110 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6113 2002-04-13 Bernd Warken <bwarken@mayn.de>
6115 * src/include/printer.h, src/libs/libdriver/printer.cc
6116 (printer::change_fill_color): New member function.
6117 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6119 2002-04-12 Werner LEMBERG <wl@gnu.org>
6121 * doc/groff.texinfo: Completed pass on gtroff reference.
6123 2002-04-11 Werner LEMBERG <wl@gnu.org>
6125 * doc/groff.texinfo: More fixes.
6127 2002-04-11 Bernd Warken <bwarken@mayn.de>
6129 * src/include/color.h: Decorate with `const'.
6132 * src/libs/libgroff.color.cc: Decorate with `const'.
6134 (color::color): Initialize members.
6135 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6136 command according to the documentation.
6138 * man/groff_out.man: Updated.
6141 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6143 * src/preproc/html/pre-html.cc (write_start_image): Remove
6145 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6147 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6148 \C'hy' caused an assertion failure.
6150 * src/roff/troff/env.cc (environment::environment): Initialize
6152 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6154 2002-04-10 Werner LEMBERG <wl@gnu.org>
6156 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6157 Document pvs request and .pvs register.
6159 2002-04-09 Werner LEMBERG <wl@gnu.org>
6161 * doc/groff.texinfo: Improve and fix documentation of diversions
6164 2002-04-08 Werner LEMBERG <wl@gnu.org>
6166 * doc/groff.texinfo: Fix documentation of drawing functions.
6169 2002-04-07 Werner LEMBERG <wl@gnu.org>
6171 * doc/groff.texinfo: Better documentation of double quotes as
6175 2002-04-06 Werner LEMBERG <wl@gnu.org>
6177 * man/groff_font.man: Document names of special characters better.
6178 * doc/groff.texinfo: Minor improvements.
6180 * tmac/lbp.tmac: Load latin1.tmac.
6181 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6183 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6185 2002-04-05 Werner LEMBERG <wl@gnu.org>
6187 * tmac/tty.tmac: Don't use shc request.
6188 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6191 * man/groff_diff.man: Minor fixes.
6193 * font/devlbp/*: Remove all `charXXX' entities.
6195 * src/libs/libgroff/font.cc (font::~font): Deallocate
6196 `special_device_coding'.
6197 (font::load): Use `new' for allocating `special_device_coding'.
6198 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6199 Removed unused member.
6201 2002-04-05 Werner LEMBERG <wl@gnu.org>
6203 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6204 (resource_manager::do_begin_binary,
6205 resource_manager::do_begin_data): Use it.
6207 * doc/texinfo.tex: Updated to version 4.2.
6209 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6210 (token::zero_width_break): New inline function.
6211 * src/roff/troff/input.cc (token::next): Use it.
6212 (token::description): Updated.
6213 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6214 (token::add_to_node_list, token::process): Use it.
6215 * NEWS, doc/groff.texinfo: Updated.
6217 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6218 * tmac/tty.tmac: Add missing backslash.
6220 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6222 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6223 `.ps' register instead of `.s' to handle fractional point sizes.
6224 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6225 limit_box::output): Ditto.
6226 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6227 size_box::output): Ditto.
6228 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6229 over_box::output): Ditto.
6230 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6231 script_box::output): Ditto.
6232 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6233 sqrt_box::output): Ditto.
6235 2002-04-03 Michael Selway <mas@ssl.co.uk>
6237 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6240 2002-04-03 Werner LEMBERG <wl@gnu.org>
6242 * doc/homepage.ms: Reduce title size.
6243 * doc/groff.texinfo: Fix documentation of .t register.
6244 Fix handling of colon.
6247 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6248 only if page length is positive to avoid a loop.
6250 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6253 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6255 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6256 s/__CYGWIN32__/__CYGWIN__/.
6258 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6260 * doc/gnu.xpm: New image contributed by Emily Mulley.
6261 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6262 (homepage.html): Be dependent on gnu.eps.
6263 * doc/homepage.ms: Updated to new image.
6265 * src/devices/grohtml/post-html.cc (html_printer): New member
6267 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6268 (html_printer::sbuf_continuation): Use it.
6270 2002-03-28 Werner LEMBERG <wl@gnu.org>
6272 * src/libs/libgroff/getopt.c: Updated to latest version.
6274 * tmac/README: More on hyphen.tex license.
6276 2002-03-26 Larry Kollar <kollar@alltel.net>
6278 * doc/groff.texinfo: Add documentation of most missing requests.
6280 2002-03-25 Werner LEMBERG <wl@gnu.org>
6282 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6283 of `+-', `mu', and `di', respectively.
6285 * font/devascii/R.proto, font/devutf8/R.proto,
6286 font/devlatin1/R.proto, font/devhtml/R.proto,
6287 font/devcp1047/R.proto, font/devlpb/*: Add them.
6288 * font/devps/generate/textmap: Ditto.
6289 * font/devps/*: Regenerated.
6290 * font/devlj4/generate/text.map: Add them.
6291 * font/devlj4/*: Regenerated.
6292 * font/devdvi/generate/tc.map: Use them.
6293 * font/devdvi/generate/texsy.map: Add them.
6294 * font/devdvi/*: Regenerated.
6295 * font/devX*/*: Regenerated.
6297 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6298 tmac/tty-char.tmac: Updated.
6300 * NEWS, man/groff_char.man: Updated.
6302 2002-03-24 Werner LEMBERG <wl@gnu.org>
6304 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6305 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6306 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6307 we use `.fchar' in dvi.tmac.
6308 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6309 * tmac/Xps.tmac: Simplify some char definitions.
6310 Add definition for \[f/].
6311 * man/groff_char.man: Updated for new X.tmac.
6313 * tmac/README: New file.
6315 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6317 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6318 internal .y.o rule took precendence over the .y.cc rule, compiling
6319 the yacc files with gcc instead of g++.
6321 2002-03-23 Werner LEMBERG <wl@gnu.org>
6323 * tmac/dvi.tmac: Add replacement font for `CB'.
6325 * tmac/doc.tmac: s/request/macro/ in messages.
6326 (doc-generic-macro): Improve error message.
6327 * tmac/groff_mdoc.man: Minor improvements.
6329 2002-03-22 Werner LEMBERG <wl@gnu.org>
6331 * doc/groff.texinfo: Document possible conflict between `tr' and
6334 2002-03-21 Werner LEMBERG <wl@gnu.org>
6336 Improve handling of hyphenation patterns. It is now possible to
6337 use most of TeX's pattern files unmodified. To make the process
6338 more flexible, a new request `hpfcode' has been added which
6339 provides a character code mapping for the `hpf' request. See
6340 comment before hpf_getc() for more details.
6342 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6344 (read_patterns_file): Additional parameter for exception dictionary.
6345 Extended to recognize \pattern, \hyphenation, and \endinput.
6346 (do_hyphenation_patterns_file): Updated.
6347 * src/roff/troff/env.h (hpf_code_table): New extern.
6349 * src/roff/troff/input.cc (hpf_code_table): New array.
6350 (init_hpf_code_table, hyphenation_patterns_file_code): New
6352 (hyphenation_code): Handle translation from `trin' correctly.
6353 (main, init_input_requests): Updated.
6354 (charinfo::set_translation): Handle hyphenation code also.
6356 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6359 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6360 char' is used for offsets in hyphenation exceptions.
6362 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6364 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6366 2002-03-20 Larry Kollar <kollar@alltel.net>
6368 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6371 2002-03-18 Werner LEMBERG <wl@gnu.org>
6373 * tmac/html.tmac: Fix serious typo.
6375 2002-03-17 Larry Kollar <kollar@alltel.net>
6377 * doc/groff.texinfo: Add documentation for `writec' request.
6379 2002-03-17 Werner LEMBERG <wl@gnu.org>
6381 Added request `hpfa' to append hyphenation patterns.
6383 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6385 (hyphenation_patterns_file): Renamed to...
6386 (do_hyphenation_patterns_file): This.
6387 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6389 (init_hyphen_requests): Updated.
6390 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6392 2002-03-16 Werner LEMBERG <wl@gnu.org>
6394 Added request `writec' in analogy to `tmc'.
6396 * src/roff/troff/input.cc (write_request): Renamed to...
6397 (do_write_request): This.
6398 Added one parameter.
6399 (write_request, write_request_continue): New functions.
6400 (init_input_requests): Updated.
6401 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6403 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6405 * NEWS: Document it.
6407 2002-03-15 Werner LEMBERG <wl@gnu.org>
6409 * man/groff.man: Add writem request.
6411 Add request `trin' (translate input) to make `.asciify' work
6412 correctly. This is necessary since `charXXX' entity names are no
6413 longer hardcoded in font definition files.
6415 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6416 `translate_input' members.
6417 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6418 charinfo::set_translation_input): New methods.
6419 (charinfo::set_translation): Add third argument.
6420 * src/roff/troff/input.cc (charinfo:set_translation): Set
6422 (do_translate): Add second argument.
6423 (translate_input): New function.
6424 (init_input_requests): Updated.
6425 * src/roff/troff/node.cc (glyph_node::asciify,
6426 composite_node::asciify): Use `get_asciify_code'.
6428 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6430 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6432 2002-03-14 Larry Kollar <kollar@alltel.net>
6434 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6436 2002-03-14 Werner LEMBERG <wl@gnu.org>
6438 Add a new request `sizes' similar to the `sizes' command in DESC
6441 * src/roff/troff/env.cc (override_sizes): New function.
6442 (init_env_requests): Use it.
6443 * src/roff/troff/token.h: Export `read_string'.
6444 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6446 2002-03-12 Werner LEMBERG <wl@gnu.org>
6448 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6450 2002-03-10 Werner LEMBERG <wl@gnu.org>
6452 * tmac/pspic.tmac: Add support for -Tdvi.
6453 * tmac/dvi.tmac: Include pspic.tmac.
6454 * src/devices/grodvi/grodvi.man: Document it.
6457 * font/devlj4/generate/Makefile: Fix URL of metric files.
6459 2002-03-09 Werner LEMBERG <wl@gnu.org>
6461 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6463 2002-03-09 Larry Kollar <kollar@alltel.net>
6465 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6467 2002-03-08 Werner LEMBERG <wl@gnu.org>
6469 * doc/groff.texinfo: Fixes for texinfo 4.1.
6471 2002-03-07 Werner LEMBERG <wl@gnu.org>
6473 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6475 Handle CYGWIN properly.
6477 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6479 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6480 * tmac/lbp.tmac: Add some font translations.
6482 2002-03-02 Werner LEMBERG <wl@gnu.org>
6484 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6485 font/devhtml/R.proto: Remove `charXXX' entries.
6486 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6489 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6490 * font/devlj4/*: Regenerated all font definition files.
6491 * tmac/lj4.tmac: Load latin1.tmac.
6493 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6494 from 2000-06-17: LJ4 metric files are *not* text files.
6496 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6497 register to test for EBCDIC.
6499 2002-03-01 Werner LEMBERG <wl@gnu.org>
6501 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6502 files (as grops already does).
6503 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6505 * src/devices/grops/grops.man: Document comment lines in encoding
6508 * tmac/cp1047.tmac: New file.
6509 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6510 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6511 * tmac/Makefile.sub (NORMALFILES): Updated.
6513 * tmac/ec.tmac: Don't load latin1.tmac again.
6515 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6516 font/devps/generate/dingbats.map,
6517 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6518 font/devps/generate/Makefile (symbolmap): Add header comment.
6519 * font/devps/generate/textmap: Ditto.
6520 Remove `charXXX' entries.
6521 * font/devps/symbolmap: Regenerated.
6522 * font/devps/*: Regenerated all font definition files.
6524 2002-02-28 Werner LEMBERG <wl@gnu.org>
6526 Add color support to grodvi (for drawing colors are currently
6527 translated to gray values).
6529 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6530 (dvi_printer): Add `cur_color' member.
6531 (dvi_printer::set_color): New function.
6532 (draw_dvi_printer): Remove `fill'.
6533 (draw_dvi_printer::fill_next): Pass environment as parameter.
6534 Update code for new color support translated to gray.
6535 (dvi_printer::set_char): Updated.
6536 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6537 changes crossing the page border.
6538 (dvi_printer::draw): Updated.
6539 Remove cases `f' and `F'.
6540 * tmac/dvi.tmac: Add color definitions.
6541 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6543 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6546 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6547 versions of autoconf.
6548 * configure: Updated.
6550 * doc/homepage.ms: Use `.blm'.
6551 * tmac/www.tmac (www-depth): New auxiliary variable.
6552 (www-pop-level): Don't issue HTML tag.
6553 (ULS, ULE, LI): Use absolute indentation.
6555 * src/devices/grops/ps.cc (ps_printer::begin_page,
6556 ps_printer::end_page): Switch forth and back to default color while
6557 starting a new page.
6559 2002-02-27 Werner LEMBERG <wl@gnu.org>
6561 Add EC and TC fonts to devdvi.
6563 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6564 * font/devdvi/generate/cork.map: Renamed to...
6565 * font/devdvi/generate/ec.map: This.
6566 Remove entry for `aq'.
6567 * font/devdvi/generate/tc.map: New file.
6568 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6571 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6572 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6573 * tmac/ec.tmac: New file.
6574 * tmac/Makefile.sub (NORMALFILES): Updated.
6575 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6576 * man/groff_char.man: Check `ECFONTS' register.
6578 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6580 2002-02-26 Werner LEMBERG <wl@gnu.org>
6582 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6583 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6584 * font/devdvi/*: Updated.
6585 * tmac/dvi.tmac: Formatting.
6587 Add font `HBI' for the dvi output.
6588 Add support for font families `T' and `H'.
6590 * font/devdvi/HBI: New file.
6591 * font/devdvi/B: Renamed to ...
6592 * font/devdvi/TB: This.
6593 * font/devdvi/BI: Renamed to ...
6594 * font/devdvi/TBI: This.
6595 * font/devdvi/I: Renamed to ...
6596 * font/devdvi/TI: This.
6597 * font/devdvi/R: Renamed to ...
6598 * font/devdvi/TR: This.
6599 * font/devdvi/H: Renamed to ...
6600 * font/devdvi/HR: This.
6601 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6602 * font/devdvi/generate/Makefile (HBI): New rule.
6604 (R, I, B, BI, H): Renamed to ...
6605 (TR, TI, TB, TBI, HR): This, respectively.
6607 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6608 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6609 Add `styles' and `family' keywords.
6610 * tmac/dvi.tmac: Alias `H' to `HR'.
6611 Add some fspecial requests for italic fonts.
6612 Add TR and TI as special.
6613 Add support for `_' with font CWI.
6615 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6616 operator `:'. Until now, the expression `0:1' would return 2
6619 2002-02-25 Werner LEMBERG <wl@gnu.org>
6621 * man/groff_char.man: Added some missing PS glyph names (from the
6623 * font/devps/generate/textmap, font/devps/symbolmap: Add
6626 * doc/groff.texinfo: Minor additions and fixes.
6627 * man/groff_diff.man: Remove documentation of fp request. This
6628 is already covered in the original troff manual.
6629 Updated to be consistent with other doc files.
6632 2002-02-24 Werner LEMBERG <wl@gnu.org>
6634 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6636 Define new variable OTHERDEVDIRS (containing `font/devlj4
6637 font/devlbp' if not EBCDIC).
6638 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6639 (OTHERDEVDIRS): New variable.
6640 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6641 * configure: Regenerated.
6643 * NEWS, src/devices/grotty/grotty.man: Updated.
6645 2002-02-23 Werner LEMBERG <wl@gnu.org>
6647 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6648 get_line_arg): Honour input level.
6650 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6652 * font/*/*: Implement it in all font files.
6653 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6654 * font/devps/symbolmap: Updated.
6655 * font/devlj4/generate/text.map: Updated.
6656 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6657 * font/devdvi/generate/texmi.map: Updated.
6659 * font/devutf8/R.proto: Remove all `charXXX' entries.
6660 * font/devutf8/NOTES: Updated.
6662 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6665 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6667 * NEWS, man/groff_char.man: Updated.
6669 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6671 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6673 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6675 * src/roff/grog/grog.pl: Fix computation of $refer.
6677 2002-02-19 Werner LEMBERG <wl@gnu.org>
6679 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6680 `snprintf' and `vsnprintf'.
6682 * src/include/htmlindicate.h: Renamed to...
6683 * src/include/htmlhint.h: This.
6684 * src/include/Makefile.sub: Updated.
6685 * src/preproc/eqn/main.cc: Updated.
6687 2002-02-18 Werner LEMBERG <wl@gnu.org>
6689 * man/roff.man, man/groff_out.man, man/groff.man,
6690 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6691 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6693 * win32-diffs: Updated.
6695 2002-02-17 Werner LEMBERG <wl@gnu.org>
6697 * doc/Makefile (clean): Add *.eps.
6698 (MEMACROS): Removed.
6699 (TFLAG): New variable.
6702 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6704 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6706 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6708 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6710 * src/roff/troff/troff.man: Fix order of parameter description.
6714 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6716 Simplify image handling for grohtml.
6719 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6721 (html_text::dump_stack): Don't emit newline while debugging.
6722 (html_text::do_push) [DEBUGGING]: Print more info.
6723 (html_text::check_emit_text): Fix handling of <p>.
6724 * src/devices/grohtml/html.h: Updated.
6725 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6726 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6727 send its data to stderr also.
6729 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6730 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6731 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6733 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6735 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6736 is_inline_image): Removed.
6737 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6738 (graphic_start, graphic_end): Removed.
6739 * src/include/htmlindicate.h: Updated.
6740 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6741 (macroset_template): New global variable.
6742 (makeFileName): Use `macroset_template'.
6743 (write_end_image): Don't take a parameter.
6745 (write_start_image: Don't emit newline.
6746 (char_buffer::write_upto_newline): Updated.
6747 (char_buffer::skip_to_newline): Renamed to ...
6748 (char_buffer::skip_until_newline): This.
6750 (char_buffer::write_file_troff, char_buffer::write_file_html):
6752 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6753 (removeAllPages): Remove `DEBUGGING' conditionals.
6754 (addRegDef, dump_args): New functions.
6755 (char_buffer::do_html, char_buffer::do_image): Handle
6756 `www-image-template' command line variable.
6757 Add more debugging code.
6758 (addps4html): Removed.
6759 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6761 * src/preproc/eqn/main.cc: Include `ctype.h'.
6762 (suppress_html): Removed.
6764 (inline_equation): Use `html_begin_suppress' and
6765 `html_end_suppress'.
6766 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6767 (troff_output::start_picture, troff_output::finish_picture):
6769 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6770 (process_input_file): Updated.
6772 * src/roff/troff/div.cc (page_number): Set page number only if the
6773 `ps4html' register isn't defined.
6774 * src/roff/troff/input.cc (image_no): New external variable.
6775 (do_suppress): Use it.
6776 * src/roff/troff/node.h (suppress_node::image_id): New member.
6777 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6778 (suppress_node::suppress_node): Initialize `image_id' member.
6779 (suppress_node::same): Handle `image_id' also.
6780 (suppress_node::copy): Updated.
6781 (last_image_id): New global variable.
6782 (suppress_node::tprint): Use it.
6784 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6786 * tmac/pspic.mac (PSPIC): Fix html support.
6787 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6788 * tmac/www.tmac (www-image-template): Set up.
6789 (HTMLINDEX): Renamed to...
6791 (BODYCOLOR): Renamed to...
6793 (BACKGROUND): Renamed to...
6795 (URL): Change order of parameters for consistency.
6796 (MAILTO): Renamed to...
6798 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6799 (IMG, PIMG, MPIMG): This.
6800 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6802 (LINKS): Renamed to...
6804 (LINE): Renamed to...
6806 (NO-AUTO-RULE): Renamed to...
6808 (HTML-TL): Renamed to...
6810 (UL-BEGIN, UL-END): Renamed to...
6812 (DROPCAP): Renamed to...
6814 (TS, TE, EQ, EN): Provide default definitions.
6815 (www-make-unique-name): Updated.
6816 (HTML-IMAGE-INLINE): Fix typo.
6817 * tmac/groff_www.man: Updated.
6819 * doc/Makefile (homepage.html): Add option -r to grohtml.
6820 Use shortened image name.
6821 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6822 * doc/homepage.ms: Updated and extended.
6824 2002-02-14 Werner LEMBERG <wl@gnu.org>
6826 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6828 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6829 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6830 (tty_printer::put_color): Use it.
6831 (ttr_printer::end_page): Simplify.
6833 2002-02-13 Werner LEMBERG <wl@gnu.org>
6835 * tmac/groff_tmac.man: Moved to...
6836 * man/groff_tmac.man: This place.
6837 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6839 2002-02-12 Werner LEMBERG <wl@gnu.org>
6841 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6842 $(COMPILE.c) to not include groff's assert.h.
6844 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6846 * NEWS, src/drivers/grotty/grotty.man: Document it.
6848 2002-02-11 Werner LEMBERG <wl@gnu.org>
6850 * src/libs/snprintf/snprintf.c: Updated to latest version
6853 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6854 test whether there is `.]' also.
6855 Don't check for spaces after `.['.
6856 * src/roff/grog/grog.sh: Do the same.
6858 2002-02-10 Werner LEMBERG <wl@gnu.org>
6862 * src/libs/libgroff/illegal.cc: Renamed to ...
6863 * src/libs/libgroff/invalid.cc: This.
6864 (illegal_char_table): Renamed to ...
6865 (invalid_char_table): This.
6866 * src/libs/libgroff/Makefile.sub: Updated.
6867 * win32-diffs: Updated.
6869 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6870 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6871 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6872 font::load), src/preproc/eqn/main.cc (read_line, main),
6873 src/preproc/eqn/lex.cc (file_input::read_line),
6874 src/preproc/pic/lex.cc (file_input::read_line,
6875 simple_file_input::get, simple_file_input::peek),
6876 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6877 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6878 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6879 do_bib), src/preproc/tbl/main.cc (table_input::get),
6880 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6881 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6882 do_zero_width, read_request, encode_char, ps_get_line,
6883 transparent_file, get_char_for_escape_name, transparent_translate,
6884 asciify, input_char_description, read_string, set_string),
6885 src/roff/troff/env.cc (environment::add_html_tag),
6886 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6888 * src/include/lib.h: Updated.
6890 * src/preproc/eqn/eqn.cc: Removed.
6894 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6896 2002-02-09 Werner LEMBERG <wl@gnu.org>
6898 * doc/gnu.xpm: New image.
6899 * doc/Makefile (DOCS): Add homepage.ps.
6900 Add rules for converting xpm->png and xpm->eps.
6901 Use `gnu.{xpm,eps}' as image names.
6902 * doc/homepage.ms: Updated.
6904 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6906 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6907 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6908 Remove calls to `B1' and `B2'
6909 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6910 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6911 auxiliary variables for MARGIN-PNG-IMAGE.
6912 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6913 auxiliary macros for MARGIN-PNG-IMAGE.
6914 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6916 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6917 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6918 (DROPCAP): New macro to produce dropcap characters.
6919 (www-do-image): Renamed back to...
6920 (HTML-DO-IMAGE): This.
6921 Updated all callers.
6923 * doc/Makefile (gnubw.eps): Updated.
6924 * doc/homepage.ms: Updated.
6926 2002-02-08 Werner LEMBERG <wl@gnu.org>
6928 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6929 Added `linethick' to table in section `Style Variables'.
6931 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
6933 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6935 2002-02-07 Werner LEMBERG <wl@gnu.org>
6937 Adding options -C (compatibility mode) and -c (grotty's old output
6940 * src/roff/nroff/nroff.sh: Implement it.
6942 * NEWS, src/roff/nroff/nroff.man: Updated.
6944 * PROBLEMS: Document bison 1.32 bug.
6946 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6948 * src/roff/troff/node.cc (make_tfont): Define it earlier.
6949 * src/roff/troff/div.h: Add prototype for `end_diversions'.
6950 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6951 * src/roff/troff/env.h: Add prototype for `title'.
6953 Adding EBCDIC support to grotty.
6955 * src/devices/grotty/tty.cc (CSI): New macro.
6956 (SGR_*, tty_printer::put_color): Use it.
6958 2002-02-06 Werner LEMBERG <wl@gnu.org>
6960 Implementing color support in grotty. The new switch -c activates
6961 the old drawing scheme, disabling color at the same time. The new
6962 switch `-i' selects italic instead of underlining (SGR only).
6964 * src/devices/grotty/tty.cc (putstring): New define instead of
6965 `fputs'. Updated all callers.
6966 (old_drawing_scheme): New global variable.
6967 (COLOR_CHANGE): New enum value.
6968 (SGR_*): New defines containing color handling escape sequences.
6969 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6970 (glyph): New members `back_color_idx' and `fore_color_idx'.
6971 (glyph::order): Add COLOR_CHANGE.
6972 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6973 `is_underline', `is_bold', `cu_flag', `tty_colors'.
6974 New methods `make_underline', `make_bold', `color_to_idx',
6975 `change_color', `put_color'.
6976 (cu_flag): Moved into `tty_printer' class.
6977 (tty_printer::tty_printer): Initialize colors.
6978 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6979 tty_printer::draw, tty_printer::end_page): Handle colors also.
6980 (main): Add options `-c' and `-i'.
6982 * NEWS, src/devices/grotty/grotty.man: Updated.
6984 * src/include/errarg.h (errarg): Add support for `unsigned int'.
6985 * src/libs/libgroff/errarg.c: Implement it.
6987 * src/include/printer.h (printer): Add `change_color' method
6988 (currently used by grotty only).
6989 * src/libs/libdriver/printer.cc: Implement it.
6990 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6991 call to `pr->change_color'.
6993 * src/roff/troff/node.cc (troff_output_file::fill_color,
6994 troff_output_file::glyph_color): Call `do_motion'.
6996 * tmac/tty.tmac: Add color definitions.
6998 * src/roff/groff/groff.man: Minor fixes.
7000 2002-02-05 Bernd Warken <bwarken@mayn.de>
7002 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7003 it. This is a preparation for future changes.
7005 2002-02-05 Werner LEMBERG <wl@gnu.org>
7007 * src/roff/troff/input.cc (process_input_stack): Fix the case
7008 where leading spaces are followed by \f or \s; previously, an
7009 incorrect space width has been used.
7011 * doc/roff.man (quoted_char): Fix argument.
7012 (comment): Define string.
7014 2002-02-04 Larry Kollar <kollar@alltel.net>
7016 * doc/groff.texinfo: More fixes.
7018 2002-02-04 Werner LEMBERG <wl@gnu.org>
7020 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7021 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7022 `restore_compatibility' before `output_string' -- the LINE_STRING
7023 register now already contains proper switches from and to
7026 * man/groff_char.man: Add Euro symbol.
7027 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7028 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7029 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7032 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7034 (.texinfo.html): Add support for texinfo->html.
7036 2002-02-03 Werner LEMBERG <wl@gnu.org>
7038 Added three new requests `ds1', `as1', and `ami'. The former two
7039 are equivalent to `ds' and `as' with the difference that
7040 compatibility mode is saved on entry, switched off during string
7041 expansion, and restored on exit. The latter is the pendant to `dei'
7044 (do_define_string): Use `define_mode' and `calling mode'.
7045 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7046 end of string, respectively.
7047 (define_string, append_string): Use `calling_mode'.
7048 (define_nocomp_string, append_nocomp_string,
7049 define_string_indirect): New functions.
7050 (init_input_requests): Updated.
7051 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7053 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7054 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7055 mm macro package accesses this string register directly.
7056 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7058 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7061 2002-02-02 Larry Kollar <kollar@alltel.net>
7063 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7065 2002-01-31 Werner LEMBERG <wl@gnu.org>
7067 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7069 2002-01-31 Bernd Warken <bwarken@mayn.de>
7071 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7072 * man/groff_out.man: Revised and updated.
7074 2002-01-30 Bernd Warken <bwarken@mayn.de>
7076 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7077 out the unused `{' and `}' commands. Undefined by default.
7078 (IntArray): Make `data' private.
7079 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7080 new methods instead.
7081 (skip_line_D, skip_to_end_of_line): New functions.
7082 (get_D_fixed_args): Use `skip_line_D'.
7083 Changed to handle dummy odd arguments by ...
7084 (get_D_fixed_args_odd_dummy): This new function.
7085 (get_D_variable_args): Split some code into ...
7086 (get_possibly_integer_args): This new function.
7087 (send_draw): Use more `const'.
7088 (delete_current_env): New function.
7089 (position_to_end_of_args): Use `size_t'.
7091 (send_draw): Updated.
7092 (parse_D_command): Handle `c', `C', and `t' better.
7096 2002-01-29 Werner LEMBERG <wl@gnu.org>
7099 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7100 @Def...ListEnd which replaces @Def...x. This is necessary to get
7101 proper HTML output -- see the comment in the file for more
7105 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7107 Fixes to make color changes of 2002-01-21 work with grohtml.
7109 * src/devices/grohtml/post-html.cc (style): Updated.
7110 (html_printer): Remove unused methods.
7111 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7112 html_printer::special): Updated.
7113 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7114 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7115 Added some debugging code.
7116 (html_text::start_tag): Updated.
7117 (html_text::do_push): New method.
7118 (html_text::push_para): Call it.
7119 Add method for handling color.
7120 (html_text::do_color): Updated.
7121 (html_text::shutdown): Handle color.
7122 * src/devices/grohtml/html-text.h (tag_definition): New member
7126 2002-01-28 Werner LEMBERG <wl@gnu.org>
7128 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7130 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7132 Add two switches -a and -g to control the antialiasing bits for
7133 text and graphics, respectively.
7135 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7137 * src/devices/grohtml/grohtml.man: Document them.
7138 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7140 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7141 (setupAntiAlias): New function.
7142 (createAllPages): Updated.
7143 (scanArguments): Handle `-a' and `-g'.
7144 (main): Call `setupAntiAlias'.
7147 2002-01-27 Werner LEMBERG <wl@gnu.org>
7149 * doc/groff.texinfo (Def*): Call index function after deffn.
7151 * tmac/html.tmac: Call `nroff' request.
7153 2002-01-26 Larry Kollar <kollar@alltel.net>
7155 * tmac/groff_ms.man: Add some omissions.
7157 2002-01-25 Larry Kollar <kollar@alltel.net>
7159 * tmac/groff_ms.man: Typographical improvements.
7161 2002-01-25 Werner LEMBERG <wl@gnu.org>
7163 * doc/groff.texinfo: Updated version and copyright.
7164 * src/devices/grops/grops.man: Updated.
7166 * tmac/groff_tmac.man: Fix `ig' macro.
7168 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7170 Use `.ne' unconditionally everywhere.
7171 (TS): Only insert some vertical space. Doing a page break is no
7172 longer necessary due to the redefinition of the `ne' request.
7174 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7175 warning for unknown subcommands but parse and pass them to the
7178 2002-01-24 Werner LEMBERG <wl@gnu.org>
7180 * tmac/groff_www.man, NEWS: Fix typos.
7182 2002-01-21 Werner LEMBERG <wl@gnu.org>
7184 Complete revision of color support:
7186 Adapt programs to the new libdriver/input.cc.
7188 Color spaces are no longer converted to RGB but transferred as-is
7189 in the troff intermediate output format.
7191 Handle default color gracefully. troff now supports a `default'
7192 color (which can't be changed).
7194 grops will now use the proper color space functions if available.
7198 Note that currently grohtml doesn't handle colors properly. This
7201 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7202 (ui_to_a): New function.
7203 * src/include/lib.h: Updated.
7205 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7206 (color): Simplified; removed all `double' members and methods.
7207 A new array `components' now holds the color parameters.
7208 (color::is_default, color::get_components): New methods.
7209 (color::operator==, color:operator!=): New.
7210 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7211 to make access to the `components' array more comprehensible.
7212 * src/libs/libgroff/color.cc: Implement new color support.
7213 (atoh): Small fixes.
7214 (color::read_encoding): Simplified for new troff intermediate color
7216 (default_color): New global variable.
7218 * src/roff/troff/input.cc (default_symbol): New global variable.
7219 (lookup_color): Use it.
7220 (default_black): Removed.
7221 (do_glyph_color, do_fill_color): Simplified.
7222 (define_color): Handle default color.
7224 (do_if_request): Handle default color.
7225 * src/roff/troff/env.cc (environment::environment): Initialize
7226 colors with `default_color'.
7227 * src/roff/troff/node.cc (troff_output_file::put): Add method
7229 (troff_output_file::hex): Removed.
7230 (troff_output_file::fill_color, troff_output_file::glyph_color):
7231 Updated to include/color.h and libdriver/input.cc.
7233 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7234 fill color properly (identically to the outline color). \D'f...'
7235 doesn't work any more.
7236 All function calls to it updated.
7238 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7240 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7243 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7244 (ps_printer::sbuf_color): Make a real member instead of pointer.
7245 (ps_printer::fill_color, ps_printer::output_color): Removed.
7246 (ps_printer::ps_printer): Updated.
7247 (ps_printer::set_char): Ditto.
7248 (ps_printer::set_color): Use various color schemes.
7249 Use `put_color' method.
7250 (ps_printer::flush_sbuf): Don't set color.
7251 (ps_printer::fill_path): Take `environment' as parameter.
7252 Simplify color handling.
7253 (ps_printer::set_line_thickness): Renamed to ...
7254 (ps_printer::set_line_thickness_and_color): This (and updated).
7255 (ps_printer::set_color): Change second parameter from `complete'
7256 to `fill' which better describes what it does.
7257 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7258 and text in the right order.
7260 Remove branches for `f' and `F'; this is handled by
7262 * src/devices/grops/ps.h: Updated.
7263 * font/devps/prologue (FL): Redefined.
7264 ({F,C}r,k,g: New color functions (with and without filling).
7266 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7267 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7268 doc/groff.texinfo, NEWS: Updated.
7270 2002-01-20 Bernd Warken <bwarken@mayn.de>
7272 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7273 in this file for what has been changed.
7275 2002-01-19 Werner LEMBERG <wl@gnu.org>
7277 * test-groff: Fix GROFF_FONT_PATH.
7278 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7279 is read before .TH or .Dd is parsed.
7281 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7283 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7284 quadrant boundaries.
7286 2002-01-18 Werner LEMBERG <wl@gnu.org>
7288 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7291 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7293 * tmac/doc.common: Initialize %I register for the %I macro to
7294 avoid (harmless) warning.
7295 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7296 when in the SYNOPSIS section.
7298 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7300 * src/preproc/pic/lex.cc (get_token): Fix typo.
7302 2002-01-17 Werner LEMBERG <wl@gnu.org>
7304 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7306 2002-01-17 Larry Kollar <kollar@alltel.net>
7308 * tmac/groff_ms.man: Completely rewritten.
7310 2002-01-16 Werner LEMBERG <wl@gnu.org>
7312 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7314 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7316 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7318 (ps_printer::draw): Ditto.
7320 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7322 * tmac/groff_mdoc.man: Minor fixes.
7324 2002-01-13 Werner LEMBERG <wl@gnu.org>
7326 * man/groff_out.man: Some fixes.
7328 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7330 * doc/pic.ms: Fix typos.
7332 2002-01-12 Werner LEMBERG <wl@gnu.org>
7334 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7336 2002-01-10 Werner LEMBERG <wl@gnu.org>
7338 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7342 2002-01-09 Bernd Warken <bwarken@mayn.de>
7344 * man/groff_out.man: Revised.
7345 * man/roff.man: Minor fixes.
7346 * src/roff/troff/troff.man: Some reordering.
7348 2002-01-09 Werner LEMBERG <wl@gnu.org>
7350 * tmac/an-old.tmac: Add dummy macros for equation support.
7352 2002-01-07 Werner LEMBERG <wl@gnu.org>
7354 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7356 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7358 * tmac/groff_man.man: Small improvements.
7360 2002-01-07 Bernd Warken <bwarken@mayn.de>
7362 * man/groff_diff.man: Revised.
7364 2002-01-06 Werner LEMBERG <wl@gnu.org>
7366 * tmac/www.tmac: Remove extraneous backslash.
7368 2002-01-06 Bernd Warken <bwarken@mayn.de>
7370 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7372 2002-01-05 Werner LEMBERG <wl@gnu.org>
7374 Integrated groffer, contributed by Bernd Warken.
7376 * contrib/groffer/*: New.
7377 * Makefile.in, NEWS: Updated.
7379 2002-01-04 Werner LEMBERG <wl@gnu.org>
7381 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7382 registers defined in macro packages.
7383 Revising the ms part.
7385 2002-01-04 Larry Kollar <kollar@alltel.net>
7387 * doc/groff.texinfo: Add documentation for ms macros.
7389 2002-01-02 Werner LEMBERG <wl@gnu.org>
7391 First step in adding PS support for the Euro symbol. `eu' is the
7392 official Euro logo, `Eu' is a font-specific glyph variant.
7394 * font/devps/text.enc: Add `Euro' at position 9.
7395 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7396 * font/devps/symbolmap: Regenerated.
7400 2002-01-02 Bernd Warken <bwarken@mayn.de>
7402 * man/roff.man: Revised.
7404 2002-01-01 Bernd Warken <bwarken@mayn.de>
7406 * src/roff/groff/groff.man: Completely rewritten.
7408 2001-12-31 Werner LEMBERG <wl@gnu.org>
7410 * doc/Makefile: Updated.
7412 2001-12-30 Werner LEMBERG <wl@gnu.org>
7414 * tmac/www.tmac: Make all names of internal macros/registers/strings
7415 lowercase, and prepend `www-'.
7416 Other minor changes.
7417 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7419 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7421 Implement option `-b' in grohtml to set the HTML background colour.
7423 * src/devices/grohtml/post-html.cc (default_background): New global
7425 (html_printer::html_printer): Initialize `background' to
7426 `default_background'.
7427 (main): Implement option `-b'.
7429 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7431 * src/devices/grohtml/grohtml.man: Updated.
7432 * doc/Makefile (.ms.html): Use `-b'.
7433 * tmac/html.tmac: Don't set background color.
7435 Add new grohtml tag `.html-tl'.
7437 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7439 (title_desc::title_desc): Updated.
7440 (html_printer::troff_tag): Handle `.html-tl'.
7441 (html_printer::write_title): Use `with_h1'.
7442 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7443 (HTML-TL): New macro.
7445 Add support for unordered lists in HTML.
7447 * tmac/www.tmac (www-level): New auxiliary register.
7448 (www-level1, www-level2, www-level3): New auxiliary strings.
7449 (www-push-level, www-pop-level): New auxiliary macros
7450 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7454 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7455 (DEFAULT_VERTICAL_OFFSET): Removed.
7456 (IMAGE_BOARDER_PIXELS): Set to 0.
7457 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7458 (vertical_offset): Initialize with 0.
7459 (gsPaper): New global variable.
7460 (get_resolution): Scan for and return unsigned int.
7461 (get_papersize): New function to get paper length from devps/DESC.
7462 (determine_vertical_offset): New function.
7463 (createAllPages): Produce gray-level images and use proper page
7465 (createImage): Use `-quiet' option of pnmcrop.
7466 (addZ): Fix passing of `-Z'.
7467 (scanArguments): Fix handling of `-o'.
7468 (main): Call `determine_vertical_offset'.
7469 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7472 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7473 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7474 glyph descenders properly.
7476 * doc/homepage.ms: Include `gnubw.eps'.
7477 * doc/Makefile (gnubw.eps): New rule.
7478 (homepage.html): Depend on `gnubw.eps'.
7480 2001-12-25 Werner LEMBERG <wl@gnu.org>
7482 * src/roff/troff/input.cc (default_black): Fix return value.
7484 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7486 * tmac/doc-common (Dt): Change output of architecture strings.
7487 Do some syntax cleanup.
7488 * tmac/groff_mdoc.man: Updated.
7490 2001-12-23 Werner LEMBERG <wl@gnu.org>
7492 Adding an `itc' request (input line trap accepting \c).
7494 * src/roff/troff/env.h (environment): New member
7495 `continued_input_trap'.
7496 Make `do_input_trap' a friend function instead of `input_trap'.
7497 * src/roff/troff/env.cc (environment::environment,
7498 environment::copy): Updated.
7499 (environment::newline): Implement it.
7500 (do_input_trap): New function.
7501 (input_trap): Call `do_input_trap'.
7502 (input_trap_continued): New function.
7503 (init_env_requests): Updated.
7504 * src/roff/troff/TODO: Updated.
7506 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7509 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7511 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7513 * tmac/doc-common, tmac/doc-syms: Small updates.
7515 2001-12-22 Colin Watson <cjwatson@debian.org>
7517 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7519 2001-12-22 Bernd Warken <bwarken@mayn.de>
7521 * MANIFEST: New file.
7523 2001-12-22 Werner LEMBERG <wl@gnu.org>
7525 * src/preproc/grn/grn.man: Updated.
7527 2001-12-22 Solar Designer <solar@openwall.com>
7529 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7532 2001-12-19 Werner LEMBERG <wl@gnu.org>
7534 Implement a fallback character request `.fchar'.
7536 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7537 (is_fallback): New inline function.
7538 * src/roff/troff/input.cc (do_define_character): New function.
7539 (define_character): Call `do_define_character'.
7540 (define_fallback_character): New function.
7541 (init_input_requests): Add `fchar'.
7542 (charinfo::charinfo): Updated.
7543 (charinfo::set_macro): New argument to set `fallback' flag.
7544 * src/roff/troff/node.cc (make_glyph_node, make_node,
7545 node::add_char): Check `fallback' flag.
7546 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7548 2001-12-16 Werner LEMBERG <wl@gnu.org>
7550 * groff.texinfo: Document exact search algorithm for glyphs.
7552 2001-12-15 Werner LEMBERG <wl@gnu.org>
7554 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7555 the left side of $(MANPAGES) rule to make it always non-empty.
7557 2001-12-14 Werner LEMBERG <wl@gnu.org>
7559 * src/roff/troff/input.cc (default_black): Define default color
7560 `black' if not yet defined.
7562 2001-12-13 Werner LEMBERG <wl@gnu.org>
7564 Implement new string-valued register `.fn' to return the current
7565 real (internal) font name.
7567 * env.cc (environment::get_font_name_string): New function.
7568 (init_env_requests): Add `.fn' register.
7569 * env.h (environment): Updated.
7570 * node.cc (font_info): Make `get_font_name' a friend.
7571 (get_font_name): New function.
7574 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7576 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7578 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7580 2001-12-12 Werner LEMBERG <wl@gnu.org>
7582 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7584 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7586 * man/groff_diff.man: Adding documentation for \O.
7588 2001-12-10 Werner LEMBERG <wl@gnu.org>
7590 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7591 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7593 2001-12-09 Werner LEMBERG <wl@gnu.org>
7595 * man/roff.man: Revised.
7596 * src/roff/groff/groff.man: Replace man page references with a
7597 pointer to roff.man.
7599 2001-12-09 Bernd Warken <bwarken@mayn.de>
7601 * man/roff.man: Completely rewritten.
7603 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7605 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7607 2001-12-05 Werner LEMBERG <wl@gnu.org>
7609 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7611 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7612 order of initializers.
7615 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7617 * doc/groff.texinfo: Fix documentation of \O.
7619 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7620 html_text::do_table, html_text::do_emittext, html_text::do_para):
7621 Use `const' for first argument.
7622 (html_text::do_table): Use cast.
7623 * src/devices/grohtml/html-text.h: Updated.
7624 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7625 method for `const string &s'.
7626 * src/devices/grohtml/html.h: Updated.
7627 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7628 (ANCHOR_TEMPLATE): Modified.
7629 (manufacture_headings): New global variable to handle `-h' option.
7630 (is_subsection): Removed.
7631 (char_buffer::add_string): Add `const' to first argument.
7632 Protect against invalid string argument.
7633 Add method for `const string &s'.
7634 (text_glob): Completely redesigned.
7635 (page): Use `const' for strings and remove string length variable.
7636 (page::add_html): Removed.
7637 (page::add_end_encode): New member function.
7638 (to_unicode): Moved upwards.
7639 (title_desc, header_desc): Updated.
7640 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7642 (html_printer::is_bold, html_printer::make_bold): New member
7644 (html_printer::end_of_line): Updated.
7645 (generate_img_src, html_printer::do_auto_image,
7646 html_printer::do_title, html_printer::write_header,
7647 html_printer::determine_header_level, html_printer::do_heading,
7648 html_printer::do_linelength, html_printer::do_pageoffset,
7649 html_printer::do_indentation, html_printer::do_tempindent,
7650 html_printer::do_indentedparagraph, html_printer::do_break,
7651 html_printer::flush_sbuf, get_html_translation,
7652 html_printer::begin_page, html_printer::special): Rewritten to get
7653 rid of static string length limit.
7654 (html_printer::troff_tag): Added `.no-auto-rule'.
7655 (html_printer::flush_globs): Small fix.
7656 (html_printer::determine_space): Don't compute `space_width'.
7657 (html_printer::translate_to_html): Renamed to ...
7658 (html_printer::emit_html): This (with updates).
7659 (html_printer::write_header): Implement `-h' option.
7660 (html_printer::draw): Remove commented-out code. Handle `F'
7662 (html_printer::add_char_to_sbuf): Removed.
7663 (html_printer::add_to_sbuf): Rewritten.
7664 (html_printer::sbuf_continuation): Fixed.
7665 (html_printer::seen_backwards_escape, reverse,
7666 html_printer::remove_last_char_from_sbuf): Removed.
7667 (char_translate_to_html, str_translate_to_html): Removed.
7668 (html_printer::overstrike): New function member.
7669 (html_printer::set_char): Use it.
7670 (html_printer::do_body): New function member.
7671 (html_printer::~html_printer): Use it.
7672 (main): Handle `-h' option.
7674 * src/devices/grohtml/grohtml.man: Document -h switch.
7676 * src/preproc/html/pre-html.cc: Include searchpath.h
7677 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7678 (get_resolution): New function.
7679 (checkImageDir): Use `0777' permissions in mkdir()
7680 (write_start_image): Rewritten to use `\O[5...]'.
7681 (createImage, generateImages): Updated.
7682 (main): Handle `F' and `h' options.
7683 Use `get_resolution'.
7685 * src/roff/troff/input.cc (begin, end, image): Removed.
7686 (do_suppress): Take parameter.
7687 Handle modified syntax of `\O'.
7688 (token::next): Updated.
7689 (init_markup_requests): Removed.
7692 * src/roff/troff/div.h: Add declaration for begin_page().
7694 * tmac/color-html.tmac: Removed. Contents moved to...
7695 * tmac/html.tmac: Here. Set background color.
7696 * tmac/color.tmac: Removed. Contents moved to...
7697 * tmac/ps.tmac: Here.
7698 * tmac/www.tmac: Remove the title command when generating images
7700 (NO_AUTO_RULE): New macro.
7701 (HTML_DO_IMAGE): Use revised `\O' escapes.
7702 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7704 2001-12-02 Werner LEMBERG <wl@gnu.org>
7706 * tmac/groff_mdoc.man: Fix typo.
7708 2001-12-01 Colin Watson <cjwatson@debian.org>
7710 * man/roff.man: Fix typo.
7712 2001-11-29 Werner LEMBERG <wl@gnu.org>
7714 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7717 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7718 more than one argument to \D'f ...'.
7720 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7722 2001-11-28 Werner LEMBERG <wl@gnu.org>
7724 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7727 * tmac/groff_man.man: Minor cosmetic fix.
7729 2001-11-27 Werner LEMBERG <wl@gnu.org>
7731 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7732 tmac/groff_www.man: s/mwww/www/.
7734 2001-11-26 Werner LEMBERG <wl@gnu.org>
7736 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7737 * configure: Regenerated.
7738 * win32-diffs: Updated.
7740 * tmac/groff_mwww.tmac: Renamed to ...
7741 * tmac/groff_www.tmac: This.
7742 * tmac/mwww.tmac: Removed.
7743 * NEWS, tmac/Makefile.sub: Updated.
7745 2001-11-21 Werner LEMBERG <wl@gnu.org>
7747 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7748 Fix explanation of `\D' and `rt'.
7750 2001-11-20 Werner LEMBERG <wl@gnu.org>
7752 * tmac/an-old.tmac (an-header): Set header length equal to page
7754 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7758 2001-11-19 Werner LEMBERG <wl@gnu.org>
7760 * NEWS, man/Makefile.sub: Updated.
7762 2001-11-19 Bernd Warken <bwarken@mayn.de>
7764 * man/ditroff.man: New file.
7766 2001-11-17 Werner LEMBERG <wl@gnu.org>
7768 * man/groff_differences.man: Renamed to ...
7769 * man/groff_diff.man: This. Updated.
7770 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7772 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7773 * src/preproc/html/pushback.cc: This. Updated.
7774 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7775 * src/preproc/html/pushback.h: This.
7776 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7779 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7780 * src/libs/libgroff/htmlhint.cc: This.
7781 * src/libs/libgroff/Makefile.sub: Updated.
7783 * tmac/an-old.tmac (an-end): Fix page length.
7785 2001-11-16 Werner LEMBERG <wl@gnu.org>
7787 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7788 * man/Makefile.sub: Include groff_differences.man.
7789 * VERSION: Set to 1.18.
7790 * REVISION: Set to 0.
7792 2001-11-16 Bernd Warken <bwarken@mayn.de>
7794 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7795 the second dot (or ending macro name) to end a macro.
7796 * doc/groff.texinfo: Doc fix.
7798 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7800 * tmac/doc-common (doc-header): Handle very long document titles
7803 2001-11-16 Werner LEMBERG <wl@gnu.org>
7805 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7807 2001-11-15 Werner LEMBERG <wl@gnu.org>
7809 * src/roff/troff/troff.man: Revised and split into troff.man and...
7810 * man/groff_differences.man: New file.
7813 2001-11-13 Werner LEMBERG <wl@gnu.org>
7815 * tmac/an-old.tmac (TS, TE): New macros for table support.
7817 2001-11-12 Werner LEMBERG <wl@gnu.org>
7819 * src/include/lib.h: Provide a fix for emx to not include
7822 2001-10-27 Werner LEMBERG <wl@gnu.org>
7824 * src/roff/troff/input.cc (substring_macro): Fix computation of
7827 2001-10-20 Werner LEMBERG <wl@gnu.org>
7829 Undo change from 2001-08-28.
7831 * src/roff/troff/input.cc (have_input): New global variable.
7832 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7833 in compatibility mode.
7834 (process_input_stack): Use it.
7836 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7838 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7839 being handled as end-of-sentence characters,
7841 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7843 * src/roff/troff/input.cc (file_iterator): New members
7844 `suppress_newline_flag' and `seen_escape'.
7845 (file_iterator::next_file): Updated.
7846 (file_iterator::fill): Use it.
7847 (string_iterator): New member `suppress_newline_flag'.
7848 (string_iterator::fill): Set it.
7849 (get_color_element): Use MAX_COLOR_VAL.
7850 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7851 (no_fill): Don't set `env->ignore_next_eol'.
7852 (environment::newline): Handle `eol' tag properly.
7854 (environment::add_html_tag): Set `env->ignore_next_eol'.
7856 * src/roff/troff/env.h (environment): Updated.
7858 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7860 (html_printer::outstanding_eol): New member function.
7861 (html_printer::do_title): Use new functions.
7862 (html_printer::troff_tag): Test `id_eol_ce'.
7864 2001-10-10 Werner LEMBERG <wl@gnu.org>
7866 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7867 files work with -C also.
7869 2001-10-05 Werner LEMBERG <wl@gnu.org>
7871 * doc/pic.ms: Minor fix.
7872 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7873 as a valid command line switch.
7874 * src/devices/grohtml/post-html.cc (main): Ditto.
7876 * src/devices/grohtml/grohtml.man: Updated.
7877 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7879 2001-10-04 Werner LEMBERG <wl@gnu.org>
7881 Implementing color support in troff, pic, grops, and grohtml. These
7882 changes are based on a major patch provided by Gaius Mulley
7885 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7886 definitions with both hex values and fractions.
7888 New escapes: \m and \M for drawing and background color,
7889 respectively. This corresponds to the troff output commands `m'
7892 groff and troff accept command line switch `-c' to disable color
7893 output (which is automatically disabled in compatibility mode).
7895 New scaling indicator `f' for fractions (1f = 65536u).
7897 New conditional operator `m' to test for defined colors with `if'
7900 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7901 (or `outlined'), and `shaded' added to pic.
7903 * src/include/color.h: New file.
7904 * src/include/driver.h: Include it.
7905 * src/include/printer.h: Include color.h.
7906 (environment): New members `col' and `fill'.
7907 (printer): Remove `adjust_arc_center' member function.
7908 * src/include/Makefile.sub: Updated.
7910 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7912 Handle `m' and `DF' troff commands.
7913 * src/libs/libgroff/color.cc: New file.
7914 * src/libs/libgroff/Makefile.sub: Updated.
7916 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7918 (createImage): Fix computation of `y2'.
7920 (buffer::write_file_html): Remove calls to `stop'.
7922 * src/preproc/pic/common.h (common_output): New abstract function
7923 members `set_color', `reset_color', `get_last_filled', and
7924 `get_outline_color'.
7925 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7926 (object_spec): Add members `shaded' and `outlined'.
7927 * src/preproc/pic/output.h (output): `command' is now abstract.
7928 New function members `set_color', `reset_color', `get_last_filled',
7929 and `get_outline_color'.
7930 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7931 `outline[d]', and `shaded'.
7932 * src/preproc/pic/object.cc (output::command): Removed.
7933 (output::set_location): Moved to output.h.
7934 (graphic_object): Add protected members `outline_color' and
7936 Add member functions `set_outline_color', `get_outline_color', and
7938 (closed_object): Add member function `set_fill_color'.
7939 Add member `color_fill'.
7940 (graphic_object::print_text): Use `out->set_color' and
7942 (box_object::print, ellipse_object::print, circle_object::print,
7943 line_object::print, spline_object::print, arc_object::print): Ditto.
7944 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7945 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7946 `SHADED', making them `%left'.
7947 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7948 * src/preproc/pic/tex.cc (tex_output): New dummy function members
7949 `set_color', `reset_color', `get_last_filled', and
7950 `get_outline_color'.
7951 * src/preproc/pic/troff.cc (simple_output): New abstract function
7952 members `set_color', `reset_color', and `get_last_filled'.
7953 (simple_output::polygon, simple_output::circle,
7954 simple_output::ellipse): Use `get_last_filled'.
7955 (troff_output): New members `last_filled' and `last_outlined'.
7956 New function members `set_color', `reset_color', `get_last_filled',
7957 and `get_outline_color'.
7958 (troff_output::finish_picture): Use `reset_color'.
7959 (troff_output::set_fill): Test `last_filled'.
7960 * src/preproc/pic/pic.man: Updated.
7962 * src/roff/groff/groff.cc (main): Implement `-c' option.
7963 (synopsis, help): Updated.
7964 src/roff/groff/groff.man: Updated.
7966 * src/roff/troff/troff.h: Include color.h.
7967 (warning_type): Add WARN_COLOR.
7968 * src/roff/troff/env.h (environment): New members
7969 `{cur,prev}_{glyph,fill}_color'.
7970 New member functions `get_{prev_,}{glyph,fill}_color'.
7971 * src/roff/troff/env.cc: Initialize and implement them.
7972 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7973 Replace `NULL' with `0' everywhere for consistency.
7974 (lookup_color, default_black, do_glyph_color, do_fill_color,
7975 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7976 define_color): New functions.
7977 (token::next): Implement \M and \m escapes.
7978 (do_if_request): Implement `m' operator.
7980 (main): Implement `-c' option.
7981 (init_markup_requests): Add `defcolor' request.
7982 (warning_table): Add `color' warning.
7983 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7985 * src/roff/troff/node.cc (troff_output_file): New members
7986 `current_{page,glyph}color'. New member functions `put_hex',
7987 `glyph_color', and `fill_color'.
7988 (glyph_color_node::*, fill_color_node::*): Implement it.
7989 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7990 (parse_term): Add support for `f'.
7991 * src/roff/troff/troff.man: Updated.
7993 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7995 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7996 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7998 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7999 (tag_definition): Use `void *' for arg1.
8000 (html_text): New member functions `do_color' and `done_color'.
8001 Use `void *' for second parameter of `push_para' member function.
8002 New `push_para' member function with a single parameter.
8003 Use `char *' for parameter of `issue_table_begin' member funtion.
8004 New `issue_color_begin' member function.
8005 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8007 (html_text::issue_color_begin): New function.
8008 (html_text::issue_table_begin): Use `char *' for parameter.
8009 (html_text::start_tag, html_text::shutdown,
8010 html_text::check_emit_text): Updated.
8011 (html_text::push_para): Use `void *' for second parameter.
8012 Add same function with only one parameter.
8013 (html_text::do_*): Updated.
8014 (html_text::do_color, html_text::done_color): New functions.
8015 * src/devices/grohtml/post-html.cc (style): New member `col'.
8016 Mew member `style' with 6 parameters.
8017 (style::style, style::operator==): Updated.
8018 (html_printer::do_font): Use it.
8019 (html_printer::draw): Add dummy entry for `F'.
8020 (html_printer::set_char): Updated.
8021 * src/devices/grohtml/grohtml.man: Updated.
8023 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8024 trailing zeroes removed.
8025 (ps_printer): New members `sbuf_color', `fill_color', and
8027 Removed member `fill'.
8028 New member function `set_color'.
8029 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8030 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8031 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8033 * tmac/color-html.tmac, tmac/color.tmac: New files.
8034 * tmac/troffrc: Include them.
8035 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8036 * tmac/Makefile.sub: Updated.
8038 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8039 man/groff.man: Updated.
8040 * font/devps/prologue.ps: Define FC and CO functions.
8042 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8044 Fix incorrect cropping of images and incorrect handling of special
8045 characters. Fix handling of file names in \O.
8047 * src/include/geometry.h: New file.
8048 * src/libs/libgroff/geometry.cc: New file.
8049 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8051 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8053 (do_suppress): Updated.
8054 * src/roff/troff/node.cc: Include geometry.h.
8055 (troff_output_file::flush_tbuf): Fixed parameters to
8056 `check_output_limits'.
8057 (troff_output_file::check_charinfo): Ditto.
8058 (troff_output_file::determine_line_limits): Add support for `Da'
8061 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8062 Add new parameter `is_special' to decode special characters from
8064 (html_printer::do_title, html_printer::do_heading,
8065 html_printer::do_indentedparagraph,
8066 html_printer::translate_to_html, html_printer::special): Updated.
8068 2001-10-03 Werner LEMBERG <wl@gnu.org>
8070 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8071 Fix entry for config.h.
8072 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8073 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8074 * src/preproc/eqn/eqn.man: Document -d command line option.
8076 2001-09-27 Werner LEMBERG <wl@gnu.org>
8078 * man/groff.man: Use
8086 instead of the old code (`.ad .hy' after the table) to suppress
8087 incorrect hyphenation for grohtml output.
8089 2001-09-22 Werner LEMBERG <wl@gnu.org>
8091 * man/groff_font.man, man/groff_out.man: Minor fixes.
8093 2001-09-20 Werner LEMBERG <wl@gnu.org>
8095 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8096 Arnold Robbins <arnold@skeeve.com>).
8098 2001-09-09 Werner LEMBERG <wl@gnu.org>
8100 * configure: Regenerated with autoconf 2.52.
8102 * doc/groff.texinfo: Complete revision of indices.
8104 2001-09-07 Werner LEMBERG <wl@gnu.org>
8106 * doc/Makefile (clean): Updated to delete all indices.
8108 2001-09-05 Werner LEMBERG <wl@gnu.org>
8110 * src/roff/troff/troff.man: Remove superfluous line.
8112 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8113 given on the command line (or rather, if only the default warnings
8116 2001-09-03 Werner LEMBERG <wl@gnu.org>
8118 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8119 use .ne for TTY devices.
8121 2001-08-31 Werner LEMBERG <wl@gnu.org>
8123 * src/roff/troff/token.h, src/roff/troff/input.cc:
8124 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8126 2001-08-28 Werner LEMBERG <wl@gnu.org>
8128 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8129 * src/roff/troff/input.cc (token::next): Return
8130 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8132 (token::description): Updated.
8133 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8134 (token::add_to_node_list, token::process): Ignore
8135 TOKEN_TRANSPARENT_ESCAPE.
8137 2001-08-27 Werner LEMBERG <wl@gnu.org>
8139 * tmac/an-old.tmac: Fix `S' string.
8141 2001-08-26 Werner LEMBERG <wl@gnu.org>
8143 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8145 2001-08-25 Werner LEMBERG <wl@gnu.org>
8147 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8149 Many other minor fixes.
8151 * configure.ac: Add message at end to inform how to compile
8153 * configure: Regenerated.
8155 2001-08-24 Werner LEMBERG <wl@gnu.org>
8157 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8158 Updated to latest version of libc.
8160 2001-08-23 Werner LEMBERG <wl@gnu.org>
8162 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8163 Autoconf 2.50 and newer can handle this.
8164 * configure: Regenerated.
8166 2001-08-21 Werner LEMBERG <wl@gnu.org>
8168 * doc/pic.ms: Fix typo.
8169 * src/preproc/tbl/tbl.man: Document case of global options.
8171 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8173 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8174 handling of `CR' font.
8176 2001-08-20 Werner LEMBERG <wl@gnu.org>
8178 Use a config.h file.
8180 * src/include/lib.h: Include config.h.
8181 * All C files: Ditto (if necessary).
8182 * All C++ source and header files: Include lib.h first (if
8185 * src/include/config.hin: New file (autogenerated by autoheader).
8186 * stamp-h.in: New file.
8187 * configure.ac: Updated.
8188 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8189 (GROFF_ARRAY_DELETE): Simplified.
8190 * Makefile.sub (DISTCLEANFILES): Updated.
8191 Added targets for remaking config.status, config.hin, config.h,
8192 stamp-h.in, and stamp-h.
8193 * configure: Regenerated.
8195 2001-08-19 Werner LEMBERG <wl@gnu.org>
8199 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8201 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8202 (do_sprintf): Use snprintf().
8204 2001-08-18 Werner LEMBERG <wl@gnu.org>
8206 * src/libs/snprintf/*: Added an snprintf module written by Mark
8208 * src/libs/libgroff/Makefile.sub: Updated.
8209 * configure.ac: Add test for snprintf().
8210 * Makefile.in: Updated.
8211 * configure: Regenerated.
8213 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8216 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8218 * tmac/doc.tmac (Ex): New implementation.
8219 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8221 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8223 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8225 * tmac/groff_tmac.man: Updated.
8227 2001-08-13 Werner LEMBERG <wl@gnu.org>
8229 * src/preproc/tbl/tbl.man: Minor documentation update.
8231 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8233 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8234 * configure.ac: Add declaration test for gettimeofday().
8235 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8236 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8237 * configure: Regenerated.
8239 2001-08-11 Werner LEMBERG <wl@gnu.org>
8241 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8242 * configure.ac: Add declaration test for strcasecmp().
8243 * Makefile.in: Updated.
8244 * configure: Regenerated.
8245 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8246 this is necessary because groff's mkstemp.cc is C++.
8247 Add declaration conditionally for strcasecmp().
8249 2001-08-10 Werner LEMBERG <wl@gnu.org>
8251 Integrated pic2graph, contributed by Eric S. Raymond.
8253 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8255 * Makefile.in, NEWS: Updated.
8257 * src/preproc/tbl/tbl.man: Revised.
8259 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8261 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8263 2001-08-09 Werner LEMBERG <wl@gnu.org>
8265 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8268 2001-08-08 Paul Eggert <eggert@twinsun.com>
8270 * Makefile.sub (configure): Depend on configure.ac, not
8272 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8274 2001-08-07 Werner LEMBERG <wl@gnu.org>
8276 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8279 2001-08-06 Werner LEMBERG <wl@gnu.org>
8281 * src/roff/troff/troff.man: Improve documentation of -E option.
8283 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8285 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8288 2001-07-27 Werner LEMBERG <wl@gnu.org>
8290 * src/preproc/refer/refer.cc: Undo last change.
8291 * src/devices/grohtml/post-html.cc: Ditto.
8293 2001-07-26 Werner LEMBERG <wl@gnu.org>
8295 * src/preproc/refer/refer.cc: Include `lib.h'.
8296 * src/devices/grohtml/post-html.cc: Ditto.
8298 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8300 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8301 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8302 * Makefile.in: Comment updated.
8303 * configure: Regenerated.
8305 2001-07-25 Werner LEMBERG <wl@gnu.org>
8307 * src/preproc/pic/pic.cc: Removed.
8308 * src/preproc/pic/pic_tab.h: Removed.
8309 * src/preproc/refer/label.cc: Removed.
8311 * doc/Makefile (.ms.html): Don't use a file name extension in
8312 argument to grohtml's -I option.
8313 * Makefile.in (dist): Remove CVS directories.
8314 Call `distfiles' target.
8316 * src/devices/grohtml/grohtml.man: Add information about valid
8317 versions of pnmtopng.
8318 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8319 name instead of number.
8321 2001-07-24 Werner LEMBERG <wl@gnu.org>
8323 * doc/groff.texinfo: Minor fixes.
8325 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8327 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8330 2001-07-20 Werner LEMBERG <wl@gnu.org>
8332 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8333 * src/libs/libgroff/mkstemp.cc: New file.
8334 * src/libs/libgroff/mksdir.cc: New file.
8335 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8336 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8337 * src/libs/libgroff/Makefile.sub: Updated.
8338 * src/include/lib.h: Add mksdir() prototype.
8339 * src/include/posix.h: Define S_IXUSR if not yet defined.
8341 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8342 (createAllPages): Use mksdir() instead of current code.
8343 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8344 (main): [!HAVE_MKSTEMP]: Removed.
8346 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8347 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8349 * configure.ac: Add tests for stdint.h, sys/time.h, and
8351 Call new GROFF_xxx macros.
8352 * configure: Regenerated.
8353 * Makefile.in: Comments updated.
8355 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8357 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8358 instead of current code.
8359 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8360 * src/roff/groff/groff.cc (possible_command::insert_args): New
8362 (main): Use it for predriver handling instead of insert_arg().
8364 2001-07-19 Werner LEMBERG <wl@gnu.org>
8366 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8369 * src/include/posix.h: Define S_IWUSR if not yet defined.
8371 2001-07-18 Werner LEMBERG <wl@gnu.org>
8375 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8377 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8378 Some other minor fixes.
8379 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8381 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8383 Replace call to `troff' with `groff -Z' to make it aware of
8386 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8387 (troff_command, command_prefix): Removed.
8388 (alterDeviceTo): Use groff.
8389 (addZ): New function.
8390 (char_buffer::do_html): Use it.
8391 (scanArguments): Use TROFF_COMMAND.
8392 (findPrefix): Removed.
8394 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8396 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8398 * doc/pic.ms: Documentation fixes.
8400 2001-07-17 Werner LEMBERG <wl@gnu.org>
8402 Replace atexit() with global destructor.
8404 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8405 (xtmpfile_list_init): New global structure to deallocate
8406 xtmpfile_list on exit. Its destructor inherits most code from
8408 (remove_tmp_files): Deleted.
8409 (add_tmp_file): Simplified.
8411 2001-07-16 Werner LEMBERG <wl@gnu.org>
8413 Replace strdup() with strsave().
8415 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8416 (set_papersize): Use strsave() and a_delete.
8417 (main): Use strsave().
8418 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8419 removeAllPages): Use strsave() and a_delete.
8421 * configure.ac: Remove test for strdup.
8422 * Makefile.in: Comment updated.
8423 * configure: Regenerated.
8425 2001-07-15 Werner LEMBERG <wl@gnu.org>
8427 * win32-diffs: Updated.
8429 2001-07-14 Werner LEMBERG <wl@gnu.org>
8431 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8432 removing the old one.
8433 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8435 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8437 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8439 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8441 Merge -xwidth into -width. Add -xwidth functionality to -column
8444 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8446 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8447 string immediately following a leading dot starts with a valid mdoc
8449 Add similar code to the -column branch.
8450 (doc-Bl-usage): Updated.
8451 * groff_mdoc.man: s/-xwidth/-width/.
8453 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8455 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8456 running into centered or non-formatted text.
8458 2001-07-11 Werner LEMBERG <wl@gnu.org>
8460 Introduce short and long prefixes to have the selection at run-time
8461 whether there is a 8+3 limit for names of temporary files.
8463 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8464 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8465 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8467 (temp_init): New global structure to initialize above three
8469 (xtmptemplate): Use two parameters for long and short prefix.
8470 Simplify code use above three variables.
8471 (xtmpfile): Use long and short prefixes as parameters.
8472 * src/include/lib.h: Updated.
8474 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8476 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8477 (createAllPages, makeTempFiles): Updated.
8479 2001-07-09 Werner LEMBERG <wl@gnu.org>
8481 * REVISION: Increased to 3.
8483 Version 1.17.2 released
8484 =======================
8486 2001-07-07 Werner LEMBERG <wl@gnu.org>
8488 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8491 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8493 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8495 * tmac/groff_mdoc.man: Fix synopsis.
8497 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8499 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8500 Restore `doc-Pa-font'.
8502 2001-07-04 Werner LEMBERG <wl@gnu.org>
8504 * src/utils/indxbib/dirnamemax.c: Moved to ...
8505 * src/libs/libgroff/maxfilename.cc: Here.
8506 s/dir_name_max/file_name_max/.
8508 * src/include/lib.h: Add file_name_max.
8509 * src/utils/indxbib/indxbib.cc: Updated.
8510 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8513 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8515 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8517 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8518 REGION_TEMPLATE): New macros.
8519 (createAllPages, makeTempFiles): Use them.
8520 Include `nonposix.h'.
8521 (html_system): New function.
8522 (createAllPages, createImage): Use it.
8525 * tmac/www.tmac: Fix typos.
8527 2001-07-03 Werner LEMBERG <wl@gnu.org>
8529 * tmac/www.tmac: Disable hyphenation in normal text only if output
8531 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8532 * tmac/groff_mwww.man, NEWS: Updated.
8534 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8536 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8539 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8541 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8542 doc-display-ps-stack): Implement font and font size stack for
8545 2001-07-02 Werner LEMBERG <wl@gnu.org>
8547 * REVISION: Increased to 2.
8548 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8550 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8551 beginning of a line.
8552 * src/groff/grog/grog.sh: Ditto.
8554 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8556 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8559 2001-06-27 Werner LEMBERG <wl@gnu.org>
8561 Fix problems with preprocessor string for `man' program.
8563 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8564 Updated/added copyright.
8565 Moved Emacs's local variable to identify nroff mode to the end of
8566 the file; add local variable if missing.
8568 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8570 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8571 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8572 * configure: Regenerated.
8574 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8576 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8577 * configure: Regenerated.
8579 2001-06-24 Werner LEMBERG <wl@gnu.org>
8581 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8583 * doc/pic.ms: Fix typos.
8585 Version 1.17.1 released
8586 =======================
8588 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8590 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8591 * configure: Updated.
8593 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8595 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8597 * src/roff/troff/dic.cc (blank_line): Add html tag.
8599 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8601 * src/roff/troff/input.cc (do_suppress): Fix typo.
8603 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8605 Added two new options (-D and -I) to specify image names and a
8606 subdirectory to place the images in.
8608 Change syntax from \\Ox to \\O[x].
8610 * src/devices/grohtml/post-html.cc (main): Add options.
8612 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8613 Use `NULL' instead of `0' for null string pointers.
8614 (MAX_RETRIES): New macro.
8615 (lengthOfintToStr, intToStr, make_message): New functions.
8616 (makeFileName): Make function static.
8617 Implement -D and -I options.
8618 (checkImageDir): New function.
8619 (write_end_image, write_start_image): Use new syntax of \O.
8620 (createAllPages, removeAllPages): Implement -D and -I options. Use
8622 (createImage): Use make_message().
8623 (addps4html): Add guard for malloc().
8624 (usage, scanArguments): Updated.
8625 (makeTempFiles): Use mkstemp().
8626 (removeTempFiles): Use unlink().
8627 (findPrefix): Add guard for malloc().
8629 * src/roff/troff/input.cc (get_delim_file_name): New function to
8631 (do_suppress): Updated to parse new syntax.
8632 * src/devices/grohtml/grohtml.man: Updated.
8633 * tmac/www.tmac: Updated to new syntax.
8637 2001-06-15 Werner LEMBERG <wl@gnu.org>
8639 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8641 * src/devices/grohtml/grohtml.man: Minor improvements.
8643 2001-06-14 Werner LEMBERG <wl@gnu.org>
8645 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8647 2001-06-11 Werner LEMBERG <wl@gnu.org>
8649 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8650 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8652 * src/preproc/grn/grn.man: Add proper '\" string.
8654 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8656 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8658 2001-06-08 Werner LEMBERG <wl@gnu.org>
8660 Updated to autoconf 2.50.
8662 * configure.in: Renamed to...
8663 * configure.ac: This.
8664 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8665 (GROFF_OS390): Updated.
8666 * configure: Regenerated.
8668 2001-05-18 Werner LEMBERG <wl@gnu.org>
8670 * src/roff/troff/env.c, src/roff/troff/env.h,
8671 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8674 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8676 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8678 2001-05-16 Werner LEMBERG <wl@gnu.org>
8680 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8681 less than or equal zero; set it to 1 then.
8682 * src/roff/troff/node.h (node::node): Initialize `last'.
8684 2001-05-08 Werner LEMBERG <wl@gnu.org>
8686 * tmac/an-old.tmac: Make predefined strings work in compatibility
8688 Add troff version guard.
8689 * tmac/doc.tmac: Simplify version guard.
8691 2001-05-07 Werner LEMBERG <wl@gnu.org>
8693 The .ns and .rs requests are now honoured not only in the top-level
8694 but in all diversions (similar to UNIX troff).
8696 This change is based on a patch from Tadziu Hoffmann
8697 <hoffmann@usm.uni-muenchen.de>.
8699 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8700 (top_level_diversion): Remove `no_space_mode' member.
8701 * src/roff/troff/div.cc (diversion::diversion,
8702 top_level_diversion::top_level_diversion): Updated.
8703 (macro_diversion::output): Reset `no_space_mode'.
8704 (no_space, restore_spacing): Use `curdiv' unconditionally.
8705 (space_request, blank_line): Check `curdiv->no_space_mode'.
8706 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8707 `curdiv' unconditionally.
8708 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8711 2001-05-06 Werner LEMBERG <wl@gnu.org>
8713 Added two new requests `de1' and `am1' which are similar to `de' and
8714 `am' with the difference that compatibility mode is saved on entry,
8715 switched off during macro execution, and restored on exit.
8717 * src/roff/troff/input.h: Added two new special characters
8718 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8719 * src/roff/troff/input.cc (input_iterator): Added two member
8720 functions `save_compatible_flag' and `get_compatible_flag'.
8721 (input_stack): Ditto.
8722 (string_iterator): Ditto. Also add private member
8723 `saved_compatible_flag'.
8724 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8725 (calling_mode): New enumeration.
8726 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8727 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8728 (define_macro, define_indirect_macro, append_macro, ignore): Use
8730 (define_nocomp_macro, append_nocomp_macro): New functions.
8731 (init_input_requests): Updated.
8732 (do_request): Rename local variable `saved_compatible_flag' to
8733 `old_compatible_flag'.
8734 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8736 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8737 public and trap-invoked macros. As a consequence, the man macros
8738 work in compatibility mode also.
8740 2001-05-06 Solar Designer <solar@openwall.com>
8742 * Makefile.in: Use $(mandir).
8744 2001-05-06 Alexios Zavras <zvr@pobox.com>
8746 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8748 2001-05-05 Werner LEMBERG <wl@gnu.org>
8750 Added `.ns' number register: Returns 1 in no-space mode (if in
8751 top-level diversion), 0 otherwise.
8753 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8754 (init_div_requests): Updated.
8755 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8758 2001-05-04 Werner LEMBERG <wl@gnu.org>
8760 * src/roff/nroff/nroff.man: Improved documentation (especially
8763 2001-05-02 Werner LEMBERG <wl@gnu.org>
8765 Added `brp' request: This is \p as a request.
8767 * src/roff/troff/env.cc (environment::do_break): Add parameter
8769 (do_break_request): New function (was `break_request').
8770 (break_request): Calls `do_break_request'.
8771 (break_spread_request): New; calls `do_break_request'.
8772 (init_env_requests): Updated.
8773 * src/roff/troff/env.h: Updated.
8774 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8776 * REVISION: Increased to 1.
8777 * win32-diffs: Updated.
8779 2001-05-01 Werner LEMBERG <wl@gnu.org>
8781 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8782 * tmac/troffrc-end: Make it really work in compatibility mode.
8784 2001-04-27 Werner LEMBERG <wl@gnu.org>
8786 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8789 2001-04-22 Werner LEMBERG <wl@gnu.org>
8791 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8792 latest versions from glibc CVS archive.
8794 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8795 <c.zeelenberg@hccnet.nl>.
8797 2001-04-21 Werner LEMBERG <wl@gnu.org>
8799 * configure.in: Move check for mkstemp() to...
8800 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8801 * configure: Regenerated.
8803 * src/include/groff-getopt.h: Don't use variable names in
8806 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8807 * src/devices/grohtml/Makefile.sub,
8808 src/devices/grohtml/post-html.cc: Updated.
8810 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8812 * configure.in: Add special check for mkstemp().
8813 * src/libs/libgroff/tmpfile.cc: Use it.
8814 * src/utils/indxbib/indxbib.cc: Ditto.
8815 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8816 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8819 2001-04-20 Bruce Lilly <blilly@erols.com>
8821 `Version_string' as C++ object was not visible to linker from C
8823 Add `const' to `Version_string'.
8825 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8826 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8827 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8828 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8829 (scanArguments), src/preproc/refer/refer.cc (main),
8830 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8831 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8832 (main), src/devices/grohtml/post-html.cc (main),
8833 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8834 (main), src/utils/hpftodit/hpftodit.cc (main),
8835 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8836 (main), src/utils/lkbib/lkbib.cc (main),
8837 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8839 * src/roff/groff/pipeline.c: Add _UWIN.
8840 * src/include/nonposix.h: Ditto.
8842 2001-04-20 Werner LEMBERG <wl@gnu.org>
8844 * src/include/lib.h: Use HAVE_STRERROR.
8845 * src/roff/groff/pipeline.c: Ditto.
8846 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8847 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8848 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8849 * win32-diffs: Updated.
8850 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8852 2001-04-19 Werner LEMBERG <wl@gnu.org>
8854 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8855 instead of hardwired `"troff"'.
8856 (char_buffer::read_file): Remove unused variables.
8857 (char_buffer::write_file_troff): Ditto.
8858 (char_buffer::write_file_html): Ditto.
8859 (generateImages): Ditto.
8861 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8863 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8865 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8866 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8867 index_search_item::search1): Ditto.
8868 * src/roff/troff/node.h (width_list): Reorder members.
8869 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8870 (lookup_warning): Ditto.
8871 (prepend_string): Commented out.
8872 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8873 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8874 * src/preproc/tbl/main.cc (process_format): Ditto.
8875 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8877 * src/preproc/pic/pic.cc: Updated.
8878 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8879 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8880 * src/preproc/refer/command.cc (execute_command): Ditto.
8881 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8882 * src/preproc/refer/token.cc (lookup_token): Ditto.
8883 * src/preproc/soelim/soelim.cc: Ditto.
8884 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8885 (isHexDigit): Commented out.
8886 (pushBackBuffer::isString): Remove unused variable.
8887 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8889 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8890 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8892 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8893 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8894 lookup_paper_size): Ditto.
8895 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8896 (text_glob, element_list): Reorder members.
8897 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8899 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8900 return value to `void'.
8901 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8903 * src/devices/grohtml/html.h (simple_output::check_newline,
8904 simple_output::space_or_newline, simple_output::enable_newlines):
8906 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8908 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8909 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8910 output_ligatures, output_charset, read_map): Ditto.
8911 * src/utils/lookbib/lookbib.cc (main): Ditto.
8912 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8913 (do_file): Fix typo (`=' -> `==').
8914 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8915 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8917 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8919 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8920 Fix usage of GROFF_BIN_PATH.
8921 * src/roff/nroff/nroff.man: Updated.
8923 2001-04-18 Werner LEMBERG <wl@gnu.org>
8925 * NEWS: Fixing typos.
8928 Version 1.17 released
8929 =====================
8931 2001-04-17 Werner LEMBERG <wl@gnu.org>
8933 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8934 directory, not in $(srcdir).
8936 2001-04-16 Werner LEMBERG <wl@gnu.org>
8938 * doc/groff.texinfo: More info on conditionals.
8940 2001-04-15 Werner LEMBERG <wl@gnu.org>
8942 * doc/groff.texinfo: Added some info about groff internals.
8944 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8945 about missing special character only if the name is non-null.
8947 2001-04-14 Werner LEMBERG <wl@gnu.org>
8949 Removing the grohtml-old device driver which is now obsolete.
8951 * src/devices/grohtml-old/*: Removed.
8952 * font/devhtml-old/*: Removed.
8953 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8955 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8956 * test-groff (PATH): Updated.
8957 * tmac/Makefile.sub (NORMALFILES): Updated.
8958 * tmac/an-old.tmac: Remove special code for html-old device.
8959 Replace `html-or-html-old' register with `an-html'.
8960 * tmac/eqnrc: Updated.
8961 * tmac/html-old.tmac: Removed.
8962 * tmac/troffrc, tmac/troffrc-end: Updated.
8963 * tmac/www.tmac: Remove special code for html-old device.
8964 Replace `html-or-html-old' register with `www-html'.
8966 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8967 src/libs/libgroff/htmlindicate.cc (graphic_end),
8968 include/htmlindicate.h, src/preproc/grn/*.cc,
8969 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8970 single argument for consistency with rest of source code.
8972 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8974 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
8976 * src/roff/troff/troff.man: Fixing typos.
8978 2001-04-13 Werner LEMBERG <wl@gnu.org>
8980 * doc/pic.ms: Fixing many font switches.
8981 * doc/groff.texinfo: Fixes, additions.
8982 * MORE.STUFF: Updated.
8984 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
8986 * src/devices/grohtml/grohtml.man: Updated manual page regarding
8988 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8990 (removeTempFiles): New function to tidy up temporary files.
8991 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8992 Many fixes to do with the new inline suppress node and image regions
8994 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8995 (generate_img_src): New function.
8996 (html_printer::do_auto_image): Utilizes it.
8997 (do_heading, do_title): Include inline images within their contents.
8998 (html_printer::begin_page): Tidied up comments that are issued to
8999 the html output file.
9000 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9002 (text_glob::is_br): New method used by do_heading.
9003 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9004 equivalent diversion.
9005 * src/include/html-strings.h: Altered image tags to reflect the
9007 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9009 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9010 it is already inside a pic image. Only emit tags if the argument
9011 `-Tps:html' is present.
9012 * src/preproc/tbl/main.cc: Changes to reflect additional
9013 `html_end_suppress' parameter.
9014 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9015 emitted since the last eol tag was written.
9016 * src/roff/troff/env.h: New boolean `emitted_node'.
9017 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9018 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9019 * src/roff/troff/node.cc (check_charinfo): New method.
9020 (troff_output_file::determine_line_limits): Alterations to limit
9022 * tmac/www.tmac: Changes to reflect new suppress nodes.
9024 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9026 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9027 Escape the html_glyph in the buffer.
9028 (str_translate_to_html): Output the unescaped escaped_char.
9029 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9030 `frame=void', not `frame=none'. Add `border=0'.
9032 2001-04-12 Werner LEMBERG <wl@gnu.org>
9034 * PROBLEMS: Add some words on how to avoid wrapper macros.
9036 2001-04-11 Blake McBride <blake@florida-software.com>
9038 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9040 2001-04-11 Werner LEMBERG <wl@gnu.org>
9042 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9043 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9044 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9045 * Makefile.sub (DISTCLEANFILES): Here.
9047 * libs/libgroff/new.cc: Include `nonposix.h'.
9048 * win32-diffs: Updated.
9050 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9052 Added skeleton macro for defunct macros.
9054 Updated documentation.
9056 When inside displays, an empty input line warning should be
9057 suppressed. If another macro call is put inside a display,
9058 all subsequent empty lines found in that display caused a
9059 warning to be emitted.
9061 * tmac/doc.tmac (doc-defunct-macro): New macro.
9062 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9063 (doc-restore-global-vars): Fixed typo.
9064 (doc-empty-line): Check the `doc-display-depth' register to
9065 determine whether we are inside display or not.
9067 * tmac/doc-common: Removed `Or' and `Sf' registers.
9068 Moved obsolete `Ds' macro to doc.tmac.
9070 * tmac/groff_mdoc.man: Bump document date.
9071 Document `.Vt' under ``Variable Types''.
9072 Removed documentation for obsolete `.Or' macro.
9074 2001-04-10 Werner LEMBERG <wl@gnu.org>
9077 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9079 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9081 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9082 (usage): Add stream argument. Don't exit.
9083 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9084 Write --version output to stdout, not stderr.
9085 (usage): Add stream argument. Don't exit.
9086 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9087 (usage): Add stream argument. Don't exit.
9088 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9090 (usage): Add stream argument. Don't exit.
9091 (main): Write --help output to stdout, not stderr.
9092 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9093 (usage): Add stream argument. Don't exit.
9094 * src/devices/grops/ps.cc (main): Accept --help and --version.
9095 (usage): Add stream argument. Don't exit.
9096 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9097 (usage): Add stream argument. Don't exit.
9098 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9099 (main): Accept --help and --version.
9100 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9101 (main): Accept --help and --version.
9102 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9103 (scanArguments): Accept --help and --version.
9104 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9105 (main): Accept --help and --version.
9106 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9107 (usage): Add stream argument. Don't exit.
9108 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9110 (main): Accept --help and --version.
9111 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9112 (main): Accept --help and --version.
9113 * src/roff/groff/groff.cc (main): Accept --help and --version.
9114 (synopsis): Add stream argument.
9115 (help): Write --help output to stdout, not stderr.
9116 (usage): Add stream argument. Don't exit.
9117 * src/roff/grog/grog.pl: Accept --help and --version.
9119 * src/roff/grog/grog.sh: Accept --help and --version.
9120 * src/roff/nroff/nroff.sh: Accept --help and --version.
9121 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9122 (usage): Add stream argument. Don't exit.
9123 (main): Accept --help and --version.
9124 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9125 (usage): New function with stream argument, doesn't exit.
9126 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9127 (usage): New function with stream argument, doesn't exit.
9128 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9129 (usage): Add stream argument. Don't exit.
9130 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9131 (main): Accept --help and --version.
9132 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9134 (main): Accept --help and --version.
9135 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9136 (main): Accept --help and --version.
9137 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9138 (usage): Add stream argument. Don't exit.
9140 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9142 Fix indentation in SYNOPSIS.
9144 Updated to include changes of latest BSD mdoc version (basically,
9145 the only change is that `.Fn' and `.Fc' put a final semicolon after
9146 a function declaration in the SYNOPSIS section).
9148 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9149 (doc-in-synopsis-section): New variable. Updated all related
9151 (doc-indent-synopsis-active): New register.
9152 (Nd, Fn, Fo): Use it.
9153 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9154 `.Cd' with long argument line produces indented wrapped lines.
9155 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9156 undesirable line break to be output.
9157 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9159 (Fn, Fc): Add final `;' to output.
9160 (doc-save-global-vars, doc-restore-global-vars): Updated.
9161 * tmac/doc-common: Remove `Ex' register.
9163 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9166 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9168 * tmac/doc.tmac (Cd): Simplify code.
9169 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9171 2001-04-06 Werner LEMBERG <wl@gnu.org>
9173 Implement continuous underlining for nroff mode. To do that, a new
9174 request in the ditroff language has been added: `x u N' (N is 0
9177 \X and \Y are now transparent to end-of-sentence recognition.
9179 * src/include/printer.h (printer): Add `type' parameter to `special'
9181 * src/libs/libdriver/printer.cc (printer::special): Updated.
9182 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9184 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9185 specials of type `p'.
9186 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9187 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9188 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9189 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9190 (glyph::order): New method.
9191 (tty_printer::add_char): Use it.
9192 (tty_printer::special): New method.
9193 (tty_printer::end_page): Implement it.
9195 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9196 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9197 to set `no_init_string'.
9198 (special_node::tprint_start): Use it.
9199 (special_node::same, special_node::copy): Updated.
9200 (special_node::ends_sentence): New method.
9201 (troff_output_file::start_special): Add parameter to include
9202 inititialization of special conditionally.
9204 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9205 * src/roff/troff/env.cc (do_underline_special): New function.
9206 (environment::set_font): Use it.
9207 (do_underline): Use it. This was `underline()'.
9208 (underline): Call `do_underline()'.
9209 (continuous_underline): New function which calls `do_underline()'.
9210 (environment::newline): Use `do_underline_special()'.
9211 (init_env_requests): Updated.
9213 * NEWS, man/troff_out.man: Updated.
9215 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9217 * font/devutf8/R.proto: Fix code of 'shc'.
9219 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9221 Many fixes. Diag lists can now be nested also; additionally,
9222 `-compact' and `-offset' are supported.
9224 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9225 (doc-list-have-indent-stackXXX): A new register stack.
9226 (doc-have-diag-list): Removed.
9227 (Bl): Use `doc-list-have-indent-stackXXX'.
9229 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9230 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9231 (doc-set-vertical-and-indent): Ditto.
9232 (doc-next-list-depth): Removed.
9233 (doc-increment-list-stack): Updated.
9234 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9235 `doc-next-list-depth'.
9236 (doc-end-list, doc-end-column-list): Don't use
9237 `doc-increment-list-stack'.
9238 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9239 (doc-save-global-vars, doc-restore-global-vars): Updated.
9240 * tmac/doc-common: Updated.
9241 * tmac/groff_mdoc.man: Updated.
9244 2001-04-02 Werner LEMBERG <wl@gnu.org>
9246 * src/devices/grotty/grotty.man: Fix grammatical error.
9248 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9250 Remove .Ld from mdoc package; replace it with special handling of
9253 * tmac/doc-common: Remove `Ld' register.
9254 Uncomment `doc-volume-ds-*' strings.
9255 Remove `doc-operating-system-default'.
9257 * tmac/doc-syms (Ld): Removed.
9258 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9262 * tmac/groff_mdoc.man: Many fixes and updates.
9264 2001-03-29 Werner LEMBERG <wl@gnu.org>
9266 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9267 Bond <tkb@tkb.mpl.com>.
9268 * tmac/www.tmac: Save compatibility mode.
9270 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9272 * tmac/groff_mdoc.man: Many fixes.
9274 2001-03-28 Werner LEMBERG <wl@gnu.org>
9276 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9279 2001-03-27 Werner LEMBERG <wl@gnu.org>
9281 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9282 diversion. This fixes overlong tags.
9284 2001-03-26 Werner LEMBERG <wl@gnu.org>
9286 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9287 * tmac/doc-syms: Fix error messages.
9288 * tmac/an-old.tmac: Remove incorrect double backslashes.
9290 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9292 * tmac/Makefile.sub: Strip mdoc.local also
9293 * tmac/strip.sed: Fixed.
9295 2001-03-24 Werner LEMBERG <wl@gnu.org>
9297 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9298 selecting the font size.
9299 * tmac/groff_mdoc.man, NEWS: Document it.
9301 2001-03-23 Werner LEMBERG <wl@gnu.org>
9303 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9305 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9306 argument to restore previous font family.
9307 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9309 * doc/groff.texinfo: More fixes and additions (mainly for font
9310 manipulating commands).
9312 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9313 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9314 * tmac/Makefile.sub, NEWS: Updated.
9316 2001-03-23 Werner LEMBERG <wl@gnu.org>
9318 Replaced mdoc implementation. The new version is `state of the
9319 art', using almost all new features of groff 1.17 -- it won't run
9320 with older versions.
9322 * tmac/doc.tmac: Completely rewritten.
9323 * tmac/doc-common: Ditto.
9324 * tmac/doc-nroff: Ditto.
9325 * tmac/doc-ditroff: Ditto.
9326 * tmac/doc-syms: Ditto.
9327 * tmac/mdoc.local: New file.
9328 * tmac/groff_mdoc.samples.man: Replaced with ...
9329 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9330 * tmac/strip.sed: Updated.
9331 * tmac/Makefile.sub: Updated.
9334 * tmac/groff_man.man: Add `man.local' to the FILES section.
9336 2001-03-22 Werner LEMBERG <wl@gnu.org>
9338 * doc/groff.texinfo: Added many @noindent.
9339 Replaced @end_Example -> @endExample.
9340 Added info whether registers are r/o.
9341 Many other additions and fixes.
9343 2001-03-21 Werner LEMBERG <wl@gnu.org>
9345 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9346 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9347 Improved @Def* macros: Now the exact syntax of request, register,
9348 and escapes is shown.
9349 Added macros for parentheses and brackets to be used in @Def*.
9350 Many fixes and improvements of the documentation.
9352 2001-03-20 Werner LEMBERG <wl@gnu.org>
9354 * doc/groff.texinfo: Added new index: `st' (for strings).
9355 Added macros @Defstr(x).
9356 Added macro @Example (adding @group).
9357 Other minor improvements.
9359 2001-03-19 Werner LEMBERG <wl@gnu.org>
9361 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9362 `rq' for requests. `fn' is no longer used.
9363 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9366 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9367 number with name of man page.
9369 2001-03-19 Larry Kollar <kollar@alltel.net>
9371 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9374 2001-03-19 Werner LEMBERG <wl@gnu.org>
9376 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9377 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9378 * src/devices/grohtml/grohtml.man: Fixing typos.
9380 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9382 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9383 * tmac/groff_mwww.man: Remove .LINE macro
9384 * tmac/www.tmac (LINE): Add `.ti'.
9386 * src/devices/grohtml/post-html.cc (html_printer): New member
9388 (html_printer::emit_raw): Use it.
9389 (html_printer::do_linelength): Ditto.
9390 (html_printer::do_pageoffset): Ditto.
9391 (html_printer::do_indentation): Ditto.
9392 (html_printer::do_tempindent): Ditto.
9393 (html_printer::do_break): Ditto.
9394 (html_printer::begin_page): Ditto.
9395 (html_printer::do_indentedparagraph): New function.
9396 (html_printer::troff_tag): Handle `.ip'.
9397 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9398 Add `<td width=...>' handling.
9399 (html_text::do_table): Add parameter.
9400 (html_text::do_indent): Updated.
9401 * src/devices/groohtml/html-text.h: Updated.
9403 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9405 Introduced simple html tables to implement indentation.
9407 * src/devices/grohtml/html.h (word, word_list): New structures.
9408 (simple_output): Use it.
9409 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9410 (html_printer): Improve indentation handling.
9411 (html_printer::emit_raw): Set `in_table' element. Handle
9413 (html_printer::write_header): Move conditional downwards.
9414 Don't allow whitespace in tags.
9415 (html_printer::do_linelength): Handle line length and indentation
9417 (html_printer::do_pageoffset): Handle indentation conditionally.
9418 (html_printer::do_indentation): Ditto.
9419 (html_printer::do_tempindent): New function member.
9420 (html_printer::do_fill): Take care of indentation.
9421 (html_printer::do_flush): Finish table.
9422 (html_printer::do_links): Ditto.
9423 (html_printer::do_break): New function for handling `.br' and `.ti'.
9424 (html_printer::troff_tag): Use it.
9426 (html_printer::flush_globs): Fix.
9427 (html_printer::flush_page): Finish table.
9428 (html_printer::html_printer): Fix error message. Set up
9430 (html_printer::add_to_sbuf): Remove special handling of character
9432 (to_unicode): Remove `stop()'.
9433 (html_printer::write_title): Cleanup.
9434 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9435 (html_printer::~html_printer): Flush text and end the line.
9437 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9438 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9440 (html_text::start_tag): Disable newlines.
9441 (html_text::table_is_void): New function.
9442 (html_text::issue_table_begin): Ditto.
9443 (html_text::issue_table_end): Ditto.
9444 (html_text::push_para): Better table handling.
9445 (html_text::do_indent): New function.
9446 (html_text::do_table): Ditto.
9447 (html_text::done_table): Ditto.
9448 (html_text::do_tt): Handle PRE_TAG.
9449 (html_text::is_in_table): New function.
9450 (html_text::check_emit_text): Handle tables.
9451 (html_text::do_emittext): Use `nl()'.
9452 (html_text::do_para): Handle table.
9453 (html_text::remove_def): New function.
9454 * src/devices/grohtml/output.cc (word, word_list): Implement
9456 (simple_output::end_line): Flush last word.
9457 (simple_output::simple_comment): Ditto.
9458 (simple_output::begin_comment): Recoded.
9459 (simple_output::end_comment): Ditto.
9460 (simple_output::comment_arg): Removed.
9461 (simple_output::check_newline): Improve test and flush last word.
9462 (simple_output::space_or_newline): Improved.
9463 (simple_output::write_newline): Replaced with...
9464 (simple_output::nl): This.
9465 (simple_output::put_raw_char): Flush last word.
9466 (simple_output::check_space): Removed.
9467 (simple_output::put_translated_string): Ditto.
9468 (simple_output::put_string): Simplified.
9469 (simple_output::put_number): Updated.
9470 (simple_output::put_float): Ditto.
9471 (simple_output::put_symbol): Removed.
9472 (simple_output::enable_newlines): Add `check_newline()'.
9473 (simple_output::flush_last_word): New function.
9475 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9476 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9478 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9479 * tmac/an-old.tmac (TP): Ditto.
9481 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9483 * mdate.sh: Make it POSIX compliant.
9485 2001-03-09 Werner LEMBERG <wl@gnu.org>
9487 Added the `return' request to end a macro immediately. It simply
9488 pops iterators from the input stack until a macro iterator is found.
9490 * src/roff/troff/input.cc (input_iterator::is_macro,
9491 macro_iterator::is_macro): New member.
9492 (input_return_boundary): New class to signal an immediate return
9494 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9496 (input_stack::clear): Use it.
9497 (input_stack::pop_macro): New function.
9498 (while_request): Use `is_return_boundary()'.
9499 (return_macro_request): New function.
9500 (init_input_requests): Use it.
9502 * src/roff/troff/TODO: Updated.
9503 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9505 2001-03-08 Werner LEMBERG <wl@gnu.org>
9507 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9510 2001-03-07 Werner LEMBERG <wl@gnu.org>
9512 Make `\B' more rigid.
9514 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9516 (get_number_rigidly): New function.
9517 * src/roff/troff/input.cc (do_expr_test): Use it.
9518 * src/roff/troff/token.h: Updated.
9520 * src/roff/troff/request.h: Fix typo (init_html_request ->
9521 init_markup_request).
9523 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9525 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9526 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9527 are now `.begin', `.end', `.image'.
9529 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9530 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9531 Use add_char_to_sbuf().
9532 (to_unicode): New function.
9533 (char_translate_to_html): Changing type of `ch' parameter.
9535 (html_printer::~html_printer): Comment out doctype string.
9536 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9537 instead of `.html-end'.
9538 (write_start_image): Use `.begin' and `.image' instead of
9539 `.html-begin' and `.html-image'.
9540 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9541 (html_begin): Renamed to ...
9543 (html_end): Renamed to ...
9545 (html_image): Renamed to ...
9547 (init_html_requests): Renamed to ...
9548 (init_markup_requests): This.
9549 * tmac/www.tmac: Updated.
9551 2001-02-28 Bram <bram@avontuur.org>
9553 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9556 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9558 * doc/meref.me: Fixing some typos.
9560 2001-02-16 Werner LEMBERG <wl@gnu.org>
9562 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9563 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9564 * src/roff/troff/node.h: Updated.
9566 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9568 * tmac/groff_tmac.man: Fix typo.
9570 2001-02-16 Werner LEMBERG <wl@gnu.org>
9572 Fixing a bug which prevented proper end-of-sentence recognition
9573 between an `unformatted' box and the following text. As a
9574 consequence, vertical line distances are no longer preserved in
9575 boxes after a call to `.unformat' -- because boxes aren't
9576 line-oriented (contrary to diversions), this doesn't make sense
9579 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9581 (vertical_size_node::set_unformat_flag): New method.
9582 * src/roff/troff/node.hh: Updated.
9583 * src/roff/troff/input.cc (word_space_node::reread,
9584 hmotion_node::reread): Reset `unformat' flag after usage.
9585 (unformat_macro): Append only if `set_unformat_flag()' returns
9587 * src/roff/troff/troff.man: Updated.
9589 2001-02-15 Werner LEMBERG <wl@gnu.org>
9591 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9592 documentation of `asciify' and `unformat' requests.
9594 2001-02-13 Werner LEMBERG <wl@gnu.org>
9596 Redesigned the `unformat' request. It is no longer connected with
9597 `asciify' but rather uses new `reread()' methods if the `unformat'
9598 flag is set. Additionally, the handling of space characters after
9599 unformatting has been fixed so that they retain their width.
9601 * src/roff/troff/node.h (width_list): New structure to store
9602 original widths of spaces.
9603 (node): Added `unformat' member.
9604 Replaced `num_spaces' variable with `orig_width' list.
9605 * src/roff/troff/node.cc (*node::asciify,
9606 asciify_reverse_node_list): Removed `unformat_only' flag and related
9608 (word_space_node::asciify, word_space_node::word_space_node): Use
9610 (word_space_node::~word_space_node): New destructor.
9611 (word_space_node::copy): Updated to handle `orig_width'.
9612 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9613 (*node::merge_space): Update `orig_width' list if necessary.
9614 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9615 * src/roff/troff/enc.cc (environment::space_newline): Use
9617 (environment::space): Added method to handle space width and
9618 sentence space width as parameters. Use `width_list'.
9619 (environment::make_tab_node): Updated.
9620 * src/roff/troff/env.h: Updated.
9621 * src/roff/troff/input.cc (word_space_node::reread,
9622 unbreakable_space_node::reread, hmotion_node::reread): New methods
9623 to handle nodes specially if `unformat' flag is set.
9624 (do_asciify_macro): Renamed back to ...
9625 (asciify_macro): This.
9626 (unformat_macro): New implementation to simply set the `unformat'
9629 * MORE.STUFF: Added more info about deroff.
9631 2001-02-08 Werner LEMBERG <wl@gnu.org>
9633 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9634 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9635 and `add_self()' methods to avoid hyphenation. For example, the
9636 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9637 soft hyphen after `foo'. Now the hyphen list is correctly
9638 `foo<ignore><ignore>bar'.
9640 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9642 * tmac/groff_tmac.man: Fix `BIR' macro.
9644 2001-02-04 Werner LEMBERG <wl@gnu.org>
9646 A new escape sequence `\:', inserting a zero-width break point.
9648 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9649 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9651 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9653 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9654 and `asciify()' methods.
9655 * src/roff/troff/node.cc (space_node::space_node): Updated.
9656 (space_node::asciify): Handle `was_escape_colon'.
9657 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9659 Handle `\~' similar to other comparable requests.
9661 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9663 (token::next): Move creation of an unbreakable_space_node to...
9664 (token::add_to_node_list): Here.
9666 Fix a bug which sometimes prevented hyphenation of words connected
9667 with `\~' or `\ ' (and other escape sequences handled as
9668 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9669 (after a call to the `unformat' request).
9671 * src/roff/troff/env.h (environment::possibly_break_line,
9672 environment::hyphenate_line): Introducing `start_here' parameter.
9673 * src/roff/troff/env.cc (environment::space_newline,
9674 environment::space): Use it.
9675 (environment::possibly_break_line, environment::hyphenate_line):
9677 * src/roff/troff/input.cc (process_input_stack): Use it.
9678 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9679 space_char_hmotion_node, overstrike_node): Add
9680 `get_hyphenation_type()' method.
9681 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9682 if `unformat_only' is active.
9684 2001-01-30 Werner LEMBERG <wl@gnu.org>
9686 Implemented new read-only number register `.linetabs' which
9687 returns 1 if in line-tabs mode, 0 otherwise.
9689 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9690 * src/roff/troff/env.cc (get_line_tabs): New function.
9691 (init_env_requests): Use it.
9692 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9694 * VERSION, REVISION: Changing to 1.17.0.
9696 2001-01-28 Werner LEMBERG <wl@gnu.org>
9698 Fixed a bug which prevented hyphenation of words which are finished
9701 * src/roff/troff/token.h (token): Add enum type
9702 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9703 * src/roff/troff/input.cc (token::next, token::description,
9704 get_line_arg, token::add_to_node_list, token::process): Use it.
9706 2001-01-27 Werner LEMBERG <wl@gnu.org>
9708 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9709 * src/roff/troff/div.cc (do_divert): Use it.
9711 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9713 2001-01-25 Werner LEMBERG <wl@gnu.org>
9715 Adding the `linetabs' request. If set, tab distances are not
9716 computed relative to the input line but relative to the output line.
9718 * src/roff/troff/env.h (environment): New member `line_tabs'.
9719 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9720 (environment::environment, environment::copy): Updated.
9721 (environment::distance_to_next_tab): Use `line_tabs'.
9722 (init_env_requests): Register request.
9723 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9726 2001-01-24 Werner LEMBERG <wl@gnu.org>
9728 Introducing a new read-only register `.int' which is set to a
9729 positive value if the last output line is interrupted (i.e., if it
9732 * src/roff/troff/env.cc (init_env_requests): Add it.
9733 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9735 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9737 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9738 * src/preproc/html/pre-html.cc (findPrefix): New function which
9739 generates the troff executable name via the system prefix.
9740 * src/preproc/eqn/main.cc: Modified warning message.
9742 2001-01-23 Werner LEMBERG <wl@gnu.org>
9744 troff's `box' and `boxa' requests didn't preserve temporary
9747 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9748 `saved_target_text_length' members.
9749 * src/roff/troff/div.cc (do_divert): Use them.
9751 Tabs (but not yet leaders and fields) are now handled correctly by
9754 * node.h (hmotion_node): Add field `was_tab'.
9755 * env.cc (environment::make_tab_node): Set it.
9756 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9758 Added new request `unformat' which will, contrary to `asciify',
9759 preserve font information after unformatting (i.e., only nodes
9760 dealing with horizontal space are converted back to input
9763 * input.cc (asciify_macro): Renamed to ...
9764 (do_asciify_macro): this, having a new parameter `unformat_only'.
9765 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9766 (init_input_requests): Added `unformat'.
9767 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9768 parameter to control asciification process.
9769 * node.h (*_node::asciify): Ditto.
9770 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9772 2001-01-20 Werner LEMBERG <wl@gnu.org>
9774 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9776 2001-01-18 Werner LEMBERG <wl@gnu.org>
9778 * tmac/ps.tmac: Remove call of psold.tmac.
9779 * tmac/psold.tmac: Comment updated.
9780 * tmac/psnew.tmac: Removed since no longer needed.
9781 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9783 * font/devutf8/R.proto: Adding `shc' glyph.
9784 * font/devutf8/NOTES: Updated.
9786 * test-groff: Updated.
9788 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9790 First cut of the new html device driver. Changes to pre-html and
9791 the new grohtml are too numerous to be documented here.
9793 Stuff related to `html' has been renamed to `html-old' and `html2'
9794 stuff has been renamed to `html' (including directories). The new
9795 html device driver is therefore invoked as `-Thtml'.
9797 Added new `\O' escape to suppress output (needed by html driver).
9799 Added functions and code to pass info about input-level commands
9800 (`.in', `.fl', etc.) to html driver.
9802 Three new functions (.html-begin, .html-end, and .html-image) for
9803 better html handling: `html-begin' will execute the remaining line
9804 if at the outermost nesting level, increasing an internal counter.
9805 `html-end' does the same but decreases the internal counter.
9806 `html_image' puts its arguments into a special node (suppress_node)
9807 to define an image region.
9809 The `output' request has been removed.
9811 * tmac/html-tags.tmac: Removed.
9812 * tmac/arkup.tmac: Updated and renamed to ...
9813 * tmac/www.tmac: New file.
9814 * tmac/markup.tmac Updated and renamed to ...
9815 * tmac/mwww.tmac: New file.
9816 * tmac/Makefile.sub: Updated.
9817 * tmac/an-old.tmac: Updated.
9818 * tmac/eqnrc: Updated.
9819 * tmac/groff_man.man
9820 * tmac/groff_markup.man: Updated and renamed to ...
9821 * tmac/groff_mwww.man: New file.
9822 * tmac/groff_tmac.man: Updated.
9823 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9824 * tmac/html.tmac: Updated and renamed from html2.tmac.
9825 * tmac/pspic.tmac: Updated html support.
9826 * tmac/s.tmac: Added html output support.
9827 * tmac/troffrc, tmac/troffrc-end: Updated.
9829 * Makefile.in, doc/Makefile: Updated.
9830 * doc/groff.texinfo: Added info about new `\O' escape.
9831 * doc/homepage.ms: Use `MAILTO' macro.
9833 * font/devhtml/DESC.proto: Add `C' font.
9834 * font/devhtml/Makefile.sub: Updated.
9835 * font/devhtml/R.proto: Minor fixes.
9836 * font/devhtml-old/Makefile.sub: Updated.
9838 * src/devices/grohtml-old/Makefile.sub: Updated.
9840 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9842 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9843 graphic_start): Add `inline' parameter. Update.
9844 (html_end_suppress, graphic_end): Update.
9846 * src/include/html-strings.h: New file.
9847 * src/include/htmlindicate.h: Comments updated.
9848 * src/include/printer.h: Updated.
9850 * src/preproc/eqn/main.cc (do_file, main): Updated.
9851 * src/preproc/pic/troff.cc (troff_output::start_picture,
9852 troff_output::finish_picture): Updated.
9853 * src/preproc/tbl/main.cc (process_input_file): Updated.
9855 * src/roff/groff/groff.cc (main): Updated.
9856 Pass device arguments to predrivers also.
9857 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9858 * src/roff/troff/env.h (environment): Updated.
9859 New elements `need_eol' and `ignore_next_eol' (for html output).
9860 * src/roff/troff/env.cc (environment::environment): Add initializers
9861 for `need_eol' and `ignore_next_eol'.
9862 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9864 (point_size, fill, no_fill, center, right_justify, line_length,
9865 indent, temporary_indent, break_request, handle_tab): Use
9867 (set_tabs): Use `add_html_tag_tabs()'.
9868 (environment::add_html_tag): Updated.
9869 (environment::do_break): Updated.
9870 * src/roff/troff/div.cc (space_request, flush_output): Use
9871 `environment::add_html_tag()'.
9872 * src/roff/troff/input.cc: Updated.
9873 New variable `html_level' to indicate nested `html-begin' requests.
9874 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9875 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9876 `force_tprint()' method.
9877 (token::next): Handle `\O'.
9878 (do_suppress): Implement it.
9879 (html_begin, html_end, html_image): New functions.
9880 (init_output_requests): Renamed to ...
9881 (init_html_requests): this.
9883 (macro::append_str, macro::append_unsigned, macro::append_int): New
9885 New variable `output_low_mark_miny' to limit minimal value of y.
9886 (reset_output_registers): Use it.
9887 (output_request): Removed.
9888 (get_output_registers): New function.
9889 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9890 (*_node): Added `force_tprint()' if necessary.
9891 (special_node): New elements `tf' and `get_tfont()'.
9892 (suppress_node): New class.
9893 * src/roff/troff/node.cc:
9894 New global variables `image_no' and `suppress_start_page'.
9895 (real_output_file): New method `is_on()'.
9896 (troff_output_file): New method `start_special(tfont)'.
9897 (troff_output_file::really_print_line): Use `tprint' conditionally.
9898 (real_output_file::print_line): Updated.
9899 (real_output_file::on): Updated.
9900 (*_node): Added `force_tprint()'.
9901 (special_node::special_node): Initializer updated.
9902 (special_node::same, special_node::copy, special_node::tprint_start):
9904 (get_reg_int, get_reg_str): New functions.
9905 (suppress_node::*): New methods.
9906 New global variables last_position, last_image_filename;
9907 (min): New inline function.
9908 * src/roff/troff/reg.h, src/roff/troff/request.h,
9909 src/roff/troff/troff.h: Updated.
9911 2001-01-13 Werner LEMBERG <wl@gnu.org>
9913 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9914 documentation of `asciify' request.
9916 2001-01-12 Werner LEMBERG <wl@gnu.org>
9918 * src/roff/troff/input.cc: Move definition of special characters
9919 like `ESCAPE_TILDE' to ...
9920 * src/roff/troff/input.h: New file.
9921 * src/roff/troff/Makefile.sub (HDRS): Add it.
9923 Extending the .asciify request to `unformat' space characters also.
9925 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9926 to count input space characters.
9927 Update constructors to take care of it.
9928 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9929 `ESCAPE_SPACE' instead of normal space.
9930 (word_space_node::asciify): New method.
9931 (unbreakable_space_node::asciify): New method.
9932 (word_space_node::merge_space): New method.
9933 * src/roff/troff/env.cc (environment::space_newline,
9934 environment::space): Add code to initialize `num_spaces' (using the
9935 constructor of `word_space_node').
9936 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9939 2001-01-09 Werner LEMBERG <wl@gnu.org>
9941 * man/groff_char.man: Use table header traps only conditionally.
9943 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
9945 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9947 2001-01-08 Werner LEMBERG <wl@gnu.org>
9949 Introducing the `box' and `boxa' requests which are similar to
9950 `di' resp. `da' but omitting a partially filled line (which is
9951 restored after ending the diversion).
9953 * src/roff/troff/div.h (diversion): Add elements to save partially
9955 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9956 partially filled line.
9957 (divert, divert_append): Updated.
9958 (box, box_append): New functions.
9959 (init_div_requests): Use them.
9960 * src/roff/troff/env.h (environment): do_divert() is now a friend.
9961 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9963 * doc/groff.texinfo: Fix documentation of `lf' request.
9965 2000-12-25 Werner LEMBERG <wl@gnu.org>
9967 * src/roff/troff/troff.man, NEWS: Document `writem' request.
9969 2000-12-21 Werner LEMBERG <wl@gnu.org>
9971 Ignore `ss' request if in compatibility mode.
9973 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9974 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9975 * src/roff/troff/env.cc (space_size): Use it.
9977 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9978 `ss' request in nroff mode.
9980 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9983 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
9985 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9987 2000-12-13 Werner LEMBERG <wl@gnu.org>
9989 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9990 * src/preproc/eqn/neqn.man: Small fixes and additions.
9992 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
9994 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9997 * src/preproc/eqn/neqn.man: New file.
9999 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10002 * tmac/e.tmac: Add `T&' macro.
10003 Fix `indent cannot be negative' warning.
10004 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10006 2000-12-07 Werner LEMBERG <wl@gnu.org>
10008 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10010 2000-12-06 Werner LEMBERG <wl@gnu.org>
10012 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10015 * MORE.STUFF: Added info about deroff for djgpp.
10017 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10018 documentation of -rcR switch.
10020 2000-12-03 Werner LEMBERG <wl@gnu.org>
10022 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10023 if -rcR=1 (which is now the default in nroff mode), a single, very
10024 long page is created instead of multiple pages: All `ne' and `wh'
10025 requests are put into conditionals; a new macro `an-end' is added to
10026 be called with `em'.
10028 Some other minor cleanups.
10030 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10032 2000-12-02 Werner LEMBERG <wl@gnu.org>
10034 Fixing a bug which prevented hyphenation in words followed
10035 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10037 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10038 Adding possibly_break_line().
10039 * src/roff/troff/env.h (environment): Make possibly_break_line()
10042 Make `\~' usable in .tr request.
10044 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10045 (token): Add stretchable_space().
10046 * src/roff/troff/input.cc (token::next, token::delimiter,
10047 token::description, process_input_stack, do_translate,
10048 add_to_node_list, token::process): Use it.
10049 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10050 for adjusting the space.
10051 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10052 for stretchable space.
10053 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10054 (make_node): Add code for stretchable space.
10055 * src/roff/troff/env.cc (environment::add_char): Use it.
10056 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10057 (get_copy, token::next, transparent_translate, asciify): Use it.
10059 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10060 doc/groff.texinfo: Updated.
10061 * man/groff.man: Small reorderings.
10063 2000-11-23 Werner LEMBERG <wl@gnu.org>
10066 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10068 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10069 `safer_macro_path' to -M option.
10070 * src/roff/troff/troff.man: Fixes.
10072 2000-11-22 Werner LEMBERG <wl@gnu.org>
10074 Use safer path (except for config files) if -U isn't specified. Add
10075 a special macro path (without home and current directory) for config
10076 files. Add home directory to unsafe path for consistency. Don't
10077 include the home directory in the font path.
10079 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10081 * src/include/macropath.h: Add `config_macrp_path'.
10082 * src/libs/libgroff/fontfile.cc: Fix font path.
10083 * src/roff/troff/input.cc (process_startup_file): Use
10084 `config_macro_path'.
10085 (main): Select unsafe path if -U is given.
10087 * src/preproc/eqn/main.cc (main): Fixing search path for
10088 configuration file.
10089 * src/preproc/eqn/eqn.man: Updated.
10091 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10094 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10095 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10096 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10097 src/devices/grotty/grotty.man: Updated.
10099 * Makefile.in: Fix comments.
10101 2000-11-17 Werner LEMBERG <wl@gnu.org>
10103 * tmac/safer.tmac: Empty file added (again) for compatibility
10105 * tmac/Makefile.sub: Updated.
10107 2000-11-16 Werner LEMBERG <wl@gnu.org>
10109 * src/devices/grodvi/dvi.cc (main),
10110 src/devices/grohtml2/post-html.cc (main),
10111 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10112 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10113 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10114 (main), src/preproc/html2/pre-html.cc (main),
10115 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10116 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10117 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10118 (main), src/utils/hpftodit/hpftodit.cc (main),
10119 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10120 (main), src/utils/lookbib/lookbib.cc (main),
10121 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10122 (main): Use stdout for -v.
10123 * src/roff/groff/groff.cc (run_commands),
10124 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10125 to make direct printing to stdout possible.
10126 * src/roff/groff/pipeline.h: Updated.
10128 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10129 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10130 * src/utils/afmtodit/afmtodit.man: Updated.
10132 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10133 (version): New function.
10135 * src/utils/addftinfo/addftinfo.man: Updated.
10137 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10138 Fixing copyright dates.
10140 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10143 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10146 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10148 2000-11-15 Werner LEMBERG <wl@gnu.org>
10150 In all programs, make -v return immediately with exit status 0 to
10151 be compliant with the GNU standard.
10153 * src/devices/grodvi/dvi.cc (main),
10154 src/devices/grohtml2/post-html.cc (main),
10155 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10156 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10157 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10158 (main), src/preproc/html2/pre-html.cc (main),
10159 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10160 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10161 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10162 (main): Implement it.
10165 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10166 and postprocessors to the -v option.
10168 * src/roff/grog/grog.pl: Implement -v.
10169 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10170 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10172 * src/roff/nroff/nroff.sh: Implement -v.
10173 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10174 * src/roff/nroff/nroff.man: Updated.
10176 * src/preproc/eqn/main.cc (main): Fix comment typo.
10178 * MORE.STUFF: Added info about djgpp port of grap.
10180 2000-11-14 Werner LEMBERG <wl@gnu.org>
10182 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10183 mode (or rather, implemented non-compatibility mode).
10184 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10186 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10187 replacing it -- we don't find gxditview otherwise.
10188 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10190 * src/preproc/pic/depend: Removed. Unnecessary.
10192 Implemented dummy keyword `solid' in pic for compatibility with
10195 * lex.cc (lookup_keyword): Added `solid'.
10196 * pic.y: Added SOLID with dummy rule.
10197 * pic.cc, pic_tab.h: Regenerated.
10198 * doc/pic.ms: Updated.
10200 2000-11-13 Werner LEMBERG <wl@gnu.org>
10202 For security reasons, don't use the current directory but the home
10203 directory while searching and scanning troffrc and troffrc-end.
10204 Similarly, replace the current directory with the home directory
10207 * Makefile.in (fontpath, tmacpath): Remove current directory.
10209 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10210 two parameters `add_home' and `add_current'.
10211 (search_path::~search_path, search_path::command_line_dir,
10212 search_path::open_file): Remove tests for `dirs' being zero.
10213 * src/include/searchpath.h: Adjust.
10214 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10215 `safer_macro_path'.
10216 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10218 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10219 * src/roff/troff/input.cc: Use `mac_path', initialized with
10221 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10222 * src/roff/troff/env.cc: Use `mac_path'.
10224 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10226 * NEWS, man/roff.man, src/roff/troff/troff.man,
10227 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10230 2000-11-12 Werner LEMBERG <wl@gnu.org>
10232 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10234 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10235 * configure.in: Fix typo in comment.
10236 * configure: Regenerated.
10238 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10241 2000-11-08 Werner LEMBERG <wl@gnu.org>
10243 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10245 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10246 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10249 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10250 * tmac/Makefile.sub (install_data): Create
10251 $(systemtmacdir) and $(localtmacdir).
10252 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10253 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10254 NEWS, doc/groff.texinfo: Updated and minor fixes.
10256 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10257 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10258 $(systemtmacdir) since the wrapper files are platform-dependent.
10260 2000-11-01 Werner LEMBERG <wl@gnu.org>
10262 * doc/groff.texinfo: Fix typo.
10264 2000-10-26 Werner LEMBERG <wl@gnu.org>
10266 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10267 tmac.doc.old -> doc-old.tmac
10268 tmac.an.old -> an-old.tmac
10270 * tmac/tmac.*: Moved to ...
10271 * tmac/*.tmac: this.
10272 * tmac/man.local: Fix comment.
10273 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10274 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10275 Added some `FILES' sections. More use of @...@ directives. Other
10277 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10278 * doc/homepage.ms, doc/groff.texinfo: Updated.
10279 * man/groff.man, man/roff.man: Updated.
10280 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10281 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10282 src/devices/grotty/grotty.man: Updated.
10283 * src/preproc/pic/pic.man: Updated.
10284 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10285 instead of -mdoc.old.
10286 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10287 * src/roff/nroff/nroff.man: Updated.
10290 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10292 * tmac/mm.diff: Removed -- it has no use now since the mm package
10295 * tmac/*: Removed trailing spaces.
10297 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10298 the tmac subdirectory also).
10300 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10301 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10302 stuff since it is no longer needed.
10304 * README, PROBLEMS: Updated.
10306 2000-10-25 Werner LEMBERG <wl@gnu.org>
10308 Invert current behaviour: Search first FOOBAR.tmac, then
10311 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10312 (open_mac_file, macro_source): Implement it.
10313 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10314 doc/groff.texinfo, NEWS: Document it.
10316 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10317 Small documentation improvements.
10319 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10320 subdirectory also).
10322 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10324 2000-10-24 Werner LEMBERG <wl@gnu.org>
10326 Add local tmac directory (groff/site-tmac).
10328 * Makefile.in: Add $(localtmacdir).
10329 (uninstall_dirs): Add $(localtmacdir).
10330 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10331 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10332 in $(localtmacdir). Create $(localtmacdir).
10333 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10334 Updated and minor fixes.
10336 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10338 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10340 2000-10-23 Werner LEMBERG <wl@gnu.org>
10342 Move hyphen.us to tmac directory.
10344 * src/roff/troff/hyphen.us: Removed.
10345 * src/tmac/hyphen.us: Added.
10346 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10348 Change installation structure for data files from .../groff/... to
10349 .../groff/<version><revision>/... to be conform with other GNU
10352 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10353 doc/Makefile: Implement it.
10354 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10355 * configure: Updated.
10356 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10357 * NEWS: Document it.
10358 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10359 @MACRODIR@ instead of hard-coded directories.
10361 2000-10-22 Werner LEMBERG <wl@gnu.org>
10363 Implement $GROFF_BIN_PATH environment variable (which defaults to
10364 $bindir) used for child programs of groff and similar wrappers.
10366 * gendefs.sh: Improve documentation.
10367 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10368 src/preproc/eqn/Makefile.sub (neqn),
10369 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10370 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10372 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10373 $GROFF_PATH__ (the latter for communication with troff).
10374 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10376 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10377 doc/groff.texinfo: Document it.
10379 * doc/groff.texinfo: Improve documentation of troff's -a option.
10381 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10383 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10384 non-intrusive eol marker.
10385 (troff_output_file::determine_line_limits): New function.
10386 (troff_output_file::draw): Use it.
10387 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10388 output_pending_lines() instead of output_line().
10389 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10390 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10391 createImage): Small fixes.
10393 2000-10-14 Werner LEMBERG <wl@gnu.org>
10395 Replace tmac.safer with a real secure solution.
10397 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10398 system_request, pipe_output): Disable requests if in safer mode.
10399 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10400 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10401 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10402 doc/groff.texinfo, src/roff/groff/groff.man,
10403 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10405 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10406 (resource_manager::output_prolog): Replace setenv() with putenv().
10408 2000-10-09 Werner LEMBERG <wl@gnu.org>
10410 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10411 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10412 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10413 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10414 compilation errors with some compilers. It seems that this code
10415 is no longer necessary -- if yes, it is easy to add some #ifdef's
10416 for that particular old-fashioned compiler.
10418 * MORE.STUFF: Added info about Meta-tbl.
10420 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10422 2000-10-07 Werner LEMBERG <wl@gnu.org>
10424 Adding a new escape sequence \B'...': If the string between
10425 the delimiters is a valid numeric expression, return the character
10426 `1', and `0' otherwise. This is an analogon to \A.
10428 * src/roff/troff/input.cc (do_expr_test): Implement it.
10429 (token::next): Use it.
10430 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10432 * tmac/tmac.trace: Made independent from escape character.
10434 2000-10-06 Werner LEMBERG <wl@gnu.org>
10436 Adding a new request .dei: define indirect. The first and second
10437 parameter of .dei are taken from string registers instead directly;
10438 this very special request is needed to make tmac.trace independent
10439 from the escape character (which might even be disabled).
10441 * src/roff/troff/input.cc (do_define_macro): Implement it.
10442 (define_macro_indirect): New function.
10443 (init_input_requests): Use it.
10445 Adding two requests .ecs and .ecr: Save and restore the escape
10446 character. These two requests are needed to make tmac.trace
10447 independent from the escape character (which might even be
10450 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10452 (init_input_requests): Use it.
10454 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10456 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10458 Adding a new option -P and new environment variable GROPS_PROLOGUE
10459 to grops, selecting a different prologue file (minor modifications
10462 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10463 src/devices/grops/ps.cc (main): Implement it.
10464 * src/devices/grops/grops.man, NEWS: Document it.
10466 2000-09-22 Werner LEMBERG <wl@gnu.org>
10468 * INSTALL: Add info about selecting paper format.
10470 2000-09-21 Werner LEMBERG <wl@gnu.org>
10472 * src/roff/troff/input.cc (main): Fixing compiler warning.
10473 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10474 strings.h from the former to the latter.
10475 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10476 stuff from the former to the latter.
10478 2000-09-11 Werner LEMBERG <wl@gnu.org>
10480 Implementing two new requests .tm1 and .tmc: The former is similar
10481 to .tm but can output leading spaces; its syntax is similar to
10482 defining a string, i.e., a `"' can be used to mark the beginning of
10483 the string to be written to stderr: `.tm1 " test'. The latter is
10484 similar to .tm1 but doesn't write out a final newline character.
10486 * src/roff/troff/input.cc (terminal1, terminal_continue,
10487 do_terminal): New functions.
10488 (init_input_requests): Use them.
10489 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10491 2000-09-09 Werner LEMBERG <wl@gnu.org>
10493 * tmac/groff_mdoc.samples.man: Small fixes.
10495 2000-09-08 Werner LEMBERG <wl@gnu.org>
10497 * tmac/groff_mdoc.man: Fixing typo.
10499 2000-09-02 Werner LEMBERG <wl@gnu.org>
10501 Implementing a .nop request which does nothing.
10503 * src/roff/troff/input.cc (nop_request): New function.
10504 (init_input_requests): Use it.
10505 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10507 2000-09-01 Werner LEMBERG <wl@gnu.org>
10509 * doc/groff.texinfo: Added some comments.
10511 2000-08-30 Werner LEMBERG <wl@gnu.org>
10513 * src/roff/troff/TODO: Updated.
10515 2000-08-25 Werner LEMBERG <wl@gnu.org>
10517 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10519 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10521 * font/devps/generate/Makefile (SHELL): Define explicitly to
10522 "/bin/sh", for non-Unix platforms.
10523 (extraclean): Use a more portable "" quoting instead of a
10524 backslash (which doesn't work on DOS/Windows).
10526 * font/devlj4/generate/Makefile (extraclean): Ditto.
10528 * font/devdvi/generate/Makefile (extraclean): Ditto.
10530 2000-08-25 Werner LEMBERG <wl@gnu.org>
10532 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10533 src/roff/troff/troff.man: Document Eli's latest changes.
10535 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10537 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10538 macro file names of the form NAME.tmac as well as tmac.NAME.
10540 2000-08-25 Werner LEMBERG <wl@gnu.org>
10542 * src/include/posix.h: Remove definition of FILENAME_MAX.
10544 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10545 `sys_fatal' and `stop' function().
10547 * test-groff: Updated.
10549 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10551 Added the new troff command .output <arg> to suppress output (while
10552 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10553 registers (for passing the output dimensions to the output device).
10555 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10557 * src/roff/troff/node.h, src/roff/troff/node.cc
10558 (troff_output_file::really_print_line,
10559 ascii_output_file::really_print_line,
10560 supress_output_file::really_print_line): Use `width' parameter.
10561 (troff_output_file::really_on, troff_output_file::really_off,
10562 output_file::on, output_file::off, real_output_file::on,
10563 real_output_file::off, real_output_file::really_on,
10564 real_output_file::really_off): New functions.
10565 (real_output_file:public output_file): New variable `output_on'.
10566 (real_output_file::begin_page, real_output_file::copy_file,
10567 real_output_file::transparent_char, real_output_file::print_line):
10569 (real_output_file::print_line): Use check_output_limits.
10570 * src/roff/troff/reg.h, src/roff/troff/request.h,
10571 src/roff/troff/input.cc (assign_registers): New function to remove
10573 (do_ps_file): Use it.
10574 (check_output_limits, reset_output_registers, output_request,
10575 init_output_requests): New functions.
10576 (init_input_requests): Updated.
10578 Added new grohtml2 device and html2 preprocessor (coding
10579 not yet finished) which will eventually replace grohtml.
10581 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10583 * src/include/htmlindicate.h, src/include/htmlindicate
10584 (html_begin_suppress, html_end_suppress): New functions.
10585 * src/preproc/tbl/main.cc: Use it.
10586 * src/roff/groff/groff.cc: Add support for html2 device (which will
10587 automatically invoke the html2 preprocessor).
10588 * src/roff/troff/input.cc (is_html2): New variable.
10589 * src/roff/troff/troff.h, src/roff/troff/env.h,
10590 src/roff/troff/env.cc (environment::add_html_tag): New function
10592 (environment::do_break): Use it.
10593 * font/devhtml2/*: New files.
10594 * src/devices/grohtml2: New device.
10595 * src/preproc/html2: New preprocessor.
10596 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10598 2000-08-23 Werner LEMBERG <wl@gnu.org>
10600 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10602 2000-08-22 Werner LEMBERG <wl@gnu.org>
10604 * src/include/lib.h: Provide a fix for IRIX to not include
10607 2000-08-18 Werner LEMBERG <wl@gnu.org>
10609 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10610 since some non-GNU sed programs can't handle null regexps.
10611 * configure, src/preproc/eqn/Makefile.sub,
10612 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10614 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10615 bug (string.h and strings.h are both needed according to latest
10618 * MORE.STUFF: Added info about unroff and troffcvt.
10620 2000-08-08 Werner LEMBERG <wl@gnu.org>
10622 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10625 * tmac/tmac.man.old: Remove unused number register.
10627 * tmac.doc: Minor documentation fix.
10629 2000-08-07 Paul Eggert <eggert@twinsun.com>
10631 * src/roff/groff/pipeline.c (is_system_shell):
10632 Fix typo: "monocased_shell" no longer exists.
10634 2000-08-07 Paul Eggert <eggert@twinsun.com>
10636 Remove FILENAME_MAX limits.
10638 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10639 that the argument length is less than FILENAME_MAX.
10640 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10641 Use struct hack to allocate and free file name.
10642 (struct xtmpfile_list): fname is now part of the structure,
10643 not a pointer to another string.
10645 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10647 * src/include/posix.h: Add a default value for FILENAME_MAX.
10649 2000-08-06 Paul Eggert <eggert@twinsun.com>
10651 Add support for new BSD-style man pages (with ".Dd" instead of
10652 ".TH"), so that "groff -man" understands both styles, even
10653 when running "groff -man" on a host whose system man page
10654 macros don't support ".Dd".
10656 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10657 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10658 in case the system man macros don't define Dd or TH.
10660 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10661 * tmac/tmac.an: New one-line file.
10662 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10664 2000-08-06 Werner LEMBERG <wl@gnu.org>
10666 * src/roff/troff/troff.man: Fixing typos.
10668 Version 1.16.1 released
10669 =======================
10671 2000-07-31 Werner LEMBERG <wl@gnu.org>
10673 Preparing release 1.16.1.
10675 * REVISION: Revision number set to 1.
10676 * MORE.STUFF: Added info about port to DOS.
10677 * NEWS, win32-diffs: Updated.
10679 * src/include/nonposix.h: Remove first line -- this file is used
10682 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10685 2000-07-30 Werner LEMBERG <wl@gnu.org>
10687 * doc/texinfo.tex: Update to latest version.
10689 2000-06-28 Paul Eggert <eggert@twinsun.com>
10691 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10692 commands that fail. Don't assume that "export a=b" is valid shell
10693 syntax. This is needed for Solaris 2.5.1.
10695 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10696 comment about missing Solaris headers.
10698 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10700 2000-06-25 Werner LEMBERG <wl@gnu.org>
10702 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10705 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10707 * win32-diffs: Updated.
10708 * README.WIN32: Added CRs to make all Windows editors happy.
10710 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10711 src/roff/groff/pipeline.c).
10713 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10715 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10716 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10718 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10720 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10721 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10723 (main): Support non-Posix systems with several different styles of
10724 slash characters in file names.
10726 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10727 (main) [SET_BINARY]: Switch stdin into binary mode.
10729 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10730 (main): Support file names with several possible slash-type
10731 characters, as given by DIR_SEPS[] in nonposix.h.
10732 (main) [__MSDOS__]: If renaming the temporary index file fails
10733 because it has more than one dot in its trunk, replace the dot
10734 with an underscore and try again.
10735 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10737 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10739 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10740 (File::File): Open the input file in binary mode. Strip CR
10741 characters from each CR-LF pair.
10742 (xbasename): Support file names with several possible slash-type
10743 characters, as given by DIR_SEPS[] in nonposix.h.
10745 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10747 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10748 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10749 [!_POSIX_VERSION]: Define for traditional Unix systems.
10750 (real_output_file::real_output_file): Remove the MSVC-specific
10751 call to popen, use instead POPEN_WT, appropriately defined on
10752 nonposix.h. #include nonposix.h.
10753 (real_output_file::~real_output_file): Remove the MSVC-specific
10754 call to pclose, a suitable macro is now defined on nonposix.h.
10755 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10756 and WEXITSTATUS instead of assuming traditional Unix
10757 interpretation of the status returned by pclose.
10759 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10760 call to popen, use POPEN_RT instead (appropriately defined on
10761 nonposix.h). #include nonposix.h.
10762 (ps_bbox_request): Open the PostScript file in binary mode.
10763 Close the file after processing it.
10764 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10767 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10768 A version of run_pipeline that doesn't use `fork'.
10769 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10770 (system_shell_name, system_shell_dash_c)
10771 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10772 the ugliness of testing DOS/Windows file names for equality, and
10773 support both stock shells and ports of Unix shells.
10775 * src/roff/groff/groff.cc: #include nonposix.h.
10776 (BSHELL): Definition moved to nonposix.h.
10777 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10778 instead of a literal "-c".
10779 (xbasename): Support file names with several possible slash-type
10780 characters, as given by DIR_SEPS[] in nonposix.h.
10781 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10782 of literal strings.
10784 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10785 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10787 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10790 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10792 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10795 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10797 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10798 P_tmpdir is defined, use it instead of the literal "/tmp".
10799 (remove_tmp_files, add_tmp_file): New functions.
10800 (xtmpfile): Record temporary files and register an atexit function
10801 to delete them explicitly, instead of relying on the OS to do
10802 that, which doesn't work on non-Unix systems.
10804 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10805 (search_path::search_path): Use PATH_SEP instead of a literal
10807 (search_path::command_line_dir): Ditto.
10808 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10809 to support non-Posix systems.
10811 * src/libs/libbib/search.cc: #include nonposix.h.
10812 (search_list::add_file): Open the file in binary mode.
10814 * src/libs/libbib/linear.cc: #include nonposix.h.
10815 (file_buffer::load): Remove \r characters preceding \n from the
10818 * src/libs/libbib/index.cc: #include nonposix.h.
10819 (make_index_search_item): Open index_filename in O_BINARY mode.
10820 (index_search_item_iterator::get_tag): Ditto. Remove \r
10821 characters before \n characters.
10822 (index_search_item::check_files): Open files in binary mode.
10823 (index_search_item::munge_filename): Support DOS-style file names
10824 with backslashes and drive letters, use IS_ABSOLUTE.
10826 * src/devices/grops/ps.cc: #include nonposix.h.
10827 (main) [SET_BINARY]: Switch stdout to binary mode.
10829 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10830 (main) [SET_BINARY]: Switch stdout to binary mode.
10832 * src/devices/grolbp/lbp.cc: #include nonposix.h
10833 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10835 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10836 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10838 (main) [SET_BINARY]: Switch stdout to binary mode.
10839 [_MSC_VER]: Remove an explicit call to _setmode.
10841 * src/include/nonposix.h: New file.
10843 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10844 operation when building with DJGPP.
10845 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10846 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10849 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10851 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10852 etc. can include a semi-colon on DOS/Windows.
10853 (depend.temp): Use depend1.temp instead of depend.temp1, to
10854 prevent files from overerwiting each other on 8+3 filesystems.
10856 * gendef.sh (t): Change definition to work with DOS/Windows.
10858 doc/groff.texinfo: Apart of some typo corrections, I also changed
10859 some index entris, to make them more non-ambiguous, and also put
10860 @ignore around some parts that are not yet written, to allow the
10861 Info output be readable.
10863 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10865 Replaced specific checks for function declarations with a generic
10866 routine taken from GNU bfd.
10868 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10869 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10870 * configure.in: Use it.
10871 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10872 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10873 src/roff/groff/groff.cc: Use it.
10874 * Makefile.in, configure: Updated.
10876 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10878 * src/devides/grolbp/lbp.h: Removed unused variables.
10880 2000-05-31 Keith Thompson <kst@sdsc.edu>
10882 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10885 2000-05-31 Werner LEMBERG <wl@gnu.org>
10887 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10888 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10889 * configure.in: Use it.
10890 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10891 * configure, Makefile.in: Updated.
10893 * configure.in: Add test for strncasecmp().
10894 * src/include/lib.h: Use it.
10896 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10898 * src/preproc/grn/Makefile.sub: Add MLIB.
10900 2000-05-29 Nix <nix@esperi.demon.co.uk>
10902 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10904 2000-05-29 Werner LEMBERG <wl@gnu.org>
10906 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10908 * PROBLEMS: Small update.
10910 * src/devices/grolbp/lbp.cc: Various small fixes.
10912 2000-05-28 Keith Thompson <kst@sdsc.edu>
10914 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10916 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10918 2000-05-25 Werner LEMBERG <wl@gnu.org>
10920 * man/roff.man: Removed unused macro.
10922 2000-05-24 Werner LEMBERG <wl@gnu.org>
10924 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
10925 This is needed e.g. if you do
10926 `make distclean; ./configure; make dist'.
10928 Version 1.16 released
10929 =====================
10931 2000-05-23 Werner LEMBERG <wl@gnu.org>
10933 Adding font CWI (constant width italic) to devdvi.
10935 * font/devdvi/CWI: New file.
10936 * font/devdvi/generate/Makefile: Add generating rule.
10937 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10938 tmac/tmac.dvi: Use it.
10939 * NEWS: Announce it.
10941 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10942 * font/devlj4/generate/Makefile: Cosmetic changes only.
10944 * man/groff.man: Removed most of the redundant description of
10945 special characters (which is in groff_char.man). Added font
10946 translation CB->CR for devdvi. Other minor fixes.
10948 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10949 (registered) symbols.
10951 2000-05-22 Werner LEMBERG <wl@gnu.org>
10953 * doc/Makefile: Added rule for creating info files.
10955 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
10957 * font/devdvi/generate/Makefile: Fixed dependencies.
10959 * font/devps/*: Regenerated. Heavy changes for Bookman and
10960 NewCentury Schoolbook!
10961 * font/devps/generate/afmname: Will now run with GNU awk.
10962 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10963 * font/devps/generate/Makefile: Cosmetic changes only.
10965 2000-05-21 Werner LEMBERG <wl@gnu.org>
10967 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10968 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
10969 `.SS' now produces a heading with a smaller size than `.SH'.
10970 Completely formatted.
10971 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10973 * man/groff.man: Improved table appearance. Use of `eo' request
10974 to reduce number of doubled backslashes in macro definitions.
10975 Replacing `\e' with `\(rs'. Other minor fixes.
10977 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10978 to have correct line number.
10980 * INSTALL: Small improvement.
10982 2000-05-20 Bernd Warken <bwarken@mayn.de>
10984 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10987 2000-05-19 Bernd Warken <bwarken@mayn.de>
10989 * man/groff.man: Complete update (with a lot of corrections by WL).
10991 2000-05-18 Werner LEMBERG <wl@gnu.org>
10993 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10995 * font/*/*: Implement it.
10996 * man/groff_char.man, NEWS: Document it.
10998 * src/include/unix.h: Removed. It isn't used.
11000 * doc/groff.texinfo: Slight improvements.
11002 2000-05-17 Werner LEMBERG <wl@gnu.org>
11004 * README, win32-diffs: Small fixes and improvements.
11006 2000-05-16 Werner LEMBERG <wl@gnu.org>
11008 * FDL: New file (the Free Documentation License version 1.1).
11010 * doc/groff.texinfo: Added many start-up values for gtroff.
11011 Some structural improvements of the source code.
11013 2000-05-15 Werner LEMBERG <wl@gnu.org>
11015 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11016 * src/roff/troff/troff.man: Added info about troffrc-end.
11018 2000-05-14 Werner LEMBERG <wl@gnu.org>
11020 * Makefile.in (EXTRADIRS): Fix typos.
11021 (dist): Handle deletion of old .tar.gz file correctly.
11022 (DISTDIRS): Include all tty output devices.
11024 * doc/groff.texinfo: Adding more cross references; countless other
11027 2000-05-13 Werner LEMBERG <wl@gnu.org>
11029 * MORE.STUFF: Added Robert Marks's utilities.
11031 2000-05-12 Werner LEMBERG <wl@gnu.org>
11033 Added win32 port contributed by Blake McBride
11034 <blake@florida-software.com>.
11036 * README.WIN32, win32-diffs: New files.
11039 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11040 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11041 (change): Removed unused variables.
11043 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11044 (savebounds): Changed return value from `int' to `void'.
11045 * src/preproc/grn/hdb.cc: Ditto.
11047 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11048 final backslash in comment to avoid compiler warning.
11050 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11052 * doc/groff.texinfo: More fixes.
11054 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11056 * tmac/tmac.doc: Documentation fix.
11058 2000-05-11 Werner LEMBERG <wl@gnu.org>
11060 * doc/groff.texinfo: Reading the source code shows up a lot of
11061 omissions and incorrect data... More conversion to @Deffn macros.
11063 2000-05-10 Werner LEMBERG <wl@gnu.org>
11065 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11068 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11070 2000-05-09 Werner LEMBERG <wl@gnu.org>
11072 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11075 * doc/groff.texinfo: Extended history section. More conversion to
11076 @Deffn macros. More .tr documentation.
11078 2000-05-07 Werner LEMBERG <wl@gnu.org>
11080 * doc/groff.texinfo: Completed tab section. Added info about
11083 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11085 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11087 2000-05-05 Werner LEMBERG <wl@gnu.org>
11089 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11091 * NEWS: Document it.
11093 * man/troff.man: Minor optical improvements.
11095 2000-05-03 Werner LEMBERG <wl@gnu.org>
11097 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11099 * font/*/*: Implement it.
11100 * man/groff_char.man, NEWS: Document it.
11102 2000-05-02 Werner LEMBERG <wl@gnu.org>
11104 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11106 * NEWS: Document the three new man pages.
11108 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11109 * configure: Updated.
11111 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11113 2000-05-01 Werner LEMBERG <wl@gnu.org>
11115 Added grap support to grog.
11117 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11118 * src/roff/grog/grog.man: Document it.
11120 * doc/groff.texinfo, NEWS: Add info about grap support.
11122 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11123 (with slight fixes by me).
11125 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11126 * tmac/Makefile.sub: Add groff_tmac.man.
11127 * man/roff.man: New file giving overview of roff system.
11128 * man/troff.man: A short reference of troff.
11129 * man/Makefile.sub: Add roff.man and troff.man.
11131 2000-04-30 Werner LEMBERG <wl@gnu.org>
11133 Added grap support to groff.
11135 * src/roff/groff/groff.cc: Implement it.
11136 * src/roff/groff/groff.man: Document it.
11138 * src/devices/grotty/grotty.man: Add cp1047 device.
11139 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11141 * src/roff/groff/groff.man: Ditto.
11142 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11143 * doc/groff.texinfo: Ditto.
11145 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11148 2000-04-29 Werner LEMBERG <wl@gnu.org>
11150 * man/groff_char.man: Add `pc' glyph.
11151 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11152 * tmac/tmac.tty: Add `pc' glyph.
11153 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11154 we use cp1047 output device.
11156 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11157 there are still hardcoded latin1->unicode values in utf8's font
11159 * configure: Updated.
11160 * NEWS: Minor clarification. Updated.
11162 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11165 2000-04-28 Werner LEMBERG <wl@gnu.org>
11167 Adding EBCDIC code page 1047.
11169 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11170 font/devcp1047/DESC.proto: New files.
11172 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11173 either ascii/latin1 or cp1047.
11174 * Makefile.in: Use it.
11175 * configure: Updated.
11177 Replacing and/or adding `md' (mathdot) glyph with `pc'
11178 (periodcentered) in all text fonts.
11180 * font/*/*: Change it.
11182 2000-04-27 Werner LEMBERG <wl@gnu.org>
11184 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11186 * configure.in: Add check for strings.h.
11187 * src/include/driver.h: Use HAVE_STRINGS_H.
11188 * src/devices/grolbp/lpb.cc: Remove string.h.
11190 * src/include/groff-getopt.h: New file. It will be used instead of
11191 getopt.h (to be included in lib.h) to avoid endless problems with
11192 picky C++ compilers.
11193 * src/include/lib.h: Use groff-getopt.h.
11194 * src/include/Makefile.sub: Updated.
11196 * configure: Updated.
11197 * Makefile.in: Updated.
11199 * NEWS: Mention EBCDIC support.
11201 2000-04-26 Werner LEMBERG <wl@gnu.org>
11203 * TODO: Some additions.
11205 2000-04-25 Werner LEMBERG <wl@gnu.org>
11207 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11210 2000-04-23 Werner LEMBERG <wl@gnu.org>
11212 * src/roff/troff/troff.man: Minor fixes.
11214 2000-04-22 Werner LEMBERG <wl@gnu.org>
11216 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11217 `.T' string register and the incompatible definition of the `.T'
11218 number register (compared to Unix troff).
11220 * man/groff_char.man: Add some missing characters.
11221 * font/devutf8/NOTES: Update.
11223 2000-04-21 Werner LEMBERG <wl@gnu.org>
11225 * src/include/htmlindicate.h, src/include/lib.h,
11226 src/include/posix.h: Fix copyright.
11228 * src/include/Makefile.sub: Update.
11230 2000-04-20 Werner LEMBERG <wl@gnu.org>
11232 * src/roff/troff/input.cc (input_char_description): Removing
11233 superfluous space char.
11235 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11237 * doc/groff.texinfo: Document EBCDIC.
11239 2000-04-19 Werner LEMBERG <wl@gnu.org>
11241 Introducing `shc' as the glyph name for the soft hyphen character.
11243 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11244 font/devlatin1/R.proto: Use it.
11248 2000-04-18 Werner LEMBERG <wl@gnu.org>
11250 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11251 dependency on ASCII order.
11253 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11255 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11256 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11258 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11259 to increase portability.
11261 2000-04-15 Werner LEMBERG <wl@gnu.org>
11263 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11264 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11265 the generic `\n' if under OS/390 Unix.
11267 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11269 * configure: Regenerated.
11271 2000-04-14 Werner LEMBERG <wl@gnu.org>
11273 * doc/groff.texinfo: More conversions to @Deffn.
11275 2000-04-12 Werner LEMBERG <wl@gnu.org>
11277 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11280 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11282 2000-04-10 Werner LEMBERG <wl@gnu.org>
11284 * doc/groff.texinfo: More conversions to @Deffn.
11286 2000-04-08 Werner LEMBERG <wl@gnu.org>
11288 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11289 Updated to latest version (glibc 2.1.3).
11291 2000-04-07 Werner LEMBERG <wl@gnu.org>
11293 * doc/Makefile (clean): Include more index files.
11294 Add rule texinfo->dvi.
11296 2000-04-05 Werner LEMBERG <wl@gnu.org>
11298 * doc/groff.texinfo: Added new index `op' for operators. More
11299 info on end of sentence characters. More use of @Deffn.
11301 2000-03-30 Werner LEMBERG <wl@gnu.org>
11303 * */*.man: Adding a note that a whitespace can be inserted between
11304 a command line option and its parameter -- we are using GNU getopt.
11306 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11308 2000-03-28 Werner LEMBERG <wl@gnu.org>
11310 Correct anachronism of calling the man macro file with `-man'
11311 instead of `-m man' etc.
11313 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11314 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11315 load tmac.<package>.
11317 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11321 * doc/groff.texinfo: Updated.
11323 * tmac/groff_man.man: Copyright added.
11325 2000-03-27 Werner LEMBERG <wl@gnu.org>
11327 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11328 typeset the request resp. escape name with a tt font -- due to a
11329 bug in texinfo.tex it is necessary to use the `-e' switch with
11332 Improving info about usage of groff units.
11336 2000-03-20 Werner LEMBERG <wl@gnu.org>
11338 * doc/groff.texinfo: Added section about man macro package
11339 (I've basically taken groff_man.man). Introducing new indices `ma'
11340 for macros/strings and `gl' for glyph names. Other minor fixes.
11342 * tmac/groff_man.man: Fixed some typos.
11344 2000-03-19 Werner LEMBERG <wl@gnu.org>
11346 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11349 * doc/texinfo.tex: New file.
11351 2000-03-18 Werner LEMBERG <wl@gnu.org>
11353 * doc/groff.texinfo: Improved section on number registers. Other
11356 2000-03-16 Werner LEMBERG <wl@gnu.org>
11358 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11361 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11362 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11363 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11364 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11366 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11368 * src/roff/grog/grog.man: Updated copyright date.
11370 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11372 * configure.in: Added test for strdup.
11374 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11377 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11381 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11383 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11385 2000-03-11 Werner LEMBERG <wl@gnu.org>
11387 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11389 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11390 * src/include/lib.h: Remove some spaces.
11392 2000-03-10 Werner LEMBERG <wl@gnu.org>
11394 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11395 initializers from arguments (some compilers don't like this).
11397 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11399 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11400 used by pic and eqn to tell grohtml where the graphic regions start
11402 * src/libs/libgroff/Makefile.sub: Use it.
11403 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11404 graphic_start() and graphic_end() from htmlindicate.cc.
11406 2000-03-09 Werner LEMBERG <wl@gnu.org>
11408 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11409 * tmac/groff_man.man: More fixes.
11411 2000-03-08 Werner LEMBERG <wl@gnu.org>
11413 * doc/Makefile: Added texput.log to the `clean' target.
11414 * doc/groff.texinfo: Added info about delimiters for escapes.
11416 2000-03-08 Bernd Warken <bwarken@mayn.de>
11418 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11419 other graphic formats.
11421 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11423 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11424 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11425 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11428 2000-03-07 Werner LEMBERG <wl@gnu.org>
11430 * doc/groff.texinfo: Spelling fixes.
11432 2000-03-06 Werner LEMBERG <wl@gnu.org>
11434 * tmac/groff_man.man: Completely revised to cover everything in
11437 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11438 Other minor fixings.
11439 * src/roff/troff/env.cc (environment_copy): Improve error message and
11441 * src/roff/troff/TODO: Updated.
11443 * doc/Makefile: Bug fixes -- this is still provisional, though...
11445 * tmac/eqnrc: Small fixes.
11447 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11449 Adding a request `evc' to copy environments.
11451 * src/roff/troff/env.cc (environment::copy, environment_copy):
11453 * src/roff/troff/env.h: Add prototype.
11455 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11457 Adding strsep() -- Solaris 8 doesn't have it.
11459 * configure.in: Test it.
11460 * src/devices/grolbp/lbp.cc: Add code.
11462 2000-03-05 Werner LEMBERG <wl@gnu.org>
11464 * src/roff/troff/div.cc (macro_diversion::output,
11465 top_level_diversion::output): Fixing an incompatibility with
11466 original troff: \x'0' updates the .a register also. Thanks to
11467 <Andries.Brouwer@cwi.nl> for pointing this out.
11468 * doc/groff.texinfo: Document it.
11470 * Makefile.in: Create Makefile.dep if necessary before calling the
11471 submake process to avoid warning about nonexistent file.
11473 * NEWS, PROJECTS: Updated.
11475 2000-03-04 Werner LEMBERG <wl@gnu.org>
11477 * tmac/troffrc: Add tmac.lbp.
11479 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11481 * tmac/tmac.lbp: New file.
11482 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11485 2000-03-03 Werner LEMBERG <wl@gnu.org>
11487 * Makefile.in: Fixing $(subdir).
11489 * README, NEWS: Small fixes.
11491 * test-groff: Adding path to grolbp.
11493 * configure.in: The (new) file src/xditview/Imakefile.in will be
11494 also configured -- it is now possible to build gxditview in a
11495 directory different from $srcdir.
11497 2000-03-02 Blake McBride <blake@florida-software.com>
11499 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11501 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11503 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11505 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11508 2000-02-29 Werner LEMBERG <wl@gnu.org>
11510 Adding GNU getopt to the groff distribution.
11512 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11514 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11515 * aclocal.a4: Remove GROFF_GETOPT function.
11516 * configure.in, Makefile.in, PROBLEMS: Update.
11517 * src/include/lib.h: Replace getopt tests with getopt.h.
11518 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11520 * doc/groff.texinfo: Further checking/updating. Adding more index
11523 * man/groff_out.man: Fix nroff mode activation (for emacs).
11524 * man/groff_font.man: Add missing ligature.
11526 2000-02-28 Werner LEMBERG <wl@gnu.org>
11528 * doc/groff.texinfo: Further checking/updating. Adding more index
11531 * src/devices/grolbp/grolbp.man: Added a comment line at the
11532 beginning of the file (similar to shell scripts) which indicates
11533 that `tbl' should be used as a preprocessor.
11535 2000-02-27 Blake McBride <blake@florida-software.com>
11537 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11538 Windows NT 4.0). Uses _MSC_VER define where necessary.
11540 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11541 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11542 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11543 src/include/lib.h, src/libs/libgroff/errarg.cc,
11544 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11545 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11546 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11547 src/roff/troff/div.cc, src/roff/troff/env.cc,
11548 src/roff/troff/input.cc, src/roff/troff/node.cc,
11549 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11550 if_to_a() to avoid name clashes.
11551 * src/include/posix.h: Don't use unistd.h.
11552 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11553 clause for integrating non-Unix xtmpfile() code.
11554 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11555 structure; use "rt" for popen() in pipe_source(); add getpid()
11557 * src/roff/troff/node.cc: Use special versions of popen() in
11558 real_output_file() and pclose() in ~real_output_file().
11560 2000-02-27 Werner LEMBERG <wl@gnu.org>
11562 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11563 LBP-8 series laser printers). This code has been contributed by
11564 Francisco Andrés Verdú <pandres@dragonet.es>.
11566 * src/devices/grolbp/*: The grolbp output device.
11567 * font/devlpb/*: The font description files.
11568 * Makefile.in: Add grolpb and devlbp subdirectories.
11570 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11571 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11574 * doc/groff.texinfo: Further checking/updating. Adding more index
11579 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11581 * man/groff_font.man: Adding info about obsolete DESC keywords.
11582 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11585 2000-02-26 Werner LEMBERG <wl@gnu.org>
11587 * src/preproc/grn/grn.man: Added info about the gremlin file format
11588 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11590 2000-02-25 Werner LEMBERG <wl@gnu.org>
11592 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11593 friends to be non-integer.
11595 * src/preproc/grn/grn.man: Document it.
11597 * doc/groff.texinfo: Further checking/updating. Adding more index
11600 2000-02-24 Werner LEMBERG <wl@gnu.org>
11602 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11603 line thicknesses to be integer multiples of this value.
11605 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11606 corresponding code doesn't work (yet).
11608 * doc/groff.texinfo: Further checking/updating. Adding more index
11611 2000-02-23 Werner LEMBERG <wl@gnu.org>
11613 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11614 specify line thickness instead of base units. The new default
11615 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11616 thick lines respectively.
11618 Removed unused variable `prevval'.
11620 * src/preproc/grn/grn.man: Updated.
11622 2000-02-22 Werner LEMBERG <wl@gnu.org>
11624 * src/preproc/grn/main.cc: Slight formatting.
11626 * src/roff/groff/groff.man: Formatting fix.
11627 * src/preproc/grn/grn.man: Ditto.
11629 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11631 * doc/groff.texinfo: Further checking/updating.
11633 2000-02-21 Werner LEMBERG <wl@gnu.org>
11635 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11637 * test-groff: Added grn subdir to path.
11639 * doc/groff.texinfo: Some restructing and other small improvements.
11641 * src/roff/groff/groff.cc (help): Fixed info string.
11643 2000-02-20 Werner LEMBERG <wl@gnu.org>
11645 * doc/meref.me: Fix description of .GS request.
11647 * src/roff/troff/troff.man: Fixing typo.
11649 Adding the `grn' preprocessor for gremlin graphic files.
11651 * src/preproc/grn/*: This is the Berkeley distribution written by
11652 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11653 Senderowicz and Werner Lemberg.
11655 * doc/grnexampl.{me,g}: A sample for grn.
11657 * Makefile.in: Added subdirectory entry for grn.
11659 * src/roff/groff/groff.cc: Added support for grn. It can be now
11660 called with the switch `-g'.
11662 * src/roff/groff/groff.man: Updated.
11664 * src/roff/grog/grog.{man,pl,sh}: Updated.
11668 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11670 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11671 parametrically polymorphic.
11673 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11674 and the alterations to xtmpfile.
11675 xtmpfile can be requested to return the filename created
11676 and asked not to unlink the temp file. The default behaviour
11677 if parameters are absent is exactly the same as before.
11679 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11681 A new request `length' is available which returns the length of a
11682 string in a number register:
11684 * src/roff/troff/input.cc (length_macro): Implement it.
11685 * src/roff/troff/input.cc (init_input_requests): Register it.
11687 2000-02-11 Werner LEMBERG <wl@gnu.org>
11689 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11690 of the `substring' request.
11692 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11695 * src/roff/troff/TODO, NEWS: Updated.
11697 2000-02-09 Werner LEMBERG <wl@gnu.org>
11699 * src/roff/groff/groff.man: Added an example.
11701 2000-02-06 Werner LEMBERG <wl@gnu.org>
11703 I've considerably modified the directory structure of the
11704 distribution to get a more vertical layout. For example, the number
11705 of top level directories has been reduced from 42 to 6.
11707 As a consequence, many changes, especially to the makefiles, were
11710 * The makefile variables `top_builddir' and `top_srcdir' have been
11711 introduced. Virtually all relative paths have been replaced with
11712 absolute ones using these two variables.
11714 * Dependencies (in the files `Makefile.dep') are no longer part of
11715 the distribution. Instead, they are created during a `make install'
11716 in the build directory.
11718 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11719 make `top_srcdir' and `top_builddir' absolute.
11721 Some other changes:
11723 * Man pages now depend on the files `VERSION' and `REVISION'.
11725 * The added shell script `mkinstalldirs' will replace `mkdir' in
11728 * VERSION: Version number increased to 1.16.
11730 2000-02-04 Werner LEMBERG <wl@gnu.org>
11732 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11734 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11735 (after an update of the mm stuff).
11737 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11739 2000-02-03 Werner LEMBERG <wl@gnu.org>
11741 The .psbb request will now also accept Mac PS images (i.e. using LF
11742 as the EOL character).
11744 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11745 (with slight modifications).
11746 * troff/input.cc (do_ps_file): Use it.
11748 * test-groff: Add grohtml and grolj4 output devices to PATH.
11750 2000-01-30 Werner LEMBERG <wl@gnu.org>
11752 * NEWS, MORE.STUFF: Updated.
11754 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11756 Add the `srand' command to pic.
11758 * pic/lex.cc, pic/pic.y: Implement it.
11759 * pic/pic.man: Document it.
11760 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11762 2000-01-30 Werner LEMBERG <wl@gnu.org>
11764 Add a new request `.psbb'. This does exactly what the external
11765 program psbb did. It scans a PostScript image file for a
11766 %%BoundingBox comment and extracts the bounding box values (in
11767 PostScript units) which are then stored in the four new (read-only)
11768 number registers `llx', `lly', `urx', and `ury'.
11770 This will allow the usage of the .PSPIC macro without worrying
11771 about unsafe behaviour of groff, i.e., it will work without the
11772 `-U' switch of groff.
11774 * troff/input.cc: Implement it.
11775 * tmac/tmac.pspic: Use it.
11776 * troff/troff.man, grops/grops.man, NEWS: Document it.
11777 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11779 This is bloody C code simply adapted from psbb.c! Any improvements
11782 2000-01-29 Werner LEMBERG <wl@gnu.org>
11784 * man/groff_font.man: Minor clarifications.
11788 2000-01-28 Werner LEMBERG <wl@gnu.org>
11790 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11792 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11794 * man/groff_font.man: Brought up to date regarding tcommand
11796 * libgroff/font.cc: Handle everything after `--' as a comment
11798 * devps/*: Added comment delimiter inside devps font files.
11800 2000-01-28 Werner LEMBERG <wl@gnu.org>
11802 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11803 \fC...\fP (which now works as expected).
11805 * troff/troff.man: Fix typo.
11807 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11809 Completed the pass_filenames implementation in troff.
11811 * libdriver/input.cc: Will read the new `F' tcommand.
11812 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11813 * troff/input.cc: Use it.
11815 2000-01-26 Werner LEMBERG <wl@gnu.org>
11817 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11818 font will now be updated even if an invalid font is selected.
11820 2000-01-24 Werner LEMBERG <wl@gnu.org>
11822 * doc/homepage.ms: Updated for new tmac.arkup.
11824 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11826 * tmac/tmac.arkup: Cleanup.
11828 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11830 Removed obsolete .LINK macro completely.
11832 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11833 will be immediately appended to the second argument (to be used with
11834 punctuation, for example).
11836 Disabled .CDFTP macro temporarily for security reasons.
11838 * tmac/groff_markup.man: Complete revision for latest changes in
11839 tmac.arkup -- note that it does not yet format correctly with
11842 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11844 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11845 * devutf8/R.proto: Add mappings for wp, lh, rh.
11846 * devutf8/NOTES: Updated.
11848 2000-01-23 Werner LEMBERG <wl@gnu.org>
11850 * doc/groff.texinfo: Updated version/copyright info.
11852 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11854 Added support for two new directives in device descriptions:
11855 `pass_filenames' (to pass the input file name to the output device)
11856 and `use_charnames_in_special' (to support e.g. accented characters
11857 in the `X' request).
11859 * include/font.h, troff/charinfo.h: Declare it.
11861 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11863 * devhtml/DESC: Use it.
11865 * troff/input.cc: New function encoded_char.
11867 * troff/token.h: Add test for `specialness'.
11869 2000-01-21 Werner LEMBERG <wl@gnu.org>
11871 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11872 mistake from the list of files to be installed.
11874 2000-01-18 Werner LEMBERG <wl@gnu.org>
11876 * README: Added info how to apply patches.
11878 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11880 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11882 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11884 * troff/input.cc: Add support for troffrc-end.
11886 * tbl/main.cc: Altered to issue table-start and table-end special
11887 characters if using the html device.
11889 * devhtml/*: Modified font files to incorporate html encoding of
11892 * tmac/groff_markup.man: New file documenting tmac.arkup.
11894 * tmac/troffrc-end: New file. This is invoked after all user
11895 specified macros. Currently used by the html device to include
11896 tmac.html. Thus no need for users to specify -mhtml anymore.
11898 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11899 (MAN7): Add groff_markup.man.
11901 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11903 * tmac/troffrc: tmac.arkup will now be called for the html device.
11905 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11906 extra device specific information about fonts.
11908 * doc/homepage.ms: New file. It is an example how an HTML home page
11909 could look like with grohtml.
11911 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11913 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11915 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11918 * devutf8/NOTES: Updated.
11920 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11922 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11923 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11924 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11925 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11926 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11927 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11928 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11929 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11932 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11934 2000-01-12 Fabrizio Polacco <fab@prosa.it>
11936 grolj4: Paper size will be searched case-insensitively.
11938 * include/lib.h: Add check for strcasecmp().
11939 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11940 * configure.in: Check for strcasecmp().
11942 2000-01-11 Werner LEMBERG <wl@gnu.org>
11944 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11947 2000-01-10 Werner LEMBERG <wl@gnu.org>
11949 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11952 Add a new read-only register, `.Y', which contains the groff
11955 * troff/input.cc (init_input_requests): Define it.
11956 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11957 * doc/groff.texinfo, troff/troff.man: Document it.
11959 * libgroff/Makefile.sub (version.cc): Add definition of
11960 `Version_string[]', consisting of `<major>.<minor>.<revision>'
11961 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11962 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11963 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11964 troff/input.cc, pfbtops/pfbtops.c: Use it.
11966 2000-01-10 Fabrizio Polacco <fab@prosa.it>
11968 Add a revision scheme to the groff package.
11970 * REVISION: New file.
11971 * libgroff/Makefile.sub (version.cc): Use it to define
11972 `revision_string[]'.
11973 * grops/psrm.cc: Use revision_string (converted to an unsigned
11974 integer) in constructor of resource_manager.
11976 2000-01-10 Bruno Haible <haible@clisp.cons.org>
11978 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11980 * Makefile.in (DEVDIRS): Add devutf8.
11981 * grotty/tty.cc: Include device.h.
11982 (glyph): Change type of `code' to `unsigned int'.
11983 (tty_printer): New field is_utf8. Constructor takes device argument.
11984 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11985 (tty_printer::add_char): Change type of first arg to `unsigned int'.
11986 (tty_printer::put_char): New function.
11987 (tty_printer::end_page): Use put_char() instead of ::putchar().
11988 (make_printer): Pass device to tty_printer constructor.
11989 * nroff.sh: Determine default device by calling 'locale'. As a
11990 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11991 Recognize UTF-8 locales.
11992 * tmac/eqnrc: Recognize utf8 like latin1.
11993 * tmac/troffrc: Device utf8 needs tmac.tty.
11995 2000-01-07 Werner LEMBERG <wl@gnu.org>
11997 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11999 2000-01-07 Paul Eggert <eggert@twinsun.com>
12001 Add a new predefined writeable number register, `year',
12002 which contains the current year.
12004 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12005 * tmac/tmac.s: Use it.
12006 * troff/input.cc (init_registers): Initialize it.
12008 2000-01-06 Werner LEMBERG <wl@gnu.org>
12010 * PROBLEMS: Fixed typo.
12012 2000-01-04 Paul Eggert <eggert@twinsun.com>
12014 * PROBLEMS: Add Y2k advice for the yr number register.
12016 2000-01-03 Paul Eggert <eggert@twinsun.com>
12018 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12020 2000-01-02 Werner LEMBERG <wl@gnu.org>
12022 * tmac/tmac.arkup: Slight modification of macros to provide better
12023 appearance for non-HTML formats.
12025 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12027 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12028 does not automatically translate to malloc(n) on all OSes
12029 (e.g., SunOS) so do it explicitly. Also, check the returned
12032 2000-01-01 Werner LEMBERG <wl@gnu.org>
12034 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12036 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12037 expects this variable
12039 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12041 * doc/Makefile: Added instructions to create HTML and text
12042 versions of some files.
12044 1999-12-31 Werner LEMBERG <wl@gnu.org>
12046 * Updated INSTALL.gen.
12048 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12049 better resp. correctly with non-HTML devices.
12051 Version 1.15 released
12052 =====================
12054 1999-12-28 Werner LEMBERG <wl@gnu.org>
12056 * NEWS, VERSION: Changed to 1.15
12058 1999-12-27 Paul Eggert <eggert@twinsun.com>
12060 * nroff/nroff.man: -S is safer, not safe.
12062 * groff/groff.cc (main): Use `safer', not `safe', in variable
12063 names. This does not change the behavior.
12065 * troff/input.cc (main): Likewise.
12067 * nroff/nroff.sh: Likewise.
12069 * troff/input.cc (prepend_string): New function.
12070 (main): Prepend -msafer, so that we check macro libraries for
12073 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12075 Version 1.14 released
12076 =====================
12078 1999-12-26 Werner LEMBERG <wl@gnu.org>
12080 * NEWS, VERSION: Changed to 1.14.
12082 1999-12-24 Werner LEMBERG <wl@gnu.org>
12084 * refer/refer.cc: Fixing the last fix.
12086 Version 1.13 released
12087 =====================
12089 1999-12-23 Werner LEMBERG <wl@gnu.org>
12091 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12096 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12098 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12099 document conventions, the version number must be a real.
12101 Version 1.12.1 released
12102 =======================
12104 1999-12-22 Werner LEMBERG <wl@gnu.org>
12106 * VERSION: Changed to 1.12.1.
12108 1999-12-22 Alan Rooks <arooks@istar.ca>
12110 * refer/refer.cc (do_file): Slight modification to satisfy the
12111 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12114 1999-12-20 Werner LEMBERG <wl@gnu.org>
12116 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12119 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12120 list of unsafe requests.
12122 * pic/pic.man: Fixed a typo.
12124 * man/groff_out.man: Fixed a typo.
12126 1999-12-18 Werner LEMBERG <wl@gnu.org>
12128 * Makefile.in: Doc fixes.
12130 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12132 * groff/groff.cc: Missing `U' option added to getopt().
12134 * troff/troff.man: Missing `U' option added to synopsis.
12136 Version 1.12 released
12137 =====================
12139 1999-12-14 Werner LEMBERG <wl@gnu.org>
12141 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12144 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12145 with the more appropriate terms `safer' and `unsafe'.
12147 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12148 sys_nerr and sys_errlist[].
12150 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12152 * pic/pic.y, pic/pic.cc: Added check for fmod().
12154 1999-12-13 Werner LEMBERG <wl@gnu.org>
12156 * VERSION: Changed to 1.12.
12158 Here some patches from various sources; most of them taken from
12159 the Debian distribution.
12161 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12162 tmac/Makefile.sub: New files copied directly from the NetBSD
12163 distribution. Probably, some additional adaptation later on is
12166 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12167 of unsafe requests.
12169 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12170 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12171 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12172 (`-S') is now the default.
12174 * README, NEWS: Updated.
12176 1999-12-09 Werner LEMBERG <wl@gnu.org>
12178 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12180 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12182 1999-12-06 Werner LEMBERG <wl@gnu.org>
12184 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12185 grief than relief today. Additionally, it is against the GNU
12188 * configure: Recreated.
12190 1999-12-05 Werner LEMBERG <wl@gnu.org>
12192 * configure.in: Added GROFF_LIBM.
12194 * configure: Recreated.
12196 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12199 * Makefile.in: Added definition of $(LIBM).
12201 * Makefile.comm (LIBM): Removed.
12203 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12205 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12207 * doc/Makefile: Added rule for generation pic.html.
12209 (clean): Files produced by grohtml will be removed also.
12211 * doc/pic.ms: Small fix.
12213 * tmac/tmac.html: Fixed suppression of headers.
12215 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12217 * tmac/tmac.html: Fixing horizontal arrows.
12219 Turning off hyphenation.
12221 * tmac/tmac.an: Improved support for grohtml; better indentation,
12222 no footers/headers.
12224 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12226 * tmac/tmac.arkup: Added CDFTP macro
12228 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12231 * tmac/troffrc: Some additions for HTML stuff.
12233 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12235 * tmac/tmac.html: Small changes.
12237 1999-09-26 Werner LEMBERG <wl@gnu.org>
12239 * doc/groff.texinfo: Minor fixes.
12241 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12243 * devhtml/TR: Changed spacewidth to 3.
12245 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12247 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12249 * tmac/tmac.arkup: New file.
12251 * grohtml/ChangeLog: New file.
12253 1999-09-16 Werner LEMBERG <wl@gnu.org>
12255 * doc/groff.texinfo (Common Features): Added Copying chapter.
12256 Changed format to @smallbook.
12258 1999-09-15 Werner LEMBERG <wl@gnu.org>
12260 * NEWS: Added info about groff.texinfo.
12262 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12265 1999-09-14 Werner LEMBERG <wl@gnu.org>
12267 * groff/groff.man: More updates.
12269 1999-09-13 Werner LEMBERG <wl@gnu.org>
12271 * doc/groff.texinfo: New file. This manual is still very
12272 rudimentary. It has been originally contributed by Trent
12273 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12276 * INSTALL: Added information about the `doc' subdir
12278 * troff/troff.man: Minor fixes.
12280 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12283 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12285 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12286 also, otherwise it is included itself in another call of `make
12289 * groff/groff.cc (synopsis): Removed superfluous space.
12291 * PROJECTS, PROBLEMS, NEWS: Updated.
12293 * VERSION: Updated to 1.12beta.
12295 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12297 * README: Updated: Included documentation about CVS repository,
12298 mailing lists, and daily snapshots.
12300 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12302 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12304 * tmac/tmac.an: If the tag didn't fit into the space that the
12305 macro `TP' specifies, the rest of the tag went into the space for
12308 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12310 * grolj4/lj4.cc: Added duplex printing (option `-d').
12312 * grolj4/grolj4.man: Document duplex printing.
12314 1999-09-12 Werner LEMBERG <wl@gnu.org>
12316 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12317 non-GNUish sed programs.
12319 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12322 * configure.in (LIBS): Added `-lc'
12324 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12326 * pic/tex.cc (solid_arc): Casting M_PI to double.
12328 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12330 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12331 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12332 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12334 * groff/groff_man.man: New file. This manual page was originally
12335 written for the Debian GNU/Linux system by Susan G. Kleinmann
12338 * eqn/list.cc (list_box::compute_metrics,
12339 list_box::compute_sublist_width): Removed variable declaration to
12340 avoid shadowing warnings.
12342 * grops/psrm.cc (resource_manager::process_file): Ditto.
12344 * tfmtodit/tfmtodit.cc (main): Ditto.
12346 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12347 to avoid shadowing warnings.
12349 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12350 shadowing loop variable.
12352 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12354 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12356 New grohtml frontend to convert groff input to html.
12358 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12360 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12362 * tmac/eqnrc: Added html device.
12364 * tmac/tmac.html: New file.
12366 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12367 (troff_output::start_picture, troff_output::finish_picture),
12368 tbl/main.cc (process_input_file):
12369 Surrounded output with `graphics_start' and `graphics_end' so that
12370 the html driver can identify non-text portions.
12372 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12373 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12374 grotty/tty.ps (tty_printer::set_char): Additional parameter
12377 * include/printer.h: Class printer: New function
12378 set_char_and_width; new variables (is_char_named, is_named_set,
12379 named_command, named_char_s, named_char_n) to hold information
12380 about named characters -- needed by the html driver.
12382 * libdriver/printer.cc (printer::set_ascii_char,
12383 printer::set_special_char): Use set_char_and_width.
12385 * devhtml/*: New device files for html driver.
12387 * grohtml/*: New driver grohtml.
12389 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12391 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12394 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12396 * libgroff/string.cc (search): Small fix to test against NULL
12399 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12401 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12402 \b'abc') were stacked in reverse order when processed in a
12405 * troff/node.h: Added `*last' to struct `node' to make the above
12408 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12409 The default scale for the 'f' and 't' graphics functions were 'm'
12410 rather than 'u' (i.e., no scaling).
12412 1999-09-11 Peter Miller <peterm@jna.com.au>
12414 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12415 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12416 defining include paths.
12418 * soelim/soelim.cc (include_path_append): New function.
12420 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12422 * tbl/main.cc (process_options): Unix (at least Documenter's
12423 Workbench) tbl allows arbitrary non-alpha characters between
12426 1999-09-11 Paul Eggert <eggert@twinsun.com>
12428 Y2k fixes. Don't assume that the current year precedes 2000.
12430 * doc/meref.me: Add \n(y2, \n(y4.
12432 * tmac/doc-common (Yr): New number register.
12433 (Dd): Don't assume current year precedes 2000.
12435 * tmac/tmac.e (td): Likewise.
12436 (y2, y4): New number registers.
12438 * pic/pic.man: Update reference for pic paper to May, 1991
12441 1999-09-11 Werner LEMBERG <wl@gnu.org>
12443 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12444 Removed quotation marks which prevented correct expansion of
12447 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12449 1999-09-10 Werner LEMBERG <wl@gnu.org>
12451 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12454 * Removed configure.old.
12456 1999-08-31 Werner LEMBERG <wl@gnu.org>
12458 * VERSION: Updated to 1.11.1
12460 1999-05-27 Werner LEMBERG <wl@gnu.org>
12462 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12464 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12465 added quotations around $(tmac_wrap) to avoid syntax error if
12468 * configure: Newly generated using autoconf 2.13.
12470 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12472 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12474 * README, PROJECTS, NEWS, INSTALL, VERSION,
12475 doc/Makefile. doc/pic.ms, groff/groff.man:
12476 Prepare for 1.11 release. No code changes.
12477 Documentation for pic added (doc/pic.ms).
12479 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12481 * Version 1.10 released.
12483 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12485 * afmtodit/afmtodit.pl: Avoid comment on first line.
12487 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12489 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12490 * configure.in: Call it.
12492 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12493 (distfiles): Doesn't depend on config.log or config.cache.
12495 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12497 * grog/grog.sh: Use print "" rather than print in END rule.
12499 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12501 * tbl/main.cc (process_data): Don't give error for excess data
12502 entries that are comments.
12504 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12506 * tbl/main.cc (process_data): Fix case where new for-scope rules
12507 silently change meaning of code.
12509 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12511 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12512 of non-zero hyphenation codes.
12514 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12516 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12518 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12520 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12522 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12524 * tmac/tmac.andoc: Make it work in compatibility mode.
12526 * refer/token.h (token_info::is_range_sep): New function.
12527 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12528 * refer/ref.cc (reference::output): More sophisticated check for
12531 * devps/prologue.ps (MANUAL): New procedure.
12532 * grops/ps.cc (main): New -m option.
12533 (usage): Include -m.
12534 (ps_printer::~ps_printer): Implement -m.
12536 * aclocal.m4 (GROFF_G): New macro.
12537 * configure.in: Call it.
12538 * Makefile.in (g): Provided by configure.
12540 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12542 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12545 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12546 (tmac_m, tmac_s): Deleted.
12547 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12548 tmac_s_prefix): New variables.
12549 (MDEFINES): Change accordingly.
12550 * Makefile.comm (.man.n): Use new TMAC_* variables.
12551 * configure.in (GROFF_TMAC): Call.
12552 * aclocal.m4 (GROFF_TMAC): Define.
12553 * tmac/Makefile.sub (stamp_wrap): New target.
12554 (install_data, uninstall_sub): Handle macro wrapping.
12556 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12558 * tbl/main.cc (main): Ignore -T option.
12560 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12562 * devlj4/generate/special.map: Add definition of \(nb.
12564 * tmac/tmac.dvi: Add definition of \(nb.
12566 * troff/dictionary.c (dictionary::dictionary): association::v gets
12567 initialized by association::association.
12569 * tmac/Makefile.sub: Avoid using temporary files when installing.
12571 * troff/env.cc (environment::set_font): Make bad font number a
12574 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12576 * Makefile.in (datadir): Use share rather than lib.
12578 * groff/groff.cc (basename): Rename to xbasename.
12580 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12582 * Makefile (CCLIBS): Don't use.
12583 * Makefile.ccpg: Likewise.
12585 * acgroff.m4: Rename to...
12586 * aclocal.m4: Modify extensively for autoconf 2.
12587 * configure.in: Likewise.
12588 * Makefile.in: Likewise.
12590 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12592 (xstrsignal): Check for definition of NSIG. Conditionalize
12593 on SYS_SIGLIST_DECLARED. Make return type const.
12595 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12597 * troff/input.cc (interpolate_macro): Rephrase missing space
12600 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12602 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12603 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12604 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12605 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12606 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12607 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12608 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12609 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12610 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12611 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12612 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12615 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12617 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12619 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12621 (macro_iterator::macro_iterator): Add additional argument.
12623 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12625 * troff/div.cc (vertical_size::vertical_size): In place of integer
12626 specifying line spacing use cunits specifying post vertical
12628 (macro_diversion::output, top_level_diversion::output): Likewise.
12629 * troff/div.h: Change declarations accordingly.
12630 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12632 (pending_output_line::pending_output_line,
12633 pending_output_line::output, environment::output,
12634 environment::output_line, environment::output_title,
12635 environment::hyphenate_line): In place of
12636 integer specifying line spacing use cunits specifying post vertical
12638 (environment::environment): Add post_vertical_spacing and
12639 prev_post_vertical_spacing arguments.
12640 (environment::get_post_vertical_spacing): New function.
12641 (environment::total_post_vertical_spacing): New function.
12642 (environment::post_vertical_spacing): New function.
12643 (init_env_requests): Initialize pvs request and .pvs register.
12644 * troff/env.h: Change declarations.
12646 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12648 * tmac/tmac.pspic: Immediately remove the temporary file.
12650 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12652 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12653 height is specified.
12655 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12657 * tbl/table.c (struct vertical rule, class table_entry): Use int
12658 not short for start_row and end_row.
12660 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12662 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12664 (diverted_space_node::reread, process_input_stack): Call
12665 trapping_blank_line() rather than blank_line().
12666 (init_input_requests): Bind "blm" to blank_line_macro().
12668 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12670 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12672 * troff/env.cc (environment::possibly_break_line): Require that
12673 width total excluding width of final space node be greater than
12674 the target text length.
12676 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12678 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12680 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12682 * troff/node.cc (charinfo_node): New class.
12683 (glyph_node, composite_node): Derive from charinfo_node. Change
12684 member functions accordingly.
12686 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12688 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12690 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12692 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12694 * devps/generate/textmap (notsubset): Add.
12696 * tmac/tmac.a4: New file.
12698 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12700 * pic/main.cc (had_parse_error): New variable.
12701 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12703 (main): Return 1 if had_parse_error is true.
12705 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12707 * grolj4/lj4.cc (main): Avoid use of strtoul.
12709 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12711 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12712 iso_8859_1 or $LESSCHARSET is latin1.
12714 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12716 * hpftodit: New directory.
12717 * Makefile.in (CCPROGDIRS): Add hpftodit.
12718 * devlj4/generate: New directory.
12720 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12722 * configure.in: Don't use AC_VFORK.
12723 * groff/pipeline.c (run_pipeline): Use fork() always.
12725 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12727 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12729 * Makefile.in (CCPROGDIRS): Add grolj4.
12730 (DEVDIRS): Add devlj4.
12731 * grolj4, devlj4: New directories.
12732 * tmac/troffrc: Handle lj4.
12733 * tmac/tmac.lj4: New file.
12735 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12737 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12739 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12741 * troff/input.cc (do_if_request): At end of second string, switch
12742 environments before getting next token.
12744 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12746 * devps/psstrip.sed: Split rule that strips whitespace on either
12747 side of delimiters.
12749 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12751 * troff/node.h (font_family::make_definition): Add return value to
12752 declaration. * troff/symbol.h (symbol::operator==,
12753 symbol::operator!=): Likewise.
12755 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12757 * groff/groff.cc (main, help, synopsis): Handle -S.
12758 (possible_command::insert_arg): New function.
12760 * tmac/tmac.safer: New file.
12761 * tmac/msafer.man: New file.
12762 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12764 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12766 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12767 * pic/pic.y (placeless_element): Avoid unsafe operations if
12768 `safer_flag' is set.
12769 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12771 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12773 * eqn/lex.cc (get_token): Put call to add_context() in block to
12774 work around Sun C++ 4.0 bug.
12776 * include/stringclass.h (operator +): Use ?: instead of `if' to
12777 work around Sun C++ 4.0 bug.
12779 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12781 * tbl/main.cc (process_format): Accept - as a synonym for the _
12784 * libbib/index.cc (minus_one): Don't declare as const.
12786 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12788 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12790 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12792 * troff/input.cc (write_macro_request): New function.
12793 (init_input_requests): Bind write_macro_request to writem.
12795 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12797 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12800 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12802 * tmac/tmac.s (@TS): Renamed from TS.
12803 (TS): Call LP then TS again.
12804 (cov*ab-init): Alias @TS to TS.
12806 * tmac/tmac.s: Allow QP or RS to initialize.
12808 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12809 Move initializations of PS and LL here.
12810 (par@init): Don't initialize HY. Avoid changing environment 0.
12811 (par*env-init): Don't all par@reset.
12813 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12815 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12817 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12819 * Makefile.in (MDEFINES): Add LDFLAGS.
12820 (LDFLAGS): Add definition line.
12822 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12824 * troff/input.cc (get_optional_char): Split off error check into...
12825 (check_missing_character): New function.
12826 * troff/token.h: Declare it.
12827 * troff/env.cc (margin_character): Don't call get_optional_char.
12828 Only call tok.next() after making the node.
12830 * include/lib.h (getopt): Make 2nd argument char *const *.
12832 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12834 * nroff/conftest.sh: Deleted.
12836 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12838 * pic/make-dos-dist: Deleted.
12840 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12842 * devps/psstrip.sed: Strip comments before stripping trailing
12845 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12847 * Version 1.09 released.
12849 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12851 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12853 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12855 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12857 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12859 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12860 about returning without a value.
12862 * troff/charinfo.h (charinfo::get_special_translation): Cast
12863 TRANSLATE_NONE to int.
12865 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12866 test. Fix test so that it works with n unsigned.
12868 * pic/pic.y (defaults_table): Fully bracket initializer.
12869 * pic/lex.cc (lookup_keyword): Likewise.
12870 * eqn/lex.cc (token_table, def_table): Likewise.
12871 * eqn/box.cc (param_table): Likewise.
12872 * troff/input.cc (warning_table): Likewise.
12873 * libgroff/font.cc (table): Likewise.
12874 * grops/ps.cc (ps_printer::special): Likewise.
12875 * grops/psrm.cc (resource_manager::process_file): Likewise.
12876 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12877 * refer/command.cc (command_table): Likewise.
12878 * addftinfo/addftinfo.cc (param_table): Likewise.
12880 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12881 about temp's being unused.
12882 (unused): New function.
12884 * groff/pipeline.cc: Declare c_fatal.
12886 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12889 * libbib/index.cc (index_search_item::load): Prevent compiler
12890 warnings about fd_closer's being unused.
12891 (unused): New function.
12893 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12895 * troff/input.cc (copy_mode_error): Make `prefix' static.
12898 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12900 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12901 HAVE_CC_OSFCN_H and modify accordingly.
12903 * troff/input.cc (init_charset_table): radicalex overlaps
12906 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12907 udodo!hans@relay.NL.net).
12908 * groff/configure.in: Call it.
12910 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12911 * groff/configure.in: Call it.
12912 * include/lib.h: Conditionalize declaration of pclose.
12914 * troff/div.cc (last_page_number): New global variable.
12915 (top_level_diversion::begin_page): Exit if we just printed the
12917 * troff/div.h (last_page_number): Declare it.
12918 * troff/input.cc (parse_output_page_list): Set last_page_number.
12920 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12921 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12922 tmac/tmac.X: Likewise.
12923 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12924 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12926 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
12928 * tmac/doc-ditroff (hK): Remove groff specific code which
12929 prevented page-breaks between separate manual entries. If this is
12930 the first page, don't set the page number to 1.
12932 * acgroff.m4 (GROFF_POSIX): New macro.
12933 * configure.in: Use it.
12935 * troff/node.cc (class real_output_file,
12936 real_output_file::real_output_file,
12937 real_output_file::~real_output_file): Conditionalize use of
12938 popen/pclose on POPEN_MISSING.
12939 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12940 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12941 (pipe_source): Similarily.
12943 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12945 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12946 presence of declarations by trying to compile example with
12947 conflicting declarations. (gcc only gives a warning for missing
12950 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
12952 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12953 (from Ulrich Lauther).
12955 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
12957 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12959 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
12961 * indxbib/indxbib.cc (write_hash_table): Add code for case where
12962 pointers and ints have different sizes.
12964 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
12966 * tmac/tmac.s (par*env-init): Call par@reset.
12968 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
12970 * tmac/tmac.s (@IP): Switch to a new environment when diverting
12972 (par*push-tag-env, par*pop-tag-env): New macros.
12974 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
12976 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12977 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
12979 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12980 comment. Include <time.h>.
12982 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
12984 * grops/ps.cc (is_small_h, is_small_v): Deleted.
12985 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12988 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
12990 * troff/input.cc (read_request): Only print a prompt if reading
12991 from the terminal. Also clearerr on EOF if reading from the
12992 terminal. Declare isatty.
12994 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
12996 * refer/label.y: Rename map_t to map_func and extractor_t to
12999 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13001 * include/assert.h: Don't use volatile.
13002 * libgroff/assert.cc: Likewise.
13004 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13006 * troff/input.cc (abort_request): Look at character in tok before
13007 calling get_copy().
13009 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13011 * troff/troff.h (NO_RETURN): Deleted.
13012 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13013 * troff/input.cc (exit_troff): Likewise
13015 * Makefile.in: Remove `Making ...' messages since GNU make now
13018 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13020 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13022 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13023 to constant 1 inch.
13025 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13027 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13029 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13031 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13032 MARK_REG if there was no left delimiter.
13034 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13036 * pic/troff.cc (troff_output::text): Set line thickness to
13037 relative before outputting text.
13039 * tmac/tmac.e (@k): Don't zero ?T.
13042 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13044 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13046 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13048 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13051 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13053 * troff/input.cc (ignoring): New variable.
13054 (ignore): Set ignoring during call to do_define_macro.
13055 (do_define_macro): Clear ignoring before interpolating terminating
13057 (copy_mode_error): New function.
13058 (get_char_for_escape_name, read_long_escape_name,
13059 interpolate_arg): Use copy_mode_error.
13060 (warning_table): Add WARN_IG.
13061 * troff/troff.h (WARN_IG): Declare.
13062 (WARN_TOTAL): Change accordingly.
13064 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13065 * groff/groff.cc (strsignal): Delete declaration.
13067 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13069 * troff/div.cc (page_offset): Use 'm' as default scaling.
13071 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13073 * nroff/nroff.sh: Ignore -u.
13075 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13077 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13079 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13081 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13083 (B2): With -Tascii, leave additional vertical space before
13084 and after. Ensure that the left and right indent is restored to
13085 what it was even if the point size changes. Don't call
13086 par@finish. Change the indent, line length and title length
13087 directly. With -Tascii, make the width of the box 1n less.
13088 (B1): Remember 1n at the current point size. Don't call
13089 par@reset. Change the indent, line length and title length
13090 directly. Ensure that the temporary indent is preserved.
13091 (par*box-mark-top): Turn off no spacing mode.
13093 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13095 * Makefile.in (dist): Use .gz suffix.
13097 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13099 * troff/input.cc (main): Add return 0.
13100 * pic/main.cc (main): Use return instead of exit.
13101 * tbl/main.cc (main): Likewise.
13102 * eqn/main.cc (main): Likewise.
13103 * grops/ps.cc (main): Likewise.
13104 * grotty/tty.cc (main): Likewise.
13105 * groff/groff.cc (main): Likewise.
13106 * grodvi/dvi.cc (main): Likewise.
13107 * refer/refer.cc (main): Likewise.
13108 * indxbib/indxbib.cc (main): Likewise.
13109 * lkbib/lkbib.cc (main): Likewise.
13110 * soelim/soelim.cc (main): Likewise.
13111 * addftinfo/addftinfo.cc (main): Likewise.
13112 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13113 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13115 * troff/token.h (process_input_stack): Don't declare as static.
13116 * troff/input.cc: Likewise.
13118 * troff/node.c (invalidate_fontno): Make it a static member of
13119 class font_family. Change callers.
13120 * troff/node.c: Change declaration.
13122 * tbl/main.cc (struct input_entry_format): Add explicit public
13124 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13125 struct double_hline_stuff): Likewise.
13126 * tbl/table.h (struct entry_format): Likewise.
13127 * pic/object.h (struct saved_state): Likewise.
13129 * include/stringclass.h: Add forward declarations of friend
13130 functions that are later declared as inline. Don't include inline
13131 specifier in friend declaration.
13133 * libgroff/lib.h: Declare popen and pclose.
13134 * acgroff.m4 (GROFF_POPEN): New macro.
13135 * configure.in: Call it.
13137 * include/lib.h (PI): New constant. Undef first if necessary.
13138 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13139 * grops/ps.cc (degrees, radians): Likewise.
13140 * libgroff/font.cc (font::get_skew): Likewise.
13142 * grops/ps.cc (is_ascii): New function.
13143 (ps_output::put_string): Use is_ascii. Use csprint rather than
13145 (ps_printer::define_encoding): Use csspace.
13146 * libgroff/strtol.c (ISASCII): New macro.
13147 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13148 Use ISASCII rather than isascii.
13149 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13150 * libgroff/cset.cc: Likewise.
13151 * libdriver/input.cc: Include cset.h.
13152 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13155 * refer/refer.cc (main): Use %ld rather than %d for longs.
13157 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13160 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13162 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13164 * troff/input.cc (hyphenation_code): Skip white space between
13167 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13169 * tbl/table.h (table::entry_list_tailp): New member.
13170 (table::table): Initialize it.
13171 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13174 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13176 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13177 with negative horizontal positions. Remove casts of glyph::hpos to
13179 (USHRT_MAX): Delete definition.
13180 (SHRT_MAX, SHRT_MIN): New definitions.
13181 (glyph::hpos): Change type to short.
13182 (tty_printer::end_page): Output multiple backspaces if necessary.
13183 Remove casts of glyph::hpos to int.
13185 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13187 * tmac/tmac.s (@RT): New definition.
13189 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13191 * refer/refer.cc (do_file): Make sure current_filename is set when
13194 * pic/common.cc (common_output::dot_line): Handle zero length
13197 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13199 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13200 (par@init): Initialize \n[HY].
13202 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13204 * troff/dictionary.cc (dictionary::remove): Continue when
13207 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13209 * Makefile.com (.y.cc): Avoid ending up with two versions of
13212 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13214 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13215 (\(,C): Likewise. Also fix typo.
13217 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13219 * lib.h: Delete extraneous semi-colon.
13221 * Add pso request: `so' from a pipe.
13222 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13223 (file_iterator::close): New function.
13224 (file_iterator::~file_iterator, file_iterator::next_file): Use
13225 file_iterator::close.
13226 (file_iterator::backtrace): Say `process' rather than `file' when
13227 the stream is popened.
13228 (pipe_source): New function.
13229 (init_input_requests): Bind ".pso" to pipe_source.
13231 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13233 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13235 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13236 digits in lower case.
13238 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13240 * Version 1.08 released.
13242 * Makefile.in (dist): Insert || true after ln -s commands that
13245 * mm: Update to mm 1.16.
13247 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13248 * configure.in: Call GROFF_CSH_HACK. Substitute for
13250 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13252 * nroff/Makefile.sub (nroff): New target.
13253 (install_data): Install nroff.
13254 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13255 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13257 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13259 * eqn/Makefile.sub (neqn): Add chmod +x.
13261 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13263 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13265 * troff/input.cc (string_iterator::string_iterator()): Initialize
13268 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13270 * troff/div.cc (macro_diversion::space,
13271 top_level_diversion::space): Don't set high_water_mark.
13272 (macro_diversion::output, top_level_diversion::output): Don't
13273 include post line space in high water mark.
13275 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13277 * eqn/eqn.y: Don't define YYDEBUG.
13278 * pic/pic.y: Likewise.
13280 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13282 * tmac/tmac.e ([3): Add space after comma following editors.
13283 Change double spaces to single spaces.
13284 ([4): Change double spaces to single spaces.
13286 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13287 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13288 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13289 after %!PS-Adobe- (for Newsprint).
13291 * troff/div.cc (top_level_diversion::begin_page): When
13292 before_first_page is 1, set page_number to 1.
13294 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13296 * eqn/box.cc (box::top_level): Protect equation with \&.
13298 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13300 * groff/groff.cc (possible_command::set_name): Delete old name.
13302 * groff/groff.cc (possible_command::~possible_command): Use
13305 * troff/node.cc (troff_output_file::begun_page): New member.
13306 (troff_output_file::troff_output_file): Initialize it.
13307 (troff_output_file::really_begin_page): Only output V command if a
13308 page has been begun.
13310 * pic/pic.y (placeless_element): Delete argument to PRINT after
13313 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13315 * Make wrapman work.
13316 * troff/div.h (class top_level_diversion): Replace
13317 first_page_begun by before_first_page (with opposite sense).
13318 * Change first_page_begun to before_first_page inverting sense.
13319 * troff/div.cc (class nl_reg): New class.
13320 (init_div_requests): Use class nl_reg for \n(nl.
13321 (top_level_diversion::begin_page): Don't call
13322 output_file::begin_page if before_first_page is 2;
13323 reset before_first_page afterwards. If have_next_page_number is
13324 false, then always increment page_number.
13325 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13326 Restore compatibility mode after loading, and then disable
13327 compatibility mode in TH.
13329 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13331 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13333 * troff/node.h (output_file::trailer): Declare.
13334 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13335 * troff/node.cc (output_file::trailer): New function.
13336 (troff_output_file::~troff_output_file): Move most code into...
13337 (troff_output_file::trailer): New function.
13338 (class troff_output_file): Delete page_length member. Declare
13340 (troff_output_file::really_begin_page): Use current page length
13341 for final V command.
13343 * tbl/main.cc (struct options): New decimal_point_char member.
13344 (options::options): Initialize this.
13345 (process_options): Implement decimalpoint option.
13346 (process_data): Pass decimal_point_char option to table::table.
13347 * tbl/table.h (class table): New decimal_point_char member.
13348 (table::table): Add additional argument.
13349 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13350 second argument specifying decimal point character. Use this
13352 (table::table): Initialize decimal_point_char.
13353 (table::add_entry): Change call to find_dot.
13355 * troff/input.cc (get_copy, token::next): Implement \V.
13356 (interpolate_environment_variable): New function.
13358 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13360 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13361 * pic/pic.y: Likewise.
13363 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13365 * refer/ref.cc (reference::insert_field, reference::delete_field):
13367 * troff/number.cc (parse_term): Likewise.
13369 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13370 * configure.in: Use GROFF_PROG_YACC.
13372 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13374 * Makefile.in (OPTIMIZE): New define.
13375 (DEBUG): Empty by default.
13376 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13378 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13379 (GROFF_ARRAY_DELETE): Likewise.
13380 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13382 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13384 * devps/psstrip.sed: Use different delimiter on last line (so that
13385 it works with BSD 4.4 sed.)
13387 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13389 * devps/psstrip.sed: Delete comments.
13391 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13392 optind, opterr, optarg.
13393 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13396 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13398 * Makefile.in (check): Dummy target.
13400 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13402 * Version 1.07 released.
13404 * Integrate mm 1.11.
13406 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13407 where start_col was meant.
13409 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13411 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13413 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13415 * troff/input.cc (token::next): Make \z\o'...' and similar things
13418 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13420 (environment): Add margin_character_flags member.
13421 * env.cc (environment::environment(symbol),
13422 environment::environment(const environment *): Initialize
13423 margin_character_flags.
13424 (margin_character): Rewrite.
13425 (environment::output_line): Add a margin character if
13426 margin_character_flags is non-zero. Turn off the
13427 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13428 zero, use margin_character_node without copying and then set
13429 margin_character_node to 0.
13431 * devps/DESC.in: Change minimum size to 1000.
13433 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13435 * troff/symbol.h (symbol::hash): Change return type to unsigned
13437 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13440 * test-groff: Use -r rather than -x.
13442 * grops/psfig.diff: Include in distribution again.
13444 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13446 * Makefile.in (dist): Use gzip.
13448 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13450 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13451 unistd.h as well as in stdlib.h.
13452 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13453 defined; otherwise include <sys/types.h> and <unistd.h> if
13454 UNISTD_H_DECLARES_GETOPT is defined.
13456 * configure.in: use builtin(include, ... rather than include(...
13457 * configure: Regenerate with autoconf 1.3.
13459 * libdriver/print.cc (printer::adjust_arc_center): Use new
13460 algorithm suggested by Andy Fyfe.
13462 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13463 * include/printer.h: Declare this.
13464 * grops/ps.cc (ps_printer::draw): Use it.
13465 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13467 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13469 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13471 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13473 * eqn/main.cc (main): Handle "eqn -".
13475 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13477 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13479 * mm: Integrate version 1.08.
13481 * pic/troff.cc (troff_output::finish_picture): Set
13482 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13483 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13484 if it's not defined. Check whether the register is non-zero rather
13485 than whether it's not defined.
13486 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13488 * indxbib/indxbib.cc: Move all signal handling into...
13489 * indxbib/signal.c: New file.
13490 * configure.in: Call AC_RETSIGTYPE.
13492 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13493 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13494 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13496 * troff/input.cc (token::token, token::operator=): Work round SGI
13498 * pic/object.cc (position::position): Likewise.
13500 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13502 * pic/pic.h: Move declaration of hypot().
13504 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13506 * pic/pic.h: Declare hypot().
13508 * pic/pic.h: Define M_PI if necessary.
13510 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13512 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13515 * devps/prologue.ps (RE): Handle the possibility that the old font
13516 doesn't have a FontName entry.
13518 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13520 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13521 (@C): Use @fam not fam.
13523 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13525 * lookbib/lookbib.cc (main): Change type of start to const char *.
13526 * lkbib/lkbib.cc (main): Likewise.
13528 * eqn/lex.cc (definition::definition): Don't use member
13529 initializer syntax for members of anonymous unions.
13531 * troff/input.cc (input_stack::backtrace): Change type of to const
13534 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13536 * include/stringclass.h (class string): Declare inline friend
13537 functions as inline in class declaration.
13538 * troff/hvunits.h (class hunits, class vunits): Likewise.
13539 * include/refid.h (class reference_id): Likewise
13540 * troff/troff.h (points_to_units(units), scale(units, double)):
13541 Delete declarations.
13542 * libdriver/input.cc (get_char): Delete declaration.
13543 * include/lib.h: Change 2nd argument of getopt from const char **
13545 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13546 char **' before assigning to a `const char **'.
13547 * tbl/table.cc: Delete extra declarations of prints().
13549 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13551 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13552 char **' before assigning to a `const char **'.
13554 * libgroff/errarg.cc (errarg::errarg): Don't use member
13555 initializer syntax for members of anonymous unions.
13557 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13559 * mm: Integrate version 1.07.
13561 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13563 * troff/input.c (translate2): Rename to
13564 (translate_no_transparent).
13565 (init_input_requests): Rename tr2 to trnt.
13567 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13569 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13570 (charinfo::set_translation, charinfo::set_special_translation):
13571 Add second argument that specifies value for
13572 transparent_translate.
13573 (charinfo::get_translation, charinfo::get_special_translation):
13574 Add optional second argument that specifies whether translation is
13575 being used for transparent throughput.
13576 * troff/input.cc (charinfo::set_translation,
13577 charinfo::set_special_translation): Handle second argument.
13578 (charinfo::charinfo): Initialize transparent_translate.
13579 (translate): Split main part off into
13580 (do_translate): New function. Pass argument saying whether
13581 translation applies to transparent throughput.
13582 (translate2): New request.
13583 (init_input_requests): Bind translate2 to `tr2'.
13585 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13587 * tbl/table.h (class table): Add `nokeep' flag.
13588 * tbl/main.cc (process_options): Handle `nokeep' option.
13589 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13590 table::do_bottom): Don't output keep/release macro definitions or
13591 calls when `nokeep' option has been specified.
13593 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13595 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13597 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13599 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13600 block_entry::divert, alphabetic_block_entry::divert): Add extra
13601 argument giving column separation.
13602 (table::compute_widths): Pass column separation to
13603 table_entry::divert().
13604 (block_entry::do_divert): If an entry spans multiple columns and a
13605 minimumum width has been specified for each column, then set the
13606 line length to the sum of the widths (plus possibly the column
13609 * troff/input.cc (set_escape_char): Don't set the escape_char
13610 until after calling has_arg().
13612 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13614 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13617 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13618 in case where r > nrows - 1.
13620 * tbl/table.cc (BODY_HEIGHT): Deleted.
13621 (LINE_SEP): New definition.
13622 (table::print_single_hline, table::print_double_hline,
13623 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13624 table::do_row, table::do_top): Use LINE_SEP space before a line
13625 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13627 * tbl/table.cc (text_entry::print_contents): New function.
13628 (text_string_name, right_text_string_name): Deleted.
13629 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13630 (simple_text_entry::do_width, numeric_text_entry::do_width,
13631 alphabetic_text_entry::do_width): Don't store the contents of the
13633 (left_text_entry::simple_print, right_text_entry::simple_print,
13634 center_text_entry::simple_print,
13635 alphabetic_text_entry::simple_print,
13636 numeric_text_entry::simple_print): Print the entry directly
13637 instead of using the stored string.
13639 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13641 * devps/Makefile: Strip PostScript files.
13642 * devps/prologue: Rename to...
13643 * devps/prologue.ps.
13644 * devps/psstrip.sed: New file.
13645 * devps/download: Use .pfa rather than .ps for installed versions
13648 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13650 * troff/env.cc (input_trap): Give a warning if the argument is out
13653 * troff/env.cc (adjust): Treat negative argument as missing. Round
13654 argument > 5 down to 5.
13656 * troff/env.cc (center, right_justify): Make negative argument zero.
13658 * troff/div.cc (page_offset, vertical_position_traps): Treat
13659 invalid argument as missing.
13660 * troff/env.cc (line_spacing, line_length, title_length, indent,
13661 underline, hyphen_line_max_request, control_char,
13662 no_break_control_char, widow_control_request, adjust, input_trap,
13663 point_size): Likewise.
13664 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13665 constant_space): Likewise.
13666 * troff/input.cc (compatible, shift, warn_request,
13667 set_escape_char): Likewise.
13669 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13670 * tbl/table.cc (table::table): Likewise.
13672 * Makefile.dev (install_dev): depends on $(DEVFILES).
13674 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13676 * devX75, devX75-12, devX100, devX100-12: New directories.
13677 * Makefile.in: Add these to DEVDIRS.
13679 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13680 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13681 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13682 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13684 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13685 (uninstall): New target.
13686 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13687 uninstall_prog, uninstall_dev): New targets.
13689 * troff/div.cc (return_request): Treat an invalid argument as
13692 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13694 * tmac/tmac.e ((f): Set up the environment even when there's a
13695 current diversion. Transperently throughput a call to @N.
13698 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13700 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13701 up to vertical resolution.
13703 * tbl/table.cc (table::do_row): Change row number after printing
13706 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13708 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13710 * Rename CHANGES to NEWS.
13712 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13714 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13716 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13718 * man.ultrix: Removed.
13720 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13722 * Makefile.comm (extraclean): Delete files whose names begin with
13725 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13728 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13730 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13731 * troff/div.cc (page_length, need_space, space_request): Treat
13732 invalid optional argument as missing.
13733 * troff/env.cc (number_lines): If the first argument is present
13734 but not a number, turn on line numbering, don't change the next
13735 line number and parse the remaining arguments.
13737 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13739 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13741 * eqn/box.h: Change declaration accordingly.
13742 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13743 the specified size was bad but don't give an error. Check for
13745 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13746 * eqn/lex (do_size): Likewise.
13748 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13750 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13751 compatible headers.
13753 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13755 * tbl/table.cc (table::init_output): Improve error message when
13756 table won't fit on one page.
13758 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13760 * pic/troff.cc (troff_output::start_picture): Generate line
13761 containing a horizontal motion equal to the width of the picture.
13763 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13764 using GROFF_COMMAND_PREFIX environment variable.
13766 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13768 * mdate.sh: Use $NF rather than $(NF).
13770 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13772 * pic/main.cc (main): Use %1 not %c in argument to warning.
13774 * eqn/main.cc (main): Output code to check that geqn was given the
13777 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13779 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13780 `ln -s ../Makefile .; make; rm -f Makefile'.
13782 * troff/hyphen: Rename to...
13784 * troff/input.cc (main): Delete -H option. Don't call
13785 read_hyphen_file().
13786 * troff/env.cc: Include searchpath.h and macropath.h.
13787 (exception_dictionary): Deleted.
13789 (read_hyphen_file): Deleted.
13790 (hyphenation_language): New struct.
13791 (class trie, class hyphen_trie): Move declarations up.
13792 (trie_node::~trie_node): Deleted.
13793 (trie::delete_trie_node): New function.
13794 (trie::do_delete): New pure virtual function.
13795 (hyphen_trie::do_delete): New function.
13796 (trie::~trie): New function.
13797 (hyphen_trie::~hyphen_trie): New function.
13798 (trie::clear): No need to chcek that tp is not 0.
13799 (current_language, language_dictionary): New variables.
13800 (hyphen_word): Give an error if no current language. Use
13801 exceptions dictionary in current language.
13802 (hyphen_trie::read_patterns_file): Find file using macro_path.
13803 Allow comments (starting with %) in patterns file. Don't make it
13804 a fatal error if the file can't be found.
13805 (hyphenate): Return if no current language. Get the exceptions
13806 dictionary and the hyphenation patterns from the current language.
13807 (set_hyphenation_language): New variable.
13808 (hyphenation_patterns_file): New function.
13809 (hyphenation_language_reg): New class.
13810 (hyphenation_language_reg::get_string): New function.
13811 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13812 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13814 * groff/groff.cc (main, help, synopsis): Delete -H option.
13815 * include/Makefile.sub: Don't define HYPHENFILE.
13816 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13817 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13818 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13819 hyphenation patterns.
13821 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13823 * eqn/neqn.sh: New file.
13824 * eqn/Makefile.sub: Handle neqn.sh.
13826 * eqn/eqn.h: Declare `nroff' variable.
13827 * eqn/box.cc (param_table): Add `nroff' param.
13828 (nroff): Define it.
13829 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13831 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13833 * troff/troff.h (WARN_FONT): New warning.
13834 (WARN_TOTAL): Change accordingly.
13835 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13836 (warning_table): Add WARN_FONT.
13837 * troff/node.cc (mount_font_no_translate): Pass argument to
13838 font::load_font. If this is non-zero, give a warning.
13839 Don't give an error message when accessing a font that has already
13840 been found to be invalid.
13841 * include/font.h (font::load, font::load_font): Add additional
13842 optional argument which suppresses error message if the font is
13844 * libgroff/font.cc (font::load_font): Handle additional argument.
13845 (font::load): Add additional argument. If this is non-null, set it
13846 to 1 and don't give error message.
13848 * include/printer.h (printer::end_page): Add argument giving
13850 * libdriver/input.cc (do_file): Pass this.
13851 * grops/ps.cc (ps_printer::end_page): Add argument.
13852 * grodvi/dvi.cc (dvi_printer::end_page,
13853 draw_dvi_printer::end_page): Add argument.
13854 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13855 columns_per_page members. New member nlines.
13856 (DEFAULT_LINES_PER_PAGE): Deleted.
13857 (tty_printer::tty_printer): Don't compute lines_per_page from
13858 font::paperlength. Don't compute columns_per_page from
13860 (tty_printer::add_char): Don't check horizontal position against
13861 columns_per_page. Grow glyphs vector if neccessary.
13862 (tty_printer::end_page): Add argument giving page_length in units.
13863 Discard lines past end of page.
13865 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13867 * tmac/tmac.tty-char: Fix definition of \(/l.
13869 * tmac/tmac.X: Define \(en.
13871 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13873 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13874 lpq, then use lp rather than lpr.
13876 * tmac/tmac.s (par@reset): Don't call `ad'.
13877 (par*env-init): Call `ad'.
13879 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13881 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13884 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13885 * indxbib/indxbib.cc: Likewise.
13887 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13889 * libgroff/putenv.c: New file.
13890 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13891 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13892 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13893 stdlib.h with AC_HAVE_HEADERS.
13895 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13897 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13900 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13902 * eqn/box.cc (gsize): Make it an int.
13903 (set_gsize): Parse argument handling increment or decrement.
13904 (box::top_level): Convert gsize to a string.
13906 * troff/input.cc (exit_troff): Make buf unsigned char [].
13907 Call to make_temp_iterator casts buf to char*.
13909 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13911 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13912 * Makefile.cpg (depend.temp): Likewise.
13914 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13916 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13918 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13920 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13922 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
13924 * Version 1.06 released.
13926 * Integrate mm 1.04.
13928 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
13930 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13932 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
13934 * afmtodit/afmtodit.pl: Add -n option that disables generation of
13936 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13937 afmtodit. Regenerate.
13939 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13940 @f back past the current position.
13942 * tmac/tmac.e: Change calls to @R so that comments are not part of
13945 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
13947 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13949 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13950 check that we can link a call to a function declared in <stdio.h>.
13951 (GROFF_UNISTD_H): New macro.
13952 * configure.in: Call it.
13953 * Makefile.in: Document it.
13954 * include/posix.h: New file.
13955 * troff/troff.h: Don't include <osfcn.h>
13956 * troff/input.cc: Include posix.h.
13957 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13959 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13960 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13962 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13963 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13964 * libbib/search.cc (O_RDONLY): Delete definition.
13965 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13966 Don't include <osfcn.h>.
13968 * acgroff.m4 (GROFF_TIME_T): New macro.
13969 * configure.in: Call it.
13970 * Makefile.in: Document it.
13972 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13973 * configure.in: Call it.
13974 * Makefile.in: Document -DTRADITIONAL_CPP.
13975 * include/ptable.h: Don't include generic.h.
13976 (name2): Define it.
13978 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13979 Afterwards remove [T1 and [T2.
13980 (ref*spec!0, ref*spec!2): Use T1 rather than T.
13981 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13982 (ref*add-T2): Renamed from ref*add-T.
13983 (ref*add-T1): New macro.
13985 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
13987 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13989 * libbib/index.cc: Include <fcntl.h>.
13990 (O_RDONLY): Define if necessary.
13991 (make_index_search_item, index_search_item_iterator::get_tag,
13992 index_search_item::check_files): Use O_RDONLY.
13993 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13994 (O_RDONLY): Define if necessary.
13995 (search_list::add_file): Use O_RDONLY.
13996 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13998 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14001 * libbib/index.cc (S_ISREG): Define it if necessary.
14002 (index_search_item::load): Use S_ISREG.
14004 * include/driver.h: Include <errno.h>.
14006 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14008 * eqn/box.cc (body_height): Increase default value to 85.
14009 (body_depth): Increase default value to 35.
14011 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14013 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14014 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14015 protected from expansion with \E.
14017 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14019 * Makefile (Makefile): New target.
14021 * Makefile.sub (configure, distfiles): New targets.
14023 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14026 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14028 * eqn/box.cc (param_table): Add body_height and body_depth.
14030 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14032 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14034 * psbb/Makefile.sub: Don't link with libgroff.a.
14036 * acgroff.m4 (GROFF_PUTENV): New macro.
14037 * configure.in: Call GROFF_PUTENV.
14038 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14039 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14042 * troff/env.cc (distribute_space): Rename force_forward argument
14043 to force_reverse. Reverse the list if force_reverse is true.
14045 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14047 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14049 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14050 height or depth to be negative. Guard against SUP_RAISE quantity
14053 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14055 * devps/generate/textmap: Add `an' (arrowhorizex).
14056 * tmac/tmac.ps: \(an overlaps horizontally.
14057 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14059 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14060 * devps/textmap: Add arrowvertex.
14061 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14062 updownarrow delimiters.
14063 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14065 * tbl/table.cc (simple_entry::position_vertically,
14066 block_entry::position_vertically): For a centered entry, perform
14067 the motion in two stages.
14069 * refer/refer.cc (split_punct): Don't call lookup_token if there
14072 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14074 * troff/input.cc (token::next): Delete token_node after copying
14077 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14080 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14082 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14084 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14086 * grops/ps.cc (usage): -b option takes an argument.
14088 * devps/prologue (PLG): New procedure.
14089 * grops/ps.cc (main, usage): New -g option.
14090 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14093 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14095 * include/cset.h: Include <limits.h> if we have it.
14097 * libgroff/illegal.cc: New file.
14098 * include/lib.h (illegal_input_char): Use table.
14099 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14100 * pic/lex.cc (ARG1): Renumber to 14.
14101 * eqn/lex.cc (ARG1): Likewise.
14103 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14104 (eg 1.05.90) correctly.
14106 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14108 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14109 Rename $r and $R registers to $v and $V.
14110 ($r, $R): Initialize to 0.
14111 (@v, @V): New macros.
14115 * troff/input.cc (main, usage): Add -R option that says not to
14117 * eqn/main.cc (main, usage): Rename -n to -R.
14119 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14121 * devps/DESC.in: Leave font positions 5-9 blank.
14122 * devdvi/DESC.in: Likewise.
14124 * grog/grog.pl: Handle `.PS <file' correctly.
14126 * troff/input.cc (input_stack::push): Improve error message when
14127 input stack limit exceeded.
14129 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14131 * refer/refer.cc (main): Fix typo in handling of `a' option.
14133 * refer/refer.cc (do_bib): In state START after a newline remain
14136 * groff/groff.sh: Deleted.
14137 * groff/Makefile.sub: Delete handling of groff.sh.
14139 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14140 to determine whether to use \X'ps:...'.
14141 * tmac/troffrc: Set 0p register to 0.
14142 * tmac/tmac.ps: Set 0p register to 1.
14144 * groff/groff.cc: Support -X option. Give warning for -TXps and
14145 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14146 * tmac/troffrc: Support -r.X=1.
14148 * pic/troff.cc (troff_output::dot): Don't test
14149 zero_length_line_flag.
14151 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14153 * include/lib.h: Declare getopt() and friends unless
14154 STDLIB_H_DECLARES_GETOPT is defined.
14156 * doc/chars.tr: Delete.
14157 * man/groff_char.man: New file.
14159 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14161 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14162 user has changed register format.
14164 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14166 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14167 `postpro' command in DESC file. Get spooler command from `print'
14168 command in DESC file. Execute spooler command with /bin/sh.
14170 * groff/groff.cc: Split Unix-specific parts into...
14171 * groff/pipeline.c: New file.
14174 * COPYING: New file.
14175 * all files: Update copyright notices.
14177 * Rearrange files. Redo Makefiles. Use autoconf.
14179 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14181 * troff/input.c (charinfo_to_node_list): Interpret character
14182 definition with escape_char of `\'.
14184 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14186 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14187 Define INT_DIGITS as big enough for 64-bit integer.
14188 * lib/strtol.c: Don't include lib.h.
14189 * lib/lib.h: Delete ifdef __cplusplus stuff.
14191 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14193 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14194 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14195 get DESC from current directory.
14197 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14199 * tbl/main.c (main): Always reset the line number when reading
14202 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14203 table::define_bottom_macro, table::do_row, table::do_top): Round
14204 vertical spacing up to vertical resolution.
14206 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14208 * ps/ps.h (enum resource_type): Avoid comma at end of
14210 * dvi/dvi.c (class dvi_printer): Likewise.
14211 * dvi/tfmtodit.c (gf::load): Likewise.
14212 * refer/label.y (struct expression): Likewise.
14213 * refer/refer.c (class label_processing_state): Likewise.
14214 * refer/indxbib.c (do_file): Likewise.
14215 * troff/troff.c (enum warning_type): Likewise.
14216 * tbl/main.c (process_data): Likewise.
14217 * troff/charinfo.h (class charinfo):
14219 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14221 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14223 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14225 * groff.c: Move to new groff subdirectory.
14226 * groff/Makefile: New file.
14227 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14229 * man/mdate.sh: Use ls -L if supported.
14231 * Consolidate all header files produced by gendef into lib/defs.h.
14232 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14233 Don't include path.h.
14234 * lib/Makefile (path.h): Don't generate.
14235 * troff/input.c: Include defs.h. Don't include config.h.
14236 * troff/Makefile (config.h): Don't generate.
14237 * refer/index.h: Don't include suffix.h.
14238 * refer/index.c: Include defs.h.
14239 * refer/indxbib.c: Include defs.h.
14240 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14242 * refer/Makefile (suffix.h, path.h): Don't generate.
14243 * groff.c: Don't include config.h. Include defs.h.
14244 * Makefile (config.h): Don't generate.
14245 (lib/defs.h): Generate.
14246 (topclean): Remove lib/defs.h.
14248 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14250 * lib/malloc.c, lib/getpagesize.h: Deleted.
14251 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14253 * lib/Makefile: Delete malloc-related stuff.
14254 * lib/new.c: Workaround COOKIE_BUG if necessary.
14256 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14257 needed header files directly.
14258 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14259 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14261 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14263 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14265 * lib/font (font::load_desc, font::load): Don't split argument of
14267 (font::handle_unknown_font_command): Change type.
14268 * ps/ps.c (ps_font::handle_unknown_font_command,
14269 handle_unknown_desc_command): Change type.
14270 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14272 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14274 * lib/font.h (font::handle_unknown_font_command): Add file and
14276 * lib/font.c (font::handle_unknown_font_command):
14277 * ps/ps.c (ps_font::handle_unknown_font_command):
14278 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14279 lineno arguments. Use _with_file_and_line functions for error
14282 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14284 * lib/font.c (font::set_unknown_desc_command_handler): New
14286 (font::load_desc): For unknown commands, call
14287 unknown_desc_command_handler if not null.
14288 * lib/font.h (class font): Declare them.
14289 (FONT_COMMAND_HANDLER): New typedef.
14290 * ps/ps.c (handle_unknown_desc_command): New function.
14291 (main): Set bflag if we had a -b option. Call
14292 font::set_unknown_desc_command_handler.
14293 (broken.h): Don't include.
14294 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14296 * ps/devps/Makefile: Add `broken' command to DESC file using
14297 BROKEN_SPOOLER_FLAGS.
14299 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14301 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14303 * macros/tmac.e (@R, @S): New macros.
14304 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14305 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14306 Declare $H, $[0-9], .. macros with @S.
14307 Declare |0, |1, |2, |3 strings with @S.
14309 * macros/tmac.e (@S): Rename to @U.
14311 * macros/tmac.e (@z): Define @b and bp as empty instead of
14314 * macros/tmac.e (@m): Deleted.
14315 (@h): Don't call @m.
14316 (@z): Don't set @m trap.
14318 * macros/tmac.e ($h, $f): Define |z as empty string.
14320 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14323 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14325 ()f): Likewise for * register.
14327 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14328 argument is missing, don't change $R. Call sr with three
14329 arguments when initializing.
14331 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14333 * macros/tmac.e (sr): New macro.
14334 Initialize $r and $R using sr.
14336 * macros/tmac.e (,): Delete \*(#[.
14338 * troff/env.c (set_tabs): Read the tab type even if the position
14339 is bad. Allow the position of the first tab stop to be negative.
14341 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14343 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14345 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14346 rather than -DPATHCONF_MISSING.
14347 * Makefile: Get rid of PATHCONF_MISSING.
14349 * refer/map.c: New file.
14350 * refer/index.c: Interface to mmap through map.c. Rename map_size
14352 * refer/Makefile: Handle map.c.
14353 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14355 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14357 * Makefile: RANLIB should be `true' if there is no ranlib.
14358 * lib/Makefile (libgroff.a): Simplify.
14359 * driver/Makefile (libdriver.a): Simplify.
14361 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14362 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14365 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14367 * troff/env.c (compare_ranges): Declare as extern "C".
14369 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14371 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14373 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14375 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14376 but conditionalize use of \X based on \*(.T.
14377 (grops_output::*): Deleted.
14378 * pic/output.h: Delete declaration of make_grops_output.
14379 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14380 by default. -n sets it to 0.
14381 (usage): Corresponding changes.
14382 * groff.c (main): Don't pass -x or -p to pic.
14383 * groff.sh: Likewise.
14385 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14388 * ps/devps/afmtodit: Change calculation of asc_boundary and
14389 desc_boundary. Make these bounds inclusive.
14390 * ps/devps: Regenerate font files.
14392 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14394 * macros/tmac.latin1: New file.
14395 * macros/tmac.tty-char: Use tmac.latin1.
14396 (tmac.tty-tr): Deleted.
14397 * macros/Makefile: Install tmac.latin1.
14398 * macros/tmac.dvi: Use tmac.latin1.
14399 * macros/troffrc: Translate \[char160] onto no-break space here.
14400 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14402 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14404 * macros/tmac.Xps: Use `do' request.
14406 * macros/tmac.ps: Use `do' request.
14408 * macros/tmac.e (@C): Use `do' request.
14410 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14411 * macros/Makefile: Install tmac.X*.
14413 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14414 * tty/Makefile: Don't install tmac.tty*.
14415 * macros/Makefile: Install tmac.tty*.
14417 * dvi/tmac.dvi: Move to macros.
14418 * dvi/Makefile: Don't install tmac.dvi.
14419 * macros/Makefile: Install tmac.dvi.
14421 * ps/tmac.ps*: Move to macros.
14422 * ps/Makefile: Don't install tmac.ps*.
14423 * macros/Makefile: Install tmac.ps*.
14425 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14427 * macros/eqnrc: Set draw_lines parameter based on device.
14428 * groff.c: Don't pass -D flag to eqn.
14429 * groff.sh: Likewise.
14430 * eqn/main.c: Warn about use of -D.
14432 * troff/input.c (process_startup_file): New function.
14433 (main): Call process_startup_file().
14434 * macros/troffrc: New file.
14435 * macros/Makefile: Install troffrc.
14436 * groff.c (main): Don't pass extra -m option to troff. For a
14437 pseudo device pass the name of the pseudo device to troff using
14439 * groff.sh: Likewise.
14440 * groff.c (possible_command::prepend_arg): Deleted.
14442 * troff/input.c (do_request): New function.
14443 (init_input_requests): Bind "do" to do_request.
14445 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14446 load eqnrc from macro directory.
14447 * macros/eqnrc: New file.
14448 * macros/Makefile: Install eqnrc.
14449 * ps/devps/eqnchar: Deleted.
14450 * ps/devps/Makefile: Don't install eqnchar.
14451 * dvi/devdvi/eqnchar: Deleted.
14452 * dvi/devdvi/Makefile: Don't install eqnchar.
14453 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14456 * lib/device.[ch]: New files.
14457 * lib/font.h (font::set_device_name, font::get_device_name):
14459 * lib/fontfile.c: Use device.h.
14460 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14461 * troff/input.c: Delete definition of `device'.
14462 (main): Don't initialize device.
14463 * troff/troff.h: Include device.h rather than declaring device.
14464 * troff/Makefile: No need to handle DEVICE.
14465 * driver/input.c: Include device.h. Don't use
14466 font::{set,get}_device_name.
14467 * groff.c, Makefile: Rename device.h to config.h.
14468 * groff.c: Use library device variable.
14469 * eqn/main.c: Use library device variable.
14470 * eqn/Makefile: No need to handle DEVICE.
14472 * lib/searchpath.[ch]: New files.
14473 * lib/Makefile: Handle searchpath.[ch].
14474 * troff/input.c (open_file, init_dirs): Deleted.
14475 (macro_dirs): Deleted.
14476 (open_mac_file, macro_source): Use class search_path.
14477 (add_string, struct string_list): Move definition.
14478 (main): Change -M option to use macro_path. Delete call to
14480 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14481 Rewrite to use class search_path.
14482 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14483 * lib/Makefile: fontfile.c depends on searchpath.h.
14484 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14486 * lib/macropath.[ch]: New files.
14487 * troff/Makefile: No need to handle MACROPATH.
14489 * troff/input.c: Delete DUMP code.
14490 * lib/fontfile.c, lib/font.h: Delete
14491 font::forget_command_line_font_dirs.
14493 * troff/input.c (push_token): New function.
14494 (handle_first_page_transition): Use push_token().
14495 (process_input_stack): Change handling of a space at the beginning
14498 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14500 * troff/input.c (font_dirs): Delete unused variable.
14502 * eqn/lex.c (do_set): Correct error messages.
14504 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14506 * troff/input.c (do_define_string): Allow the string name to be
14507 followed immediately by a tab.
14508 (define_character): Likewise.
14510 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14512 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14515 * troff/input.c (input_iterator::is_file): New virtual function.
14516 (file_iterator::is_file): New function.
14517 (input_stack::end_file): New function.
14518 (input_stack::next_file): Handle the situation where there is no
14519 file on the input stack correctly. Avoid making two passes over
14521 (next_file): Make the filename optional; in this case call
14522 input_stack::end_file().
14524 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14526 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14527 produce a real _ charater when the current font is CW and _
14530 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14531 expression to work around gcc 2.2 bug.
14533 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14535 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14537 * troff/env.c (environment::add_padding): New function.
14538 (environment::add_char): Use add_padding().
14539 (environment::space): Likewise.
14540 (environment::wrap_up_field): Add some padding if there is none
14541 and there's no current tab.
14542 * troff/env.h: Declare environment::add_padding.
14544 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14546 * pic/pic.y: undef fmod and rand before declaring them.
14548 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14550 * troff/input.c (main): If the DESC file specifies a font name of
14551 0, then leave the corresponding font position empty.
14553 * nroff.sh: New file.
14554 * Makefile (install.nobin): Install nroff.sh.
14556 * tty/devlatin1/R.proto: Add ao as synonym for de.
14557 * tty/tmac.tty-char: Define ao as o.
14559 * tty/dev{ascii,latin1}/R.proto: Add aq.
14560 * tty/tmac.tty-char: Delete definition of aq.
14562 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14564 * troff/input.c (init_charset_table): Don't translate 0240.
14565 * ps/tmac.ps: Translate char160 to space.
14566 * dvi/tmac.dvi: Likewise.
14567 * tty/tmac.tty: Likewise.
14569 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14571 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14573 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14574 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14577 * tty/tmac.tty-char: Add \(ah.
14579 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14580 No need to define \(FM and \(!/. Conditionalize all character
14583 * ps/devps/lgreekmap: Add +h, +f, +p.
14585 * ps/tmac.psnew: New file.
14586 * ps/Makefile: Install tmac.psnew.
14588 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14589 character definitions in compatible mode.
14591 * troff/input.c (remove_character): New function.
14592 (init_input_requests): Bind remove_character to "rchar".
14594 * ps/tmac.psold: New file.
14595 * ps/Makefile: Install tmac.psold.
14596 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14597 characters into tmac.psold. Make these definitions unconditional.
14599 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14601 * ps/tmac.ps: Don't define \('c and \('C.
14603 * ps/devps/textmap: Move Greek characters to...
14604 * ps/devps/symbolchars:
14606 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14608 * ps/devps/text.enc: Add quotesingle.
14609 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14610 * tty/tmac.tty-char: Likewise.
14611 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14612 * dvi/devdvi/texi.map: Add Fn.
14613 * dvi/devdvi/msam.map: Add lz.
14614 * dvi/tmac.dvi: Handle Bq, bq, aq.
14616 * pic/lex.c (get_token): Recognize 'th.
14617 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14619 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14621 * ps/devps/textmap: Move di, mu, +- to...
14622 * ps/devps/symbolchars:
14624 * macros/tmac.s (@XS): Don't call par@reset or fi.
14625 (XA): Call LP. Turn off adjustment. Reduce line length.
14627 * macros/tmac.s: Initially alias XS to LP.
14628 (XS): Rename to @XS.
14629 (cov*ab-init): Alias XS to @XS.
14631 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14633 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14634 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14635 (token::is_size, token::changes_env): Deleted.
14636 * troff/number.c (parse_term): No need to process \s explicitly.
14637 Call tok.next() only after scale indicator has been processed.
14638 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14640 (token::next): Handle \s, \f, \S, \H immediately rather than
14641 returning them as tokens.
14642 (token::operator==, token::description, token::add_to_node_list,
14643 token::process): Remove handling of deleted tokens.
14645 * troff/env.c (environment::add_char): When adding padding
14646 indicator character, call start_line() if necessary.
14648 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14650 * ps/devps/afmtodit: Don't output 0 kerns.
14652 * ps/devps/afmtodit: Remove directory from name of encoding in
14653 font description file.
14655 * ps/devps/afmtodit: Improve error messages.
14657 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14659 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14660 * ps/devps/FontMakefile: Deleted.
14661 * ps/devps/afmname: New file.
14663 * ps/devps/symbol.sed: New file.
14664 * ps/devps/symbol.diff: Deleted.
14665 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14666 Generate zapfdr.afm from zapfd.afm.
14668 * tty/tmac.tty (tty-char): Prefix definition with ".
14670 * macros/tmac.an (TP): Don't start a diversion if one has already
14673 * tty/tmac.tty-char: Add Latin-1 characters.
14675 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14677 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14679 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14680 Move declaration of struct horizontal_span.
14682 * tbl/table.c (table::table): Initialize span_list.
14683 (table::~table): Delete span_list.
14685 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14687 * ps/devps/Makefile: Avoid dependency on GNU make.
14689 * ps/tmac.ps: Check that character does not already exist before
14692 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14693 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14694 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14697 * tty/tmac.tty-char: New file.
14698 * tty/Makefile: Install tmac.tty-char.
14699 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14702 * tty/tmac.tty: Fix definition of \(34.
14704 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14705 bracket-drawing characters onto |. Add *o.
14707 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14708 only if current_field.
14710 * troff/dictionary.c (dictionary::lookup): Free old_table after
14713 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14715 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14716 whose glyphs are identical to glyphs of some Roman character.
14718 * tty/devlatin1/R.proto (bu): Deleted.
14719 * tty/devascii/R.proto (bu): Deleted.
14720 * tty/tmac.tty: Add definition of \(bu.
14722 * eqn/main.c (do_file): Pass FILE as argument.
14723 (main): Automatically load eqnchar. New options -F and -n.
14724 Pass do_file an opened FILE.
14725 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14726 No need to include font.h.
14727 * groff.sh: Likewise. Don't need to use - for standard input.
14728 Prefix files with -- if first file starts with -.
14730 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14732 * troff/env.c (environment::possibly_break_line): Don't set line
14733 to 0 across call to output_line(). Don't call output_line() until
14734 after discarding nodes after break.
14736 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14738 * request.h (macro::empty): Declare it.
14739 * input.c (macro::empty): New method.
14740 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14743 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14745 * troff/env.c (environment::start_field): Decrement space_total
14746 when a space is frozen.
14748 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14750 * macros/tmac.an (R): Delete macro.
14752 * troff/input.c (get_copy, token::next): Support \# (like \" but
14753 newline is ignored).
14755 * troff/input.c (token::next): Fix error message in 'Y' case.
14757 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14759 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14762 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14764 * c++test.c: Include <osfcn.h>.
14766 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14769 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14771 * tbl/table.c (table::divide_span): Don't count column separation
14772 if expand was specified.
14774 * tbl/main.c (process_format): Don't ignore width specs in
14775 continued format. Give warning for changing equal widths or
14776 column separation in continued format.
14777 (process_data): Set column separation, minimum width, equal
14778 columns at end of table.
14780 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14782 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14783 node::add_discretionary_hyphen): Use soft_hyphen_char.
14784 (set_soft_hyphen_char): New function.
14785 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14787 * Makefile (c++tested): Give more helpful message if test fails.
14789 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14791 * troff/input.c (init_charset_table): Translate 0240 to
14792 an unbreakable space.
14794 * troff/token.h (token::hyphen_indicator): New function.
14795 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14797 * troff/input.c (translate): Allow translation to \%.
14798 * troff/node.c (node::add_char): Handle
14799 TRANSLATE_HYPHEN_INDICATOR.
14800 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14802 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14805 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14807 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14809 * groff.c (run_commands): If the last command gets a SIGPIPE send
14810 a SIGPIPE to all children than haven't yet terminated. When
14811 command terminates, set pid field to -1.
14813 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14815 * groff.c (main): Pass an appropriate -filename option to gxditview.
14817 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14819 * Makefile.bd (install): Remove existing program before copying.
14821 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14822 programs which have Unix counterparts to be installed with
14823 user-specified prefix.
14825 * troff/input.c (exit_troff): Don't check if exit_started.
14826 (exit_request): Don't call exit_troff if exit_started.
14828 * Makefile.bd (install.mm): Rename to install.dwbmm.
14830 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14832 * driver/input.c (do_file): Add missing break for '#' case.
14834 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14836 * troff/input.c (input_stack::clear): Clear past any boundaries and
14837 then add the boundaries back.
14839 * troff/input.c (exit_troff): Return immediately if already
14842 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14844 (pg*end-page): If the text has ended and there are no more
14845 footnotes or keeps, exit.
14847 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14849 * troff/input.c (init_charset_table): Make \(rq transparent by
14852 * macros/tmac.an: Define lq and rq strings.
14854 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14856 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14858 * troff/env.c (environment::final_break): New function.
14859 (environment::newline): Set prev_line_interrupted to 2 if
14861 * troff/env.h: Declare environment::final_break.
14862 * troff/input.c (exit_troff): Call environment::final_break()
14863 instead of environment::do_break().
14865 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14866 doesn't already exist.
14867 * macros/man.local: New file.
14868 * macros/tmac.an: Load man.local.
14869 * macros/man.ultrix: New file.
14871 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14873 * troff/input.c (exit_groff): Rename to...
14874 (exit_troff): New function.
14876 * troff/div.c (exit_started, done_end_macro,
14877 seen_last_page_ejector): New global variables.
14878 (began_page_in_end_macro): New static variable.
14879 (exit_flag): Deleted.
14880 (top_level_diversion::top_level_diversion): Initialize
14882 (top_level_diversion): More elaborate test for whether
14883 cleanup_and_exit() should be called.
14884 Set began_page_in_end_macro if the end macro isn't yet finished.
14885 * troff/div.h (top_level_diversion::last_page_count): New data
14887 (top_level_diversion::set_last_page): New function.
14888 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14889 * troff/env.c (do_break): Zero prev_line_interrupted.
14890 * troff/input.c (exit_flag): Delete declaration.
14891 (LAST_PAGE_EJECTOR): New magic cookie.
14892 (token::next): Handle LAST_PAGE_EJECTOR.
14893 (exit_groff): Set exit_started and done_end_macro instead of
14894 exit_flag. Call top_level_diversion::set_last_page. Push a
14895 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14896 another ejection after setting seen_last_page_ejector.
14898 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14900 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14902 * macros/tmac.e (TH): Make sure there's room for the initial
14905 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14906 Set FVS in points rather than units.
14908 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14910 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14911 position of empty slots.
14913 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14915 * ps/devps/S: Fix height and depth of parenrightex.
14916 * ps/devps/symbol.diff: Regenerate.
14918 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14920 * tmac.e (u): Do underlining as in -mgs.
14922 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
14924 * tty/tty.c (tty_printer::end_page): If overstriking is
14925 suppressed, still turn overstruck horizontal and vertical lines
14928 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14931 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14933 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
14935 * Version 1.05 released.
14937 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
14939 * tty/tty.c: Instead of keeping an array of glyphs and then
14940 sorting it, keep a ordered linked list of glyphs for each line.
14942 * driver/driver.h: Include stddef.h.
14944 * tty/tty.c (compare_glyph):
14945 * refer/refer.c (rcompare):
14946 * troff/env.c (compare_ranges): Arguments of qsort comparison
14947 function should be const void *.
14949 * troff/number.c (parse_term):
14950 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14953 * refer/label.y (consider_authors): Don't access variables
14954 constructed under a condition outside that condition: put braces
14955 round for statement containing declaration; redeclare use of same
14958 * pic/pic.y (text_expr): Delete production that allows
14959 parenthesised text_expr.
14960 (expr): Allow a conditional_expr to appear in parentheses.
14961 (conditional_expr): Rename to any_expr.
14963 * mm: Install new version 1.01 from jh.
14965 * lib/font.c (font::get_width): Cache scaled widths.
14966 (font::font): Initialize widths_cache.
14967 (font::~font): Destroy widths_cache.
14968 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14970 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
14972 * c++test.c, c++test.ref: New files.
14973 * Makefile: Check that the C++ compiler works.
14975 * ps/tmac.pspic (PSPIC): Do a break.
14977 * ps/tmac.ps: Move definition of PSPIC into...
14978 * ps/tmac.pspic: New file.
14979 (PSPIC): Draw box around picture, but make it invisible to grops.
14980 * ps/tmac.ps: Load tmac.pspic.
14981 * ps/Makefile: Install tmac.pspic.
14983 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
14985 * lib/font.c (scale_round): If n is negative,
14986 subtract .5 before truncating floating point result.
14988 * lib/fontfile.c: Include <errno.h>.
14990 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
14992 * driver/input.c (get_char): Inline. Don't update current_lineno.
14993 Change callers to up date current_lineno if necessary.
14994 Use get_char() instead of getc(current_file).
14996 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
14998 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15000 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15002 * tty/tty.c (tmac.tty): Define \(rg as (R).
15004 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15006 * lib/lib.h: New define a_delete.
15007 * Use a_delete instead of delete when deleting an array of objects
15008 without destructors.
15010 * lib/lib.h: Rename adelete to ad_delete.
15011 * Change uses of adelete.
15013 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15015 * eqn/eqn.y: Include lib.h.
15017 * troff/node.c (grow_font_table): Delete old_font_table.
15019 * mm: Install new version from jh.
15021 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15023 * tbl/table.h (format_type): Make global instead of local to class
15024 entry_format. Prefix enumerators with FORMAT_.
15025 * tbl/table.c, tbl/main.c: Corresponding changes.
15026 * refer/token.h (token_type): Make global. Prefix enumerators
15028 * refer/token.[ch]: Corresponding changes.
15029 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15031 * troff/div.c (node::set_vertical_size): Don't name argument.
15033 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15035 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15036 * lib/lib.h: Define adelete accordingly.
15037 * pic/object.c (graphic_object::graphic_object):
15038 * tbl/main.c (format::~format):
15039 * tbl/table.c (table::~table):
15040 * refer/ref.c (reference::~reference, reference::merge,
15041 reference::insert_field, reference::delete_field): Use adelete.
15043 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15045 * tbl/table.h: Corresponding changes.
15047 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15048 Ensure total_angle is positive.
15050 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15052 * refer/ref.c (reference::merge, reference::insert_field,
15053 reference::delete_field): Avoid delete[0].
15055 * refer/token.c (init_special_chars): Move calls to cmupper
15056 outside calls to init_two_char_letter to work around bug in gcc
15059 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15061 * lib/new.c (operator new): Use __builtin_new for g++.
15063 * pic/object.c (graphic_object::~graphic_object): Don't use
15066 * pic/object.c (output::compute_scale): Initialize max_width and
15069 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15071 * troff/input.c (write_request): Call fflush.
15073 * troff/node.h (class composite_node): Move declaration to node.c
15074 * troff/input.c (charinfo_to_node): Rename to ...
15075 (charinfo_to_node_list): Return node list rather than composite
15077 * troff/node.c (make_composite_node): New function.
15078 (make_node, add_char): Call make_composite_node instead of
15080 (class composite_node): Add a tfont * member. Delete font_size
15082 (composite_node::composite_node, composite_node::copy,
15083 composite_node::size): Corresponding changes.
15084 (composite_node::tprint): Provide constant spacing, emboldening
15085 and track kerning as specified in tfont.
15086 (composite_node::width): Change width calculation accordingly.
15087 * troff/env.h (environment::composite): New member.
15088 (environment::is_composite, environment::set_composite): New
15090 * troff/env.c (environment::environment): Initialize composite.
15091 * troff/input.c (charinfo_to_node): Call
15092 environment::set_composite.
15093 * troff/node.c (make_composite_node, make_glyph_node): Use the
15094 plain version of the tfont if the environment is composite.
15096 * troff/node.c (font_info::get_space_width): Additional argument
15097 giving space_size. Handle constant space correctly. Scale by
15098 space_size unless constant spaced.
15099 (env_sentence_space_width): New function.
15100 * troff/node.h: Declare it.
15101 * troff/env.h (environment::get_space_size,
15102 environment::get_sentence_space_size,
15103 environment::get_narrow_space_width,
15104 environment::get_half_narrow_space_width): Make inline.
15105 (environment::get_space_width): Make inline. Just call
15107 * troff/env.c: Delete definitions for funtions made inline.
15108 (environment::space_newline, environment::space): Use
15109 env_sentence_space_width(). Don't scale by space_size.
15110 * troff/node.h: Move declarations of env*space_width() functions
15113 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15115 * macros/tmac.s (PS): Don't try to set negative indent.
15117 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15119 * pic/pic.y: Fix min function.
15121 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15123 * man/mdate.sh: Clear LANGUAGE.
15125 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15127 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15128 * pic/lex.c: New COMMAND keyword.
15129 * pic/pic.y (print_args, print_arg): New rules.
15130 (placeless_element): Use print_args for PRINT.
15131 New COMMAND element.
15133 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15135 * troff/input.c (terminal): Handle missing argument correctly.
15137 * pic/pic.y (text_expr): New rule.
15139 * pic/pic.y: Implement := operator.
15141 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15143 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15146 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15148 * ps/devps/dingbatsrmap: Include this in the distribution.
15150 * macros/tmac.doc: Replace with new version from 2nd Networking
15151 Release. Fix loading of doc-* files.
15152 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15153 * macros/tmac.doc.old: New file. Apply fixes that had been
15154 applied to old tmac.doc.
15155 * macros/tmac.andoc: Check that we're running under groff.
15156 * macros/Makefile: Rework.
15158 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15160 * tbl/table.h (format_type):
15161 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15162 typedef to make these types visible at file scope.
15163 * Makefile: Add NESTED_TYPES configuration option.
15165 * troff/div.c (mark): At the top level use the value of
15166 nl_reg_contents rather than the current vertical position.
15168 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15170 * tty/tty.c: Implement \D for horizontal or vertical lines.
15171 (tty_printer::set_char): Use vec_used+2 as serial number.
15172 Don't allow size of vector to exceed USHRT_MAX-2.
15173 Split off part into...
15174 (tty_printer::add_char): New function.
15175 (tty_printer::draw): New function.
15176 (compare_glyph): Handle equal serial numbers.
15177 (tty_printer::end_page): Handle overstruck characters from \D.
15178 (main, usage): Implement -d option.
15180 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15182 * tbl/main.c (process_format):
15183 * eqn/text.c (split_text):
15184 * troff/input.c (token::next): Use inner block for declarations
15185 with initializers in switch statement.
15187 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15189 * pic/common.c (common_output::dash_line): Cope with zero-length
15192 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15194 * Version 1.04 released.
15196 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15198 * macros/tmac.an (TH): Define a macro an-init to define variables
15199 based on command line arguments.
15200 (an-header): Call it.
15202 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15204 * Makefile (install.mm): Rename to install.dwbmm.
15206 * Makefile: Integrate mm.
15207 * mm: New directory.
15209 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15211 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15214 * pic/troff.c (troff_output::simple_spline,
15215 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15216 shadowing parameter.
15218 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15220 * lib/ptable.h: Add explicit casts when converting from unsigned
15223 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15224 * dvi/devdvi/Makefile: Install SA, SB.
15226 * refer/indxbib.c: Add declaration of mktemp.
15228 * refer/lookbib.c: Add declaration of isatty.
15230 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15232 * pic/lex.c (interpolate_macro_with_args): While collecting
15233 arguments, keep track of whether we're in a string.
15235 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15237 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15238 down with \v, so as to avoid problems with top of page trap
15239 setting no space mode.
15241 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15243 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15245 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15247 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15248 Improve error message.
15250 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15252 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15255 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15257 * groff.c (possible_command::execp): Always use _exit() after a
15260 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15261 NO_SYS_WAIT_H configuration options.
15262 * groff.c: Use these options. Use POSIX-style macros to extract
15263 fields from the status returned by wait().
15265 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15267 * tbl/table.c (table::compute_separation_factor): Allow the
15268 separation factor to drop to 0.
15270 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15272 * refer/search.c: Include <errno.h>.
15274 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15276 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15278 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15281 * pic/lex.c (input_stack::bol): Move definition out of class body.
15283 * pic/main.c: On MSDOS munge argv[0].
15285 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15287 * lib/ptable.c (hash_string): Use unsigned long rather than
15289 (next_ptable_size): Use unsigned rather than int. Give an error
15290 message if we've hit the largest table size.
15291 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15294 * pic/object.h (object_spec): Make flags unsigned long. Declare
15295 flags as const unisgned long rather than as enums.
15297 * pic/output.c: Deleted.
15299 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15301 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15302 Add additional argument.
15303 (line_entry::note_double_vrule_on_{left,right}): Set value of
15304 douvle_vrule_on_{right,left} flag according to argument.
15305 (simple_line_entry::simple_print,
15306 simple_line_entry::double_line_print): If adjacent to double vrule
15307 on a corner extend rather than shorten the rule by half the double
15310 * troff/number.c (parse_term): In checking for overflow, handle the
15311 case where the current horizontal position is negative.
15313 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15315 * pic/object.c (draw_arrow): Check for object having zero length.
15317 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15319 * eqn/main.c (do_file): Split off inline equation handling into...
15320 (inline_equation): New function. Search for starting delimiter
15322 (delim_search): New function. Don't recognize a delimiter that
15323 occurs in the name of an escape sequence, number register, string
15326 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15328 * eqn/delim.c (delim_box::compute_metrics): Don't call
15329 define_extensible_string if left is 0.
15330 (delim_box::output): Don't print the left delimiter if left is 0.
15331 (delim_box::debug_print): Check for left == 0 before calling printf.
15333 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15335 * troff/Makefile (majorminor.c): Include only digits in
15338 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15340 * refer/dirnamemax.c: new file.
15341 * refer/genlimits.c: Deleted.
15342 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15343 Don't check path length.
15344 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15345 * Makefile: Add PATHCONF_MISSING option.
15347 * refer/indxbib.c (get_cwd): New function.
15348 (main): Use get_cwd().
15349 * lib/getcwd.c: New file.
15350 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15351 GETCWD in SUBFLAGS.
15352 * lib/Makefile: Compile getcwd.o.
15354 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15357 * refer/indxbib.c (main): Check success of mktemp.
15359 * lib/tmpfile.c: New file.
15360 * lib/Makefile: Add tmpfile.c.
15361 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15362 * ps/ps.h: Delete declaration of mktemp().
15363 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15364 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15365 * driver/driver.h: No need now to include errno.h.
15367 * everywhere: Set errno to 0 before calling fopen().
15369 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15370 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15371 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15373 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15375 * troff/env.h (translate_space_to_dummy): Declare it.
15376 * troff/env.c (environment::space_newline, environment::space):
15377 If translate_space_to_dummy is set then make the width of spaces 0.
15378 * troff/input.c (translate): If the second character of a
15379 translation is a space, translate to unbreakable space. If the
15380 first character is a space, set or clear translate_space_to_dummy
15381 according to whether the second character is \&. Weird!
15383 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15385 * groff.c (run_commands): Don't use non-zero exit code because a
15386 command gets SIGPIPE.
15388 * groff.c, groff.sh: Use -mXps with -TXps.
15390 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15391 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15392 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15393 (ps_printer::special): New specials invis and endinvis.
15394 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15395 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15396 (ps_printer::end_page): Check that invis_count == 0.
15397 (ps_printer::invis_count): New member.
15398 (ps_printer::ps_printer): Initialize invis_count to 0.
15400 * troff/env.c (environment::hyphenate_line): Hyphenation
15401 indicator at beginning of word inhibits splitting after -, \(em
15404 * pic/pic.y (element): Allow another element to follow } without
15405 any intervening separator.
15407 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15409 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15411 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15413 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15414 declaration of wait() in header files.
15415 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15417 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15419 * lib/lib.h: Declare return type of strerror as char *.
15421 * man/Makefile: Add g flag to sed substitutions.
15422 * Makefile (shgroff, bindist): Likewise.
15424 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15426 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15427 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15430 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15432 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15435 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15437 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15440 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15442 * troff/input.c (define_number_reg): If currently undefined,
15443 don't define it if the argument is an invalid expression.
15445 * Makefile: Ignore return value of `if' commands without `else'
15448 * Makefile: Split up CPPDEFINES into a series of separate
15449 configuration options.
15451 * troff/input.c (init_registers): Use time_t instead of long
15452 unless LONG_FOR_TIME_T is defined. Use returned result rather
15453 than passing pointer.
15454 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15456 * lib/Makefile (fontpath.h): Use gendef.
15458 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15460 * troff/input.c (input_iterator::shift): Delete argument name.
15461 * troff/node.c (suppress_output_file::really_begin_page,
15462 suppress_output_file::really_transparent_char, node::ascii_print,
15463 node::tprint): Delete names of unused arguments.
15465 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15467 * refer/label.y (string): Pass $4 to command_error.
15469 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15471 * Version 1.03 released.
15473 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15475 * Makefile: Pass definition of SHELL in SUBFLAGS.
15477 * gendef: New file.
15478 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15479 ps/Makefile: Use gendef to construct header files that are
15480 constructed from the Makefile.
15482 * macros/Makefile: make all should build stripped version of tmac.e.
15484 * refer/Makefile (clean): Remove y.output.
15486 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15488 * ps/pfbtops.c (main): Add -v option which prints out a version
15490 * ps/Makefile (pfbtops): Link with libgroff.a.
15492 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15494 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15495 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15497 * refer/lkbib.c (main): Always terminate reference with blank
15499 * refer/lookbib.c (main): Likewise.
15501 * refer/linear.c (file_buffer::load): Check that the file is not a
15504 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15505 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15506 Delete second inclusion of <sys/param.h>.
15508 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15510 * troff/token.h (token::special): Deleted.
15512 * tbl/main.c (process_format): Rework so that opt->tab_char is
15513 recognized only when appropriate.
15515 * ps/Makefile (clean): Remove pfbtops.
15517 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15519 * lib/font.c (text_file::next): Don't return if we have got a
15522 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15524 * refer/refer.c (store_reference): Get hash code from old_table[i]
15525 when rehashing the table.
15527 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15529 * eqn/box.c (box::top_level): Save size and prev size using \R and
15530 restore it afterwards. Set the size to the size at the beginning
15532 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15533 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15535 * refer/Makefile (limits.h): Use ./genlimits.
15537 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15539 * refer/index.c: Delete declarations of stat() and fstat().
15541 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15543 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15545 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15547 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15549 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15551 * troff/input.c (token::get_char): Handle \e.
15553 * refer/linear.c: Delete declarations of fstat() and stat().
15555 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15557 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15558 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15560 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15562 * troff/input.c (do_define_macro): Improve error handling for end
15563 of file while defining macro.
15565 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15567 * eqn/box.h: Fix declaration of set_gsize.
15568 * eqn/box.c (set_gsize): Make argument const char *.
15569 (gsize): Declare as char *.
15570 * eqn/main.c (main): Don't convert gsize to int.
15571 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15573 * Version 1.02 released.
15575 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15577 * macros/tmac.andoc: New file.
15578 * macros/Makefile: Install tmac.andoc.
15580 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15581 operator new and delete on OP_DELETE_BROKEN not being defined.
15582 * Makefile: Mention OP_DELETE_BROKEN.
15584 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15586 * Makefile (bindist): Pass SUBFLAGS.
15588 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15590 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15592 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15595 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15597 * ps/ps.h, ps/psrm.c: Make comment_table and
15598 header_comment_table local to resource_manager::process_file.
15600 * groff.sh: With -TXps pass -printCommand option to gxditview.
15602 * groff.c (possible_command::print): Implement using
15603 append_arg_to_string.
15605 * xditview: Merge in new implementation with own ChangeLog.
15607 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15609 * groff.c (main): Implement PRINT_OPTION.
15610 (append_arg_to_string): New command.
15611 (device_table): Set PRINT_OPTION flag for Xps.
15613 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15615 * troff/groff.h: Rename to troff.h.
15617 * pic/lex.c (lookup_keyword, docmp): New functions.
15618 (get_token): Use new lookup_keyword.
15619 Don't include key.h.
15620 * pic/key.[ch], pic/pic.gperf: Deleted.
15621 * pic/Makefile: Remove gperf stuff.
15623 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15625 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15627 * troff/Makefile, troff/node.c: Move definition of
15628 STORE_WIDTH into node.c.
15630 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15632 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15634 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15635 dvi/devdvi/texb.map: Add lq and rq.
15636 dvi/devdvi: Regenerate fonts.
15637 * ps/devps/textmap: Add lq and rq.
15638 * ps/devps: Regenerate fonts.
15639 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15640 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15642 * pic/object.c (position_rectangle): When checking radius
15643 cope with possiblity that width or height is negative.
15644 (box_object::box_object): Have separate xrad and yrad with
15645 signs matching signs of dim components.
15646 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15647 (box_object::print): With rounded boxes use absolute values
15648 for dim and rad arguments.
15650 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15653 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15655 * various files: Add explicit destructors to keep Saber CC +d
15658 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15660 * eqn/box.c (box::top_level): Restore fonts correctly after
15661 font changes in line containing inline equation. Also
15662 restore previous font as well as current font.
15663 * eqn/pbox.h: Define necessary string and register names.
15665 * troff/input.c (token::next): Case 'R' calls do_register.
15666 (do_register): New function.
15668 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15670 * groff.c, groff.sh: Support Xps device. Allow each device
15671 to have a pseudo_name and a real_name.
15673 * groff.c (run_commands): Don't print `Broken pipe' messages.
15675 * ps/pfbtops.c: New file.
15676 * ps/Makefile: Add pfbtops.
15678 * troff/number.c (parse_term): Improved error message.
15680 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15682 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15684 * Makefile: Integrate refer.
15685 * refer: New directory.
15686 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15687 man/lkbib.man: New files.
15688 * man/Makefile: Support refer man pages.
15690 * lib/lib.h: Declare is_prime.
15691 * lib/prime.c: New file.
15693 * troff/input.c (macro_source): New function.
15694 (init_input_requests): Bind "mso" to macro_source.
15696 * troff/env.c (environment::possibly_break_line): Maintain
15697 pointer to pointer to node to be split in ndp so as to avoid
15698 using address of freed node.
15700 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15701 pointer to first node to be hyphenated in startp so as to
15702 avoid using address of freed node.
15704 * troff/env.c (class trie, class hyphen_trie): Make the
15705 elements of the trie be of type char not unsigned char.
15706 Declare arguments to be const char* instead of unsigned char *.
15708 * troff/env.c (hyphenate): Initialize hbuf[0].
15710 * troff/input.c (set_string): Declare p to be char * and cast
15711 *p to unsigned char when necessary.
15713 * troff/input.c (do_define_macro): Declare s to be const
15714 char*. Cast element to unisgned char when necessary, Declare
15715 d to be an int. Handle EOF better.
15717 * troff/Makefile, troff/input.c: Different scheme for passing
15718 definitions of MACROPATH, HYPHENFILE and DEVICE.
15720 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15722 * tty/devascii/R.proto: Delete entry for em.
15723 * tty/devlatin1/R.proto: Likewise.
15725 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15727 * troff/input.c (translate): Stop when we get a space. Treat eof
15730 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15732 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15734 * tbl/main.c (process_format): A font name following a `f'
15735 modifier that starts with a digit can be only one character long.
15736 Also deal with EOF on the second character of the font name.
15738 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15740 * troff/input.c (token::next): Turn \~ into an
15741 unbreakable_space_node.
15742 * troff/node.c (unbreakable_space_node): New class.
15743 * troff/node.h: Declare it.
15745 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15747 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15748 it's >= 0, before outputting it as a single byte.
15750 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15752 * lib/font.c: Make font_char_metric::code an int.
15753 (font::get_code): Change return type to int.
15754 (font::load): Allow code to be arbitrary integer.
15755 * lib/font.h (font::get_code): Change return type to int.
15756 (font::number_to_index): Change argument type to int.
15757 * troff/input.c (token::next): In case 'N', allow any value.
15758 Store value in token::val.
15759 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15760 (token::get_char, token::add_to_node_list, token::process): Get
15762 (charinfo::set_number): Change argument to int.
15763 (charinfo::get_number): Require that NUMBERED flag be set.
15764 (get_charinfo_by_number): Store numbered characters not between 0
15765 and 255 in a dictionary.
15766 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15768 (charinfo::number): Change type to int.
15769 (charinfo::set_number): Change type of set_number to int.
15770 * troff/node.c (troff_output_file::put_char_width,
15771 troff_output_file::put_char): Test whether character is numbered
15772 using charinfo::numbered().
15773 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15775 * lib/nametoindex.c: New implementation to cope with arbitrary
15778 * troff/input.c (token::operator==): Test val for
15779 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15782 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15783 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15785 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15787 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15790 * all Makefiles: rm targets of cp and >.
15792 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15795 * eqn/lex.c (def_table): Add dollar.
15797 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15799 * troff/input.c (do_width): Push back newline before closing delim
15802 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15804 * groff.c (possible_command::prepend_arg): New function.
15805 (main): Prepend device -m option.
15806 * groff.sh: Put device -m options before command-line options.
15808 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15810 * macros/tmac.an (IP): Quote argument to TP.
15812 * ps/ps.c (main): New option -b, which sets...
15813 (broken_flags): New variable.
15814 (ps_printer::~ps_printer): Incorporate the setup section in the
15815 prolog if (broken_flags & NO_SETUP_SECTION).
15816 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15817 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15818 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15819 ps_printer::print_needed_font_comment,
15820 ps_printer::print_supplied_font_comment,
15821 ps_printer::print_include_font_comments,
15822 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15823 ps_printer::read_download_file, read_document_fonts, add_font,
15824 skip_line, parse_fonts_arg, document_font::document_font,
15825 document_font::~document_font, document_font::download,
15826 ps_output::include_file): Deleted.
15827 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15828 rather than %!PS-Adobe-2.0. Make calls to
15829 resource_manager::need_font for each font that we used. Replace
15830 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15831 print_supplied_font_comment, print_needed_font_comment by call to
15832 resource_manager::print_header_comments. Output %%Orientation
15833 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15834 Don't output the prolog directly. Instead call
15835 resource_manager::output_prolog. Only define #copies when ncopies
15836 > 1. Delete calls to print_include_font_comments and
15837 download_fonts. Add call to resource_manager::document_setup.
15838 (ps_printer::do_file): Call resource_manager::import_file instead
15839 of including it ourselves.
15840 (ps_printer::do_import): Likewise. Also don't call
15841 merge_import_fonts. Push userdict on the dictionary stack before
15842 and pop it afterwards.
15843 Move declaration of ps_output into ps.h.
15844 * ps/psrm.c: New file implementing resource_manager class.
15845 * ps/ps.h: New file declaring ps_output and resource_manager
15847 * ps/devps/zapfdr.ps:
15848 * ps/devps/symbolsl.ps:
15849 * ps/devps/prologue: Use 3.0 conventions.
15850 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15851 Add default definition of BROKEN_SPOOLER_FLAGS.
15852 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15853 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15855 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15857 * etc/grog.pl: New file.
15858 * Makefile (GROG): New variable.
15859 Add GROG to SUBFLAGS.
15860 * etc/Makefile (GROG): New variable.
15861 (install.nobin): Install $(GROG) rather than grog.sh.
15863 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15865 * eqn/special.c (special_box::compute_metrics): Make the input and
15866 output strings the same. Get the new height and depth from the
15867 predefined height and depth registers. Also make subscript kern
15868 and skew available.
15869 (special_box::compute_subscript_kern, special_box::compute_skew):
15872 * eqn/box.c (pointer_box::compute_skew,
15873 simple_box::compute_metrics, box::top_level)
15874 * eqn/text.c (prime_box::compute_metrics,
15875 prime_box::comput_subscript_kern)
15876 * eqn/limit.c (limit_box::compute_metrics):
15877 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15878 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15879 negative numbers in `nr' requests with a leading 0.
15881 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15883 * eqn/special.c: New file.
15884 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15885 Add new rule for simple.
15886 * eqn/lex.c (token_table): Add SPECIAL.
15887 * eqn/box.h: Declare make_special_box.
15888 * eqn/Makefile: Add special.[co].
15890 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15892 * ps/devps/prologue: Possibly set packing to true while defining.
15893 Create grops dictionary here. Initialize local variables before
15894 defining procedures.
15895 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15896 the dictionary stack. Set strokeadjust and overprint to false if
15897 the relevant operators are defined.
15898 (PEND): New procedure.
15899 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15900 prologue. Do everything else in the setup section.
15901 (ps_printer::do_import): Just call PBEGIN and PEND around the
15902 picture. Also push userdict before, and pop it afterwards.
15904 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15906 * troff/node.c (bracket_node::tprint): Brackets were being printed
15909 * macros/tmac.an (SH, SS): Set fill mode.
15911 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15913 * troff/div.c (top_level_diversion::begin_page): Set
15914 high_water_mark to 0.
15916 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15918 * man/mdate.sh: New file.
15919 * man/mdate.c: Deleted.
15920 * man/Makefile: Use mdate.sh instead of mdate.
15923 * eqn/lex.c (do_gsize): Supply missing argument to error message.
15925 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
15927 * man/mdate.c: New file.
15928 * man/*.man: Replace modification date by @MDATE@.
15929 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15930 (mdate): New target.
15932 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15933 Remove illegal input characters.
15935 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
15937 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15939 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
15941 * troff/div.c (begin_page): Change behaviour when
15942 !first_page_begun and !break_flag.
15944 * troff/input.c (do_name_test): Return 0 if argument is empty.
15946 * troff/input.c (read_long_escape_name): Require closing ] to be
15947 at same input level as opening [.
15949 * troff/input.c (read_increment_and_escape_name): New function.
15950 (get_copy, process_input_stack): Use this for \n.
15952 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
15954 * troff/div.c (top_level_diversion::begin_page): Ignore the
15955 current value of page_number if !first_page_begun.
15957 * groff.c (main): Fix declaration of buf.
15959 * troff/input.c (do_name_test): New function.
15960 (token::next): Implement \A.
15961 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15962 (token::description, token::add_to_node_list, token::process):
15963 Handle TOKEN_ESCAPE.
15964 * troff/token.h: New token TOKEN_ESCAPE.
15966 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
15968 * pic/main.c (do_picture): Allow space before and after filename
15969 following `<'. Check that the filename is not empty.
15971 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
15973 * Version 1.01 released.
15975 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15977 * dvi/tmac.dvi: ftr HR to H.
15979 * macros/tmac.e: Round up computation of $r.
15981 * xditview/tmac.X: Don't give up completely in compatibility mode.
15982 Use \n(.s instead of \n[.s].
15984 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15985 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15986 Add u to factors inside \s[...]. Rename frac to dvi-frac.
15987 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15988 short names in the char definitions.
15990 * ps/tmac.ps: Don't give up completely in compatibility mode.
15991 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15992 quote in front of \n(.s. Add u to factors inside \s[...].
15994 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
15996 * tty/tmac.tty: Call the nroff request.
15998 * macros/tmac.e ((x, )x): Better definitions that work properly
16000 (@0, @1): Helper macros for (x.
16002 * macros/tmac.e ($s, hl): Use \l rather than \D.
16004 * tty/tmac.tty: Make it work better in compatibility mode.
16005 (pchar): Rename to tty-char.
16007 * macros/tmac.e (@E): New macro.
16008 (r, i, b, rb, bi): Use @E.
16010 * macros/tmac.e (@F): Don't use (;...) syntax.
16012 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16013 it was modified for groff.
16015 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16017 * macros/tmac.e (<., .>): Removed.
16018 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16020 * macros/tmac.e: Remove check that groff is being used.
16022 * macros/tmac.e (@C): Change families only if using groff; turn
16023 compatibility mode off while changing familes. Save compatibility
16024 mode before changing families and restore it afterwards.
16026 * macros/tmac.e (@h): Remove test for offset + line length.
16028 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16029 (lo, th, ac): Define to call @S instead of using als.
16031 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16032 the ratio of the vertical spacing to the point size in units
16033 expressed as a percentage. Use these instead of $10r and $10R,
16034 Delete $10r and $10R.
16036 * lib/font.c (font::load): In default computation of space_width,
16037 divide by sizescale. Use scale_round.
16039 * macros/tmac.an (TP): Don't call `nf'.
16040 (an-do-tag): Don't call `fi'.
16042 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16044 * troff/input.c (process_input_stack): Handle the case where
16045 spaces at the beginning of an input line are followed by a
16048 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16050 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16051 * groff.sh: Use pic -x with the dvi device.
16053 * dvi/devdvi/FontMakefile (H): Don't use -s.
16055 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16056 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16057 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16060 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16062 * ps/psfig.diff: New file.
16063 * ps/tmac.psfig: New file.
16065 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16067 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16068 (]-): Don't call ref*do-tl.
16070 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16072 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16073 (fn@do-FS): Rename to fn*do-FS.
16075 * troff/input.c (transparent_translate): New function.
16076 (process_input_stack): Apply transparent_translate before calling
16077 diversion::transparent_output(unsigned char).
16079 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16081 * troff/input.c (do_define_macro): Define the macro before calling
16084 * xditview/Makefile: Add DEVICES variable. Change install target
16087 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16089 * groff.c (run_commands): Handle the possibility that there are
16090 child processes other than those forked by us.
16092 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16094 * lib/string.c (string::append): New function.
16095 * lib/stringclass.h: Declare it.
16097 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16099 * eqn/main.c (main): New option -N which sets
16100 no_newline_in_delim_flag.
16101 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16103 * groff.c (main): Pass -N on to eqn.
16104 (help, synopsis): Mention -N.
16105 * groff.sh: Implement -N.
16107 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16109 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16110 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16111 (XP): Allow as initializer.
16113 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16115 * troff/env.c (environment::wrap_up_field): If field_spaces are
16116 non-zero and we have a current_tab, subtract padding from
16117 tab_distance. If this makes tab_distance <= 0, use the next tab
16118 stop instead. If there isn't any next tab or it's a left tab,
16119 wrap up the current tab.
16120 (environment::start_field): Initialize tab_precedes_field.
16121 (environment::wrap_up_tab): If there's a current field, update
16122 pre_field_width, field_distance and tab_precedes_field.
16123 * troff/env.h (environment::tab_precedes_field): New member.
16125 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16127 * ps/ps.c (ps_printer::do_file): New function.
16128 (ps_printer::special): Bind to `file' special.
16129 (ps_printer::do_exec): Set ndefined_styles to 0.
16131 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16133 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16134 Avoid stripping first character from the start of unrecognized
16135 escapes. Use lex_error instead of error to report errors.
16136 * eqn/lex.c (get_token): Rework handling of escapes.
16137 (lex_error): Move declaration into...
16140 * xditview/xditview.c (main): Make -page option work.
16142 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16144 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16146 * macros/tmac.s (B2): Correct size of box.
16148 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16150 * macros/tmac.s (B2): Postpone drawing the box until in the
16151 top-level diversion.
16153 * tty/tmac.tty: Add font translations for C, CR, CW.
16155 * groff.c (synopsis, help): Document -i.
16156 * groff.sh: Implement -i.
16158 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16159 Simplify the construction of SN.
16161 * troff/number.c (parse_term): Give `|' a higher precedence.
16162 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16165 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16167 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16169 * lib/string.c (string::move): New function.
16170 * lib/stringclass.h: Declare it.
16172 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16174 * troff/env.c (distribute_space): Add optional argument
16176 (environment::wrap_up_field): Call distribute_space with
16177 `force_forward' argument of 1.
16179 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16181 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16182 Inline it. Move reallocation into...
16183 (string::grow1): New function.
16184 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16185 dependencies to include library header files.
16186 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16188 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16190 * macros/tmac.s (@NH): Use the same number registers than -ms does
16191 for the heading level counters. Use the same string that -ms does
16192 for the number for this heading.
16194 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16196 * lib/new.c (operator new): Cast result of malloc to char *.
16198 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16201 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16203 * groff.c (main): Support -i.
16205 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16207 * pic/pic.h: Include <osfcn.h>.
16209 * ps/ps.c: Add declaration of mktemp.
16211 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16212 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16213 argument as union wait *.
16214 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16215 argument to union wait *.
16217 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16219 * tty/tmac.tty: Add definition of \(co.
16221 * pic/object.c (make_arc): Only increase radius when radius
16222 strictly less than d.
16223 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16226 * troff/env.c (environment::environment(symbol),
16227 environment::environment(const environment *)): Initialize
16230 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16232 * tbl/main.c (main): Add exit(0).
16234 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16236 * pic/main.c (main):
16237 * eqn/main.c (main):
16238 * tbl/main.c (main):
16239 * etc/soelim.c (main):
16240 * driver/printer.c (printer::~printer):
16241 * troff/node.c (real_output_file::~real_output_file,
16242 real_output_file::flush): Check for errors on stdout.
16244 * most files: Add 1991 to copyright notice.
16246 * macros/tmac.s: Don't test \n(.x and \n(.y.
16248 * troff/input.c (token::next): Rename `escape_char' label to
16249 `handle_escape_char' and `normal_char' label to
16250 `handle_normal_char'.
16252 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16254 * groff.c (main, synopsis, help): Support -a option.
16255 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16256 to trflags while parsing options.
16258 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16260 * troff/number.c (parse_term): With `m', `M' and `n' scale
16261 indicators, convert scale factor to hunits before scaling.
16263 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16265 * lib/font.c (scale_round): Better test for overflow when n is
16268 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16270 * tbl/main.c (process_format): Add second argument of type
16271 options*. Change callers. Allow opt->tab_char as well as '\t'
16272 between format items.
16274 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16276 * macros/tmac.an (PD): With no arguments, make sure register PD is
16278 (TH): Call PD with no argument, instead of setting register PD
16281 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16283 * Version 1.00 released.
16285 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16287 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16289 * dvi/devdvi/DESC: Mount CW instead of CR.
16291 * dvi/tmac.dvi: Add definition of \(tm.
16293 * dvi/devdvi/texsy.map: Add lh, and rh.
16294 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16295 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16297 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16298 * dvi/devdvi/Makefile: Install H.
16299 * dvi/devdvi/H: New file.
16301 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16303 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16306 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16308 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16310 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16312 * macros/tmac.s (@EN): Handle the case where the equation is empty
16313 but the label is not.
16315 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16317 * troff/groff.h: New warning category WARN_SPACE.
16318 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16319 WARN_SPACE to warning_table.
16320 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16321 is longer than two characters and is not defined, but the first
16322 two characters do make a defined name.
16324 * PROBLEMS: New file.
16326 * CHANGES: New file.
16327 * README-0.6, README-1.00: Deleted.
16329 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16330 * xditview/devX75/Makefile: Make devX75-12.
16331 * xditview/devX100/Makefile: Make devX100-12.
16333 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16334 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16336 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16338 * README-0.7: Rename to README-1.00.
16340 * macros/tmac.pic: New file.
16341 * macros/Makefile (install.nobin): Install tmac.pic.
16343 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16345 * troff/env.c (hyphen_word): Correct the test for whether the
16346 token is a hyphen. Reset npos to 0.
16348 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16350 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16352 * macros/tmac.s (ds*common-end): Call par*reset.
16354 (par@reset-indent): Deleted.
16356 * macros/tmac.s (@IP): Divert the label.
16358 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16360 * xditview/draw.c (setGC): Use a line width of .1m rather than
16361 .04m by default; round rather than truncate value.
16363 * tbl/table.c (class empty_entry): New class.
16364 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16365 (table::add_entry): Represent empty entries by objects of type
16367 (table_entry::line_type): Return -1.
16368 (table::determine_row_type): Ignore entries with line_type 0.
16369 Treat type -1 as non-lines.
16371 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16373 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16374 macros/tmac.s: Rename \(-d to \(Sd.
16376 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16378 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16379 * xditview/libXdvi/DviChar.c: Likewise.
16380 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16382 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16384 * troff/div.c (top_level_diversion::begin_page): Call
16385 init_output() if the_output is 0.
16387 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16389 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16391 (get_copy): Turn \E into ESCAPE_E.
16392 (token::process, asciify): Handle ESCAPE_E.
16394 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16396 (DS): Implement `.DS R'.
16398 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16400 * macros/tmac.s (FS): New macro.
16402 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16404 * macros/tmac.s (cov*tl-init): Remove after first execution
16405 instead of aliasing to @nop. Call top of page macro explicitly
16406 instead of setting trap; call @init first. Set pg@top as top of
16408 (cov*auto-init): Deleted. Set cov*tl-init instead of
16409 cov*auto-init as top of page trap.
16410 (TL, LP): Do a break instead of calling cov*tl-init.
16411 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16412 @FE; in this case also give a warning and always start another
16413 page. No need to set pg@top here.
16414 (cov*tl-init): Rename to cov*first-page-init.
16416 * macros/tmac.s (RP): Do `.pn 0'.
16417 (cov*tl-init): With RP format don't do `.pn 0'.
16419 * macros/tmac.s (pg@cs-top): Set no space mode.
16421 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16422 (cov*ab-init): Alias TL, AU and AI to these.
16424 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16426 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16427 (@EN): Do nothing unless \n[dl] is > 0.
16429 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16431 * pic/object.c (ellipse_object::radius): New function.
16433 * VERSION: Change version to 0.7.
16435 * tbl/table.c (block_entry::do_divert): Declare return type as
16437 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16439 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16441 * troff/column.c: New file.
16442 * troff/Makefile: Corresponding changes.
16444 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16447 * troff/div.c (top_level_diversion::space): If the space causes
16448 the first-page transition and springs a trap, truncate the space
16451 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16453 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16456 * pic/troff.c (troff_output::line_thickness,
16457 troff_output::set_fill): Do a horizontal motion to compensate for
16458 the width of the \D escape sequence.
16460 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16462 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16465 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16468 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16469 Supply empty definition.
16470 (text_entry::simple_print, simple_text_entry::simple_print):
16471 Delete declarations.
16472 (table::add_entry): Represent empty entries by objects of type
16475 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16477 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16479 * tbl/table.c (left_text_entry::add_tab): New function.
16481 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16482 initialize like LP.
16484 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16486 * troff/env.c (environment::start_field): Give an error message if
16487 there is no next tab.
16489 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16491 * troff/env.c (hyphenate): Skip initial elements with zero
16494 * macros/tmac.s (par@init): Keep VS in points rather than units.
16496 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16498 * pic/main.c (main): Implement `-c' option.
16499 * pic/output.h: Declare make_tpic_output().
16500 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16502 (tpic_output): New class.
16503 (tpic_output::tpic_output, tpic_output::set_pen_size,
16504 tpic_output::command, make_tpic_output): New functions.
16506 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16508 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16509 if they're not already defined.
16510 * tbl/table.c (init_output): Don't test \n(.g.
16512 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16513 `d', `r' and `c' conditions even in compatibility mode.
16515 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16517 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16520 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16522 * troff/env.h (environment::prev_line_interrupted): New member.
16523 (environment::get_prev_line_interrupted): New function.
16524 * troff/env.c (environment::newline): Set prev_line_interrupted.
16525 (environment::environment(const environment *),
16526 environment::environment(symbol)): Initialize
16527 prev_line_interrupted.
16528 * troff/input.c (process_input_stack): Don't give special
16529 treatment to space and newline at the beginning of the line if the
16530 previous line was interrupted.
16532 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16534 * eqn/eqn.y: Disallow PRIME by itself.
16535 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16537 (def_table): Remove definition of '. Define prime to be `.
16539 * eqn/eqn.y: Split off part of rule `script' into a new rule
16542 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16544 * macros/tmac.s ({, }): New string aliases.
16546 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16548 * README-0.7: New file.
16550 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16552 * macros/tmac.s: New file.
16553 * man/groff_ms.man: New file.
16554 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16555 * Makefile.bd: Similarily.
16556 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16557 definition of TMAC_S.
16558 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16559 * macros/TODO: New file.
16561 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16563 * troff/env.c (right_justify): New function.
16564 (init_env_requests): Bind this to request "rj".
16565 (center_lines): Set right_justify_lines to 0. If we get a bad
16566 integer, center 1 line.
16567 (environment::environment(symbol), environment::environment(const
16568 environment *)): Initialize right_justify_lines.
16569 (environment::get_right_justify_lines): New function.
16570 (init_env_requests): Bind this to number_register ".rj".
16572 * troff/env.c (environment::choose_breakpoint): Implement
16573 hyphenation_margin and hyphenation_space.
16574 (environment::get_hyphenation_space,
16575 environment::get_hyphenation_margin): New functions.
16576 (init_env_requests): Bind these to .hys and .hym.
16577 (hyphenation_space_request, hyphenation_margin_request): New
16579 (init_env_requests): Bind these to hys and hym.
16580 (environment::environment(symbol), environment::environment(const
16581 environment *)): Initialize hyphenation_margin and
16583 * troff/env.h: Corresponding changes to class environment.
16585 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16587 * troff/div.c (blank_line): Always do a break.
16589 * eqn/box.c (do_text): Turn off escapes while appending text to
16592 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16594 * troff/input.c (while_break_request, while_continue_request): New
16596 (init_input_requests): Bind these to "break" and "continue".
16597 (while_depth, while_break_flag): New variables.
16598 (while_request): Update while_depth. Break out of loop if
16599 while_break_flag is set.
16601 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16603 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16606 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16608 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16610 * stringify: New file.
16611 * Makefile (groff.o): Use stringify.
16613 * xditview/tmac.X: Remove definition of \(rn.
16614 * xditview/libXdvi/DviChar.c: Remove radicalex from
16617 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16619 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16620 (alphabetic_block_entry::alphabetic_block_entry,
16621 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16623 (block_entry::divert): Split off body into ...
16624 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16625 from the line length; also update the span width to dl+2n, and the
16626 alphabetic span width to dl.
16628 * driver/input.c (do_file): While reading argument to D command,
16629 when expanding buffer, multiply szp by sizeof(int) rather than 2
16630 in the argument to memcpy.
16632 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16633 width of alphabetic columns.
16635 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16637 * troff/node.c (lookup_family): Supply second argument to lookup.
16639 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16640 search, return immediately if v is 0.
16642 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16643 (troff_output::start_picture): Set this reg.
16644 (troff_output::end_picture): Remove this reg
16645 * eqn/box.c (box::extra_space): Don't produce `\x's if
16646 EQN_NO_EXTRA_SPACE_REG is defined.
16648 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16649 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16652 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16654 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16657 * troff/div.c (top_level_diversion::top_level_diversion):
16658 Initialize page_number to 0.
16660 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16662 * groff/troff (environment::environment(const environment *)):
16663 Initialize name to e->name, rather than "anonymous".
16665 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16667 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16668 requested_page. Split middle part into ...
16669 (FindPage): New function.
16670 (SetValues): If we don't yet know the last page, and the requested
16671 page is greater than the current page, call FindPage.
16672 Update the font_map_string before doing this.
16674 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16675 Translate \(lh and \(rh into left and right double arrows.
16677 * troff/node.c (class hyphen_inhibitor_node): New class.
16678 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16679 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16680 hyphen_inhibitor_node::type,
16681 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16682 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16683 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16686 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16688 * troff/node.h (dummy_node::get_hyphenation_type,
16689 transparent_dummy_node::get_hyphenation_type): Declare them.
16690 * troff/node.c: (dummy_node::get_hyphenation_type,
16691 transparent_dummy_node::get_hyphenation_type): New functions.
16693 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16695 * xditview/libXdvi/draw.c: If M_PI not defined after including
16696 math.h, then define it.
16698 * xditview/Makefile: Add definition of AR. Pass it to the submake
16700 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16702 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16704 * troff/dictionary.h (object_dictionary::alias): Declare return
16706 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16707 if the old name was defined.
16708 * troff/input.c (alias_macro): Give a warning if the old name was
16710 * troff/reg.c (alias_reg): Likewise.
16712 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16714 * troff/input.c (token::next): Delete implementation of \R.
16716 * macros/Makefile: Strip comments from tmac.e while installing it.
16718 * troff/input.c: New variable `nroff_mode'.
16719 (troff_request, nroff_request): New functions.
16720 (init_input_requests): Bind `troff' and `nroff' to troff_request
16722 (do_if_request): Compute results of t and n conditions from
16725 * text/text.c (split_text): Fix typo in >=.
16727 * eqn/lex.c: Add definition of `==' to def_table.
16729 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16731 * pic/tex.c (tex_output::start_picture): Change the definitions of
16732 \graph and \graphtemp so that they work properly with Plain TeX.
16734 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16735 argument to `ar' is not less than the first.
16737 * pic/pic.y: Allow a comma between elements of the variable list
16738 in the argument to `reset'.
16740 * pic/object.c (arc_object::arc_object): Fix computation of
16743 * eqn/main.c (main): Add exit(0).
16745 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16747 * troff/div.c (begin_page): Test no_space_mode after doing the
16748 break, but still push the page ejector cookie before doing the
16749 break. Also set the next page number after doing the break.
16751 * xditview/xditview.c (NewFile): Don't set the title and icon name
16752 if this is the first file and its name is `-'.
16753 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16754 the X75 and X100 devices.
16755 (main): If a device has the XT_OPTION flag set and there's exactly
16756 one file argument, pass the driver -xrm and -title options to set
16757 the icon name and window title to the name of the file.
16759 * troff/env.c (environment_switch): If there was an argument but
16760 it wasn't a valid number or name, then pop an environment but
16761 don't give an error message on underflow.
16763 * troff/number.c (start_number): Correct spelling in error message.
16765 * troff/input.c (token::delimiter): Don't print an error message
16768 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16769 ParseDrawFunction if dw->display_enable is true.
16771 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16773 * pic/pic.y: Parse text positioning like normal attributes, so as
16774 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16775 positioning attribute.
16777 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16779 * tbl/main.c (process_data): When in state START while reading a
16780 text block, don't change to state MIDDLE if c is a newline.
16782 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16784 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16785 so as to avoid shadowing parameter.
16787 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16789 * tbl/table.c (trim_space): Deleted.
16790 (table::add_entry): Don't call trim_space.
16792 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16794 * VERSION: Change version to 0.6.
16796 * troff/number.c (parse_expr): Make == work.
16798 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16800 * man/grog.man: New file.
16801 * man/Makefile: Add grog.n to MAN1PAGES.
16802 * etc/grog.sh: New file.
16803 * etc/Makefile: Install grog.sh as grog.
16805 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16807 * troff/input.c (token::next): Implement \E.
16809 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16811 * xditview/tmac.X: Change font translations to match tmac.ps.
16813 * troff/input.c (non_empty_name_warning): Don't give a warning if
16814 `\{' terminates the name.
16816 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16818 * ps/devps/symbol.diff: New file.
16819 * ps/devps/FontMakefile: Mention symbol.diff.
16821 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16823 * troff/node.c (font_position): Use get_long_name to read the
16826 * troff/env.c (environment_switch): If we get a number that's < 0
16827 or >= NENVIRONMENTS, treat it like a name.
16828 Change NENVIRONMENTS to 10.
16830 * troff/groff.h: Remove definition of FONTS_MAX.
16831 * troff/node.h (class font_family): Make map a pointer instead of
16832 an array. Add a map_size member. Make it a class. Make nm const
16833 and public. Make invalidate_fontno a friend.
16834 * troff/node.c: Define font_table_size. Make font_info a pointer
16835 rather than an array.
16836 (class troff_output_file): Allocate font_position dynamically. Add
16837 nfont_positions member.
16838 (troff_output_file::set_font): Grow font_position if necessary.
16839 (troff_output_file::~troff_output_file): Delete font_position.
16840 (troff_output_file::troff_output_file): Allocate font_position.
16841 (grow_font_table): New function.
16842 (troff_output_file::really_begin_page,
16843 troff_output_file:really_copy_page): Use nfont_positions rather
16845 (mount_font_no_translate, mount_style): Call grow_font_table if
16847 (font_family::font_family): Allocate map.
16848 (font_family::make_definite): Grow map if necessary. Use
16849 font_table_size instead of FONTS_MAX.
16850 (font_family::~font_family): New function.
16851 (invalidate_fontno): Use font_family::map_size.
16852 (get_fontno, env_space_width, env_half_narrow_space_width,
16853 env_narrow_space_width, symbol_fotno, is_good_fontno,
16854 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16856 (next_available_font_position): Never return 0.
16858 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16860 * ps/tmac.ps: Add font translations for compatibility with dpost.
16862 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16864 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16865 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16866 Move definitions baseline_sep, shift_down, column_sep,
16867 matrix_side_sep into...
16868 * eqn/box.c: Add them to param_table.
16869 * eqn/pbox.h: Add declarations to pbox.h.
16871 * troff/input.c (set_string): Cast value to unsigned char *.
16873 * troff/token.h (process_input_stack): Declare it static before
16874 declaring it a friend.
16876 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16878 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16880 * dvi/devdvi/EX: Regenerate.
16882 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16885 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16887 * eqn/lex.c: In defaults_table, make definition of `dot' call
16888 `dot_def'. Don't explicitly make it roman. Similarily for other
16891 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16893 (for_input::get, for_input::peek): Use this.
16894 (do_for): Add by_is_multiplicative argument.
16895 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16896 Change semantic value of optional_by to be a double plus a flag
16897 saying whethet the by clause is multiplicative.
16899 * eqn/lex.c (get_delimited_text): Remember location of start of
16900 definition. Improve error handling when EOF is encountered.
16902 * lib/font.h: Rename handle_x_command to
16903 handle_unknown_font_command.
16904 * lib/font.c (font::load): Call handle_unknown_font_command for
16905 any unknown command in the font description file. Don't call
16906 handle_x_command. Include the name of the command in the argv.
16907 Improve message for unknown command after kernpairs or charset
16909 * ps/ps.c (ps_font::handle_x_command): Rename to
16910 handle_unknown_font_command. Remove message about `x download'
16911 command. Give error message for wrong number of arguments.
16912 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16913 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16914 handle_unknown_font_command. Give an error message for wrong
16915 number of arguments. Rename design_size to designsize.
16916 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16917 checksum', `designsize' instead of `design_size'.
16919 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16921 * eqn/*.[chy]: Change underaccent to uaccent.
16923 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
16924 give it the same precedence as ACCENT.
16925 * eqn/other.c (make_underaccent_box): New function.
16926 * eqn/box.h: Declare it.
16927 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16930 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
16932 * pic/pic.y (reset_all): New function. Called in rule for RESET.
16933 (parse_init): Call reset_all.
16934 (define_variable): When defining scale reset only those
16935 pre-defined variables that are scaled.
16936 (defaults_table): Add `scale' as non-scaled value.
16938 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16939 together with the text; allow any number of positioning words;
16940 allow center as a positioning word.
16942 * pic/object.c (output::compute_scale): Get picture maximum height
16943 and width from variables called maxpswid and maxpsht.
16944 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16946 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
16948 * pic/object.c (object_spec::make_text): Multiply textht by number
16951 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16953 (do_sprintf): New function.
16954 (pic.gperf): Add sprintf token.
16955 (text, sprintf): New rules.
16957 * pic/pic.y: `rand()' with no arguments returns a random number
16958 in the range [0,1).
16960 * pic/pic.y: Allow a bare expression to be an attribute: change
16961 precedences to support this. Change optional_ordinal rule to
16962 optional_ordinal_last to avoid reduce/reduce conflict.
16963 * pic/object.c (object_spec::object_spec): Initialize direction.
16965 * pic/pic.y: Implement ^ operator meaning exponentiation.
16967 * troff/node.h: Add default argument to mount_font.
16968 * troff/node.c (font_position): Read an optional third argument
16969 giving the external_name.
16970 (mount_font): Add optional argument giving the external_name.
16971 (mount_font_not_translate): Have additional argument giving
16972 external name. Use this name to load the font. Pass both names
16973 to font_info::font_info.
16974 (font_info::font_info): Have additional argument giving
16976 (class tfont): New member external_name.
16977 (font_info::get_tfont): Use external name to construct tfont_spec.
16979 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
16981 * eqn/lex.c (init_table): Add argument giving device. Define
16982 name of device to be "1".
16983 (do_ifdef): Counts as true if the argument has been defined with
16985 * eqn/main.c (main): Call init_table with device argument. Make
16986 device local to main.
16987 * eqn/eqn.h: Change declaration of init_table. Remove declaration
16990 * pic/lex.c (get_delimited): Allow text to be delimited by
16991 matching {}s. Don't recognize ending delimiter within a string.
16993 * troff/input.c (get_delim_name): New function.
16994 (token::next): Implement \C.
16996 * lib/font.c (font::load): Grok ---. Add an alias for each
16997 character based on its code.
16998 (font::get_code_width): Deleted.
16999 * lib/font.h (class font): Declare font::number_to_index().
17000 Remove declaration of font::get_code_width.
17001 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17002 to indices of named characters.
17003 (font::number_to_index): New function.
17004 * troff/input.c (font::number_to_index): New function.
17005 (get_charinfo_by_number, charinfo::get_number,
17006 charinfo::set_number): New functions.
17007 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17008 (token::process, token::description, token::get_char,
17009 token::add_to_node_list, token::operator==): Handle
17010 TOKEN_NUMBERED_CHAR.
17011 * troff/charinfo.h: Declare get_charinfo_by_number,
17012 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17014 (charinfo::numbered): New function.
17015 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17016 * troff/env.h (class environment): Remove declaration of ...
17017 * troff/env.c (environment::make_numbered_char_node): Deleted.
17018 * troff/node.c (make_numbered_node): Deleted.
17019 (class numbered_glyph_node): Remove.
17020 (troff_output_file::put_char_width, troff_output_file::put_char):
17021 Handle numbered chars.
17022 (troff_output_file::numbered_char): Removed.
17023 (tfont::get_code_width): Removed.
17024 (make_glyph_node): Don't search special fonts for numbered
17026 * troff/node.h: Remove declaration of make_numbered_node.
17027 * driver/input.c (do_file): Handle N command.
17028 * driver/printer.h: Add declaration of ...
17029 * driver/printer.c (printer::set_numbered_char): New function.
17030 * dvi/tfmtodit.c (main): Generate unnamed entries.
17031 * ps/devps/afmtodit: Likewise.
17032 * xditview/xtotroff.c (MapFont): Likewise.
17033 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17035 * tbl/main.c (process_format): If multiple widths are specified
17036 for a column but all the widths are the same, don't give an error
17039 * tbl/table.c (table::do_row): If the current row is all lines and
17040 the stuff doesn't contains a line, mark the top of the row after
17041 printing stuff before the row. If the current row is not all
17042 lines and the stuff doesn't contain a line, don't unnecessarily
17043 mark the top of the row before printing the stuff.
17045 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17047 * troff/groff.h: Remove MAX_PATH.
17048 * troff/input.c (open_file): Dynamically allocate space for the
17050 (open_mac_file, process_macro_file): Corresponding changes.
17052 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17054 * troff/node.h (class output_file): Make copy_file pure. Add
17055 vspace method ifdef COLUMN. Add is_printing method.
17056 * troff/node.c: Add class printing_reg. Add class
17057 real_output_file. Derive other output_file classes from
17058 real_output_file; in these classes rename begin_page to
17059 really_begin_page, print_line to really_print_line, copy_file to
17060 really_copy_file, transparent_char to really_transparent_char.
17061 Move output_file::flush to real_output_file. Add printing member
17062 to class output_file.
17063 * troff/div.h: Remove printing member from top_level_diversion.
17064 Add vspace member function to class diversion ifdef COLUMN. Add
17065 some declarations ifdef COLUMN.
17066 * troff/div.c (top_level_diversion::copy_file,
17067 top_level_diversion::transparent_output,
17068 top_level_diversion::output): Don't test printing member before
17070 * troff/input.c: Handle initial variable_space_request ifdef
17072 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17073 but comment it out.
17075 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17077 * troff/div.c (diversion::need): Make any space forced. If we
17078 sprung a trap, set truncated_space to minus the distance to the
17079 trap and set needed_space to the amount that was needed.
17080 (top_level_diversion::space): A forced space turns no_space_mode
17082 (class constant_vunits_reg): New class.
17083 (init_div_requests): Implement number registers .trunc and .ne
17084 using constant_vunits_reg.
17085 (class truncated_space_reg): Deleted.
17087 * troff/div.h: Don't have a no_space_mode member in diversion.
17088 Instead have it in top_level_diversion.
17089 * troff/div.c (diversion::diversion): Don't initialize
17091 (top_level_diversion::top_level_diversion): Initialize
17093 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17094 (macro_diversion::output): Don't clear no_space_mode.
17096 * troff/input.c (diverted_space_node::reread): Don't call
17097 environment::do_break. In fill mode, act like a blank line.
17098 (diverted_copy_file_node::reread): Don't call
17099 environment::do_break.
17101 * troff/div.c (blank_line): New function.
17102 * troff/div.h: Declare it.
17103 * troff/input.c (process_input_stack): Call it.
17105 * troff/div.c (truncated_space_reg::get_string): New function.
17106 (init_div_requests): Bind to .trunc.
17107 (space_request, top_level_diversion::space,
17108 top_level_diversion::output, macro_diversion::space,
17109 macro_diversion::output): Update truncated_space.
17110 (macro_diversion::output): Redo calculations when trap sprung.
17111 (macro_diversion::output, macro_diversion::space): No need for
17114 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17115 after truncating post line spacing.
17117 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17119 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17120 defined as a procedure rather than as an operator.
17122 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17124 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17126 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17128 * troff/div.c (top_level_diversion::output): Merge
17129 output_file::print_line and output_file::end_of_line member
17131 * troff/div.h (class output_file):
17132 * troff/node.c (troff_output_file::print_line,
17133 troff_output_file::end_of_line, output_file::end_of_line,
17134 ascii_output_file::print_line, suppress_output_file::print_line):
17135 Corresponding changes.
17137 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17139 * troff/input.c (token::next): Don't give a warning for `\.'.
17141 * troff/env.c (environment::get_center_lines): New function.
17142 (init_env_requests): Bind number register .ce to it.
17143 * troff/env.h: Declare it.
17144 * tbl/table.c (table::init_output): Define reset macro to restore
17145 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17147 (table::print): If center option not given, then imply center
17148 option if SAVED_CENTER_REG > 0.
17150 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17152 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17153 Troff.ps from DOWNLOAD.
17155 * troff/Makefile: Change comment in DEFINES to avoid confusing
17158 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17159 code. Don't try to catch errors with stopped.
17160 (check_line_lengths): New function.
17161 * ps/devps/prologue (EXEC): Deleted.
17162 (EBEGIN, EEND): New procedures.
17164 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17166 * troff/input.c: Include request.h before node.h.
17167 * troff/node.c: Likewise.
17168 * troff/env.c: Likewise.
17169 * troff/div.c: Likewise.
17170 * troff/node.h (class special_node): Store argument as a macro
17171 rather than a char *.
17172 * troff/node.c (special_node::special_node, special_node::copy):
17174 (special_node::~special_node): Deleted.
17175 (special_node::tprint): Deleted.
17176 (special_node::tprint_start, special_node::tprint_end,
17177 special_node::tprint_char): New functions.
17178 (troff_output_file::special): Deleted.
17179 (troff_output_file::start_special, troff_output_file::end_special,
17180 troff_output_file::special_char): New functions.
17181 * troff/input.c (special_node::tprint): New function.
17182 (do_special): Use macro not char *.
17183 (do_transparent_macro): Deleted.
17184 (token::next): Don't call do_transparent_macro.
17186 * troff/input.c (token::next): Add 'Y' case.
17187 (do_transparent_macro): New function.
17188 * troff/node.c (troff_output_file::special): Handle newlines with
17189 argument using new continuation convention.
17190 * driver/input.c (get_string): Cope with continuation convention.
17191 (do_file): Don't call skip_line after calling get_string(1).
17192 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17193 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17195 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17198 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17200 * troff/input.c (asciify): By default, illegal input characters
17201 should return empty string.
17203 * troff/input.c (copy_file): Handle first page transition like title.
17204 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17206 * troff/input.c (token::next): Improve error message for EOF after
17208 (input_char_description): New function.
17209 (get_char_for_escape_name): Use input_char_description.
17210 (token::next): Warn about unrecognized escape sequences.
17211 (warning_table): Add WARN_ESCAPE.
17212 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17215 * troff/token.h: Remove declaration of process_input_stack.
17217 * troff/input.c: Remove declaration of init_hyphen_requests.
17218 * troff/request.h: Correct spelling in declaration of same.
17220 * troff/input.c (token::next): Check whether escape_char is 0.
17222 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17224 * groff.c (main, usage, help): Implement -P and -L options.
17225 * groff.sh: Likewise.
17227 * troff/input.c (token::next): Use some gotos to avoid code
17230 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17231 Avoid calling symbol::symbol if name empty.
17233 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17235 * troff/input.c (init_input_requests): Make \n(.x return the major
17236 version number and \n(.y return the minor version number.
17237 * troff/Makefile: Construct file majorminor.c defining
17238 major_version and minor_version automatically from ../VERSION.
17240 * troff/node.c (class glyph_node): Make operator new and operator
17242 (class ligature_node): Similarily.
17244 * troff/input.c (operator==(const macro &, const macro &)): New
17246 (non_interpreted_node::same): Use this.
17247 (string_iterator::string_iterator): Make macro& argument const.
17249 * troff/input.c (input_iterator::get): New function. Don't make
17250 asciify_macro or class non_interpreted_node friends of class
17252 (non_interpreted_node::interpret): Use input_iterator::get.
17253 (asciify_macro): Likewise.
17255 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17256 ~non_interpreted_node): Deleted.
17257 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17260 * troff/symbol.h: Make all symbol member functions const.
17262 * lib/strtol.c: New file.
17263 * lib/Makefile: Add strtol.c.
17264 * Makefile: Define STRTOL as strtol.o to include strtol in
17267 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17269 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17271 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17273 * troff/input.c (do_special): Use input_level.
17275 * troff/token.h (TOKEN_BACKSPACE): New token.
17276 (token::backspace): New function.
17277 * troff/input.c (token::description, token::next, token::process):
17278 Grok TOKEN_BACKSPACE.
17279 (do_special): Turn TOKEN_BACKSPACE back into \b.
17281 * troff/token.h (token::leader): New function.
17282 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17284 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17286 * troff/input.c (do_special): Use token::description in error
17289 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17291 * troff/input.c (decode_args): Combine quoted and
17292 quote_input_level variables. Make it a for (;;) loop.
17294 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17296 * troff/input.c (read_long_escape_name): The test for whether to
17297 expand buffer was off by 1.
17298 (read_string): Similarily.
17300 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17302 * troff/input.c: Use `const int' rather than `static const int'.
17304 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17305 (macro_diversion::copy_file): New function.
17306 * troff/node.h: New class diverted_copy_file_node.
17307 * troff/node.c: Implement it.
17308 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17309 first page transition by pushing a diverted_copy_file_node.
17310 * troff/input.c (token::next, process_input_stack): Don't handle
17313 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17315 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17316 whether space widths need adjusting.
17318 * troff/charinfo.h: Generalize translated_to_space to
17319 special_translation so as to allow translation to \&.
17320 * troff/input.c (translate): Allow translation to \&.
17321 (charinfo::*): Corresponding changes.
17322 * troff/node.c (make_node, node::add_char): Corresponding changes.
17323 * troff/node.h (dummy_node::dummy_node): Allow optional first
17326 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17327 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17329 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17330 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17331 (token::process): Grok that.
17332 * troff/input.c (copy_file): Handle first page transition like
17333 title by pushing a COPY_FILE_REQUEST cookie.
17334 (token::next, process_input_stack): Grok that.
17335 * troff/node.h (output_file::copy_file): Add x and y arguments.
17337 * troff/div.c (top_level_diversion::copy_file): Supply them.
17338 * troff/node.c (troff_output_file::copy_file): Add x and y
17339 arguments; moveto specified position. Invalidate font_position
17340 array after copying file.
17341 (output_file::copy_file): New function.
17342 (suppressed_output_file::copy_file, ascii_output::copy_file):
17344 * troff/input.c (transparent_file): New function.
17345 (init_input_requests): Bind to "trf".
17346 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17347 (process_input_stack): Likewise.
17349 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17351 * troff/node.c (init_node_requests): New number registers .kern
17352 pointing to global_kern_mode, and .lg pointing to
17353 global_ligature_mode.
17355 * troff/node.c (ligature): Don't change it if we get a bad
17358 * troff/input.c (do_define_string): Don't strip tabs.
17360 * troff/input.c (asciify_macro): Make the string_iterator auto.
17362 * troff/node.c (init_font_requests): Rename to...
17363 (init_node_requests):
17364 * troff/node.h: Change declaration.
17365 * troff/input.c (main): Change call.
17367 * troff/input.c (node::reread, diverted_space_node::reread): New
17369 (process_input_stack): Call reread rather than
17370 get_diverted_space_node.
17371 * troff/node.c (node::get_diverted_space_node,
17372 diverted_space_node::get_diverted_space_node): Removed.
17373 * troff/node.h: Declare reread methods instead of
17374 get_diverted_space_node methods. Make `n' member private.
17375 * troff/input.c: (token::diverted_space): Removed.
17376 * troff/token.h: Removed declaration.
17379 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17381 * eqn/script.c (script_box::compute_metrics): Don't let
17382 SUP_RAISE_FORMAT become negative.
17384 * tbl/table.c (table::do_row): Entries that don't end in the
17385 this row shouldn't make the row non-blank.
17387 * tbl/table.c (table::make_columns_equal): Only set the width of
17388 columns which are marked as equal.
17390 * tbl/main.c (process_data): Before issuing excess data error,
17391 if last character was a newline unget it; then get it again after
17392 the error. Also include the contents of the entry in the message.
17394 * groff.c: New file.
17395 * Makefile: Build groff from groff.c. Make it possible to use
17396 either groff.sh or groff.c as groff.
17397 * Makefile.bd: Similarily.
17399 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17401 * groff.sh: Don't delay expansion of $@ in assignment to files.
17402 Remove occurrences of \".
17404 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17406 * all Makefiles: Simplify and rearrange.
17408 * Makefile: Handle fmod like malloc.
17409 * lib/Makefile: Similarily.
17410 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17412 * Makefile: Rename OPTIMISE to OPTIMIZE.
17414 * groff.sh: Remove assignment to PATH.
17415 * Makefile: Remove SHPATH variable.
17416 * Makefile.bd: Similarily.
17418 * groff.sh: Add -V option to print the pipeline instead of
17421 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17423 * lib/font.c: Split off file searching into ...
17424 * lib/fontfile.c: New file.
17426 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17428 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17430 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17431 Also change misleading comment.
17432 (table::do_vspan): Change similarily misleading comment.
17433 * tbl/main.c (process_data): A format row with an explicit `s'
17434 uses up a data line, even if all the other columns are `_' or `='.
17436 * troff/input.c (token::description): Fix description of
17437 TOKEN_DUMMY and TOKEN_EMPTY.
17439 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17441 * groff.sh: Fix description of -Z in help message.
17443 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17445 * pic/object.c (object_spec::make_object): Allow negative and zero
17447 * pic/pic.y: Give linethick default value of -1.0.
17448 * pic/troff.c (troff_output::troff_output): Initialize
17449 last_line_thickness to BAD_THICKNESS.
17450 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17451 (troff_output::line_thickness): Canonicalize negative thicknesses
17452 to RELATIVE_THICKNESS.
17453 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17454 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17456 (tex_output::start_picture): Set pen_size to -2.0.
17458 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17459 0, then use 0 linewidth.
17460 (ps_printer::ps_printer): Initialize line_thickness to -1.
17462 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17464 * ps/devps/symbolchars: Remove `or'.
17465 * ps/tmac.ps: Implement \(or with .char.
17467 * ps/devps/symbolchars: Move most characters into textmap.
17468 * ps/devps/textmap: Add names for troff bracket characters. Remove
17471 * ps/devps/TSymbol.ps: Removed.
17472 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17473 * ps/tmac.ps: Do with .char what TSymbol did.
17474 * ps/devps/download: Remove TSymbol.
17476 * ps/devps/T: Removed.
17477 * ps/devps/Troff.ps: Removed.
17478 * ps/devps/Troff.afm: Removed.
17479 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17480 * ps/devps/download: Remove Troff.
17481 * ps/devps/FontMakefile: Remove T target.
17482 * ps/devps/DESC-A4: Remove T from font list.
17483 * ps/devps/DESC-letter: Likewise.
17485 * troff/input.c (macro_to_node): Rename to ...
17486 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17487 character's definition while processing it.
17488 * troff/node.c (node::add_char, make_node): Change calls to
17489 macro_to_node accordingly.
17491 * troff/input.c (token::next): Translate \_ to \(ul.
17493 * tty/devascii/R.proto: Add `|'.
17494 * tty/devlatin1/R.proto: Likewise.
17496 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17498 * man: Put the version number in all the man pages.
17500 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17502 * Makefile.bd: New file.
17503 * README.bd: New file.
17505 * VERSION: New file.
17506 * lib/version.c: Removed.
17507 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17510 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17511 environment variable.
17513 * all Makefiles: Split install target into install.bin for
17514 binaries, and install.nobin for everything else.
17515 * Makefile: Add bindist target.
17517 * man/afmtodit.man: New file.
17518 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17519 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17521 * ps/Makefile: Pass BINDIR to make install in devps.
17523 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17524 the space character.
17526 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17528 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17530 * ps/ps.c: Redo font downloading.
17531 * ps/devps/download: New file.
17532 * ps/devps/Makefile: Add download to DEVICEFILES.
17533 * ps/devps/afmtodit: Remove -d option.
17534 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17535 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17536 * ps/devps/zapfdr.ps: Likewise.
17537 * ps/devps/TSymbol.ps: Likewise.
17539 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17541 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17543 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17545 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17546 then strip the first line if it starts with %.
17547 * Makefile: Add a comment about this.
17549 * man/tfmtodit.man: New file.
17550 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17551 * dvi/Makefile: Install tfmtodit in BINDIR.
17553 * dvi/tfmtodit.c (usage): Mention -v option.
17555 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17557 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17558 * troff/node.c (troff_output_file::transparent_char): Don't call
17561 * eqn: Add check_tabs method to most box classes.
17562 * eqn/box.c (box::top_level): Call check_tabs.
17564 * eqn/script.c (script_box::output): Use \Z.
17565 * eqn/limit.c (limit_box::output): Use \Z.
17567 * eqn/box.c (box::top_level): Use itoa.
17569 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17571 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17572 * dvi/devdvi/Makefile: Don't make links to CW.
17574 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17576 * xditview/tmac.X: Likewise.
17578 * troff/node.c: Add font translation feature.
17579 (get_font_translation): New function.
17580 (symbol_fontno): Translate the font name.
17581 (mount_font_no_translate): Rename to mount_font to this.
17582 (mount_font): New function.
17583 (font_family::make_definite): Call mount_font_no_translate instead
17585 (mount_style): Translate the font name.
17586 (font_translate): New function.
17587 (init_font_requests): Bind "ftr" to font_translate.
17589 * ps/devps/prologue (SN): New procedure that rounds a position to
17590 the nearest (pixel + (.25,.25)).
17591 (DL): Use SN to round endpoints.
17593 * lib/version.c: Changed version to 0.5.
17595 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17597 * Makefile: Move definition of PAGE to the very beginning, so that
17598 people are less likely to miss it.
17600 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17602 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17604 * troff/env.c (environment::choose_breakpoint): Make `can't find
17605 breakpoint' error a warning of type WARN_BREAK. Change message to
17606 `can't break line'.
17607 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17609 * troff/input.c: Add WARN_BREAK to warning_table. Include
17610 WARN_BREAK in DEFAULT_WARNING_MASK.
17612 * tty/tmac.tty: Add definition of \(+-.
17614 * groff.sh: Remove `--' option to set command.
17616 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17618 * ps/devps/eqnchar: Better definition of cdot using md.
17619 * dvi/devdvi/eqnchar: Likewise.
17620 * xditview/devX100/eqnchar: Likewise.
17621 * xditview/devX75/eqnchar: Likewise.
17622 * eqn/lex.c: Add definition of cdot.
17624 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17626 * troff/input.c (get_optional_char): New function.
17627 * troff/input.c (set_page_character): Use get_optional_char(),
17628 rather than has_arg() and tok.get_char(1).
17629 * troff/env.c (tab_character, leader_character, hyphen_char,
17630 field_characters): Likewise.
17631 (margin_character): Likewise. Also always delete the
17632 margin_character_node.
17634 * troff/input.c (token::get_char): Use token::description.
17636 * troff/input.c (has_arg): Don't skip over tab and \}.
17637 * troff/number.c (start_number): Give a warning if the number
17638 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17640 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17642 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17644 (get_name, get_long_name): Use these. Rename `warn' argument to
17647 * troff/node.c (get_fontno): Test that the symbol is not null.
17649 * troff/input.c (token::description): New function.
17650 * troff/number.c (parse_term): Use token::description in `numeric
17651 expression expected' message.
17652 * troff/groff.h: Add WARN_MISSING.
17653 * troff/number.c (start_number): New function.
17654 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17655 get_incr_number): Use start_number().
17656 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17658 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17659 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17661 * troff/input.c (token::get_char): Use WARN_MISSING.
17662 * troff/input.c (token::delimiter): Use token::description.
17663 * troff/env.c (environment_switch): Back out Aug 3 change.
17664 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17666 * troff/token.h (token::tab): New function.
17667 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17668 * troff/reg.c (alter_format): Likewise.
17669 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17671 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17673 * troff (most files): Redo warnings. Divide warnings into various
17674 categories; warning() has an additional first argument indicating
17675 the category it falls into.
17676 * troff/input.c (main): -w now takes an argument. New option -W.
17677 (enable_warning, disable_warning): New functions.
17679 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17680 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17682 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17684 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17685 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17686 * xditview/devX75/eqnchar: Likewise.
17687 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17689 * eqn/other.c: When bar or over applies to a single character
17690 don't produce an overline_box or an underline_box. Instead produce
17691 an accent_box or an underaccent_box, with the accent a line
17692 whose width is accent_width. New classes underaccent_box,
17693 overline_char_box and underline_char_box.
17694 * eqn/box.h: Move overline_box, underline_box, accent_box class
17695 declarations into eqn/other.c. Add declarations of
17696 make_underline_box, make_overline_box, make_accent_box.
17697 * eqn/eqn.y: Call make_overline_box, make_underline_box
17698 make_accent_box instead of constructors.
17699 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17701 * eqn/other.c: Add accent_box::~accent_box.
17702 * eqn/box.h: Declare it.
17704 * groff.sh: With -Tps, use eqn -D.
17706 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17708 (underline_box::output): Similarily.
17709 (accent_box::output): Use \Z.
17711 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17714 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17716 * troff/div.c (top_level_diversion::transparent_output(unsigned
17717 char)): Use asciify.
17718 * troff/input.c (asciify): Don't make it static.
17719 * troff/token.h (asciify): Declare it.
17721 * troff/input.c (get_name, get_long_name, token::get_char,
17722 token::delimiter): Add an extra default argument which says
17723 whether a warning should be printed.
17724 * troff: Pass a non-zero argument to one of these rather than
17725 printing a warning directly.
17727 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17729 * troff: Consistently use symbol::is_null.
17731 * troff/dictionary.h: Move some inline functions into
17734 * troff/request.h: Move inline functions into input.c.
17735 (request_or_macro::invoke): Make it pure.
17737 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17738 * troff/input.c (init_input_requests): Use class constant_int_reg.
17739 (class compatible_reg): Deleted.
17740 * troff/div.c (init_div_requests): Use class constant_int_reg.
17741 (class last_post_line_extra_space_reg): Deleted.
17743 * troff/env.c (tab_character): Don't change the tab character if
17744 we get an invalid argument.
17745 (hyphen_char): Similarily.
17747 * troff/reg.c (alter_format): Check that nm is not null.
17749 * Makefile, groff.sh: Make it possible to customize the commands
17750 used for printing PostScript and dvi files. Also make it possible
17751 to customize the path used by groff.sh.
17753 * eqn/eqn.y: Make `left' right associative.
17755 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17757 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17760 * pic/pic.h: Removed definition of INT_MAX.
17762 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17765 * troff/input.c (token::next): Handle \R like \n.
17767 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17769 * ps/tmac.pc (PSPIC): Simplify.
17771 * troff/env.c (tab_stops::to_string):
17772 * pic/pic.y (object_type_name):
17773 * pic/troff.c (simple_output::line):
17774 * pic/tex.c (tex_output::spline):
17775 * pic/object.c (object_spec::make_object):
17776 * tbl/main.c (process_data): Add cases to switch statements to
17777 avoid cfront warnings. (Some of these are spurious, since the
17778 switch already has a default case.)
17780 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17781 `ps-'. Don't test systat; instead check number of arguments to
17784 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17786 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17788 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17789 Unlink the file as soon as we have opened it, so that we don't
17790 have to bother with signal handlers.
17791 (handler): Deleted.
17792 (fatal_error_exit): Deleted.
17793 (main): Don't call signal.
17795 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17797 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17799 * pic/pic.y: If there is a label, or an nth construction before
17800 the first `.' in the argument to `with', ignore it and generate a
17802 * pic/lex.c (lex_warning): New function.
17804 * tbl/table.c (table::init_output): In section keep and release
17805 macro, use 0 indent when diverting and the correct indent when
17808 * troff/input.c (interpolate_number_format): Do not interpolate
17809 anything if the number register is not defined.
17811 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17813 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17815 * ps/devps/prologue (PICTURE): Set components of graphics state to
17816 their default values.
17818 * ps/devps/text.enc: Add trademark
17819 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17820 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17821 * ps/devps/symbolchars: Add names for summation and product.
17823 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17824 suchthat. Add pp. Add upper-case letters.
17826 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17827 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17830 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17831 rA (right angle bracket) to ra. Introduce names for double-headed
17832 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17833 * ps/devps/textmap: Likewise for ps device.
17834 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17835 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17836 * tty/devascii/R.proto: Likewise.
17837 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17839 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17841 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17843 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17846 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17848 * troff/div.c (when_request): Use symbol::is_null rather than
17849 has_arg to determine whether we have an argument.
17850 (change_trap): Remove the trap if we get an invalid number. Give
17851 an error if we don't get at least the macro name.
17852 (diversion_trap): Remove trap if we get an invalid name or number.
17854 * troff/env.c (environment_switch): Pop if we get an invalid
17855 symbol or numeric expression.
17857 * troff/input.c (do_define_macro): If EOF is encoutered while
17858 defining the macro, do tok.next() before returning.
17860 * troff/token.h (has_arg): Move definition from here, to ...
17861 * troff/input.c (has_arg): ... here
17863 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17864 * troff/input.c (shift): Likewise.
17866 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17869 * pic/troff.c (troff_output::start_picture): Comment out calls to
17872 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17873 interpret_lf_args succeeds.
17875 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17876 \\. This avoids problems with \$N.
17878 * groff.sh: Pass -C to preprocessors.
17880 * lib/lf.c (interpret_lf_args): Be more flexible.
17882 * tbl/main.c (main): Add -C option.
17883 (table_input::get): Do not recognize TE if followed by character
17884 other than a space or newline unless -C option given.
17885 (process_input_file): Likewise for lf, TS.
17886 (process_data): Likewise for lf in text blocks.
17888 * eqn/main.c (main): Add -C option.
17889 (do_file): Don't recognize EQ, EN or lf if followed by character
17890 other than space or newline unless -C option given.
17891 * eqn/lex.c (file_input::read_line): Similarily.
17892 * eqn/eqn.h: Declare compatible_flag.
17894 * etc/soelim.c (main): Add -C option.
17895 (interpret_lf_args): Use version in libgroff.
17898 * pic/main.c (main): Add -C option, which sets compatible_flag.
17899 (top_input::get), (top_input::peek): If -C option not given,
17900 do not recognize .PS/.PE/.PF/.lf if followed by a character
17901 other than space or newline.
17902 * pic/lex.c (file_input::read_line): Similarily.
17903 * pic/pic.h: Add declaration of compatible_flag.
17905 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17907 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17909 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17910 derived from node. New class space_char_hmotion_node.
17911 * troff/input.c (asciify_macro): New function.
17912 * troff/input.c (init_input_requests): New request `asciify' bound
17914 * macros/mm.diff: New file.
17915 * Makefile: In install.mm target use `patch' to apply
17918 * troff/input.c (macro::print_size): Just print the size in bytes.
17920 * troff/div.c (return_request): Correct the argument
17923 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
17925 * troff/node.h (class composite_node): Add sz member.
17926 * troff/node.c (composite_node::size): Return sz.
17927 * troff/input.c (macro_to_node): Use the initial size in the
17928 environment as the size of the composite_node.
17930 * troff/node.c (node::zero_width_tprint): Provide a reasonable
17933 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
17935 * troff/div.c (change_trap): If we get a bad number expression,
17938 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
17940 * lib/matherr.c (matherr): Define this only if math.h defines
17943 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
17945 * troff/div.c (macro_diversion::distance_to_next_trap): If there
17946 no diversion trap return vunits(INT_MAX - vresolution).
17948 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
17950 * troff/input.c (do_zero_width): New implementation that doesn't
17951 use a temporary environment. Use instead:
17952 (token::add_to_node_list): New function.
17953 * troff/env.c (environment::get_prev_char_height),
17954 (environment::get_prev_char_height),
17955 (environment::get_prev_char_skew): New functions.
17956 (environment::get_prev_char): New function.
17957 (environment::get_prev_char_width): Change to use get_prev_char.
17958 (init_env_request): Implement new registers .cht, .cdp, .csk.
17959 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17960 \Z being processed in a separate environment.
17962 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
17964 * tbl/table.c: Removed TABLE_BOTTOM_REG.
17966 * tbl/table.c (table::init_output): In the section release macro,
17967 give a warning message if the section won't fit on one page.
17969 * tbl/table.c (table::do_top): Emit table keep only if table is
17971 (table::do_bottom): Likewise for table release.
17972 (table::table), (table::add_vertical_rule): Remove reference to
17974 * tbl/table.h: Remove keep member.
17976 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17977 SECTION_RELEASE_MACRO, if there's not enough space before the next
17978 trap to output the diversion, call T# ourselves, set
17979 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17980 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
17981 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
17982 vertical position and return to it before turning traps on again.
17984 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
17986 * troff/node.c, troff/node.h: In classes derived from node,
17987 replace prev_char_width method by last_char_node method.
17988 * troff/env.c (environment::get_prev_char_width): Use
17989 node::last_char_node rather than node::get_prev_char_width.
17991 * Makefile: Added comment about -fno-inline on 68030-based
17994 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17995 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17996 expressions using sizeof to int.
17997 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17999 * macros/tmac.e (TS): Don't move @f back past the current
18002 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18004 * ps/ps.c (main): Buffer stderr.
18005 * dvi/dvi.c (main): Likewise.
18006 * tty/tty.c (main): Likewise.
18008 * ps/ps.c (ps_printer::do_import): Improve error handling.
18010 * troff/input.c (abort_request): Use asciify.
18012 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18013 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18014 type of first argument int rather than char. This works around a
18015 bug on the 68030 based Apollo using g++ 1.37.1.
18017 * tbl/table.h (class table): Add `keep' member.
18018 * tbl/table.c (table::table): Initialize `keep'.
18019 (table::add_vertical_rule): Set `keep' to 1.
18020 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18021 (table::do_bottom): Likewise for table release macro.
18022 (table::do_row): Emit section keep macro even if the row is 0.
18024 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18026 * macros/tmac.e (@C): Preserve the font family across the change
18029 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18031 * lib/font.c: Initialize font::hor and font::vert to 1.
18032 (font::load_desc): Check the values of font::hor and font::vert.
18034 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18035 be included in a C compilation.
18036 (iftoa): Use INT_DIGITS. Include lib.h.
18038 (as_string): Likewise.
18039 * tbl/table.c: Removed definition of INT_DIGITS.
18040 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18041 * troff/input.c (input_input_requests): Likewise.
18042 * ps/ps.c (make_encoding_name): Likewise.
18043 (ps_printer::set_style): Likewise.
18044 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18046 * tty/devascii/R.proto: Map fm onto '.
18047 * tty/devlatin1/R.proto: Likewise.
18049 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18051 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18052 argument to \w is at a different input level.
18054 * tbl/table.c (table::init_output): Define a new macro
18055 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18056 transparently outputs itself.
18057 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18059 (table::do_row): Likewise.
18061 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18062 TRANSPARENT_STRING_NAME.
18064 * tbl/table.c (table::init_output): In the table release macro
18065 print an error message and don't produce any output if after
18066 issuing the need request the table still will not fit. Also
18067 remove the diversion after bringing it back.
18069 * tbl/table.c (table::init_output): Define a new macro
18070 REPEATED_MARK_MACRO, like mk but if in a diversion also
18071 transparently outputs itself.
18072 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18073 is necessary because .TH might not call .T#.
18074 (table::do_top): Likewise TOP_REG.
18075 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18076 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18077 table header might contain just the two top rules.
18079 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18081 * troff/div.c: Implement new request `ptr' to print all traps.
18083 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18084 init_string_env_reg.
18085 * troff/env.c (class tab_reg): Deleted.
18087 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18089 * troff/div.c: New number register .pn returns the number of the
18090 next page as set by the pn request.
18092 * macros/tmac.an: Redid headers and footers. Number each manual
18093 entry starting from 1 unless \nC is > 0, like Sun. Added an
18094 optional 5th argument to .TH which specifies the manual name and
18095 appears in the center of the header. Understand the X, P and D
18096 registers like Sun.
18098 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18100 * troff/env.c (init_env_requests): New number register `.lt' to
18101 return the title length.
18103 * troff/node.h (class transparent_dummy_node): New class.
18104 * troff/node.c (class transparent_dummy_node): Provide member
18106 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18109 * troff/input.c (token::next): New escape sequence \).
18110 * troff/input.c (get_copy): Recognize \) in copy mode.
18112 * troff/input.c (input_stack::clear): New function.
18113 * troff/input.c (exit_request): Use input_stack::clear.
18115 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18116 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18118 * troff/env.c: Move set_page_character to input.c. Move
18119 page_character to input.c also.
18120 * troff/env.c (title): Split off the reading of the parts of the
18121 title into read_title_parts.
18122 * troff/input.c (read_title_parts): New function. Check the
18123 input_level when testing whether a token matches the delimiter.
18125 * troff/input.c (exit_request): New function.
18126 * troff/input.c (init_input_requests): Bind ex request to
18127 exit_request rather than exit_groff.
18129 * troff/input.c (exit_groff): Call tok.next() before
18130 process_input_stack().
18132 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18134 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18135 * troff/env.h: ditto.
18136 * troff/input.c: ditto.
18138 * troff/env.c (environment::is_empty): Test pending_lines.
18140 * troff/env.c (environment::have_pending_lines): Removed.
18142 * troff/input.c: Add request to flush pending lines from the
18145 * troff/env.c, troff/env.h: Add automatic widow control feature.
18147 * troff/input.c (exit_groff): Do process_input_stack() after
18148 do_break() but before setting exit_flag to 2.
18150 * troff/input.c: Remove FLUSH_PENDING_LINES and
18151 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18152 environment after END_TRAP token seen, but only if there aren't
18153 any more traps still unfinished.
18154 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18156 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18158 * troff/env.c: Rename the `retain_size' member of class
18159 pending_output_line to `no_fill'.
18161 * troff/env.c (title): When the line is output, make the
18162 retain_size argument !fill.
18164 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18165 * troff/node.c (space_node::get_breakpoints),
18166 (dbreak_node::get_breakpoints): Fill this in.
18167 * troff/env.c: Allow specification of maximum number of
18168 consecutive hyphenated lines.
18170 * troff/env.c (environment::is_empty): Add test for !current_tab.
18172 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18174 * troff/env.c (environment::hyphenate_line): Don't completely give
18175 up if the word is not to be hyphenated; continue so that breaks
18176 can be made at break_char_node's.
18178 * lib/lib.h: Only define INT_MAX if it's not already defined;
18179 undef INT_MIN if it's already defined.
18181 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18183 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18184 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18187 * macros/tmac.an (an-header): Set no-space mode.
18189 * macros/tmac.an (TH): Start a new page if necessary.
18191 * Started using ChangeLog at version 0.4.
18194 version-control: never