1 2005-03-24 Werner LEMBERG <wl@gnu.org>
3 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
4 (dist): Search Makefile while descending into $(EXTRADIRS).
6 * doc/Makefile.in (.PHONY): Add.
7 (clean): Don't remove *.png and *.eps.
9 (realclean): Remove *.png and *.eps.
10 (extraclean): Depend on distclean.
12 2005-03-18 Larry Kollar <kollar@alltel.net>
14 Add numbered and definition lists to www.tmac.
16 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
17 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
18 auxiliary string registers.
19 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
20 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
22 (www-level1, www-level2, www-level3): Initialize to empty.
23 (www-level0, www-level4, www-level5, www-level6, www-level7,
24 www-level8, www-level9): New string registers.
25 (www-push-li, www-pop-li): New macros.
26 (www-push-level, www-pop-level): Renamed to...
27 (www-push-ul-level, www-pop-ul-level): This.
29 (www-push-ol-level, www-pop-ol-level): New macros.
31 (OLS, OLE, DLS, DLE): New user macros.
32 (LI): Removed. It is aliased to one of...
33 (www-li-ul, www-li-ol, www-li-dl): New macros.
35 * tmac/groff_www.man: Document new macros.
39 2005-03-18 Werner LEMBERG <wl@gnu.org>
41 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
42 doc-operating-system-NetBSD-2.0.2): New strings.
44 * tmac/groff_mdoc.man: Updated.
46 2005-03-17 Werner LEMBERG <wl@gnu.org>
48 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
50 2005-03-17 Werner LEMBERG <wl@gnu.org>
52 * src/libs/libgroff/hypot.c: Renamed to...
53 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
55 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
57 * src/include/lib.h: Updated.
59 2005-03-16 Werner LEMBERG <wl@gnu.org>
61 Add workaround for broken hypot() on Interix.
63 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
65 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
66 (CSRCS): Add `hypot.c'.
68 * src/include/lib.h: Declare `groff_hypot'.
70 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
73 * src/preproc/pic/pic.h: Don't declare `hypot'.
75 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
77 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
79 * src/devices/grohtml/post-html.cpp
80 (html_printer::lookahead_for_tables): End .ce properly to avoid a
83 2005-03-15 Werner LEMBERG <wl@gnu.org>
85 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
87 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
89 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
91 2005-03-14 Werner LEMBERG <wl@gnu.org>
93 Add Cyrillic support to devutf8 and devhtml.
95 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
97 * tmac/unicode.tmac: New file.
99 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
101 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
105 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
107 * src/libs/libdriver/printer.cpp (check_for_output_error): New
108 function. It has been introduced to catch peculiar error contexts
109 on MS-Windows platforms.
111 2005-02-28 Werner LEMBERG <wl@gnu.org>
113 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
116 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
118 * configure: Regenerated.
122 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
124 Integrate `pdfmark' into normal groff build system;
125 install macro `pdfmark' packages, build and install `pdfroff',
126 and PDF format documentation.
128 * Makefile.comm: Add PDFDOCDIR.
130 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
131 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
132 (unstall_dirs): Add pdfdocdir.
134 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
135 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
136 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
137 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
138 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
139 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
141 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
142 use of GROFF_AWK_PREFS.
143 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
144 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
146 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
147 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
148 also by modified GROFF_HTML_PROGRAMS).
150 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
152 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
154 (html_text::done_para): Unset `start_space'.
155 (html_text::remove_para_align): Call `retrieve_para_space' for the
158 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
160 (html_printer::do_check_center): Emit vertical space if necessary.
162 * src/roff/troff/env.cpp (environment_switch): Preserve
163 `seen_space', `seen_eol', and `suppress_next_eol' while switching
166 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
169 2005-02-20 Werner LEMBERG <wl@gnu.org>
171 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
174 2005-02-17 Werner LEMBERG <wl@gnu.org>
176 * doc/pic.ms, man/groff.man: Fix typos.
178 * doc/groff.texinfo: Fix typos.
179 (\LEmacro): Get proper mathematical spacing.
181 2005-02-16 Werner LEMBERG <wl@gnu.org>
183 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
184 * configure: Regenerated with autoconf 2.59b.
186 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
188 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
189 html_printer::start_font): Fix handling of preformatted text.
191 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
193 These patches modify the indentation implementation to use `<p
194 style=margin-left: n%>'. Many thanks to Peter and Larry for
195 suggesting this solution. Grohtml only uses tables for `.IP' and
196 related tags when the first operand has a short width.
198 Similarly, they modify all vertical space code. By default, grohtml
199 sets up a style sheet which uses no vertical space between `table',
200 `pre', and `p' tags. It forces spaces when it needs them using
201 `style="margin-top: 1em"'.
203 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
204 (html_table::emit_table_header, html_table::emit_new_row):
206 (html_table::set_space): New function.
207 (html_indent::html_indent): Don't set `is_used'.
208 (html_indent::begin): Rewritten.
209 (html_indent::end): Remove code in function.
211 * src/devices/grohtml/html-table.h: Updated.
212 (html_table): Make `out' public.
214 * src/devices/grohtml/html-text.cpp (html_text::html_text):
215 Initialize `start_space' with FALSE.
216 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
217 (html_text::issue_tag): Add argument to handle space style.
218 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
219 (html_text::flush_text): Don't set `start_space'.
220 (html_text::push_para): Don't set `p->really_issued'.
221 (html_text::do_emittext): Updated.
222 (html_text::do_para): Add paremeter to handle space.
224 (html_text::retrieve_para_space): New function.
226 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
227 (tag_definition): Remove `really_issued'.
228 (html_text): Updated.
230 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
231 `current_column' and `row_space'.
233 (html_printer::emit_raw, html_printer::write_header,
234 html_printer::do_indent, html_printer::do_check_center,
235 html_printer::do_tab_ts): Handle vertical space.
236 (html_printer:do_tab_te, html_printer::do_end_para): Call
238 (html_printer::do_col): Rewritten.
239 (html_printer::flush_globs): Remove debugging code.
240 (html_printer::is_line_start): New function.
241 (html_printer::start_font): Use `is_line_start'.
242 (html_printer::writeHeadMetaStyle): New function.
243 (html_printer::do_file_components, html_printer::~html_printer):
244 Call `writeHeadMetaStyle'.
246 * tmac/www.tmac (www-handle-percent): New macro.
247 (MPIMG): Handle percent values for width and height parameters.
250 * tmac/groff_www.man: Updated.
252 2005-02-14 Werner LEMBERG <wl@gnu.org>
254 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
255 $psname and $italic_angle.
256 Immediately restart file input loops if `split' returns an empty
259 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
260 Werner LEMBERG <wl@gnu.org>
262 Update afmtodit to better support Unicode (Michail).
263 Update afmtodit to use Perl 5 syntax (Werner).
265 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
267 Decorate variables with `my' where necessary.
268 Use `defined' where necessary to avoid warnings.
269 Don't use `do' for subroutine calls.
270 Other minor syntax updates.
271 Check for both `uXXXX[X[X]]' and `uniXXXX'.
272 Handle glyph variants properly.
273 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
276 * src/utils/afmtodit/afmtodit.man: Updated.
278 2005-02-13 Werner LEMBERG <wl@gnu.org>
280 Make groff.texinfo work with texinfo 4.8.
282 * doc/groff.texinfo (@Var): Use @r and @slanted.
283 (@defdummy, @Def*): Use @c to avoid empty lines.
284 (\angles): Replaced with...
285 (\Langlemacro, \Ranglemacro): New TeX macros.
286 (@Langlemacro, @Ranglemacro): New variables defined with @set.
287 (@angles): Use @Langlemacro and @Ranglemacro.
288 (\LE): Replaced with...
289 (\LEmacro): New TeX macro.
290 (@LEmacro): New variable defined with @set.
292 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
293 variables defined with @set.
294 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
295 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
300 * doc/texinfo.tex: Update to texinfo version 4.8.
302 * README.CVS: Updated.
304 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
306 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
309 2005-02-05 Werner LEMBERG <wl@gnu.org>
311 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
312 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
315 2005-02-01 Werner LEMBERG <wl@gnu.org>
317 * src/roff/groff/groff.man: Add information about paper size.
319 2005-01-25 Werner LEMBERG <wl@gnu.org>
321 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
324 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
326 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
328 (Re): Emit a warning if called without `.Rs'.
329 (doc-finish-reference): Use parameter for decreasing
330 `doc-reference-count'.
331 (doc-print-reference): Pass specific count parameters to
332 `doc-finish-reference'.
334 2005-01-21 Werner LEMBERG <wl@gnu.org>
336 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
337 Reset pointers to zero after deallocation. This fixes a crash
338 if a driver is called with multiple input files. Reported by
339 Ken Chilton <ken@chiltonfamily.org>.
341 * src/devices/grops/grops.man: Add more info on DSC.
343 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
345 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
348 2005-01-17 Werner LEMBERG <wl@gnu.org>
350 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
351 against division by zero.
353 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
355 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
357 2004-12-19 Werner LEMBERG <wl@gnu.org>
359 * install-sh: New version; taken from texinfo CVS.
361 2004-12-17 Werner LEMBERG <wl@gnu.org>
363 * tmac/devtag.tmac: Protect against loading twice.
364 Protect agains compatibility mode.
365 * tmac/www.tmac: Protect against loading twice.
366 Load `devtag.tmac' before switching off compatibility mode.
367 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
369 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
371 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
372 * configure: Updated.
374 2004-12-15 Thomas Klausner <wiz@netbsd.org>
376 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
378 2004-12-15 Werner LEMBERG <wl@gnu.org>
380 Make `test-groff' work again -- previously, wrong paths have been
381 used. Additionally, it can now be called from anywhere.
383 * test-groff.in: Don't test for groff binary. This is no longer
384 necessary since the proper paths are determined by `configure'.
385 (EXEEXT): Removed. No longer used.
386 (srcdir, builddir): Use values provided by the configure script.
387 (XENVIRONMENT): Updated.
391 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
393 Make .tag and .taga work for all devices (but only grohtml actually
396 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
397 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
398 html_printer::handle_assertion): Don't use hard-coded string
400 (html_printer::lookahead_for_table): Reset `tbl' properly if
402 (html_printer::devtag): New function, handling `devtag'.
403 (html_printer::special): Don't handle `html-tag'.
405 * src/include/printer.h, src/libs/libdriver/printer.cpp
406 (printer::devtag): New virtual function.
408 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
411 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
412 src/roff/troff/node.cpp: s/html-tag/devtag/.
414 * src/roff/troff/input.cpp (tag, taga): Always call
417 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
418 macros instead of HTML-TAG*.
420 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
422 * tmac/www.tmac: Load devtag.tmac.
423 Replace HTML-TAG* macros with DEVTAG* macros.
424 (HTML, HTML-NS): Changed definitions.
426 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
428 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
430 2004-12-10 Werner LEMBERG <wl@gnu.org>
432 Import Mike's `gdiffmk' package.
434 * contrib/gdiffmk/*: New files.
435 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
438 2004-12-08 Werner LEMBERG <wl@gnu.org>
440 Import Keith's `pdfmark' package. Integration is very preliminary.
442 * contrib/pdfmark/*: New files.
443 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
446 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
448 Fix a bug with title handling in HTML.
450 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
451 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
453 (html_printer::handle_tag_within_title): New function.
454 (html_printer::do_title): Use it.
456 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
457 (cov*tl-au-print): Emit `.eo.tl' tag.
459 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
461 * man/groff_char.man: Minor imrovements.
463 2004-12-04 Werner LEMBERG <wl@gnu.org>
465 * src/preproc/eqn/eqn.man: Revised.
467 2004-11-25 Werner LEMBERG <wl@gnu.org>
469 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
473 Remove X_NOT_STDC_ENV conditional.
474 (Version_string, program_name): New global variables.
475 (groff_flag): Removed.
477 (usage): Take a stream as argument.
480 (main): Add `long_options' array for `--help' and `--version'.
481 Make `-g' a dummy option.
482 Handle `-v' and unknown options.
483 Remove unused `position' variable.
485 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
486 (XLIBS): Add LIBGROFF.
488 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
491 * src/devices/xditview/Dvi.c (default_font_map): Split into three
492 parts to avoid compiler warning.
493 (resources): Don't initialize with `default_font_map'.
494 (ClassInitialize): Initialize first element of `resources'.
496 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
499 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
500 src/utils/pfbtops/pfbtops.man: Revised, updated.
502 * configure.ac: Generate src/utils/xtotroff/Makefile.
503 * configure: Regenerated.
505 2004-11-24 Werner LEMBERG <wl@gnu.org>
507 First fixes to get produce HTML.
509 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
512 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
513 (HR, LI): Use `HTML</p>', not `HTML'.
515 * doc/webpage.ms: Minor updates.
517 2004-11-23 Larry Kollar <kollar@alltel.net>
519 Add option -S grohtml to determine the file split level.
521 * src/devices/grohtml/post-html.cpp (split_level): New global
523 (html_header::determine_header_level): Use split_level.
524 (main): Handle `-S' command line option.
527 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
529 * src/devices/grohtml/grohtml.man: Document it.
534 2004-11-23 Y T <doarhop@hotmail.com>
536 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
537 the volume and number refer entries.
539 2004-11-22 Werner LEMBERG <wl@gnu.org>
541 * src/devices/grohtml/html-table.cpp
542 (html_table::emit_table_header): Don't emit `cols' attribute which
543 doesn't exist in HTML 4.0 and is thus invalid.
545 * NEWS: More minor fixes and updates.
547 2004-11-18 Werner LEMBERG <wl@gnu.org>
549 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
550 (HTML</p>): Minor clean-up.
552 * tmac/groff_www.man: Updated.
554 * src/devices/grohtml/grohtml.man: Revised and updated.
558 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
560 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
562 (html_printer::do_links): Fix rules generation around automatic
565 * tmac/www.tmac (LK): Use HTML-TAG-NS.
567 No longer emit empty line for non-HTML devices.
569 2004-11-17 Werner LEMBERG <wl@gnu.org>
571 * doc/Makefile.in (prepare_examples, webpage.html): Handle
574 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
575 prepare_examples, webpage.html): Handle `groff.css'.
577 2004-11-15 Werner LEMBERG <wl@gnu.org>
579 * NEWS, README, doc/webpage.ms: Updated.
581 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
583 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
585 * src/include/printer.h (printer): Remove virtual function
587 Update all source files.
589 * src/devices/grohtml/post-html.cpp (html_printer): New member
590 function `round_width'.
592 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
594 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
595 column key letter suffix.
597 2004-10-14 Werner LEMBERG <wl@gnu.org>
599 * Makefile.in (check): Depend on `site.exp' and `docheck'.
600 (docheck): Run dejagnu's `runtest' if it exists.
601 (site.exp): Create dejagnu configuration file.
603 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
605 2004-10-13 Werner LEMBERG <wl@gnu.org>
607 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
608 src/devices/grohtml/post-html.cpp (make_val,
609 html_printer::handle_state_assertion): Fix compiler warnings.
611 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
612 (diversion::diversion): Fix order of initializers.
614 * src/roff/troff/div.h: Don't include `mtsm.h'.
616 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
617 (environment::environment): Fix order of initializers.
618 (environment::make_tag, environment::construct_format_state): Fix
621 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
622 (input_iterator::input_iterator, macro::macro): Fix order of
625 * src/roff/troff/mtsm.cpp: Include only necessary header files.
626 (state_set::add, state_set::val): Fix compiler warnings.
628 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
629 (bool_value_state, int_value_state, units_value_state,
630 string_value_state): Remove comma after last element which causes
631 an error with g++ 3.3.3.
633 * src/roff/troff/node.cpp: Include `stringclass.h'.
634 (hline_node::hline_node, vline_node::vline_node,
635 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
637 (zero_width_node::zero_width_node): Fix order of initializers.
639 * src/roff/troff/node.h: Don't include `mtsm.h'.
640 (hmotion_node): Fix compiler warnings.
642 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
644 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
646 * doc/groff.css: New file.
648 * doc/webpage.ms: Use `groff.css'.
651 * tmac/an-old.tmac (need_eo_h): New number register.
652 (TH): Emit `.eo.tl' tag after title.
653 (SH): Set `need_eo_h'.
654 (an-trap): Handle `need_eo_h'.
655 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
657 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
658 (TL): Always start diversion.
660 (@AI): Always call `par@reset'.
661 (@AB): Update code for -Thtml.
662 (cov*tl-au-print): Handle -Thtml.
663 (par@reset): Handle `need_eo_tl', `need_eo_h'.
666 (@SH): Set `need_eo_h' for -Thtml.
667 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
669 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
670 Set `need_eo_h' for -Thtml.
671 (@EQ, @EN): Don't handle -Thtml specially.
672 (par@load-init): Don't handle -Thtml specially.
674 * tmac/www.tmac (www:paraspace): New macro.
675 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
676 (HTML</p>, HTML-TAG-NEXT): New macros.
677 (HnE): Emit tag `.eo.h' instead of break.
678 (HR): s/HTML-NS/HTML/.
679 (www-end-nowhere): End diversion only if `www-html' not set.
681 (ULS, ULE): s|HTML|HTML</p>|.
682 (LI): Call `www:paraspace'.
685 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
687 * src/roff/troff/request.h (macro): Make `p' public.
688 New variable `is_a_diversion'.
689 New member function `is_diversion'.
692 * src/devices/grohtml/html.h (simple_output): New member function
695 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
696 computation of `total'.
697 (tabs::check_init): New function.
698 (html_table::emit_table_header): Emit style data.
699 (html_table::insert_column): Improved.
701 * src/devices/grohtml/html-table.h: Updated.
703 * src/devices/grohtml/html-text.cpp (html_text::html_text):
704 Initialize `start_space' with TRUE.
705 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
707 (html_text::flush_text): Set `start_space' flag.
708 (html_text::uses_indent, html_text::remove_para_space,
709 html_text::get_alignment): New functions.
710 (html_text::push_para): Updated.
711 (html_text::do_para): Check for empty argument.
712 Don't set `space_emitted'.
713 (html_text::do_space, html_text::emit_space): Updated.
715 * src/devices/grohtml/html-text.h (tag_definition): New variable
717 (html_text): New member function `uses_indent', `remove_para_space',
720 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
722 (simple_output:nl): Always emit `\n'.
724 * src/devices/grohtml/post-html.cpp: Include `string.h'.
725 (BASE_POINT_SIZE): Removed.
726 (base_point_size, head_info): New global variables.
727 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
729 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
731 (page::add_and_encode): Pass additional parameter for tag flag.
732 (assert_pos): New structure.
733 (assert_state): New class.
734 (html_printer): Remove `indentation', `prev_indent'.
735 Add variables `troff_indent', `device_indent', `temp_indent'.
736 Add variables `seen_indent', `next_indent', `seen_pageoffset',
737 `next_pageoffset', `seen_linelenght', `next_linelength',
738 `seen_center', `next_center', `seen_space', `seen_break', `as'.
739 Add member functions `do_check_center', `do_space', `do_head',
740 `get_troff_indent', `restore_troff_indent', `handle_assertion',
741 `handle_state_assertion', `do_end_para', `set_char_and_width'.
742 Change argument to `do_fill' to `char *'.
744 (html_printer::emit_raw): Call `shutdown_table'.
746 (html_printer::do_center): Simplified.
747 (html_printer::do_title): Improved.
748 (html_printer::write_header): Emit one more newline.
750 (html_printer::do_heading, html_printer::do_indent,
751 html_printer::do_eol, html_printer::do_tab_ts,
752 html_printer::do_tab, html_printer::do_tab0,
753 html_printer::calc_po_in, html_printer::next_horiz_pos,
754 html_printer::remove_courier_tabs,
755 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
757 (html_printer::do_linelength, html_printer::do_pageoffset,
758 html_printer::do_indentation, html_printer::do_tempindent,
759 html_printer::do_tab_te): Simplified.
760 (html_printer::do_pointsize): Check whether point size is really
761 associated a `.tl' tag.
762 (html_printer::do_break): Rewritten.
763 (html_printer::troff_tag): Improved.
764 (html_printer::flush_globs): Updated.
765 (html_printer::lookahead_for_tables): Handle `is_br'.
767 (html_printer::set_char): Check `sbuf_style.f'.
768 (html_printer::write_navigation): Use string comparison.
769 (html_printer::~html_printer): Emit `head_info'.
770 (html_printer::special): Rewritten.
771 (get_str, make_val): New functions.
772 (main): New option `s' to set the base point size.
774 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
776 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
778 * src/roff/troff/node.cpp: New extern `debug_state'.
779 Include `stringclass.h' and `mtsm.h'.
780 Implement new classes and class members from `node.h'.
781 (real_output_file): Make `fp' public.
782 (troff_output_file): New variables `cur_div_level' and `tag_list'.
784 (troff_output_file::really_print_line): Check whether we should push
785 the current troff state and use the state at the start of the
786 invocation of this diversion.
787 (troff_output_file::add_to_tag_list): New member function.
788 (node::add_char): Handle `glyph_comp_np'.
790 * src/roff/troff/node.h: Include `mtsm.h'.
791 (node): New variables `state', `push_state', `div_nest_level',
792 `is_special'. Update constructors, all descendants.
793 Pass additional argument to `add_char' member function.
794 New virtual member functions `is_tag', `debug_node',
795 `debug_node_list'. Update all descendants.
796 (tag_node): New class for handling tags.
797 (output_file): Add variable `state'.
799 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
801 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
802 providing a minimal troff state machine to emit meta tags for the
803 post-grohtml device driver.
805 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
808 2004-10-09 Werner LEMBERG <wl@gnu.org>
810 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
812 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
814 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
816 * src/roff/troff/div.h: Include `mtsm.h'.
817 (diversion): New variables `any_chars_added', `needs_push',
818 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
819 `saved_suppress_next_eol', `modified_tag'.
820 New virtual member function `is_diversion'. Update all descendants.
822 * src/roff/troff/div.cpp (diversion::diversion,
823 macro_diversion::macro_diversion): Updated.
824 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
826 (top_level_diversion::space): Handle `curenv->seen_space'.
827 (page_offset): Update tag handling.
828 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
830 * src/roff/troff/env.h (environment): Make `tabs' public.
831 Remove `ignore_next_eol', `emitted_node'.
832 Update `output_line', `output'.
833 New variables `seen_space', `seen_eol', `suppress_next_eol',
835 New member functions `construct_state', `make_tag',
836 `construct_format_state, `construct_new_line_state,
838 Remove `add_html_tag', `make_html_tag'.
840 * src/roff/troff/env.cpp: New externs `suppress_push',
841 `get_diversion_state', `global_diverted_space'.
842 (pending_output_line): New variable `was_centered'.
843 Update constructor and all callers.
844 (pending_output_line::output): Call `curenv->construct_format_state'.
845 (environment::environment, environment::copy): Updated.
846 (environment::output): Handle `was_centered'.
847 (environment::add_char): Handle construct and diversion state.
848 (environment::add_node): Handle construct state.
849 (environment::newline): Handle `was_centered'.
850 (environment::output_line): Updated.
851 (environment::possibly_break_line): Updated.
853 (environment::add_html_tag): Replaced with...
854 (environment::make_tag): New function.
855 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
856 (environment::dump_troff_state): New debugging function.
857 (environment::construct_state, environment::construct_format_state,
858 environment::construct_new_line_state): New functions.
859 (environment::do_break): Updated.
860 Handle `global_diverted_space'.
861 (environment::handle_tag): Update tag handling.
862 (point_size, fill, do_break_request): Don't call `add_html_tag'.
863 (no_fill): Don't call `add_html_tag'.
864 Set `suppress_next_eol'.
865 (center, right_justify, line_length, indent, temporary_indent,
869 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
870 (input_iterator): New variables `is_diversion', `diversion_state'.
872 (input_stack): New member functions `get_div_level',
873 `get_diversion_state', `check_end_diversion'.
874 New variables `div_level', `diversion_state'. Initialize them.
875 (suppress_push, global_diverted_space): New global variables.
876 (input_stack::finish_get, input_stack::finish_peek,
877 input_stack::remove_boundary, input_stack::end_file,
878 input_stack::clear, input_stack::pop_macro): Call
879 `check_end_diversion'.
880 (input_stack::push): Handle `div_level' and `diversion_state'.
881 (get_diversion_state): New function.
882 (diverted_space_node::reread): Handle `global_diverted_space'.
883 (macro::macro): Update constructors.
884 (macro::is_diversion): New function.
885 (macro::operator=): Set `is_a_diversion'.
886 (string_iterator): New member function `is_diversion'.
887 (string_iterator::string_iterator): Update constructors.
888 (string_iterator::fill): Set `div_nest_level'.
889 (macro_iterator): New member function `is_diversion'.
890 (do_if_request): Handle `suppress_push'.
891 (tag, taga): New functions.
892 (init_input_requests): Add `tag' and `taga' requests.
894 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
896 * src/include/font.h (font): New member function
897 `get_image_generator'.
898 New variables `unscaled_charwidths' and `image_generator'.
900 * src/libs/libgroff/font.cpp (font::get_width): Always return the
901 character's unscaled width if `font::unscaled_charwidths' is set.
902 (font::get_image_generator): New function.
903 (font::load_desc): Check the `unscaled_charwidths' and
904 `image_generator' keywords.
906 * src/libs/libgroff/fontfile.cpp: Initialize
907 `font::unscaled_charwidths' and `font::image_generator'.
909 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
911 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
913 * man/groff_font.man: Document `unscaled_charwidths' and
916 * src/preproc/html/pre-html.cpp: Include `device.h'.
917 (image_gen): New global variable.
918 (imageList::createPage): Use `image_gen'.
919 (main): Use `image_generator' keyword.
921 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
923 * tmac/html.tmac: Handle \[sqrtex].
925 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
927 * src/include/printer.h (printer): New virtual method `round_width'.
929 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
930 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
931 src/devices/grotty/tty.cpp (printer::round_width): New function
934 * src/devices/grohtml/post-html.cpp (printer::round_width): New
936 (html_printer::set_numbered_char): Use it.
938 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
940 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
942 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
944 * configure: Regenerated.
946 * Makefile.in (GHOSTSCRIPT): New variable.
947 (MDEFINES): Add GHOSTSCRIPT.
949 2004-10-03 Werner LEMBERG <wl@gnu.org>
951 * INSTALL.gen: Updated (taken from texinfo CVS).
953 2004-09-28 Werner LEMBERG <wl@gnu.org>
957 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
959 * tmac/groff_www.man: Revised and updated.
961 2004-09-26 Werner LEMBERG <wl@gnu.org>
963 Fix \$@ and \$* to handle any number of arguments.
965 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
968 * src/roff/troff/input.cpp (input_iterator::internal_level):
970 (input_stack): New member functions `increase_level' and
972 (input_stack::get_level): Don't use `internal_level'.
973 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
974 (end_quote_iterator): Completely removed.
975 (interpolate_arg): Build string for \$@ and \$* which is then
976 pushed onto the input stack.
978 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
980 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
983 2004-09-23 Werner LEMBERG <wl@gnu.org>
985 * tmac/an-old.tmac (ne): Using default scaling operator.
987 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
989 This change implements the following features:
992 New numeric register: Defines number of lines following LP, PP,
993 QP, IP or XP, which must be kept together, before any automatic
994 page break. If insufficient space remains on the current page, a
995 page break is forced before the new paragraph begins.
998 New numeric register: Sets number of lines of following paragraph
999 which must be kept with a heading, defined by NH or SH, before any
1000 automatic page break. If insufficient space remains on the
1001 current page, a page break is forced before the heading.
1004 (Thanks to Joerg van den Hoff, for this idea).
1006 New numeric register: Sets the first level of heading (set with
1007 NH), which will keep the same point size as body text; e.g. if
1008 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1009 point size specified by \n[PS], but .NH 2 and .NH 1 will have
1010 progressively larger point sizes, determined by \n[PSINCR] (see
1014 New numeric register: Sets the point size increment for each level
1015 of heading, (set with NH), below the threshold level set by
1016 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1017 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1018 and all other levels will remain at 10pt, (because \n[PS] = 10).
1021 Existing macro now accepts a numeric argument, to make heading
1022 size match that of NH with same argument value, when the
1023 GROWPS/PSINCR feature is enabled.
1026 New string, set by NH macro, replaces the existing (undocumented)
1027 use of SN, to represent the assigned section number.
1030 New string, set by NH macro, represents the assigned section
1031 number, but omits the terminal period (periods at intermediate
1032 levels are retained).
1035 String set by NH macro, originally undocumented, now implemented
1036 as an alias for SN-DOT (which reproduces original behaviour).
1038 * tmac/s.tmac (PORPHANS): New register.
1039 (par*start): Use it.
1040 (HORPHANS, GROWPS, PSINCR): New registers.
1041 (SH-NO-TAG, @SH): Use them.
1044 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1046 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1047 of `Ds' and `De' macros.
1049 2004-09-10 Werner LEMBERG <wl@gnu.org>
1051 In tbl, handle \a as an interpreted leader character if in
1054 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1055 LEADER_CHAR): New macros.
1056 (compatible_flag): New declaration.
1058 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1059 LEADER_3, and LEADER_4 to `state'.
1060 (table_input::get): Handle `\a'.
1062 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1063 (LEADER_REG): New macro.
1064 (table::init_output): Define LEADER_REG string register if in
1067 * src/preproc/tbl/tbl.man: Document it.
1069 2004-08-18 Werner LEMBERG <wl@gnu.org>
1071 * tmac/doc.tmac (An): Fix error message.
1073 2004-08-06 Werner LEMBERG <wl@gnu.org>
1075 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1076 file can't be opened. UNIX tbl has the same behaviour.
1078 2004-08-05 Y T <doarhop@hotmail.com>
1080 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1081 (DBRead): If in compatibility mode, take into account the text
1082 when computing figure boundaries.
1084 2004-08-05 Werner LEMBERG <wl@gnu.org>
1086 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1087 from Tadziu Hoffmann.
1089 2004-08-03 Werner LEMBERG <wl@gnu.org>
1091 * doc/meref.me: Document `_M' register.
1093 2004-08-03 Martin Husemann <martin@duskware.de>
1095 Make hpftodit work correctly on big-endian systems.
1097 * src/utils/hpftodit/hpftodit.cpp (File): New method
1098 `get_uint32(char *)'.
1099 (entry): New member `orig_value'.
1100 (read_tags): Use new method.
1101 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1104 2004-08-01 Werner LEMBERG <wl@gnu.org>
1106 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1107 are already in X11's `macros.t' file.
1109 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1111 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1113 (read_and_output_pcltypeface): Handle strings with length <= 4.
1115 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1117 * tmac/s.tmac (pg@top): Don't save `PO' register.
1118 (pg*end-col, pg*end-page): Directly use `PO' register.
1120 2004-07-27 Werner LEMBERG <wl@gnu.org>
1122 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1124 * src/preproc/refer/refer.cpp (output_references): Check for
1126 * src/preproc/refer/refer.man: Improve documentation of
1127 `bibliography' command.
1129 2004-07-26 Werner LEMBERG <wl@gnu.org>
1131 Add requests `fcolor' and `gcolor'.
1133 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1135 (init_env_requests): Add `fcolor' and `gcolor'.
1137 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1139 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1140 Document new requests.
1142 2004-07-24 Werner LEMBERG <wl@gnu.org>
1144 Add support for fractional point sizes in ms macros. A value for
1145 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1146 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1148 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1149 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1151 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1153 2004-07-19 Werner LEMBERG <wl@gnu.org>
1155 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1157 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1158 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1160 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1162 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1163 * tmac/groff_mdoc.man: Updated.
1165 2004-07-05 Werner LEMBERG <wl@gnu.org>
1167 * doc/groff.texinfo: Further improve documentation of `hcode'.
1169 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1171 Improve appearance of arrows in pic.
1173 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1175 Use two line segments for drawing non-filled arrow head.
1176 (line_object::print, spline_object::print): Shorten line length to
1177 avoid arrow sticking.
1178 (arc_object::print): Take arrow direction into account.
1180 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1182 * tmac/groff_www.man: Update documentation of .MPIMG.
1184 2004-07-03 Werner LEMBERG <wl@gnu.org>
1186 * tmac/an-old.tmac (RI): Always start with font `R'.
1187 (RI, IR): Properly end with font `R'.
1189 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1191 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1192 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1193 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1194 Don't pass more than six arguments to .R, .I, .B, etc., for
1195 compatibility with traditional troff macros.
1197 2004-07-02 Werner LEMBERG <wl@gnu.org>
1199 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1200 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1202 (PUSH_COMP_MODE): New internal character constant.
1205 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1206 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1207 (token::next, macro::append): Handle PUSH_COMP_MODE.
1208 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1209 POP_GROFFCOMP after each of the decoded arguments to make them
1210 independent from the compatibility mode status.
1211 (comp_mode): Add `COMP_ENABLE'.
1212 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1213 (define_string, append_string, define_macro, define_indirect_macro,
1214 append_macro, append_indirect_macro): Handle `compatible_flag'.
1215 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1217 * man/groff_diff.man, doc/groff.texinfo: Updated.
1219 2004-07-01 Werner LEMBERG <wl@gnu.org>
1221 * doc/groff.texinfo: Improve documentation of `hcode'.
1222 Use @documentencoding and convert document to latin-1; to do that
1223 make latin characters active and assign proper macros (within a
1224 @tex...@end tex environment).
1225 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1226 * doc/Makefile.sub (groff): Ditto.
1228 2004-06-29 Werner LEMBERG <wl@gnu.org>
1230 Implement two new conditional operators `F <name>' and `S <name>'
1231 which check whether <name> is a valid font or style, respectively.
1233 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1234 (text_file::text_file): Updated.
1235 (text_file::error): Don't emit message if `silent' is set.
1236 (font::load_font): Add optional third argument (which is directly
1238 (font::load): Add optional second argument to check the header of
1239 a font only, without emitting warning or error messages.
1240 * src/include/font.h (font): Updated.
1242 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1244 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1245 fourth argument to check a font without mounting.
1246 (check_font, check_style): New functions.
1247 * src/roff/troff/node.h: Updated.
1249 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1252 2004-06-27 Werner LEMBERG <wl@gnu.org>
1254 Implement new string-valued register `.sty' to return the current
1257 * env.cpp (environment::get_style_name_string): New function.
1258 (init_env_requests): Add `.sty' register.
1259 * env.h (environment): Updated.
1260 * node.cpp (font_info): Make `get_style_name' a friend.
1261 (get_style_name): New function.
1264 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1267 2004-06-15 Werner LEMBERG <wl@gnu.org>
1269 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1272 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1274 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1275 and \n[mo] to avoid dependency on current date.
1277 2004-06-08 Werner LEMBERG <wl@gnu.org>
1279 * Makefile.sub (install_data): New target.
1281 2004-06-04 Werner LEMBERG <wl@gnu.org>
1283 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1285 2004-06-03 Werner LEMBERG <wl@gnu.org>
1287 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1289 (install_data): Add $(srcdir).
1291 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1294 2004-06-02 Werner LEMBERG <wl@gnu.org>
1296 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1297 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1298 Add test for Xmu library.
1299 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1300 GROFF_APPRESDIR_DEFAULT): New macros.
1302 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1303 and GROFF_APPRESDIR_DEFAULT.
1305 * configure: Regenerated.
1307 * Makefile.in (appresdir): New variable.
1308 (MDEFINES): Add appresdir.
1310 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1312 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1314 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1315 `$(srcdir)/eign', not `eign'.
1317 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1319 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1320 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1321 Protect (g)xditview with `\%' to avoid hyphenation.
1322 Other minor formatting.
1324 2004-06-01 Werner LEMBERG <wl@gnu.org>
1326 Integrate gxditview into groff's standard directory hierarchy.
1328 * src/xditview/*: Moved to ...
1329 * src/devices/xditview/*: Here.
1330 Moved DviChar.h and XFontName.h to src/include.
1331 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1332 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1333 Moved xtotroff.c to new directory src/utils/xtotroff.
1334 Provide proper Makefile.sub files (reusing the stuff from
1336 DESC renamed to DESC.in.
1337 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1338 Converted everything from K&R to ANSI C.
1339 Decorated with const where appropriate.
1340 Cast string constants with `String' and `char *' where appropriate.
1341 Made it compile with C++ (used as a C compiler).
1342 Removed other minor compiler warnings.
1344 * src/devices/xditview/device.c: Include config.h, string.h, and
1346 Don't declare `exit', `strtok', `strchr', and `getenv'.
1349 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1352 * src/devices/xditview/xditview.c: Include config.h.
1353 Include stdio.h earlier.
1354 Protect declaration of `popen' and `pclose' with
1355 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1356 Replace `caddr_t' with `XtPointer'.
1357 (MakePromptFunc): New typedef.
1358 (DoPrint): Use RETSIGTYPE.
1359 (promptfunction): Change type to MakePromptFunc.
1360 (MakePrompt): Use MakePromptFunc for third argument.
1363 * src/devices/xditview/ad2c: Add casts to `String'.
1365 * src/include/XFontName.h (XFontNameString): Don't use array
1367 Add prototypes for `XParseFontName', `XFormatFontName',
1368 `XCompareFontName', and `XCopyFontName'.
1370 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1373 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1374 Don't declare `XParseFontName' and `XFormatFontName'.
1376 (main): Remove `optind' and `optarg'.
1378 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1379 (to select programs which need X).
1380 Make XDEVIDIRS depend on `FORCE'.
1381 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1383 (MDEFINES): Updated.
1384 (LIBDIRS): Use XLIBDIRS.
1385 (CPROGDIRS): Use XPROGDIRS.
1386 (DEVDIRS): Remove font directories for gxditview.
1387 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1388 (EXTRADIRS): Remove src/xditview.
1390 * Makefile.sub (DISCLEANFILES): Updated.
1392 * Makefile.comm (LIBXUTIL): New variable.
1393 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1394 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1396 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1398 * aclocal.m4 (GROFF_X11): New function.
1400 * configure.ac: Call GROFF_X11.
1401 Don't create src/xditview/Imakefile.
1402 Don't emit notice how to build gxditview.
1404 * configure: Regenerated.
1406 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1408 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1410 * Makefile.in (CPPFLAGS): Define.
1411 (MDEFINES): Add CPPFLAGS.
1413 2004-05-27 Werner LEMBERG <wl@gnu.org>
1415 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1417 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1419 Fix problems with `friend name injections'.
1421 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1422 make_script_box), src/roff/troff/div.h (end_diversions),
1423 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1426 2004-05-25 Bernd Warken <bwarken@mayn.de>
1428 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1430 2004-05-25 Werner LEMBERG <wl@gnu.org>
1432 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1433 src/libs/libgroff/color.cpp: Include lib.h.
1435 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1437 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1438 through Forte 6u1, and for how to get GNU make on Solaris.
1440 2004-05-24 Werner LEMBERG <wl@gnu.org>
1442 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1445 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1447 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1450 2005-05-14 Werner LEMBERG <wl@gnu.org>
1452 * REVISION: Set to 2.
1454 * aclocal.m4 (GROFF_STDINT_H): Removed.
1455 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1457 * configure.ac: Updated.
1458 * configure, src/include/config.hin: Regenerated.
1460 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1461 inttypes.h conditionally.
1463 2003-05-13 Werner LEMBERG <wl@gnu.org>
1465 Version 1.19.1 released
1466 =======================
1468 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1470 * src/preproc/refer/label.y (same_author_last_name,
1471 same_author_name): Handle empty sort keys.
1473 2004-05-10 Werner LEMBERG <wl@gnu.org>
1475 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1478 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1479 doc-str-Lb-librt): Reset font.
1480 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1481 Provide `doc-str-Lb' to reset font.
1482 * tmac/groff_mdoc.man: Updated.
1484 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1486 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1487 snprintf versions which don't conform to ANSI C 99 (this is,
1488 counting the string's trailing null byte in the return value).
1490 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1492 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1493 that all implementations of sprintf handle null pointers correctly.
1495 2004-05-04 Werner LEMBERG <wl@gnu.org>
1497 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1498 Document `.U' register.
1500 * src/roff/troff/env.cpp (environment::mark_last_line)
1501 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1503 2004-05-04 Larry Kollar <kollar@alltel.net>
1505 New read-only register `.U'; it returns 1 in safer mode and 0
1508 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1511 2004-05-03 Werner LEMBERG <wl@gnu.org>
1513 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1515 2004-04-17 Werner LEMBERG <wl@gnu.org>
1517 * src/include/font.h (font): Use `int' for ch_index.
1518 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1519 font::compact): Updated.
1521 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1524 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1525 (hyphen_word): Fix compiler warnings.
1526 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1529 (get_delim_number, get_line_arg): Change second argument type to
1531 (macro_header::copy, token::next, do_define_string,
1532 do_define_character, substring_request, asciify_macro,
1533 unformat_macro, read_size, non_interpreted_node::interpret,
1534 while_request, main: Fix compiler warnings.
1535 (read_color_draw_node): Initialize `col'.
1537 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1538 `start_col' and `end_col' of type `int'.
1539 (vertical_rule): Make `col' of type `int'.
1541 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1544 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1546 (format_serial): Use them to remove dependency on ASCII.
1548 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1550 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1553 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1555 (glyph): Change type of `hpos' to `int'.
1557 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1558 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1560 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1562 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1564 2004-04-16 Werner LEMBERG <wl@gnu.org>
1566 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1567 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1568 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1569 `double' instead of `float' everywhere.
1570 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1572 (main): Add return value.
1573 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1575 Update all user functions.
1577 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1578 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1579 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1580 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1581 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1582 src/roff/troff/input.cpp, src/roff/troff/request.h,
1583 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1586 * src/utils/indxbib/signal.c: Include stdlib.h.
1588 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1590 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1591 before the first page.
1593 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1595 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1596 (doc-operating-system-*): Updated.
1597 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1598 (doc-str-Lb-*): Add more library names.
1600 2004-04-10 Art Haas <ahaas@airmail.net>
1602 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1605 2004-04-09 Art Haas <ahaas@airmail.net>
1607 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1609 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1611 * arch/misc/shdeps.sh: Generate better comment for sed script.
1613 2004-04-08 Art Haas <ahaas@airmail.net>
1615 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1616 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1617 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1618 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1619 (polyfill), src/preproc/grn/main.cpp (polyfill),
1620 src/preproc/refer/command.cpp (command_table),
1621 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1622 gcc 3.5 doesn't like).
1624 2004-04-08 Werner LEMBERG <wl@gnu.org>
1626 Removing many compiler warnings. groff should now compile with
1627 a C++ compiler used for C files also. [Simple variable renamings
1628 to avoid shadowing aren't logged in detail.]
1630 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1631 (draw_dvi_printer::draw) ['c']: Enclose in block.
1633 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1634 (page::add_line): Fix typos.
1635 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1637 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1638 Some local variable renamings.
1639 * src/devices/grolbp/lbp.h: Some local variable renamings.
1641 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1644 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1645 Remove redundant local variable declaration.
1646 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1647 Don't use `caddr_t' but `void *'.
1648 Enclose functions with `extern "C"' for C++.
1650 * src/libs/libdriver/input.cpp (remember_filename,
1651 remember_source_filename): Use cast for string constant.
1653 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1654 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1655 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1656 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1658 Enclose functions with `extern "C"' for C++.
1659 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1660 (needs_quoting): Return `int'.
1661 (quote_arg): Add proper casts to malloc and realloc.
1662 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1663 various MS Windows environments.
1664 (spawnvp_wrapper): Add proper cast to malloc.
1666 * src/preproc/eqn/box.h: Remove redundant declarations of
1667 `make_script_box', `make_mark_box' and `make_lineup_box'.
1668 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1669 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1672 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1673 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1674 (dx, dy): Renamed functions to...
1675 (deltax, deltay): This.
1676 * src/preproc/grn/main.cpp: Some local variable renamings.
1677 (deffont): Add `const'.
1678 (initpic, conv): Use cast for string constant.
1680 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1681 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1682 (char_buffer::run_output_filter): Second argument is unused.
1683 * src/preproc/html/pushback.cpp: Some local variable renamings.
1685 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1686 * src/preproc/pic/object.cpp: Some local variable renamings.
1688 * src/preproc/refer/label.y (lookup_label): Remove redundant
1689 declaration of local variable.
1691 * src/preproc/soelim.cpp: Remove redundant declaration of
1692 `interpret_lf_args'.
1694 * src/preproc/tbl/main.cpp: Some local variable renamings.
1696 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1697 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1698 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1699 Don't use C++-style comments.
1701 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1702 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1703 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1705 * src/roff/troff/div.h: Remove redundant declaration of
1707 * src/roff/troff/troff.h: Remove redundant declaration of
1709 * src/roff/troff/input.cpp: Remove redundant declaration of
1710 `handle_first_page_transition' and `process_input_stack'.
1712 * src/utils/hpftodit.cpp: Some local variable renamings.
1714 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1716 Don't define RETSIGTYPE.
1717 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1719 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1720 (error): Use `const' in argument.
1721 (main): Remove redundant declaration of `optind'.
1722 Move declaration of `Version_string' to top-level.
1724 * PROBLEMS: Document difficulties compiling signal.c if a C++
1725 compiler is used for C.
1727 2004-04-07 Werner LEMBERG <wl@gnu.org>
1729 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1731 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1733 Make scripts like nroff.sh and neqn.sh portable across various
1734 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1735 non-POSIX path separators. The idea is to extend those scripts to
1736 decide at run-time (of the script) which path separator to use.
1738 * arch/misc/Makefile.sub: New file.
1739 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1740 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1741 a proper definition of the variable `GROFF_RUNTIME'.
1743 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1744 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1745 (PROGDEPDIRS): New variable.
1747 (PROGDIRS): Add PROGDEPDIRS.
1749 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1750 Don't substitute @SEP@ and @BINDIR@.
1751 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1752 (PATH): Use GROFF_RUNTIME.
1754 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1755 Don't substitute @SEP@ and @BINDIR@.
1756 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1757 (PATH): Use GROFF_RUNTIME.
1759 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1761 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1762 Cygwin which doesn't handle stderr correctly.
1764 2004-03-08 Werner LEMBERG <wl@gnu.org>
1766 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1767 against empty argument. Problem reported by <cgd@broadcom.com>.
1769 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1771 * Makefile.in (SEP): Replaced with...
1772 (RT_SEP, SH_SEP): Separators for the target platform's native path
1773 separator and the build environment, respectively.
1774 (fontpath, tmacpath): Use RT_SEP.
1775 (MDEFINES): Updated.
1777 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1778 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1779 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1780 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1782 2004-03-05 Werner LEMBERG <wl@gnu.org>
1784 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1785 reduce alignment problems with newer printers which use built-in
1786 TrueType fonts (instead of the older Intellifonts). The ideal
1787 solution is to provide a second set of groff metric files, but this
1788 is extremely time-consuming to produce, given that HP's metric
1789 files are very rudimentary.
1791 2004-03-01 Werner LEMBERG <wl@gnu.org>
1793 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1794 s/operand/argument/ in error message.
1796 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1798 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1801 2004-03-01 Antti Kantee <pooka@netbsd.org>
1803 * tmac/s.tmac (XE): Fix error message.
1805 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1807 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1810 * src/roff/groff/pipeline.c: Declare strcasecmp.
1811 (run_pipeline) [_WIN32]: Use function name variants which don't
1813 Fix stream handling.
1815 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1817 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1818 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1819 for platforms which use the native Win32 runtime libraries.
1820 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1822 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1823 QUOTE_ARG_REALLOC_ERROR): Fix string.
1825 * src/preproc/html/pre-html.cpp: Remove declaration of
1827 Don't use __MINGW32__.
1828 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1829 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1830 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1831 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1832 calls to `set_redirection' and `WAIT'.
1833 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1834 Fix calls to `set_redirection' and `save_and_redirect'.
1835 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1836 to `set_redirection' and `save_and_redirect'.
1837 (usage): Fix message.
1838 (makeTempFiles, main): Use `DEBUG_FILE'.
1840 2004-02-21 Werner LEMBERG <wl@gnu.org>
1842 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1844 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1846 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1847 quoting for MSVC's spawn* and exec* functions.
1848 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1849 spawnvp with proper quoting for MSVC.
1851 * src/libs/libgroff/assert.cpp (program_name),
1852 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1853 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1855 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1857 * src/include/error.h (program_name): Declare as `extern "C"'.
1858 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1860 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1862 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1864 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1866 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1868 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1870 (sbasename) [__MSDOS__ || ...]: New function.
1871 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1873 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1874 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1876 Use STDOUT_FILENO instead of hardcoded file handle.
1877 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1879 2004-02-19 Werner LEMBERG <wl@gnu.org>
1881 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1882 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1884 2004-02-18 Werner LEMBERG <wl@gnu.org>
1886 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1887 new font and mapping files.
1889 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1890 Keith Marshall <keith.d.marshall@ntlworld.com>
1892 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1893 an input pipe. This is needed for the MSVC compiler to make troff's
1896 * src/roff/troff/div.cpp: Include nonposix.h.
1897 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1899 2004-02-17 Werner LEMBERG <wl@gnu.org>
1901 * font/devlj4/generate/special.awk: New script.
1902 * font/devlj4/generate/Makefile (S): Use special.awk.
1903 * font/devlj4/*: Regenerated, including the following new files:
1904 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1905 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1906 * NEWS: Document new lj4 fonts and revised hpftodit.
1908 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1910 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1912 2004-01-25 Werner LEMBERG <wl@gnu.org>
1914 * src/libs/libgroff/progname.cpp: Replaced with...
1915 * src/libs/libgroff/progname.c: New file.
1916 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1918 2004-01-17 Werner LEMBERG <wl@gnu.org>
1920 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1922 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1924 * font/devlj4/generate/wingdings.map,
1925 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1926 Use groff glyph names where possible.
1927 * src/devices/grolj4/lj4_font.man: Minor updates.
1929 2004-01-13 Werner LEMBERG <wl@gnu.org>
1931 * tmac/www.tmac (DC): Handle TTY devices.
1933 * doc/webpage.ms: Document viewCVS from ffii.org.
1934 * NEWS, README: Updated.
1936 * src/roff/groff/groff.man: Mention lj4_font man page.
1938 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1940 (FONTS): Add SYMBOL and WINGDINGS.
1941 (SYMBOL, WINGDINGS): New targets.
1943 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1945 * src/devices/grolj4/lj4_font.man: New man page.
1946 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1947 * src/devices/grolj4.man: Mention lj4_font man page.
1949 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1950 * src/utils/hpftodit/hpftodit.man: Document it.
1952 Remove details about fonts (which are now in lj4_font.man).
1954 * font/devlj4/generate/symbol.map,
1955 font/devlj4/generate/wingdings.map: New files.
1957 2004-01-12 Werner LEMBERG <wl@gnu.org>
1959 * README: Mention ffii's viewcvs access.
1961 2004-01-09 Werner LEMBERG <wl@gnu.org>
1963 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1965 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1967 Revert most of the change from 2004-01-03 to better control used
1970 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1971 (text_symbol_sets, special_symbol_sets): New arrays.
1972 (symbol_set_table): New global variable.
1973 (read_symbol_sets): Use search order given in the text_symbol_sets
1974 and special_symbol_sets arrays. If command line flag -a is not
1975 given, search both arrays.
1976 (output_charset): Require x_height_tag only for command line flag -i.
1978 2004-01-06 Werner LEMBERG <wl@gnu.org>
1980 Implement string-valued registers \n[.m] and \n[.M] to return the
1981 name of the current drawing and background color, respectively.
1983 * src/roff/troff/symbol.h: Moved to...
1984 * src/include/symbol.h: Here.
1985 Small fixes to make it work outside of the `troff' directory.
1986 * src/roff/troff/symbol.cpp: Moved to...
1987 * src/libs/libgroff/symbol.cpp: Here.
1988 Small fixes to make it work outside of the `troff' directory.
1990 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1991 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1994 * src/include/color.h: Include symbol.h.
1995 (color): Add new field `nm'.
1996 * src/libs/libgroff/color.cpp (color::color): Updated.
1998 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1999 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2000 src/roff/troff/reg.cpp: Don't include symbol.h.
2002 * src/roff/troff/env.cpp: Don't include symbol.h.
2003 (environment::get_glyph_color_string,
2004 environment_get_fill_color_string): New member functions.
2005 (init_env_requests): Handle `.m' and `.M' registers.
2006 * src/roff/troff/input.cpp: Don't include symbol.h.
2007 (default_symbol): Moved to symbol.cpp/symbol.h.
2008 (do_glyph_color, do_fill_color, define_color): Pass symbol name
2009 to color constructor.
2010 * src/roff/troff/env.h: Updated.
2012 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2013 Document new registers.
2015 2004-01-05 Werner LEMBERG <wl@gnu.org>
2017 * src/roff/troff/node.cpp (space_node::get_breakpoints,
2018 space_node::nbreaks): Protect against zero `next' field.
2020 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
2022 In hpftodit, use the symbol sets offered in the TFM.
2024 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2025 (symbol_set, text_symbol_sets, special_symbol_sets,
2026 symbol_set_table): Removed.
2027 (get_printcode): Removed.
2028 (read_symbol_sets): Initialize `symbol_set' field with
2030 Simplify code to just use the `kind' value.
2031 (output_charset): Improve output formatting.
2032 (dump_symbols): Simplified.
2034 2004-01-02 Werner LEMBERG <wl@gnu.org>
2036 * font/devlj4/generate/text.map: Add more MSL numbers.
2038 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
2040 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2041 (text_symbol_sets): Add more symbol sets.
2042 (debug_flag): New static variable (moved from `main').
2043 (get_printcode, show_symset): New functions.
2044 (main): Remove `debug_flag'.
2045 (output_charset): Use `show_symset'.
2046 (dump_symbols): Use `show_symset'.
2047 Print symsets for all glyphs.
2048 (read_map): Actually call `unicode_to_ucode_make' but this time
2051 2004-01-01 Werner LEMBERG <wl@gnu.org>
2053 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2054 Fix placement of comments.
2056 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2058 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2059 option `-d' is given.
2060 (output_charset): Improve warning messages to give more information.
2061 (dump_symbols): Make information more precise.
2063 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2064 appear as-is and shouldn't be decomposed.
2066 2003-12-31 Werner LEMBERG <wl@gnu.org>
2068 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2069 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2070 (FONTS): Add TrueType font families Arial and Times New Roman.
2071 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2072 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2075 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2077 * test-groff.in (SEP): Quote value.
2078 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2079 `tem' to `char*' to avoid deallocation of a pointer to a constant
2080 object which some compilers don't like.
2082 2003-12-31 Werner LEMBERG <wl@gnu.org>
2084 * font/devlj4/generate (text.map, special.map): Rewritten to work
2085 with the new hpftodit version.
2087 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2089 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2090 set and 8bit character code for all glyphs also.
2092 2003-12-30 Werner LEMBERG <wl@gnu.org>
2094 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2096 2003-12-29 Werner LEMBERG <wl@gnu.org>
2098 More fixes for MSVC compiler.
2100 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2103 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2104 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2105 (getpid) [_MSC_VER]: Remove.
2106 Include direct.h and process.h conditionally.
2108 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2109 parentheses for a_delete.
2111 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2113 * test-groff: Replaced with...
2114 * test-groff.in: This new template to handle path separator
2117 * configure.ac: Check for direct.h and process.h.
2118 Generate test-groff script.
2119 * configure, src/include/config.hin: Regenerated.
2121 2003-12-28 Werner LEMBERG <wl@gnu.org>
2123 Add integral extension glyph.
2124 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2126 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2128 * font/devps/generate/textmap: Provide entry for `integralex' to
2129 override (old) PUA value of the AGL.
2130 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2131 * font/devps/*: Regenerated.
2133 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2134 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2136 2003-12-27 Werner LEMBERG <wl@gnu.org>
2138 Add forgotten `coproduct' symbol (already available for DVI).
2140 * font/devhtml/R.proto, font/devps/generate/textmap,
2141 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2142 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2143 U+2210 (\[coproduct]).
2145 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2147 hpftodit has been extended to handle TrueType metric files and
2148 more glyphs. See hpftodit.man for more details.
2150 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2151 ctype.h, and unicode.h.
2152 s/msl/charcode/ everywhere since we now handle Unicode values also.
2153 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2154 Use it where appropriate.
2155 (MULTIPLIER): Replaced with...
2156 (multiplier): New global static variable.
2158 (tag_type): Add more TFM tags.
2159 (tag_name): New array.
2160 (ENUM_TYPE, FLOAT_TYPE): Removed.
2161 (BYTE_TYPE): New value assigned.
2162 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2163 (text_symbol_sets, special_symbol_sets): Extended to cover more
2165 (check_type): Add return value.
2166 (check_units): Add parameters to get ppi and upem values.
2167 Handle TrueType TFM data.
2168 (output_font_name): New function.
2169 (output_charset): Add parameter to handle TFM type.
2170 Handle TrueType TFMs also.
2171 (em_fract): New macro.
2172 (dump_tags): Be much more verbose and handle more tags.
2173 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2174 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2176 (read_map): Add parameter to handle TFM type.
2177 Handle both MSL and Unicode mappings.
2178 (main): Add two new command line options `-a' and `-q'.
2179 Updated to make use of new functions.
2182 * src/utils/hpftodit/hpuni.cpp: New file.
2184 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2187 2003-12-25 Werner LEMBERG <wl@gnu.org>
2189 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2191 2003-12-24 Werner LEMBERG <wl@gnu.org>
2193 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2194 by Michail Vidiassov <master@iaas.msu.ru>.
2196 2003-12-20 Werner LEMBERG <wl@gnu.org>
2198 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2200 Add missing latin-2 glyphs.
2201 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2203 * tmac/troffrc: Load `composite.tmac' earlier.
2205 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2206 u00{53,73}_0327, and u0049_0307.
2207 * tmac/X.tmac: Add u00{47,67}_0306.
2208 * tmac/tty-char.tmac: Use composite glyph names for readability.
2212 * src/include/unicode.h: Remove `extern' keywords.
2214 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2216 * tmac/latin5.tmac: New file.
2218 2003-12-19 Werner LEMBERG <wl@gnu.org>
2220 Add some glyphs needed for Turkish.
2222 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2225 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2226 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2227 u00{53,73}_0327, and u0049_0307.
2229 2003-12-18 Werner LEMBERG <wl@gnu.org>
2231 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2233 Remove trailing zeros.
2235 2003-12-17 Werner LEMBERG <wl@gnu.org>
2237 Make \? transparent to end-of-sentence recognition.
2239 * src/roff/troff/input.cc (non_interpreted_node): Add
2240 `ends_sentence' member function.
2242 2003-12-16 Werner LEMBERG <wl@gnu.org>
2244 * doc/groff.texinfo: Document `dt' request correctly.
2245 Other minor typographical improvements.
2247 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2249 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2251 2003-12-10 Richard Stallman <rms@gnu.org>
2253 * LICENSE: Better wording.
2255 2003-12-09 Werner LEMBERG <wl@gnu.org>
2257 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2258 * configure, NEWS: Updated.
2260 2003-12-08 Werner LEMBERG <wl@gnu.org>
2262 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2264 2003-12-07 Bernd Warken <bwarken@mayn.de>
2268 2003-12-07 Werner LEMBERG <wl@gnu.org>
2270 * INSTALL: Improved.
2272 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2274 Use path separator character of target platform for compiled-in
2277 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2278 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2279 * configure: Regenerated.
2280 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2282 2003-12-05 Werner LEMBERG <wl@gnu.org>
2284 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2285 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2287 2003-12-04 Bernd Warken <bwarken@mayn.de>
2289 * LICENSE: New file.
2291 2003-12-03 Werner LEMBERG <wl@gnu.org>
2293 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2294 ligatures present in AFM files since groff currently only
2295 understands some standard ligatures and nothing else.
2297 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2299 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2302 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2305 Don't use Unix wait flags.
2307 2003-12-02 Werner LEMBERG <wl@gnu.org>
2309 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2310 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2311 src/roff/troff/uniuni.cpp: Moved to...
2312 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2313 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2314 src/libs/libgroff/uniuni.cpp: Here.
2316 * src/include/Makefile.sub.old (HDRS),
2317 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2318 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2320 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2322 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2326 2003-12-01 Werner LEMBERG <wl@gnu.org>
2328 * groff.texinfo: Document special behaviour of `.vs 0'.
2329 Improve documentation of `cflags' request.
2332 2003-11-29 Werner LEMBERG <wl@gnu.org>
2334 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2335 * font/devlj4/CORONET: Regenerated.
2337 2003-11-24 Werner LEMBERG <wl@gnu.org>
2339 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2340 if processing hyphenation patterns in traditional mode.
2341 Improve error messages.
2343 2003-11-20 Werner LEMBERG <wl@gnu.org>
2345 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2346 troff_output_file::put_char): Fix type of local variable `c'.
2348 2003-11-19 Werner LEMBERG <wl@gnu.org>
2350 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2352 (i_to_a): Removed. libgroff already provides this function.
2353 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2355 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2357 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2360 2003-11-17 Werner LEMBERG <wl@gnu.org>
2362 * COPYING: Use correct version.
2364 2003-11-11 Werner LEMBERG <wl@gnu.org>
2366 LynxOS 4.0.0 doesn't declare vfprintf.
2368 * configure.ac: Check for vfprintf.
2369 * configure: Regenerated.
2370 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2371 * src/include/config.hin: Regenerated.
2373 2003-11-10 Werner LEMBERG <wl@gnu.org>
2375 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2377 * configure.ac: Check for vsnprintf.
2378 * configure: Regenerated.
2379 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2381 * src/include/config.hin: Regenerated.
2383 2003-11-09 Werner LEMBERG <wl@gnu.org>
2385 * aclocal.m4: Updated syntax to autoconf 2.59.
2386 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2387 Don't check for gsos2.
2388 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2389 working abs_top_srcdir and abs_top_builddir.
2391 * configure.ac: Updated syntax to autoconf 2.59.
2392 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2393 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2394 * configure: Regenerated.
2396 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2397 s/@groff_top_builddir@/@abs_top_builddir@/.
2399 * src/roff/groff/pipeline.c (xstrsignal):
2400 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2402 2003-11-07 Werner LEMBERG <wl@gnu.org>
2404 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2405 make start angle smaller than end angle to circumvent a bug in tpic
2406 handling of some versions of dvipdfm (and dvipdfmx).
2408 2003-10-30 Werner LEMBERG <wl@gnu.org>
2410 * src/devices/grops/grops.man: Improve section on creating EPS.
2412 2003-10-29 Werner LEMBERG <wl@gnu.org>
2414 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2417 2003-10-28 Werner LEMBERG <wl@gnu.org>
2419 * doc/groff.texinfo: Fix documentation of `.if'.
2421 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2423 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2424 the form `uniXXXX' also.
2426 2003-10-27 Werner LEMBERG <wl@gnu.org>
2428 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2429 contrib/pic2graph/pic2graph.sh: Implement secure management of
2431 Pass `-P-pletter' to groff to avoid data outside of the converted
2432 area -- some versions of `convert' (for example 5.3.8) don't check
2433 the bounding box of the image but always use a fixed image size
2434 (letter paper format).
2435 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2436 contrib/pic2graph/pic2graph.man: Updated.
2438 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2440 2003-10-26 Werner LEMBERG <wl@gnu.org>
2442 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2443 troff_output::simple_ellipse, troff_output::simple_arc,
2444 troff_output::simple_line, troff_output::simple_spline,
2445 troff_output::simple_polygon): Insert a space before arguments.
2446 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2447 latter doesn't produce a node, so the following `.sp -1' would do
2449 Don't emit `.sp -1' after \M. This also doesn't produce a token
2450 (and we don't have to care about compatibility mode).
2451 (troff_output::set_color, troff_output::reset_color): Don't emit
2452 `.sp -1' after \M and \m.
2454 * src/roff/troff/input.cpp (old_have_input): New global variable.
2455 (input_stack::get): Handle `old_have_input'.
2456 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2457 `trapping_blank_line' depending on `old_have_input', not
2460 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2462 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2463 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2464 default directory names for temporary files.
2465 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2467 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2468 [__MSDOS__] (run_pipeline): Honour environment variables.
2469 Don't use `tmpnam' but `tempnam' to work around messy
2472 * README.MinGW: New file.
2474 2003-10-16 Werner LEMBERG <wl@gnu.org>
2476 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2477 `(*t)->next' without testing validity of `*t'.
2478 (usage): Make it more readable.
2480 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2482 Make html device run under both MS-DOS and Win32.
2484 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2485 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2486 spawn or fork+exec has to be used, and whether parent must sleep
2487 until the child process terminates. Used in
2488 `char_buffer::run_output_filter'.
2489 (copyofstdoutfd): Removed.
2490 (char_buffer): Replace `write_file_html' and `write_file_troff'
2491 member functions with `emit_troff_output' and `run_output_filter'.
2492 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2494 (replaceFd): Replaced with...
2495 (set_redirection): New auxiliary function.
2496 (waitForChild): Replaced with...
2497 (save_and_redirect): New auxiliary function for.
2499 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2502 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2504 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2505 (GROFF_LIBC): New function.
2506 * configure.ac: Call GROFF_LIBC.
2508 * configure: Regenerated.
2510 * src/include/lib.h: Handle __MINGW32__.
2511 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2512 Add macro for `pipe'.
2515 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2518 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2521 2003-10-13 Werner LEMBERG <wl@gnu.org>
2523 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2526 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2529 2003-10-12 Werner LEMBERG <wl@gnu.org>
2531 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2532 src/roff/troff/input.cc (usage): Updated.
2534 * NEWS, doc/groff.texinfo: Updated.
2536 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2538 * src/libs/libgroff/searchpath.cpp
2539 (search_path::open_file_cautious): New function which also handles
2540 `-' as stdin and stdout depending on the access mode.
2541 * src/include/searchpath.h (search_path): Updated.
2543 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2544 * src/devices/grops/ps.h: Include `searchpath.h'.
2545 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2546 Open resource file with `include_search_path.open_file_cautious'.
2547 * src/devices/grops/grops.man: Document new `-I' switch.
2549 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2550 (main), src/devices/grolj4/lj4.cpp (main),
2551 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2553 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2555 (include_search_path): New global variable.
2556 (include_path_append): Removed.
2557 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2558 (do_file): Simplify, using new
2559 `include_search_path.open_file_cautious'.
2561 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2563 (main): Pass arguments to `-I' to both troff and devices.
2564 Improve handling of `-V'.
2565 * src/roff/groff/groff.man: Document changes to -I and -V.
2567 * src/roff/troff/input.cpp (include_search_path): New global
2569 (next_file, source, ps_bbox_request, transparent_file,
2570 process_input_file): Use new
2571 `include_search_path.open_file_cautious'.
2572 (main) Handle `-I' switch.
2573 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2574 Use new `include_search_path.open_file_cautious'.
2575 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2576 * src/roff/troff/troff.man: Document new `-I' switch.
2578 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2580 Support multiple calls of .Lb in LIBRARY section.
2582 * tmac/doc-common (doc-in-library-section): New register.
2583 (doc-section-library): New string.
2584 (Sh): Set `doc-in-library-section'.
2586 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2587 if in LIBRARY section.
2588 * tmac/doc.tmac (doc-save-global-vars): Updated.
2589 * NEWS, tmac/groff_mdoc.man: Updated.
2591 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2593 * tmac/doc-common (doc-default-operating-system): New variable.
2596 2003-09-08 Werner LEMBERG <wl@gnu.org>
2598 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2600 2003-08-31 Werner LEMBERG <wl@gnu.org>
2602 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2603 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2604 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2605 $(DEVFILES) are not empty.
2606 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2608 2003-08-26 Chuck Silvers <chuq@chuq.com>
2610 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2611 with parallel runs of `make'.
2613 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2615 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2616 insert SORT_SEP. With certain combinations of sort specifications,
2617 refer sorted entries in the wrong order. In particular, entries
2618 with a missing field should be be sorted before all entries that
2619 have that field, before refer looks to the next field.
2621 2003-08-23 Werner LEMBERG <wl@gnu.org>
2623 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2624 g++ linker is used. Reported by Mark J. Reed
2625 <mark.reed@turner.com>.
2627 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2629 Add key character `x' to tbl which makes tbl call a user-defined
2630 macro on a table cell.
2632 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2633 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2634 `set_modifier' after printing the compatibility request.
2635 (set_modifier): Print call to `m->macro' if not empty.
2636 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2638 (process_format): Implement cases `x' and `X'.
2639 * src/preproc/tbl/tbl.man, NEWS: Updated.
2641 2003-08-15 Werner LEMBERG <wl@gnu.org>
2643 * doc/groff.texinfo: Minor fixes.
2645 2003-08-09 Werner LEMBERG <wl@gnu.org>
2647 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2649 2003-08-07 Werner LEMBERG <wl@gnu.org>
2651 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2652 argument list to nothing if there is no file to match. Use `ls' as
2653 a protection, similar to autoconf.
2655 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2656 empty argument lists.
2658 * doc/groff.texinfo: Improve documentation how vertical spacing
2659 and line breaks interact.
2662 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2664 2003-08-03 Werner LEMBERG <wl@gnu.org>
2666 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2667 EPS (using eps2eps or similar programs to compute the bounding box).
2669 2003-07-24 Werner LEMBERG <wl@gnu.org>
2671 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2672 * doc/texinfo.tex: Updated from texinfo 4.6.
2673 * README.CVS: From now on we need texinfo 4.6.
2675 2003-07-23 Werner LEMBERG <wl@gnu.org>
2677 Add requests `dei1' and `ami1' for completeness.
2679 * src/roff/troff/input.cc (calling_mode): Remove
2680 CALLING_DISABLE_COMP.
2681 (comp_mode): New enumeration.
2682 (do_define_string, define_string, define_nocomp_string,
2683 append_string, append_nocomp_string): Updated.
2684 (do_define_macro): Add third parameter.
2685 (define_macro, define_nocomp_macro, define_indirect_macro,
2686 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2687 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2690 (init_input_requests): Add `dei1' and `ami1'.
2692 * tmac/trace.tmac: Handle de1 and am1.
2693 (de): Improve tracing message.
2694 (am): Add missing `do'.
2697 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2698 Document new requests.
2700 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2702 Add option -G to .MPIMG to insert a gap between text and the image.
2704 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2705 www-finish-left-ll): Updated.
2706 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2707 (MPIMG): Make option -L and -R optional.
2708 Implement option -G.
2710 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2712 * src/devices/grohtml/post-html.cpp
2713 (html_printer::do_file_components): Don't use `stdout' as lvalue
2714 since it can be a macro.
2716 2003-07-22 Werner LEMBERG <wl@gnu.org>
2718 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2719 the corresponding test in aclocal.m4.
2721 2003-07-21 Werner LEMBERG <wl@gnu.org>
2723 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2724 names but RGB values directly. Otherwise pnmtopng depends on
2725 an external file `rgb.txt' which maps colour names to values.
2727 2003-07-20 Werner LEMBERG <wl@gnu.org>
2729 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2730 * configure, src/include/config.hin: Regenerated.
2732 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2734 2003-07-19 Werner LEMBERG <wl@gnu.org>
2736 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2738 2003-07-18 Werner LEMBERG <wl@gnu.org>
2740 * *.man: Switch to non-compatibility mode temporarily if GNU
2741 syntax extensions are used in the particular man page.
2743 * PROBLEMS: Add solutions for SGR problems.
2745 2003-07-17 Werner LEMBERG <wl@gnu.org>
2747 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2748 used to change the drawing scheme.
2750 * src/devives/grotty/tty.cpp (bold_flag_option,
2751 underline_flag_option, italic_flag_option, reverse_flag_option,
2752 bold_underline_mode_option): New global variables.
2753 (update_options): New function.
2754 (tty_printer::special): Call update_options.
2755 (main): Don't set xxx_flag but xxx_flag_option, then call
2758 2003-07-14 Werner LEMBERG <wl@gnu.org>
2760 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2762 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2764 (hline_char, vline_char): New global variables.
2765 (tty_printer::tty_printer): Initialize them.
2766 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2767 horizontal and vertical lines.
2768 (crossings): New global array.
2769 (tty_printer::end_page): Use it to determine the proper crossing
2770 character for -Tutf8.
2772 2003-07-12 Werner LEMBERG <wl@gnu.org>
2774 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2775 (HTMLDOCFILES): Revert to `pic.html'.
2776 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2778 2003-07-11 Werner LEMBERG <wl@gnu.org>
2780 * doc/pic.ms: Improve documentation of absolute coordinates.
2781 Document absolute positioning of pictures.
2783 * NEWS: Add new pic capability.
2785 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2787 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2790 2003-07-07 Werner LEMBERG <wl@gnu.org>
2792 Implement support for dashed and dotted ellipses in pic. Based on
2793 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2795 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2796 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2797 functions. Ellipse arcs are approximated with circle arcs.
2798 * src/preproc/pic/common.h (common_output): Updated.
2799 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2801 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2803 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2805 2003-07-06 Werner LEMBERG <wl@gnu.org>
2807 Make grotty work on platforms which have unsigned char as the
2808 default for char. Based on a patch by Thomas Klausner
2811 * src/devices/grotty/tty.cpp (schar): New typedef.
2812 Updated calls to declare_ptable and implement_ptable.
2813 (glyph): Use schar for back_color_idx and fore_color_idx.
2814 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2815 (tty_printer::tty_color, tty_printer::tty_printer,
2816 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2818 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2820 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2821 * src/roff/nroff/nroff.man: Updated.
2823 2003-07-05 Werner LEMBERG <wl@gnu.org>
2825 * NEWS, tmac/groff_www.man: Updated.
2826 * doc/Makefile.sub: Updated.
2828 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2830 Implement support for multiple HTML output files.
2832 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2833 -j command line option.
2835 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2837 (file): New fields `new_output_file', `require_links',
2839 (file::file): Updated.
2840 (files::set_file_name, files::set_links_required,
2841 files::are_links_required, files::is_new_output_file,
2842 files::file_name, files::next_file_name): New functions.
2843 (header_desc): New fields `no_of_level_one_headings',
2845 (header_desc::header_desc): Updated.
2846 (header_desc::write_headings): Handle multiple files.
2847 (html_printer::write_header): Save file name in which header occurs.
2848 (html_printer::determine_header_level): Possibly split files on
2850 (html_printer::do_links, html_printer::troff_tag): Updated.
2851 (html_printer::insert_split_file, html_printer::do_job_name,
2852 html_printer::emit_link, html_printer::write_navigation,
2853 html_printer::do_file_components): New functions.
2854 (html_printer::~html_printer): Handle multiple files.
2855 (main): Handle command line option `-j'.
2857 * src/devices/grohtml/grohtml.man: Updated.
2859 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2862 * tmac/www.tmac (JOBNAME): New macro.
2863 * tmac/s.tmac (SH-NO-TAG): New macro.
2864 (@SH): Call SH-NO-TAG.
2867 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2869 * tmac/groff_mdoc.man: Improve documentation of punctuation
2872 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2874 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2876 2003-07-03 Werner LEMBERG <wl@gnu.org>
2878 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2880 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2882 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2883 after `/*' and `*/'.
2885 (Fn, Fo): Reduce indentation in synopsis.
2887 * tmac/doc-common (doc-check-depth): New macro.
2888 (doc-end-macro, Sh, Ss): Use it.
2889 (Cd): Fix behaviour in synopsis.
2890 (In): Make it parsed and callable.
2891 If not in the synopsis, represent the C header file enclosed in
2893 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2894 Use minus, not hyphen.
2896 * tmc/groff_mdoc.man: Updated.
2898 2003-07-01 Werner LEMBERG <wl@gnu.org>
2900 Integrated grap2graph, contributed by Eric S. Raymond.
2902 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2904 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2905 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2907 2003-07-01 Colin Watson <cjwatson@debian.org>
2909 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2910 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2912 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2914 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2916 2003-06-31 Werner LEMBERG <wl@gnu.org>
2918 * doc/Makefile.sub (CLEANADD): Remove all files created by
2919 running `make groff.{pdf,dvi}'.
2921 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2924 2003-06-30 Werner LEMBERG <wl@gnu.org>
2926 * Makefile.in (SHELL): Define as @SHELL@.
2927 (mkinstalldirs): Use $(SHELL).
2928 (MDEFINES): Add $(SHELL).
2929 * Makefile.comm (SHELL): Removed.
2931 2003-06-29 Werner LEMBERG <wl@gnu.org>
2933 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2934 The X11 documentation files use them.
2935 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2937 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2939 * tmac/e.tmac (@C): Handle .ad also.
2941 2003-06-12 Werner LEMBERG <wl@gnu.org>
2943 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2945 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2946 Assign `n' even here. It is possible to construct a node
2947 immediately following an escape character:
2955 2003-06-10 Werner LEMBERG <wl@gnu.org>
2957 * README.WIN32: Removed.
2958 * MANIFEST: Updated.
2960 2003-06-07 Werner LEMBERG <wl@gnu.org>
2962 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2964 2003-06-05 Werner LEMBERG <wl@gnu.org>
2966 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2967 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2969 2003-06-03 Werner LEMBERG <wl@gnu.org>
2971 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2972 is done by the calling function.
2974 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2976 * tmac/X.tmac: Fix definition of `em'.
2978 2003-05-22 Werner LEMBERG <wl@gnu.org>
2980 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2983 2003-05-18 Werner LEMBERG <wl@gnu.org>
2985 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2986 to make items work which consist only of a tag.
2988 2003-05-17 Werner LEMBERG <wl@gnu.org>
2990 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2991 aren't stretched in a tag (this can fail with unformatted boxes).
2992 Instead, insert a break and go back one line.
2994 2003-05-16 Werner LEMBERG <wl@gnu.org>
2996 * src/roff/troff/input.cc (return_macro_request): If called with
2997 argument pop macro twice. We need this to trace `return'.
2999 * tmac/trace.tmac: Handle `return'.
3002 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3005 2003-05-15 Larry Kollar <kollar@alltel.net>
3007 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3008 registers `FPS', `FVS', and `FPD'.
3010 2003-05-15 Werner LEMBERG <wl@gnu.org>
3012 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3015 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
3017 * tmac/groff_mdoc.man: Slight improvements.
3019 2003-05-03 Werner LEMBERG <wl@gnu.org>
3021 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3022 `doc-header-space' after header line if register `cR' is set.
3024 2003-05-02 Werner LEMBERG <wl@gnu.org>
3028 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
3030 * tmac/doc-common (Nd): Use \[em].
3032 2003-05-01 Werner LEMBERG <wl@gnu.org>
3034 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3035 doc-footer-space): Initialize to 0.5i.
3036 (doc-setup-page-layout): Don't set doc-header-space and
3039 2003-04-30 Werner LEMBERG <wl@gnu.org>
3041 * REVISION: Set to 1.
3043 * doc/pic.ms: Document possible problems with `figname'.
3045 2003-04-29 Werner LEMBERG <wl@gnu.org>
3047 Version 1.19 released
3048 =====================
3050 * VERSION: Set to 1.19.
3051 * REVISION: Set to 0.
3052 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3054 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3055 Define charset as `US-ASCII' in html output.
3057 * tmac/www.tmac (ULE): Add missing scaling indicator.
3059 * win32-diffs: Removed.
3061 2003-04-28 Werner LEMBERG <wl@gnu.org>
3063 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3065 Document how to insert discardable whitespace with `.ss'.
3067 2003-04-27 Werner LEMBERG <wl@gnu.org>
3069 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3070 work with plain TeX also.
3072 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3074 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3076 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3079 2003-04-24 Werner LEMBERG <wl@gnu.org>
3081 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3082 vbox with positive height and zero depth if in TeX mode.
3084 * NEWS: Document glyph name changes for grodvi and grolj4.
3086 2003-04-23 Werner LEMBERG <wl@gnu.org>
3088 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3089 * doc/pic.ms: Fixed.
3091 2003-04-21 Werner LEMBERG <wl@gnu.org>
3093 HP-UX 10.20 has `snprintf' but it isn't declared.
3095 * configure.ac: Add declaration test for snprintf.
3096 * configure: Regenerated.
3097 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3098 * src/include/config.hin: Regenerated.
3100 2003-04-19 Werner LEMBERG <wl@gnu.org>
3102 Add keyword `figname' to pic, specifying the name of the picture
3103 box in TeX mode. Based on a patch from William J Poser
3104 <wjposer@unagi.cis.upenn.edu>.
3106 * src/preproc/pic/pic.y: New token `FIGNAME'.
3107 (macro_name): New rule of type <str>.
3108 (placeless_element): Handle `FIGNAME'.
3109 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3110 * src/preproc/pic/main.cpp (graphname): New global variable.
3111 (do_picture): Initialize `graphname'.
3112 * src/preproc/pic/pic.h: Updated.
3113 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3116 (tex_output::text): Beautify output.
3117 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3118 `shaded' and `outlined' unconditionally.
3119 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3122 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3123 greater is necessary.
3125 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3127 Add option -r to soelim to avoid emission of `.lf' lines.
3128 Add option -t to produces TeX comment lines instead of `.lf' lines.
3130 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3133 (main): Handle `-r' and `-t'.
3134 (set_location): Handle `raw_flag' and `tex_flag'.
3135 * src/preproc/soelim/soelim.man, NEWS: Updated.
3137 2003-04-17 Werner LEMBERG <wl@gnu.org>
3139 * tmac/hyphenex.sh: Replaced with...
3140 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3143 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3144 if --quiet is used for the configure script.
3145 * configure: Regenerated.
3147 2003-04-16 Werner LEMBERG <wl@gnu.org>
3149 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3150 Add `const' to second argument.
3151 (html_printer::add_table_end): Add `const' to argument.
3152 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3153 `const' to arguments.
3154 * src/devices/grohtml/html-text.h: Updated.
3156 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3157 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3160 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3161 cast for integer constant.
3163 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3164 (writeNbytes): Add `const' to first argument.
3165 (writeString): Add `const' to argument.
3166 (char_buffer::can_see): Add `const' to third argument.
3167 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3168 `const' to argument.
3169 * src/preproc/html/pushback.h: Updated.
3171 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3172 (include_path_append): Add `const' to argument.
3175 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3177 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3178 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3180 (unicode_decompose_init::unicode_decompose_init): Updated.
3181 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3183 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3184 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3187 * tmac/hyphenex.sh: Make script more portable by using a here
3190 2003-04-15 Werner LEMBERG <wl@gnu.org>
3192 Renamed all `*.cc' files to `*.cpp'.
3193 Updated all configuration files, makefiles, and documentation.
3195 2003-04-14 Werner LEMBERG <wl@gnu.org>
3197 * tmac/hyphenex.sh: Slight improvements.
3199 2003-04-13 Werner LEMBERG <wl@gnu.org>
3201 * font/devascii/R.proto, font/devcp1037/R.proto,
3202 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3203 character slots with unnamed glyphs.
3205 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3206 (an-first): New global variable.
3207 (an-header): Emit vertical space between multiple man pages.
3209 2003-04-11 Werner LEMBERG <wl@gnu.org>
3211 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3214 2003-04-10 Werner LEMBERG <wl@gnu.org>
3216 * PROBLEMS: Revised.
3218 2003-04-10 Bernd Warken <bwarken@mayn.de>
3220 * doc/webpage.ms: Improved.
3222 2003-04-09 Werner LEMBERG <wl@gnu.org>
3224 Add register \n[.height] which returns the value of \H.
3225 Add register \n[.slant] which returns the value of \S.
3227 * src/roff/troff/env.cc (init_env_requests): Implement.
3228 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3231 2003-04-08 Werner LEMBERG <wl@gnu.org>
3233 * tmac/html.tmac: Move some of the data into html-end.tmac.
3234 Remove most of the character translations for eqn since html fonts
3235 now cover those characters.
3237 * tmac/html-end.tmac: New file.
3238 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3239 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3240 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3242 2003-04-07 Werner LEMBERG <wl@gnu.org>
3244 * man/groff_out.man: Document negative values of `N' if -Thtml is
3247 2003-04-06 Werner LEMBERG <wl@gnu.org>
3249 * Makefile.comm (depend.temp): Check location of YTABC.
3251 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3253 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3255 (groff_bin_path): Rename to GROFF_BIN_PATH.
3256 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3257 * doc/Makefile.in (TROFFBIN): New variable for troff
3259 (GROFFBIN): New variable for groff binary path.
3260 (groff_bin_path): Rename to GROFF_BIN_PATH.
3261 (TROFF): Use TROFFBIN.
3262 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3263 * doc/Makefile.sub (GROFFBIN): New variable for groff
3265 (groff_bin_path): Rename to GROFF_BIN_PATH.
3266 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3268 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3269 with INSTALL_SCRIPT.
3270 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3271 * Makefile.dev (all): Depend on DEVSCRIPTS.
3272 (install_dev): Likewise.
3273 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3275 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3276 (DEVGENSCRIPTS): New variable to hold generated scripts.
3278 2003-04-05 Werner LEMBERG <wl@gnu.org>
3280 * src/libs/libdriver/input.cc (IntArray::operator[],
3281 IntArray::get_data): Remove meaningless `const' in return value.
3283 * README.CVS: New file.
3285 2003-04-04 Werner LEMBERG <wl@gnu.org>
3287 Check for stdint.h in C++, not in C.
3289 * aclocal.m4 (GROFF_STDINT_H): New function,
3290 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3292 * configure, src/include/config.hin: Regenerated.
3293 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3296 Fix handling of in grohtml. To do this, troff emits `N'
3297 with a negative value, representing the width of the unbreakable
3298 space (only for -Thtml). grohtml then converts this back to
3299 and uses the value of N as its width.
3301 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3302 unbreakable_space_node::tprint): Emit `N-<width>'.
3303 * src/include/printer.h (printer::set_numbered_char): Make it
3305 Make members `font_table' and `nfonts' protected instead of private.
3306 * src/devices/grohtml/post-html.cc
3307 (html_printer::set_numbered_char): New member function.
3310 * src/libs/libgroff/maxfilename.cc:
3311 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3313 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3316 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3318 * man/roff.man: Small fixes.
3320 2003-04-03 Werner LEMBERG <wl@gnu.org>
3322 Make groff independent from locale's numeric settings.
3324 * configure.ac: Check for `setlocale'.
3325 * configure, src/include/config.hin: Regenerated.
3327 * src/include/lib.h: Handle HAVE_SETLOCALE.
3329 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3330 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3331 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3334 * doc/groff.texinfo: Change dir category to `Typesetting'.
3335 (Man font macros): Mention that there is no space between arguments
3338 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3339 (*printer::change_color, *printer::change_fill_color): Add missing
3342 2003-04-02 Werner LEMBERG <wl@gnu.org>
3344 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3345 html_table::is_gap): Compute table widths after converting border
3346 positions to avoid rounding errors.
3348 2003-04-01 Werner LEMBERG <wl@gnu.org>
3350 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3351 `space_emitted' properly.
3353 2003-03-31 Werner LEMBERG <wl@gnu.org>
3355 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3356 (html_table::set_linelength): Don't add 1.
3357 (html_table::add_indent): Don't subtract 1.
3359 * tmac/html.tmac: Set default page offset to zero.
3361 2003-03-30 Werner LEMBERG <wl@gnu.org>
3363 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3365 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3366 unbreakable_space_node::tprint): New functions.
3367 (troff_output_file): Make space_char_hmotion_mode::tprint and
3368 unbreakable_space_node::tprint to friends.
3369 * src/roff/troff/node.h: Updated.
3371 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3372 in the HTML standard).
3374 2003-03-29 Werner LEMBERG <wl@gnu.org>
3376 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3377 Otherwise, the following code
3386 produces `x a' instead of `xa'. This is a temporary fix, disabling
3387 font changes in diversions for -Thtml.
3389 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3391 (an-do-tag-html): Merge with ...
3392 (an-do-tag): This macro.
3393 Change code slightly to circumvent grohtml bug.
3394 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3396 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3397 html_table::is_gap): Round `width' properly.
3399 * tmac/html.tmac: Provide some default layout parameters for
3402 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3405 2003-03-28 Werner LEMBERG <wl@gnu.org>
3407 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3409 2003-03-27 Werner LEMBERG <wl@gnu.org>
3411 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3414 2003-03-20 Werner LEMBERG <wl@gnu.org>
3416 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3418 * doc/groff.texinfo: Updated.
3420 2003-03-19 Werner LEMBERG <wl@gnu.org>
3422 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3423 TOKEN_END_TRAP>: Reset `have_input'.
3425 2003-03-18 Werner LEMBERG <wl@gnu.org>
3427 * src/roff/groff/groff.man: Mention groff_trace man page.
3429 2003-03-16 Werner LEMBERG <wl@gnu.org>
3431 * Makefile.in (LIBEXT): New variable to indicate the file extension
3432 of library files. Computed heuristically from $(OBJEXT).
3433 (MDEFINES): Add $(LIBEXT).
3434 * Makefile.lib, Makefile.comm: Use it.
3436 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3437 overlong lines into smaller chunks.
3438 (get_binary): New function.
3440 * src/utils/pfbtops/pfbtops.man: Updated.
3442 2003-03-15 Colin Watson <cjwatson@debian.org>
3444 * src/roff/groff/groff.man: Minor syntax fix.
3446 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3448 * src/devices/grops/ps.cc (ps_printer::media_set,
3449 ps_printer::~ps_printer): Handle zero paper width and length.
3451 2003-03-13 Werner LEMBERG <wl@gnu.org>
3453 Add options -p and -l to grodvi.
3455 * src/devices/grodvi/dvi.cc: Include paper.h.
3456 (landscape_flag, user_paper_length, user_paper_width): New global
3458 (dvi_printer::begin_page): Emit `papersize' special.
3459 Set color after initialization of `cur_h' and `cur_v'.
3460 (main): Add options `-l' and `-p'.
3461 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3462 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3464 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3466 2003-03-12 Werner LEMBERG <wl@gnu.org>
3468 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3469 * man/groff_tmac.man: This man page.
3470 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3473 * tmac/X.tmac: Don't load pspic.tmac.
3475 2003-03-11 Werner LEMBERG <wl@gnu.org>
3477 Make variable `pr' local to libdriver/input.cc. Based on a patch
3478 by Bernd Warken <bwarken@mayn.de>.
3480 * src/include/driver.h (pr): Removed.
3482 * src/libs/libdriver/input.cc (pr): New global variable.
3483 (do_file): Deallocate `pr'.
3484 * src/libs/libdriver/printer.cc (pr): Removed.
3486 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3487 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3488 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3489 (main): Don't delete `pr'.
3491 2003-03-10 Werner LEMBERG <wl@gnu.org>
3493 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3494 * tmac/papersize.tmac: New file.
3495 * tmac/troffrc: Include `papersize.tmac'.
3496 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3497 * tmac/an-old.tmac: Set LT to LL by default.
3499 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3500 doc/groff.texinfo: Updated.
3502 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3503 bug which caused all odd iso papers to have wrong dimensions.
3505 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3506 (main) <'p'>: Set `user_paper_width' also.
3507 (ps_printer::media_width, ps_printer::media_height): Use values
3508 given with option `-p'.
3510 2003-03-09 Werner LEMBERG <wl@gnu.org>
3512 * src/include/nonposix.h: Provide default for SET_BINARY.
3514 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3515 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3518 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3519 (main): Treat \r\n as \n.
3521 2003-03-08 Werner LEMBERG <wl@gnu.org>
3523 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3524 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3526 2003-03-07 Werner LEMBERG <wl@gnu.org>
3528 Added support to access more than 256 glyphs in Type 1 fonts.
3530 * src/devices/grops/ps.cc (subencoding): New structure.
3531 (style): Add `sub' field.
3533 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3534 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3537 (ps_printer::set_char): Use `set_subencoding'.
3538 (make_subencoding_name): New function.
3539 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3540 (ps_printer::~ps_printer): Emit subencoding definitions.
3542 * src/devices/grops/psrm.cc (valid_input_table): New array to
3543 properly support EBCDIC.
3544 (white_space): Add `\f'.
3545 (ps_get_line): Change first argument to be of type `string &'.
3546 Updated all callers.
3547 This allows to get lines of arbitrary length.
3548 Use `valid_input_table'.
3549 Remove warning about non-conforming PS line length. This seems
3550 not to be of great importance -- for example, dvips don't emit
3552 (PS_LINE_MAX): Removed.
3553 (matches_comment): Change first argument to be of type `string &'.
3555 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3557 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3558 %AGL_to_unicode, %default_ligatures): New hash tables.
3559 Read all map entries.
3560 Add unencoded characters.
3561 Check for default ligatures if there are no `L' entries.
3562 Print all kern entries.
3563 Print all characters in charset.
3564 * src/utils/afmtodit/afmtodit.man: Updated.
3566 * font/devps/*: Regerated all fonts.
3568 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3569 of characters, just use `.trin'. Otherwise the mapping depends
3570 on the font encoding.
3571 * tmac/ps.tmac: Add `fi' and `fl'.
3572 Improve `Fi' and `Fl'.
3573 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3574 * tmac/Xps.tmac: Fix `em'.
3578 2003-03-04 Werner LEMBERG <wl@gnu.org>
3580 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3583 2003-03-03 Werner LEMBERG <wl@gnu.org>
3585 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3587 * font/devps/generate/textmap: Remove entry `similarequal'.
3588 * font/devps/symbolmap: Updated.
3590 2003-03-02 Werner LEMBERG <wl@gnu.org>
3592 * src/libs/libgroff/font.cc (font::load): Fix error message for
3595 * src/devices/grops/grops.man: Improve documentation of the -b
3598 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3599 `ascii' and `cp1047'.
3601 2003-03-01 Werner LEMBERG <wl@gnu.org>
3603 Document composite glyphs and the `composite' request.
3605 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3607 2003-02-28 Werner LEMBERG <wl@gnu.org>
3609 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3610 * font/devdvi/*EC: Updated.
3612 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3613 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3614 * tmac/troffrc: Load `composite.tmac'.
3615 * tmac/Makefile.sub (NORMALFILES): Updated.
3617 * doc/groff.texinfo (Input Encodings): New section.
3620 2003-02-27 Werner LEMBERG <wl@gnu.org>
3622 * doc/texinfo.tex: New version 2003-02-11.06.
3624 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3625 * tmac/groff_mdoc.man: Fix description of `Dt'.
3627 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3629 * font/devps/prologue.ps: Fix for included Postscript that does
3630 a setpagedevice -- which is now safely ignored.
3634 * src/devices/grops/ps.cc: Now sets the page size in the generated
3635 document. This is done in two ways: Via a %%-comment for gv and
3636 the like, and via a PageSize and setpagedevice for programs that
3637 understands Postscript proper, like ps2pdf.
3639 * src/devices/grops/ps.h: New broken-flag to avoid page size
3640 definition, if required.
3642 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3644 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3645 Not really necessary due to the fix in prologue.ps, but cleaner:
3646 Such information does not belong in an .eps file.
3648 * doc/Makefile.sub: See doc/Makefile.in.
3650 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3652 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3653 instead of P1 since the latter is broken in some versions of netpbm.
3654 * configure: Updated.
3656 2003-02-26 Larry Kollar <kollar@alltel.net>
3658 Make man pages more customizable.
3660 * tmac/an-old.tmac (FT): New register holding footer distance from
3662 (HF): New string holding the default heading font.
3663 (TH): Handle registers `IN' and `SN' set on the command line.
3665 (PT, BT): New strings to customize header and footer lines.
3666 (an-header, an-footer): Use them.
3668 * tmac/groff_man.man: Document changes.
3670 * doc/groff.texinfo: Document man changes.
3671 Document Ultrix extensions of man.
3673 2003-02-26 Werner LEMBERG <wl@gnu.org>
3675 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3676 `have_input' after changing back to old environment.
3678 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3679 function up to be defined before first call. This is necessary to
3680 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3682 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3683 the default font directory also. Based on a patch from James
3684 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3685 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3686 * src/utils/afmtodit/afmtodit.man: Document it.
3690 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3692 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3694 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3695 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3696 * configure.ac: Use it.
3697 * configure: Regenerated.
3698 * Makefile.in: Updated.
3700 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3701 (CLEANADD): Add www.tmac-sed.
3702 (pnmtops_nosetpage): Define default.
3703 (install_data): Handle www.tmac-sed and substitute
3704 @PNMTOPS_NOSETPAGE@.
3705 (stamp-sed): Add www.tmac.
3706 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3707 It now breaks URLs at suitable places.
3708 (www:substring_ok): New register set by...
3709 (www:@test_substring): New macro.
3710 (www:error): New alias to www-error.
3711 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3713 (URL): Use www:url_breaks.
3714 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3715 (CDS, CDE): New macros.
3717 2003-02-25 Werner LEMBERG <wl@gnu.org>
3719 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3722 2003-02-24 Werner LEMBERG <wl@gnu.org>
3724 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3725 can be negative also.
3727 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3729 (read_char_table): Avoid negative ascenders.
3730 (output_charset): Add cast.
3731 * font/devlj4/*: Regenerated.
3733 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3736 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3737 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3739 * font/devdvi/*: Regenerated.
3741 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3742 normal width, while the previously used characters (U+2329 and
3743 U+232A) are classified as wide due to canonical equivalence with the
3744 CJK punctuation characters U+3008 and U+3009.
3746 * font/devutf8/R.proto: Updated.
3747 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3749 * man/groff_char.man: Simplify handling of table traps by
3750 introducing `start block' and `end block' macros.
3751 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3752 (DL): Make it work with Unix troff also.
3753 Fix code values of `la' and `ra'.
3755 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3757 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3759 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3760 New destructor, fixing a major memory leak.
3762 2003-02-22 Werner LEMBERG <wl@gnu.org>
3764 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3765 to be in conformance with Unicode 3.0 and newer.
3767 * font/devlj4/generate/text.map: Add `Eu'.
3768 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3769 * font/devlj4/S: Regenerated.
3771 * man/groff_char.man: Completely rewritten.
3773 * doc/groff.texinfo: Fix description of request and macro arguments.
3775 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3779 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3780 Deallocate `columns' list.
3781 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3783 (text_glob::text_glob_html, text_glob::text_glob_special,
3784 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3785 text_glob::text_glob_tag): Avoid memory leaks.
3786 (text_glob::remember_table): Free memory before reassigning.
3788 2003-02-19 Werner LEMBERG <wl@gnu.org>
3790 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3791 alias `hbar'), the Planck constant over two pi.
3793 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3794 `+e' for position 34.
3795 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3796 `u2662' and `u2661'.
3797 * font/devdvi/{MI,S}: Regenerated.
3798 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3799 * font/devlbp/*: Add `hbar' alias.
3800 * font/devlj4/generate/special.map: Ditto.
3801 * font/devlj4/S: Regenerated.
3802 * font/devps/generate/symbolchars: Add `+e'.
3803 * font/devps/generate/textmap: Fix PS name for `-h'.
3805 * font/devps/symbolmap: Regenerated.
3807 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3809 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3811 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3814 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3816 * tmac/tty-char.tmac: Add `+e'.
3818 2003-02-17 Werner LEMBERG <wl@gnu.org>
3820 Another round trying to really fix problems with `have_input'.
3822 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3823 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3825 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3826 handling if both foreground and background colors are default.
3828 * doc/groff.texinfo (Debugging): Document .lf differences to
3831 2003-02-16 Werner LEMBERG <wl@gnu.org>
3833 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3834 null-bytes in created string.
3836 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3837 alias_macro, lookup_request): Improve warning messages.
3839 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3841 Free `last_image_filename'.
3843 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3845 (imageList::createPage, imageList::createImage): Use `free', not
3847 (imageItem::~imageItem): Free `imageName'.
3848 (addRegDef): Use `strsave', not `strdup'.
3849 (get_resolution): Free `pathp'.
3851 2003-02-15 Werner LEMBERG <wl@gnu.org>
3853 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3856 2003-02-14 Werner LEMBERG <wl@gnu.org>
3858 Add memory management for colors to deallocate unnamed colors
3861 * src/include/color.h (color): New members `free_list' and `next'.
3862 New member functions `new' and `delete'.
3864 * src/libs/libgroff/color.cc: Implement it.
3866 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3867 for array size of new operator.
3869 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3870 redundant comparison.
3872 * src/roff/troff/input.cc (word_space_node::reread,
3873 hmotion_node::reread): Avoid warning about unused parameter.
3874 (reset_output_registers): Remove redundant parameter.
3875 (define_color): Undo change 2003-02-12.
3877 * src/roff/troff/reg.h: Updated.
3879 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3880 output_file::put_filename, real_output_file::really_put_filename,
3881 ascii_output_file::really_print_line,
3882 break_char_node::get_hyphen_list): Avoid warning about unused
3884 (suppress_node::tprint): Updated.
3886 * configure.ac: Check declaration for rand() and srand().
3887 * configure: Regenerated.
3889 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3891 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3894 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3895 to avoid compiler warnings.
3897 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3900 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3902 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3904 Updated all callers.
3906 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3908 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3909 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3911 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3912 Parameter is unused.
3913 (html_printer::add_table_end): Define parameter conditionally.
3914 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3917 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3918 (lbp_printer::set_char): Last parameter is unused.
3920 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3922 2003-02-13 Werner LEMBERG <wl@gnu.org>
3924 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3925 Make \D'f ...' move horizontally again for backwards compatibility.
3926 Replace it with \D'Fg ...' where appropriate to avoid dependency
3927 on horizontal resolution.
3929 * src/roff/troff/input.cc (do_get_long_name): New function.
3930 (get_long_name): Call it.
3932 (read_draw_node): Handle `\D'Fx ...' by calling ...
3933 (read_color_draw_node): New function.
3935 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3937 Pass it to `do_get_long_name' which is used instead of
3940 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3941 unnecessary value guard.
3942 (parse_D_command) <'f'>: Add horizontal shift.
3944 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3945 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3946 (FILL_MAX): Removed.
3948 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3951 2003-02-12 Werner LEMBERG <wl@gnu.org>
3953 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3954 do_zero_width): Push `\n' if closing delimiter is missing.
3956 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3957 <'F'>: Make \F non-transparent at the beginning of line.
3958 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3959 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3962 (define_color): Free color in case of reassignment.
3964 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3965 @DefescListEnd): Use @Var, not @var.
3968 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3970 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3971 `shaded' and `outlined' arrays.
3972 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3973 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3975 (closed_object::set_fill_color): Ditto.
3976 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3978 (troff_output::reset_color): Use a_delete instead of free.
3979 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3981 2003-02-11 Werner LEMBERG <wl@gnu.org>
3983 * doc/groff.texinfo: Improve documentation of `ad'.
3984 Document that \D'f...' is dependent on the horizontal resolution.
3985 * man/groff_diff.man: Improve documentation of \D'f...'.
3987 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3988 compensating \h'...' for \D'f ...' since the latter no longer moves
3990 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3992 2003-02-10 Werner LEMBERG <wl@gnu.org>
3994 Improve error messages for `x F' (and `F') commands.
3996 * src/include/error.h: Add declaration for
3997 `current_source_filename'.
3998 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3999 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4000 parameter for source file string.
4001 Updated all callers.
4003 * src/libs/libdriver/input.cc: Add `current_source_filename'.
4004 (remember_source_filename): New function.
4005 (parse_x_command <'F'>, do_file <'F'>): Use it.
4007 2003-02-09 Werner LEMBERG <wl@gnu.org>
4009 Make grotty not emit warnings about unknown colors more than
4012 * src/devices/grotty/tty.cc: Include `ptable.h'.
4013 (TTY_MAX_COLORS): Removed.
4014 (DEFAULT_COLOR_IDX): Defined to -1.
4015 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4016 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4017 Change `tty_colors' to be a ptable.
4018 First arg of `put_color' is now `char'.
4019 New functions `make_rgb_string' and `tty_color'.
4020 (tty_printer::tty_printer): Use `tty_color'.
4021 (tty_printer::color_to_idx): Return value is now `char'.
4024 * src/include/color.h (color): Add `print_color' member function.
4025 * src/libs/libgroff/color.cc (color::print_color): Implement it.
4027 2003-02-08 Werner LEMBERG <wl@gnu.org>
4031 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4034 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4035 assume that value has been allocated with `new[]', thus use
4036 `a_delete' for deallocation.
4038 * src/libs/libdriver/input.cc (get_integer_arg,
4039 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4042 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4043 * src/libs/libgroff/nametoindex.cc
4044 (character_indexer::named_char_index): Use `new <type>[1]'.
4046 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4048 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4049 (split_text): Use `a_delete'.
4051 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4054 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4055 harmless memory leak.
4056 (hyphen_trie::read_patterns_file): Initialize `buf'.
4057 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4058 Initialize `current_fill_color'and `current_glyph_color'.
4059 * src/roff/troff/glyphuni.cc
4060 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4061 * src/roff/troff/uniuni.cc
4062 (unicode_decompose_init::unicode_decompose_init): Ditto.
4063 * src/roff/troff/uniglyph.cc
4064 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4066 2003-01-26 Werner LEMBERG <wl@gnu.org>
4068 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4069 `access' before calling `unlink'.
4070 (do_file): Handle __EMX__.
4072 * src/include/nonposix.h: Handle __EMX__.
4074 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4075 (fontpath,tmacpath): Use it.
4077 Sorted alphabetically.
4079 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4081 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4084 2003-01-27 Werner LEMBERG <wl@gnu.org>
4086 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4087 New files, copied from gnulib.
4088 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4089 * configure.ac: Updated.
4090 * configure: Regenerated.
4092 * src/include/config.hin: Regenerated.
4093 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4094 Don't define `strcasecmp' as `strcmp'.
4095 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4096 Dont define `strncasecmp' as `strncmp'.
4098 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4101 2003-01-26 Werner LEMBERG <wl@gnu.org>
4103 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4106 2003-01-25 Werner LEMBERG <wl@gnu.org>
4108 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4110 2003-01-24 Werner LEMBERG <wl@gnu.org>
4112 Add US-english hyphenation exceptions (converted from Barbara
4113 Beeton's hyphenation exception log reports which appear irregularly
4116 * tmac/hyphen.us: Updated to latest version.
4117 * tmac/README: Updated.
4118 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4119 * tmac/troffrc: Load `hyphenex.us'.
4120 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4121 * doc/groff.texinfo: Updated.
4123 2003-01-23 Werner LEMBERG <wl@gnu.org>
4125 Improve hyphenation slightly. This is a first step in redesigning
4126 the hyphenation algorithm to make it more flexible (e.g. allowing
4127 kerns and ligatures between the hyphenation character and the
4128 following character -- while not used normally in English, other
4129 languages like German would benefit).
4131 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4132 assertion instead of if-clause.
4133 Let `get_hyphen_list' return the number of involved characters in
4134 the hyphenation pattern instead of computing it directly (which
4135 often yields too small values).
4136 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4137 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4140 2003-01-22 Werner LEMBERG <wl@gnu.org>
4142 Fixing a bug which caused groff to hang if the hyphenation exception
4143 dictionary tried to grow.
4145 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4146 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4147 pointer to dictionary.
4149 2003-01-20 Werner LEMBERG <wl@gnu.org>
4151 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4152 negative left italic correction.
4153 * src/utils/afmtodit/afmtodit.man: Document it.
4155 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4156 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4157 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4161 2003-01-16 Werner LEMBERG <wl@gnu.org>
4165 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4167 * src/preproc/refer/refer.man: Mention REFER environment variable.
4169 2003-01-05 Werner LEMBERG <wl@gnu.org>
4171 Similar to \[is], the square root glyph (\[sr]) and the square root
4172 extension glyph (\[radicalex]) are now text symbols. The new
4173 mathematical versions are called \[sqrt] and \[sqrtex],
4176 * font/devX*/S: Regenerated.
4177 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4178 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4179 * font/devdvi/EX, font/devdvi/S: Regenerated.
4180 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4181 * font/devlj4/generate/special.map: Add `sqrt'.
4182 * font/devlj4/S: Regenerated.
4183 * font/devps/generate/textmap: Add `sqrt'.
4184 * font/devps/S, font/devps/symbolmap: Regenerated.
4186 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4187 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4188 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4189 overlap horizontally.
4191 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4192 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4195 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4196 and `sqrtex' are overlapping glyphs.
4198 2003-01-04 Werner LEMBERG <wl@gnu.org>
4200 * font/devdvi/generate/texsy.map: Add `is'.
4201 * font/devps/symbolmap: Regenerated.
4202 * font/devdvi/*TC, MI, S: Regenerated.
4204 * tmac/dvi.tmac: Remove `is'.
4206 2003-01-03 Werner LEMBERG <wl@gnu.org>
4208 `is' is now a text symbol (only relevant for dvi). The math variant
4209 can be accessed with `integral'.
4211 * font/devX*/S: Regenerated.
4212 * font/devdvi/generate/texex.map: Remove `is'.
4213 * font/devdvi/EX: Updated.
4214 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4215 * font/devlj4/generate/special.map: Ditto.
4216 * font/devlj4/S: Regenerated.
4217 * font/devps/generate/textmap: Add `integral'.
4218 * font/devps/S: Regenerated.
4220 * tmac/dvi.tmac: Define `is'.
4222 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4224 * src/preproc/tbl/main.cc (process_format): Fix error message.
4226 2003-01-02 Werner LEMBERG <wl@gnu.org>
4228 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4229 * font/devps/textmap: Fix entries for `ne' and `nc'.
4230 * font/devps/symbolmap: Regenerated.
4232 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4233 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4234 `38', `58', `78', `-+', `|=', `nc', `ne'.
4236 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4237 Use `schar' for `aq'.
4238 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4239 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4240 * tmac/tty.tmac: Add `ne'.
4242 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4243 for fallback glyphs.
4245 2002-12-29 Werner LEMBERG <wl@gnu.org>
4249 * font/devX*/*: Regenerated.
4250 * font/devdvi/generate/ec.map: Remove `eq'.
4251 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4252 Assign `|=' to position 39.
4253 * font/devdvi/*EC, S: Regenerated.
4254 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4255 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4256 Assign `|=' to position 549.
4257 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4259 Add `uni2243' for `|='.
4261 * tmac/ec.tmac: Add `eq'.
4262 * tmac/dvi.tmac: Add `=~'.
4263 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4266 2002-12-21 Werner LEMBERG <wl@gnu.org>
4268 * font/devdvi/generate/tc.map: Remove `**'.
4269 * font/devdvi/*TC: Regenerated.
4270 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4272 * font/devutf8/NOTES: Updated.
4274 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4275 Don't give default parameter to `set_macro'.
4276 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4277 instead of `set_macro'.
4278 (charinfo::setx_macro): Implement it.
4279 (charinfo::set_macro): Don't change `mode'.
4281 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4282 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4283 * tmac/dvi.tmac: Define `!=' with `.schar'.
4285 2002-12-20 Werner LEMBERG <wl@gnu.org>
4287 * font/devX*/S: Regenerated.
4288 * font/devdvi/generate/ec.map: Remove `pl'.
4289 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4290 * font/devdvi/*{TC,EC}: Regenerated.
4291 * font/devhtml/R.proto: Add `-+'.
4292 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4293 * font/devlbp/*: Remove `or'.
4294 * font/devlj4/generate/special.map: Remove `or'.
4295 * font/devlj4/S: Regenerated.
4296 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4297 `seveneighths', `threeeighths'.
4299 Replace `minusplus' with `uni2213'.
4300 * font/devps/symbolmap: Regenerated.
4301 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4304 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4306 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4307 Call glyph_color and fill_color even if tcommand_flag isn't set.
4308 (make_node, node::add_char): Check not ci->is_fallback but
4311 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4312 * tmac/ec.tmac: Add .rchar entry for `f/'.
4313 Don't remove `12', `14', `34'.
4314 Define `pl' to be always roman.
4315 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4316 Define `18', `38', `58', `78'.
4317 * tmac/tty.tmac: Add `-+'.
4318 * tmac/dvi.tmac: Define `f/'.
4319 (dvi-frac): Use `f/'.
4320 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4321 Define `18', `38', `58', `78'.
4323 2002-12-15 Colin Watson <cjwatson@debian.org>
4325 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4327 2002-12-10 Werner LEMBERG <wl@gnu.org>
4329 Add glyph `tno', a textual variant of `no'.
4331 * font/devX*/*: Regenerated.
4332 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4333 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4334 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4335 * font/devdvi/*: Regenerated.
4336 * font/devlbp/*: Add `tno'.
4337 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4338 * font/devlj4/*: Regenerated.
4339 * font/devps/generate/textmap: Replace `no' with `tno'.
4340 * font/devps/generate/symbolchars: Add `no'.
4341 * font/devps/*: Regenerated.
4343 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4345 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4346 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4350 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4351 Add definition for `sd'.
4352 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4354 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4356 2002-12-08 Werner LEMBERG <wl@gnu.org>
4358 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4359 mode to avoid rounding errors.
4360 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4362 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4363 src/roff/troff/troff.man: Improve documentation of -T.
4365 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4367 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4368 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4370 2002-12-06 Werner LEMBERG <wl@gnu.org>
4372 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4373 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4374 Scaling Euro.sansserif glyphs down to have the same height as
4376 Removed unnecessary points; added some extrema.
4378 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4381 2002-12-04 Werner LEMBERG <wl@gnu.org>
4383 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4384 and `Euro.symbol.bold.slanted'.
4385 Improve some glyph offsets and widths.
4386 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4388 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4390 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4393 * tmac/europs.tmac: Updated to new glyph indices.
4394 Use Euro.symbol for font familiy `A'.
4396 * doc/groff.texinfo: Minor improvements.
4398 2002-12-02 Werner LEMBERG <wl@gnu.org>
4400 * font/devdvi/generate.tc.map: s/%O/%0/.
4401 * font/devdvi/*TC: Regenerated.
4403 * src/roff/troff/div.cc (init_div_requests): Sorted.
4405 * tmac/dvi.tmac: Remove `Ye'.
4406 * tmac/ec.tmac: Remove `Ye'.
4407 Add .rchar entry for `de'.
4409 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4410 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4413 2002-11-30 Werner LEMBERG <wl@gnu.org>
4415 Add PS font for various Euro glyphs.
4417 * font/devps/generate/freeeuro.sfd: New master font file for
4419 * font/devps/generate/sfdtopfa.pe: New conversion script for
4421 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4422 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4423 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4425 * font/devps/EURO: Generated from `freeeuro.afm'.
4426 * font/devps/download: Add `freeuro.pfa'.
4427 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4430 * tmac/europs.tmac: New file.
4431 * tmac/ps.tmac: Include `europs.tmac'.
4432 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4434 2002-11-29 Werner LEMBERG <wl@gnu.org>
4436 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4437 * font/devdvi/S: Regenerated.
4438 * font/devhtml/R.proto: Fix `CR' and `ci'.
4440 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4442 * font/devps/symbolmap: Regenerated.
4443 * font/devutf8/R.proto: Fix `CR' and `ci'.
4445 * font/devutf8/NOTES: Updated.
4447 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4450 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4452 * tmac/dvi.tmac: Add `lh' and `rh'.
4453 * tmac/Xps.tmac: Fix `lh' and `rh'.
4454 * tmac/X.tmac: Add `OK'.
4455 * tmac/lj4.tmac: Ditto.
4457 2002-11-24 Werner LEMBERG <wl@gnu.org>
4459 * font/devX*/S: Regenerated.
4460 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4461 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4462 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4463 * font/devdvi/S: Regenerated.
4464 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4465 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4466 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4467 `bracketleftbt', `bracketrighttp', `bracketrightex',
4468 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4469 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4470 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4472 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4473 * font/devutf8/NOTES: Updated.
4474 * font/devlj4/generate/special.map: Add glyph `braceex'.
4475 * font/devlj4/S: Regenerated.
4477 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4479 2002-11-14 Werner LEMBERG <wl@gnu.org>
4481 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4484 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4486 * doc/texinfo.tex: New version from texinfo 4.3.
4487 * doc/groff.texinfo: Updated for texinfo 4.3.
4488 Use @tie{} where appropriate.
4489 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4490 * font/devdvi/generate/tc.map: Remove `rn'.
4491 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4492 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4494 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4495 font/devX75-12/*: Regenerated.
4497 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4498 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4499 Improve definition of `an'.
4500 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4502 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4503 * tmac/X.tmac: Add definition for `or'.
4504 * tmac/Xps.tmac: Undo change 2002-11-05.
4505 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4507 2002-11-11 Werner LEMBERG <wl@gnu.org>
4509 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4512 2002-11-10 Werner LEMBERG <wl@gnu.org>
4514 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4515 defines a glyph which is searched after the check for fonts declared
4516 with `.special' (and before the check for all mounted special
4517 fonts). `fschar' defines a glyph for a particular font which is
4518 searched after the check for fonts declared with `.fspecial' (and
4519 before the check for fonts declared with `.special'). `rfschar'
4520 removes glyphs defined with `fschar'.
4522 * src/roff/troff/token.h (char_mode): New enum.
4523 Declare do_define_character.
4524 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4526 (charinfo::is_fallback): Updated.
4527 (charinfo::is_special): New method.
4528 * src/roff/troff/input.cc (do_define_character): Add and use
4529 optional second parameter used as a prefix for font-specific glyph
4531 (define_character, define_fallback_character): Updated.
4532 (define_special_character): New function.
4533 (init_input_requests): Add `schar'.
4534 (charinfo::charinfo, charinfo::set_macro): Updated.
4535 * src/roff/troff/node.cc: Include `stringclass.h'.
4536 (make_glyph_node): Handle special glyphs defined with `.schar' and
4538 (define_font_special_character, remove_font_special_character): New
4540 (init_node_requests): Sorted.
4541 Add `fschar' and `rfschar'.
4542 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4543 Document new requests.
4545 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4546 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4548 2002-11-08 Werner LEMBERG <wl@gnu.org>
4550 Added new font `SC' (cmtex10) to devdvi.
4552 * devdvi/generate/Makefile (FONTS): Add `SC'.
4554 * devdvi/generate/textex.map: New map file for cmtex.
4556 * devdvi/Makefile.sub (DEVFILES): Updated.
4557 * tmac/dvi.tmac: Add fspecial entries for SC.
4558 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4559 found before `S' since the font position of `SC' is lower due to the
4560 gaps in DESC's `font' line.
4561 * tmac/ec.tmac: Add a `special' call.
4564 * font/devhtml/R.proto: Remove double entry for `ti'.
4565 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4566 * tmac/tty-char.tmac: Remove entry for `bq'.
4567 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4568 * tmac/ec.tmac: Don't remove `aq' glyph.
4569 * tmac/X.tmac: Fix entry for `em'.
4570 Add entries for `fo' and `fc'.
4571 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4573 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4574 documentation of `special' and `fspecial' requests.
4576 2002-11-05 Werner LEMBERG <wl@gnu.org>
4578 * font/devascii/R.proto, font/devcp1047/R.proto,
4579 font/devlatin1/R.proto: Remove entry for `.i'.
4580 * font/devdvi/generate/textt.map: Add entry for `ad'.
4581 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4582 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4583 We need this for getting kerning values to compose `/l' and `/L'.
4584 * font/devdvi: Regenerated font definition files for CM fonts.
4585 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4586 * font/devutf8/R.proto: Ditto.
4587 Remove double entry for `ti'.
4589 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4590 for (groff) ligatures, `la', and `ra'.
4591 Add "'C", "'c", `IJ', and `ij'.
4592 Remove double entry for `ti'.
4593 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4595 Add "'C", "'c", `IJ', and `ij'.
4596 Fix entries for (groff) ligatures, `la', and `ra'.
4598 * tmac/ps.tmac (ps-achar): New macro.
4599 Define "'c" and "'C".
4600 * tmac/tty.tmac: Add entry for `.i'.
4601 * tmac/X.tmac (X-achar): New macro.
4602 Define "'c", "'C", and `:Y'.
4603 Add entries for `IJ' and `ij'.
4604 * tmac/Xps.tmac (Xps-achar): New macro.
4605 Define "'c" and "'C".
4606 Add entries for `IJ' and `ij'.
4607 * tmac/lbp.tmac (lbp-achar): New macro.
4608 Add fallback characters for all groff ligatures and many other
4610 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4611 Add entries for `/l' and `/L'.
4612 Define "'c" and "'C".
4613 Add entries for `IJ' and `ij'.
4615 2002-11-02 Larry Kollar <kollar@alltel.net>
4617 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4619 2002-11-02 Werner LEMBERG <wl@gnu.org>
4621 Adding support for composite glyphs: \[xxx yyy ...] and the
4622 `composite' request.
4624 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4625 to Unicode-based glyph names.
4626 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4627 glyph names to groff glyph names.
4628 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4629 Unicode-based glyph names.
4630 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4631 for handling Unicode glyph names.
4632 * src/roff/troff/input.cc: Include unicode.h.
4633 (composite_glyph_name): New function.
4634 (token::next) <'['>: Handle Unicode glyph names and composite
4636 (composite_dictionary): New dictionary for the `composite' request.
4637 (composite_request): Implement `composite' request.
4638 (init_input_requests): Add `composite'.
4639 Alphabetically sorted.
4640 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4642 (init_env_requests): Alphabetically sorted.
4643 Removed `tas' and `tar' (already commented out).
4644 * src/roff/troff/Makefile.sub: Updated.
4646 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4648 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4651 2002-10-29 Werner LEMBERG <wl@gnu.org>
4653 Fix computation of .trunc register. Additionally, its value (and
4654 the value of the .ne register) is now always set before entering the
4657 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4658 `needed_space' before calling `space'.
4659 (top_level_diversion::space): Remove special code for 'sp before the
4661 Call `begin_page' with the discarded space as a parameter.
4662 (top_level_diversion::begin_page): Add optional parameter to set
4664 * src/roff/troff/div.h: Updated.
4666 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4669 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4670 (LP): Remove superfluous call to `br'.
4671 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4672 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4674 2002-10-26 Werner LEMBERG <wl@gnu.org>
4676 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4677 (doc-setup-header): Don't set page register `%'.
4678 * tmac/doc-nroff: Remove variable `C'.
4679 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4680 (doc-setup-header): Don't set page register `%'.
4682 * tmac/doc-common (doc-header): Call `ns'.
4683 (doc-paragraph): Protect .sp with .br so that it survives traps
4684 possibly set by the user.
4685 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4687 * tmac/doc*: Replace ' with . for consistency if no effect.
4689 2002-10-26 Werner LEMBERG <wl@gnu.org>
4691 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4692 so that it survives traps possibly set by the user.
4694 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4695 (troff_output_file::set_font): Call flush_tbuf if necessary.
4696 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4697 flush_tbuf and do_motion only if necessary.
4698 (troff_output_file::start_special,
4699 troff_output_file::put_char_width, troff_output_file::put_char,
4700 troff_output_file::draw): Updated.
4701 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4702 vmotion_node::tprint): Undo change 2002-10-23.
4704 2002-10-25 Werner LEMBERG <wl@gnu.org>
4706 * tmac/www.tmac (DC): Fix case of overlapping images.
4708 2002-10-23 Werner LEMBERG <wl@gnu.org>
4710 * src/roff/troff/node.cc (troff_output_file::fill_color,
4711 troff_output_file::glyph_color): Set current color before testing
4713 (troff_output_file::put_char_width, troff_output_file::put_char,
4714 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4716 (troff_output_file::file_color, troff_output_file::glyph_color):
4718 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4719 vmotion_node::tprint): Move first, then call fill_color.
4721 2002-10-20 Werner LEMBERG <wl@gnu.org>
4723 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4724 possible to use multiple main macro packages.
4726 2002-10-19 Werner LEMBERG <wl@gnu.org>
4728 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4729 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4730 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4732 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4733 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4735 2002-10-16 Werner LEMBERG <wl@gnu.org>
4737 * NEWS, doc/webpage.ms: Updated.
4739 2002-10-14 Werner LEMBERG <wl@gnu.org>
4741 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4742 troff_output_file::put_char, troff_output_file::fill_color,
4743 troff_output_file::glyph_color): Handle case where color pointer
4746 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4748 Add the new -r option to grotty. It is similar to the -i option
4749 except it tells grotty(1) to use the "reverse video" attribute to
4750 render italic fonts.
4752 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4753 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4754 (tty_printer::make_underline, tty_printer::put_color,
4755 tty_printer::end_page): Use it.
4756 (main): Add -r switch.
4758 * src/devices/grotty/grotty.man: Document it.
4760 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4762 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4763 cast to `unsigned char' to properly read patterns with 8bit
4766 2002-10-08 Werner LEMBERG <wl@gnu.org>
4768 * REVISION: Increased to 2.
4770 Version 1.18.1 released
4771 =======================
4773 2002-10-08 Werner LEMBERG <wl@gnu.org>
4775 * doc/webpage.ms, NEWS: Updated.
4777 2002-10-07 Werner LEMBERG <wl@gnu.org>
4779 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4780 suppress additional whitespace after the header.
4782 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4785 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4787 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4789 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4790 (Dt): Use it to improve language localization (especially Russian
4793 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4795 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4796 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4798 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4800 Call `picurve' for BSPLINE.
4801 (HGPrintElt): Handle BSPLINE.
4802 * src/preproc/grn/README: Document it.
4804 2002-10-03 Werner LEMBERG <wl@gnu.org>
4806 * src/roff/troff/node.cc (break_char_node::col): New variable.
4807 Updated constructor.
4808 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4810 (space_node::space_node): Remove assertion.
4811 (break_char_node::add_self): Pass color argument to space node.
4812 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4814 * src/roff/troff/env.cc (environment::do_break,
4815 environment::add_padding): Ditto.
4817 2002-10-02 Werner LEMBERG <wl@gnu.org>
4819 Redesigning color support in troff. Colors are no longer
4820 represented as separate nodes but are now part of glyph nodes and
4821 friends. This fixes the current formatting misbehaviour due to the
4822 changes introduced on 2002-09-20. Some extra code is necessary for
4823 proper grotty support: Without adding color variables to
4824 space-related nodes, the background color would be changed too late.
4826 * src/roff/troff/node.h, src/roff/troff/node.cc:
4827 s/current_pagecolor/current_fill_color/.
4828 s/current_glyphcolor/current_glyph_color/.
4829 (glyph_color_node, fill_color_node): Removed.
4830 (node::get_glyph_color, node::get_fill_color): New virtual member
4832 (space_node::col): New variable.
4833 Updated constructors of space_node and derived classes accordingly.
4834 (hmotion_node::col): New variable.
4835 Updated constructors of hmotion_node and space_char_hmotion_node
4837 (vmotion_node::col): New variable.
4838 Updated constructor accordingly.
4839 (draw_node::gcol, draw_node::fcol): New variables.
4840 Updated constructor accordingly.
4841 (special_node::gcol, special_node::fcol): New variables.
4842 Updated constructors accordingly.
4843 (troff_output_file::put_char, troff_output_file::put_charwidth,
4844 troff_output_file::draw): Set glyph and fill color.
4845 (troff_output_file::start_special): Set glyph and fill color.
4846 Always set current font.
4847 (troff_output_file::fill_color, troff_output_file::glyph_color):
4848 Don't call `do_motion'.
4849 (glyph_node::gcol, glyph_node::fcol): New variables.
4850 Updated constructors of glyph_node and ligature_node accordingly.
4851 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4853 (glyph_node::merge_glyph_node,
4854 kern_pair_node::add_discretionary_hyphen,
4855 node::add_discretionary_hyphen): Updated.
4856 (break_char_node::merge_self): Updated.
4857 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4858 vmotion_node::tprint): Handle color.
4859 (make_glyph_node, make_node, node::add_char): Updated.
4861 * src/roff/troff/env.cc (environment::space_newline,
4862 environment::space, environment::output_line, environment::do_break,
4863 environment::make_tab_node, environment::add_padding, title):
4865 (environment_switch, environment_copy): Don't add color nodes.
4867 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4869 (token::next): Updated.
4870 \m and \M now are as transparent as \s.
4871 (process_input_stack, token::add_to_node_list, token::process,
4872 read_draw_node): Updated.
4873 (charinfo_to_node_list): Don't add color nodes.
4875 * doc/groff.texinfo: Updated.
4877 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4879 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4882 2002-09-27 Colin Watson <cjwatson@debian.org>
4884 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4886 2002-09-23 Werner LEMBERG <wl@gnu.org>
4888 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4890 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4891 (linewidth_factor): New global variable.
4892 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4894 (long_options): Add -w/--linewidth option.
4896 (main): Handle -w option to set linewidth_factor.
4897 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4900 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4902 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4904 Fixed a bug in the line thickness setting code.
4906 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4908 (lbp_printer::set_line_thickness): Pass environment as second
4910 Implement it actually.
4911 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4912 and `set_line_thickness, depending on the current font size.
4914 2002-09-21 Werner LEMBERG <wl@gnu.org>
4916 Some Debian patches.
4918 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4919 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4922 2002-09-20 Werner LEMBERG <wl@gnu.org>
4924 * configure: Regenerated with autoconf 2.54.
4926 2002-09-20 Werner LEMBERG <wl@gnu.org>
4928 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4930 Rename cur_fill_color to fill_color.
4931 * src/roff/troff/env.cc: Updated.
4933 2002-09-20 Werner LEMBERG <wl@gnu.org>
4935 * src/roff/troff/env.cc (title): Copy color status after processing
4937 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4938 fill color nodes to reset colors properly.
4940 * tmac/www.tmac (DC): Fix color handling.
4942 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4943 * doc/groff.texinfo: Fixing documentation of `tl' request.
4944 * doc/webpage.ms: Updated.
4946 2002-09-19 Werner LEMBERG <wl@gnu.org>
4948 * src/roff/troff/env.cc (environent_switch, environment_copy):
4949 Emit glyph and fill color nodes to initialize colors properly.
4951 2002-09-17 Colin Watson <cjwatson@debian.org>
4953 * src/roff/troff/env.cc (environment::set_glyph_color,
4954 environment::set_fill_color): Fix typo which prevented \m[] work
4957 2002-09-17 Werner LEMBERG <wl@gnu.org>
4959 Add left and right italic correction to non-slanted PS fonts. This
4960 is an experimental feature to improve image rendering of grohtml.
4962 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4963 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4964 * font/devps/*: All non-slanted fonts regenerated.
4967 2002-09-16 Werner LEMBERG <wl@gnu.org>
4969 Add a site-specific font directory.
4971 * Makefile.in (localfontdir, legacyfontdir): New variables.
4972 (fontpath): Use them.
4973 (MDEFINES, uninstall_dirs): Updated.
4974 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4975 Remove `FONTPATH' and `MACROPATH'.
4977 * src/roff/troff/troff.man, NEWS: Updated.
4978 * doc/groff.texinfo (Font Directories): New section.
4981 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4982 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4983 src/preproc/grn/grn.man: Minor fixes.
4985 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4986 Remove unused variable.
4988 2002-09-11 Werner LEMBERG <wl@gnu.org>
4990 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4991 * man/groff_out.man: Fix documentation of 'N'.
4993 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4995 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4996 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4998 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4999 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5000 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5001 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5002 PRE_TAG>: Call `begin' with `FALSE'.
5004 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5006 * src/libs/libgroff/string.cc (string::extract): Fix position of
5007 terminating null byte.
5009 2002-09-08 Werner LEMBERG <wl@gnu.org>
5011 Add global option `nospaces' to tbl so that leading and trailing
5012 spaces in data items are ignored.
5014 * src/libs/libgroff/string.cc (string::remove_spaces): New member
5015 function to remove leading and trailing spaces.
5016 * src/include/stringclass.h: Updated.
5018 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5020 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5022 Fix typo in error messages.
5023 (process_data): Implement `nospaces' option.
5024 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5026 2002-09-07 Werner LEMBERG <wl@gnu.org>
5028 * src/include/config.hin: Add `HAVE_ISATTY'.
5029 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5031 * src/libs/libgroff/tmpname.cc: Include `time.h'.
5032 * src/libs/libdriver/input.cc (Char): Add `operator==' and
5033 `operator!=' for `char'.
5034 * doc/groff.texinfo: Replace @ifnottex block for top node with
5037 2002-09-06 Werner LEMBERG <wl@gnu.org>
5039 * doc/Makefile.in (.texinfo.html): Add -I switch.
5040 * doc/groff.texinfo: Add @ifnottex block for top node to make
5041 translation to HTML work.
5043 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
5045 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5046 (get_papersize, determine_vertical_offset): Removed.
5047 (char_buffer::do_image): Always specify letter size.
5049 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5052 2002-09-05 Werner LEMBERG <wl@gnu.org>
5054 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5055 default indentation.
5057 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
5059 * src/preproc/html/pre-html.cc (imageList::createPage): Use
5061 (generateImages): Clean up push-back buffer.
5063 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5065 * doc/groff.texinfo: Minor fixes.
5067 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5069 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5070 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5072 (determine_vertical_offset): Use LETTER_LENGTH.
5073 (createPage): Moved to ...
5074 (imageList::createPage): This.
5075 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5076 (imageList::getMaxX): New function.
5077 (createImage): Moved to ...
5078 (imageList::createImage): This.
5079 (imageList::createImages): New function.
5080 (generateImages): Read `maxx' directly.
5082 (scanArguments): Don't specify `gsPaper' for `-o'.
5083 (makeTempFiles): Call `xtmpfile' with the last argument set to
5086 2002-08-24 Werner LEMBERG <wl@gnu.org>
5088 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5089 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5090 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5091 * src/preproc/html/pushback.cc: Include nonposix.h.
5092 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5095 2002-08-23 Werner LEMBERG <wl@gnu.org>
5097 Use $(OBJEXT) for the object file extension.
5099 * Makefile.comm (.SUFFIXES): Add .obj.
5100 (.cc.obj, .c.obj): New implicit rules.
5101 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5102 (MDEFINES): Add EXEEXT and OBJEXT.
5103 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5105 2002-08-22 Werner LEMBERG <wl@gnu.org>
5107 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5109 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5111 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5113 (html_printer::update_min_max, html_printer::add_table_end): New
5115 (html_printer::lookahead_for_tables): Use them.
5116 Reset page offset correctly.
5117 (html_printer::~html_printer): Add creation of creator comment up.
5119 2002-08-20 Werner LEMBERG <wl@gnu.org>
5121 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5122 * man/groff_tmac.man: Fix typos.
5123 * man/groff_font.man: Minor reordering.
5124 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5126 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5128 Avoid endless loops while scanning for tables.
5130 * src/devices/grohtml/post-html.cc (list::insert): Set
5132 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5134 Return immediately if that argument is NULL.
5135 (html_printer::calc_nf): Don't test if `g' is NULL.
5136 (html_printer::lookahead_for_tables): Use
5137 `glyphs.move_right_get_data'.
5138 Don't test if `g' is NULL.
5140 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5142 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5144 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5146 (char_block::char_block): Allocate `buffer'.
5147 (char_buffer::add_string): Use it.
5149 2002-08-15 Werner LEMBERG <wl@gnu.org>
5151 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5152 src/devices/grodvi/grodvi.man: Document default line thickness.
5154 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5156 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5159 2002-08-14 Werner LEMBERG <wl@gnu.org>
5161 * doc/webpage.ms: Updated.
5163 2002-08-09 Werner LEMBERG <wl@gnu.org>
5165 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5168 2002-08-08 Aaron Campbell <aaron@monkey.org>
5170 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5173 2002-08-08 Werner LEMBERG <wl@gnu.org>
5175 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5178 Don't push back a space but a newline onto the stack.
5180 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5182 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5185 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5186 html_printer::start_font): Handle them.
5187 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5189 (html_text::do_bold): Don't reset italic and tt.
5190 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5191 * font/devhtml/DESC.proto: Add those fonts.
5192 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5194 2002-08-07 Werner LEMBERG <wl@gnu.org>
5196 * MORE.STUFF: Added gpresent.
5198 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5199 whitespace before printing the logging message.
5201 2002-07-31 Colin Watson <cjwatson@debian.org>
5203 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5204 Initialize `n' to zero. This fixes a segfault on ARM.
5206 2002-07-30 Werner LEMBERG <wl@gnu.org>
5208 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5210 2002-07-29 Werner LEMBERG <wl@gnu.org>
5212 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5215 2002-07-28 Colin Watson <cjwatson@debian.org>
5217 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5219 (html_printer::html_printer): Initialize `pointsize'.
5221 2002-07-26 Werner LEMBERG <wl@gnu.org>
5223 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5225 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5226 (gnu.eps): Add -rle switch to pnmtops.
5227 (distfiles): Add gnu.eps and gnu.png.
5229 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5231 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5234 2002-07-24 Werner LEMBERG <wl@gnu.org>
5236 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5237 ' \+' but ' *' for sed.
5238 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5240 2002-07-23 Werner LEMBERG <wl@gnu.org>
5242 * doc/groff.texinfo: Document `papersize' keyword.
5243 * NEWS, man/groff_font.man: Updated.
5245 2002-07-23 Colin Watson <cjwatson@debian.org>
5247 Extend papersize keyword to accept more than a single entry. The
5248 first valid will be used.
5250 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5251 (font::scan_papersize): Really skip final newline.
5252 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5254 2002-07-23 Werner LEMBERG <wl@gnu.org>
5256 * configure.ac: Test for isatty.
5257 * configure: Regenerated.
5258 * src/include/posix.h: Check HAVE_ISATTY.
5259 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5260 * src/utils/lookbib/lookbib.cc: Include posix.h.
5261 Don't declare isatty.
5263 2002-07-21 Werner LEMBERG <wl@gnu.org>
5265 * NEWS: Add `output' request.
5267 * REVISION: Increased to 1.
5269 Version 1.18.0 released
5270 =======================
5272 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5274 Allow internal glyph indices > 0xFF in grohtml for input characters.
5276 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5278 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5279 Updated all callers.
5280 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5281 (html_printer): Updated.
5283 2002-07-19 Werner LEMBERG <wl@gnu.org>
5285 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5286 * font/devutf8/R.proto: Adding some missing glyphs.
5287 * font/devutf8/NOTES: Updated.
5289 * tmac/dvi.tmac: Add more composite glyphs.
5290 * tmac/html.tmac: Updated.
5292 * man/groff_char.man: Add `sum' and `product' entities.
5296 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5298 Improved table, tab, and indenting support.
5300 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5301 string_iterator::suppress_newline_flag): Removed. Updated all
5302 function which have used it.
5304 * src/roff/troff/env.cc: Include `input.h'.
5305 (environment::add_node): Accept 0 as parameter.
5306 (environment::add_html_tag): Add `force' parameter.
5307 Updated all callers.
5308 (environment::add_html_tag_tabs): Ditto.
5309 For the moment, support left-aligned tabs only.
5310 (environment::make_html_tag): New function.
5311 (fill, no_fill): Set .br html tag additionally.
5312 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5313 (environment::add_html_tag_eol): Removed.
5314 (tab_stops::distance_to_next_tab): Add variant for handling
5316 (environment::distance_to_next_tab): Ditto.
5317 Updated all callers.
5318 (environment::handle_tab): Handle tabs for html.
5320 * src/roff/troff/env.h: Updated.
5322 * src/roff/troff/div.cc: Updated all callers of
5323 `environment::add_html_tag'.
5325 * src/devices/grohtml/html-table.cc,
5326 src/devices/grohtml/html-table.h: New files.
5328 * src/devices/grohtml/html-text.cc (html_text): New members
5329 `blank_para' and `start_space'.
5330 (html_text::issue_tag): Don't emit TABLE_TAG.
5331 Handle indentation for PRE_TAG and P_TAG.
5332 (html_text::end_tag): Updated.
5333 (html_text::table_is_void, html_text::issue_table_begin,
5334 html_text::issue_table_end): Removed.
5335 (html_text::do_push): Simplified.
5336 [DEBUGGING]: Small fix.
5337 (html_text::push_para): Add new parameter for indentation; updated
5340 (html_text::do_indent, html_text::do_table, html_text::done_table,
5341 html_text::is_in_table): Removed.
5342 (html_text::do_pre): Handle P_TAG also.
5343 (html_text::shutdown): Handle p->indent.
5344 (html_text::check_emit_text): Simplified.
5345 (html_text::do_emittext): Reset `blank_para'.
5346 (html_text::do_para): Add new parameter for indentation; updated
5348 (html_text::remove_indent): New function.
5349 (html_text::do_space): Handle verbatim text properly.
5350 (html_text::ever_emitted_text, html_text::starts_with_space,
5351 html_text::remove_para_align): New functions.
5352 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5354 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5357 * src/devices/grohtml/post-html.cc: Include html-table.h.
5358 (INDENTATION): Removed.
5359 (text_glob): Added many `is_<foo>' functions.
5360 Added table description `tab'.
5361 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5363 (list): Add `insert' and `move_to' member functions.
5364 (page): Add `insert_tag' member function.
5365 (page::dump_page) [DEBUG_TABLES]: Improved.
5366 (html_printer): Add `table' and `max_linelength' elements.
5367 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5368 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5369 `remove_tabs', `remove_courier_tabs'.
5370 (html_printer::emit_raw): Handle indentation.
5371 (html_printer::do_center, html_printer::write_header): Updated.
5372 (html_printer::is_courier_until_eol): Check for tag.
5373 (html_printer::do_linelength): Handle max_linelength.
5374 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5376 (html_printer::do_tempindent): Updated.
5377 (html_printer::do_indentedparagraph): Removed.
5378 (html_printer::do_indent): Simplified.
5379 (html_printer::do_eol): Use `ever_emitted_text'.
5380 (html_printer::do_flush, html_printer::do_links): Don't call
5382 (html_printer::do_break): Handle end_tempindent.
5383 (html_printer::troff_tag): Get argument.
5385 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5386 (html_printer::flush_page): Call `lookahead_for_tables'.
5387 Don't call `done_table'.
5388 (html_printer::add_to_sbuf): Always call do_indent.
5390 * src/devices/grohtml/Makefile.sub: Updated.
5392 * tmac/an-old.tmac (TP): Don't handle html device specially.
5393 (an-do-tag-html): New function which will be used instead of
5394 `an-do-tag' if html device is used.
5396 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5398 * tmac/s.tmac (@IP): Don't handle html device specially.
5399 (@IP-html): New function which will be used instead of `@IP' if
5400 html device is used.
5402 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5403 is a hack which will eventually vanish again.
5404 (PIMG): Handle `-C' option correctly if not html.
5407 2002-07-17 Werner LEMBERG <wl@gnu.org>
5409 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5411 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5413 * contrib/pic2graph/pic2graph.*: Use convert(1).
5414 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5416 2002-07-14 Bernd Warken <bwarken@mayn.de>
5418 * tmac/groff_trace.man: New file.
5419 * tmac/Makefile.sub: Updated.
5422 2002-07-13 Werner LEMBERG <wl@gnu.org>
5424 * src/roff/groff/groff.man: Add some cross references.
5426 2002-07-12 Werner LEMBERG <wl@gnu.org>
5428 * src/roff/troff/input.cc (substring_request): Add warnings for
5429 string indices out of range.
5431 2002-07-11 Werner LEMBERG <wl@gnu.org>
5433 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5434 * font/devdvi/*EC: Regenerated.
5436 2002-07-10 Bernd Warken <bwarken@mayn.de>
5438 * man/groff_char.man: Updated and extended.
5440 2002-07-10 Werner LEMBERG <wl@gnu.org>
5442 * src/roff/troff/input.cc (length_macro): Renamed to...
5443 (length_request): This.
5444 Move call of `tok.next()' to the very end, otherwise the register
5445 value hasn't been updated yet.
5446 (init_input_requests): Updated.
5448 2002-07-09 Werner LEMBERG <wl@gnu.org>
5450 * src/roff/troff/input.cc (substring_macro): Renamed to...
5451 (substring_request): This.
5452 (init_input_requests): Updated.
5453 * src/roff/troff/request.h: Updated.
5455 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5457 * src/roff/grog/grog.sh: Fix typo.
5459 2002-07-08 Werner LEMBERG <wl@gnu.org>
5461 * win32-diffs: Updated.
5463 Handle `papersize' keyword properly in DESC.
5465 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5467 Updated all callers.
5468 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5470 * src/include/paper.h: Updated.
5472 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5473 Other minor C syntax fixes.
5474 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5475 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5477 (lbp_printer::lbp_printer): Pass three arguments.
5478 Set paper dimensions properly.
5479 (make_printer, main): Updated.
5480 (handle_unknown_desc_command): Fix error messages.
5481 (main): Handle papersize keyword in DESC properly.
5483 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5485 (lbp_printer::lbp_printer): Pass an argument.
5486 Set paper_size properly.
5487 (handle_unknown_desc_command): Removed.
5488 (make_printer, main): Updated.
5489 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5491 * man/groff_font.man, NEWS: Updated.
5493 2002-07-07 Werner LEMBERG <wl@gnu.org>
5495 Integrated eqn2graph, contributed by Eric S. Raymond.
5497 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5499 * Makefile.in, NEWS: Updated.
5501 2002-06-04 Werner LEMBERG <wl@gnu.org>
5503 Changing the substring request to make it fit better with other
5504 string manipulation functions in other programming languages:
5505 Index 0 is now the first character in the string, and index -1
5506 indicates the last character. Since this request didn't work
5507 properly anyway in the last release, it doesn't harm too much to
5510 * src/roff/troff/input.cc (substring_macro): Use loops to get
5511 the real string length (ignoring COMPATIBLE_SAVE and
5512 COMPATIBLE_RESTORE) and offsets.
5513 Implement change described above.
5515 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5516 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5518 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5520 2002-06-03 Werner LEMBERG <wl@gnu.org>
5522 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5523 COMPATIBLE_RESTORE are completely ignored.
5525 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5527 (macro): `length' field renamed to `len'.
5528 Added new field `empty_macro' (1 if macro is empty), to be used
5529 instead of checking `len'.
5530 Updated all callers.
5531 (macro::empty): Updated.
5532 (macro::length, macro::set, macro::get): New functions.
5533 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5535 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5536 COMPATIBLE_RESTORE pairs.
5537 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5538 * src/roff/troff/request.h: Updated.
5540 * doc/groff.texinfo: Document .chop's behaviour better.
5542 2002-06-02 Werner LEMBERG <wl@gnu.org>
5544 * doc/pic.ms: Fix documentation for the addition of positions.
5546 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5548 2002-06-29 Werner LEMBERG <wl@gnu.org>
5550 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5552 * src/roff/troff/input.cc (have_string_arg): New global variable.
5553 (read_mode): New enumeration.
5554 (read_escape_name): Use it. Update all calls.
5555 (read_long_escape_name): Use it. Update all calls.
5556 Set have_string_arg if appropriate.
5557 (get_char_for_escape_name): Add parameter for handling space
5559 (interpolate_string_with_args, decode_string_args): New functions.
5560 (get_copy, token::next): Call it if necessary.
5561 (interpolate_string): Fix error message.
5563 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5566 2002-06-24 Bernd Warken <bwarken@mayn.de>
5568 * man/groff_tmac.man: Updated and extended.
5570 2002-06-24 Werner LEMBERG <wl@gnu.org>
5572 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5574 2002-06-23 Werner LEMBERG <wl@gnu.org>
5576 * doc/pic.ms: Improve documentation of composite block objects.
5578 2002-06-22 Werner LEMBERG <wl@gnu.org>
5580 * src/roff/troff/input.cc (init_registers): Add three registers
5581 `seconds', `minutes', and `hours' to hold the current time.
5583 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5586 2002-06-20 Werner LEMBERG <wl@gnu.org>
5588 Make \X accept both `\ ' and `\~', converting them to single space
5591 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5592 (token::unstretchable_space): New inline function.
5593 * src/roff/troff/input.cc (token::next, token::delimiter,
5594 token::description, token::add_to_node_list, token::process): Handle
5595 TOKEN_UNSTRETCHABLE_NODE.
5596 (encode_char): Handle tok.stretchable_space and
5597 tok.unstretchable_space.
5599 * NEWS, doc/groff.texinfo: Document it..
5601 2002-06-19 Werner LEMBERG <wl@gnu.org>
5603 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5605 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5606 keyword to enable/disable SGR output.
5607 (tty_printer::change_fill_color): New function.
5608 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5610 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5613 2002-06-18 Werner LEMBERG <wl@gnu.org>
5615 Add a `color' request and a `.color' register to control usage of
5618 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5619 (color_flag): This (which is the inverse).
5620 (activate_color): New function.
5621 (main, init_input_requests): Updated.
5622 * src/roff/troff/troff.h, src/roff/troff/node.cc
5623 (troff_output_file::fill_color, troff_output_file::glyph_color):
5626 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5627 Document the changes.
5629 2002-06-17 Colin Watson <cjwatson@debian.org>
5631 Circumvent bug in autoconf 2.53 regarding top_builddir.
5633 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5634 * Makefile.in, doc/Makefile.in:
5635 s/@top_builddir@/@groff_top_builddir@/.
5636 * configure: Regenerated (with autoconf 2.53).
5638 2002-06-17 Werner LEMBERG <wl@gnu.org>
5640 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5641 `paperwidth' and `paperlength' for the `papersize' keyword.
5643 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5645 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5647 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5649 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5650 html_printer::do_linelength, html_printer::do_pageoffset,
5651 html_printer::do_indentation, html_printer::do_tempindent,
5652 html_printer::do_break, html_printer::begin_page): Clear indented
5654 * tmac/html.tmac: Disable hyphenation.
5656 2002-06-15 Werner LEMBERG <wl@gnu.org>
5658 Don't produce HTML files if utility programs are missing.
5660 * Makefile.in (make_html, make_install_html): New variables.
5661 (MDEFINES): Updated.
5663 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5665 * configure.ac: Use it.
5666 * configure: Regenerated.
5668 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5669 (HTMLEXAMPLESFILES): This new variable.
5670 (EXAMPLESIMAGEFILES): Renamed to...
5671 (HTMLEXAMPLEIMAGEFILES): This.
5672 (CLEANADD): Add HTMLEXAMPLEFILES.
5673 (all): Use `make_html'.
5675 (install_data): Use `make_install_html'.
5676 Move html stuff to...
5677 (install_html): This new target.
5678 (uninstall_sub): Updated.
5680 2002-06-14 Bernd Warken <bwarken@mayn.de>
5682 * src/roff/grog/Makefile.sub (grog): Renamed to...
5684 (grog): New rule to always install grog.sh as grog.
5686 2002-06-08 Bernd Warken <bwarken@mayn.de>
5688 * src/roff/grog/grog.pl: Fix typo.
5690 2002-06-07 Werner LEMBERG <wl@gnu.org>
5692 * doc/groff.texinfo: Add more info on .tr arguments.
5694 2002-06-05 Werner LEMBERG <wl@gnu.org>
5696 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5698 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5699 * configure: Regenerated.
5701 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5703 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5705 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5707 2002-06-04 Werner LEMBERG <wl@gnu.org>
5709 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5710 is not initialized at the time we need it in case `--prefix' hasn't
5711 been set. Check for `ac_default_prefix' also.
5712 Test for `papersize' keyword also and generalize allowed whitespace.
5713 * configure: Regenerated.
5715 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5718 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5720 (src_version, src_revision): New variables to avoid overwriting
5721 from parent make process.
5722 (version.cc): Updated.
5724 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5725 (linebuf, linebufsize): New global variables.
5726 (sys_fatal): Use `fatal' to abort properly.
5727 (get_line): New function.
5728 (get_resolution): Use it.
5729 Improve error messages.
5730 (get_papersize): Check `papersize' also.
5732 Improve error messages.
5734 2002-06-03 Werner LEMBERG <wl@gnu.org>
5736 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5737 should be removed only if builddir is not srcdir.
5738 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5739 (clean): Depend on `mostlyclean'.
5740 (distclean): Depend on `clean'.
5741 (realclean, extraclean): Depend on `distclean'.
5742 (.y.cc, .y.o): Simplified. The output files are no longer written
5743 to srcdir but to builddir.
5744 * Makefile.in (MDEFINES): Add `version' and `revision'.
5745 (uninstall_dirs): Fix order of directories.
5746 * doc/Makefile.sub (version, revision): Removed.
5747 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5748 Added `HTMLDOCFILES'.
5749 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5750 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5751 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5754 * doc/texinfo.tex (\authortt): New macro.
5755 (\shortcontt): Define.
5756 (\titlepage): Set \tt to \authortt while defining \authorfont.
5757 (\appendixbox): New macro.
5758 (\chapmacro, \appendixentry): Use \appendixbox to get even
5759 indentation for letters.
5760 (\summarycontents): Set \tt.
5761 (\internalpagesize): Add two arguments for real paper width and
5762 height as needed by pdfTeX.
5763 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5765 (\tempdima, \tempdimb): New temporary dimensions.
5766 (\pagesizesyyy): Updated.
5768 2002-06-02 Werner LEMBERG <wl@gnu.org>
5770 Adding a new keyword `papersize' to the DESC file format (similar
5771 but not completely identical to grolbp's extension). grops now has
5772 a -p command line option to override `papersize'. Finally, grolbp
5773 has been adapted to the new syntax.
5775 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5776 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5778 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5779 (CCSRCS): Add `paper.cc'.
5781 * src/include/font.h (font): Add `papersize' element.
5782 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5783 (font::scan_papersize): New function.
5784 (font::load_desc): Use it for handling `papersize' keyword.
5785 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5787 * src/devices/grops/ps.cc: Include paper.h.
5788 (user_paper_length): New global variable.
5789 (ps_printer): Use paper length as initializer.
5790 (make_printer): Updated.
5791 (main): Handle new `-p' option.
5792 * src/devices/grops/grops.man: Updated.
5794 * src/devices/grolbp/lbp.cc: Include paper.h.
5795 s/papersizes/lbp_papersizes/.
5796 (set_papersize): Use new `papersizes' array.
5797 (handle_unknown_desc_command): Don't handle `papersize'.
5798 (main): Use `font::scan_papersize' for handling `-p' option.
5799 * src/devices/grolbp/grolbp.man: Updated.
5801 * man/groff_font.man: Document `papersize'.
5804 2002-05-30 Werner LEMBERG <wl@gnu.org>
5806 * src/devices/grops/TODO: Updated.
5807 * src/devices/grops/grops.man: More info on paper formats.
5808 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5810 2002-05-29 Werner LEMBERG <wl@gnu.org>
5812 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5813 to list only if srcdir != currdir.
5814 (distfiles): New target.
5816 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5817 (NOMAKEDIRS): New variable.
5820 2002-05-26 Werner LEMBERG <wl@gnu.org>
5822 Add .output request, similar to \! at top-level.
5824 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5825 (output_request): New function.
5826 (init_input_requests): Add it.
5828 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5831 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5832 (prepare_examples): Fix typo.
5833 * doc/groff.texinfo (@direntry): Fix it.
5835 2002-05-25 Werner LEMBERG <wl@gnu.org>
5837 Including the doc subdir into groff's Makefile system.
5839 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5840 * configure.ac: Use it.
5841 Generate `doc/Makefile'.
5842 * configure: Regenerated.
5844 * Makefile.in (infodir, INSTALL_INFO): New variables.
5845 (MDEFINES, uninstall_dirs): Updated.
5846 (OTHERDIRS): Add `doc'.
5847 * Makefile.comm (CLEANDIRADD): New variable.
5848 (mostlyclean): Use it.
5850 * doc/Makefile.sub, doc/Makefile.in: New files.
5851 * doc/Makefile: Removed.
5853 * NEWS, INSTALL: Updated.
5855 2002-05-24 Werner LEMBERG <wl@gnu.org>
5857 * doc/homepage.ms: Renamed to ...
5858 * doc/webpage.ms: This.
5861 2002-05-23 Werner LEMBERG <wl@gnu.org>
5863 Integrating the `mom' macro package, contributed by Peter Schaffter
5866 * contrib/mom/*: New subdirectory tree.
5867 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5868 be used for documentation files.
5869 (MDEFINES, uninstall_dirs): Use them.
5870 (OTHERDIRS): Add contrib/mom.
5871 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5873 * MANIFEST, NEWS: Updated.
5875 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5877 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5878 if at outer level; at start-up we are at outer level.
5880 * src/roff/troff/input.cc (do_suppress): Implement it.
5883 Add option -p to show progress information.
5884 pre-grohtml will now render only one page at a time, reducing the
5885 size of needed disk resources enormously.
5887 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5888 (imagePageName): New global variable.
5889 (psPageName, show_progress, currentPageNo): New global variables.
5890 (html_system): Close saved stderr and stdout handles.
5891 (write_end_image): Accept a parameter to control \O escape.
5892 (write_start_image): Adapted to new \O meaning.
5893 (char_buffer::write_upto_newline): Updated.
5894 (createAllPages): Replaced with...
5895 (createPage): This new function to create a single page for images.
5896 It uses `psselect' from the psutils package.
5897 (removeAllPages): Removed.
5898 (createImage): Updated.
5899 Handle progress display.
5900 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5901 (scanArguments): Add option -p.
5902 (makeTempFiles): Updated to create temp files for psPageName and
5904 (removeTempFiles): Removed.
5907 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5908 html_printer::write_header): Append `\0' to `buffer'.
5909 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5911 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5912 Handle `text_emitted'.
5913 (html_text::table_is_void): Slightly rewritten.
5914 (stop): New external symbol.
5915 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5916 (html_text::shutdown): Call `dump_stack'.
5917 (html_text::do_space): Rewritten.
5918 * src/devices/grohtml/grohtml.man: Document -p and the need of
5921 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5923 Call \O[0] if `ps4html' is active.
5924 * tmac/s.tmac (@EQ, @EN): Handle html better.
5926 * tmac/html.tmac: Don't use black for background colour.
5928 * src/roff/troff/node.cc: Include `div.h'.
5929 (troff_output_file::really_print_line): Don't use `is_on'.
5930 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5931 troff_output_file::check_charinfo,
5932 troff_output_file::put_char_width, troff_output_file::put_char,
5933 troff_output_file::determine_line_limits, troff_output_file::draw,
5934 real_output_file::begin_page, glyph_color_node::tprintf,
5935 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5937 (troff_output_file::really_on): Call `do_motion'.
5938 (suppress_node::tprint): Use `get_page_number' instead of `%'
5940 Call `reset_output_registers' conditionally on `is_on'.
5942 * doc/groff.texinfo: Document new syntax of \O.
5943 * NEWS, man/groff_diff.man: Updated.
5945 2002-05-22 Werner LEMBERG <wl@gnu.org>
5947 * MORE.STUFF: Add info about David Frey's deroff implementation.
5950 2002-05-16 Werner LEMBERG <wl@gnu.org>
5952 Pic's `with' attribute now accepts positions.
5954 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5955 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5957 (object_spec): Add rule for `WITH' and `position'.
5958 (relative_path): Give `corner' the precedence of `CHOP'.
5959 * src/preproc/pic/object.h (path): New members `pos' and
5961 * src/preproc/pic/object.cc: Updated initializers of `path'.
5962 (path::follow): Handle `is_position'.
5964 * doc/pic.ms: Completely updated grammar description.
5965 Many typographical improvements.
5967 2002-05-15 Werner LEMBERG <wl@gnu.org>
5969 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5970 code of x in range 0-127) also.
5971 * doc/groff.texinfo, man/groff_diff.man: Updated.
5973 Added keywords `north', `south', `east', and `west' for corners
5976 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5978 (yylex): Handle them.
5979 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5980 (corner): Handle them.
5982 2002-05-14 Werner LEMBERG <wl@gnu.org>
5984 * src/devices/grops/grops.man: Clarify handling of `download' file.
5986 2002-05-11 Werner LEMBERG <wl@gnu.org>
5988 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5989 Jeffrey Friedl <jfriedl@yahoo.com>.
5991 * src/roff/troff/input.cc (spread_limit, warn_scale,
5992 warn_scaling_indicator): New global variables.
5993 (warnscale_request, spreadwarn_requests): New functions.
5994 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5995 (init_input_requests): Updated.
5996 (error_type): Add `OUTPUT_WARNING'.
5997 (do_error): Handle it.
5998 (output_warning): New warning function which shows output location.
5999 * src/roff/troff/env.h (spread_limit): New external variable.
6000 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6002 (distribute_space): Emit warning if added space is larger than
6004 (environment::possibly_break_line): Emit warning if a line can't
6005 be adjusted on both sides.
6007 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6009 2002-05-08 Werner LEMBERG <wl@gnu.org>
6011 * src/roff/troff/node.cc (special_node::special_node): Use
6012 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
6013 \X''\% crashes, for example.
6015 * doc/groff.texinfo: Document \! and \? used at top-level.
6017 2002-05-06 Werner LEMBERG <wl@gnu.org>
6019 * src/preproc/pic/pic.man: Fix some keyword syntax.
6020 Other minor typographical fixes.
6022 * src/roff/groff/groff.man: Fix typos.
6024 2002-05-04 Werner LEMBERG <wl@gnu.org>
6026 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6027 (ShortOpt[]): This to avoid problems with refer.
6029 * doc/pic.ms: Fix typo.
6030 Fix pic grammar description.
6032 * tmac/an-old.tmac (ne): Use de1, not de.
6034 2002-05-03 Werner LEMBERG <wl@gnu.org>
6036 * doc/groff.texinfo: Finished separation of glyphs and characters.
6037 Don't use the string `Appendix' for appendix headers (both in
6038 the text and the table of contents).
6039 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6042 Use registers LL and LT (similar to -ms) for controlling the
6043 length of title and line, respectively, in the -man and -mdoc
6046 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6047 (doc-setup-page-layout): Use \n[LL] and \n[LT].
6048 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6050 (an-header, an-p-footer): Use \n[LT].
6051 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6052 doc/groff.texinfo: Document it.
6054 2002-05-02 Werner LEMBERG <wl@gnu.org>
6056 * doc/fdl.texi: New file.
6057 * doc/groff.texinfo: Include it.
6058 Define and use @copying.
6059 Starting with separating glyph, symbol, and character.
6061 2002-04-27 Werner LEMBERG <wl@gnu.org>
6063 * Makefile.in (EXEEXT): Set it.
6064 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6067 * src/include/nonposix.h: Define GS_NAME.
6068 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6070 Some preliminary changes for EMX support under OS/2.
6072 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6073 __EMX__ similar to __MSDOS__.
6074 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6076 2002-04-25 Werner LEMBERG <wl@gnu.org>
6078 * doc/groff.texinfo: Integrated groff_out.man.
6081 2002-04-23 Werner LEMBERG <wl@gnu.org>
6083 * man/groff_out.man: Minor fixes.
6085 2002-04-23 Werner LEMBERG <wl@gnu.org>
6087 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6088 correct page references.
6089 Fixed many index entries.
6091 2002-04-23 Bernd Warken <bwarken@mayn.de>
6093 * man/roff.man: Enlarged.
6095 2002-04-22 Werner LEMBERG <wl@gnu.org>
6097 * doc/groff.texinfo: More examples, other fixes.
6099 2002-04-20 Werner LEMBERG <wl@gnu.org>
6101 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6102 will now form a chain, e.g.
6111 This is for compatibility with plan 9's troff.
6113 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6117 * doc/groff.texinfo: Add documentation of remaining requests and
6120 2002-04-19 Werner LEMBERG <wl@gnu.org>
6122 * doc/groff.texinfo: Add documentation of remaining escapes.
6124 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6125 * font/devdvi/*TC: Regenerated.
6127 2002-04-18 Werner LEMBERG <wl@gnu.org>
6129 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6130 if not in compatibility mode, i.e., increment relative to the
6132 * doc/groff.texinfo: Updated accordingly.
6134 2002-04-17 Werner LEMBERG <wl@gnu.org>
6136 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6138 2002-04-16 Bernd Warken <bwarken@mayn.de>
6140 * src/roff/groff/groff.man: Improve documentation of -P option.
6143 2002-04-15 Werner LEMBERG <wl@gnu.org>
6145 Add new escape \F to switch font family.
6147 * src/roff/troff/input.cc (token::next): Handle \F.
6148 * src/roff/troff/env.cc (environment::set_family): Handle
6150 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6153 2002-04-14 Werner LEMBERG <wl@gnu.org>
6155 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6158 2002-04-13 Werner LEMBERG <wl@gnu.org>
6160 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6161 \m[] and \M[], respectively.
6163 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6164 (symbol::symbol): Handle NULL string and empty string differently.
6165 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6166 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6167 Add optional parameter.
6168 Updated calling functions.
6169 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6171 * src/roff/troff/env.cc (environment::set_font): Ditto.
6173 * src/preproc/pic/troff.cc (troff_output::set_fill,
6174 troff_output::reset_color: Updated.
6176 * tmac/www.tmac: Updated.
6178 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6179 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6182 * tmac/Xps.tmac: Remove some redundant code.
6184 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6185 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6186 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6189 2002-04-13 Bernd Warken <bwarken@mayn.de>
6191 * src/include/printer.h, src/libs/libdriver/printer.cc
6192 (printer::change_fill_color): New member function.
6193 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6195 2002-04-12 Werner LEMBERG <wl@gnu.org>
6197 * doc/groff.texinfo: Completed pass on gtroff reference.
6199 2002-04-11 Werner LEMBERG <wl@gnu.org>
6201 * doc/groff.texinfo: More fixes.
6203 2002-04-11 Bernd Warken <bwarken@mayn.de>
6205 * src/include/color.h: Decorate with `const'.
6208 * src/libs/libgroff.color.cc: Decorate with `const'.
6210 (color::color): Initialize members.
6211 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6212 command according to the documentation.
6214 * man/groff_out.man: Updated.
6217 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6219 * src/preproc/html/pre-html.cc (write_start_image): Remove
6221 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6223 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6224 \C'hy' caused an assertion failure.
6226 * src/roff/troff/env.cc (environment::environment): Initialize
6228 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6230 2002-04-10 Werner LEMBERG <wl@gnu.org>
6232 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6233 Document pvs request and .pvs register.
6235 2002-04-09 Werner LEMBERG <wl@gnu.org>
6237 * doc/groff.texinfo: Improve and fix documentation of diversions
6240 2002-04-08 Werner LEMBERG <wl@gnu.org>
6242 * doc/groff.texinfo: Fix documentation of drawing functions.
6245 2002-04-07 Werner LEMBERG <wl@gnu.org>
6247 * doc/groff.texinfo: Better documentation of double quotes as
6251 2002-04-06 Werner LEMBERG <wl@gnu.org>
6253 * man/groff_font.man: Document names of special characters better.
6254 * doc/groff.texinfo: Minor improvements.
6256 * tmac/lbp.tmac: Load latin1.tmac.
6257 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6259 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6261 2002-04-05 Werner LEMBERG <wl@gnu.org>
6263 * tmac/tty.tmac: Don't use shc request.
6264 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6267 * man/groff_diff.man: Minor fixes.
6269 * font/devlbp/*: Remove all `charXXX' entities.
6271 * src/libs/libgroff/font.cc (font::~font): Deallocate
6272 `special_device_coding'.
6273 (font::load): Use `new' for allocating `special_device_coding'.
6274 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6275 Removed unused member.
6277 2002-04-05 Werner LEMBERG <wl@gnu.org>
6279 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6280 (resource_manager::do_begin_binary,
6281 resource_manager::do_begin_data): Use it.
6283 * doc/texinfo.tex: Updated to version 4.2.
6285 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6286 (token::zero_width_break): New inline function.
6287 * src/roff/troff/input.cc (token::next): Use it.
6288 (token::description): Updated.
6289 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6290 (token::add_to_node_list, token::process): Use it.
6291 * NEWS, doc/groff.texinfo: Updated.
6293 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6294 * tmac/tty.tmac: Add missing backslash.
6296 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6298 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6299 `.ps' register instead of `.s' to handle fractional point sizes.
6300 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6301 limit_box::output): Ditto.
6302 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6303 size_box::output): Ditto.
6304 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6305 over_box::output): Ditto.
6306 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6307 script_box::output): Ditto.
6308 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6309 sqrt_box::output): Ditto.
6311 2002-04-03 Michael Selway <mas@ssl.co.uk>
6313 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6316 2002-04-03 Werner LEMBERG <wl@gnu.org>
6318 * doc/homepage.ms: Reduce title size.
6319 * doc/groff.texinfo: Fix documentation of .t register.
6320 Fix handling of colon.
6323 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6324 only if page length is positive to avoid a loop.
6326 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6329 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6331 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6332 s/__CYGWIN32__/__CYGWIN__/.
6334 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6336 * doc/gnu.xpm: New image contributed by Emily Mulley.
6337 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6338 (homepage.html): Be dependent on gnu.eps.
6339 * doc/homepage.ms: Updated to new image.
6341 * src/devices/grohtml/post-html.cc (html_printer): New member
6343 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6344 (html_printer::sbuf_continuation): Use it.
6346 2002-03-28 Werner LEMBERG <wl@gnu.org>
6348 * src/libs/libgroff/getopt.c: Updated to latest version.
6350 * tmac/README: More on hyphen.tex license.
6352 2002-03-26 Larry Kollar <kollar@alltel.net>
6354 * doc/groff.texinfo: Add documentation of most missing requests.
6356 2002-03-25 Werner LEMBERG <wl@gnu.org>
6358 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6359 of `+-', `mu', and `di', respectively.
6361 * font/devascii/R.proto, font/devutf8/R.proto,
6362 font/devlatin1/R.proto, font/devhtml/R.proto,
6363 font/devcp1047/R.proto, font/devlpb/*: Add them.
6364 * font/devps/generate/textmap: Ditto.
6365 * font/devps/*: Regenerated.
6366 * font/devlj4/generate/text.map: Add them.
6367 * font/devlj4/*: Regenerated.
6368 * font/devdvi/generate/tc.map: Use them.
6369 * font/devdvi/generate/texsy.map: Add them.
6370 * font/devdvi/*: Regenerated.
6371 * font/devX*/*: Regenerated.
6373 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6374 tmac/tty-char.tmac: Updated.
6376 * NEWS, man/groff_char.man: Updated.
6378 2002-03-24 Werner LEMBERG <wl@gnu.org>
6380 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6381 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6382 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6383 we use `.fchar' in dvi.tmac.
6384 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6385 * tmac/Xps.tmac: Simplify some char definitions.
6386 Add definition for \[f/].
6387 * man/groff_char.man: Updated for new X.tmac.
6389 * tmac/README: New file.
6391 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6393 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6394 internal .y.o rule took precendence over the .y.cc rule, compiling
6395 the yacc files with gcc instead of g++.
6397 2002-03-23 Werner LEMBERG <wl@gnu.org>
6399 * tmac/dvi.tmac: Add replacement font for `CB'.
6401 * tmac/doc.tmac: s/request/macro/ in messages.
6402 (doc-generic-macro): Improve error message.
6403 * tmac/groff_mdoc.man: Minor improvements.
6405 2002-03-22 Werner LEMBERG <wl@gnu.org>
6407 * doc/groff.texinfo: Document possible conflict between `tr' and
6410 2002-03-21 Werner LEMBERG <wl@gnu.org>
6412 Improve handling of hyphenation patterns. It is now possible to
6413 use most of TeX's pattern files unmodified. To make the process
6414 more flexible, a new request `hpfcode' has been added which
6415 provides a character code mapping for the `hpf' request. See
6416 comment before hpf_getc() for more details.
6418 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6420 (read_patterns_file): Additional parameter for exception dictionary.
6421 Extended to recognize \pattern, \hyphenation, and \endinput.
6422 (do_hyphenation_patterns_file): Updated.
6423 * src/roff/troff/env.h (hpf_code_table): New extern.
6425 * src/roff/troff/input.cc (hpf_code_table): New array.
6426 (init_hpf_code_table, hyphenation_patterns_file_code): New
6428 (hyphenation_code): Handle translation from `trin' correctly.
6429 (main, init_input_requests): Updated.
6430 (charinfo::set_translation): Handle hyphenation code also.
6432 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6435 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6436 char' is used for offsets in hyphenation exceptions.
6438 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6440 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6442 2002-03-20 Larry Kollar <kollar@alltel.net>
6444 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6447 2002-03-18 Werner LEMBERG <wl@gnu.org>
6449 * tmac/html.tmac: Fix serious typo.
6451 2002-03-17 Larry Kollar <kollar@alltel.net>
6453 * doc/groff.texinfo: Add documentation for `writec' request.
6455 2002-03-17 Werner LEMBERG <wl@gnu.org>
6457 Added request `hpfa' to append hyphenation patterns.
6459 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6461 (hyphenation_patterns_file): Renamed to...
6462 (do_hyphenation_patterns_file): This.
6463 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6465 (init_hyphen_requests): Updated.
6466 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6468 2002-03-16 Werner LEMBERG <wl@gnu.org>
6470 Added request `writec' in analogy to `tmc'.
6472 * src/roff/troff/input.cc (write_request): Renamed to...
6473 (do_write_request): This.
6474 Added one parameter.
6475 (write_request, write_request_continue): New functions.
6476 (init_input_requests): Updated.
6477 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6479 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6481 * NEWS: Document it.
6483 2002-03-15 Werner LEMBERG <wl@gnu.org>
6485 * man/groff.man: Add writem request.
6487 Add request `trin' (translate input) to make `.asciify' work
6488 correctly. This is necessary since `charXXX' entity names are no
6489 longer hardcoded in font definition files.
6491 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6492 `translate_input' members.
6493 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6494 charinfo::set_translation_input): New methods.
6495 (charinfo::set_translation): Add third argument.
6496 * src/roff/troff/input.cc (charinfo:set_translation): Set
6498 (do_translate): Add second argument.
6499 (translate_input): New function.
6500 (init_input_requests): Updated.
6501 * src/roff/troff/node.cc (glyph_node::asciify,
6502 composite_node::asciify): Use `get_asciify_code'.
6504 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6506 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6508 2002-03-14 Larry Kollar <kollar@alltel.net>
6510 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6512 2002-03-14 Werner LEMBERG <wl@gnu.org>
6514 Add a new request `sizes' similar to the `sizes' command in DESC
6517 * src/roff/troff/env.cc (override_sizes): New function.
6518 (init_env_requests): Use it.
6519 * src/roff/troff/token.h: Export `read_string'.
6520 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6522 2002-03-12 Werner LEMBERG <wl@gnu.org>
6524 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6526 2002-03-10 Werner LEMBERG <wl@gnu.org>
6528 * tmac/pspic.tmac: Add support for -Tdvi.
6529 * tmac/dvi.tmac: Include pspic.tmac.
6530 * src/devices/grodvi/grodvi.man: Document it.
6533 * font/devlj4/generate/Makefile: Fix URL of metric files.
6535 2002-03-09 Werner LEMBERG <wl@gnu.org>
6537 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6539 2002-03-09 Larry Kollar <kollar@alltel.net>
6541 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6543 2002-03-08 Werner LEMBERG <wl@gnu.org>
6545 * doc/groff.texinfo: Fixes for texinfo 4.1.
6547 2002-03-07 Werner LEMBERG <wl@gnu.org>
6549 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6551 Handle CYGWIN properly.
6553 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6555 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6556 * tmac/lbp.tmac: Add some font translations.
6558 2002-03-02 Werner LEMBERG <wl@gnu.org>
6560 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6561 font/devhtml/R.proto: Remove `charXXX' entries.
6562 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6565 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6566 * font/devlj4/*: Regenerated all font definition files.
6567 * tmac/lj4.tmac: Load latin1.tmac.
6569 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6570 from 2000-06-17: LJ4 metric files are *not* text files.
6572 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6573 register to test for EBCDIC.
6575 2002-03-01 Werner LEMBERG <wl@gnu.org>
6577 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6578 files (as grops already does).
6579 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6581 * src/devices/grops/grops.man: Document comment lines in encoding
6584 * tmac/cp1047.tmac: New file.
6585 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6586 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6587 * tmac/Makefile.sub (NORMALFILES): Updated.
6589 * tmac/ec.tmac: Don't load latin1.tmac again.
6591 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6592 font/devps/generate/dingbats.map,
6593 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6594 font/devps/generate/Makefile (symbolmap): Add header comment.
6595 * font/devps/generate/textmap: Ditto.
6596 Remove `charXXX' entries.
6597 * font/devps/symbolmap: Regenerated.
6598 * font/devps/*: Regenerated all font definition files.
6600 2002-02-28 Werner LEMBERG <wl@gnu.org>
6602 Add color support to grodvi (for drawing colors are currently
6603 translated to gray values).
6605 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6606 (dvi_printer): Add `cur_color' member.
6607 (dvi_printer::set_color): New function.
6608 (draw_dvi_printer): Remove `fill'.
6609 (draw_dvi_printer::fill_next): Pass environment as parameter.
6610 Update code for new color support translated to gray.
6611 (dvi_printer::set_char): Updated.
6612 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6613 changes crossing the page border.
6614 (dvi_printer::draw): Updated.
6615 Remove cases `f' and `F'.
6616 * tmac/dvi.tmac: Add color definitions.
6617 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6619 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6622 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6623 versions of autoconf.
6624 * configure: Updated.
6626 * doc/homepage.ms: Use `.blm'.
6627 * tmac/www.tmac (www-depth): New auxiliary variable.
6628 (www-pop-level): Don't issue HTML tag.
6629 (ULS, ULE, LI): Use absolute indentation.
6631 * src/devices/grops/ps.cc (ps_printer::begin_page,
6632 ps_printer::end_page): Switch forth and back to default color while
6633 starting a new page.
6635 2002-02-27 Werner LEMBERG <wl@gnu.org>
6637 Add EC and TC fonts to devdvi.
6639 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6640 * font/devdvi/generate/cork.map: Renamed to...
6641 * font/devdvi/generate/ec.map: This.
6642 Remove entry for `aq'.
6643 * font/devdvi/generate/tc.map: New file.
6644 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6647 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6648 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6649 * tmac/ec.tmac: New file.
6650 * tmac/Makefile.sub (NORMALFILES): Updated.
6651 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6652 * man/groff_char.man: Check `ECFONTS' register.
6654 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6656 2002-02-26 Werner LEMBERG <wl@gnu.org>
6658 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6659 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6660 * font/devdvi/*: Updated.
6661 * tmac/dvi.tmac: Formatting.
6663 Add font `HBI' for the dvi output.
6664 Add support for font families `T' and `H'.
6666 * font/devdvi/HBI: New file.
6667 * font/devdvi/B: Renamed to ...
6668 * font/devdvi/TB: This.
6669 * font/devdvi/BI: Renamed to ...
6670 * font/devdvi/TBI: This.
6671 * font/devdvi/I: Renamed to ...
6672 * font/devdvi/TI: This.
6673 * font/devdvi/R: Renamed to ...
6674 * font/devdvi/TR: This.
6675 * font/devdvi/H: Renamed to ...
6676 * font/devdvi/HR: This.
6677 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6678 * font/devdvi/generate/Makefile (HBI): New rule.
6680 (R, I, B, BI, H): Renamed to ...
6681 (TR, TI, TB, TBI, HR): This, respectively.
6683 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6684 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6685 Add `styles' and `family' keywords.
6686 * tmac/dvi.tmac: Alias `H' to `HR'.
6687 Add some fspecial requests for italic fonts.
6688 Add TR and TI as special.
6689 Add support for `_' with font CWI.
6691 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6692 operator `:'. Until now, the expression `0:1' would return 2
6695 2002-02-25 Werner LEMBERG <wl@gnu.org>
6697 * man/groff_char.man: Added some missing PS glyph names (from the
6699 * font/devps/generate/textmap, font/devps/symbolmap: Add
6702 * doc/groff.texinfo: Minor additions and fixes.
6703 * man/groff_diff.man: Remove documentation of fp request. This
6704 is already covered in the original troff manual.
6705 Updated to be consistent with other doc files.
6708 2002-02-24 Werner LEMBERG <wl@gnu.org>
6710 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6712 Define new variable OTHERDEVDIRS (containing `font/devlj4
6713 font/devlbp' if not EBCDIC).
6714 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6715 (OTHERDEVDIRS): New variable.
6716 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6717 * configure: Regenerated.
6719 * NEWS, src/devices/grotty/grotty.man: Updated.
6721 2002-02-23 Werner LEMBERG <wl@gnu.org>
6723 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6724 get_line_arg): Honour input level.
6726 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6728 * font/*/*: Implement it in all font files.
6729 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6730 * font/devps/symbolmap: Updated.
6731 * font/devlj4/generate/text.map: Updated.
6732 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6733 * font/devdvi/generate/texmi.map: Updated.
6735 * font/devutf8/R.proto: Remove all `charXXX' entries.
6736 * font/devutf8/NOTES: Updated.
6738 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6741 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6743 * NEWS, man/groff_char.man: Updated.
6745 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6747 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6749 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6751 * src/roff/grog/grog.pl: Fix computation of $refer.
6753 2002-02-19 Werner LEMBERG <wl@gnu.org>
6755 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6756 `snprintf' and `vsnprintf'.
6758 * src/include/htmlindicate.h: Renamed to...
6759 * src/include/htmlhint.h: This.
6760 * src/include/Makefile.sub: Updated.
6761 * src/preproc/eqn/main.cc: Updated.
6763 2002-02-18 Werner LEMBERG <wl@gnu.org>
6765 * man/roff.man, man/groff_out.man, man/groff.man,
6766 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6767 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6769 * win32-diffs: Updated.
6771 2002-02-17 Werner LEMBERG <wl@gnu.org>
6773 * doc/Makefile (clean): Add *.eps.
6774 (MEMACROS): Removed.
6775 (TFLAG): New variable.
6778 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6780 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6782 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6784 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6786 * src/roff/troff/troff.man: Fix order of parameter description.
6790 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6792 Simplify image handling for grohtml.
6795 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6797 (html_text::dump_stack): Don't emit newline while debugging.
6798 (html_text::do_push) [DEBUGGING]: Print more info.
6799 (html_text::check_emit_text): Fix handling of <p>.
6800 * src/devices/grohtml/html.h: Updated.
6801 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6802 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6803 send its data to stderr also.
6805 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6806 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6807 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6809 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6811 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6812 is_inline_image): Removed.
6813 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6814 (graphic_start, graphic_end): Removed.
6815 * src/include/htmlindicate.h: Updated.
6816 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6817 (macroset_template): New global variable.
6818 (makeFileName): Use `macroset_template'.
6819 (write_end_image): Don't take a parameter.
6821 (write_start_image: Don't emit newline.
6822 (char_buffer::write_upto_newline): Updated.
6823 (char_buffer::skip_to_newline): Renamed to ...
6824 (char_buffer::skip_until_newline): This.
6826 (char_buffer::write_file_troff, char_buffer::write_file_html):
6828 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6829 (removeAllPages): Remove `DEBUGGING' conditionals.
6830 (addRegDef, dump_args): New functions.
6831 (char_buffer::do_html, char_buffer::do_image): Handle
6832 `www-image-template' command line variable.
6833 Add more debugging code.
6834 (addps4html): Removed.
6835 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6837 * src/preproc/eqn/main.cc: Include `ctype.h'.
6838 (suppress_html): Removed.
6840 (inline_equation): Use `html_begin_suppress' and
6841 `html_end_suppress'.
6842 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6843 (troff_output::start_picture, troff_output::finish_picture):
6845 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6846 (process_input_file): Updated.
6848 * src/roff/troff/div.cc (page_number): Set page number only if the
6849 `ps4html' register isn't defined.
6850 * src/roff/troff/input.cc (image_no): New external variable.
6851 (do_suppress): Use it.
6852 * src/roff/troff/node.h (suppress_node::image_id): New member.
6853 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6854 (suppress_node::suppress_node): Initialize `image_id' member.
6855 (suppress_node::same): Handle `image_id' also.
6856 (suppress_node::copy): Updated.
6857 (last_image_id): New global variable.
6858 (suppress_node::tprint): Use it.
6860 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6862 * tmac/pspic.mac (PSPIC): Fix html support.
6863 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6864 * tmac/www.tmac (www-image-template): Set up.
6865 (HTMLINDEX): Renamed to...
6867 (BODYCOLOR): Renamed to...
6869 (BACKGROUND): Renamed to...
6871 (URL): Change order of parameters for consistency.
6872 (MAILTO): Renamed to...
6874 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6875 (IMG, PIMG, MPIMG): This.
6876 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6878 (LINKS): Renamed to...
6880 (LINE): Renamed to...
6882 (NO-AUTO-RULE): Renamed to...
6884 (HTML-TL): Renamed to...
6886 (UL-BEGIN, UL-END): Renamed to...
6888 (DROPCAP): Renamed to...
6890 (TS, TE, EQ, EN): Provide default definitions.
6891 (www-make-unique-name): Updated.
6892 (HTML-IMAGE-INLINE): Fix typo.
6893 * tmac/groff_www.man: Updated.
6895 * doc/Makefile (homepage.html): Add option -r to grohtml.
6896 Use shortened image name.
6897 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6898 * doc/homepage.ms: Updated and extended.
6900 2002-02-14 Werner LEMBERG <wl@gnu.org>
6902 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6904 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6905 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6906 (tty_printer::put_color): Use it.
6907 (ttr_printer::end_page): Simplify.
6909 2002-02-13 Werner LEMBERG <wl@gnu.org>
6911 * tmac/groff_tmac.man: Moved to...
6912 * man/groff_tmac.man: This place.
6913 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6915 2002-02-12 Werner LEMBERG <wl@gnu.org>
6917 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6918 $(COMPILE.c) to not include groff's assert.h.
6920 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6922 * NEWS, src/drivers/grotty/grotty.man: Document it.
6924 2002-02-11 Werner LEMBERG <wl@gnu.org>
6926 * src/libs/snprintf/snprintf.c: Updated to latest version
6929 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6930 test whether there is `.]' also.
6931 Don't check for spaces after `.['.
6932 * src/roff/grog/grog.sh: Do the same.
6934 2002-02-10 Werner LEMBERG <wl@gnu.org>
6938 * src/libs/libgroff/illegal.cc: Renamed to ...
6939 * src/libs/libgroff/invalid.cc: This.
6940 (illegal_char_table): Renamed to ...
6941 (invalid_char_table): This.
6942 * src/libs/libgroff/Makefile.sub: Updated.
6943 * win32-diffs: Updated.
6945 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6946 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6947 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6948 font::load), src/preproc/eqn/main.cc (read_line, main),
6949 src/preproc/eqn/lex.cc (file_input::read_line),
6950 src/preproc/pic/lex.cc (file_input::read_line,
6951 simple_file_input::get, simple_file_input::peek),
6952 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6953 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6954 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6955 do_bib), src/preproc/tbl/main.cc (table_input::get),
6956 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6957 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6958 do_zero_width, read_request, encode_char, ps_get_line,
6959 transparent_file, get_char_for_escape_name, transparent_translate,
6960 asciify, input_char_description, read_string, set_string),
6961 src/roff/troff/env.cc (environment::add_html_tag),
6962 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6964 * src/include/lib.h: Updated.
6966 * src/preproc/eqn/eqn.cc: Removed.
6970 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6972 2002-02-09 Werner LEMBERG <wl@gnu.org>
6974 * doc/gnu.xpm: New image.
6975 * doc/Makefile (DOCS): Add homepage.ps.
6976 Add rules for converting xpm->png and xpm->eps.
6977 Use `gnu.{xpm,eps}' as image names.
6978 * doc/homepage.ms: Updated.
6980 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6982 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6983 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6984 Remove calls to `B1' and `B2'
6985 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6986 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6987 auxiliary variables for MARGIN-PNG-IMAGE.
6988 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6989 auxiliary macros for MARGIN-PNG-IMAGE.
6990 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6992 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6993 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6994 (DROPCAP): New macro to produce dropcap characters.
6995 (www-do-image): Renamed back to...
6996 (HTML-DO-IMAGE): This.
6997 Updated all callers.
6999 * doc/Makefile (gnubw.eps): Updated.
7000 * doc/homepage.ms: Updated.
7002 2002-02-08 Werner LEMBERG <wl@gnu.org>
7004 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7005 Added `linethick' to table in section `Style Variables'.
7007 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
7009 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7011 2002-02-07 Werner LEMBERG <wl@gnu.org>
7013 Adding options -C (compatibility mode) and -c (grotty's old output
7016 * src/roff/nroff/nroff.sh: Implement it.
7018 * NEWS, src/roff/nroff/nroff.man: Updated.
7020 * PROBLEMS: Document bison 1.32 bug.
7022 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7024 * src/roff/troff/node.cc (make_tfont): Define it earlier.
7025 * src/roff/troff/div.h: Add prototype for `end_diversions'.
7026 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7027 * src/roff/troff/env.h: Add prototype for `title'.
7029 Adding EBCDIC support to grotty.
7031 * src/devices/grotty/tty.cc (CSI): New macro.
7032 (SGR_*, tty_printer::put_color): Use it.
7034 2002-02-06 Werner LEMBERG <wl@gnu.org>
7036 Implementing color support in grotty. The new switch -c activates
7037 the old drawing scheme, disabling color at the same time. The new
7038 switch `-i' selects italic instead of underlining (SGR only).
7040 * src/devices/grotty/tty.cc (putstring): New define instead of
7041 `fputs'. Updated all callers.
7042 (old_drawing_scheme): New global variable.
7043 (COLOR_CHANGE): New enum value.
7044 (SGR_*): New defines containing color handling escape sequences.
7045 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7046 (glyph): New members `back_color_idx' and `fore_color_idx'.
7047 (glyph::order): Add COLOR_CHANGE.
7048 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7049 `is_underline', `is_bold', `cu_flag', `tty_colors'.
7050 New methods `make_underline', `make_bold', `color_to_idx',
7051 `change_color', `put_color'.
7052 (cu_flag): Moved into `tty_printer' class.
7053 (tty_printer::tty_printer): Initialize colors.
7054 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7055 tty_printer::draw, tty_printer::end_page): Handle colors also.
7056 (main): Add options `-c' and `-i'.
7058 * NEWS, src/devices/grotty/grotty.man: Updated.
7060 * src/include/errarg.h (errarg): Add support for `unsigned int'.
7061 * src/libs/libgroff/errarg.c: Implement it.
7063 * src/include/printer.h (printer): Add `change_color' method
7064 (currently used by grotty only).
7065 * src/libs/libdriver/printer.cc: Implement it.
7066 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7067 call to `pr->change_color'.
7069 * src/roff/troff/node.cc (troff_output_file::fill_color,
7070 troff_output_file::glyph_color): Call `do_motion'.
7072 * tmac/tty.tmac: Add color definitions.
7074 * src/roff/groff/groff.man: Minor fixes.
7076 2002-02-05 Bernd Warken <bwarken@mayn.de>
7078 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7079 it. This is a preparation for future changes.
7081 2002-02-05 Werner LEMBERG <wl@gnu.org>
7083 * src/roff/troff/input.cc (process_input_stack): Fix the case
7084 where leading spaces are followed by \f or \s; previously, an
7085 incorrect space width has been used.
7087 * doc/roff.man (quoted_char): Fix argument.
7088 (comment): Define string.
7090 2002-02-04 Larry Kollar <kollar@alltel.net>
7092 * doc/groff.texinfo: More fixes.
7094 2002-02-04 Werner LEMBERG <wl@gnu.org>
7096 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7097 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7098 `restore_compatibility' before `output_string' -- the LINE_STRING
7099 register now already contains proper switches from and to
7102 * man/groff_char.man: Add Euro symbol.
7103 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7104 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7105 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7108 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7110 (.texinfo.html): Add support for texinfo->html.
7112 2002-02-03 Werner LEMBERG <wl@gnu.org>
7114 Added three new requests `ds1', `as1', and `ami'. The former two
7115 are equivalent to `ds' and `as' with the difference that
7116 compatibility mode is saved on entry, switched off during string
7117 expansion, and restored on exit. The latter is the pendant to `dei'
7120 (do_define_string): Use `define_mode' and `calling mode'.
7121 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7122 end of string, respectively.
7123 (define_string, append_string): Use `calling_mode'.
7124 (define_nocomp_string, append_nocomp_string,
7125 define_string_indirect): New functions.
7126 (init_input_requests): Updated.
7127 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7129 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7130 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7131 mm macro package accesses this string register directly.
7132 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7134 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7137 2002-02-02 Larry Kollar <kollar@alltel.net>
7139 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7141 2002-01-31 Werner LEMBERG <wl@gnu.org>
7143 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7145 2002-01-31 Bernd Warken <bwarken@mayn.de>
7147 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7148 * man/groff_out.man: Revised and updated.
7150 2002-01-30 Bernd Warken <bwarken@mayn.de>
7152 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7153 out the unused `{' and `}' commands. Undefined by default.
7154 (IntArray): Make `data' private.
7155 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7156 new methods instead.
7157 (skip_line_D, skip_to_end_of_line): New functions.
7158 (get_D_fixed_args): Use `skip_line_D'.
7159 Changed to handle dummy odd arguments by ...
7160 (get_D_fixed_args_odd_dummy): This new function.
7161 (get_D_variable_args): Split some code into ...
7162 (get_possibly_integer_args): This new function.
7163 (send_draw): Use more `const'.
7164 (delete_current_env): New function.
7165 (position_to_end_of_args): Use `size_t'.
7167 (send_draw): Updated.
7168 (parse_D_command): Handle `c', `C', and `t' better.
7172 2002-01-29 Werner LEMBERG <wl@gnu.org>
7175 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7176 @Def...ListEnd which replaces @Def...x. This is necessary to get
7177 proper HTML output -- see the comment in the file for more
7181 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7183 Fixes to make color changes of 2002-01-21 work with grohtml.
7185 * src/devices/grohtml/post-html.cc (style): Updated.
7186 (html_printer): Remove unused methods.
7187 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7188 html_printer::special): Updated.
7189 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7190 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7191 Added some debugging code.
7192 (html_text::start_tag): Updated.
7193 (html_text::do_push): New method.
7194 (html_text::push_para): Call it.
7195 Add method for handling color.
7196 (html_text::do_color): Updated.
7197 (html_text::shutdown): Handle color.
7198 * src/devices/grohtml/html-text.h (tag_definition): New member
7202 2002-01-28 Werner LEMBERG <wl@gnu.org>
7204 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7206 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7208 Add two switches -a and -g to control the antialiasing bits for
7209 text and graphics, respectively.
7211 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7213 * src/devices/grohtml/grohtml.man: Document them.
7214 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7216 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7217 (setupAntiAlias): New function.
7218 (createAllPages): Updated.
7219 (scanArguments): Handle `-a' and `-g'.
7220 (main): Call `setupAntiAlias'.
7223 2002-01-27 Werner LEMBERG <wl@gnu.org>
7225 * doc/groff.texinfo (Def*): Call index function after deffn.
7227 * tmac/html.tmac: Call `nroff' request.
7229 2002-01-26 Larry Kollar <kollar@alltel.net>
7231 * tmac/groff_ms.man: Add some omissions.
7233 2002-01-25 Larry Kollar <kollar@alltel.net>
7235 * tmac/groff_ms.man: Typographical improvements.
7237 2002-01-25 Werner LEMBERG <wl@gnu.org>
7239 * doc/groff.texinfo: Updated version and copyright.
7240 * src/devices/grops/grops.man: Updated.
7242 * tmac/groff_tmac.man: Fix `ig' macro.
7244 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7246 Use `.ne' unconditionally everywhere.
7247 (TS): Only insert some vertical space. Doing a page break is no
7248 longer necessary due to the redefinition of the `ne' request.
7250 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7251 warning for unknown subcommands but parse and pass them to the
7254 2002-01-24 Werner LEMBERG <wl@gnu.org>
7256 * tmac/groff_www.man, NEWS: Fix typos.
7258 2002-01-21 Werner LEMBERG <wl@gnu.org>
7260 Complete revision of color support:
7262 Adapt programs to the new libdriver/input.cc.
7264 Color spaces are no longer converted to RGB but transferred as-is
7265 in the troff intermediate output format.
7267 Handle default color gracefully. troff now supports a `default'
7268 color (which can't be changed).
7270 grops will now use the proper color space functions if available.
7274 Note that currently grohtml doesn't handle colors properly. This
7277 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7278 (ui_to_a): New function.
7279 * src/include/lib.h: Updated.
7281 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7282 (color): Simplified; removed all `double' members and methods.
7283 A new array `components' now holds the color parameters.
7284 (color::is_default, color::get_components): New methods.
7285 (color::operator==, color:operator!=): New.
7286 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7287 to make access to the `components' array more comprehensible.
7288 * src/libs/libgroff/color.cc: Implement new color support.
7289 (atoh): Small fixes.
7290 (color::read_encoding): Simplified for new troff intermediate color
7292 (default_color): New global variable.
7294 * src/roff/troff/input.cc (default_symbol): New global variable.
7295 (lookup_color): Use it.
7296 (default_black): Removed.
7297 (do_glyph_color, do_fill_color): Simplified.
7298 (define_color): Handle default color.
7300 (do_if_request): Handle default color.
7301 * src/roff/troff/env.cc (environment::environment): Initialize
7302 colors with `default_color'.
7303 * src/roff/troff/node.cc (troff_output_file::put): Add method
7305 (troff_output_file::hex): Removed.
7306 (troff_output_file::fill_color, troff_output_file::glyph_color):
7307 Updated to include/color.h and libdriver/input.cc.
7309 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7310 fill color properly (identically to the outline color). \D'f...'
7311 doesn't work any more.
7312 All function calls to it updated.
7314 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7316 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7319 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7320 (ps_printer::sbuf_color): Make a real member instead of pointer.
7321 (ps_printer::fill_color, ps_printer::output_color): Removed.
7322 (ps_printer::ps_printer): Updated.
7323 (ps_printer::set_char): Ditto.
7324 (ps_printer::set_color): Use various color schemes.
7325 Use `put_color' method.
7326 (ps_printer::flush_sbuf): Don't set color.
7327 (ps_printer::fill_path): Take `environment' as parameter.
7328 Simplify color handling.
7329 (ps_printer::set_line_thickness): Renamed to ...
7330 (ps_printer::set_line_thickness_and_color): This (and updated).
7331 (ps_printer::set_color): Change second parameter from `complete'
7332 to `fill' which better describes what it does.
7333 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7334 and text in the right order.
7336 Remove branches for `f' and `F'; this is handled by
7338 * src/devices/grops/ps.h: Updated.
7339 * font/devps/prologue (FL): Redefined.
7340 ({F,C}r,k,g: New color functions (with and without filling).
7342 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7343 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7344 doc/groff.texinfo, NEWS: Updated.
7346 2002-01-20 Bernd Warken <bwarken@mayn.de>
7348 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7349 in this file for what has been changed.
7351 2002-01-19 Werner LEMBERG <wl@gnu.org>
7353 * test-groff: Fix GROFF_FONT_PATH.
7354 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7355 is read before .TH or .Dd is parsed.
7357 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7359 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7360 quadrant boundaries.
7362 2002-01-18 Werner LEMBERG <wl@gnu.org>
7364 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7367 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7369 * tmac/doc.common: Initialize %I register for the %I macro to
7370 avoid (harmless) warning.
7371 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7372 when in the SYNOPSIS section.
7374 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7376 * src/preproc/pic/lex.cc (get_token): Fix typo.
7378 2002-01-17 Werner LEMBERG <wl@gnu.org>
7380 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7382 2002-01-17 Larry Kollar <kollar@alltel.net>
7384 * tmac/groff_ms.man: Completely rewritten.
7386 2002-01-16 Werner LEMBERG <wl@gnu.org>
7388 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7390 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7392 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7394 (ps_printer::draw): Ditto.
7396 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7398 * tmac/groff_mdoc.man: Minor fixes.
7400 2002-01-13 Werner LEMBERG <wl@gnu.org>
7402 * man/groff_out.man: Some fixes.
7404 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7406 * doc/pic.ms: Fix typos.
7408 2002-01-12 Werner LEMBERG <wl@gnu.org>
7410 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7412 2002-01-10 Werner LEMBERG <wl@gnu.org>
7414 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7418 2002-01-09 Bernd Warken <bwarken@mayn.de>
7420 * man/groff_out.man: Revised.
7421 * man/roff.man: Minor fixes.
7422 * src/roff/troff/troff.man: Some reordering.
7424 2002-01-09 Werner LEMBERG <wl@gnu.org>
7426 * tmac/an-old.tmac: Add dummy macros for equation support.
7428 2002-01-07 Werner LEMBERG <wl@gnu.org>
7430 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7432 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7434 * tmac/groff_man.man: Small improvements.
7436 2002-01-07 Bernd Warken <bwarken@mayn.de>
7438 * man/groff_diff.man: Revised.
7440 2002-01-06 Werner LEMBERG <wl@gnu.org>
7442 * tmac/www.tmac: Remove extraneous backslash.
7444 2002-01-06 Bernd Warken <bwarken@mayn.de>
7446 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7448 2002-01-05 Werner LEMBERG <wl@gnu.org>
7450 Integrated groffer, contributed by Bernd Warken.
7452 * contrib/groffer/*: New.
7453 * Makefile.in, NEWS: Updated.
7455 2002-01-04 Werner LEMBERG <wl@gnu.org>
7457 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7458 registers defined in macro packages.
7459 Revising the ms part.
7461 2002-01-04 Larry Kollar <kollar@alltel.net>
7463 * doc/groff.texinfo: Add documentation for ms macros.
7465 2002-01-02 Werner LEMBERG <wl@gnu.org>
7467 First step in adding PS support for the Euro symbol. `eu' is the
7468 official Euro logo, `Eu' is a font-specific glyph variant.
7470 * font/devps/text.enc: Add `Euro' at position 9.
7471 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7472 * font/devps/symbolmap: Regenerated.
7476 2002-01-02 Bernd Warken <bwarken@mayn.de>
7478 * man/roff.man: Revised.
7480 2002-01-01 Bernd Warken <bwarken@mayn.de>
7482 * src/roff/groff/groff.man: Completely rewritten.
7484 2001-12-31 Werner LEMBERG <wl@gnu.org>
7486 * doc/Makefile: Updated.
7488 2001-12-30 Werner LEMBERG <wl@gnu.org>
7490 * tmac/www.tmac: Make all names of internal macros/registers/strings
7491 lowercase, and prepend `www-'.
7492 Other minor changes.
7493 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7495 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7497 Implement option `-b' in grohtml to set the HTML background colour.
7499 * src/devices/grohtml/post-html.cc (default_background): New global
7501 (html_printer::html_printer): Initialize `background' to
7502 `default_background'.
7503 (main): Implement option `-b'.
7505 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7507 * src/devices/grohtml/grohtml.man: Updated.
7508 * doc/Makefile (.ms.html): Use `-b'.
7509 * tmac/html.tmac: Don't set background color.
7511 Add new grohtml tag `.html-tl'.
7513 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7515 (title_desc::title_desc): Updated.
7516 (html_printer::troff_tag): Handle `.html-tl'.
7517 (html_printer::write_title): Use `with_h1'.
7518 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7519 (HTML-TL): New macro.
7521 Add support for unordered lists in HTML.
7523 * tmac/www.tmac (www-level): New auxiliary register.
7524 (www-level1, www-level2, www-level3): New auxiliary strings.
7525 (www-push-level, www-pop-level): New auxiliary macros
7526 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7530 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7531 (DEFAULT_VERTICAL_OFFSET): Removed.
7532 (IMAGE_BOARDER_PIXELS): Set to 0.
7533 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7534 (vertical_offset): Initialize with 0.
7535 (gsPaper): New global variable.
7536 (get_resolution): Scan for and return unsigned int.
7537 (get_papersize): New function to get paper length from devps/DESC.
7538 (determine_vertical_offset): New function.
7539 (createAllPages): Produce gray-level images and use proper page
7541 (createImage): Use `-quiet' option of pnmcrop.
7542 (addZ): Fix passing of `-Z'.
7543 (scanArguments): Fix handling of `-o'.
7544 (main): Call `determine_vertical_offset'.
7545 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7548 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7549 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7550 glyph descenders properly.
7552 * doc/homepage.ms: Include `gnubw.eps'.
7553 * doc/Makefile (gnubw.eps): New rule.
7554 (homepage.html): Depend on `gnubw.eps'.
7556 2001-12-25 Werner LEMBERG <wl@gnu.org>
7558 * src/roff/troff/input.cc (default_black): Fix return value.
7560 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7562 * tmac/doc-common (Dt): Change output of architecture strings.
7563 Do some syntax cleanup.
7564 * tmac/groff_mdoc.man: Updated.
7566 2001-12-23 Werner LEMBERG <wl@gnu.org>
7568 Adding an `itc' request (input line trap accepting \c).
7570 * src/roff/troff/env.h (environment): New member
7571 `continued_input_trap'.
7572 Make `do_input_trap' a friend function instead of `input_trap'.
7573 * src/roff/troff/env.cc (environment::environment,
7574 environment::copy): Updated.
7575 (environment::newline): Implement it.
7576 (do_input_trap): New function.
7577 (input_trap): Call `do_input_trap'.
7578 (input_trap_continued): New function.
7579 (init_env_requests): Updated.
7580 * src/roff/troff/TODO: Updated.
7582 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7585 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7587 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7589 * tmac/doc-common, tmac/doc-syms: Small updates.
7591 2001-12-22 Colin Watson <cjwatson@debian.org>
7593 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7595 2001-12-22 Bernd Warken <bwarken@mayn.de>
7597 * MANIFEST: New file.
7599 2001-12-22 Werner LEMBERG <wl@gnu.org>
7601 * src/preproc/grn/grn.man: Updated.
7603 2001-12-22 Solar Designer <solar@openwall.com>
7605 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7608 2001-12-19 Werner LEMBERG <wl@gnu.org>
7610 Implement a fallback character request `.fchar'.
7612 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7613 (is_fallback): New inline function.
7614 * src/roff/troff/input.cc (do_define_character): New function.
7615 (define_character): Call `do_define_character'.
7616 (define_fallback_character): New function.
7617 (init_input_requests): Add `fchar'.
7618 (charinfo::charinfo): Updated.
7619 (charinfo::set_macro): New argument to set `fallback' flag.
7620 * src/roff/troff/node.cc (make_glyph_node, make_node,
7621 node::add_char): Check `fallback' flag.
7622 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7624 2001-12-16 Werner LEMBERG <wl@gnu.org>
7626 * groff.texinfo: Document exact search algorithm for glyphs.
7628 2001-12-15 Werner LEMBERG <wl@gnu.org>
7630 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7631 the left side of $(MANPAGES) rule to make it always non-empty.
7633 2001-12-14 Werner LEMBERG <wl@gnu.org>
7635 * src/roff/troff/input.cc (default_black): Define default color
7636 `black' if not yet defined.
7638 2001-12-13 Werner LEMBERG <wl@gnu.org>
7640 Implement new string-valued register `.fn' to return the current
7641 real (internal) font name.
7643 * env.cc (environment::get_font_name_string): New function.
7644 (init_env_requests): Add `.fn' register.
7645 * env.h (environment): Updated.
7646 * node.cc (font_info): Make `get_font_name' a friend.
7647 (get_font_name): New function.
7650 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7652 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7654 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7656 2001-12-12 Werner LEMBERG <wl@gnu.org>
7658 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7660 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7662 * man/groff_diff.man: Adding documentation for \O.
7664 2001-12-10 Werner LEMBERG <wl@gnu.org>
7666 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7667 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7669 2001-12-09 Werner LEMBERG <wl@gnu.org>
7671 * man/roff.man: Revised.
7672 * src/roff/groff/groff.man: Replace man page references with a
7673 pointer to roff.man.
7675 2001-12-09 Bernd Warken <bwarken@mayn.de>
7677 * man/roff.man: Completely rewritten.
7679 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7681 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7683 2001-12-05 Werner LEMBERG <wl@gnu.org>
7685 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7687 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7688 order of initializers.
7691 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7693 * doc/groff.texinfo: Fix documentation of \O.
7695 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7696 html_text::do_table, html_text::do_emittext, html_text::do_para):
7697 Use `const' for first argument.
7698 (html_text::do_table): Use cast.
7699 * src/devices/grohtml/html-text.h: Updated.
7700 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7701 method for `const string &s'.
7702 * src/devices/grohtml/html.h: Updated.
7703 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7704 (ANCHOR_TEMPLATE): Modified.
7705 (manufacture_headings): New global variable to handle `-h' option.
7706 (is_subsection): Removed.
7707 (char_buffer::add_string): Add `const' to first argument.
7708 Protect against invalid string argument.
7709 Add method for `const string &s'.
7710 (text_glob): Completely redesigned.
7711 (page): Use `const' for strings and remove string length variable.
7712 (page::add_html): Removed.
7713 (page::add_end_encode): New member function.
7714 (to_unicode): Moved upwards.
7715 (title_desc, header_desc): Updated.
7716 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7718 (html_printer::is_bold, html_printer::make_bold): New member
7720 (html_printer::end_of_line): Updated.
7721 (generate_img_src, html_printer::do_auto_image,
7722 html_printer::do_title, html_printer::write_header,
7723 html_printer::determine_header_level, html_printer::do_heading,
7724 html_printer::do_linelength, html_printer::do_pageoffset,
7725 html_printer::do_indentation, html_printer::do_tempindent,
7726 html_printer::do_indentedparagraph, html_printer::do_break,
7727 html_printer::flush_sbuf, get_html_translation,
7728 html_printer::begin_page, html_printer::special): Rewritten to get
7729 rid of static string length limit.
7730 (html_printer::troff_tag): Added `.no-auto-rule'.
7731 (html_printer::flush_globs): Small fix.
7732 (html_printer::determine_space): Don't compute `space_width'.
7733 (html_printer::translate_to_html): Renamed to ...
7734 (html_printer::emit_html): This (with updates).
7735 (html_printer::write_header): Implement `-h' option.
7736 (html_printer::draw): Remove commented-out code. Handle `F'
7738 (html_printer::add_char_to_sbuf): Removed.
7739 (html_printer::add_to_sbuf): Rewritten.
7740 (html_printer::sbuf_continuation): Fixed.
7741 (html_printer::seen_backwards_escape, reverse,
7742 html_printer::remove_last_char_from_sbuf): Removed.
7743 (char_translate_to_html, str_translate_to_html): Removed.
7744 (html_printer::overstrike): New function member.
7745 (html_printer::set_char): Use it.
7746 (html_printer::do_body): New function member.
7747 (html_printer::~html_printer): Use it.
7748 (main): Handle `-h' option.
7750 * src/devices/grohtml/grohtml.man: Document -h switch.
7752 * src/preproc/html/pre-html.cc: Include searchpath.h
7753 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7754 (get_resolution): New function.
7755 (checkImageDir): Use `0777' permissions in mkdir()
7756 (write_start_image): Rewritten to use `\O[5...]'.
7757 (createImage, generateImages): Updated.
7758 (main): Handle `F' and `h' options.
7759 Use `get_resolution'.
7761 * src/roff/troff/input.cc (begin, end, image): Removed.
7762 (do_suppress): Take parameter.
7763 Handle modified syntax of `\O'.
7764 (token::next): Updated.
7765 (init_markup_requests): Removed.
7768 * src/roff/troff/div.h: Add declaration for begin_page().
7770 * tmac/color-html.tmac: Removed. Contents moved to...
7771 * tmac/html.tmac: Here. Set background color.
7772 * tmac/color.tmac: Removed. Contents moved to...
7773 * tmac/ps.tmac: Here.
7774 * tmac/www.tmac: Remove the title command when generating images
7776 (NO_AUTO_RULE): New macro.
7777 (HTML_DO_IMAGE): Use revised `\O' escapes.
7778 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7780 2001-12-02 Werner LEMBERG <wl@gnu.org>
7782 * tmac/groff_mdoc.man: Fix typo.
7784 2001-12-01 Colin Watson <cjwatson@debian.org>
7786 * man/roff.man: Fix typo.
7788 2001-11-29 Werner LEMBERG <wl@gnu.org>
7790 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7793 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7794 more than one argument to \D'f ...'.
7796 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7798 2001-11-28 Werner LEMBERG <wl@gnu.org>
7800 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7803 * tmac/groff_man.man: Minor cosmetic fix.
7805 2001-11-27 Werner LEMBERG <wl@gnu.org>
7807 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7808 tmac/groff_www.man: s/mwww/www/.
7810 2001-11-26 Werner LEMBERG <wl@gnu.org>
7812 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7813 * configure: Regenerated.
7814 * win32-diffs: Updated.
7816 * tmac/groff_mwww.tmac: Renamed to ...
7817 * tmac/groff_www.tmac: This.
7818 * tmac/mwww.tmac: Removed.
7819 * NEWS, tmac/Makefile.sub: Updated.
7821 2001-11-21 Werner LEMBERG <wl@gnu.org>
7823 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7824 Fix explanation of `\D' and `rt'.
7826 2001-11-20 Werner LEMBERG <wl@gnu.org>
7828 * tmac/an-old.tmac (an-header): Set header length equal to page
7830 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7834 2001-11-19 Werner LEMBERG <wl@gnu.org>
7836 * NEWS, man/Makefile.sub: Updated.
7838 2001-11-19 Bernd Warken <bwarken@mayn.de>
7840 * man/ditroff.man: New file.
7842 2001-11-17 Werner LEMBERG <wl@gnu.org>
7844 * man/groff_differences.man: Renamed to ...
7845 * man/groff_diff.man: This. Updated.
7846 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7848 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7849 * src/preproc/html/pushback.cc: This. Updated.
7850 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7851 * src/preproc/html/pushback.h: This.
7852 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7855 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7856 * src/libs/libgroff/htmlhint.cc: This.
7857 * src/libs/libgroff/Makefile.sub: Updated.
7859 * tmac/an-old.tmac (an-end): Fix page length.
7861 2001-11-16 Werner LEMBERG <wl@gnu.org>
7863 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7864 * man/Makefile.sub: Include groff_differences.man.
7865 * VERSION: Set to 1.18.
7866 * REVISION: Set to 0.
7868 2001-11-16 Bernd Warken <bwarken@mayn.de>
7870 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7871 the second dot (or ending macro name) to end a macro.
7872 * doc/groff.texinfo: Doc fix.
7874 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7876 * tmac/doc-common (doc-header): Handle very long document titles
7879 2001-11-16 Werner LEMBERG <wl@gnu.org>
7881 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7883 2001-11-15 Werner LEMBERG <wl@gnu.org>
7885 * src/roff/troff/troff.man: Revised and split into troff.man and...
7886 * man/groff_differences.man: New file.
7889 2001-11-13 Werner LEMBERG <wl@gnu.org>
7891 * tmac/an-old.tmac (TS, TE): New macros for table support.
7893 2001-11-12 Werner LEMBERG <wl@gnu.org>
7895 * src/include/lib.h: Provide a fix for emx to not include
7898 2001-10-27 Werner LEMBERG <wl@gnu.org>
7900 * src/roff/troff/input.cc (substring_macro): Fix computation of
7903 2001-10-20 Werner LEMBERG <wl@gnu.org>
7905 Undo change from 2001-08-28.
7907 * src/roff/troff/input.cc (have_input): New global variable.
7908 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7909 in compatibility mode.
7910 (process_input_stack): Use it.
7912 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7914 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7915 being handled as end-of-sentence characters,
7917 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7919 * src/roff/troff/input.cc (file_iterator): New members
7920 `suppress_newline_flag' and `seen_escape'.
7921 (file_iterator::next_file): Updated.
7922 (file_iterator::fill): Use it.
7923 (string_iterator): New member `suppress_newline_flag'.
7924 (string_iterator::fill): Set it.
7925 (get_color_element): Use MAX_COLOR_VAL.
7926 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7927 (no_fill): Don't set `env->ignore_next_eol'.
7928 (environment::newline): Handle `eol' tag properly.
7930 (environment::add_html_tag): Set `env->ignore_next_eol'.
7932 * src/roff/troff/env.h (environment): Updated.
7934 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7936 (html_printer::outstanding_eol): New member function.
7937 (html_printer::do_title): Use new functions.
7938 (html_printer::troff_tag): Test `id_eol_ce'.
7940 2001-10-10 Werner LEMBERG <wl@gnu.org>
7942 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7943 files work with -C also.
7945 2001-10-05 Werner LEMBERG <wl@gnu.org>
7947 * doc/pic.ms: Minor fix.
7948 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7949 as a valid command line switch.
7950 * src/devices/grohtml/post-html.cc (main): Ditto.
7952 * src/devices/grohtml/grohtml.man: Updated.
7953 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7955 2001-10-04 Werner LEMBERG <wl@gnu.org>
7957 Implementing color support in troff, pic, grops, and grohtml. These
7958 changes are based on a major patch provided by Gaius Mulley
7961 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7962 definitions with both hex values and fractions.
7964 New escapes: \m and \M for drawing and background color,
7965 respectively. This corresponds to the troff output commands `m'
7968 groff and troff accept command line switch `-c' to disable color
7969 output (which is automatically disabled in compatibility mode).
7971 New scaling indicator `f' for fractions (1f = 65536u).
7973 New conditional operator `m' to test for defined colors with `if'
7976 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7977 (or `outlined'), and `shaded' added to pic.
7979 * src/include/color.h: New file.
7980 * src/include/driver.h: Include it.
7981 * src/include/printer.h: Include color.h.
7982 (environment): New members `col' and `fill'.
7983 (printer): Remove `adjust_arc_center' member function.
7984 * src/include/Makefile.sub: Updated.
7986 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7988 Handle `m' and `DF' troff commands.
7989 * src/libs/libgroff/color.cc: New file.
7990 * src/libs/libgroff/Makefile.sub: Updated.
7992 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7994 (createImage): Fix computation of `y2'.
7996 (buffer::write_file_html): Remove calls to `stop'.
7998 * src/preproc/pic/common.h (common_output): New abstract function
7999 members `set_color', `reset_color', `get_last_filled', and
8000 `get_outline_color'.
8001 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8002 (object_spec): Add members `shaded' and `outlined'.
8003 * src/preproc/pic/output.h (output): `command' is now abstract.
8004 New function members `set_color', `reset_color', `get_last_filled',
8005 and `get_outline_color'.
8006 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8007 `outline[d]', and `shaded'.
8008 * src/preproc/pic/object.cc (output::command): Removed.
8009 (output::set_location): Moved to output.h.
8010 (graphic_object): Add protected members `outline_color' and
8012 Add member functions `set_outline_color', `get_outline_color', and
8014 (closed_object): Add member function `set_fill_color'.
8015 Add member `color_fill'.
8016 (graphic_object::print_text): Use `out->set_color' and
8018 (box_object::print, ellipse_object::print, circle_object::print,
8019 line_object::print, spline_object::print, arc_object::print): Ditto.
8020 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8021 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8022 `SHADED', making them `%left'.
8023 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8024 * src/preproc/pic/tex.cc (tex_output): New dummy function members
8025 `set_color', `reset_color', `get_last_filled', and
8026 `get_outline_color'.
8027 * src/preproc/pic/troff.cc (simple_output): New abstract function
8028 members `set_color', `reset_color', and `get_last_filled'.
8029 (simple_output::polygon, simple_output::circle,
8030 simple_output::ellipse): Use `get_last_filled'.
8031 (troff_output): New members `last_filled' and `last_outlined'.
8032 New function members `set_color', `reset_color', `get_last_filled',
8033 and `get_outline_color'.
8034 (troff_output::finish_picture): Use `reset_color'.
8035 (troff_output::set_fill): Test `last_filled'.
8036 * src/preproc/pic/pic.man: Updated.
8038 * src/roff/groff/groff.cc (main): Implement `-c' option.
8039 (synopsis, help): Updated.
8040 src/roff/groff/groff.man: Updated.
8042 * src/roff/troff/troff.h: Include color.h.
8043 (warning_type): Add WARN_COLOR.
8044 * src/roff/troff/env.h (environment): New members
8045 `{cur,prev}_{glyph,fill}_color'.
8046 New member functions `get_{prev_,}{glyph,fill}_color'.
8047 * src/roff/troff/env.cc: Initialize and implement them.
8048 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8049 Replace `NULL' with `0' everywhere for consistency.
8050 (lookup_color, default_black, do_glyph_color, do_fill_color,
8051 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8052 define_color): New functions.
8053 (token::next): Implement \M and \m escapes.
8054 (do_if_request): Implement `m' operator.
8056 (main): Implement `-c' option.
8057 (init_markup_requests): Add `defcolor' request.
8058 (warning_table): Add `color' warning.
8059 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8061 * src/roff/troff/node.cc (troff_output_file): New members
8062 `current_{page,glyph}color'. New member functions `put_hex',
8063 `glyph_color', and `fill_color'.
8064 (glyph_color_node::*, fill_color_node::*): Implement it.
8065 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8066 (parse_term): Add support for `f'.
8067 * src/roff/troff/troff.man: Updated.
8069 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8071 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8072 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8074 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8075 (tag_definition): Use `void *' for arg1.
8076 (html_text): New member functions `do_color' and `done_color'.
8077 Use `void *' for second parameter of `push_para' member function.
8078 New `push_para' member function with a single parameter.
8079 Use `char *' for parameter of `issue_table_begin' member funtion.
8080 New `issue_color_begin' member function.
8081 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8083 (html_text::issue_color_begin): New function.
8084 (html_text::issue_table_begin): Use `char *' for parameter.
8085 (html_text::start_tag, html_text::shutdown,
8086 html_text::check_emit_text): Updated.
8087 (html_text::push_para): Use `void *' for second parameter.
8088 Add same function with only one parameter.
8089 (html_text::do_*): Updated.
8090 (html_text::do_color, html_text::done_color): New functions.
8091 * src/devices/grohtml/post-html.cc (style): New member `col'.
8092 Mew member `style' with 6 parameters.
8093 (style::style, style::operator==): Updated.
8094 (html_printer::do_font): Use it.
8095 (html_printer::draw): Add dummy entry for `F'.
8096 (html_printer::set_char): Updated.
8097 * src/devices/grohtml/grohtml.man: Updated.
8099 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8100 trailing zeroes removed.
8101 (ps_printer): New members `sbuf_color', `fill_color', and
8103 Removed member `fill'.
8104 New member function `set_color'.
8105 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8106 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8107 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8109 * tmac/color-html.tmac, tmac/color.tmac: New files.
8110 * tmac/troffrc: Include them.
8111 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8112 * tmac/Makefile.sub: Updated.
8114 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8115 man/groff.man: Updated.
8116 * font/devps/prologue.ps: Define FC and CO functions.
8118 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8120 Fix incorrect cropping of images and incorrect handling of special
8121 characters. Fix handling of file names in \O.
8123 * src/include/geometry.h: New file.
8124 * src/libs/libgroff/geometry.cc: New file.
8125 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8127 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8129 (do_suppress): Updated.
8130 * src/roff/troff/node.cc: Include geometry.h.
8131 (troff_output_file::flush_tbuf): Fixed parameters to
8132 `check_output_limits'.
8133 (troff_output_file::check_charinfo): Ditto.
8134 (troff_output_file::determine_line_limits): Add support for `Da'
8137 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8138 Add new parameter `is_special' to decode special characters from
8140 (html_printer::do_title, html_printer::do_heading,
8141 html_printer::do_indentedparagraph,
8142 html_printer::translate_to_html, html_printer::special): Updated.
8144 2001-10-03 Werner LEMBERG <wl@gnu.org>
8146 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8147 Fix entry for config.h.
8148 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8149 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8150 * src/preproc/eqn/eqn.man: Document -d command line option.
8152 2001-09-27 Werner LEMBERG <wl@gnu.org>
8154 * man/groff.man: Use
8162 instead of the old code (`.ad .hy' after the table) to suppress
8163 incorrect hyphenation for grohtml output.
8165 2001-09-22 Werner LEMBERG <wl@gnu.org>
8167 * man/groff_font.man, man/groff_out.man: Minor fixes.
8169 2001-09-20 Werner LEMBERG <wl@gnu.org>
8171 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8172 Arnold Robbins <arnold@skeeve.com>).
8174 2001-09-09 Werner LEMBERG <wl@gnu.org>
8176 * configure: Regenerated with autoconf 2.52.
8178 * doc/groff.texinfo: Complete revision of indices.
8180 2001-09-07 Werner LEMBERG <wl@gnu.org>
8182 * doc/Makefile (clean): Updated to delete all indices.
8184 2001-09-05 Werner LEMBERG <wl@gnu.org>
8186 * src/roff/troff/troff.man: Remove superfluous line.
8188 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8189 given on the command line (or rather, if only the default warnings
8192 2001-09-03 Werner LEMBERG <wl@gnu.org>
8194 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8195 use .ne for TTY devices.
8197 2001-08-31 Werner LEMBERG <wl@gnu.org>
8199 * src/roff/troff/token.h, src/roff/troff/input.cc:
8200 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8202 2001-08-28 Werner LEMBERG <wl@gnu.org>
8204 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8205 * src/roff/troff/input.cc (token::next): Return
8206 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8208 (token::description): Updated.
8209 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8210 (token::add_to_node_list, token::process): Ignore
8211 TOKEN_TRANSPARENT_ESCAPE.
8213 2001-08-27 Werner LEMBERG <wl@gnu.org>
8215 * tmac/an-old.tmac: Fix `S' string.
8217 2001-08-26 Werner LEMBERG <wl@gnu.org>
8219 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8221 2001-08-25 Werner LEMBERG <wl@gnu.org>
8223 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8225 Many other minor fixes.
8227 * configure.ac: Add message at end to inform how to compile
8229 * configure: Regenerated.
8231 2001-08-24 Werner LEMBERG <wl@gnu.org>
8233 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8234 Updated to latest version of libc.
8236 2001-08-23 Werner LEMBERG <wl@gnu.org>
8238 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8239 Autoconf 2.50 and newer can handle this.
8240 * configure: Regenerated.
8242 2001-08-21 Werner LEMBERG <wl@gnu.org>
8244 * doc/pic.ms: Fix typo.
8245 * src/preproc/tbl/tbl.man: Document case of global options.
8247 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8249 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8250 handling of `CR' font.
8252 2001-08-20 Werner LEMBERG <wl@gnu.org>
8254 Use a config.h file.
8256 * src/include/lib.h: Include config.h.
8257 * All C files: Ditto (if necessary).
8258 * All C++ source and header files: Include lib.h first (if
8261 * src/include/config.hin: New file (autogenerated by autoheader).
8262 * stamp-h.in: New file.
8263 * configure.ac: Updated.
8264 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8265 (GROFF_ARRAY_DELETE): Simplified.
8266 * Makefile.sub (DISTCLEANFILES): Updated.
8267 Added targets for remaking config.status, config.hin, config.h,
8268 stamp-h.in, and stamp-h.
8269 * configure: Regenerated.
8271 2001-08-19 Werner LEMBERG <wl@gnu.org>
8275 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8277 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8278 (do_sprintf): Use snprintf().
8280 2001-08-18 Werner LEMBERG <wl@gnu.org>
8282 * src/libs/snprintf/*: Added an snprintf module written by Mark
8284 * src/libs/libgroff/Makefile.sub: Updated.
8285 * configure.ac: Add test for snprintf().
8286 * Makefile.in: Updated.
8287 * configure: Regenerated.
8289 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8292 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8294 * tmac/doc.tmac (Ex): New implementation.
8295 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8297 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8299 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8301 * tmac/groff_tmac.man: Updated.
8303 2001-08-13 Werner LEMBERG <wl@gnu.org>
8305 * src/preproc/tbl/tbl.man: Minor documentation update.
8307 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8309 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8310 * configure.ac: Add declaration test for gettimeofday().
8311 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8312 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8313 * configure: Regenerated.
8315 2001-08-11 Werner LEMBERG <wl@gnu.org>
8317 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8318 * configure.ac: Add declaration test for strcasecmp().
8319 * Makefile.in: Updated.
8320 * configure: Regenerated.
8321 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8322 this is necessary because groff's mkstemp.cc is C++.
8323 Add declaration conditionally for strcasecmp().
8325 2001-08-10 Werner LEMBERG <wl@gnu.org>
8327 Integrated pic2graph, contributed by Eric S. Raymond.
8329 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8331 * Makefile.in, NEWS: Updated.
8333 * src/preproc/tbl/tbl.man: Revised.
8335 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8337 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8339 2001-08-09 Werner LEMBERG <wl@gnu.org>
8341 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8344 2001-08-08 Paul Eggert <eggert@twinsun.com>
8346 * Makefile.sub (configure): Depend on configure.ac, not
8348 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8350 2001-08-07 Werner LEMBERG <wl@gnu.org>
8352 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8355 2001-08-06 Werner LEMBERG <wl@gnu.org>
8357 * src/roff/troff/troff.man: Improve documentation of -E option.
8359 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8361 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8364 2001-07-27 Werner LEMBERG <wl@gnu.org>
8366 * src/preproc/refer/refer.cc: Undo last change.
8367 * src/devices/grohtml/post-html.cc: Ditto.
8369 2001-07-26 Werner LEMBERG <wl@gnu.org>
8371 * src/preproc/refer/refer.cc: Include `lib.h'.
8372 * src/devices/grohtml/post-html.cc: Ditto.
8374 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8376 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8377 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8378 * Makefile.in: Comment updated.
8379 * configure: Regenerated.
8381 2001-07-25 Werner LEMBERG <wl@gnu.org>
8383 * src/preproc/pic/pic.cc: Removed.
8384 * src/preproc/pic/pic_tab.h: Removed.
8385 * src/preproc/refer/label.cc: Removed.
8387 * doc/Makefile (.ms.html): Don't use a file name extension in
8388 argument to grohtml's -I option.
8389 * Makefile.in (dist): Remove CVS directories.
8390 Call `distfiles' target.
8392 * src/devices/grohtml/grohtml.man: Add information about valid
8393 versions of pnmtopng.
8394 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8395 name instead of number.
8397 2001-07-24 Werner LEMBERG <wl@gnu.org>
8399 * doc/groff.texinfo: Minor fixes.
8401 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8403 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8406 2001-07-20 Werner LEMBERG <wl@gnu.org>
8408 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8409 * src/libs/libgroff/mkstemp.cc: New file.
8410 * src/libs/libgroff/mksdir.cc: New file.
8411 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8412 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8413 * src/libs/libgroff/Makefile.sub: Updated.
8414 * src/include/lib.h: Add mksdir() prototype.
8415 * src/include/posix.h: Define S_IXUSR if not yet defined.
8417 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8418 (createAllPages): Use mksdir() instead of current code.
8419 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8420 (main): [!HAVE_MKSTEMP]: Removed.
8422 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8423 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8425 * configure.ac: Add tests for stdint.h, sys/time.h, and
8427 Call new GROFF_xxx macros.
8428 * configure: Regenerated.
8429 * Makefile.in: Comments updated.
8431 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8433 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8434 instead of current code.
8435 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8436 * src/roff/groff/groff.cc (possible_command::insert_args): New
8438 (main): Use it for predriver handling instead of insert_arg().
8440 2001-07-19 Werner LEMBERG <wl@gnu.org>
8442 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8445 * src/include/posix.h: Define S_IWUSR if not yet defined.
8447 2001-07-18 Werner LEMBERG <wl@gnu.org>
8451 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8453 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8454 Some other minor fixes.
8455 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8457 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8459 Replace call to `troff' with `groff -Z' to make it aware of
8462 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8463 (troff_command, command_prefix): Removed.
8464 (alterDeviceTo): Use groff.
8465 (addZ): New function.
8466 (char_buffer::do_html): Use it.
8467 (scanArguments): Use TROFF_COMMAND.
8468 (findPrefix): Removed.
8470 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8472 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8474 * doc/pic.ms: Documentation fixes.
8476 2001-07-17 Werner LEMBERG <wl@gnu.org>
8478 Replace atexit() with global destructor.
8480 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8481 (xtmpfile_list_init): New global structure to deallocate
8482 xtmpfile_list on exit. Its destructor inherits most code from
8484 (remove_tmp_files): Deleted.
8485 (add_tmp_file): Simplified.
8487 2001-07-16 Werner LEMBERG <wl@gnu.org>
8489 Replace strdup() with strsave().
8491 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8492 (set_papersize): Use strsave() and a_delete.
8493 (main): Use strsave().
8494 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8495 removeAllPages): Use strsave() and a_delete.
8497 * configure.ac: Remove test for strdup.
8498 * Makefile.in: Comment updated.
8499 * configure: Regenerated.
8501 2001-07-15 Werner LEMBERG <wl@gnu.org>
8503 * win32-diffs: Updated.
8505 2001-07-14 Werner LEMBERG <wl@gnu.org>
8507 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8508 removing the old one.
8509 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8511 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8513 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8515 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8517 Merge -xwidth into -width. Add -xwidth functionality to -column
8520 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8522 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8523 string immediately following a leading dot starts with a valid mdoc
8525 Add similar code to the -column branch.
8526 (doc-Bl-usage): Updated.
8527 * groff_mdoc.man: s/-xwidth/-width/.
8529 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8531 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8532 running into centered or non-formatted text.
8534 2001-07-11 Werner LEMBERG <wl@gnu.org>
8536 Introduce short and long prefixes to have the selection at run-time
8537 whether there is a 8+3 limit for names of temporary files.
8539 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8540 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8541 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8543 (temp_init): New global structure to initialize above three
8545 (xtmptemplate): Use two parameters for long and short prefix.
8546 Simplify code use above three variables.
8547 (xtmpfile): Use long and short prefixes as parameters.
8548 * src/include/lib.h: Updated.
8550 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8552 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8553 (createAllPages, makeTempFiles): Updated.
8555 2001-07-09 Werner LEMBERG <wl@gnu.org>
8557 * REVISION: Increased to 3.
8559 Version 1.17.2 released
8560 =======================
8562 2001-07-07 Werner LEMBERG <wl@gnu.org>
8564 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8567 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8569 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8571 * tmac/groff_mdoc.man: Fix synopsis.
8573 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8575 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8576 Restore `doc-Pa-font'.
8578 2001-07-04 Werner LEMBERG <wl@gnu.org>
8580 * src/utils/indxbib/dirnamemax.c: Moved to ...
8581 * src/libs/libgroff/maxfilename.cc: Here.
8582 s/dir_name_max/file_name_max/.
8584 * src/include/lib.h: Add file_name_max.
8585 * src/utils/indxbib/indxbib.cc: Updated.
8586 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8589 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8591 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8593 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8594 REGION_TEMPLATE): New macros.
8595 (createAllPages, makeTempFiles): Use them.
8596 Include `nonposix.h'.
8597 (html_system): New function.
8598 (createAllPages, createImage): Use it.
8601 * tmac/www.tmac: Fix typos.
8603 2001-07-03 Werner LEMBERG <wl@gnu.org>
8605 * tmac/www.tmac: Disable hyphenation in normal text only if output
8607 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8608 * tmac/groff_mwww.man, NEWS: Updated.
8610 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8612 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8615 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8617 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8618 doc-display-ps-stack): Implement font and font size stack for
8621 2001-07-02 Werner LEMBERG <wl@gnu.org>
8623 * REVISION: Increased to 2.
8624 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8626 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8627 beginning of a line.
8628 * src/groff/grog/grog.sh: Ditto.
8630 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8632 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8635 2001-06-27 Werner LEMBERG <wl@gnu.org>
8637 Fix problems with preprocessor string for `man' program.
8639 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8640 Updated/added copyright.
8641 Moved Emacs's local variable to identify nroff mode to the end of
8642 the file; add local variable if missing.
8644 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8646 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8647 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8648 * configure: Regenerated.
8650 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8652 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8653 * configure: Regenerated.
8655 2001-06-24 Werner LEMBERG <wl@gnu.org>
8657 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8659 * doc/pic.ms: Fix typos.
8661 Version 1.17.1 released
8662 =======================
8664 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8666 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8667 * configure: Updated.
8669 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8671 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8673 * src/roff/troff/dic.cc (blank_line): Add html tag.
8675 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8677 * src/roff/troff/input.cc (do_suppress): Fix typo.
8679 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8681 Added two new options (-D and -I) to specify image names and a
8682 subdirectory to place the images in.
8684 Change syntax from \\Ox to \\O[x].
8686 * src/devices/grohtml/post-html.cc (main): Add options.
8688 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8689 Use `NULL' instead of `0' for null string pointers.
8690 (MAX_RETRIES): New macro.
8691 (lengthOfintToStr, intToStr, make_message): New functions.
8692 (makeFileName): Make function static.
8693 Implement -D and -I options.
8694 (checkImageDir): New function.
8695 (write_end_image, write_start_image): Use new syntax of \O.
8696 (createAllPages, removeAllPages): Implement -D and -I options. Use
8698 (createImage): Use make_message().
8699 (addps4html): Add guard for malloc().
8700 (usage, scanArguments): Updated.
8701 (makeTempFiles): Use mkstemp().
8702 (removeTempFiles): Use unlink().
8703 (findPrefix): Add guard for malloc().
8705 * src/roff/troff/input.cc (get_delim_file_name): New function to
8707 (do_suppress): Updated to parse new syntax.
8708 * src/devices/grohtml/grohtml.man: Updated.
8709 * tmac/www.tmac: Updated to new syntax.
8713 2001-06-15 Werner LEMBERG <wl@gnu.org>
8715 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8717 * src/devices/grohtml/grohtml.man: Minor improvements.
8719 2001-06-14 Werner LEMBERG <wl@gnu.org>
8721 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8723 2001-06-11 Werner LEMBERG <wl@gnu.org>
8725 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8726 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8728 * src/preproc/grn/grn.man: Add proper '\" string.
8730 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8732 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8734 2001-06-08 Werner LEMBERG <wl@gnu.org>
8736 Updated to autoconf 2.50.
8738 * configure.in: Renamed to...
8739 * configure.ac: This.
8740 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8741 (GROFF_OS390): Updated.
8742 * configure: Regenerated.
8744 2001-05-18 Werner LEMBERG <wl@gnu.org>
8746 * src/roff/troff/env.c, src/roff/troff/env.h,
8747 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8750 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8752 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8754 2001-05-16 Werner LEMBERG <wl@gnu.org>
8756 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8757 less than or equal zero; set it to 1 then.
8758 * src/roff/troff/node.h (node::node): Initialize `last'.
8760 2001-05-08 Werner LEMBERG <wl@gnu.org>
8762 * tmac/an-old.tmac: Make predefined strings work in compatibility
8764 Add troff version guard.
8765 * tmac/doc.tmac: Simplify version guard.
8767 2001-05-07 Werner LEMBERG <wl@gnu.org>
8769 The .ns and .rs requests are now honoured not only in the top-level
8770 but in all diversions (similar to UNIX troff).
8772 This change is based on a patch from Tadziu Hoffmann
8773 <hoffmann@usm.uni-muenchen.de>.
8775 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8776 (top_level_diversion): Remove `no_space_mode' member.
8777 * src/roff/troff/div.cc (diversion::diversion,
8778 top_level_diversion::top_level_diversion): Updated.
8779 (macro_diversion::output): Reset `no_space_mode'.
8780 (no_space, restore_spacing): Use `curdiv' unconditionally.
8781 (space_request, blank_line): Check `curdiv->no_space_mode'.
8782 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8783 `curdiv' unconditionally.
8784 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8787 2001-05-06 Werner LEMBERG <wl@gnu.org>
8789 Added two new requests `de1' and `am1' which are similar to `de' and
8790 `am' with the difference that compatibility mode is saved on entry,
8791 switched off during macro execution, and restored on exit.
8793 * src/roff/troff/input.h: Added two new special characters
8794 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8795 * src/roff/troff/input.cc (input_iterator): Added two member
8796 functions `save_compatible_flag' and `get_compatible_flag'.
8797 (input_stack): Ditto.
8798 (string_iterator): Ditto. Also add private member
8799 `saved_compatible_flag'.
8800 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8801 (calling_mode): New enumeration.
8802 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8803 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8804 (define_macro, define_indirect_macro, append_macro, ignore): Use
8806 (define_nocomp_macro, append_nocomp_macro): New functions.
8807 (init_input_requests): Updated.
8808 (do_request): Rename local variable `saved_compatible_flag' to
8809 `old_compatible_flag'.
8810 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8812 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8813 public and trap-invoked macros. As a consequence, the man macros
8814 work in compatibility mode also.
8816 2001-05-06 Solar Designer <solar@openwall.com>
8818 * Makefile.in: Use $(mandir).
8820 2001-05-06 Alexios Zavras <zvr@pobox.com>
8822 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8824 2001-05-05 Werner LEMBERG <wl@gnu.org>
8826 Added `.ns' number register: Returns 1 in no-space mode (if in
8827 top-level diversion), 0 otherwise.
8829 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8830 (init_div_requests): Updated.
8831 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8834 2001-05-04 Werner LEMBERG <wl@gnu.org>
8836 * src/roff/nroff/nroff.man: Improved documentation (especially
8839 2001-05-02 Werner LEMBERG <wl@gnu.org>
8841 Added `brp' request: This is \p as a request.
8843 * src/roff/troff/env.cc (environment::do_break): Add parameter
8845 (do_break_request): New function (was `break_request').
8846 (break_request): Calls `do_break_request'.
8847 (break_spread_request): New; calls `do_break_request'.
8848 (init_env_requests): Updated.
8849 * src/roff/troff/env.h: Updated.
8850 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8852 * REVISION: Increased to 1.
8853 * win32-diffs: Updated.
8855 2001-05-01 Werner LEMBERG <wl@gnu.org>
8857 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8858 * tmac/troffrc-end: Make it really work in compatibility mode.
8860 2001-04-27 Werner LEMBERG <wl@gnu.org>
8862 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8865 2001-04-22 Werner LEMBERG <wl@gnu.org>
8867 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8868 latest versions from glibc CVS archive.
8870 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8871 <c.zeelenberg@hccnet.nl>.
8873 2001-04-21 Werner LEMBERG <wl@gnu.org>
8875 * configure.in: Move check for mkstemp() to...
8876 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8877 * configure: Regenerated.
8879 * src/include/groff-getopt.h: Don't use variable names in
8882 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8883 * src/devices/grohtml/Makefile.sub,
8884 src/devices/grohtml/post-html.cc: Updated.
8886 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8888 * configure.in: Add special check for mkstemp().
8889 * src/libs/libgroff/tmpfile.cc: Use it.
8890 * src/utils/indxbib/indxbib.cc: Ditto.
8891 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8892 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8895 2001-04-20 Bruce Lilly <blilly@erols.com>
8897 `Version_string' as C++ object was not visible to linker from C
8899 Add `const' to `Version_string'.
8901 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8902 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8903 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8904 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8905 (scanArguments), src/preproc/refer/refer.cc (main),
8906 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8907 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8908 (main), src/devices/grohtml/post-html.cc (main),
8909 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8910 (main), src/utils/hpftodit/hpftodit.cc (main),
8911 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8912 (main), src/utils/lkbib/lkbib.cc (main),
8913 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8915 * src/roff/groff/pipeline.c: Add _UWIN.
8916 * src/include/nonposix.h: Ditto.
8918 2001-04-20 Werner LEMBERG <wl@gnu.org>
8920 * src/include/lib.h: Use HAVE_STRERROR.
8921 * src/roff/groff/pipeline.c: Ditto.
8922 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8923 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8924 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8925 * win32-diffs: Updated.
8926 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8928 2001-04-19 Werner LEMBERG <wl@gnu.org>
8930 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8931 instead of hardwired `"troff"'.
8932 (char_buffer::read_file): Remove unused variables.
8933 (char_buffer::write_file_troff): Ditto.
8934 (char_buffer::write_file_html): Ditto.
8935 (generateImages): Ditto.
8937 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8939 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8941 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8942 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8943 index_search_item::search1): Ditto.
8944 * src/roff/troff/node.h (width_list): Reorder members.
8945 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8946 (lookup_warning): Ditto.
8947 (prepend_string): Commented out.
8948 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8949 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8950 * src/preproc/tbl/main.cc (process_format): Ditto.
8951 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8953 * src/preproc/pic/pic.cc: Updated.
8954 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8955 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8956 * src/preproc/refer/command.cc (execute_command): Ditto.
8957 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8958 * src/preproc/refer/token.cc (lookup_token): Ditto.
8959 * src/preproc/soelim/soelim.cc: Ditto.
8960 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8961 (isHexDigit): Commented out.
8962 (pushBackBuffer::isString): Remove unused variable.
8963 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8965 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8966 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8968 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8969 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8970 lookup_paper_size): Ditto.
8971 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8972 (text_glob, element_list): Reorder members.
8973 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8975 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8976 return value to `void'.
8977 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8979 * src/devices/grohtml/html.h (simple_output::check_newline,
8980 simple_output::space_or_newline, simple_output::enable_newlines):
8982 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8984 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8985 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8986 output_ligatures, output_charset, read_map): Ditto.
8987 * src/utils/lookbib/lookbib.cc (main): Ditto.
8988 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8989 (do_file): Fix typo (`=' -> `==').
8990 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8991 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8993 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8995 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8996 Fix usage of GROFF_BIN_PATH.
8997 * src/roff/nroff/nroff.man: Updated.
8999 2001-04-18 Werner LEMBERG <wl@gnu.org>
9001 * NEWS: Fixing typos.
9004 Version 1.17 released
9005 =====================
9007 2001-04-17 Werner LEMBERG <wl@gnu.org>
9009 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9010 directory, not in $(srcdir).
9012 2001-04-16 Werner LEMBERG <wl@gnu.org>
9014 * doc/groff.texinfo: More info on conditionals.
9016 2001-04-15 Werner LEMBERG <wl@gnu.org>
9018 * doc/groff.texinfo: Added some info about groff internals.
9020 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9021 about missing special character only if the name is non-null.
9023 2001-04-14 Werner LEMBERG <wl@gnu.org>
9025 Removing the grohtml-old device driver which is now obsolete.
9027 * src/devices/grohtml-old/*: Removed.
9028 * font/devhtml-old/*: Removed.
9029 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9031 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9032 * test-groff (PATH): Updated.
9033 * tmac/Makefile.sub (NORMALFILES): Updated.
9034 * tmac/an-old.tmac: Remove special code for html-old device.
9035 Replace `html-or-html-old' register with `an-html'.
9036 * tmac/eqnrc: Updated.
9037 * tmac/html-old.tmac: Removed.
9038 * tmac/troffrc, tmac/troffrc-end: Updated.
9039 * tmac/www.tmac: Remove special code for html-old device.
9040 Replace `html-or-html-old' register with `www-html'.
9042 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9043 src/libs/libgroff/htmlindicate.cc (graphic_end),
9044 include/htmlindicate.h, src/preproc/grn/*.cc,
9045 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9046 single argument for consistency with rest of source code.
9048 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9050 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
9052 * src/roff/troff/troff.man: Fixing typos.
9054 2001-04-13 Werner LEMBERG <wl@gnu.org>
9056 * doc/pic.ms: Fixing many font switches.
9057 * doc/groff.texinfo: Fixes, additions.
9058 * MORE.STUFF: Updated.
9060 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
9062 * src/devices/grohtml/grohtml.man: Updated manual page regarding
9064 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9066 (removeTempFiles): New function to tidy up temporary files.
9067 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9068 Many fixes to do with the new inline suppress node and image regions
9070 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9071 (generate_img_src): New function.
9072 (html_printer::do_auto_image): Utilizes it.
9073 (do_heading, do_title): Include inline images within their contents.
9074 (html_printer::begin_page): Tidied up comments that are issued to
9075 the html output file.
9076 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9078 (text_glob::is_br): New method used by do_heading.
9079 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9080 equivalent diversion.
9081 * src/include/html-strings.h: Altered image tags to reflect the
9083 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9085 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9086 it is already inside a pic image. Only emit tags if the argument
9087 `-Tps:html' is present.
9088 * src/preproc/tbl/main.cc: Changes to reflect additional
9089 `html_end_suppress' parameter.
9090 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9091 emitted since the last eol tag was written.
9092 * src/roff/troff/env.h: New boolean `emitted_node'.
9093 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9094 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9095 * src/roff/troff/node.cc (check_charinfo): New method.
9096 (troff_output_file::determine_line_limits): Alterations to limit
9098 * tmac/www.tmac: Changes to reflect new suppress nodes.
9100 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9102 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9103 Escape the html_glyph in the buffer.
9104 (str_translate_to_html): Output the unescaped escaped_char.
9105 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9106 `frame=void', not `frame=none'. Add `border=0'.
9108 2001-04-12 Werner LEMBERG <wl@gnu.org>
9110 * PROBLEMS: Add some words on how to avoid wrapper macros.
9112 2001-04-11 Blake McBride <blake@florida-software.com>
9114 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9116 2001-04-11 Werner LEMBERG <wl@gnu.org>
9118 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9119 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9120 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9121 * Makefile.sub (DISTCLEANFILES): Here.
9123 * libs/libgroff/new.cc: Include `nonposix.h'.
9124 * win32-diffs: Updated.
9126 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9128 Added skeleton macro for defunct macros.
9130 Updated documentation.
9132 When inside displays, an empty input line warning should be
9133 suppressed. If another macro call is put inside a display,
9134 all subsequent empty lines found in that display caused a
9135 warning to be emitted.
9137 * tmac/doc.tmac (doc-defunct-macro): New macro.
9138 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9139 (doc-restore-global-vars): Fixed typo.
9140 (doc-empty-line): Check the `doc-display-depth' register to
9141 determine whether we are inside display or not.
9143 * tmac/doc-common: Removed `Or' and `Sf' registers.
9144 Moved obsolete `Ds' macro to doc.tmac.
9146 * tmac/groff_mdoc.man: Bump document date.
9147 Document `.Vt' under ``Variable Types''.
9148 Removed documentation for obsolete `.Or' macro.
9150 2001-04-10 Werner LEMBERG <wl@gnu.org>
9153 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9155 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9157 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9158 (usage): Add stream argument. Don't exit.
9159 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9160 Write --version output to stdout, not stderr.
9161 (usage): Add stream argument. Don't exit.
9162 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9163 (usage): Add stream argument. Don't exit.
9164 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9166 (usage): Add stream argument. Don't exit.
9167 (main): Write --help output to stdout, not stderr.
9168 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9169 (usage): Add stream argument. Don't exit.
9170 * src/devices/grops/ps.cc (main): Accept --help and --version.
9171 (usage): Add stream argument. Don't exit.
9172 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9173 (usage): Add stream argument. Don't exit.
9174 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9175 (main): Accept --help and --version.
9176 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9177 (main): Accept --help and --version.
9178 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9179 (scanArguments): Accept --help and --version.
9180 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9181 (main): Accept --help and --version.
9182 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9183 (usage): Add stream argument. Don't exit.
9184 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9186 (main): Accept --help and --version.
9187 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9188 (main): Accept --help and --version.
9189 * src/roff/groff/groff.cc (main): Accept --help and --version.
9190 (synopsis): Add stream argument.
9191 (help): Write --help output to stdout, not stderr.
9192 (usage): Add stream argument. Don't exit.
9193 * src/roff/grog/grog.pl: Accept --help and --version.
9195 * src/roff/grog/grog.sh: Accept --help and --version.
9196 * src/roff/nroff/nroff.sh: Accept --help and --version.
9197 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9198 (usage): Add stream argument. Don't exit.
9199 (main): Accept --help and --version.
9200 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9201 (usage): New function with stream argument, doesn't exit.
9202 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9203 (usage): New function with stream argument, doesn't exit.
9204 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9205 (usage): Add stream argument. Don't exit.
9206 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9207 (main): Accept --help and --version.
9208 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9210 (main): Accept --help and --version.
9211 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9212 (main): Accept --help and --version.
9213 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9214 (usage): Add stream argument. Don't exit.
9216 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9218 Fix indentation in SYNOPSIS.
9220 Updated to include changes of latest BSD mdoc version (basically,
9221 the only change is that `.Fn' and `.Fc' put a final semicolon after
9222 a function declaration in the SYNOPSIS section).
9224 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9225 (doc-in-synopsis-section): New variable. Updated all related
9227 (doc-indent-synopsis-active): New register.
9228 (Nd, Fn, Fo): Use it.
9229 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9230 `.Cd' with long argument line produces indented wrapped lines.
9231 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9232 undesirable line break to be output.
9233 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9235 (Fn, Fc): Add final `;' to output.
9236 (doc-save-global-vars, doc-restore-global-vars): Updated.
9237 * tmac/doc-common: Remove `Ex' register.
9239 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9242 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9244 * tmac/doc.tmac (Cd): Simplify code.
9245 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9247 2001-04-06 Werner LEMBERG <wl@gnu.org>
9249 Implement continuous underlining for nroff mode. To do that, a new
9250 request in the ditroff language has been added: `x u N' (N is 0
9253 \X and \Y are now transparent to end-of-sentence recognition.
9255 * src/include/printer.h (printer): Add `type' parameter to `special'
9257 * src/libs/libdriver/printer.cc (printer::special): Updated.
9258 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9260 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9261 specials of type `p'.
9262 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9263 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9264 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9265 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9266 (glyph::order): New method.
9267 (tty_printer::add_char): Use it.
9268 (tty_printer::special): New method.
9269 (tty_printer::end_page): Implement it.
9271 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9272 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9273 to set `no_init_string'.
9274 (special_node::tprint_start): Use it.
9275 (special_node::same, special_node::copy): Updated.
9276 (special_node::ends_sentence): New method.
9277 (troff_output_file::start_special): Add parameter to include
9278 inititialization of special conditionally.
9280 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9281 * src/roff/troff/env.cc (do_underline_special): New function.
9282 (environment::set_font): Use it.
9283 (do_underline): Use it. This was `underline()'.
9284 (underline): Call `do_underline()'.
9285 (continuous_underline): New function which calls `do_underline()'.
9286 (environment::newline): Use `do_underline_special()'.
9287 (init_env_requests): Updated.
9289 * NEWS, man/troff_out.man: Updated.
9291 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9293 * font/devutf8/R.proto: Fix code of 'shc'.
9295 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9297 Many fixes. Diag lists can now be nested also; additionally,
9298 `-compact' and `-offset' are supported.
9300 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9301 (doc-list-have-indent-stackXXX): A new register stack.
9302 (doc-have-diag-list): Removed.
9303 (Bl): Use `doc-list-have-indent-stackXXX'.
9305 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9306 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9307 (doc-set-vertical-and-indent): Ditto.
9308 (doc-next-list-depth): Removed.
9309 (doc-increment-list-stack): Updated.
9310 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9311 `doc-next-list-depth'.
9312 (doc-end-list, doc-end-column-list): Don't use
9313 `doc-increment-list-stack'.
9314 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9315 (doc-save-global-vars, doc-restore-global-vars): Updated.
9316 * tmac/doc-common: Updated.
9317 * tmac/groff_mdoc.man: Updated.
9320 2001-04-02 Werner LEMBERG <wl@gnu.org>
9322 * src/devices/grotty/grotty.man: Fix grammatical error.
9324 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9326 Remove .Ld from mdoc package; replace it with special handling of
9329 * tmac/doc-common: Remove `Ld' register.
9330 Uncomment `doc-volume-ds-*' strings.
9331 Remove `doc-operating-system-default'.
9333 * tmac/doc-syms (Ld): Removed.
9334 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9338 * tmac/groff_mdoc.man: Many fixes and updates.
9340 2001-03-29 Werner LEMBERG <wl@gnu.org>
9342 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9343 Bond <tkb@tkb.mpl.com>.
9344 * tmac/www.tmac: Save compatibility mode.
9346 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9348 * tmac/groff_mdoc.man: Many fixes.
9350 2001-03-28 Werner LEMBERG <wl@gnu.org>
9352 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9355 2001-03-27 Werner LEMBERG <wl@gnu.org>
9357 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9358 diversion. This fixes overlong tags.
9360 2001-03-26 Werner LEMBERG <wl@gnu.org>
9362 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9363 * tmac/doc-syms: Fix error messages.
9364 * tmac/an-old.tmac: Remove incorrect double backslashes.
9366 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9368 * tmac/Makefile.sub: Strip mdoc.local also
9369 * tmac/strip.sed: Fixed.
9371 2001-03-24 Werner LEMBERG <wl@gnu.org>
9373 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9374 selecting the font size.
9375 * tmac/groff_mdoc.man, NEWS: Document it.
9377 2001-03-23 Werner LEMBERG <wl@gnu.org>
9379 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9381 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9382 argument to restore previous font family.
9383 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9385 * doc/groff.texinfo: More fixes and additions (mainly for font
9386 manipulating commands).
9388 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9389 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9390 * tmac/Makefile.sub, NEWS: Updated.
9392 2001-03-23 Werner LEMBERG <wl@gnu.org>
9394 Replaced mdoc implementation. The new version is `state of the
9395 art', using almost all new features of groff 1.17 -- it won't run
9396 with older versions.
9398 * tmac/doc.tmac: Completely rewritten.
9399 * tmac/doc-common: Ditto.
9400 * tmac/doc-nroff: Ditto.
9401 * tmac/doc-ditroff: Ditto.
9402 * tmac/doc-syms: Ditto.
9403 * tmac/mdoc.local: New file.
9404 * tmac/groff_mdoc.samples.man: Replaced with ...
9405 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9406 * tmac/strip.sed: Updated.
9407 * tmac/Makefile.sub: Updated.
9410 * tmac/groff_man.man: Add `man.local' to the FILES section.
9412 2001-03-22 Werner LEMBERG <wl@gnu.org>
9414 * doc/groff.texinfo: Added many @noindent.
9415 Replaced @end_Example -> @endExample.
9416 Added info whether registers are r/o.
9417 Many other additions and fixes.
9419 2001-03-21 Werner LEMBERG <wl@gnu.org>
9421 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9422 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9423 Improved @Def* macros: Now the exact syntax of request, register,
9424 and escapes is shown.
9425 Added macros for parentheses and brackets to be used in @Def*.
9426 Many fixes and improvements of the documentation.
9428 2001-03-20 Werner LEMBERG <wl@gnu.org>
9430 * doc/groff.texinfo: Added new index: `st' (for strings).
9431 Added macros @Defstr(x).
9432 Added macro @Example (adding @group).
9433 Other minor improvements.
9435 2001-03-19 Werner LEMBERG <wl@gnu.org>
9437 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9438 `rq' for requests. `fn' is no longer used.
9439 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9442 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9443 number with name of man page.
9445 2001-03-19 Larry Kollar <kollar@alltel.net>
9447 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9450 2001-03-19 Werner LEMBERG <wl@gnu.org>
9452 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9453 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9454 * src/devices/grohtml/grohtml.man: Fixing typos.
9456 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9458 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9459 * tmac/groff_mwww.man: Remove .LINE macro
9460 * tmac/www.tmac (LINE): Add `.ti'.
9462 * src/devices/grohtml/post-html.cc (html_printer): New member
9464 (html_printer::emit_raw): Use it.
9465 (html_printer::do_linelength): Ditto.
9466 (html_printer::do_pageoffset): Ditto.
9467 (html_printer::do_indentation): Ditto.
9468 (html_printer::do_tempindent): Ditto.
9469 (html_printer::do_break): Ditto.
9470 (html_printer::begin_page): Ditto.
9471 (html_printer::do_indentedparagraph): New function.
9472 (html_printer::troff_tag): Handle `.ip'.
9473 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9474 Add `<td width=...>' handling.
9475 (html_text::do_table): Add parameter.
9476 (html_text::do_indent): Updated.
9477 * src/devices/groohtml/html-text.h: Updated.
9479 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9481 Introduced simple html tables to implement indentation.
9483 * src/devices/grohtml/html.h (word, word_list): New structures.
9484 (simple_output): Use it.
9485 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9486 (html_printer): Improve indentation handling.
9487 (html_printer::emit_raw): Set `in_table' element. Handle
9489 (html_printer::write_header): Move conditional downwards.
9490 Don't allow whitespace in tags.
9491 (html_printer::do_linelength): Handle line length and indentation
9493 (html_printer::do_pageoffset): Handle indentation conditionally.
9494 (html_printer::do_indentation): Ditto.
9495 (html_printer::do_tempindent): New function member.
9496 (html_printer::do_fill): Take care of indentation.
9497 (html_printer::do_flush): Finish table.
9498 (html_printer::do_links): Ditto.
9499 (html_printer::do_break): New function for handling `.br' and `.ti'.
9500 (html_printer::troff_tag): Use it.
9502 (html_printer::flush_globs): Fix.
9503 (html_printer::flush_page): Finish table.
9504 (html_printer::html_printer): Fix error message. Set up
9506 (html_printer::add_to_sbuf): Remove special handling of character
9508 (to_unicode): Remove `stop()'.
9509 (html_printer::write_title): Cleanup.
9510 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9511 (html_printer::~html_printer): Flush text and end the line.
9513 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9514 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9516 (html_text::start_tag): Disable newlines.
9517 (html_text::table_is_void): New function.
9518 (html_text::issue_table_begin): Ditto.
9519 (html_text::issue_table_end): Ditto.
9520 (html_text::push_para): Better table handling.
9521 (html_text::do_indent): New function.
9522 (html_text::do_table): Ditto.
9523 (html_text::done_table): Ditto.
9524 (html_text::do_tt): Handle PRE_TAG.
9525 (html_text::is_in_table): New function.
9526 (html_text::check_emit_text): Handle tables.
9527 (html_text::do_emittext): Use `nl()'.
9528 (html_text::do_para): Handle table.
9529 (html_text::remove_def): New function.
9530 * src/devices/grohtml/output.cc (word, word_list): Implement
9532 (simple_output::end_line): Flush last word.
9533 (simple_output::simple_comment): Ditto.
9534 (simple_output::begin_comment): Recoded.
9535 (simple_output::end_comment): Ditto.
9536 (simple_output::comment_arg): Removed.
9537 (simple_output::check_newline): Improve test and flush last word.
9538 (simple_output::space_or_newline): Improved.
9539 (simple_output::write_newline): Replaced with...
9540 (simple_output::nl): This.
9541 (simple_output::put_raw_char): Flush last word.
9542 (simple_output::check_space): Removed.
9543 (simple_output::put_translated_string): Ditto.
9544 (simple_output::put_string): Simplified.
9545 (simple_output::put_number): Updated.
9546 (simple_output::put_float): Ditto.
9547 (simple_output::put_symbol): Removed.
9548 (simple_output::enable_newlines): Add `check_newline()'.
9549 (simple_output::flush_last_word): New function.
9551 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9552 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9554 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9555 * tmac/an-old.tmac (TP): Ditto.
9557 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9559 * mdate.sh: Make it POSIX compliant.
9561 2001-03-09 Werner LEMBERG <wl@gnu.org>
9563 Added the `return' request to end a macro immediately. It simply
9564 pops iterators from the input stack until a macro iterator is found.
9566 * src/roff/troff/input.cc (input_iterator::is_macro,
9567 macro_iterator::is_macro): New member.
9568 (input_return_boundary): New class to signal an immediate return
9570 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9572 (input_stack::clear): Use it.
9573 (input_stack::pop_macro): New function.
9574 (while_request): Use `is_return_boundary()'.
9575 (return_macro_request): New function.
9576 (init_input_requests): Use it.
9578 * src/roff/troff/TODO: Updated.
9579 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9581 2001-03-08 Werner LEMBERG <wl@gnu.org>
9583 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9586 2001-03-07 Werner LEMBERG <wl@gnu.org>
9588 Make `\B' more rigid.
9590 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9592 (get_number_rigidly): New function.
9593 * src/roff/troff/input.cc (do_expr_test): Use it.
9594 * src/roff/troff/token.h: Updated.
9596 * src/roff/troff/request.h: Fix typo (init_html_request ->
9597 init_markup_request).
9599 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9601 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9602 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9603 are now `.begin', `.end', `.image'.
9605 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9606 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9607 Use add_char_to_sbuf().
9608 (to_unicode): New function.
9609 (char_translate_to_html): Changing type of `ch' parameter.
9611 (html_printer::~html_printer): Comment out doctype string.
9612 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9613 instead of `.html-end'.
9614 (write_start_image): Use `.begin' and `.image' instead of
9615 `.html-begin' and `.html-image'.
9616 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9617 (html_begin): Renamed to ...
9619 (html_end): Renamed to ...
9621 (html_image): Renamed to ...
9623 (init_html_requests): Renamed to ...
9624 (init_markup_requests): This.
9625 * tmac/www.tmac: Updated.
9627 2001-02-28 Bram <bram@avontuur.org>
9629 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9632 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9634 * doc/meref.me: Fixing some typos.
9636 2001-02-16 Werner LEMBERG <wl@gnu.org>
9638 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9639 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9640 * src/roff/troff/node.h: Updated.
9642 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9644 * tmac/groff_tmac.man: Fix typo.
9646 2001-02-16 Werner LEMBERG <wl@gnu.org>
9648 Fixing a bug which prevented proper end-of-sentence recognition
9649 between an `unformatted' box and the following text. As a
9650 consequence, vertical line distances are no longer preserved in
9651 boxes after a call to `.unformat' -- because boxes aren't
9652 line-oriented (contrary to diversions), this doesn't make sense
9655 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9657 (vertical_size_node::set_unformat_flag): New method.
9658 * src/roff/troff/node.hh: Updated.
9659 * src/roff/troff/input.cc (word_space_node::reread,
9660 hmotion_node::reread): Reset `unformat' flag after usage.
9661 (unformat_macro): Append only if `set_unformat_flag()' returns
9663 * src/roff/troff/troff.man: Updated.
9665 2001-02-15 Werner LEMBERG <wl@gnu.org>
9667 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9668 documentation of `asciify' and `unformat' requests.
9670 2001-02-13 Werner LEMBERG <wl@gnu.org>
9672 Redesigned the `unformat' request. It is no longer connected with
9673 `asciify' but rather uses new `reread()' methods if the `unformat'
9674 flag is set. Additionally, the handling of space characters after
9675 unformatting has been fixed so that they retain their width.
9677 * src/roff/troff/node.h (width_list): New structure to store
9678 original widths of spaces.
9679 (node): Added `unformat' member.
9680 Replaced `num_spaces' variable with `orig_width' list.
9681 * src/roff/troff/node.cc (*node::asciify,
9682 asciify_reverse_node_list): Removed `unformat_only' flag and related
9684 (word_space_node::asciify, word_space_node::word_space_node): Use
9686 (word_space_node::~word_space_node): New destructor.
9687 (word_space_node::copy): Updated to handle `orig_width'.
9688 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9689 (*node::merge_space): Update `orig_width' list if necessary.
9690 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9691 * src/roff/troff/enc.cc (environment::space_newline): Use
9693 (environment::space): Added method to handle space width and
9694 sentence space width as parameters. Use `width_list'.
9695 (environment::make_tab_node): Updated.
9696 * src/roff/troff/env.h: Updated.
9697 * src/roff/troff/input.cc (word_space_node::reread,
9698 unbreakable_space_node::reread, hmotion_node::reread): New methods
9699 to handle nodes specially if `unformat' flag is set.
9700 (do_asciify_macro): Renamed back to ...
9701 (asciify_macro): This.
9702 (unformat_macro): New implementation to simply set the `unformat'
9705 * MORE.STUFF: Added more info about deroff.
9707 2001-02-08 Werner LEMBERG <wl@gnu.org>
9709 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9710 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9711 and `add_self()' methods to avoid hyphenation. For example, the
9712 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9713 soft hyphen after `foo'. Now the hyphen list is correctly
9714 `foo<ignore><ignore>bar'.
9716 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9718 * tmac/groff_tmac.man: Fix `BIR' macro.
9720 2001-02-04 Werner LEMBERG <wl@gnu.org>
9722 A new escape sequence `\:', inserting a zero-width break point.
9724 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9725 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9727 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9729 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9730 and `asciify()' methods.
9731 * src/roff/troff/node.cc (space_node::space_node): Updated.
9732 (space_node::asciify): Handle `was_escape_colon'.
9733 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9735 Handle `\~' similar to other comparable requests.
9737 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9739 (token::next): Move creation of an unbreakable_space_node to...
9740 (token::add_to_node_list): Here.
9742 Fix a bug which sometimes prevented hyphenation of words connected
9743 with `\~' or `\ ' (and other escape sequences handled as
9744 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9745 (after a call to the `unformat' request).
9747 * src/roff/troff/env.h (environment::possibly_break_line,
9748 environment::hyphenate_line): Introducing `start_here' parameter.
9749 * src/roff/troff/env.cc (environment::space_newline,
9750 environment::space): Use it.
9751 (environment::possibly_break_line, environment::hyphenate_line):
9753 * src/roff/troff/input.cc (process_input_stack): Use it.
9754 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9755 space_char_hmotion_node, overstrike_node): Add
9756 `get_hyphenation_type()' method.
9757 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9758 if `unformat_only' is active.
9760 2001-01-30 Werner LEMBERG <wl@gnu.org>
9762 Implemented new read-only number register `.linetabs' which
9763 returns 1 if in line-tabs mode, 0 otherwise.
9765 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9766 * src/roff/troff/env.cc (get_line_tabs): New function.
9767 (init_env_requests): Use it.
9768 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9770 * VERSION, REVISION: Changing to 1.17.0.
9772 2001-01-28 Werner LEMBERG <wl@gnu.org>
9774 Fixed a bug which prevented hyphenation of words which are finished
9777 * src/roff/troff/token.h (token): Add enum type
9778 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9779 * src/roff/troff/input.cc (token::next, token::description,
9780 get_line_arg, token::add_to_node_list, token::process): Use it.
9782 2001-01-27 Werner LEMBERG <wl@gnu.org>
9784 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9785 * src/roff/troff/div.cc (do_divert): Use it.
9787 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9789 2001-01-25 Werner LEMBERG <wl@gnu.org>
9791 Adding the `linetabs' request. If set, tab distances are not
9792 computed relative to the input line but relative to the output line.
9794 * src/roff/troff/env.h (environment): New member `line_tabs'.
9795 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9796 (environment::environment, environment::copy): Updated.
9797 (environment::distance_to_next_tab): Use `line_tabs'.
9798 (init_env_requests): Register request.
9799 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9802 2001-01-24 Werner LEMBERG <wl@gnu.org>
9804 Introducing a new read-only register `.int' which is set to a
9805 positive value if the last output line is interrupted (i.e., if it
9808 * src/roff/troff/env.cc (init_env_requests): Add it.
9809 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9811 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9813 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9814 * src/preproc/html/pre-html.cc (findPrefix): New function which
9815 generates the troff executable name via the system prefix.
9816 * src/preproc/eqn/main.cc: Modified warning message.
9818 2001-01-23 Werner LEMBERG <wl@gnu.org>
9820 troff's `box' and `boxa' requests didn't preserve temporary
9823 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9824 `saved_target_text_length' members.
9825 * src/roff/troff/div.cc (do_divert): Use them.
9827 Tabs (but not yet leaders and fields) are now handled correctly by
9830 * node.h (hmotion_node): Add field `was_tab'.
9831 * env.cc (environment::make_tab_node): Set it.
9832 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9834 Added new request `unformat' which will, contrary to `asciify',
9835 preserve font information after unformatting (i.e., only nodes
9836 dealing with horizontal space are converted back to input
9839 * input.cc (asciify_macro): Renamed to ...
9840 (do_asciify_macro): this, having a new parameter `unformat_only'.
9841 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9842 (init_input_requests): Added `unformat'.
9843 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9844 parameter to control asciification process.
9845 * node.h (*_node::asciify): Ditto.
9846 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9848 2001-01-20 Werner LEMBERG <wl@gnu.org>
9850 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9852 2001-01-18 Werner LEMBERG <wl@gnu.org>
9854 * tmac/ps.tmac: Remove call of psold.tmac.
9855 * tmac/psold.tmac: Comment updated.
9856 * tmac/psnew.tmac: Removed since no longer needed.
9857 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9859 * font/devutf8/R.proto: Adding `shc' glyph.
9860 * font/devutf8/NOTES: Updated.
9862 * test-groff: Updated.
9864 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9866 First cut of the new html device driver. Changes to pre-html and
9867 the new grohtml are too numerous to be documented here.
9869 Stuff related to `html' has been renamed to `html-old' and `html2'
9870 stuff has been renamed to `html' (including directories). The new
9871 html device driver is therefore invoked as `-Thtml'.
9873 Added new `\O' escape to suppress output (needed by html driver).
9875 Added functions and code to pass info about input-level commands
9876 (`.in', `.fl', etc.) to html driver.
9878 Three new functions (.html-begin, .html-end, and .html-image) for
9879 better html handling: `html-begin' will execute the remaining line
9880 if at the outermost nesting level, increasing an internal counter.
9881 `html-end' does the same but decreases the internal counter.
9882 `html_image' puts its arguments into a special node (suppress_node)
9883 to define an image region.
9885 The `output' request has been removed.
9887 * tmac/html-tags.tmac: Removed.
9888 * tmac/arkup.tmac: Updated and renamed to ...
9889 * tmac/www.tmac: New file.
9890 * tmac/markup.tmac Updated and renamed to ...
9891 * tmac/mwww.tmac: New file.
9892 * tmac/Makefile.sub: Updated.
9893 * tmac/an-old.tmac: Updated.
9894 * tmac/eqnrc: Updated.
9895 * tmac/groff_man.man
9896 * tmac/groff_markup.man: Updated and renamed to ...
9897 * tmac/groff_mwww.man: New file.
9898 * tmac/groff_tmac.man: Updated.
9899 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9900 * tmac/html.tmac: Updated and renamed from html2.tmac.
9901 * tmac/pspic.tmac: Updated html support.
9902 * tmac/s.tmac: Added html output support.
9903 * tmac/troffrc, tmac/troffrc-end: Updated.
9905 * Makefile.in, doc/Makefile: Updated.
9906 * doc/groff.texinfo: Added info about new `\O' escape.
9907 * doc/homepage.ms: Use `MAILTO' macro.
9909 * font/devhtml/DESC.proto: Add `C' font.
9910 * font/devhtml/Makefile.sub: Updated.
9911 * font/devhtml/R.proto: Minor fixes.
9912 * font/devhtml-old/Makefile.sub: Updated.
9914 * src/devices/grohtml-old/Makefile.sub: Updated.
9916 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9918 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9919 graphic_start): Add `inline' parameter. Update.
9920 (html_end_suppress, graphic_end): Update.
9922 * src/include/html-strings.h: New file.
9923 * src/include/htmlindicate.h: Comments updated.
9924 * src/include/printer.h: Updated.
9926 * src/preproc/eqn/main.cc (do_file, main): Updated.
9927 * src/preproc/pic/troff.cc (troff_output::start_picture,
9928 troff_output::finish_picture): Updated.
9929 * src/preproc/tbl/main.cc (process_input_file): Updated.
9931 * src/roff/groff/groff.cc (main): Updated.
9932 Pass device arguments to predrivers also.
9933 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9934 * src/roff/troff/env.h (environment): Updated.
9935 New elements `need_eol' and `ignore_next_eol' (for html output).
9936 * src/roff/troff/env.cc (environment::environment): Add initializers
9937 for `need_eol' and `ignore_next_eol'.
9938 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9940 (point_size, fill, no_fill, center, right_justify, line_length,
9941 indent, temporary_indent, break_request, handle_tab): Use
9943 (set_tabs): Use `add_html_tag_tabs()'.
9944 (environment::add_html_tag): Updated.
9945 (environment::do_break): Updated.
9946 * src/roff/troff/div.cc (space_request, flush_output): Use
9947 `environment::add_html_tag()'.
9948 * src/roff/troff/input.cc: Updated.
9949 New variable `html_level' to indicate nested `html-begin' requests.
9950 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9951 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9952 `force_tprint()' method.
9953 (token::next): Handle `\O'.
9954 (do_suppress): Implement it.
9955 (html_begin, html_end, html_image): New functions.
9956 (init_output_requests): Renamed to ...
9957 (init_html_requests): this.
9959 (macro::append_str, macro::append_unsigned, macro::append_int): New
9961 New variable `output_low_mark_miny' to limit minimal value of y.
9962 (reset_output_registers): Use it.
9963 (output_request): Removed.
9964 (get_output_registers): New function.
9965 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9966 (*_node): Added `force_tprint()' if necessary.
9967 (special_node): New elements `tf' and `get_tfont()'.
9968 (suppress_node): New class.
9969 * src/roff/troff/node.cc:
9970 New global variables `image_no' and `suppress_start_page'.
9971 (real_output_file): New method `is_on()'.
9972 (troff_output_file): New method `start_special(tfont)'.
9973 (troff_output_file::really_print_line): Use `tprint' conditionally.
9974 (real_output_file::print_line): Updated.
9975 (real_output_file::on): Updated.
9976 (*_node): Added `force_tprint()'.
9977 (special_node::special_node): Initializer updated.
9978 (special_node::same, special_node::copy, special_node::tprint_start):
9980 (get_reg_int, get_reg_str): New functions.
9981 (suppress_node::*): New methods.
9982 New global variables last_position, last_image_filename;
9983 (min): New inline function.
9984 * src/roff/troff/reg.h, src/roff/troff/request.h,
9985 src/roff/troff/troff.h: Updated.
9987 2001-01-13 Werner LEMBERG <wl@gnu.org>
9989 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9990 documentation of `asciify' request.
9992 2001-01-12 Werner LEMBERG <wl@gnu.org>
9994 * src/roff/troff/input.cc: Move definition of special characters
9995 like `ESCAPE_TILDE' to ...
9996 * src/roff/troff/input.h: New file.
9997 * src/roff/troff/Makefile.sub (HDRS): Add it.
9999 Extending the .asciify request to `unformat' space characters also.
10001 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10002 to count input space characters.
10003 Update constructors to take care of it.
10004 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10005 `ESCAPE_SPACE' instead of normal space.
10006 (word_space_node::asciify): New method.
10007 (unbreakable_space_node::asciify): New method.
10008 (word_space_node::merge_space): New method.
10009 * src/roff/troff/env.cc (environment::space_newline,
10010 environment::space): Add code to initialize `num_spaces' (using the
10011 constructor of `word_space_node').
10012 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10015 2001-01-09 Werner LEMBERG <wl@gnu.org>
10017 * man/groff_char.man: Use table header traps only conditionally.
10019 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
10021 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10023 2001-01-08 Werner LEMBERG <wl@gnu.org>
10025 Introducing the `box' and `boxa' requests which are similar to
10026 `di' resp. `da' but omitting a partially filled line (which is
10027 restored after ending the diversion).
10029 * src/roff/troff/div.h (diversion): Add elements to save partially
10031 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10032 partially filled line.
10033 (divert, divert_append): Updated.
10034 (box, box_append): New functions.
10035 (init_div_requests): Use them.
10036 * src/roff/troff/env.h (environment): do_divert() is now a friend.
10037 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10039 * doc/groff.texinfo: Fix documentation of `lf' request.
10041 2000-12-25 Werner LEMBERG <wl@gnu.org>
10043 * src/roff/troff/troff.man, NEWS: Document `writem' request.
10045 2000-12-21 Werner LEMBERG <wl@gnu.org>
10047 Ignore `ss' request if in compatibility mode.
10049 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10050 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10051 * src/roff/troff/env.cc (space_size): Use it.
10053 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10054 `ss' request in nroff mode.
10056 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10059 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
10061 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10063 2000-12-13 Werner LEMBERG <wl@gnu.org>
10065 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10066 * src/preproc/eqn/neqn.man: Small fixes and additions.
10068 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
10070 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10073 * src/preproc/eqn/neqn.man: New file.
10075 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10078 * tmac/e.tmac: Add `T&' macro.
10079 Fix `indent cannot be negative' warning.
10080 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10082 2000-12-07 Werner LEMBERG <wl@gnu.org>
10084 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10086 2000-12-06 Werner LEMBERG <wl@gnu.org>
10088 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10091 * MORE.STUFF: Added info about deroff for djgpp.
10093 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10094 documentation of -rcR switch.
10096 2000-12-03 Werner LEMBERG <wl@gnu.org>
10098 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10099 if -rcR=1 (which is now the default in nroff mode), a single, very
10100 long page is created instead of multiple pages: All `ne' and `wh'
10101 requests are put into conditionals; a new macro `an-end' is added to
10102 be called with `em'.
10104 Some other minor cleanups.
10106 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10108 2000-12-02 Werner LEMBERG <wl@gnu.org>
10110 Fixing a bug which prevented hyphenation in words followed
10111 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10113 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10114 Adding possibly_break_line().
10115 * src/roff/troff/env.h (environment): Make possibly_break_line()
10118 Make `\~' usable in .tr request.
10120 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10121 (token): Add stretchable_space().
10122 * src/roff/troff/input.cc (token::next, token::delimiter,
10123 token::description, process_input_stack, do_translate,
10124 add_to_node_list, token::process): Use it.
10125 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10126 for adjusting the space.
10127 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10128 for stretchable space.
10129 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10130 (make_node): Add code for stretchable space.
10131 * src/roff/troff/env.cc (environment::add_char): Use it.
10132 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10133 (get_copy, token::next, transparent_translate, asciify): Use it.
10135 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10136 doc/groff.texinfo: Updated.
10137 * man/groff.man: Small reorderings.
10139 2000-11-23 Werner LEMBERG <wl@gnu.org>
10142 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10144 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10145 `safer_macro_path' to -M option.
10146 * src/roff/troff/troff.man: Fixes.
10148 2000-11-22 Werner LEMBERG <wl@gnu.org>
10150 Use safer path (except for config files) if -U isn't specified. Add
10151 a special macro path (without home and current directory) for config
10152 files. Add home directory to unsafe path for consistency. Don't
10153 include the home directory in the font path.
10155 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10157 * src/include/macropath.h: Add `config_macrp_path'.
10158 * src/libs/libgroff/fontfile.cc: Fix font path.
10159 * src/roff/troff/input.cc (process_startup_file): Use
10160 `config_macro_path'.
10161 (main): Select unsafe path if -U is given.
10163 * src/preproc/eqn/main.cc (main): Fixing search path for
10164 configuration file.
10165 * src/preproc/eqn/eqn.man: Updated.
10167 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10170 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10171 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10172 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10173 src/devices/grotty/grotty.man: Updated.
10175 * Makefile.in: Fix comments.
10177 2000-11-17 Werner LEMBERG <wl@gnu.org>
10179 * tmac/safer.tmac: Empty file added (again) for compatibility
10181 * tmac/Makefile.sub: Updated.
10183 2000-11-16 Werner LEMBERG <wl@gnu.org>
10185 * src/devices/grodvi/dvi.cc (main),
10186 src/devices/grohtml2/post-html.cc (main),
10187 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10188 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10189 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10190 (main), src/preproc/html2/pre-html.cc (main),
10191 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10192 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10193 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10194 (main), src/utils/hpftodit/hpftodit.cc (main),
10195 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10196 (main), src/utils/lookbib/lookbib.cc (main),
10197 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10198 (main): Use stdout for -v.
10199 * src/roff/groff/groff.cc (run_commands),
10200 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10201 to make direct printing to stdout possible.
10202 * src/roff/groff/pipeline.h: Updated.
10204 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10205 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10206 * src/utils/afmtodit/afmtodit.man: Updated.
10208 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10209 (version): New function.
10211 * src/utils/addftinfo/addftinfo.man: Updated.
10213 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10214 Fixing copyright dates.
10216 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10219 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10222 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10224 2000-11-15 Werner LEMBERG <wl@gnu.org>
10226 In all programs, make -v return immediately with exit status 0 to
10227 be compliant with the GNU standard.
10229 * src/devices/grodvi/dvi.cc (main),
10230 src/devices/grohtml2/post-html.cc (main),
10231 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10232 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10233 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10234 (main), src/preproc/html2/pre-html.cc (main),
10235 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10236 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10237 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10238 (main): Implement it.
10241 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10242 and postprocessors to the -v option.
10244 * src/roff/grog/grog.pl: Implement -v.
10245 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10246 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10248 * src/roff/nroff/nroff.sh: Implement -v.
10249 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10250 * src/roff/nroff/nroff.man: Updated.
10252 * src/preproc/eqn/main.cc (main): Fix comment typo.
10254 * MORE.STUFF: Added info about djgpp port of grap.
10256 2000-11-14 Werner LEMBERG <wl@gnu.org>
10258 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10259 mode (or rather, implemented non-compatibility mode).
10260 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10262 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10263 replacing it -- we don't find gxditview otherwise.
10264 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10266 * src/preproc/pic/depend: Removed. Unnecessary.
10268 Implemented dummy keyword `solid' in pic for compatibility with
10271 * lex.cc (lookup_keyword): Added `solid'.
10272 * pic.y: Added SOLID with dummy rule.
10273 * pic.cc, pic_tab.h: Regenerated.
10274 * doc/pic.ms: Updated.
10276 2000-11-13 Werner LEMBERG <wl@gnu.org>
10278 For security reasons, don't use the current directory but the home
10279 directory while searching and scanning troffrc and troffrc-end.
10280 Similarly, replace the current directory with the home directory
10283 * Makefile.in (fontpath, tmacpath): Remove current directory.
10285 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10286 two parameters `add_home' and `add_current'.
10287 (search_path::~search_path, search_path::command_line_dir,
10288 search_path::open_file): Remove tests for `dirs' being zero.
10289 * src/include/searchpath.h: Adjust.
10290 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10291 `safer_macro_path'.
10292 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10294 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10295 * src/roff/troff/input.cc: Use `mac_path', initialized with
10297 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10298 * src/roff/troff/env.cc: Use `mac_path'.
10300 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10302 * NEWS, man/roff.man, src/roff/troff/troff.man,
10303 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10306 2000-11-12 Werner LEMBERG <wl@gnu.org>
10308 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10310 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10311 * configure.in: Fix typo in comment.
10312 * configure: Regenerated.
10314 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10317 2000-11-08 Werner LEMBERG <wl@gnu.org>
10319 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10321 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10322 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10325 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10326 * tmac/Makefile.sub (install_data): Create
10327 $(systemtmacdir) and $(localtmacdir).
10328 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10329 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10330 NEWS, doc/groff.texinfo: Updated and minor fixes.
10332 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10333 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10334 $(systemtmacdir) since the wrapper files are platform-dependent.
10336 2000-11-01 Werner LEMBERG <wl@gnu.org>
10338 * doc/groff.texinfo: Fix typo.
10340 2000-10-26 Werner LEMBERG <wl@gnu.org>
10342 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10343 tmac.doc.old -> doc-old.tmac
10344 tmac.an.old -> an-old.tmac
10346 * tmac/tmac.*: Moved to ...
10347 * tmac/*.tmac: this.
10348 * tmac/man.local: Fix comment.
10349 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10350 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10351 Added some `FILES' sections. More use of @...@ directives. Other
10353 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10354 * doc/homepage.ms, doc/groff.texinfo: Updated.
10355 * man/groff.man, man/roff.man: Updated.
10356 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10357 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10358 src/devices/grotty/grotty.man: Updated.
10359 * src/preproc/pic/pic.man: Updated.
10360 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10361 instead of -mdoc.old.
10362 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10363 * src/roff/nroff/nroff.man: Updated.
10366 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10368 * tmac/mm.diff: Removed -- it has no use now since the mm package
10371 * tmac/*: Removed trailing spaces.
10373 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10374 the tmac subdirectory also).
10376 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10377 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10378 stuff since it is no longer needed.
10380 * README, PROBLEMS: Updated.
10382 2000-10-25 Werner LEMBERG <wl@gnu.org>
10384 Invert current behaviour: Search first FOOBAR.tmac, then
10387 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10388 (open_mac_file, macro_source): Implement it.
10389 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10390 doc/groff.texinfo, NEWS: Document it.
10392 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10393 Small documentation improvements.
10395 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10396 subdirectory also).
10398 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10400 2000-10-24 Werner LEMBERG <wl@gnu.org>
10402 Add local tmac directory (groff/site-tmac).
10404 * Makefile.in: Add $(localtmacdir).
10405 (uninstall_dirs): Add $(localtmacdir).
10406 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10407 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10408 in $(localtmacdir). Create $(localtmacdir).
10409 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10410 Updated and minor fixes.
10412 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10414 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10416 2000-10-23 Werner LEMBERG <wl@gnu.org>
10418 Move hyphen.us to tmac directory.
10420 * src/roff/troff/hyphen.us: Removed.
10421 * src/tmac/hyphen.us: Added.
10422 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10424 Change installation structure for data files from .../groff/... to
10425 .../groff/<version><revision>/... to be conform with other GNU
10428 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10429 doc/Makefile: Implement it.
10430 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10431 * configure: Updated.
10432 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10433 * NEWS: Document it.
10434 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10435 @MACRODIR@ instead of hard-coded directories.
10437 2000-10-22 Werner LEMBERG <wl@gnu.org>
10439 Implement $GROFF_BIN_PATH environment variable (which defaults to
10440 $bindir) used for child programs of groff and similar wrappers.
10442 * gendefs.sh: Improve documentation.
10443 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10444 src/preproc/eqn/Makefile.sub (neqn),
10445 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10446 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10448 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10449 $GROFF_PATH__ (the latter for communication with troff).
10450 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10452 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10453 doc/groff.texinfo: Document it.
10455 * doc/groff.texinfo: Improve documentation of troff's -a option.
10457 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10459 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10460 non-intrusive eol marker.
10461 (troff_output_file::determine_line_limits): New function.
10462 (troff_output_file::draw): Use it.
10463 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10464 output_pending_lines() instead of output_line().
10465 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10466 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10467 createImage): Small fixes.
10469 2000-10-14 Werner LEMBERG <wl@gnu.org>
10471 Replace tmac.safer with a real secure solution.
10473 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10474 system_request, pipe_output): Disable requests if in safer mode.
10475 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10476 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10477 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10478 doc/groff.texinfo, src/roff/groff/groff.man,
10479 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10481 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10482 (resource_manager::output_prolog): Replace setenv() with putenv().
10484 2000-10-09 Werner LEMBERG <wl@gnu.org>
10486 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10487 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10488 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10489 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10490 compilation errors with some compilers. It seems that this code
10491 is no longer necessary -- if yes, it is easy to add some #ifdef's
10492 for that particular old-fashioned compiler.
10494 * MORE.STUFF: Added info about Meta-tbl.
10496 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10498 2000-10-07 Werner LEMBERG <wl@gnu.org>
10500 Adding a new escape sequence \B'...': If the string between
10501 the delimiters is a valid numeric expression, return the character
10502 `1', and `0' otherwise. This is an analogon to \A.
10504 * src/roff/troff/input.cc (do_expr_test): Implement it.
10505 (token::next): Use it.
10506 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10508 * tmac/tmac.trace: Made independent from escape character.
10510 2000-10-06 Werner LEMBERG <wl@gnu.org>
10512 Adding a new request .dei: define indirect. The first and second
10513 parameter of .dei are taken from string registers instead directly;
10514 this very special request is needed to make tmac.trace independent
10515 from the escape character (which might even be disabled).
10517 * src/roff/troff/input.cc (do_define_macro): Implement it.
10518 (define_macro_indirect): New function.
10519 (init_input_requests): Use it.
10521 Adding two requests .ecs and .ecr: Save and restore the escape
10522 character. These two requests are needed to make tmac.trace
10523 independent from the escape character (which might even be
10526 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10528 (init_input_requests): Use it.
10530 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10532 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10534 Adding a new option -P and new environment variable GROPS_PROLOGUE
10535 to grops, selecting a different prologue file (minor modifications
10538 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10539 src/devices/grops/ps.cc (main): Implement it.
10540 * src/devices/grops/grops.man, NEWS: Document it.
10542 2000-09-22 Werner LEMBERG <wl@gnu.org>
10544 * INSTALL: Add info about selecting paper format.
10546 2000-09-21 Werner LEMBERG <wl@gnu.org>
10548 * src/roff/troff/input.cc (main): Fixing compiler warning.
10549 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10550 strings.h from the former to the latter.
10551 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10552 stuff from the former to the latter.
10554 2000-09-11 Werner LEMBERG <wl@gnu.org>
10556 Implementing two new requests .tm1 and .tmc: The former is similar
10557 to .tm but can output leading spaces; its syntax is similar to
10558 defining a string, i.e., a `"' can be used to mark the beginning of
10559 the string to be written to stderr: `.tm1 " test'. The latter is
10560 similar to .tm1 but doesn't write out a final newline character.
10562 * src/roff/troff/input.cc (terminal1, terminal_continue,
10563 do_terminal): New functions.
10564 (init_input_requests): Use them.
10565 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10567 2000-09-09 Werner LEMBERG <wl@gnu.org>
10569 * tmac/groff_mdoc.samples.man: Small fixes.
10571 2000-09-08 Werner LEMBERG <wl@gnu.org>
10573 * tmac/groff_mdoc.man: Fixing typo.
10575 2000-09-02 Werner LEMBERG <wl@gnu.org>
10577 Implementing a .nop request which does nothing.
10579 * src/roff/troff/input.cc (nop_request): New function.
10580 (init_input_requests): Use it.
10581 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10583 2000-09-01 Werner LEMBERG <wl@gnu.org>
10585 * doc/groff.texinfo: Added some comments.
10587 2000-08-30 Werner LEMBERG <wl@gnu.org>
10589 * src/roff/troff/TODO: Updated.
10591 2000-08-25 Werner LEMBERG <wl@gnu.org>
10593 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10595 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10597 * font/devps/generate/Makefile (SHELL): Define explicitly to
10598 "/bin/sh", for non-Unix platforms.
10599 (extraclean): Use a more portable "" quoting instead of a
10600 backslash (which doesn't work on DOS/Windows).
10602 * font/devlj4/generate/Makefile (extraclean): Ditto.
10604 * font/devdvi/generate/Makefile (extraclean): Ditto.
10606 2000-08-25 Werner LEMBERG <wl@gnu.org>
10608 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10609 src/roff/troff/troff.man: Document Eli's latest changes.
10611 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10613 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10614 macro file names of the form NAME.tmac as well as tmac.NAME.
10616 2000-08-25 Werner LEMBERG <wl@gnu.org>
10618 * src/include/posix.h: Remove definition of FILENAME_MAX.
10620 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10621 `sys_fatal' and `stop' function().
10623 * test-groff: Updated.
10625 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10627 Added the new troff command .output <arg> to suppress output (while
10628 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10629 registers (for passing the output dimensions to the output device).
10631 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10633 * src/roff/troff/node.h, src/roff/troff/node.cc
10634 (troff_output_file::really_print_line,
10635 ascii_output_file::really_print_line,
10636 supress_output_file::really_print_line): Use `width' parameter.
10637 (troff_output_file::really_on, troff_output_file::really_off,
10638 output_file::on, output_file::off, real_output_file::on,
10639 real_output_file::off, real_output_file::really_on,
10640 real_output_file::really_off): New functions.
10641 (real_output_file:public output_file): New variable `output_on'.
10642 (real_output_file::begin_page, real_output_file::copy_file,
10643 real_output_file::transparent_char, real_output_file::print_line):
10645 (real_output_file::print_line): Use check_output_limits.
10646 * src/roff/troff/reg.h, src/roff/troff/request.h,
10647 src/roff/troff/input.cc (assign_registers): New function to remove
10649 (do_ps_file): Use it.
10650 (check_output_limits, reset_output_registers, output_request,
10651 init_output_requests): New functions.
10652 (init_input_requests): Updated.
10654 Added new grohtml2 device and html2 preprocessor (coding
10655 not yet finished) which will eventually replace grohtml.
10657 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10659 * src/include/htmlindicate.h, src/include/htmlindicate
10660 (html_begin_suppress, html_end_suppress): New functions.
10661 * src/preproc/tbl/main.cc: Use it.
10662 * src/roff/groff/groff.cc: Add support for html2 device (which will
10663 automatically invoke the html2 preprocessor).
10664 * src/roff/troff/input.cc (is_html2): New variable.
10665 * src/roff/troff/troff.h, src/roff/troff/env.h,
10666 src/roff/troff/env.cc (environment::add_html_tag): New function
10668 (environment::do_break): Use it.
10669 * font/devhtml2/*: New files.
10670 * src/devices/grohtml2: New device.
10671 * src/preproc/html2: New preprocessor.
10672 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10674 2000-08-23 Werner LEMBERG <wl@gnu.org>
10676 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10678 2000-08-22 Werner LEMBERG <wl@gnu.org>
10680 * src/include/lib.h: Provide a fix for IRIX to not include
10683 2000-08-18 Werner LEMBERG <wl@gnu.org>
10685 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10686 since some non-GNU sed programs can't handle null regexps.
10687 * configure, src/preproc/eqn/Makefile.sub,
10688 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10690 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10691 bug (string.h and strings.h are both needed according to latest
10694 * MORE.STUFF: Added info about unroff and troffcvt.
10696 2000-08-08 Werner LEMBERG <wl@gnu.org>
10698 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10701 * tmac/tmac.man.old: Remove unused number register.
10703 * tmac.doc: Minor documentation fix.
10705 2000-08-07 Paul Eggert <eggert@twinsun.com>
10707 * src/roff/groff/pipeline.c (is_system_shell):
10708 Fix typo: "monocased_shell" no longer exists.
10710 2000-08-07 Paul Eggert <eggert@twinsun.com>
10712 Remove FILENAME_MAX limits.
10714 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10715 that the argument length is less than FILENAME_MAX.
10716 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10717 Use struct hack to allocate and free file name.
10718 (struct xtmpfile_list): fname is now part of the structure,
10719 not a pointer to another string.
10721 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10723 * src/include/posix.h: Add a default value for FILENAME_MAX.
10725 2000-08-06 Paul Eggert <eggert@twinsun.com>
10727 Add support for new BSD-style man pages (with ".Dd" instead of
10728 ".TH"), so that "groff -man" understands both styles, even
10729 when running "groff -man" on a host whose system man page
10730 macros don't support ".Dd".
10732 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10733 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10734 in case the system man macros don't define Dd or TH.
10736 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10737 * tmac/tmac.an: New one-line file.
10738 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10740 2000-08-06 Werner LEMBERG <wl@gnu.org>
10742 * src/roff/troff/troff.man: Fixing typos.
10744 Version 1.16.1 released
10745 =======================
10747 2000-07-31 Werner LEMBERG <wl@gnu.org>
10749 Preparing release 1.16.1.
10751 * REVISION: Revision number set to 1.
10752 * MORE.STUFF: Added info about port to DOS.
10753 * NEWS, win32-diffs: Updated.
10755 * src/include/nonposix.h: Remove first line -- this file is used
10758 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10761 2000-07-30 Werner LEMBERG <wl@gnu.org>
10763 * doc/texinfo.tex: Update to latest version.
10765 2000-06-28 Paul Eggert <eggert@twinsun.com>
10767 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10768 commands that fail. Don't assume that "export a=b" is valid shell
10769 syntax. This is needed for Solaris 2.5.1.
10771 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10772 comment about missing Solaris headers.
10774 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10776 2000-06-25 Werner LEMBERG <wl@gnu.org>
10778 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10781 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10783 * win32-diffs: Updated.
10784 * README.WIN32: Added CRs to make all Windows editors happy.
10786 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10787 src/roff/groff/pipeline.c).
10789 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10791 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10792 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10794 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10796 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10797 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10799 (main): Support non-Posix systems with several different styles of
10800 slash characters in file names.
10802 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10803 (main) [SET_BINARY]: Switch stdin into binary mode.
10805 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10806 (main): Support file names with several possible slash-type
10807 characters, as given by DIR_SEPS[] in nonposix.h.
10808 (main) [__MSDOS__]: If renaming the temporary index file fails
10809 because it has more than one dot in its trunk, replace the dot
10810 with an underscore and try again.
10811 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10813 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10815 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10816 (File::File): Open the input file in binary mode. Strip CR
10817 characters from each CR-LF pair.
10818 (xbasename): Support file names with several possible slash-type
10819 characters, as given by DIR_SEPS[] in nonposix.h.
10821 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10823 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10824 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10825 [!_POSIX_VERSION]: Define for traditional Unix systems.
10826 (real_output_file::real_output_file): Remove the MSVC-specific
10827 call to popen, use instead POPEN_WT, appropriately defined on
10828 nonposix.h. #include nonposix.h.
10829 (real_output_file::~real_output_file): Remove the MSVC-specific
10830 call to pclose, a suitable macro is now defined on nonposix.h.
10831 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10832 and WEXITSTATUS instead of assuming traditional Unix
10833 interpretation of the status returned by pclose.
10835 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10836 call to popen, use POPEN_RT instead (appropriately defined on
10837 nonposix.h). #include nonposix.h.
10838 (ps_bbox_request): Open the PostScript file in binary mode.
10839 Close the file after processing it.
10840 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10843 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10844 A version of run_pipeline that doesn't use `fork'.
10845 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10846 (system_shell_name, system_shell_dash_c)
10847 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10848 the ugliness of testing DOS/Windows file names for equality, and
10849 support both stock shells and ports of Unix shells.
10851 * src/roff/groff/groff.cc: #include nonposix.h.
10852 (BSHELL): Definition moved to nonposix.h.
10853 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10854 instead of a literal "-c".
10855 (xbasename): Support file names with several possible slash-type
10856 characters, as given by DIR_SEPS[] in nonposix.h.
10857 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10858 of literal strings.
10860 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10861 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10863 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10866 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10868 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10871 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10873 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10874 P_tmpdir is defined, use it instead of the literal "/tmp".
10875 (remove_tmp_files, add_tmp_file): New functions.
10876 (xtmpfile): Record temporary files and register an atexit function
10877 to delete them explicitly, instead of relying on the OS to do
10878 that, which doesn't work on non-Unix systems.
10880 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10881 (search_path::search_path): Use PATH_SEP instead of a literal
10883 (search_path::command_line_dir): Ditto.
10884 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10885 to support non-Posix systems.
10887 * src/libs/libbib/search.cc: #include nonposix.h.
10888 (search_list::add_file): Open the file in binary mode.
10890 * src/libs/libbib/linear.cc: #include nonposix.h.
10891 (file_buffer::load): Remove \r characters preceding \n from the
10894 * src/libs/libbib/index.cc: #include nonposix.h.
10895 (make_index_search_item): Open index_filename in O_BINARY mode.
10896 (index_search_item_iterator::get_tag): Ditto. Remove \r
10897 characters before \n characters.
10898 (index_search_item::check_files): Open files in binary mode.
10899 (index_search_item::munge_filename): Support DOS-style file names
10900 with backslashes and drive letters, use IS_ABSOLUTE.
10902 * src/devices/grops/ps.cc: #include nonposix.h.
10903 (main) [SET_BINARY]: Switch stdout to binary mode.
10905 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10906 (main) [SET_BINARY]: Switch stdout to binary mode.
10908 * src/devices/grolbp/lbp.cc: #include nonposix.h
10909 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10911 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10912 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10914 (main) [SET_BINARY]: Switch stdout to binary mode.
10915 [_MSC_VER]: Remove an explicit call to _setmode.
10917 * src/include/nonposix.h: New file.
10919 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10920 operation when building with DJGPP.
10921 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10922 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10925 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10927 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10928 etc. can include a semi-colon on DOS/Windows.
10929 (depend.temp): Use depend1.temp instead of depend.temp1, to
10930 prevent files from overerwiting each other on 8+3 filesystems.
10932 * gendef.sh (t): Change definition to work with DOS/Windows.
10934 doc/groff.texinfo: Apart of some typo corrections, I also changed
10935 some index entris, to make them more non-ambiguous, and also put
10936 @ignore around some parts that are not yet written, to allow the
10937 Info output be readable.
10939 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10941 Replaced specific checks for function declarations with a generic
10942 routine taken from GNU bfd.
10944 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10945 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10946 * configure.in: Use it.
10947 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10948 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10949 src/roff/groff/groff.cc: Use it.
10950 * Makefile.in, configure: Updated.
10952 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10954 * src/devides/grolbp/lbp.h: Removed unused variables.
10956 2000-05-31 Keith Thompson <kst@sdsc.edu>
10958 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10961 2000-05-31 Werner LEMBERG <wl@gnu.org>
10963 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10964 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10965 * configure.in: Use it.
10966 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10967 * configure, Makefile.in: Updated.
10969 * configure.in: Add test for strncasecmp().
10970 * src/include/lib.h: Use it.
10972 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10974 * src/preproc/grn/Makefile.sub: Add MLIB.
10976 2000-05-29 Nix <nix@esperi.demon.co.uk>
10978 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10980 2000-05-29 Werner LEMBERG <wl@gnu.org>
10982 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10984 * PROBLEMS: Small update.
10986 * src/devices/grolbp/lbp.cc: Various small fixes.
10988 2000-05-28 Keith Thompson <kst@sdsc.edu>
10990 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10992 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10994 2000-05-25 Werner LEMBERG <wl@gnu.org>
10996 * man/roff.man: Removed unused macro.
10998 2000-05-24 Werner LEMBERG <wl@gnu.org>
11000 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
11001 This is needed e.g. if you do
11002 `make distclean; ./configure; make dist'.
11004 Version 1.16 released
11005 =====================
11007 2000-05-23 Werner LEMBERG <wl@gnu.org>
11009 Adding font CWI (constant width italic) to devdvi.
11011 * font/devdvi/CWI: New file.
11012 * font/devdvi/generate/Makefile: Add generating rule.
11013 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11014 tmac/tmac.dvi: Use it.
11015 * NEWS: Announce it.
11017 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11018 * font/devlj4/generate/Makefile: Cosmetic changes only.
11020 * man/groff.man: Removed most of the redundant description of
11021 special characters (which is in groff_char.man). Added font
11022 translation CB->CR for devdvi. Other minor fixes.
11024 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11025 (registered) symbols.
11027 2000-05-22 Werner LEMBERG <wl@gnu.org>
11029 * doc/Makefile: Added rule for creating info files.
11031 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
11033 * font/devdvi/generate/Makefile: Fixed dependencies.
11035 * font/devps/*: Regenerated. Heavy changes for Bookman and
11036 NewCentury Schoolbook!
11037 * font/devps/generate/afmname: Will now run with GNU awk.
11038 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11039 * font/devps/generate/Makefile: Cosmetic changes only.
11041 2000-05-21 Werner LEMBERG <wl@gnu.org>
11043 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11044 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
11045 `.SS' now produces a heading with a smaller size than `.SH'.
11046 Completely formatted.
11047 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11049 * man/groff.man: Improved table appearance. Use of `eo' request
11050 to reduce number of doubled backslashes in macro definitions.
11051 Replacing `\e' with `\(rs'. Other minor fixes.
11053 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11054 to have correct line number.
11056 * INSTALL: Small improvement.
11058 2000-05-20 Bernd Warken <bwarken@mayn.de>
11060 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11063 2000-05-19 Bernd Warken <bwarken@mayn.de>
11065 * man/groff.man: Complete update (with a lot of corrections by WL).
11067 2000-05-18 Werner LEMBERG <wl@gnu.org>
11069 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11071 * font/*/*: Implement it.
11072 * man/groff_char.man, NEWS: Document it.
11074 * src/include/unix.h: Removed. It isn't used.
11076 * doc/groff.texinfo: Slight improvements.
11078 2000-05-17 Werner LEMBERG <wl@gnu.org>
11080 * README, win32-diffs: Small fixes and improvements.
11082 2000-05-16 Werner LEMBERG <wl@gnu.org>
11084 * FDL: New file (the Free Documentation License version 1.1).
11086 * doc/groff.texinfo: Added many start-up values for gtroff.
11087 Some structural improvements of the source code.
11089 2000-05-15 Werner LEMBERG <wl@gnu.org>
11091 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11092 * src/roff/troff/troff.man: Added info about troffrc-end.
11094 2000-05-14 Werner LEMBERG <wl@gnu.org>
11096 * Makefile.in (EXTRADIRS): Fix typos.
11097 (dist): Handle deletion of old .tar.gz file correctly.
11098 (DISTDIRS): Include all tty output devices.
11100 * doc/groff.texinfo: Adding more cross references; countless other
11103 2000-05-13 Werner LEMBERG <wl@gnu.org>
11105 * MORE.STUFF: Added Robert Marks's utilities.
11107 2000-05-12 Werner LEMBERG <wl@gnu.org>
11109 Added win32 port contributed by Blake McBride
11110 <blake@florida-software.com>.
11112 * README.WIN32, win32-diffs: New files.
11115 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11116 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11117 (change): Removed unused variables.
11119 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11120 (savebounds): Changed return value from `int' to `void'.
11121 * src/preproc/grn/hdb.cc: Ditto.
11123 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11124 final backslash in comment to avoid compiler warning.
11126 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11128 * doc/groff.texinfo: More fixes.
11130 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11132 * tmac/tmac.doc: Documentation fix.
11134 2000-05-11 Werner LEMBERG <wl@gnu.org>
11136 * doc/groff.texinfo: Reading the source code shows up a lot of
11137 omissions and incorrect data... More conversion to @Deffn macros.
11139 2000-05-10 Werner LEMBERG <wl@gnu.org>
11141 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11144 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11146 2000-05-09 Werner LEMBERG <wl@gnu.org>
11148 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11151 * doc/groff.texinfo: Extended history section. More conversion to
11152 @Deffn macros. More .tr documentation.
11154 2000-05-07 Werner LEMBERG <wl@gnu.org>
11156 * doc/groff.texinfo: Completed tab section. Added info about
11159 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11161 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11163 2000-05-05 Werner LEMBERG <wl@gnu.org>
11165 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11167 * NEWS: Document it.
11169 * man/troff.man: Minor optical improvements.
11171 2000-05-03 Werner LEMBERG <wl@gnu.org>
11173 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11175 * font/*/*: Implement it.
11176 * man/groff_char.man, NEWS: Document it.
11178 2000-05-02 Werner LEMBERG <wl@gnu.org>
11180 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11182 * NEWS: Document the three new man pages.
11184 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11185 * configure: Updated.
11187 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11189 2000-05-01 Werner LEMBERG <wl@gnu.org>
11191 Added grap support to grog.
11193 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11194 * src/roff/grog/grog.man: Document it.
11196 * doc/groff.texinfo, NEWS: Add info about grap support.
11198 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11199 (with slight fixes by me).
11201 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11202 * tmac/Makefile.sub: Add groff_tmac.man.
11203 * man/roff.man: New file giving overview of roff system.
11204 * man/troff.man: A short reference of troff.
11205 * man/Makefile.sub: Add roff.man and troff.man.
11207 2000-04-30 Werner LEMBERG <wl@gnu.org>
11209 Added grap support to groff.
11211 * src/roff/groff/groff.cc: Implement it.
11212 * src/roff/groff/groff.man: Document it.
11214 * src/devices/grotty/grotty.man: Add cp1047 device.
11215 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11217 * src/roff/groff/groff.man: Ditto.
11218 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11219 * doc/groff.texinfo: Ditto.
11221 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11224 2000-04-29 Werner LEMBERG <wl@gnu.org>
11226 * man/groff_char.man: Add `pc' glyph.
11227 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11228 * tmac/tmac.tty: Add `pc' glyph.
11229 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11230 we use cp1047 output device.
11232 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11233 there are still hardcoded latin1->unicode values in utf8's font
11235 * configure: Updated.
11236 * NEWS: Minor clarification. Updated.
11238 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11241 2000-04-28 Werner LEMBERG <wl@gnu.org>
11243 Adding EBCDIC code page 1047.
11245 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11246 font/devcp1047/DESC.proto: New files.
11248 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11249 either ascii/latin1 or cp1047.
11250 * Makefile.in: Use it.
11251 * configure: Updated.
11253 Replacing and/or adding `md' (mathdot) glyph with `pc'
11254 (periodcentered) in all text fonts.
11256 * font/*/*: Change it.
11258 2000-04-27 Werner LEMBERG <wl@gnu.org>
11260 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11262 * configure.in: Add check for strings.h.
11263 * src/include/driver.h: Use HAVE_STRINGS_H.
11264 * src/devices/grolbp/lpb.cc: Remove string.h.
11266 * src/include/groff-getopt.h: New file. It will be used instead of
11267 getopt.h (to be included in lib.h) to avoid endless problems with
11268 picky C++ compilers.
11269 * src/include/lib.h: Use groff-getopt.h.
11270 * src/include/Makefile.sub: Updated.
11272 * configure: Updated.
11273 * Makefile.in: Updated.
11275 * NEWS: Mention EBCDIC support.
11277 2000-04-26 Werner LEMBERG <wl@gnu.org>
11279 * TODO: Some additions.
11281 2000-04-25 Werner LEMBERG <wl@gnu.org>
11283 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11286 2000-04-23 Werner LEMBERG <wl@gnu.org>
11288 * src/roff/troff/troff.man: Minor fixes.
11290 2000-04-22 Werner LEMBERG <wl@gnu.org>
11292 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11293 `.T' string register and the incompatible definition of the `.T'
11294 number register (compared to Unix troff).
11296 * man/groff_char.man: Add some missing characters.
11297 * font/devutf8/NOTES: Update.
11299 2000-04-21 Werner LEMBERG <wl@gnu.org>
11301 * src/include/htmlindicate.h, src/include/lib.h,
11302 src/include/posix.h: Fix copyright.
11304 * src/include/Makefile.sub: Update.
11306 2000-04-20 Werner LEMBERG <wl@gnu.org>
11308 * src/roff/troff/input.cc (input_char_description): Removing
11309 superfluous space char.
11311 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11313 * doc/groff.texinfo: Document EBCDIC.
11315 2000-04-19 Werner LEMBERG <wl@gnu.org>
11317 Introducing `shc' as the glyph name for the soft hyphen character.
11319 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11320 font/devlatin1/R.proto: Use it.
11324 2000-04-18 Werner LEMBERG <wl@gnu.org>
11326 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11327 dependency on ASCII order.
11329 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11331 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11332 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11334 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11335 to increase portability.
11337 2000-04-15 Werner LEMBERG <wl@gnu.org>
11339 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11340 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11341 the generic `\n' if under OS/390 Unix.
11343 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11345 * configure: Regenerated.
11347 2000-04-14 Werner LEMBERG <wl@gnu.org>
11349 * doc/groff.texinfo: More conversions to @Deffn.
11351 2000-04-12 Werner LEMBERG <wl@gnu.org>
11353 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11356 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11358 2000-04-10 Werner LEMBERG <wl@gnu.org>
11360 * doc/groff.texinfo: More conversions to @Deffn.
11362 2000-04-08 Werner LEMBERG <wl@gnu.org>
11364 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11365 Updated to latest version (glibc 2.1.3).
11367 2000-04-07 Werner LEMBERG <wl@gnu.org>
11369 * doc/Makefile (clean): Include more index files.
11370 Add rule texinfo->dvi.
11372 2000-04-05 Werner LEMBERG <wl@gnu.org>
11374 * doc/groff.texinfo: Added new index `op' for operators. More
11375 info on end of sentence characters. More use of @Deffn.
11377 2000-03-30 Werner LEMBERG <wl@gnu.org>
11379 * */*.man: Adding a note that a whitespace can be inserted between
11380 a command line option and its parameter -- we are using GNU getopt.
11382 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11384 2000-03-28 Werner LEMBERG <wl@gnu.org>
11386 Correct anachronism of calling the man macro file with `-man'
11387 instead of `-m man' etc.
11389 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11390 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11391 load tmac.<package>.
11393 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11397 * doc/groff.texinfo: Updated.
11399 * tmac/groff_man.man: Copyright added.
11401 2000-03-27 Werner LEMBERG <wl@gnu.org>
11403 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11404 typeset the request resp. escape name with a tt font -- due to a
11405 bug in texinfo.tex it is necessary to use the `-e' switch with
11408 Improving info about usage of groff units.
11412 2000-03-20 Werner LEMBERG <wl@gnu.org>
11414 * doc/groff.texinfo: Added section about man macro package
11415 (I've basically taken groff_man.man). Introducing new indices `ma'
11416 for macros/strings and `gl' for glyph names. Other minor fixes.
11418 * tmac/groff_man.man: Fixed some typos.
11420 2000-03-19 Werner LEMBERG <wl@gnu.org>
11422 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11425 * doc/texinfo.tex: New file.
11427 2000-03-18 Werner LEMBERG <wl@gnu.org>
11429 * doc/groff.texinfo: Improved section on number registers. Other
11432 2000-03-16 Werner LEMBERG <wl@gnu.org>
11434 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11437 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11438 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11439 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11440 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11442 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11444 * src/roff/grog/grog.man: Updated copyright date.
11446 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11448 * configure.in: Added test for strdup.
11450 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11453 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11457 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11459 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11461 2000-03-11 Werner LEMBERG <wl@gnu.org>
11463 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11465 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11466 * src/include/lib.h: Remove some spaces.
11468 2000-03-10 Werner LEMBERG <wl@gnu.org>
11470 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11471 initializers from arguments (some compilers don't like this).
11473 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11475 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11476 used by pic and eqn to tell grohtml where the graphic regions start
11478 * src/libs/libgroff/Makefile.sub: Use it.
11479 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11480 graphic_start() and graphic_end() from htmlindicate.cc.
11482 2000-03-09 Werner LEMBERG <wl@gnu.org>
11484 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11485 * tmac/groff_man.man: More fixes.
11487 2000-03-08 Werner LEMBERG <wl@gnu.org>
11489 * doc/Makefile: Added texput.log to the `clean' target.
11490 * doc/groff.texinfo: Added info about delimiters for escapes.
11492 2000-03-08 Bernd Warken <bwarken@mayn.de>
11494 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11495 other graphic formats.
11497 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11499 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11500 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11501 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11504 2000-03-07 Werner LEMBERG <wl@gnu.org>
11506 * doc/groff.texinfo: Spelling fixes.
11508 2000-03-06 Werner LEMBERG <wl@gnu.org>
11510 * tmac/groff_man.man: Completely revised to cover everything in
11513 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11514 Other minor fixings.
11515 * src/roff/troff/env.cc (environment_copy): Improve error message and
11517 * src/roff/troff/TODO: Updated.
11519 * doc/Makefile: Bug fixes -- this is still provisional, though...
11521 * tmac/eqnrc: Small fixes.
11523 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11525 Adding a request `evc' to copy environments.
11527 * src/roff/troff/env.cc (environment::copy, environment_copy):
11529 * src/roff/troff/env.h: Add prototype.
11531 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11533 Adding strsep() -- Solaris 8 doesn't have it.
11535 * configure.in: Test it.
11536 * src/devices/grolbp/lbp.cc: Add code.
11538 2000-03-05 Werner LEMBERG <wl@gnu.org>
11540 * src/roff/troff/div.cc (macro_diversion::output,
11541 top_level_diversion::output): Fixing an incompatibility with
11542 original troff: \x'0' updates the .a register also. Thanks to
11543 <Andries.Brouwer@cwi.nl> for pointing this out.
11544 * doc/groff.texinfo: Document it.
11546 * Makefile.in: Create Makefile.dep if necessary before calling the
11547 submake process to avoid warning about nonexistent file.
11549 * NEWS, PROJECTS: Updated.
11551 2000-03-04 Werner LEMBERG <wl@gnu.org>
11553 * tmac/troffrc: Add tmac.lbp.
11555 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11557 * tmac/tmac.lbp: New file.
11558 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11561 2000-03-03 Werner LEMBERG <wl@gnu.org>
11563 * Makefile.in: Fixing $(subdir).
11565 * README, NEWS: Small fixes.
11567 * test-groff: Adding path to grolbp.
11569 * configure.in: The (new) file src/xditview/Imakefile.in will be
11570 also configured -- it is now possible to build gxditview in a
11571 directory different from $srcdir.
11573 2000-03-02 Blake McBride <blake@florida-software.com>
11575 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11577 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11579 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11581 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11584 2000-02-29 Werner LEMBERG <wl@gnu.org>
11586 Adding GNU getopt to the groff distribution.
11588 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11590 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11591 * aclocal.a4: Remove GROFF_GETOPT function.
11592 * configure.in, Makefile.in, PROBLEMS: Update.
11593 * src/include/lib.h: Replace getopt tests with getopt.h.
11594 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11596 * doc/groff.texinfo: Further checking/updating. Adding more index
11599 * man/groff_out.man: Fix nroff mode activation (for emacs).
11600 * man/groff_font.man: Add missing ligature.
11602 2000-02-28 Werner LEMBERG <wl@gnu.org>
11604 * doc/groff.texinfo: Further checking/updating. Adding more index
11607 * src/devices/grolbp/grolbp.man: Added a comment line at the
11608 beginning of the file (similar to shell scripts) which indicates
11609 that `tbl' should be used as a preprocessor.
11611 2000-02-27 Blake McBride <blake@florida-software.com>
11613 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11614 Windows NT 4.0). Uses _MSC_VER define where necessary.
11616 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11617 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11618 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11619 src/include/lib.h, src/libs/libgroff/errarg.cc,
11620 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11621 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11622 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11623 src/roff/troff/div.cc, src/roff/troff/env.cc,
11624 src/roff/troff/input.cc, src/roff/troff/node.cc,
11625 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11626 if_to_a() to avoid name clashes.
11627 * src/include/posix.h: Don't use unistd.h.
11628 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11629 clause for integrating non-Unix xtmpfile() code.
11630 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11631 structure; use "rt" for popen() in pipe_source(); add getpid()
11633 * src/roff/troff/node.cc: Use special versions of popen() in
11634 real_output_file() and pclose() in ~real_output_file().
11636 2000-02-27 Werner LEMBERG <wl@gnu.org>
11638 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11639 LBP-8 series laser printers). This code has been contributed by
11640 Francisco Andrés Verdú <pandres@dragonet.es>.
11642 * src/devices/grolbp/*: The grolbp output device.
11643 * font/devlpb/*: The font description files.
11644 * Makefile.in: Add grolpb and devlbp subdirectories.
11646 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11647 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11650 * doc/groff.texinfo: Further checking/updating. Adding more index
11655 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11657 * man/groff_font.man: Adding info about obsolete DESC keywords.
11658 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11661 2000-02-26 Werner LEMBERG <wl@gnu.org>
11663 * src/preproc/grn/grn.man: Added info about the gremlin file format
11664 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11666 2000-02-25 Werner LEMBERG <wl@gnu.org>
11668 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11669 friends to be non-integer.
11671 * src/preproc/grn/grn.man: Document it.
11673 * doc/groff.texinfo: Further checking/updating. Adding more index
11676 2000-02-24 Werner LEMBERG <wl@gnu.org>
11678 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11679 line thicknesses to be integer multiples of this value.
11681 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11682 corresponding code doesn't work (yet).
11684 * doc/groff.texinfo: Further checking/updating. Adding more index
11687 2000-02-23 Werner LEMBERG <wl@gnu.org>
11689 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11690 specify line thickness instead of base units. The new default
11691 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11692 thick lines respectively.
11694 Removed unused variable `prevval'.
11696 * src/preproc/grn/grn.man: Updated.
11698 2000-02-22 Werner LEMBERG <wl@gnu.org>
11700 * src/preproc/grn/main.cc: Slight formatting.
11702 * src/roff/groff/groff.man: Formatting fix.
11703 * src/preproc/grn/grn.man: Ditto.
11705 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11707 * doc/groff.texinfo: Further checking/updating.
11709 2000-02-21 Werner LEMBERG <wl@gnu.org>
11711 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11713 * test-groff: Added grn subdir to path.
11715 * doc/groff.texinfo: Some restructing and other small improvements.
11717 * src/roff/groff/groff.cc (help): Fixed info string.
11719 2000-02-20 Werner LEMBERG <wl@gnu.org>
11721 * doc/meref.me: Fix description of .GS request.
11723 * src/roff/troff/troff.man: Fixing typo.
11725 Adding the `grn' preprocessor for gremlin graphic files.
11727 * src/preproc/grn/*: This is the Berkeley distribution written by
11728 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11729 Senderowicz and Werner Lemberg.
11731 * doc/grnexampl.{me,g}: A sample for grn.
11733 * Makefile.in: Added subdirectory entry for grn.
11735 * src/roff/groff/groff.cc: Added support for grn. It can be now
11736 called with the switch `-g'.
11738 * src/roff/groff/groff.man: Updated.
11740 * src/roff/grog/grog.{man,pl,sh}: Updated.
11744 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11746 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11747 parametrically polymorphic.
11749 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11750 and the alterations to xtmpfile.
11751 xtmpfile can be requested to return the filename created
11752 and asked not to unlink the temp file. The default behaviour
11753 if parameters are absent is exactly the same as before.
11755 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11757 A new request `length' is available which returns the length of a
11758 string in a number register:
11760 * src/roff/troff/input.cc (length_macro): Implement it.
11761 * src/roff/troff/input.cc (init_input_requests): Register it.
11763 2000-02-11 Werner LEMBERG <wl@gnu.org>
11765 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11766 of the `substring' request.
11768 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11771 * src/roff/troff/TODO, NEWS: Updated.
11773 2000-02-09 Werner LEMBERG <wl@gnu.org>
11775 * src/roff/groff/groff.man: Added an example.
11777 2000-02-06 Werner LEMBERG <wl@gnu.org>
11779 I've considerably modified the directory structure of the
11780 distribution to get a more vertical layout. For example, the number
11781 of top level directories has been reduced from 42 to 6.
11783 As a consequence, many changes, especially to the makefiles, were
11786 * The makefile variables `top_builddir' and `top_srcdir' have been
11787 introduced. Virtually all relative paths have been replaced with
11788 absolute ones using these two variables.
11790 * Dependencies (in the files `Makefile.dep') are no longer part of
11791 the distribution. Instead, they are created during a `make install'
11792 in the build directory.
11794 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11795 make `top_srcdir' and `top_builddir' absolute.
11797 Some other changes:
11799 * Man pages now depend on the files `VERSION' and `REVISION'.
11801 * The added shell script `mkinstalldirs' will replace `mkdir' in
11804 * VERSION: Version number increased to 1.16.
11806 2000-02-04 Werner LEMBERG <wl@gnu.org>
11808 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11810 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11811 (after an update of the mm stuff).
11813 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11815 2000-02-03 Werner LEMBERG <wl@gnu.org>
11817 The .psbb request will now also accept Mac PS images (i.e. using LF
11818 as the EOL character).
11820 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11821 (with slight modifications).
11822 * troff/input.cc (do_ps_file): Use it.
11824 * test-groff: Add grohtml and grolj4 output devices to PATH.
11826 2000-01-30 Werner LEMBERG <wl@gnu.org>
11828 * NEWS, MORE.STUFF: Updated.
11830 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11832 Add the `srand' command to pic.
11834 * pic/lex.cc, pic/pic.y: Implement it.
11835 * pic/pic.man: Document it.
11836 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11838 2000-01-30 Werner LEMBERG <wl@gnu.org>
11840 Add a new request `.psbb'. This does exactly what the external
11841 program psbb did. It scans a PostScript image file for a
11842 %%BoundingBox comment and extracts the bounding box values (in
11843 PostScript units) which are then stored in the four new (read-only)
11844 number registers `llx', `lly', `urx', and `ury'.
11846 This will allow the usage of the .PSPIC macro without worrying
11847 about unsafe behaviour of groff, i.e., it will work without the
11848 `-U' switch of groff.
11850 * troff/input.cc: Implement it.
11851 * tmac/tmac.pspic: Use it.
11852 * troff/troff.man, grops/grops.man, NEWS: Document it.
11853 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11855 This is bloody C code simply adapted from psbb.c! Any improvements
11858 2000-01-29 Werner LEMBERG <wl@gnu.org>
11860 * man/groff_font.man: Minor clarifications.
11864 2000-01-28 Werner LEMBERG <wl@gnu.org>
11866 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11868 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11870 * man/groff_font.man: Brought up to date regarding tcommand
11872 * libgroff/font.cc: Handle everything after `--' as a comment
11874 * devps/*: Added comment delimiter inside devps font files.
11876 2000-01-28 Werner LEMBERG <wl@gnu.org>
11878 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11879 \fC...\fP (which now works as expected).
11881 * troff/troff.man: Fix typo.
11883 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11885 Completed the pass_filenames implementation in troff.
11887 * libdriver/input.cc: Will read the new `F' tcommand.
11888 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11889 * troff/input.cc: Use it.
11891 2000-01-26 Werner LEMBERG <wl@gnu.org>
11893 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11894 font will now be updated even if an invalid font is selected.
11896 2000-01-24 Werner LEMBERG <wl@gnu.org>
11898 * doc/homepage.ms: Updated for new tmac.arkup.
11900 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11902 * tmac/tmac.arkup: Cleanup.
11904 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11906 Removed obsolete .LINK macro completely.
11908 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11909 will be immediately appended to the second argument (to be used with
11910 punctuation, for example).
11912 Disabled .CDFTP macro temporarily for security reasons.
11914 * tmac/groff_markup.man: Complete revision for latest changes in
11915 tmac.arkup -- note that it does not yet format correctly with
11918 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11920 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11921 * devutf8/R.proto: Add mappings for wp, lh, rh.
11922 * devutf8/NOTES: Updated.
11924 2000-01-23 Werner LEMBERG <wl@gnu.org>
11926 * doc/groff.texinfo: Updated version/copyright info.
11928 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11930 Added support for two new directives in device descriptions:
11931 `pass_filenames' (to pass the input file name to the output device)
11932 and `use_charnames_in_special' (to support e.g. accented characters
11933 in the `X' request).
11935 * include/font.h, troff/charinfo.h: Declare it.
11937 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11939 * devhtml/DESC: Use it.
11941 * troff/input.cc: New function encoded_char.
11943 * troff/token.h: Add test for `specialness'.
11945 2000-01-21 Werner LEMBERG <wl@gnu.org>
11947 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11948 mistake from the list of files to be installed.
11950 2000-01-18 Werner LEMBERG <wl@gnu.org>
11952 * README: Added info how to apply patches.
11954 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11956 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11958 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11960 * troff/input.cc: Add support for troffrc-end.
11962 * tbl/main.cc: Altered to issue table-start and table-end special
11963 characters if using the html device.
11965 * devhtml/*: Modified font files to incorporate html encoding of
11968 * tmac/groff_markup.man: New file documenting tmac.arkup.
11970 * tmac/troffrc-end: New file. This is invoked after all user
11971 specified macros. Currently used by the html device to include
11972 tmac.html. Thus no need for users to specify -mhtml anymore.
11974 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11975 (MAN7): Add groff_markup.man.
11977 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11979 * tmac/troffrc: tmac.arkup will now be called for the html device.
11981 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11982 extra device specific information about fonts.
11984 * doc/homepage.ms: New file. It is an example how an HTML home page
11985 could look like with grohtml.
11987 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11989 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11991 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11994 * devutf8/NOTES: Updated.
11996 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11998 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11999 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12000 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12001 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12002 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12003 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12004 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12005 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12008 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12010 2000-01-12 Fabrizio Polacco <fab@prosa.it>
12012 grolj4: Paper size will be searched case-insensitively.
12014 * include/lib.h: Add check for strcasecmp().
12015 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12016 * configure.in: Check for strcasecmp().
12018 2000-01-11 Werner LEMBERG <wl@gnu.org>
12020 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12023 2000-01-10 Werner LEMBERG <wl@gnu.org>
12025 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12028 Add a new read-only register, `.Y', which contains the groff
12031 * troff/input.cc (init_input_requests): Define it.
12032 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12033 * doc/groff.texinfo, troff/troff.man: Document it.
12035 * libgroff/Makefile.sub (version.cc): Add definition of
12036 `Version_string[]', consisting of `<major>.<minor>.<revision>'
12037 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12038 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12039 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12040 troff/input.cc, pfbtops/pfbtops.c: Use it.
12042 2000-01-10 Fabrizio Polacco <fab@prosa.it>
12044 Add a revision scheme to the groff package.
12046 * REVISION: New file.
12047 * libgroff/Makefile.sub (version.cc): Use it to define
12048 `revision_string[]'.
12049 * grops/psrm.cc: Use revision_string (converted to an unsigned
12050 integer) in constructor of resource_manager.
12052 2000-01-10 Bruno Haible <haible@clisp.cons.org>
12054 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12056 * Makefile.in (DEVDIRS): Add devutf8.
12057 * grotty/tty.cc: Include device.h.
12058 (glyph): Change type of `code' to `unsigned int'.
12059 (tty_printer): New field is_utf8. Constructor takes device argument.
12060 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12061 (tty_printer::add_char): Change type of first arg to `unsigned int'.
12062 (tty_printer::put_char): New function.
12063 (tty_printer::end_page): Use put_char() instead of ::putchar().
12064 (make_printer): Pass device to tty_printer constructor.
12065 * nroff.sh: Determine default device by calling 'locale'. As a
12066 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12067 Recognize UTF-8 locales.
12068 * tmac/eqnrc: Recognize utf8 like latin1.
12069 * tmac/troffrc: Device utf8 needs tmac.tty.
12071 2000-01-07 Werner LEMBERG <wl@gnu.org>
12073 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12075 2000-01-07 Paul Eggert <eggert@twinsun.com>
12077 Add a new predefined writeable number register, `year',
12078 which contains the current year.
12080 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12081 * tmac/tmac.s: Use it.
12082 * troff/input.cc (init_registers): Initialize it.
12084 2000-01-06 Werner LEMBERG <wl@gnu.org>
12086 * PROBLEMS: Fixed typo.
12088 2000-01-04 Paul Eggert <eggert@twinsun.com>
12090 * PROBLEMS: Add Y2k advice for the yr number register.
12092 2000-01-03 Paul Eggert <eggert@twinsun.com>
12094 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12096 2000-01-02 Werner LEMBERG <wl@gnu.org>
12098 * tmac/tmac.arkup: Slight modification of macros to provide better
12099 appearance for non-HTML formats.
12101 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12103 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12104 does not automatically translate to malloc(n) on all OSes
12105 (e.g., SunOS) so do it explicitly. Also, check the returned
12108 2000-01-01 Werner LEMBERG <wl@gnu.org>
12110 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12112 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12113 expects this variable
12115 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12117 * doc/Makefile: Added instructions to create HTML and text
12118 versions of some files.
12120 1999-12-31 Werner LEMBERG <wl@gnu.org>
12122 * Updated INSTALL.gen.
12124 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12125 better resp. correctly with non-HTML devices.
12127 Version 1.15 released
12128 =====================
12130 1999-12-28 Werner LEMBERG <wl@gnu.org>
12132 * NEWS, VERSION: Changed to 1.15
12134 1999-12-27 Paul Eggert <eggert@twinsun.com>
12136 * nroff/nroff.man: -S is safer, not safe.
12138 * groff/groff.cc (main): Use `safer', not `safe', in variable
12139 names. This does not change the behavior.
12141 * troff/input.cc (main): Likewise.
12143 * nroff/nroff.sh: Likewise.
12145 * troff/input.cc (prepend_string): New function.
12146 (main): Prepend -msafer, so that we check macro libraries for
12149 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12151 Version 1.14 released
12152 =====================
12154 1999-12-26 Werner LEMBERG <wl@gnu.org>
12156 * NEWS, VERSION: Changed to 1.14.
12158 1999-12-24 Werner LEMBERG <wl@gnu.org>
12160 * refer/refer.cc: Fixing the last fix.
12162 Version 1.13 released
12163 =====================
12165 1999-12-23 Werner LEMBERG <wl@gnu.org>
12167 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12172 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12174 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12175 document conventions, the version number must be a real.
12177 Version 1.12.1 released
12178 =======================
12180 1999-12-22 Werner LEMBERG <wl@gnu.org>
12182 * VERSION: Changed to 1.12.1.
12184 1999-12-22 Alan Rooks <arooks@istar.ca>
12186 * refer/refer.cc (do_file): Slight modification to satisfy the
12187 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12190 1999-12-20 Werner LEMBERG <wl@gnu.org>
12192 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12195 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12196 list of unsafe requests.
12198 * pic/pic.man: Fixed a typo.
12200 * man/groff_out.man: Fixed a typo.
12202 1999-12-18 Werner LEMBERG <wl@gnu.org>
12204 * Makefile.in: Doc fixes.
12206 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12208 * groff/groff.cc: Missing `U' option added to getopt().
12210 * troff/troff.man: Missing `U' option added to synopsis.
12212 Version 1.12 released
12213 =====================
12215 1999-12-14 Werner LEMBERG <wl@gnu.org>
12217 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12220 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12221 with the more appropriate terms `safer' and `unsafe'.
12223 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12224 sys_nerr and sys_errlist[].
12226 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12228 * pic/pic.y, pic/pic.cc: Added check for fmod().
12230 1999-12-13 Werner LEMBERG <wl@gnu.org>
12232 * VERSION: Changed to 1.12.
12234 Here some patches from various sources; most of them taken from
12235 the Debian distribution.
12237 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12238 tmac/Makefile.sub: New files copied directly from the NetBSD
12239 distribution. Probably, some additional adaptation later on is
12242 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12243 of unsafe requests.
12245 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12246 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12247 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12248 (`-S') is now the default.
12250 * README, NEWS: Updated.
12252 1999-12-09 Werner LEMBERG <wl@gnu.org>
12254 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12256 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12258 1999-12-06 Werner LEMBERG <wl@gnu.org>
12260 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12261 grief than relief today. Additionally, it is against the GNU
12264 * configure: Recreated.
12266 1999-12-05 Werner LEMBERG <wl@gnu.org>
12268 * configure.in: Added GROFF_LIBM.
12270 * configure: Recreated.
12272 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12275 * Makefile.in: Added definition of $(LIBM).
12277 * Makefile.comm (LIBM): Removed.
12279 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12281 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12283 * doc/Makefile: Added rule for generation pic.html.
12285 (clean): Files produced by grohtml will be removed also.
12287 * doc/pic.ms: Small fix.
12289 * tmac/tmac.html: Fixed suppression of headers.
12291 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12293 * tmac/tmac.html: Fixing horizontal arrows.
12295 Turning off hyphenation.
12297 * tmac/tmac.an: Improved support for grohtml; better indentation,
12298 no footers/headers.
12300 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12302 * tmac/tmac.arkup: Added CDFTP macro
12304 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12307 * tmac/troffrc: Some additions for HTML stuff.
12309 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12311 * tmac/tmac.html: Small changes.
12313 1999-09-26 Werner LEMBERG <wl@gnu.org>
12315 * doc/groff.texinfo: Minor fixes.
12317 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12319 * devhtml/TR: Changed spacewidth to 3.
12321 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12323 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12325 * tmac/tmac.arkup: New file.
12327 * grohtml/ChangeLog: New file.
12329 1999-09-16 Werner LEMBERG <wl@gnu.org>
12331 * doc/groff.texinfo (Common Features): Added Copying chapter.
12332 Changed format to @smallbook.
12334 1999-09-15 Werner LEMBERG <wl@gnu.org>
12336 * NEWS: Added info about groff.texinfo.
12338 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12341 1999-09-14 Werner LEMBERG <wl@gnu.org>
12343 * groff/groff.man: More updates.
12345 1999-09-13 Werner LEMBERG <wl@gnu.org>
12347 * doc/groff.texinfo: New file. This manual is still very
12348 rudimentary. It has been originally contributed by Trent
12349 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12352 * INSTALL: Added information about the `doc' subdir
12354 * troff/troff.man: Minor fixes.
12356 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12359 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12361 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12362 also, otherwise it is included itself in another call of `make
12365 * groff/groff.cc (synopsis): Removed superfluous space.
12367 * PROJECTS, PROBLEMS, NEWS: Updated.
12369 * VERSION: Updated to 1.12beta.
12371 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12373 * README: Updated: Included documentation about CVS repository,
12374 mailing lists, and daily snapshots.
12376 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12378 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12380 * tmac/tmac.an: If the tag didn't fit into the space that the
12381 macro `TP' specifies, the rest of the tag went into the space for
12384 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12386 * grolj4/lj4.cc: Added duplex printing (option `-d').
12388 * grolj4/grolj4.man: Document duplex printing.
12390 1999-09-12 Werner LEMBERG <wl@gnu.org>
12392 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12393 non-GNUish sed programs.
12395 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12398 * configure.in (LIBS): Added `-lc'
12400 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12402 * pic/tex.cc (solid_arc): Casting M_PI to double.
12404 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12406 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12407 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12408 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12410 * groff/groff_man.man: New file. This manual page was originally
12411 written for the Debian GNU/Linux system by Susan G. Kleinmann
12414 * eqn/list.cc (list_box::compute_metrics,
12415 list_box::compute_sublist_width): Removed variable declaration to
12416 avoid shadowing warnings.
12418 * grops/psrm.cc (resource_manager::process_file): Ditto.
12420 * tfmtodit/tfmtodit.cc (main): Ditto.
12422 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12423 to avoid shadowing warnings.
12425 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12426 shadowing loop variable.
12428 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12430 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12432 New grohtml frontend to convert groff input to html.
12434 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12436 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12438 * tmac/eqnrc: Added html device.
12440 * tmac/tmac.html: New file.
12442 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12443 (troff_output::start_picture, troff_output::finish_picture),
12444 tbl/main.cc (process_input_file):
12445 Surrounded output with `graphics_start' and `graphics_end' so that
12446 the html driver can identify non-text portions.
12448 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12449 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12450 grotty/tty.ps (tty_printer::set_char): Additional parameter
12453 * include/printer.h: Class printer: New function
12454 set_char_and_width; new variables (is_char_named, is_named_set,
12455 named_command, named_char_s, named_char_n) to hold information
12456 about named characters -- needed by the html driver.
12458 * libdriver/printer.cc (printer::set_ascii_char,
12459 printer::set_special_char): Use set_char_and_width.
12461 * devhtml/*: New device files for html driver.
12463 * grohtml/*: New driver grohtml.
12465 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12467 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12470 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12472 * libgroff/string.cc (search): Small fix to test against NULL
12475 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12477 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12478 \b'abc') were stacked in reverse order when processed in a
12481 * troff/node.h: Added `*last' to struct `node' to make the above
12484 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12485 The default scale for the 'f' and 't' graphics functions were 'm'
12486 rather than 'u' (i.e., no scaling).
12488 1999-09-11 Peter Miller <peterm@jna.com.au>
12490 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12491 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12492 defining include paths.
12494 * soelim/soelim.cc (include_path_append): New function.
12496 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12498 * tbl/main.cc (process_options): Unix (at least Documenter's
12499 Workbench) tbl allows arbitrary non-alpha characters between
12502 1999-09-11 Paul Eggert <eggert@twinsun.com>
12504 Y2k fixes. Don't assume that the current year precedes 2000.
12506 * doc/meref.me: Add \n(y2, \n(y4.
12508 * tmac/doc-common (Yr): New number register.
12509 (Dd): Don't assume current year precedes 2000.
12511 * tmac/tmac.e (td): Likewise.
12512 (y2, y4): New number registers.
12514 * pic/pic.man: Update reference for pic paper to May, 1991
12517 1999-09-11 Werner LEMBERG <wl@gnu.org>
12519 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12520 Removed quotation marks which prevented correct expansion of
12523 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12525 1999-09-10 Werner LEMBERG <wl@gnu.org>
12527 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12530 * Removed configure.old.
12532 1999-08-31 Werner LEMBERG <wl@gnu.org>
12534 * VERSION: Updated to 1.11.1
12536 1999-05-27 Werner LEMBERG <wl@gnu.org>
12538 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12540 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12541 added quotations around $(tmac_wrap) to avoid syntax error if
12544 * configure: Newly generated using autoconf 2.13.
12546 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12548 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12550 * README, PROJECTS, NEWS, INSTALL, VERSION,
12551 doc/Makefile. doc/pic.ms, groff/groff.man:
12552 Prepare for 1.11 release. No code changes.
12553 Documentation for pic added (doc/pic.ms).
12555 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12557 * Version 1.10 released.
12559 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12561 * afmtodit/afmtodit.pl: Avoid comment on first line.
12563 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12565 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12566 * configure.in: Call it.
12568 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12569 (distfiles): Doesn't depend on config.log or config.cache.
12571 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12573 * grog/grog.sh: Use print "" rather than print in END rule.
12575 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12577 * tbl/main.cc (process_data): Don't give error for excess data
12578 entries that are comments.
12580 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12582 * tbl/main.cc (process_data): Fix case where new for-scope rules
12583 silently change meaning of code.
12585 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12587 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12588 of non-zero hyphenation codes.
12590 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12592 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12594 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12596 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12598 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12600 * tmac/tmac.andoc: Make it work in compatibility mode.
12602 * refer/token.h (token_info::is_range_sep): New function.
12603 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12604 * refer/ref.cc (reference::output): More sophisticated check for
12607 * devps/prologue.ps (MANUAL): New procedure.
12608 * grops/ps.cc (main): New -m option.
12609 (usage): Include -m.
12610 (ps_printer::~ps_printer): Implement -m.
12612 * aclocal.m4 (GROFF_G): New macro.
12613 * configure.in: Call it.
12614 * Makefile.in (g): Provided by configure.
12616 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12618 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12621 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12622 (tmac_m, tmac_s): Deleted.
12623 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12624 tmac_s_prefix): New variables.
12625 (MDEFINES): Change accordingly.
12626 * Makefile.comm (.man.n): Use new TMAC_* variables.
12627 * configure.in (GROFF_TMAC): Call.
12628 * aclocal.m4 (GROFF_TMAC): Define.
12629 * tmac/Makefile.sub (stamp_wrap): New target.
12630 (install_data, uninstall_sub): Handle macro wrapping.
12632 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12634 * tbl/main.cc (main): Ignore -T option.
12636 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12638 * devlj4/generate/special.map: Add definition of \(nb.
12640 * tmac/tmac.dvi: Add definition of \(nb.
12642 * troff/dictionary.c (dictionary::dictionary): association::v gets
12643 initialized by association::association.
12645 * tmac/Makefile.sub: Avoid using temporary files when installing.
12647 * troff/env.cc (environment::set_font): Make bad font number a
12650 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12652 * Makefile.in (datadir): Use share rather than lib.
12654 * groff/groff.cc (basename): Rename to xbasename.
12656 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12658 * Makefile (CCLIBS): Don't use.
12659 * Makefile.ccpg: Likewise.
12661 * acgroff.m4: Rename to...
12662 * aclocal.m4: Modify extensively for autoconf 2.
12663 * configure.in: Likewise.
12664 * Makefile.in: Likewise.
12666 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12668 (xstrsignal): Check for definition of NSIG. Conditionalize
12669 on SYS_SIGLIST_DECLARED. Make return type const.
12671 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12673 * troff/input.cc (interpolate_macro): Rephrase missing space
12676 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12678 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12679 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12680 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12681 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12682 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12683 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12684 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12685 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12686 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12687 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12688 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12691 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12693 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12695 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12697 (macro_iterator::macro_iterator): Add additional argument.
12699 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12701 * troff/div.cc (vertical_size::vertical_size): In place of integer
12702 specifying line spacing use cunits specifying post vertical
12704 (macro_diversion::output, top_level_diversion::output): Likewise.
12705 * troff/div.h: Change declarations accordingly.
12706 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12708 (pending_output_line::pending_output_line,
12709 pending_output_line::output, environment::output,
12710 environment::output_line, environment::output_title,
12711 environment::hyphenate_line): In place of
12712 integer specifying line spacing use cunits specifying post vertical
12714 (environment::environment): Add post_vertical_spacing and
12715 prev_post_vertical_spacing arguments.
12716 (environment::get_post_vertical_spacing): New function.
12717 (environment::total_post_vertical_spacing): New function.
12718 (environment::post_vertical_spacing): New function.
12719 (init_env_requests): Initialize pvs request and .pvs register.
12720 * troff/env.h: Change declarations.
12722 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12724 * tmac/tmac.pspic: Immediately remove the temporary file.
12726 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12728 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12729 height is specified.
12731 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12733 * tbl/table.c (struct vertical rule, class table_entry): Use int
12734 not short for start_row and end_row.
12736 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12738 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12740 (diverted_space_node::reread, process_input_stack): Call
12741 trapping_blank_line() rather than blank_line().
12742 (init_input_requests): Bind "blm" to blank_line_macro().
12744 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12746 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12748 * troff/env.cc (environment::possibly_break_line): Require that
12749 width total excluding width of final space node be greater than
12750 the target text length.
12752 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12754 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12756 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12758 * troff/node.cc (charinfo_node): New class.
12759 (glyph_node, composite_node): Derive from charinfo_node. Change
12760 member functions accordingly.
12762 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12764 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12766 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12768 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12770 * devps/generate/textmap (notsubset): Add.
12772 * tmac/tmac.a4: New file.
12774 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12776 * pic/main.cc (had_parse_error): New variable.
12777 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12779 (main): Return 1 if had_parse_error is true.
12781 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12783 * grolj4/lj4.cc (main): Avoid use of strtoul.
12785 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12787 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12788 iso_8859_1 or $LESSCHARSET is latin1.
12790 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12792 * hpftodit: New directory.
12793 * Makefile.in (CCPROGDIRS): Add hpftodit.
12794 * devlj4/generate: New directory.
12796 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12798 * configure.in: Don't use AC_VFORK.
12799 * groff/pipeline.c (run_pipeline): Use fork() always.
12801 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12803 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12805 * Makefile.in (CCPROGDIRS): Add grolj4.
12806 (DEVDIRS): Add devlj4.
12807 * grolj4, devlj4: New directories.
12808 * tmac/troffrc: Handle lj4.
12809 * tmac/tmac.lj4: New file.
12811 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12813 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12815 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12817 * troff/input.cc (do_if_request): At end of second string, switch
12818 environments before getting next token.
12820 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12822 * devps/psstrip.sed: Split rule that strips whitespace on either
12823 side of delimiters.
12825 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12827 * troff/node.h (font_family::make_definition): Add return value to
12828 declaration. * troff/symbol.h (symbol::operator==,
12829 symbol::operator!=): Likewise.
12831 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12833 * groff/groff.cc (main, help, synopsis): Handle -S.
12834 (possible_command::insert_arg): New function.
12836 * tmac/tmac.safer: New file.
12837 * tmac/msafer.man: New file.
12838 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12840 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12842 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12843 * pic/pic.y (placeless_element): Avoid unsafe operations if
12844 `safer_flag' is set.
12845 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12847 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12849 * eqn/lex.cc (get_token): Put call to add_context() in block to
12850 work around Sun C++ 4.0 bug.
12852 * include/stringclass.h (operator +): Use ?: instead of `if' to
12853 work around Sun C++ 4.0 bug.
12855 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12857 * tbl/main.cc (process_format): Accept - as a synonym for the _
12860 * libbib/index.cc (minus_one): Don't declare as const.
12862 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12864 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12866 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12868 * troff/input.cc (write_macro_request): New function.
12869 (init_input_requests): Bind write_macro_request to writem.
12871 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12873 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12876 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12878 * tmac/tmac.s (@TS): Renamed from TS.
12879 (TS): Call LP then TS again.
12880 (cov*ab-init): Alias @TS to TS.
12882 * tmac/tmac.s: Allow QP or RS to initialize.
12884 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12885 Move initializations of PS and LL here.
12886 (par@init): Don't initialize HY. Avoid changing environment 0.
12887 (par*env-init): Don't all par@reset.
12889 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12891 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12893 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12895 * Makefile.in (MDEFINES): Add LDFLAGS.
12896 (LDFLAGS): Add definition line.
12898 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12900 * troff/input.cc (get_optional_char): Split off error check into...
12901 (check_missing_character): New function.
12902 * troff/token.h: Declare it.
12903 * troff/env.cc (margin_character): Don't call get_optional_char.
12904 Only call tok.next() after making the node.
12906 * include/lib.h (getopt): Make 2nd argument char *const *.
12908 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12910 * nroff/conftest.sh: Deleted.
12912 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12914 * pic/make-dos-dist: Deleted.
12916 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12918 * devps/psstrip.sed: Strip comments before stripping trailing
12921 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12923 * Version 1.09 released.
12925 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12927 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12929 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12931 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12933 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12935 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12936 about returning without a value.
12938 * troff/charinfo.h (charinfo::get_special_translation): Cast
12939 TRANSLATE_NONE to int.
12941 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12942 test. Fix test so that it works with n unsigned.
12944 * pic/pic.y (defaults_table): Fully bracket initializer.
12945 * pic/lex.cc (lookup_keyword): Likewise.
12946 * eqn/lex.cc (token_table, def_table): Likewise.
12947 * eqn/box.cc (param_table): Likewise.
12948 * troff/input.cc (warning_table): Likewise.
12949 * libgroff/font.cc (table): Likewise.
12950 * grops/ps.cc (ps_printer::special): Likewise.
12951 * grops/psrm.cc (resource_manager::process_file): Likewise.
12952 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12953 * refer/command.cc (command_table): Likewise.
12954 * addftinfo/addftinfo.cc (param_table): Likewise.
12956 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12957 about temp's being unused.
12958 (unused): New function.
12960 * groff/pipeline.cc: Declare c_fatal.
12962 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12965 * libbib/index.cc (index_search_item::load): Prevent compiler
12966 warnings about fd_closer's being unused.
12967 (unused): New function.
12969 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12971 * troff/input.cc (copy_mode_error): Make `prefix' static.
12974 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12976 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12977 HAVE_CC_OSFCN_H and modify accordingly.
12979 * troff/input.cc (init_charset_table): radicalex overlaps
12982 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12983 udodo!hans@relay.NL.net).
12984 * groff/configure.in: Call it.
12986 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12987 * groff/configure.in: Call it.
12988 * include/lib.h: Conditionalize declaration of pclose.
12990 * troff/div.cc (last_page_number): New global variable.
12991 (top_level_diversion::begin_page): Exit if we just printed the
12993 * troff/div.h (last_page_number): Declare it.
12994 * troff/input.cc (parse_output_page_list): Set last_page_number.
12996 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12997 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12998 tmac/tmac.X: Likewise.
12999 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13000 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13002 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
13004 * tmac/doc-ditroff (hK): Remove groff specific code which
13005 prevented page-breaks between separate manual entries. If this is
13006 the first page, don't set the page number to 1.
13008 * acgroff.m4 (GROFF_POSIX): New macro.
13009 * configure.in: Use it.
13011 * troff/node.cc (class real_output_file,
13012 real_output_file::real_output_file,
13013 real_output_file::~real_output_file): Conditionalize use of
13014 popen/pclose on POPEN_MISSING.
13015 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13016 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13017 (pipe_source): Similarily.
13019 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13021 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13022 presence of declarations by trying to compile example with
13023 conflicting declarations. (gcc only gives a warning for missing
13026 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
13028 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13029 (from Ulrich Lauther).
13031 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
13033 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13035 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
13037 * indxbib/indxbib.cc (write_hash_table): Add code for case where
13038 pointers and ints have different sizes.
13040 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
13042 * tmac/tmac.s (par*env-init): Call par@reset.
13044 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
13046 * tmac/tmac.s (@IP): Switch to a new environment when diverting
13048 (par*push-tag-env, par*pop-tag-env): New macros.
13050 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
13052 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13053 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
13055 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13056 comment. Include <time.h>.
13058 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
13060 * grops/ps.cc (is_small_h, is_small_v): Deleted.
13061 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13064 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
13066 * troff/input.cc (read_request): Only print a prompt if reading
13067 from the terminal. Also clearerr on EOF if reading from the
13068 terminal. Declare isatty.
13070 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
13072 * refer/label.y: Rename map_t to map_func and extractor_t to
13075 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13077 * include/assert.h: Don't use volatile.
13078 * libgroff/assert.cc: Likewise.
13080 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13082 * troff/input.cc (abort_request): Look at character in tok before
13083 calling get_copy().
13085 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13087 * troff/troff.h (NO_RETURN): Deleted.
13088 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13089 * troff/input.cc (exit_troff): Likewise
13091 * Makefile.in: Remove `Making ...' messages since GNU make now
13094 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13096 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13098 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13099 to constant 1 inch.
13101 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13103 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13105 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13107 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13108 MARK_REG if there was no left delimiter.
13110 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13112 * pic/troff.cc (troff_output::text): Set line thickness to
13113 relative before outputting text.
13115 * tmac/tmac.e (@k): Don't zero ?T.
13118 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13120 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13122 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13124 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13127 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13129 * troff/input.cc (ignoring): New variable.
13130 (ignore): Set ignoring during call to do_define_macro.
13131 (do_define_macro): Clear ignoring before interpolating terminating
13133 (copy_mode_error): New function.
13134 (get_char_for_escape_name, read_long_escape_name,
13135 interpolate_arg): Use copy_mode_error.
13136 (warning_table): Add WARN_IG.
13137 * troff/troff.h (WARN_IG): Declare.
13138 (WARN_TOTAL): Change accordingly.
13140 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13141 * groff/groff.cc (strsignal): Delete declaration.
13143 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13145 * troff/div.cc (page_offset): Use 'm' as default scaling.
13147 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13149 * nroff/nroff.sh: Ignore -u.
13151 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13153 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13155 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13157 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13159 (B2): With -Tascii, leave additional vertical space before
13160 and after. Ensure that the left and right indent is restored to
13161 what it was even if the point size changes. Don't call
13162 par@finish. Change the indent, line length and title length
13163 directly. With -Tascii, make the width of the box 1n less.
13164 (B1): Remember 1n at the current point size. Don't call
13165 par@reset. Change the indent, line length and title length
13166 directly. Ensure that the temporary indent is preserved.
13167 (par*box-mark-top): Turn off no spacing mode.
13169 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13171 * Makefile.in (dist): Use .gz suffix.
13173 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13175 * troff/input.cc (main): Add return 0.
13176 * pic/main.cc (main): Use return instead of exit.
13177 * tbl/main.cc (main): Likewise.
13178 * eqn/main.cc (main): Likewise.
13179 * grops/ps.cc (main): Likewise.
13180 * grotty/tty.cc (main): Likewise.
13181 * groff/groff.cc (main): Likewise.
13182 * grodvi/dvi.cc (main): Likewise.
13183 * refer/refer.cc (main): Likewise.
13184 * indxbib/indxbib.cc (main): Likewise.
13185 * lkbib/lkbib.cc (main): Likewise.
13186 * soelim/soelim.cc (main): Likewise.
13187 * addftinfo/addftinfo.cc (main): Likewise.
13188 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13189 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13191 * troff/token.h (process_input_stack): Don't declare as static.
13192 * troff/input.cc: Likewise.
13194 * troff/node.c (invalidate_fontno): Make it a static member of
13195 class font_family. Change callers.
13196 * troff/node.c: Change declaration.
13198 * tbl/main.cc (struct input_entry_format): Add explicit public
13200 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13201 struct double_hline_stuff): Likewise.
13202 * tbl/table.h (struct entry_format): Likewise.
13203 * pic/object.h (struct saved_state): Likewise.
13205 * include/stringclass.h: Add forward declarations of friend
13206 functions that are later declared as inline. Don't include inline
13207 specifier in friend declaration.
13209 * libgroff/lib.h: Declare popen and pclose.
13210 * acgroff.m4 (GROFF_POPEN): New macro.
13211 * configure.in: Call it.
13213 * include/lib.h (PI): New constant. Undef first if necessary.
13214 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13215 * grops/ps.cc (degrees, radians): Likewise.
13216 * libgroff/font.cc (font::get_skew): Likewise.
13218 * grops/ps.cc (is_ascii): New function.
13219 (ps_output::put_string): Use is_ascii. Use csprint rather than
13221 (ps_printer::define_encoding): Use csspace.
13222 * libgroff/strtol.c (ISASCII): New macro.
13223 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13224 Use ISASCII rather than isascii.
13225 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13226 * libgroff/cset.cc: Likewise.
13227 * libdriver/input.cc: Include cset.h.
13228 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13231 * refer/refer.cc (main): Use %ld rather than %d for longs.
13233 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13236 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13238 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13240 * troff/input.cc (hyphenation_code): Skip white space between
13243 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13245 * tbl/table.h (table::entry_list_tailp): New member.
13246 (table::table): Initialize it.
13247 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13250 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13252 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13253 with negative horizontal positions. Remove casts of glyph::hpos to
13255 (USHRT_MAX): Delete definition.
13256 (SHRT_MAX, SHRT_MIN): New definitions.
13257 (glyph::hpos): Change type to short.
13258 (tty_printer::end_page): Output multiple backspaces if necessary.
13259 Remove casts of glyph::hpos to int.
13261 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13263 * tmac/tmac.s (@RT): New definition.
13265 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13267 * refer/refer.cc (do_file): Make sure current_filename is set when
13270 * pic/common.cc (common_output::dot_line): Handle zero length
13273 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13275 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13276 (par@init): Initialize \n[HY].
13278 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13280 * troff/dictionary.cc (dictionary::remove): Continue when
13283 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13285 * Makefile.com (.y.cc): Avoid ending up with two versions of
13288 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13290 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13291 (\(,C): Likewise. Also fix typo.
13293 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13295 * lib.h: Delete extraneous semi-colon.
13297 * Add pso request: `so' from a pipe.
13298 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13299 (file_iterator::close): New function.
13300 (file_iterator::~file_iterator, file_iterator::next_file): Use
13301 file_iterator::close.
13302 (file_iterator::backtrace): Say `process' rather than `file' when
13303 the stream is popened.
13304 (pipe_source): New function.
13305 (init_input_requests): Bind ".pso" to pipe_source.
13307 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13309 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13311 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13312 digits in lower case.
13314 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13316 * Version 1.08 released.
13318 * Makefile.in (dist): Insert || true after ln -s commands that
13321 * mm: Update to mm 1.16.
13323 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13324 * configure.in: Call GROFF_CSH_HACK. Substitute for
13326 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13328 * nroff/Makefile.sub (nroff): New target.
13329 (install_data): Install nroff.
13330 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13331 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13333 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13335 * eqn/Makefile.sub (neqn): Add chmod +x.
13337 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13339 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13341 * troff/input.cc (string_iterator::string_iterator()): Initialize
13344 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13346 * troff/div.cc (macro_diversion::space,
13347 top_level_diversion::space): Don't set high_water_mark.
13348 (macro_diversion::output, top_level_diversion::output): Don't
13349 include post line space in high water mark.
13351 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13353 * eqn/eqn.y: Don't define YYDEBUG.
13354 * pic/pic.y: Likewise.
13356 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13358 * tmac/tmac.e ([3): Add space after comma following editors.
13359 Change double spaces to single spaces.
13360 ([4): Change double spaces to single spaces.
13362 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13363 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13364 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13365 after %!PS-Adobe- (for Newsprint).
13367 * troff/div.cc (top_level_diversion::begin_page): When
13368 before_first_page is 1, set page_number to 1.
13370 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13372 * eqn/box.cc (box::top_level): Protect equation with \&.
13374 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13376 * groff/groff.cc (possible_command::set_name): Delete old name.
13378 * groff/groff.cc (possible_command::~possible_command): Use
13381 * troff/node.cc (troff_output_file::begun_page): New member.
13382 (troff_output_file::troff_output_file): Initialize it.
13383 (troff_output_file::really_begin_page): Only output V command if a
13384 page has been begun.
13386 * pic/pic.y (placeless_element): Delete argument to PRINT after
13389 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13391 * Make wrapman work.
13392 * troff/div.h (class top_level_diversion): Replace
13393 first_page_begun by before_first_page (with opposite sense).
13394 * Change first_page_begun to before_first_page inverting sense.
13395 * troff/div.cc (class nl_reg): New class.
13396 (init_div_requests): Use class nl_reg for \n(nl.
13397 (top_level_diversion::begin_page): Don't call
13398 output_file::begin_page if before_first_page is 2;
13399 reset before_first_page afterwards. If have_next_page_number is
13400 false, then always increment page_number.
13401 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13402 Restore compatibility mode after loading, and then disable
13403 compatibility mode in TH.
13405 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13407 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13409 * troff/node.h (output_file::trailer): Declare.
13410 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13411 * troff/node.cc (output_file::trailer): New function.
13412 (troff_output_file::~troff_output_file): Move most code into...
13413 (troff_output_file::trailer): New function.
13414 (class troff_output_file): Delete page_length member. Declare
13416 (troff_output_file::really_begin_page): Use current page length
13417 for final V command.
13419 * tbl/main.cc (struct options): New decimal_point_char member.
13420 (options::options): Initialize this.
13421 (process_options): Implement decimalpoint option.
13422 (process_data): Pass decimal_point_char option to table::table.
13423 * tbl/table.h (class table): New decimal_point_char member.
13424 (table::table): Add additional argument.
13425 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13426 second argument specifying decimal point character. Use this
13428 (table::table): Initialize decimal_point_char.
13429 (table::add_entry): Change call to find_dot.
13431 * troff/input.cc (get_copy, token::next): Implement \V.
13432 (interpolate_environment_variable): New function.
13434 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13436 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13437 * pic/pic.y: Likewise.
13439 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13441 * refer/ref.cc (reference::insert_field, reference::delete_field):
13443 * troff/number.cc (parse_term): Likewise.
13445 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13446 * configure.in: Use GROFF_PROG_YACC.
13448 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13450 * Makefile.in (OPTIMIZE): New define.
13451 (DEBUG): Empty by default.
13452 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13454 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13455 (GROFF_ARRAY_DELETE): Likewise.
13456 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13458 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13460 * devps/psstrip.sed: Use different delimiter on last line (so that
13461 it works with BSD 4.4 sed.)
13463 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13465 * devps/psstrip.sed: Delete comments.
13467 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13468 optind, opterr, optarg.
13469 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13472 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13474 * Makefile.in (check): Dummy target.
13476 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13478 * Version 1.07 released.
13480 * Integrate mm 1.11.
13482 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13483 where start_col was meant.
13485 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13487 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13489 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13491 * troff/input.cc (token::next): Make \z\o'...' and similar things
13494 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13496 (environment): Add margin_character_flags member.
13497 * env.cc (environment::environment(symbol),
13498 environment::environment(const environment *): Initialize
13499 margin_character_flags.
13500 (margin_character): Rewrite.
13501 (environment::output_line): Add a margin character if
13502 margin_character_flags is non-zero. Turn off the
13503 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13504 zero, use margin_character_node without copying and then set
13505 margin_character_node to 0.
13507 * devps/DESC.in: Change minimum size to 1000.
13509 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13511 * troff/symbol.h (symbol::hash): Change return type to unsigned
13513 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13516 * test-groff: Use -r rather than -x.
13518 * grops/psfig.diff: Include in distribution again.
13520 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13522 * Makefile.in (dist): Use gzip.
13524 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13526 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13527 unistd.h as well as in stdlib.h.
13528 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13529 defined; otherwise include <sys/types.h> and <unistd.h> if
13530 UNISTD_H_DECLARES_GETOPT is defined.
13532 * configure.in: use builtin(include, ... rather than include(...
13533 * configure: Regenerate with autoconf 1.3.
13535 * libdriver/print.cc (printer::adjust_arc_center): Use new
13536 algorithm suggested by Andy Fyfe.
13538 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13539 * include/printer.h: Declare this.
13540 * grops/ps.cc (ps_printer::draw): Use it.
13541 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13543 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13545 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13547 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13549 * eqn/main.cc (main): Handle "eqn -".
13551 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13553 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13555 * mm: Integrate version 1.08.
13557 * pic/troff.cc (troff_output::finish_picture): Set
13558 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13559 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13560 if it's not defined. Check whether the register is non-zero rather
13561 than whether it's not defined.
13562 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13564 * indxbib/indxbib.cc: Move all signal handling into...
13565 * indxbib/signal.c: New file.
13566 * configure.in: Call AC_RETSIGTYPE.
13568 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13569 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13570 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13572 * troff/input.cc (token::token, token::operator=): Work round SGI
13574 * pic/object.cc (position::position): Likewise.
13576 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13578 * pic/pic.h: Move declaration of hypot().
13580 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13582 * pic/pic.h: Declare hypot().
13584 * pic/pic.h: Define M_PI if necessary.
13586 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13588 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13591 * devps/prologue.ps (RE): Handle the possibility that the old font
13592 doesn't have a FontName entry.
13594 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13596 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13597 (@C): Use @fam not fam.
13599 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13601 * lookbib/lookbib.cc (main): Change type of start to const char *.
13602 * lkbib/lkbib.cc (main): Likewise.
13604 * eqn/lex.cc (definition::definition): Don't use member
13605 initializer syntax for members of anonymous unions.
13607 * troff/input.cc (input_stack::backtrace): Change type of to const
13610 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13612 * include/stringclass.h (class string): Declare inline friend
13613 functions as inline in class declaration.
13614 * troff/hvunits.h (class hunits, class vunits): Likewise.
13615 * include/refid.h (class reference_id): Likewise
13616 * troff/troff.h (points_to_units(units), scale(units, double)):
13617 Delete declarations.
13618 * libdriver/input.cc (get_char): Delete declaration.
13619 * include/lib.h: Change 2nd argument of getopt from const char **
13621 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13622 char **' before assigning to a `const char **'.
13623 * tbl/table.cc: Delete extra declarations of prints().
13625 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13627 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13628 char **' before assigning to a `const char **'.
13630 * libgroff/errarg.cc (errarg::errarg): Don't use member
13631 initializer syntax for members of anonymous unions.
13633 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13635 * mm: Integrate version 1.07.
13637 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13639 * troff/input.c (translate2): Rename to
13640 (translate_no_transparent).
13641 (init_input_requests): Rename tr2 to trnt.
13643 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13645 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13646 (charinfo::set_translation, charinfo::set_special_translation):
13647 Add second argument that specifies value for
13648 transparent_translate.
13649 (charinfo::get_translation, charinfo::get_special_translation):
13650 Add optional second argument that specifies whether translation is
13651 being used for transparent throughput.
13652 * troff/input.cc (charinfo::set_translation,
13653 charinfo::set_special_translation): Handle second argument.
13654 (charinfo::charinfo): Initialize transparent_translate.
13655 (translate): Split main part off into
13656 (do_translate): New function. Pass argument saying whether
13657 translation applies to transparent throughput.
13658 (translate2): New request.
13659 (init_input_requests): Bind translate2 to `tr2'.
13661 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13663 * tbl/table.h (class table): Add `nokeep' flag.
13664 * tbl/main.cc (process_options): Handle `nokeep' option.
13665 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13666 table::do_bottom): Don't output keep/release macro definitions or
13667 calls when `nokeep' option has been specified.
13669 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13671 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13673 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13675 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13676 block_entry::divert, alphabetic_block_entry::divert): Add extra
13677 argument giving column separation.
13678 (table::compute_widths): Pass column separation to
13679 table_entry::divert().
13680 (block_entry::do_divert): If an entry spans multiple columns and a
13681 minimumum width has been specified for each column, then set the
13682 line length to the sum of the widths (plus possibly the column
13685 * troff/input.cc (set_escape_char): Don't set the escape_char
13686 until after calling has_arg().
13688 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13690 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13693 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13694 in case where r > nrows - 1.
13696 * tbl/table.cc (BODY_HEIGHT): Deleted.
13697 (LINE_SEP): New definition.
13698 (table::print_single_hline, table::print_double_hline,
13699 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13700 table::do_row, table::do_top): Use LINE_SEP space before a line
13701 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13703 * tbl/table.cc (text_entry::print_contents): New function.
13704 (text_string_name, right_text_string_name): Deleted.
13705 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13706 (simple_text_entry::do_width, numeric_text_entry::do_width,
13707 alphabetic_text_entry::do_width): Don't store the contents of the
13709 (left_text_entry::simple_print, right_text_entry::simple_print,
13710 center_text_entry::simple_print,
13711 alphabetic_text_entry::simple_print,
13712 numeric_text_entry::simple_print): Print the entry directly
13713 instead of using the stored string.
13715 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13717 * devps/Makefile: Strip PostScript files.
13718 * devps/prologue: Rename to...
13719 * devps/prologue.ps.
13720 * devps/psstrip.sed: New file.
13721 * devps/download: Use .pfa rather than .ps for installed versions
13724 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13726 * troff/env.cc (input_trap): Give a warning if the argument is out
13729 * troff/env.cc (adjust): Treat negative argument as missing. Round
13730 argument > 5 down to 5.
13732 * troff/env.cc (center, right_justify): Make negative argument zero.
13734 * troff/div.cc (page_offset, vertical_position_traps): Treat
13735 invalid argument as missing.
13736 * troff/env.cc (line_spacing, line_length, title_length, indent,
13737 underline, hyphen_line_max_request, control_char,
13738 no_break_control_char, widow_control_request, adjust, input_trap,
13739 point_size): Likewise.
13740 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13741 constant_space): Likewise.
13742 * troff/input.cc (compatible, shift, warn_request,
13743 set_escape_char): Likewise.
13745 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13746 * tbl/table.cc (table::table): Likewise.
13748 * Makefile.dev (install_dev): depends on $(DEVFILES).
13750 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13752 * devX75, devX75-12, devX100, devX100-12: New directories.
13753 * Makefile.in: Add these to DEVDIRS.
13755 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13756 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13757 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13758 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13760 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13761 (uninstall): New target.
13762 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13763 uninstall_prog, uninstall_dev): New targets.
13765 * troff/div.cc (return_request): Treat an invalid argument as
13768 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13770 * tmac/tmac.e ((f): Set up the environment even when there's a
13771 current diversion. Transperently throughput a call to @N.
13774 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13776 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13777 up to vertical resolution.
13779 * tbl/table.cc (table::do_row): Change row number after printing
13782 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13784 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13786 * Rename CHANGES to NEWS.
13788 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13790 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13792 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13794 * man.ultrix: Removed.
13796 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13798 * Makefile.comm (extraclean): Delete files whose names begin with
13801 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13804 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13806 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13807 * troff/div.cc (page_length, need_space, space_request): Treat
13808 invalid optional argument as missing.
13809 * troff/env.cc (number_lines): If the first argument is present
13810 but not a number, turn on line numbering, don't change the next
13811 line number and parse the remaining arguments.
13813 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13815 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13817 * eqn/box.h: Change declaration accordingly.
13818 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13819 the specified size was bad but don't give an error. Check for
13821 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13822 * eqn/lex (do_size): Likewise.
13824 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13826 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13827 compatible headers.
13829 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13831 * tbl/table.cc (table::init_output): Improve error message when
13832 table won't fit on one page.
13834 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13836 * pic/troff.cc (troff_output::start_picture): Generate line
13837 containing a horizontal motion equal to the width of the picture.
13839 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13840 using GROFF_COMMAND_PREFIX environment variable.
13842 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13844 * mdate.sh: Use $NF rather than $(NF).
13846 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13848 * pic/main.cc (main): Use %1 not %c in argument to warning.
13850 * eqn/main.cc (main): Output code to check that geqn was given the
13853 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13855 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13856 `ln -s ../Makefile .; make; rm -f Makefile'.
13858 * troff/hyphen: Rename to...
13860 * troff/input.cc (main): Delete -H option. Don't call
13861 read_hyphen_file().
13862 * troff/env.cc: Include searchpath.h and macropath.h.
13863 (exception_dictionary): Deleted.
13865 (read_hyphen_file): Deleted.
13866 (hyphenation_language): New struct.
13867 (class trie, class hyphen_trie): Move declarations up.
13868 (trie_node::~trie_node): Deleted.
13869 (trie::delete_trie_node): New function.
13870 (trie::do_delete): New pure virtual function.
13871 (hyphen_trie::do_delete): New function.
13872 (trie::~trie): New function.
13873 (hyphen_trie::~hyphen_trie): New function.
13874 (trie::clear): No need to chcek that tp is not 0.
13875 (current_language, language_dictionary): New variables.
13876 (hyphen_word): Give an error if no current language. Use
13877 exceptions dictionary in current language.
13878 (hyphen_trie::read_patterns_file): Find file using macro_path.
13879 Allow comments (starting with %) in patterns file. Don't make it
13880 a fatal error if the file can't be found.
13881 (hyphenate): Return if no current language. Get the exceptions
13882 dictionary and the hyphenation patterns from the current language.
13883 (set_hyphenation_language): New variable.
13884 (hyphenation_patterns_file): New function.
13885 (hyphenation_language_reg): New class.
13886 (hyphenation_language_reg::get_string): New function.
13887 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13888 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13890 * groff/groff.cc (main, help, synopsis): Delete -H option.
13891 * include/Makefile.sub: Don't define HYPHENFILE.
13892 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13893 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13894 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13895 hyphenation patterns.
13897 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13899 * eqn/neqn.sh: New file.
13900 * eqn/Makefile.sub: Handle neqn.sh.
13902 * eqn/eqn.h: Declare `nroff' variable.
13903 * eqn/box.cc (param_table): Add `nroff' param.
13904 (nroff): Define it.
13905 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13907 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13909 * troff/troff.h (WARN_FONT): New warning.
13910 (WARN_TOTAL): Change accordingly.
13911 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13912 (warning_table): Add WARN_FONT.
13913 * troff/node.cc (mount_font_no_translate): Pass argument to
13914 font::load_font. If this is non-zero, give a warning.
13915 Don't give an error message when accessing a font that has already
13916 been found to be invalid.
13917 * include/font.h (font::load, font::load_font): Add additional
13918 optional argument which suppresses error message if the font is
13920 * libgroff/font.cc (font::load_font): Handle additional argument.
13921 (font::load): Add additional argument. If this is non-null, set it
13922 to 1 and don't give error message.
13924 * include/printer.h (printer::end_page): Add argument giving
13926 * libdriver/input.cc (do_file): Pass this.
13927 * grops/ps.cc (ps_printer::end_page): Add argument.
13928 * grodvi/dvi.cc (dvi_printer::end_page,
13929 draw_dvi_printer::end_page): Add argument.
13930 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13931 columns_per_page members. New member nlines.
13932 (DEFAULT_LINES_PER_PAGE): Deleted.
13933 (tty_printer::tty_printer): Don't compute lines_per_page from
13934 font::paperlength. Don't compute columns_per_page from
13936 (tty_printer::add_char): Don't check horizontal position against
13937 columns_per_page. Grow glyphs vector if neccessary.
13938 (tty_printer::end_page): Add argument giving page_length in units.
13939 Discard lines past end of page.
13941 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13943 * tmac/tmac.tty-char: Fix definition of \(/l.
13945 * tmac/tmac.X: Define \(en.
13947 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13949 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13950 lpq, then use lp rather than lpr.
13952 * tmac/tmac.s (par@reset): Don't call `ad'.
13953 (par*env-init): Call `ad'.
13955 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13957 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13960 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13961 * indxbib/indxbib.cc: Likewise.
13963 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13965 * libgroff/putenv.c: New file.
13966 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13967 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13968 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13969 stdlib.h with AC_HAVE_HEADERS.
13971 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13973 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13976 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13978 * eqn/box.cc (gsize): Make it an int.
13979 (set_gsize): Parse argument handling increment or decrement.
13980 (box::top_level): Convert gsize to a string.
13982 * troff/input.cc (exit_troff): Make buf unsigned char [].
13983 Call to make_temp_iterator casts buf to char*.
13985 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13987 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13988 * Makefile.cpg (depend.temp): Likewise.
13990 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13992 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13994 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13996 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13998 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
14000 * Version 1.06 released.
14002 * Integrate mm 1.04.
14004 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
14006 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14008 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
14010 * afmtodit/afmtodit.pl: Add -n option that disables generation of
14012 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14013 afmtodit. Regenerate.
14015 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14016 @f back past the current position.
14018 * tmac/tmac.e: Change calls to @R so that comments are not part of
14021 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
14023 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14025 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14026 check that we can link a call to a function declared in <stdio.h>.
14027 (GROFF_UNISTD_H): New macro.
14028 * configure.in: Call it.
14029 * Makefile.in: Document it.
14030 * include/posix.h: New file.
14031 * troff/troff.h: Don't include <osfcn.h>
14032 * troff/input.cc: Include posix.h.
14033 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14035 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14036 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14038 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14039 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14040 * libbib/search.cc (O_RDONLY): Delete definition.
14041 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14042 Don't include <osfcn.h>.
14044 * acgroff.m4 (GROFF_TIME_T): New macro.
14045 * configure.in: Call it.
14046 * Makefile.in: Document it.
14048 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14049 * configure.in: Call it.
14050 * Makefile.in: Document -DTRADITIONAL_CPP.
14051 * include/ptable.h: Don't include generic.h.
14052 (name2): Define it.
14054 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14055 Afterwards remove [T1 and [T2.
14056 (ref*spec!0, ref*spec!2): Use T1 rather than T.
14057 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14058 (ref*add-T2): Renamed from ref*add-T.
14059 (ref*add-T1): New macro.
14061 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
14063 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14065 * libbib/index.cc: Include <fcntl.h>.
14066 (O_RDONLY): Define if necessary.
14067 (make_index_search_item, index_search_item_iterator::get_tag,
14068 index_search_item::check_files): Use O_RDONLY.
14069 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14070 (O_RDONLY): Define if necessary.
14071 (search_list::add_file): Use O_RDONLY.
14072 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14074 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14077 * libbib/index.cc (S_ISREG): Define it if necessary.
14078 (index_search_item::load): Use S_ISREG.
14080 * include/driver.h: Include <errno.h>.
14082 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14084 * eqn/box.cc (body_height): Increase default value to 85.
14085 (body_depth): Increase default value to 35.
14087 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14089 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14090 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14091 protected from expansion with \E.
14093 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14095 * Makefile (Makefile): New target.
14097 * Makefile.sub (configure, distfiles): New targets.
14099 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14102 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14104 * eqn/box.cc (param_table): Add body_height and body_depth.
14106 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14108 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14110 * psbb/Makefile.sub: Don't link with libgroff.a.
14112 * acgroff.m4 (GROFF_PUTENV): New macro.
14113 * configure.in: Call GROFF_PUTENV.
14114 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14115 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14118 * troff/env.cc (distribute_space): Rename force_forward argument
14119 to force_reverse. Reverse the list if force_reverse is true.
14121 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14123 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14125 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14126 height or depth to be negative. Guard against SUP_RAISE quantity
14129 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14131 * devps/generate/textmap: Add `an' (arrowhorizex).
14132 * tmac/tmac.ps: \(an overlaps horizontally.
14133 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14135 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14136 * devps/textmap: Add arrowvertex.
14137 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14138 updownarrow delimiters.
14139 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14141 * tbl/table.cc (simple_entry::position_vertically,
14142 block_entry::position_vertically): For a centered entry, perform
14143 the motion in two stages.
14145 * refer/refer.cc (split_punct): Don't call lookup_token if there
14148 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14150 * troff/input.cc (token::next): Delete token_node after copying
14153 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14156 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14158 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14160 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14162 * grops/ps.cc (usage): -b option takes an argument.
14164 * devps/prologue (PLG): New procedure.
14165 * grops/ps.cc (main, usage): New -g option.
14166 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14169 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14171 * include/cset.h: Include <limits.h> if we have it.
14173 * libgroff/illegal.cc: New file.
14174 * include/lib.h (illegal_input_char): Use table.
14175 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14176 * pic/lex.cc (ARG1): Renumber to 14.
14177 * eqn/lex.cc (ARG1): Likewise.
14179 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14180 (eg 1.05.90) correctly.
14182 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14184 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14185 Rename $r and $R registers to $v and $V.
14186 ($r, $R): Initialize to 0.
14187 (@v, @V): New macros.
14191 * troff/input.cc (main, usage): Add -R option that says not to
14193 * eqn/main.cc (main, usage): Rename -n to -R.
14195 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14197 * devps/DESC.in: Leave font positions 5-9 blank.
14198 * devdvi/DESC.in: Likewise.
14200 * grog/grog.pl: Handle `.PS <file' correctly.
14202 * troff/input.cc (input_stack::push): Improve error message when
14203 input stack limit exceeded.
14205 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14207 * refer/refer.cc (main): Fix typo in handling of `a' option.
14209 * refer/refer.cc (do_bib): In state START after a newline remain
14212 * groff/groff.sh: Deleted.
14213 * groff/Makefile.sub: Delete handling of groff.sh.
14215 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14216 to determine whether to use \X'ps:...'.
14217 * tmac/troffrc: Set 0p register to 0.
14218 * tmac/tmac.ps: Set 0p register to 1.
14220 * groff/groff.cc: Support -X option. Give warning for -TXps and
14221 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14222 * tmac/troffrc: Support -r.X=1.
14224 * pic/troff.cc (troff_output::dot): Don't test
14225 zero_length_line_flag.
14227 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14229 * include/lib.h: Declare getopt() and friends unless
14230 STDLIB_H_DECLARES_GETOPT is defined.
14232 * doc/chars.tr: Delete.
14233 * man/groff_char.man: New file.
14235 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14237 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14238 user has changed register format.
14240 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14242 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14243 `postpro' command in DESC file. Get spooler command from `print'
14244 command in DESC file. Execute spooler command with /bin/sh.
14246 * groff/groff.cc: Split Unix-specific parts into...
14247 * groff/pipeline.c: New file.
14250 * COPYING: New file.
14251 * all files: Update copyright notices.
14253 * Rearrange files. Redo Makefiles. Use autoconf.
14255 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14257 * troff/input.c (charinfo_to_node_list): Interpret character
14258 definition with escape_char of `\'.
14260 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14262 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14263 Define INT_DIGITS as big enough for 64-bit integer.
14264 * lib/strtol.c: Don't include lib.h.
14265 * lib/lib.h: Delete ifdef __cplusplus stuff.
14267 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14269 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14270 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14271 get DESC from current directory.
14273 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14275 * tbl/main.c (main): Always reset the line number when reading
14278 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14279 table::define_bottom_macro, table::do_row, table::do_top): Round
14280 vertical spacing up to vertical resolution.
14282 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14284 * ps/ps.h (enum resource_type): Avoid comma at end of
14286 * dvi/dvi.c (class dvi_printer): Likewise.
14287 * dvi/tfmtodit.c (gf::load): Likewise.
14288 * refer/label.y (struct expression): Likewise.
14289 * refer/refer.c (class label_processing_state): Likewise.
14290 * refer/indxbib.c (do_file): Likewise.
14291 * troff/troff.c (enum warning_type): Likewise.
14292 * tbl/main.c (process_data): Likewise.
14293 * troff/charinfo.h (class charinfo):
14295 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14297 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14299 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14301 * groff.c: Move to new groff subdirectory.
14302 * groff/Makefile: New file.
14303 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14305 * man/mdate.sh: Use ls -L if supported.
14307 * Consolidate all header files produced by gendef into lib/defs.h.
14308 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14309 Don't include path.h.
14310 * lib/Makefile (path.h): Don't generate.
14311 * troff/input.c: Include defs.h. Don't include config.h.
14312 * troff/Makefile (config.h): Don't generate.
14313 * refer/index.h: Don't include suffix.h.
14314 * refer/index.c: Include defs.h.
14315 * refer/indxbib.c: Include defs.h.
14316 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14318 * refer/Makefile (suffix.h, path.h): Don't generate.
14319 * groff.c: Don't include config.h. Include defs.h.
14320 * Makefile (config.h): Don't generate.
14321 (lib/defs.h): Generate.
14322 (topclean): Remove lib/defs.h.
14324 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14326 * lib/malloc.c, lib/getpagesize.h: Deleted.
14327 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14329 * lib/Makefile: Delete malloc-related stuff.
14330 * lib/new.c: Workaround COOKIE_BUG if necessary.
14332 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14333 needed header files directly.
14334 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14335 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14337 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14339 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14341 * lib/font (font::load_desc, font::load): Don't split argument of
14343 (font::handle_unknown_font_command): Change type.
14344 * ps/ps.c (ps_font::handle_unknown_font_command,
14345 handle_unknown_desc_command): Change type.
14346 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14348 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14350 * lib/font.h (font::handle_unknown_font_command): Add file and
14352 * lib/font.c (font::handle_unknown_font_command):
14353 * ps/ps.c (ps_font::handle_unknown_font_command):
14354 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14355 lineno arguments. Use _with_file_and_line functions for error
14358 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14360 * lib/font.c (font::set_unknown_desc_command_handler): New
14362 (font::load_desc): For unknown commands, call
14363 unknown_desc_command_handler if not null.
14364 * lib/font.h (class font): Declare them.
14365 (FONT_COMMAND_HANDLER): New typedef.
14366 * ps/ps.c (handle_unknown_desc_command): New function.
14367 (main): Set bflag if we had a -b option. Call
14368 font::set_unknown_desc_command_handler.
14369 (broken.h): Don't include.
14370 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14372 * ps/devps/Makefile: Add `broken' command to DESC file using
14373 BROKEN_SPOOLER_FLAGS.
14375 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14377 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14379 * macros/tmac.e (@R, @S): New macros.
14380 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14381 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14382 Declare $H, $[0-9], .. macros with @S.
14383 Declare |0, |1, |2, |3 strings with @S.
14385 * macros/tmac.e (@S): Rename to @U.
14387 * macros/tmac.e (@z): Define @b and bp as empty instead of
14390 * macros/tmac.e (@m): Deleted.
14391 (@h): Don't call @m.
14392 (@z): Don't set @m trap.
14394 * macros/tmac.e ($h, $f): Define |z as empty string.
14396 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14399 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14401 ()f): Likewise for * register.
14403 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14404 argument is missing, don't change $R. Call sr with three
14405 arguments when initializing.
14407 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14409 * macros/tmac.e (sr): New macro.
14410 Initialize $r and $R using sr.
14412 * macros/tmac.e (,): Delete \*(#[.
14414 * troff/env.c (set_tabs): Read the tab type even if the position
14415 is bad. Allow the position of the first tab stop to be negative.
14417 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14419 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14421 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14422 rather than -DPATHCONF_MISSING.
14423 * Makefile: Get rid of PATHCONF_MISSING.
14425 * refer/map.c: New file.
14426 * refer/index.c: Interface to mmap through map.c. Rename map_size
14428 * refer/Makefile: Handle map.c.
14429 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14431 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14433 * Makefile: RANLIB should be `true' if there is no ranlib.
14434 * lib/Makefile (libgroff.a): Simplify.
14435 * driver/Makefile (libdriver.a): Simplify.
14437 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14438 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14441 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14443 * troff/env.c (compare_ranges): Declare as extern "C".
14445 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14447 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14449 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14451 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14452 but conditionalize use of \X based on \*(.T.
14453 (grops_output::*): Deleted.
14454 * pic/output.h: Delete declaration of make_grops_output.
14455 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14456 by default. -n sets it to 0.
14457 (usage): Corresponding changes.
14458 * groff.c (main): Don't pass -x or -p to pic.
14459 * groff.sh: Likewise.
14461 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14464 * ps/devps/afmtodit: Change calculation of asc_boundary and
14465 desc_boundary. Make these bounds inclusive.
14466 * ps/devps: Regenerate font files.
14468 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14470 * macros/tmac.latin1: New file.
14471 * macros/tmac.tty-char: Use tmac.latin1.
14472 (tmac.tty-tr): Deleted.
14473 * macros/Makefile: Install tmac.latin1.
14474 * macros/tmac.dvi: Use tmac.latin1.
14475 * macros/troffrc: Translate \[char160] onto no-break space here.
14476 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14478 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14480 * macros/tmac.Xps: Use `do' request.
14482 * macros/tmac.ps: Use `do' request.
14484 * macros/tmac.e (@C): Use `do' request.
14486 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14487 * macros/Makefile: Install tmac.X*.
14489 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14490 * tty/Makefile: Don't install tmac.tty*.
14491 * macros/Makefile: Install tmac.tty*.
14493 * dvi/tmac.dvi: Move to macros.
14494 * dvi/Makefile: Don't install tmac.dvi.
14495 * macros/Makefile: Install tmac.dvi.
14497 * ps/tmac.ps*: Move to macros.
14498 * ps/Makefile: Don't install tmac.ps*.
14499 * macros/Makefile: Install tmac.ps*.
14501 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14503 * macros/eqnrc: Set draw_lines parameter based on device.
14504 * groff.c: Don't pass -D flag to eqn.
14505 * groff.sh: Likewise.
14506 * eqn/main.c: Warn about use of -D.
14508 * troff/input.c (process_startup_file): New function.
14509 (main): Call process_startup_file().
14510 * macros/troffrc: New file.
14511 * macros/Makefile: Install troffrc.
14512 * groff.c (main): Don't pass extra -m option to troff. For a
14513 pseudo device pass the name of the pseudo device to troff using
14515 * groff.sh: Likewise.
14516 * groff.c (possible_command::prepend_arg): Deleted.
14518 * troff/input.c (do_request): New function.
14519 (init_input_requests): Bind "do" to do_request.
14521 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14522 load eqnrc from macro directory.
14523 * macros/eqnrc: New file.
14524 * macros/Makefile: Install eqnrc.
14525 * ps/devps/eqnchar: Deleted.
14526 * ps/devps/Makefile: Don't install eqnchar.
14527 * dvi/devdvi/eqnchar: Deleted.
14528 * dvi/devdvi/Makefile: Don't install eqnchar.
14529 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14532 * lib/device.[ch]: New files.
14533 * lib/font.h (font::set_device_name, font::get_device_name):
14535 * lib/fontfile.c: Use device.h.
14536 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14537 * troff/input.c: Delete definition of `device'.
14538 (main): Don't initialize device.
14539 * troff/troff.h: Include device.h rather than declaring device.
14540 * troff/Makefile: No need to handle DEVICE.
14541 * driver/input.c: Include device.h. Don't use
14542 font::{set,get}_device_name.
14543 * groff.c, Makefile: Rename device.h to config.h.
14544 * groff.c: Use library device variable.
14545 * eqn/main.c: Use library device variable.
14546 * eqn/Makefile: No need to handle DEVICE.
14548 * lib/searchpath.[ch]: New files.
14549 * lib/Makefile: Handle searchpath.[ch].
14550 * troff/input.c (open_file, init_dirs): Deleted.
14551 (macro_dirs): Deleted.
14552 (open_mac_file, macro_source): Use class search_path.
14553 (add_string, struct string_list): Move definition.
14554 (main): Change -M option to use macro_path. Delete call to
14556 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14557 Rewrite to use class search_path.
14558 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14559 * lib/Makefile: fontfile.c depends on searchpath.h.
14560 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14562 * lib/macropath.[ch]: New files.
14563 * troff/Makefile: No need to handle MACROPATH.
14565 * troff/input.c: Delete DUMP code.
14566 * lib/fontfile.c, lib/font.h: Delete
14567 font::forget_command_line_font_dirs.
14569 * troff/input.c (push_token): New function.
14570 (handle_first_page_transition): Use push_token().
14571 (process_input_stack): Change handling of a space at the beginning
14574 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14576 * troff/input.c (font_dirs): Delete unused variable.
14578 * eqn/lex.c (do_set): Correct error messages.
14580 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14582 * troff/input.c (do_define_string): Allow the string name to be
14583 followed immediately by a tab.
14584 (define_character): Likewise.
14586 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14588 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14591 * troff/input.c (input_iterator::is_file): New virtual function.
14592 (file_iterator::is_file): New function.
14593 (input_stack::end_file): New function.
14594 (input_stack::next_file): Handle the situation where there is no
14595 file on the input stack correctly. Avoid making two passes over
14597 (next_file): Make the filename optional; in this case call
14598 input_stack::end_file().
14600 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14602 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14603 produce a real _ charater when the current font is CW and _
14606 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14607 expression to work around gcc 2.2 bug.
14609 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14611 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14613 * troff/env.c (environment::add_padding): New function.
14614 (environment::add_char): Use add_padding().
14615 (environment::space): Likewise.
14616 (environment::wrap_up_field): Add some padding if there is none
14617 and there's no current tab.
14618 * troff/env.h: Declare environment::add_padding.
14620 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14622 * pic/pic.y: undef fmod and rand before declaring them.
14624 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14626 * troff/input.c (main): If the DESC file specifies a font name of
14627 0, then leave the corresponding font position empty.
14629 * nroff.sh: New file.
14630 * Makefile (install.nobin): Install nroff.sh.
14632 * tty/devlatin1/R.proto: Add ao as synonym for de.
14633 * tty/tmac.tty-char: Define ao as o.
14635 * tty/dev{ascii,latin1}/R.proto: Add aq.
14636 * tty/tmac.tty-char: Delete definition of aq.
14638 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14640 * troff/input.c (init_charset_table): Don't translate 0240.
14641 * ps/tmac.ps: Translate char160 to space.
14642 * dvi/tmac.dvi: Likewise.
14643 * tty/tmac.tty: Likewise.
14645 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14647 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14649 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14650 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14653 * tty/tmac.tty-char: Add \(ah.
14655 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14656 No need to define \(FM and \(!/. Conditionalize all character
14659 * ps/devps/lgreekmap: Add +h, +f, +p.
14661 * ps/tmac.psnew: New file.
14662 * ps/Makefile: Install tmac.psnew.
14664 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14665 character definitions in compatible mode.
14667 * troff/input.c (remove_character): New function.
14668 (init_input_requests): Bind remove_character to "rchar".
14670 * ps/tmac.psold: New file.
14671 * ps/Makefile: Install tmac.psold.
14672 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14673 characters into tmac.psold. Make these definitions unconditional.
14675 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14677 * ps/tmac.ps: Don't define \('c and \('C.
14679 * ps/devps/textmap: Move Greek characters to...
14680 * ps/devps/symbolchars:
14682 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14684 * ps/devps/text.enc: Add quotesingle.
14685 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14686 * tty/tmac.tty-char: Likewise.
14687 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14688 * dvi/devdvi/texi.map: Add Fn.
14689 * dvi/devdvi/msam.map: Add lz.
14690 * dvi/tmac.dvi: Handle Bq, bq, aq.
14692 * pic/lex.c (get_token): Recognize 'th.
14693 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14695 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14697 * ps/devps/textmap: Move di, mu, +- to...
14698 * ps/devps/symbolchars:
14700 * macros/tmac.s (@XS): Don't call par@reset or fi.
14701 (XA): Call LP. Turn off adjustment. Reduce line length.
14703 * macros/tmac.s: Initially alias XS to LP.
14704 (XS): Rename to @XS.
14705 (cov*ab-init): Alias XS to @XS.
14707 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14709 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14710 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14711 (token::is_size, token::changes_env): Deleted.
14712 * troff/number.c (parse_term): No need to process \s explicitly.
14713 Call tok.next() only after scale indicator has been processed.
14714 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14716 (token::next): Handle \s, \f, \S, \H immediately rather than
14717 returning them as tokens.
14718 (token::operator==, token::description, token::add_to_node_list,
14719 token::process): Remove handling of deleted tokens.
14721 * troff/env.c (environment::add_char): When adding padding
14722 indicator character, call start_line() if necessary.
14724 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14726 * ps/devps/afmtodit: Don't output 0 kerns.
14728 * ps/devps/afmtodit: Remove directory from name of encoding in
14729 font description file.
14731 * ps/devps/afmtodit: Improve error messages.
14733 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14735 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14736 * ps/devps/FontMakefile: Deleted.
14737 * ps/devps/afmname: New file.
14739 * ps/devps/symbol.sed: New file.
14740 * ps/devps/symbol.diff: Deleted.
14741 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14742 Generate zapfdr.afm from zapfd.afm.
14744 * tty/tmac.tty (tty-char): Prefix definition with ".
14746 * macros/tmac.an (TP): Don't start a diversion if one has already
14749 * tty/tmac.tty-char: Add Latin-1 characters.
14751 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14753 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14755 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14756 Move declaration of struct horizontal_span.
14758 * tbl/table.c (table::table): Initialize span_list.
14759 (table::~table): Delete span_list.
14761 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14763 * ps/devps/Makefile: Avoid dependency on GNU make.
14765 * ps/tmac.ps: Check that character does not already exist before
14768 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14769 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14770 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14773 * tty/tmac.tty-char: New file.
14774 * tty/Makefile: Install tmac.tty-char.
14775 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14778 * tty/tmac.tty: Fix definition of \(34.
14780 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14781 bracket-drawing characters onto |. Add *o.
14783 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14784 only if current_field.
14786 * troff/dictionary.c (dictionary::lookup): Free old_table after
14789 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14791 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14792 whose glyphs are identical to glyphs of some Roman character.
14794 * tty/devlatin1/R.proto (bu): Deleted.
14795 * tty/devascii/R.proto (bu): Deleted.
14796 * tty/tmac.tty: Add definition of \(bu.
14798 * eqn/main.c (do_file): Pass FILE as argument.
14799 (main): Automatically load eqnchar. New options -F and -n.
14800 Pass do_file an opened FILE.
14801 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14802 No need to include font.h.
14803 * groff.sh: Likewise. Don't need to use - for standard input.
14804 Prefix files with -- if first file starts with -.
14806 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14808 * troff/env.c (environment::possibly_break_line): Don't set line
14809 to 0 across call to output_line(). Don't call output_line() until
14810 after discarding nodes after break.
14812 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14814 * request.h (macro::empty): Declare it.
14815 * input.c (macro::empty): New method.
14816 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14819 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14821 * troff/env.c (environment::start_field): Decrement space_total
14822 when a space is frozen.
14824 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14826 * macros/tmac.an (R): Delete macro.
14828 * troff/input.c (get_copy, token::next): Support \# (like \" but
14829 newline is ignored).
14831 * troff/input.c (token::next): Fix error message in 'Y' case.
14833 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14835 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14838 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14840 * c++test.c: Include <osfcn.h>.
14842 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14845 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14847 * tbl/table.c (table::divide_span): Don't count column separation
14848 if expand was specified.
14850 * tbl/main.c (process_format): Don't ignore width specs in
14851 continued format. Give warning for changing equal widths or
14852 column separation in continued format.
14853 (process_data): Set column separation, minimum width, equal
14854 columns at end of table.
14856 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14858 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14859 node::add_discretionary_hyphen): Use soft_hyphen_char.
14860 (set_soft_hyphen_char): New function.
14861 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14863 * Makefile (c++tested): Give more helpful message if test fails.
14865 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14867 * troff/input.c (init_charset_table): Translate 0240 to
14868 an unbreakable space.
14870 * troff/token.h (token::hyphen_indicator): New function.
14871 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14873 * troff/input.c (translate): Allow translation to \%.
14874 * troff/node.c (node::add_char): Handle
14875 TRANSLATE_HYPHEN_INDICATOR.
14876 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14878 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14881 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14883 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14885 * groff.c (run_commands): If the last command gets a SIGPIPE send
14886 a SIGPIPE to all children than haven't yet terminated. When
14887 command terminates, set pid field to -1.
14889 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14891 * groff.c (main): Pass an appropriate -filename option to gxditview.
14893 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14895 * Makefile.bd (install): Remove existing program before copying.
14897 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14898 programs which have Unix counterparts to be installed with
14899 user-specified prefix.
14901 * troff/input.c (exit_troff): Don't check if exit_started.
14902 (exit_request): Don't call exit_troff if exit_started.
14904 * Makefile.bd (install.mm): Rename to install.dwbmm.
14906 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14908 * driver/input.c (do_file): Add missing break for '#' case.
14910 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14912 * troff/input.c (input_stack::clear): Clear past any boundaries and
14913 then add the boundaries back.
14915 * troff/input.c (exit_troff): Return immediately if already
14918 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14920 (pg*end-page): If the text has ended and there are no more
14921 footnotes or keeps, exit.
14923 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14925 * troff/input.c (init_charset_table): Make \(rq transparent by
14928 * macros/tmac.an: Define lq and rq strings.
14930 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14932 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14934 * troff/env.c (environment::final_break): New function.
14935 (environment::newline): Set prev_line_interrupted to 2 if
14937 * troff/env.h: Declare environment::final_break.
14938 * troff/input.c (exit_troff): Call environment::final_break()
14939 instead of environment::do_break().
14941 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14942 doesn't already exist.
14943 * macros/man.local: New file.
14944 * macros/tmac.an: Load man.local.
14945 * macros/man.ultrix: New file.
14947 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14949 * troff/input.c (exit_groff): Rename to...
14950 (exit_troff): New function.
14952 * troff/div.c (exit_started, done_end_macro,
14953 seen_last_page_ejector): New global variables.
14954 (began_page_in_end_macro): New static variable.
14955 (exit_flag): Deleted.
14956 (top_level_diversion::top_level_diversion): Initialize
14958 (top_level_diversion): More elaborate test for whether
14959 cleanup_and_exit() should be called.
14960 Set began_page_in_end_macro if the end macro isn't yet finished.
14961 * troff/div.h (top_level_diversion::last_page_count): New data
14963 (top_level_diversion::set_last_page): New function.
14964 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14965 * troff/env.c (do_break): Zero prev_line_interrupted.
14966 * troff/input.c (exit_flag): Delete declaration.
14967 (LAST_PAGE_EJECTOR): New magic cookie.
14968 (token::next): Handle LAST_PAGE_EJECTOR.
14969 (exit_groff): Set exit_started and done_end_macro instead of
14970 exit_flag. Call top_level_diversion::set_last_page. Push a
14971 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14972 another ejection after setting seen_last_page_ejector.
14974 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14976 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14978 * macros/tmac.e (TH): Make sure there's room for the initial
14981 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14982 Set FVS in points rather than units.
14984 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14986 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14987 position of empty slots.
14989 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14991 * ps/devps/S: Fix height and depth of parenrightex.
14992 * ps/devps/symbol.diff: Regenerate.
14994 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14996 * tmac.e (u): Do underlining as in -mgs.
14998 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
15000 * tty/tty.c (tty_printer::end_page): If overstriking is
15001 suppressed, still turn overstruck horizontal and vertical lines
15004 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15007 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15009 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
15011 * Version 1.05 released.
15013 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
15015 * tty/tty.c: Instead of keeping an array of glyphs and then
15016 sorting it, keep a ordered linked list of glyphs for each line.
15018 * driver/driver.h: Include stddef.h.
15020 * tty/tty.c (compare_glyph):
15021 * refer/refer.c (rcompare):
15022 * troff/env.c (compare_ranges): Arguments of qsort comparison
15023 function should be const void *.
15025 * troff/number.c (parse_term):
15026 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15029 * refer/label.y (consider_authors): Don't access variables
15030 constructed under a condition outside that condition: put braces
15031 round for statement containing declaration; redeclare use of same
15034 * pic/pic.y (text_expr): Delete production that allows
15035 parenthesised text_expr.
15036 (expr): Allow a conditional_expr to appear in parentheses.
15037 (conditional_expr): Rename to any_expr.
15039 * mm: Install new version 1.01 from jh.
15041 * lib/font.c (font::get_width): Cache scaled widths.
15042 (font::font): Initialize widths_cache.
15043 (font::~font): Destroy widths_cache.
15044 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15046 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
15048 * c++test.c, c++test.ref: New files.
15049 * Makefile: Check that the C++ compiler works.
15051 * ps/tmac.pspic (PSPIC): Do a break.
15053 * ps/tmac.ps: Move definition of PSPIC into...
15054 * ps/tmac.pspic: New file.
15055 (PSPIC): Draw box around picture, but make it invisible to grops.
15056 * ps/tmac.ps: Load tmac.pspic.
15057 * ps/Makefile: Install tmac.pspic.
15059 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
15061 * lib/font.c (scale_round): If n is negative,
15062 subtract .5 before truncating floating point result.
15064 * lib/fontfile.c: Include <errno.h>.
15066 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
15068 * driver/input.c (get_char): Inline. Don't update current_lineno.
15069 Change callers to up date current_lineno if necessary.
15070 Use get_char() instead of getc(current_file).
15072 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
15074 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15076 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15078 * tty/tty.c (tmac.tty): Define \(rg as (R).
15080 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15082 * lib/lib.h: New define a_delete.
15083 * Use a_delete instead of delete when deleting an array of objects
15084 without destructors.
15086 * lib/lib.h: Rename adelete to ad_delete.
15087 * Change uses of adelete.
15089 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15091 * eqn/eqn.y: Include lib.h.
15093 * troff/node.c (grow_font_table): Delete old_font_table.
15095 * mm: Install new version from jh.
15097 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15099 * tbl/table.h (format_type): Make global instead of local to class
15100 entry_format. Prefix enumerators with FORMAT_.
15101 * tbl/table.c, tbl/main.c: Corresponding changes.
15102 * refer/token.h (token_type): Make global. Prefix enumerators
15104 * refer/token.[ch]: Corresponding changes.
15105 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15107 * troff/div.c (node::set_vertical_size): Don't name argument.
15109 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15111 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15112 * lib/lib.h: Define adelete accordingly.
15113 * pic/object.c (graphic_object::graphic_object):
15114 * tbl/main.c (format::~format):
15115 * tbl/table.c (table::~table):
15116 * refer/ref.c (reference::~reference, reference::merge,
15117 reference::insert_field, reference::delete_field): Use adelete.
15119 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15121 * tbl/table.h: Corresponding changes.
15123 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15124 Ensure total_angle is positive.
15126 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15128 * refer/ref.c (reference::merge, reference::insert_field,
15129 reference::delete_field): Avoid delete[0].
15131 * refer/token.c (init_special_chars): Move calls to cmupper
15132 outside calls to init_two_char_letter to work around bug in gcc
15135 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15137 * lib/new.c (operator new): Use __builtin_new for g++.
15139 * pic/object.c (graphic_object::~graphic_object): Don't use
15142 * pic/object.c (output::compute_scale): Initialize max_width and
15145 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15147 * troff/input.c (write_request): Call fflush.
15149 * troff/node.h (class composite_node): Move declaration to node.c
15150 * troff/input.c (charinfo_to_node): Rename to ...
15151 (charinfo_to_node_list): Return node list rather than composite
15153 * troff/node.c (make_composite_node): New function.
15154 (make_node, add_char): Call make_composite_node instead of
15156 (class composite_node): Add a tfont * member. Delete font_size
15158 (composite_node::composite_node, composite_node::copy,
15159 composite_node::size): Corresponding changes.
15160 (composite_node::tprint): Provide constant spacing, emboldening
15161 and track kerning as specified in tfont.
15162 (composite_node::width): Change width calculation accordingly.
15163 * troff/env.h (environment::composite): New member.
15164 (environment::is_composite, environment::set_composite): New
15166 * troff/env.c (environment::environment): Initialize composite.
15167 * troff/input.c (charinfo_to_node): Call
15168 environment::set_composite.
15169 * troff/node.c (make_composite_node, make_glyph_node): Use the
15170 plain version of the tfont if the environment is composite.
15172 * troff/node.c (font_info::get_space_width): Additional argument
15173 giving space_size. Handle constant space correctly. Scale by
15174 space_size unless constant spaced.
15175 (env_sentence_space_width): New function.
15176 * troff/node.h: Declare it.
15177 * troff/env.h (environment::get_space_size,
15178 environment::get_sentence_space_size,
15179 environment::get_narrow_space_width,
15180 environment::get_half_narrow_space_width): Make inline.
15181 (environment::get_space_width): Make inline. Just call
15183 * troff/env.c: Delete definitions for funtions made inline.
15184 (environment::space_newline, environment::space): Use
15185 env_sentence_space_width(). Don't scale by space_size.
15186 * troff/node.h: Move declarations of env*space_width() functions
15189 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15191 * macros/tmac.s (PS): Don't try to set negative indent.
15193 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15195 * pic/pic.y: Fix min function.
15197 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15199 * man/mdate.sh: Clear LANGUAGE.
15201 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15203 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15204 * pic/lex.c: New COMMAND keyword.
15205 * pic/pic.y (print_args, print_arg): New rules.
15206 (placeless_element): Use print_args for PRINT.
15207 New COMMAND element.
15209 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15211 * troff/input.c (terminal): Handle missing argument correctly.
15213 * pic/pic.y (text_expr): New rule.
15215 * pic/pic.y: Implement := operator.
15217 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15219 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15222 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15224 * ps/devps/dingbatsrmap: Include this in the distribution.
15226 * macros/tmac.doc: Replace with new version from 2nd Networking
15227 Release. Fix loading of doc-* files.
15228 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15229 * macros/tmac.doc.old: New file. Apply fixes that had been
15230 applied to old tmac.doc.
15231 * macros/tmac.andoc: Check that we're running under groff.
15232 * macros/Makefile: Rework.
15234 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15236 * tbl/table.h (format_type):
15237 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15238 typedef to make these types visible at file scope.
15239 * Makefile: Add NESTED_TYPES configuration option.
15241 * troff/div.c (mark): At the top level use the value of
15242 nl_reg_contents rather than the current vertical position.
15244 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15246 * tty/tty.c: Implement \D for horizontal or vertical lines.
15247 (tty_printer::set_char): Use vec_used+2 as serial number.
15248 Don't allow size of vector to exceed USHRT_MAX-2.
15249 Split off part into...
15250 (tty_printer::add_char): New function.
15251 (tty_printer::draw): New function.
15252 (compare_glyph): Handle equal serial numbers.
15253 (tty_printer::end_page): Handle overstruck characters from \D.
15254 (main, usage): Implement -d option.
15256 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15258 * tbl/main.c (process_format):
15259 * eqn/text.c (split_text):
15260 * troff/input.c (token::next): Use inner block for declarations
15261 with initializers in switch statement.
15263 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15265 * pic/common.c (common_output::dash_line): Cope with zero-length
15268 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15270 * Version 1.04 released.
15272 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15274 * macros/tmac.an (TH): Define a macro an-init to define variables
15275 based on command line arguments.
15276 (an-header): Call it.
15278 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15280 * Makefile (install.mm): Rename to install.dwbmm.
15282 * Makefile: Integrate mm.
15283 * mm: New directory.
15285 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15287 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15290 * pic/troff.c (troff_output::simple_spline,
15291 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15292 shadowing parameter.
15294 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15296 * lib/ptable.h: Add explicit casts when converting from unsigned
15299 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15300 * dvi/devdvi/Makefile: Install SA, SB.
15302 * refer/indxbib.c: Add declaration of mktemp.
15304 * refer/lookbib.c: Add declaration of isatty.
15306 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15308 * pic/lex.c (interpolate_macro_with_args): While collecting
15309 arguments, keep track of whether we're in a string.
15311 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15313 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15314 down with \v, so as to avoid problems with top of page trap
15315 setting no space mode.
15317 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15319 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15321 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15323 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15324 Improve error message.
15326 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15328 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15331 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15333 * groff.c (possible_command::execp): Always use _exit() after a
15336 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15337 NO_SYS_WAIT_H configuration options.
15338 * groff.c: Use these options. Use POSIX-style macros to extract
15339 fields from the status returned by wait().
15341 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15343 * tbl/table.c (table::compute_separation_factor): Allow the
15344 separation factor to drop to 0.
15346 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15348 * refer/search.c: Include <errno.h>.
15350 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15352 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15354 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15357 * pic/lex.c (input_stack::bol): Move definition out of class body.
15359 * pic/main.c: On MSDOS munge argv[0].
15361 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15363 * lib/ptable.c (hash_string): Use unsigned long rather than
15365 (next_ptable_size): Use unsigned rather than int. Give an error
15366 message if we've hit the largest table size.
15367 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15370 * pic/object.h (object_spec): Make flags unsigned long. Declare
15371 flags as const unisgned long rather than as enums.
15373 * pic/output.c: Deleted.
15375 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15377 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15378 Add additional argument.
15379 (line_entry::note_double_vrule_on_{left,right}): Set value of
15380 douvle_vrule_on_{right,left} flag according to argument.
15381 (simple_line_entry::simple_print,
15382 simple_line_entry::double_line_print): If adjacent to double vrule
15383 on a corner extend rather than shorten the rule by half the double
15386 * troff/number.c (parse_term): In checking for overflow, handle the
15387 case where the current horizontal position is negative.
15389 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15391 * pic/object.c (draw_arrow): Check for object having zero length.
15393 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15395 * eqn/main.c (do_file): Split off inline equation handling into...
15396 (inline_equation): New function. Search for starting delimiter
15398 (delim_search): New function. Don't recognize a delimiter that
15399 occurs in the name of an escape sequence, number register, string
15402 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15404 * eqn/delim.c (delim_box::compute_metrics): Don't call
15405 define_extensible_string if left is 0.
15406 (delim_box::output): Don't print the left delimiter if left is 0.
15407 (delim_box::debug_print): Check for left == 0 before calling printf.
15409 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15411 * troff/Makefile (majorminor.c): Include only digits in
15414 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15416 * refer/dirnamemax.c: new file.
15417 * refer/genlimits.c: Deleted.
15418 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15419 Don't check path length.
15420 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15421 * Makefile: Add PATHCONF_MISSING option.
15423 * refer/indxbib.c (get_cwd): New function.
15424 (main): Use get_cwd().
15425 * lib/getcwd.c: New file.
15426 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15427 GETCWD in SUBFLAGS.
15428 * lib/Makefile: Compile getcwd.o.
15430 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15433 * refer/indxbib.c (main): Check success of mktemp.
15435 * lib/tmpfile.c: New file.
15436 * lib/Makefile: Add tmpfile.c.
15437 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15438 * ps/ps.h: Delete declaration of mktemp().
15439 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15440 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15441 * driver/driver.h: No need now to include errno.h.
15443 * everywhere: Set errno to 0 before calling fopen().
15445 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15446 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15447 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15449 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15451 * troff/env.h (translate_space_to_dummy): Declare it.
15452 * troff/env.c (environment::space_newline, environment::space):
15453 If translate_space_to_dummy is set then make the width of spaces 0.
15454 * troff/input.c (translate): If the second character of a
15455 translation is a space, translate to unbreakable space. If the
15456 first character is a space, set or clear translate_space_to_dummy
15457 according to whether the second character is \&. Weird!
15459 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15461 * groff.c (run_commands): Don't use non-zero exit code because a
15462 command gets SIGPIPE.
15464 * groff.c, groff.sh: Use -mXps with -TXps.
15466 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15467 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15468 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15469 (ps_printer::special): New specials invis and endinvis.
15470 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15471 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15472 (ps_printer::end_page): Check that invis_count == 0.
15473 (ps_printer::invis_count): New member.
15474 (ps_printer::ps_printer): Initialize invis_count to 0.
15476 * troff/env.c (environment::hyphenate_line): Hyphenation
15477 indicator at beginning of word inhibits splitting after -, \(em
15480 * pic/pic.y (element): Allow another element to follow } without
15481 any intervening separator.
15483 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15485 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15487 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15489 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15490 declaration of wait() in header files.
15491 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15493 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15495 * lib/lib.h: Declare return type of strerror as char *.
15497 * man/Makefile: Add g flag to sed substitutions.
15498 * Makefile (shgroff, bindist): Likewise.
15500 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15502 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15503 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15506 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15508 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15511 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15513 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15516 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15518 * troff/input.c (define_number_reg): If currently undefined,
15519 don't define it if the argument is an invalid expression.
15521 * Makefile: Ignore return value of `if' commands without `else'
15524 * Makefile: Split up CPPDEFINES into a series of separate
15525 configuration options.
15527 * troff/input.c (init_registers): Use time_t instead of long
15528 unless LONG_FOR_TIME_T is defined. Use returned result rather
15529 than passing pointer.
15530 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15532 * lib/Makefile (fontpath.h): Use gendef.
15534 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15536 * troff/input.c (input_iterator::shift): Delete argument name.
15537 * troff/node.c (suppress_output_file::really_begin_page,
15538 suppress_output_file::really_transparent_char, node::ascii_print,
15539 node::tprint): Delete names of unused arguments.
15541 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15543 * refer/label.y (string): Pass $4 to command_error.
15545 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15547 * Version 1.03 released.
15549 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15551 * Makefile: Pass definition of SHELL in SUBFLAGS.
15553 * gendef: New file.
15554 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15555 ps/Makefile: Use gendef to construct header files that are
15556 constructed from the Makefile.
15558 * macros/Makefile: make all should build stripped version of tmac.e.
15560 * refer/Makefile (clean): Remove y.output.
15562 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15564 * ps/pfbtops.c (main): Add -v option which prints out a version
15566 * ps/Makefile (pfbtops): Link with libgroff.a.
15568 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15570 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15571 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15573 * refer/lkbib.c (main): Always terminate reference with blank
15575 * refer/lookbib.c (main): Likewise.
15577 * refer/linear.c (file_buffer::load): Check that the file is not a
15580 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15581 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15582 Delete second inclusion of <sys/param.h>.
15584 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15586 * troff/token.h (token::special): Deleted.
15588 * tbl/main.c (process_format): Rework so that opt->tab_char is
15589 recognized only when appropriate.
15591 * ps/Makefile (clean): Remove pfbtops.
15593 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15595 * lib/font.c (text_file::next): Don't return if we have got a
15598 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15600 * refer/refer.c (store_reference): Get hash code from old_table[i]
15601 when rehashing the table.
15603 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15605 * eqn/box.c (box::top_level): Save size and prev size using \R and
15606 restore it afterwards. Set the size to the size at the beginning
15608 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15609 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15611 * refer/Makefile (limits.h): Use ./genlimits.
15613 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15615 * refer/index.c: Delete declarations of stat() and fstat().
15617 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15619 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15621 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15623 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15625 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15627 * troff/input.c (token::get_char): Handle \e.
15629 * refer/linear.c: Delete declarations of fstat() and stat().
15631 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15633 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15634 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15636 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15638 * troff/input.c (do_define_macro): Improve error handling for end
15639 of file while defining macro.
15641 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15643 * eqn/box.h: Fix declaration of set_gsize.
15644 * eqn/box.c (set_gsize): Make argument const char *.
15645 (gsize): Declare as char *.
15646 * eqn/main.c (main): Don't convert gsize to int.
15647 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15649 * Version 1.02 released.
15651 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15653 * macros/tmac.andoc: New file.
15654 * macros/Makefile: Install tmac.andoc.
15656 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15657 operator new and delete on OP_DELETE_BROKEN not being defined.
15658 * Makefile: Mention OP_DELETE_BROKEN.
15660 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15662 * Makefile (bindist): Pass SUBFLAGS.
15664 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15666 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15668 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15671 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15673 * ps/ps.h, ps/psrm.c: Make comment_table and
15674 header_comment_table local to resource_manager::process_file.
15676 * groff.sh: With -TXps pass -printCommand option to gxditview.
15678 * groff.c (possible_command::print): Implement using
15679 append_arg_to_string.
15681 * xditview: Merge in new implementation with own ChangeLog.
15683 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15685 * groff.c (main): Implement PRINT_OPTION.
15686 (append_arg_to_string): New command.
15687 (device_table): Set PRINT_OPTION flag for Xps.
15689 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15691 * troff/groff.h: Rename to troff.h.
15693 * pic/lex.c (lookup_keyword, docmp): New functions.
15694 (get_token): Use new lookup_keyword.
15695 Don't include key.h.
15696 * pic/key.[ch], pic/pic.gperf: Deleted.
15697 * pic/Makefile: Remove gperf stuff.
15699 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15701 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15703 * troff/Makefile, troff/node.c: Move definition of
15704 STORE_WIDTH into node.c.
15706 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15708 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15710 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15711 dvi/devdvi/texb.map: Add lq and rq.
15712 dvi/devdvi: Regenerate fonts.
15713 * ps/devps/textmap: Add lq and rq.
15714 * ps/devps: Regenerate fonts.
15715 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15716 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15718 * pic/object.c (position_rectangle): When checking radius
15719 cope with possiblity that width or height is negative.
15720 (box_object::box_object): Have separate xrad and yrad with
15721 signs matching signs of dim components.
15722 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15723 (box_object::print): With rounded boxes use absolute values
15724 for dim and rad arguments.
15726 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15729 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15731 * various files: Add explicit destructors to keep Saber CC +d
15734 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15736 * eqn/box.c (box::top_level): Restore fonts correctly after
15737 font changes in line containing inline equation. Also
15738 restore previous font as well as current font.
15739 * eqn/pbox.h: Define necessary string and register names.
15741 * troff/input.c (token::next): Case 'R' calls do_register.
15742 (do_register): New function.
15744 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15746 * groff.c, groff.sh: Support Xps device. Allow each device
15747 to have a pseudo_name and a real_name.
15749 * groff.c (run_commands): Don't print `Broken pipe' messages.
15751 * ps/pfbtops.c: New file.
15752 * ps/Makefile: Add pfbtops.
15754 * troff/number.c (parse_term): Improved error message.
15756 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15758 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15760 * Makefile: Integrate refer.
15761 * refer: New directory.
15762 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15763 man/lkbib.man: New files.
15764 * man/Makefile: Support refer man pages.
15766 * lib/lib.h: Declare is_prime.
15767 * lib/prime.c: New file.
15769 * troff/input.c (macro_source): New function.
15770 (init_input_requests): Bind "mso" to macro_source.
15772 * troff/env.c (environment::possibly_break_line): Maintain
15773 pointer to pointer to node to be split in ndp so as to avoid
15774 using address of freed node.
15776 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15777 pointer to first node to be hyphenated in startp so as to
15778 avoid using address of freed node.
15780 * troff/env.c (class trie, class hyphen_trie): Make the
15781 elements of the trie be of type char not unsigned char.
15782 Declare arguments to be const char* instead of unsigned char *.
15784 * troff/env.c (hyphenate): Initialize hbuf[0].
15786 * troff/input.c (set_string): Declare p to be char * and cast
15787 *p to unsigned char when necessary.
15789 * troff/input.c (do_define_macro): Declare s to be const
15790 char*. Cast element to unisgned char when necessary, Declare
15791 d to be an int. Handle EOF better.
15793 * troff/Makefile, troff/input.c: Different scheme for passing
15794 definitions of MACROPATH, HYPHENFILE and DEVICE.
15796 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15798 * tty/devascii/R.proto: Delete entry for em.
15799 * tty/devlatin1/R.proto: Likewise.
15801 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15803 * troff/input.c (translate): Stop when we get a space. Treat eof
15806 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15808 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15810 * tbl/main.c (process_format): A font name following a `f'
15811 modifier that starts with a digit can be only one character long.
15812 Also deal with EOF on the second character of the font name.
15814 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15816 * troff/input.c (token::next): Turn \~ into an
15817 unbreakable_space_node.
15818 * troff/node.c (unbreakable_space_node): New class.
15819 * troff/node.h: Declare it.
15821 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15823 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15824 it's >= 0, before outputting it as a single byte.
15826 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15828 * lib/font.c: Make font_char_metric::code an int.
15829 (font::get_code): Change return type to int.
15830 (font::load): Allow code to be arbitrary integer.
15831 * lib/font.h (font::get_code): Change return type to int.
15832 (font::number_to_index): Change argument type to int.
15833 * troff/input.c (token::next): In case 'N', allow any value.
15834 Store value in token::val.
15835 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15836 (token::get_char, token::add_to_node_list, token::process): Get
15838 (charinfo::set_number): Change argument to int.
15839 (charinfo::get_number): Require that NUMBERED flag be set.
15840 (get_charinfo_by_number): Store numbered characters not between 0
15841 and 255 in a dictionary.
15842 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15844 (charinfo::number): Change type to int.
15845 (charinfo::set_number): Change type of set_number to int.
15846 * troff/node.c (troff_output_file::put_char_width,
15847 troff_output_file::put_char): Test whether character is numbered
15848 using charinfo::numbered().
15849 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15851 * lib/nametoindex.c: New implementation to cope with arbitrary
15854 * troff/input.c (token::operator==): Test val for
15855 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15858 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15859 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15861 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15863 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15866 * all Makefiles: rm targets of cp and >.
15868 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15871 * eqn/lex.c (def_table): Add dollar.
15873 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15875 * troff/input.c (do_width): Push back newline before closing delim
15878 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15880 * groff.c (possible_command::prepend_arg): New function.
15881 (main): Prepend device -m option.
15882 * groff.sh: Put device -m options before command-line options.
15884 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15886 * macros/tmac.an (IP): Quote argument to TP.
15888 * ps/ps.c (main): New option -b, which sets...
15889 (broken_flags): New variable.
15890 (ps_printer::~ps_printer): Incorporate the setup section in the
15891 prolog if (broken_flags & NO_SETUP_SECTION).
15892 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15893 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15894 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15895 ps_printer::print_needed_font_comment,
15896 ps_printer::print_supplied_font_comment,
15897 ps_printer::print_include_font_comments,
15898 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15899 ps_printer::read_download_file, read_document_fonts, add_font,
15900 skip_line, parse_fonts_arg, document_font::document_font,
15901 document_font::~document_font, document_font::download,
15902 ps_output::include_file): Deleted.
15903 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15904 rather than %!PS-Adobe-2.0. Make calls to
15905 resource_manager::need_font for each font that we used. Replace
15906 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15907 print_supplied_font_comment, print_needed_font_comment by call to
15908 resource_manager::print_header_comments. Output %%Orientation
15909 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15910 Don't output the prolog directly. Instead call
15911 resource_manager::output_prolog. Only define #copies when ncopies
15912 > 1. Delete calls to print_include_font_comments and
15913 download_fonts. Add call to resource_manager::document_setup.
15914 (ps_printer::do_file): Call resource_manager::import_file instead
15915 of including it ourselves.
15916 (ps_printer::do_import): Likewise. Also don't call
15917 merge_import_fonts. Push userdict on the dictionary stack before
15918 and pop it afterwards.
15919 Move declaration of ps_output into ps.h.
15920 * ps/psrm.c: New file implementing resource_manager class.
15921 * ps/ps.h: New file declaring ps_output and resource_manager
15923 * ps/devps/zapfdr.ps:
15924 * ps/devps/symbolsl.ps:
15925 * ps/devps/prologue: Use 3.0 conventions.
15926 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15927 Add default definition of BROKEN_SPOOLER_FLAGS.
15928 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15929 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15931 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15933 * etc/grog.pl: New file.
15934 * Makefile (GROG): New variable.
15935 Add GROG to SUBFLAGS.
15936 * etc/Makefile (GROG): New variable.
15937 (install.nobin): Install $(GROG) rather than grog.sh.
15939 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15941 * eqn/special.c (special_box::compute_metrics): Make the input and
15942 output strings the same. Get the new height and depth from the
15943 predefined height and depth registers. Also make subscript kern
15944 and skew available.
15945 (special_box::compute_subscript_kern, special_box::compute_skew):
15948 * eqn/box.c (pointer_box::compute_skew,
15949 simple_box::compute_metrics, box::top_level)
15950 * eqn/text.c (prime_box::compute_metrics,
15951 prime_box::comput_subscript_kern)
15952 * eqn/limit.c (limit_box::compute_metrics):
15953 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15954 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15955 negative numbers in `nr' requests with a leading 0.
15957 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15959 * eqn/special.c: New file.
15960 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15961 Add new rule for simple.
15962 * eqn/lex.c (token_table): Add SPECIAL.
15963 * eqn/box.h: Declare make_special_box.
15964 * eqn/Makefile: Add special.[co].
15966 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15968 * ps/devps/prologue: Possibly set packing to true while defining.
15969 Create grops dictionary here. Initialize local variables before
15970 defining procedures.
15971 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15972 the dictionary stack. Set strokeadjust and overprint to false if
15973 the relevant operators are defined.
15974 (PEND): New procedure.
15975 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15976 prologue. Do everything else in the setup section.
15977 (ps_printer::do_import): Just call PBEGIN and PEND around the
15978 picture. Also push userdict before, and pop it afterwards.
15980 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15982 * troff/node.c (bracket_node::tprint): Brackets were being printed
15985 * macros/tmac.an (SH, SS): Set fill mode.
15987 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15989 * troff/div.c (top_level_diversion::begin_page): Set
15990 high_water_mark to 0.
15992 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15994 * man/mdate.sh: New file.
15995 * man/mdate.c: Deleted.
15996 * man/Makefile: Use mdate.sh instead of mdate.
15999 * eqn/lex.c (do_gsize): Supply missing argument to error message.
16001 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
16003 * man/mdate.c: New file.
16004 * man/*.man: Replace modification date by @MDATE@.
16005 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16006 (mdate): New target.
16008 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16009 Remove illegal input characters.
16011 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
16013 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16015 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
16017 * troff/div.c (begin_page): Change behaviour when
16018 !first_page_begun and !break_flag.
16020 * troff/input.c (do_name_test): Return 0 if argument is empty.
16022 * troff/input.c (read_long_escape_name): Require closing ] to be
16023 at same input level as opening [.
16025 * troff/input.c (read_increment_and_escape_name): New function.
16026 (get_copy, process_input_stack): Use this for \n.
16028 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
16030 * troff/div.c (top_level_diversion::begin_page): Ignore the
16031 current value of page_number if !first_page_begun.
16033 * groff.c (main): Fix declaration of buf.
16035 * troff/input.c (do_name_test): New function.
16036 (token::next): Implement \A.
16037 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16038 (token::description, token::add_to_node_list, token::process):
16039 Handle TOKEN_ESCAPE.
16040 * troff/token.h: New token TOKEN_ESCAPE.
16042 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
16044 * pic/main.c (do_picture): Allow space before and after filename
16045 following `<'. Check that the filename is not empty.
16047 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
16049 * Version 1.01 released.
16051 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16053 * dvi/tmac.dvi: ftr HR to H.
16055 * macros/tmac.e: Round up computation of $r.
16057 * xditview/tmac.X: Don't give up completely in compatibility mode.
16058 Use \n(.s instead of \n[.s].
16060 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16061 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16062 Add u to factors inside \s[...]. Rename frac to dvi-frac.
16063 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16064 short names in the char definitions.
16066 * ps/tmac.ps: Don't give up completely in compatibility mode.
16067 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16068 quote in front of \n(.s. Add u to factors inside \s[...].
16070 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
16072 * tty/tmac.tty: Call the nroff request.
16074 * macros/tmac.e ((x, )x): Better definitions that work properly
16076 (@0, @1): Helper macros for (x.
16078 * macros/tmac.e ($s, hl): Use \l rather than \D.
16080 * tty/tmac.tty: Make it work better in compatibility mode.
16081 (pchar): Rename to tty-char.
16083 * macros/tmac.e (@E): New macro.
16084 (r, i, b, rb, bi): Use @E.
16086 * macros/tmac.e (@F): Don't use (;...) syntax.
16088 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16089 it was modified for groff.
16091 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16093 * macros/tmac.e (<., .>): Removed.
16094 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16096 * macros/tmac.e: Remove check that groff is being used.
16098 * macros/tmac.e (@C): Change families only if using groff; turn
16099 compatibility mode off while changing familes. Save compatibility
16100 mode before changing families and restore it afterwards.
16102 * macros/tmac.e (@h): Remove test for offset + line length.
16104 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16105 (lo, th, ac): Define to call @S instead of using als.
16107 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16108 the ratio of the vertical spacing to the point size in units
16109 expressed as a percentage. Use these instead of $10r and $10R,
16110 Delete $10r and $10R.
16112 * lib/font.c (font::load): In default computation of space_width,
16113 divide by sizescale. Use scale_round.
16115 * macros/tmac.an (TP): Don't call `nf'.
16116 (an-do-tag): Don't call `fi'.
16118 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16120 * troff/input.c (process_input_stack): Handle the case where
16121 spaces at the beginning of an input line are followed by a
16124 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16126 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16127 * groff.sh: Use pic -x with the dvi device.
16129 * dvi/devdvi/FontMakefile (H): Don't use -s.
16131 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16132 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16133 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16136 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16138 * ps/psfig.diff: New file.
16139 * ps/tmac.psfig: New file.
16141 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16143 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16144 (]-): Don't call ref*do-tl.
16146 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16148 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16149 (fn@do-FS): Rename to fn*do-FS.
16151 * troff/input.c (transparent_translate): New function.
16152 (process_input_stack): Apply transparent_translate before calling
16153 diversion::transparent_output(unsigned char).
16155 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16157 * troff/input.c (do_define_macro): Define the macro before calling
16160 * xditview/Makefile: Add DEVICES variable. Change install target
16163 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16165 * groff.c (run_commands): Handle the possibility that there are
16166 child processes other than those forked by us.
16168 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16170 * lib/string.c (string::append): New function.
16171 * lib/stringclass.h: Declare it.
16173 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16175 * eqn/main.c (main): New option -N which sets
16176 no_newline_in_delim_flag.
16177 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16179 * groff.c (main): Pass -N on to eqn.
16180 (help, synopsis): Mention -N.
16181 * groff.sh: Implement -N.
16183 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16185 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16186 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16187 (XP): Allow as initializer.
16189 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16191 * troff/env.c (environment::wrap_up_field): If field_spaces are
16192 non-zero and we have a current_tab, subtract padding from
16193 tab_distance. If this makes tab_distance <= 0, use the next tab
16194 stop instead. If there isn't any next tab or it's a left tab,
16195 wrap up the current tab.
16196 (environment::start_field): Initialize tab_precedes_field.
16197 (environment::wrap_up_tab): If there's a current field, update
16198 pre_field_width, field_distance and tab_precedes_field.
16199 * troff/env.h (environment::tab_precedes_field): New member.
16201 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16203 * ps/ps.c (ps_printer::do_file): New function.
16204 (ps_printer::special): Bind to `file' special.
16205 (ps_printer::do_exec): Set ndefined_styles to 0.
16207 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16209 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16210 Avoid stripping first character from the start of unrecognized
16211 escapes. Use lex_error instead of error to report errors.
16212 * eqn/lex.c (get_token): Rework handling of escapes.
16213 (lex_error): Move declaration into...
16216 * xditview/xditview.c (main): Make -page option work.
16218 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16220 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16222 * macros/tmac.s (B2): Correct size of box.
16224 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16226 * macros/tmac.s (B2): Postpone drawing the box until in the
16227 top-level diversion.
16229 * tty/tmac.tty: Add font translations for C, CR, CW.
16231 * groff.c (synopsis, help): Document -i.
16232 * groff.sh: Implement -i.
16234 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16235 Simplify the construction of SN.
16237 * troff/number.c (parse_term): Give `|' a higher precedence.
16238 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16241 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16243 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16245 * lib/string.c (string::move): New function.
16246 * lib/stringclass.h: Declare it.
16248 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16250 * troff/env.c (distribute_space): Add optional argument
16252 (environment::wrap_up_field): Call distribute_space with
16253 `force_forward' argument of 1.
16255 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16257 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16258 Inline it. Move reallocation into...
16259 (string::grow1): New function.
16260 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16261 dependencies to include library header files.
16262 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16264 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16266 * macros/tmac.s (@NH): Use the same number registers than -ms does
16267 for the heading level counters. Use the same string that -ms does
16268 for the number for this heading.
16270 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16272 * lib/new.c (operator new): Cast result of malloc to char *.
16274 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16277 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16279 * groff.c (main): Support -i.
16281 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16283 * pic/pic.h: Include <osfcn.h>.
16285 * ps/ps.c: Add declaration of mktemp.
16287 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16288 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16289 argument as union wait *.
16290 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16291 argument to union wait *.
16293 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16295 * tty/tmac.tty: Add definition of \(co.
16297 * pic/object.c (make_arc): Only increase radius when radius
16298 strictly less than d.
16299 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16302 * troff/env.c (environment::environment(symbol),
16303 environment::environment(const environment *)): Initialize
16306 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16308 * tbl/main.c (main): Add exit(0).
16310 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16312 * pic/main.c (main):
16313 * eqn/main.c (main):
16314 * tbl/main.c (main):
16315 * etc/soelim.c (main):
16316 * driver/printer.c (printer::~printer):
16317 * troff/node.c (real_output_file::~real_output_file,
16318 real_output_file::flush): Check for errors on stdout.
16320 * most files: Add 1991 to copyright notice.
16322 * macros/tmac.s: Don't test \n(.x and \n(.y.
16324 * troff/input.c (token::next): Rename `escape_char' label to
16325 `handle_escape_char' and `normal_char' label to
16326 `handle_normal_char'.
16328 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16330 * groff.c (main, synopsis, help): Support -a option.
16331 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16332 to trflags while parsing options.
16334 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16336 * troff/number.c (parse_term): With `m', `M' and `n' scale
16337 indicators, convert scale factor to hunits before scaling.
16339 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16341 * lib/font.c (scale_round): Better test for overflow when n is
16344 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16346 * tbl/main.c (process_format): Add second argument of type
16347 options*. Change callers. Allow opt->tab_char as well as '\t'
16348 between format items.
16350 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16352 * macros/tmac.an (PD): With no arguments, make sure register PD is
16354 (TH): Call PD with no argument, instead of setting register PD
16357 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16359 * Version 1.00 released.
16361 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16363 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16365 * dvi/devdvi/DESC: Mount CW instead of CR.
16367 * dvi/tmac.dvi: Add definition of \(tm.
16369 * dvi/devdvi/texsy.map: Add lh, and rh.
16370 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16371 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16373 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16374 * dvi/devdvi/Makefile: Install H.
16375 * dvi/devdvi/H: New file.
16377 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16379 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16382 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16384 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16386 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16388 * macros/tmac.s (@EN): Handle the case where the equation is empty
16389 but the label is not.
16391 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16393 * troff/groff.h: New warning category WARN_SPACE.
16394 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16395 WARN_SPACE to warning_table.
16396 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16397 is longer than two characters and is not defined, but the first
16398 two characters do make a defined name.
16400 * PROBLEMS: New file.
16402 * CHANGES: New file.
16403 * README-0.6, README-1.00: Deleted.
16405 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16406 * xditview/devX75/Makefile: Make devX75-12.
16407 * xditview/devX100/Makefile: Make devX100-12.
16409 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16410 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16412 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16414 * README-0.7: Rename to README-1.00.
16416 * macros/tmac.pic: New file.
16417 * macros/Makefile (install.nobin): Install tmac.pic.
16419 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16421 * troff/env.c (hyphen_word): Correct the test for whether the
16422 token is a hyphen. Reset npos to 0.
16424 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16426 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16428 * macros/tmac.s (ds*common-end): Call par*reset.
16430 (par@reset-indent): Deleted.
16432 * macros/tmac.s (@IP): Divert the label.
16434 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16436 * xditview/draw.c (setGC): Use a line width of .1m rather than
16437 .04m by default; round rather than truncate value.
16439 * tbl/table.c (class empty_entry): New class.
16440 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16441 (table::add_entry): Represent empty entries by objects of type
16443 (table_entry::line_type): Return -1.
16444 (table::determine_row_type): Ignore entries with line_type 0.
16445 Treat type -1 as non-lines.
16447 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16449 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16450 macros/tmac.s: Rename \(-d to \(Sd.
16452 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16454 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16455 * xditview/libXdvi/DviChar.c: Likewise.
16456 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16458 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16460 * troff/div.c (top_level_diversion::begin_page): Call
16461 init_output() if the_output is 0.
16463 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16465 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16467 (get_copy): Turn \E into ESCAPE_E.
16468 (token::process, asciify): Handle ESCAPE_E.
16470 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16472 (DS): Implement `.DS R'.
16474 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16476 * macros/tmac.s (FS): New macro.
16478 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16480 * macros/tmac.s (cov*tl-init): Remove after first execution
16481 instead of aliasing to @nop. Call top of page macro explicitly
16482 instead of setting trap; call @init first. Set pg@top as top of
16484 (cov*auto-init): Deleted. Set cov*tl-init instead of
16485 cov*auto-init as top of page trap.
16486 (TL, LP): Do a break instead of calling cov*tl-init.
16487 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16488 @FE; in this case also give a warning and always start another
16489 page. No need to set pg@top here.
16490 (cov*tl-init): Rename to cov*first-page-init.
16492 * macros/tmac.s (RP): Do `.pn 0'.
16493 (cov*tl-init): With RP format don't do `.pn 0'.
16495 * macros/tmac.s (pg@cs-top): Set no space mode.
16497 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16498 (cov*ab-init): Alias TL, AU and AI to these.
16500 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16502 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16503 (@EN): Do nothing unless \n[dl] is > 0.
16505 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16507 * pic/object.c (ellipse_object::radius): New function.
16509 * VERSION: Change version to 0.7.
16511 * tbl/table.c (block_entry::do_divert): Declare return type as
16513 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16515 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16517 * troff/column.c: New file.
16518 * troff/Makefile: Corresponding changes.
16520 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16523 * troff/div.c (top_level_diversion::space): If the space causes
16524 the first-page transition and springs a trap, truncate the space
16527 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16529 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16532 * pic/troff.c (troff_output::line_thickness,
16533 troff_output::set_fill): Do a horizontal motion to compensate for
16534 the width of the \D escape sequence.
16536 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16538 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16541 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16544 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16545 Supply empty definition.
16546 (text_entry::simple_print, simple_text_entry::simple_print):
16547 Delete declarations.
16548 (table::add_entry): Represent empty entries by objects of type
16551 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16553 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16555 * tbl/table.c (left_text_entry::add_tab): New function.
16557 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16558 initialize like LP.
16560 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16562 * troff/env.c (environment::start_field): Give an error message if
16563 there is no next tab.
16565 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16567 * troff/env.c (hyphenate): Skip initial elements with zero
16570 * macros/tmac.s (par@init): Keep VS in points rather than units.
16572 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16574 * pic/main.c (main): Implement `-c' option.
16575 * pic/output.h: Declare make_tpic_output().
16576 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16578 (tpic_output): New class.
16579 (tpic_output::tpic_output, tpic_output::set_pen_size,
16580 tpic_output::command, make_tpic_output): New functions.
16582 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16584 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16585 if they're not already defined.
16586 * tbl/table.c (init_output): Don't test \n(.g.
16588 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16589 `d', `r' and `c' conditions even in compatibility mode.
16591 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16593 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16596 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16598 * troff/env.h (environment::prev_line_interrupted): New member.
16599 (environment::get_prev_line_interrupted): New function.
16600 * troff/env.c (environment::newline): Set prev_line_interrupted.
16601 (environment::environment(const environment *),
16602 environment::environment(symbol)): Initialize
16603 prev_line_interrupted.
16604 * troff/input.c (process_input_stack): Don't give special
16605 treatment to space and newline at the beginning of the line if the
16606 previous line was interrupted.
16608 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16610 * eqn/eqn.y: Disallow PRIME by itself.
16611 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16613 (def_table): Remove definition of '. Define prime to be `.
16615 * eqn/eqn.y: Split off part of rule `script' into a new rule
16618 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16620 * macros/tmac.s ({, }): New string aliases.
16622 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16624 * README-0.7: New file.
16626 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16628 * macros/tmac.s: New file.
16629 * man/groff_ms.man: New file.
16630 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16631 * Makefile.bd: Similarily.
16632 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16633 definition of TMAC_S.
16634 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16635 * macros/TODO: New file.
16637 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16639 * troff/env.c (right_justify): New function.
16640 (init_env_requests): Bind this to request "rj".
16641 (center_lines): Set right_justify_lines to 0. If we get a bad
16642 integer, center 1 line.
16643 (environment::environment(symbol), environment::environment(const
16644 environment *)): Initialize right_justify_lines.
16645 (environment::get_right_justify_lines): New function.
16646 (init_env_requests): Bind this to number_register ".rj".
16648 * troff/env.c (environment::choose_breakpoint): Implement
16649 hyphenation_margin and hyphenation_space.
16650 (environment::get_hyphenation_space,
16651 environment::get_hyphenation_margin): New functions.
16652 (init_env_requests): Bind these to .hys and .hym.
16653 (hyphenation_space_request, hyphenation_margin_request): New
16655 (init_env_requests): Bind these to hys and hym.
16656 (environment::environment(symbol), environment::environment(const
16657 environment *)): Initialize hyphenation_margin and
16659 * troff/env.h: Corresponding changes to class environment.
16661 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16663 * troff/div.c (blank_line): Always do a break.
16665 * eqn/box.c (do_text): Turn off escapes while appending text to
16668 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16670 * troff/input.c (while_break_request, while_continue_request): New
16672 (init_input_requests): Bind these to "break" and "continue".
16673 (while_depth, while_break_flag): New variables.
16674 (while_request): Update while_depth. Break out of loop if
16675 while_break_flag is set.
16677 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16679 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16682 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16684 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16686 * stringify: New file.
16687 * Makefile (groff.o): Use stringify.
16689 * xditview/tmac.X: Remove definition of \(rn.
16690 * xditview/libXdvi/DviChar.c: Remove radicalex from
16693 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16695 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16696 (alphabetic_block_entry::alphabetic_block_entry,
16697 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16699 (block_entry::divert): Split off body into ...
16700 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16701 from the line length; also update the span width to dl+2n, and the
16702 alphabetic span width to dl.
16704 * driver/input.c (do_file): While reading argument to D command,
16705 when expanding buffer, multiply szp by sizeof(int) rather than 2
16706 in the argument to memcpy.
16708 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16709 width of alphabetic columns.
16711 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16713 * troff/node.c (lookup_family): Supply second argument to lookup.
16715 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16716 search, return immediately if v is 0.
16718 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16719 (troff_output::start_picture): Set this reg.
16720 (troff_output::end_picture): Remove this reg
16721 * eqn/box.c (box::extra_space): Don't produce `\x's if
16722 EQN_NO_EXTRA_SPACE_REG is defined.
16724 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16725 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16728 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16730 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16733 * troff/div.c (top_level_diversion::top_level_diversion):
16734 Initialize page_number to 0.
16736 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16738 * groff/troff (environment::environment(const environment *)):
16739 Initialize name to e->name, rather than "anonymous".
16741 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16743 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16744 requested_page. Split middle part into ...
16745 (FindPage): New function.
16746 (SetValues): If we don't yet know the last page, and the requested
16747 page is greater than the current page, call FindPage.
16748 Update the font_map_string before doing this.
16750 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16751 Translate \(lh and \(rh into left and right double arrows.
16753 * troff/node.c (class hyphen_inhibitor_node): New class.
16754 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16755 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16756 hyphen_inhibitor_node::type,
16757 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16758 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16759 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16762 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16764 * troff/node.h (dummy_node::get_hyphenation_type,
16765 transparent_dummy_node::get_hyphenation_type): Declare them.
16766 * troff/node.c: (dummy_node::get_hyphenation_type,
16767 transparent_dummy_node::get_hyphenation_type): New functions.
16769 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16771 * xditview/libXdvi/draw.c: If M_PI not defined after including
16772 math.h, then define it.
16774 * xditview/Makefile: Add definition of AR. Pass it to the submake
16776 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16778 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16780 * troff/dictionary.h (object_dictionary::alias): Declare return
16782 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16783 if the old name was defined.
16784 * troff/input.c (alias_macro): Give a warning if the old name was
16786 * troff/reg.c (alias_reg): Likewise.
16788 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16790 * troff/input.c (token::next): Delete implementation of \R.
16792 * macros/Makefile: Strip comments from tmac.e while installing it.
16794 * troff/input.c: New variable `nroff_mode'.
16795 (troff_request, nroff_request): New functions.
16796 (init_input_requests): Bind `troff' and `nroff' to troff_request
16798 (do_if_request): Compute results of t and n conditions from
16801 * text/text.c (split_text): Fix typo in >=.
16803 * eqn/lex.c: Add definition of `==' to def_table.
16805 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16807 * pic/tex.c (tex_output::start_picture): Change the definitions of
16808 \graph and \graphtemp so that they work properly with Plain TeX.
16810 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16811 argument to `ar' is not less than the first.
16813 * pic/pic.y: Allow a comma between elements of the variable list
16814 in the argument to `reset'.
16816 * pic/object.c (arc_object::arc_object): Fix computation of
16819 * eqn/main.c (main): Add exit(0).
16821 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16823 * troff/div.c (begin_page): Test no_space_mode after doing the
16824 break, but still push the page ejector cookie before doing the
16825 break. Also set the next page number after doing the break.
16827 * xditview/xditview.c (NewFile): Don't set the title and icon name
16828 if this is the first file and its name is `-'.
16829 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16830 the X75 and X100 devices.
16831 (main): If a device has the XT_OPTION flag set and there's exactly
16832 one file argument, pass the driver -xrm and -title options to set
16833 the icon name and window title to the name of the file.
16835 * troff/env.c (environment_switch): If there was an argument but
16836 it wasn't a valid number or name, then pop an environment but
16837 don't give an error message on underflow.
16839 * troff/number.c (start_number): Correct spelling in error message.
16841 * troff/input.c (token::delimiter): Don't print an error message
16844 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16845 ParseDrawFunction if dw->display_enable is true.
16847 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16849 * pic/pic.y: Parse text positioning like normal attributes, so as
16850 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16851 positioning attribute.
16853 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16855 * tbl/main.c (process_data): When in state START while reading a
16856 text block, don't change to state MIDDLE if c is a newline.
16858 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16860 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16861 so as to avoid shadowing parameter.
16863 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16865 * tbl/table.c (trim_space): Deleted.
16866 (table::add_entry): Don't call trim_space.
16868 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16870 * VERSION: Change version to 0.6.
16872 * troff/number.c (parse_expr): Make == work.
16874 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16876 * man/grog.man: New file.
16877 * man/Makefile: Add grog.n to MAN1PAGES.
16878 * etc/grog.sh: New file.
16879 * etc/Makefile: Install grog.sh as grog.
16881 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16883 * troff/input.c (token::next): Implement \E.
16885 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16887 * xditview/tmac.X: Change font translations to match tmac.ps.
16889 * troff/input.c (non_empty_name_warning): Don't give a warning if
16890 `\{' terminates the name.
16892 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16894 * ps/devps/symbol.diff: New file.
16895 * ps/devps/FontMakefile: Mention symbol.diff.
16897 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16899 * troff/node.c (font_position): Use get_long_name to read the
16902 * troff/env.c (environment_switch): If we get a number that's < 0
16903 or >= NENVIRONMENTS, treat it like a name.
16904 Change NENVIRONMENTS to 10.
16906 * troff/groff.h: Remove definition of FONTS_MAX.
16907 * troff/node.h (class font_family): Make map a pointer instead of
16908 an array. Add a map_size member. Make it a class. Make nm const
16909 and public. Make invalidate_fontno a friend.
16910 * troff/node.c: Define font_table_size. Make font_info a pointer
16911 rather than an array.
16912 (class troff_output_file): Allocate font_position dynamically. Add
16913 nfont_positions member.
16914 (troff_output_file::set_font): Grow font_position if necessary.
16915 (troff_output_file::~troff_output_file): Delete font_position.
16916 (troff_output_file::troff_output_file): Allocate font_position.
16917 (grow_font_table): New function.
16918 (troff_output_file::really_begin_page,
16919 troff_output_file:really_copy_page): Use nfont_positions rather
16921 (mount_font_no_translate, mount_style): Call grow_font_table if
16923 (font_family::font_family): Allocate map.
16924 (font_family::make_definite): Grow map if necessary. Use
16925 font_table_size instead of FONTS_MAX.
16926 (font_family::~font_family): New function.
16927 (invalidate_fontno): Use font_family::map_size.
16928 (get_fontno, env_space_width, env_half_narrow_space_width,
16929 env_narrow_space_width, symbol_fotno, is_good_fontno,
16930 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16932 (next_available_font_position): Never return 0.
16934 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16936 * ps/tmac.ps: Add font translations for compatibility with dpost.
16938 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16940 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16941 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16942 Move definitions baseline_sep, shift_down, column_sep,
16943 matrix_side_sep into...
16944 * eqn/box.c: Add them to param_table.
16945 * eqn/pbox.h: Add declarations to pbox.h.
16947 * troff/input.c (set_string): Cast value to unsigned char *.
16949 * troff/token.h (process_input_stack): Declare it static before
16950 declaring it a friend.
16952 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16954 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16956 * dvi/devdvi/EX: Regenerate.
16958 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16961 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16963 * eqn/lex.c: In defaults_table, make definition of `dot' call
16964 `dot_def'. Don't explicitly make it roman. Similarily for other
16967 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16969 (for_input::get, for_input::peek): Use this.
16970 (do_for): Add by_is_multiplicative argument.
16971 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16972 Change semantic value of optional_by to be a double plus a flag
16973 saying whethet the by clause is multiplicative.
16975 * eqn/lex.c (get_delimited_text): Remember location of start of
16976 definition. Improve error handling when EOF is encountered.
16978 * lib/font.h: Rename handle_x_command to
16979 handle_unknown_font_command.
16980 * lib/font.c (font::load): Call handle_unknown_font_command for
16981 any unknown command in the font description file. Don't call
16982 handle_x_command. Include the name of the command in the argv.
16983 Improve message for unknown command after kernpairs or charset
16985 * ps/ps.c (ps_font::handle_x_command): Rename to
16986 handle_unknown_font_command. Remove message about `x download'
16987 command. Give error message for wrong number of arguments.
16988 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16989 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16990 handle_unknown_font_command. Give an error message for wrong
16991 number of arguments. Rename design_size to designsize.
16992 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16993 checksum', `designsize' instead of `design_size'.
16995 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16997 * eqn/*.[chy]: Change underaccent to uaccent.
16999 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
17000 give it the same precedence as ACCENT.
17001 * eqn/other.c (make_underaccent_box): New function.
17002 * eqn/box.h: Declare it.
17003 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17006 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
17008 * pic/pic.y (reset_all): New function. Called in rule for RESET.
17009 (parse_init): Call reset_all.
17010 (define_variable): When defining scale reset only those
17011 pre-defined variables that are scaled.
17012 (defaults_table): Add `scale' as non-scaled value.
17014 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17015 together with the text; allow any number of positioning words;
17016 allow center as a positioning word.
17018 * pic/object.c (output::compute_scale): Get picture maximum height
17019 and width from variables called maxpswid and maxpsht.
17020 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17022 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
17024 * pic/object.c (object_spec::make_text): Multiply textht by number
17027 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17029 (do_sprintf): New function.
17030 (pic.gperf): Add sprintf token.
17031 (text, sprintf): New rules.
17033 * pic/pic.y: `rand()' with no arguments returns a random number
17034 in the range [0,1).
17036 * pic/pic.y: Allow a bare expression to be an attribute: change
17037 precedences to support this. Change optional_ordinal rule to
17038 optional_ordinal_last to avoid reduce/reduce conflict.
17039 * pic/object.c (object_spec::object_spec): Initialize direction.
17041 * pic/pic.y: Implement ^ operator meaning exponentiation.
17043 * troff/node.h: Add default argument to mount_font.
17044 * troff/node.c (font_position): Read an optional third argument
17045 giving the external_name.
17046 (mount_font): Add optional argument giving the external_name.
17047 (mount_font_not_translate): Have additional argument giving
17048 external name. Use this name to load the font. Pass both names
17049 to font_info::font_info.
17050 (font_info::font_info): Have additional argument giving
17052 (class tfont): New member external_name.
17053 (font_info::get_tfont): Use external name to construct tfont_spec.
17055 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
17057 * eqn/lex.c (init_table): Add argument giving device. Define
17058 name of device to be "1".
17059 (do_ifdef): Counts as true if the argument has been defined with
17061 * eqn/main.c (main): Call init_table with device argument. Make
17062 device local to main.
17063 * eqn/eqn.h: Change declaration of init_table. Remove declaration
17066 * pic/lex.c (get_delimited): Allow text to be delimited by
17067 matching {}s. Don't recognize ending delimiter within a string.
17069 * troff/input.c (get_delim_name): New function.
17070 (token::next): Implement \C.
17072 * lib/font.c (font::load): Grok ---. Add an alias for each
17073 character based on its code.
17074 (font::get_code_width): Deleted.
17075 * lib/font.h (class font): Declare font::number_to_index().
17076 Remove declaration of font::get_code_width.
17077 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17078 to indices of named characters.
17079 (font::number_to_index): New function.
17080 * troff/input.c (font::number_to_index): New function.
17081 (get_charinfo_by_number, charinfo::get_number,
17082 charinfo::set_number): New functions.
17083 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17084 (token::process, token::description, token::get_char,
17085 token::add_to_node_list, token::operator==): Handle
17086 TOKEN_NUMBERED_CHAR.
17087 * troff/charinfo.h: Declare get_charinfo_by_number,
17088 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17090 (charinfo::numbered): New function.
17091 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17092 * troff/env.h (class environment): Remove declaration of ...
17093 * troff/env.c (environment::make_numbered_char_node): Deleted.
17094 * troff/node.c (make_numbered_node): Deleted.
17095 (class numbered_glyph_node): Remove.
17096 (troff_output_file::put_char_width, troff_output_file::put_char):
17097 Handle numbered chars.
17098 (troff_output_file::numbered_char): Removed.
17099 (tfont::get_code_width): Removed.
17100 (make_glyph_node): Don't search special fonts for numbered
17102 * troff/node.h: Remove declaration of make_numbered_node.
17103 * driver/input.c (do_file): Handle N command.
17104 * driver/printer.h: Add declaration of ...
17105 * driver/printer.c (printer::set_numbered_char): New function.
17106 * dvi/tfmtodit.c (main): Generate unnamed entries.
17107 * ps/devps/afmtodit: Likewise.
17108 * xditview/xtotroff.c (MapFont): Likewise.
17109 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17111 * tbl/main.c (process_format): If multiple widths are specified
17112 for a column but all the widths are the same, don't give an error
17115 * tbl/table.c (table::do_row): If the current row is all lines and
17116 the stuff doesn't contains a line, mark the top of the row after
17117 printing stuff before the row. If the current row is not all
17118 lines and the stuff doesn't contain a line, don't unnecessarily
17119 mark the top of the row before printing the stuff.
17121 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17123 * troff/groff.h: Remove MAX_PATH.
17124 * troff/input.c (open_file): Dynamically allocate space for the
17126 (open_mac_file, process_macro_file): Corresponding changes.
17128 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17130 * troff/node.h (class output_file): Make copy_file pure. Add
17131 vspace method ifdef COLUMN. Add is_printing method.
17132 * troff/node.c: Add class printing_reg. Add class
17133 real_output_file. Derive other output_file classes from
17134 real_output_file; in these classes rename begin_page to
17135 really_begin_page, print_line to really_print_line, copy_file to
17136 really_copy_file, transparent_char to really_transparent_char.
17137 Move output_file::flush to real_output_file. Add printing member
17138 to class output_file.
17139 * troff/div.h: Remove printing member from top_level_diversion.
17140 Add vspace member function to class diversion ifdef COLUMN. Add
17141 some declarations ifdef COLUMN.
17142 * troff/div.c (top_level_diversion::copy_file,
17143 top_level_diversion::transparent_output,
17144 top_level_diversion::output): Don't test printing member before
17146 * troff/input.c: Handle initial variable_space_request ifdef
17148 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17149 but comment it out.
17151 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17153 * troff/div.c (diversion::need): Make any space forced. If we
17154 sprung a trap, set truncated_space to minus the distance to the
17155 trap and set needed_space to the amount that was needed.
17156 (top_level_diversion::space): A forced space turns no_space_mode
17158 (class constant_vunits_reg): New class.
17159 (init_div_requests): Implement number registers .trunc and .ne
17160 using constant_vunits_reg.
17161 (class truncated_space_reg): Deleted.
17163 * troff/div.h: Don't have a no_space_mode member in diversion.
17164 Instead have it in top_level_diversion.
17165 * troff/div.c (diversion::diversion): Don't initialize
17167 (top_level_diversion::top_level_diversion): Initialize
17169 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17170 (macro_diversion::output): Don't clear no_space_mode.
17172 * troff/input.c (diverted_space_node::reread): Don't call
17173 environment::do_break. In fill mode, act like a blank line.
17174 (diverted_copy_file_node::reread): Don't call
17175 environment::do_break.
17177 * troff/div.c (blank_line): New function.
17178 * troff/div.h: Declare it.
17179 * troff/input.c (process_input_stack): Call it.
17181 * troff/div.c (truncated_space_reg::get_string): New function.
17182 (init_div_requests): Bind to .trunc.
17183 (space_request, top_level_diversion::space,
17184 top_level_diversion::output, macro_diversion::space,
17185 macro_diversion::output): Update truncated_space.
17186 (macro_diversion::output): Redo calculations when trap sprung.
17187 (macro_diversion::output, macro_diversion::space): No need for
17190 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17191 after truncating post line spacing.
17193 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17195 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17196 defined as a procedure rather than as an operator.
17198 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17200 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17202 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17204 * troff/div.c (top_level_diversion::output): Merge
17205 output_file::print_line and output_file::end_of_line member
17207 * troff/div.h (class output_file):
17208 * troff/node.c (troff_output_file::print_line,
17209 troff_output_file::end_of_line, output_file::end_of_line,
17210 ascii_output_file::print_line, suppress_output_file::print_line):
17211 Corresponding changes.
17213 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17215 * troff/input.c (token::next): Don't give a warning for `\.'.
17217 * troff/env.c (environment::get_center_lines): New function.
17218 (init_env_requests): Bind number register .ce to it.
17219 * troff/env.h: Declare it.
17220 * tbl/table.c (table::init_output): Define reset macro to restore
17221 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17223 (table::print): If center option not given, then imply center
17224 option if SAVED_CENTER_REG > 0.
17226 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17228 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17229 Troff.ps from DOWNLOAD.
17231 * troff/Makefile: Change comment in DEFINES to avoid confusing
17234 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17235 code. Don't try to catch errors with stopped.
17236 (check_line_lengths): New function.
17237 * ps/devps/prologue (EXEC): Deleted.
17238 (EBEGIN, EEND): New procedures.
17240 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17242 * troff/input.c: Include request.h before node.h.
17243 * troff/node.c: Likewise.
17244 * troff/env.c: Likewise.
17245 * troff/div.c: Likewise.
17246 * troff/node.h (class special_node): Store argument as a macro
17247 rather than a char *.
17248 * troff/node.c (special_node::special_node, special_node::copy):
17250 (special_node::~special_node): Deleted.
17251 (special_node::tprint): Deleted.
17252 (special_node::tprint_start, special_node::tprint_end,
17253 special_node::tprint_char): New functions.
17254 (troff_output_file::special): Deleted.
17255 (troff_output_file::start_special, troff_output_file::end_special,
17256 troff_output_file::special_char): New functions.
17257 * troff/input.c (special_node::tprint): New function.
17258 (do_special): Use macro not char *.
17259 (do_transparent_macro): Deleted.
17260 (token::next): Don't call do_transparent_macro.
17262 * troff/input.c (token::next): Add 'Y' case.
17263 (do_transparent_macro): New function.
17264 * troff/node.c (troff_output_file::special): Handle newlines with
17265 argument using new continuation convention.
17266 * driver/input.c (get_string): Cope with continuation convention.
17267 (do_file): Don't call skip_line after calling get_string(1).
17268 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17269 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17271 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17274 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17276 * troff/input.c (asciify): By default, illegal input characters
17277 should return empty string.
17279 * troff/input.c (copy_file): Handle first page transition like title.
17280 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17282 * troff/input.c (token::next): Improve error message for EOF after
17284 (input_char_description): New function.
17285 (get_char_for_escape_name): Use input_char_description.
17286 (token::next): Warn about unrecognized escape sequences.
17287 (warning_table): Add WARN_ESCAPE.
17288 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17291 * troff/token.h: Remove declaration of process_input_stack.
17293 * troff/input.c: Remove declaration of init_hyphen_requests.
17294 * troff/request.h: Correct spelling in declaration of same.
17296 * troff/input.c (token::next): Check whether escape_char is 0.
17298 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17300 * groff.c (main, usage, help): Implement -P and -L options.
17301 * groff.sh: Likewise.
17303 * troff/input.c (token::next): Use some gotos to avoid code
17306 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17307 Avoid calling symbol::symbol if name empty.
17309 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17311 * troff/input.c (init_input_requests): Make \n(.x return the major
17312 version number and \n(.y return the minor version number.
17313 * troff/Makefile: Construct file majorminor.c defining
17314 major_version and minor_version automatically from ../VERSION.
17316 * troff/node.c (class glyph_node): Make operator new and operator
17318 (class ligature_node): Similarily.
17320 * troff/input.c (operator==(const macro &, const macro &)): New
17322 (non_interpreted_node::same): Use this.
17323 (string_iterator::string_iterator): Make macro& argument const.
17325 * troff/input.c (input_iterator::get): New function. Don't make
17326 asciify_macro or class non_interpreted_node friends of class
17328 (non_interpreted_node::interpret): Use input_iterator::get.
17329 (asciify_macro): Likewise.
17331 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17332 ~non_interpreted_node): Deleted.
17333 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17336 * troff/symbol.h: Make all symbol member functions const.
17338 * lib/strtol.c: New file.
17339 * lib/Makefile: Add strtol.c.
17340 * Makefile: Define STRTOL as strtol.o to include strtol in
17343 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17345 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17347 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17349 * troff/input.c (do_special): Use input_level.
17351 * troff/token.h (TOKEN_BACKSPACE): New token.
17352 (token::backspace): New function.
17353 * troff/input.c (token::description, token::next, token::process):
17354 Grok TOKEN_BACKSPACE.
17355 (do_special): Turn TOKEN_BACKSPACE back into \b.
17357 * troff/token.h (token::leader): New function.
17358 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17360 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17362 * troff/input.c (do_special): Use token::description in error
17365 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17367 * troff/input.c (decode_args): Combine quoted and
17368 quote_input_level variables. Make it a for (;;) loop.
17370 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17372 * troff/input.c (read_long_escape_name): The test for whether to
17373 expand buffer was off by 1.
17374 (read_string): Similarily.
17376 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17378 * troff/input.c: Use `const int' rather than `static const int'.
17380 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17381 (macro_diversion::copy_file): New function.
17382 * troff/node.h: New class diverted_copy_file_node.
17383 * troff/node.c: Implement it.
17384 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17385 first page transition by pushing a diverted_copy_file_node.
17386 * troff/input.c (token::next, process_input_stack): Don't handle
17389 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17391 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17392 whether space widths need adjusting.
17394 * troff/charinfo.h: Generalize translated_to_space to
17395 special_translation so as to allow translation to \&.
17396 * troff/input.c (translate): Allow translation to \&.
17397 (charinfo::*): Corresponding changes.
17398 * troff/node.c (make_node, node::add_char): Corresponding changes.
17399 * troff/node.h (dummy_node::dummy_node): Allow optional first
17402 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17403 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17405 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17406 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17407 (token::process): Grok that.
17408 * troff/input.c (copy_file): Handle first page transition like
17409 title by pushing a COPY_FILE_REQUEST cookie.
17410 (token::next, process_input_stack): Grok that.
17411 * troff/node.h (output_file::copy_file): Add x and y arguments.
17413 * troff/div.c (top_level_diversion::copy_file): Supply them.
17414 * troff/node.c (troff_output_file::copy_file): Add x and y
17415 arguments; moveto specified position. Invalidate font_position
17416 array after copying file.
17417 (output_file::copy_file): New function.
17418 (suppressed_output_file::copy_file, ascii_output::copy_file):
17420 * troff/input.c (transparent_file): New function.
17421 (init_input_requests): Bind to "trf".
17422 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17423 (process_input_stack): Likewise.
17425 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17427 * troff/node.c (init_node_requests): New number registers .kern
17428 pointing to global_kern_mode, and .lg pointing to
17429 global_ligature_mode.
17431 * troff/node.c (ligature): Don't change it if we get a bad
17434 * troff/input.c (do_define_string): Don't strip tabs.
17436 * troff/input.c (asciify_macro): Make the string_iterator auto.
17438 * troff/node.c (init_font_requests): Rename to...
17439 (init_node_requests):
17440 * troff/node.h: Change declaration.
17441 * troff/input.c (main): Change call.
17443 * troff/input.c (node::reread, diverted_space_node::reread): New
17445 (process_input_stack): Call reread rather than
17446 get_diverted_space_node.
17447 * troff/node.c (node::get_diverted_space_node,
17448 diverted_space_node::get_diverted_space_node): Removed.
17449 * troff/node.h: Declare reread methods instead of
17450 get_diverted_space_node methods. Make `n' member private.
17451 * troff/input.c: (token::diverted_space): Removed.
17452 * troff/token.h: Removed declaration.
17455 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17457 * eqn/script.c (script_box::compute_metrics): Don't let
17458 SUP_RAISE_FORMAT become negative.
17460 * tbl/table.c (table::do_row): Entries that don't end in the
17461 this row shouldn't make the row non-blank.
17463 * tbl/table.c (table::make_columns_equal): Only set the width of
17464 columns which are marked as equal.
17466 * tbl/main.c (process_data): Before issuing excess data error,
17467 if last character was a newline unget it; then get it again after
17468 the error. Also include the contents of the entry in the message.
17470 * groff.c: New file.
17471 * Makefile: Build groff from groff.c. Make it possible to use
17472 either groff.sh or groff.c as groff.
17473 * Makefile.bd: Similarily.
17475 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17477 * groff.sh: Don't delay expansion of $@ in assignment to files.
17478 Remove occurrences of \".
17480 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17482 * all Makefiles: Simplify and rearrange.
17484 * Makefile: Handle fmod like malloc.
17485 * lib/Makefile: Similarily.
17486 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17488 * Makefile: Rename OPTIMISE to OPTIMIZE.
17490 * groff.sh: Remove assignment to PATH.
17491 * Makefile: Remove SHPATH variable.
17492 * Makefile.bd: Similarily.
17494 * groff.sh: Add -V option to print the pipeline instead of
17497 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17499 * lib/font.c: Split off file searching into ...
17500 * lib/fontfile.c: New file.
17502 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17504 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17506 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17507 Also change misleading comment.
17508 (table::do_vspan): Change similarily misleading comment.
17509 * tbl/main.c (process_data): A format row with an explicit `s'
17510 uses up a data line, even if all the other columns are `_' or `='.
17512 * troff/input.c (token::description): Fix description of
17513 TOKEN_DUMMY and TOKEN_EMPTY.
17515 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17517 * groff.sh: Fix description of -Z in help message.
17519 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17521 * pic/object.c (object_spec::make_object): Allow negative and zero
17523 * pic/pic.y: Give linethick default value of -1.0.
17524 * pic/troff.c (troff_output::troff_output): Initialize
17525 last_line_thickness to BAD_THICKNESS.
17526 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17527 (troff_output::line_thickness): Canonicalize negative thicknesses
17528 to RELATIVE_THICKNESS.
17529 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17530 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17532 (tex_output::start_picture): Set pen_size to -2.0.
17534 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17535 0, then use 0 linewidth.
17536 (ps_printer::ps_printer): Initialize line_thickness to -1.
17538 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17540 * ps/devps/symbolchars: Remove `or'.
17541 * ps/tmac.ps: Implement \(or with .char.
17543 * ps/devps/symbolchars: Move most characters into textmap.
17544 * ps/devps/textmap: Add names for troff bracket characters. Remove
17547 * ps/devps/TSymbol.ps: Removed.
17548 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17549 * ps/tmac.ps: Do with .char what TSymbol did.
17550 * ps/devps/download: Remove TSymbol.
17552 * ps/devps/T: Removed.
17553 * ps/devps/Troff.ps: Removed.
17554 * ps/devps/Troff.afm: Removed.
17555 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17556 * ps/devps/download: Remove Troff.
17557 * ps/devps/FontMakefile: Remove T target.
17558 * ps/devps/DESC-A4: Remove T from font list.
17559 * ps/devps/DESC-letter: Likewise.
17561 * troff/input.c (macro_to_node): Rename to ...
17562 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17563 character's definition while processing it.
17564 * troff/node.c (node::add_char, make_node): Change calls to
17565 macro_to_node accordingly.
17567 * troff/input.c (token::next): Translate \_ to \(ul.
17569 * tty/devascii/R.proto: Add `|'.
17570 * tty/devlatin1/R.proto: Likewise.
17572 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17574 * man: Put the version number in all the man pages.
17576 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17578 * Makefile.bd: New file.
17579 * README.bd: New file.
17581 * VERSION: New file.
17582 * lib/version.c: Removed.
17583 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17586 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17587 environment variable.
17589 * all Makefiles: Split install target into install.bin for
17590 binaries, and install.nobin for everything else.
17591 * Makefile: Add bindist target.
17593 * man/afmtodit.man: New file.
17594 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17595 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17597 * ps/Makefile: Pass BINDIR to make install in devps.
17599 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17600 the space character.
17602 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17604 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17606 * ps/ps.c: Redo font downloading.
17607 * ps/devps/download: New file.
17608 * ps/devps/Makefile: Add download to DEVICEFILES.
17609 * ps/devps/afmtodit: Remove -d option.
17610 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17611 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17612 * ps/devps/zapfdr.ps: Likewise.
17613 * ps/devps/TSymbol.ps: Likewise.
17615 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17617 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17619 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17621 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17622 then strip the first line if it starts with %.
17623 * Makefile: Add a comment about this.
17625 * man/tfmtodit.man: New file.
17626 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17627 * dvi/Makefile: Install tfmtodit in BINDIR.
17629 * dvi/tfmtodit.c (usage): Mention -v option.
17631 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17633 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17634 * troff/node.c (troff_output_file::transparent_char): Don't call
17637 * eqn: Add check_tabs method to most box classes.
17638 * eqn/box.c (box::top_level): Call check_tabs.
17640 * eqn/script.c (script_box::output): Use \Z.
17641 * eqn/limit.c (limit_box::output): Use \Z.
17643 * eqn/box.c (box::top_level): Use itoa.
17645 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17647 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17648 * dvi/devdvi/Makefile: Don't make links to CW.
17650 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17652 * xditview/tmac.X: Likewise.
17654 * troff/node.c: Add font translation feature.
17655 (get_font_translation): New function.
17656 (symbol_fontno): Translate the font name.
17657 (mount_font_no_translate): Rename to mount_font to this.
17658 (mount_font): New function.
17659 (font_family::make_definite): Call mount_font_no_translate instead
17661 (mount_style): Translate the font name.
17662 (font_translate): New function.
17663 (init_font_requests): Bind "ftr" to font_translate.
17665 * ps/devps/prologue (SN): New procedure that rounds a position to
17666 the nearest (pixel + (.25,.25)).
17667 (DL): Use SN to round endpoints.
17669 * lib/version.c: Changed version to 0.5.
17671 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17673 * Makefile: Move definition of PAGE to the very beginning, so that
17674 people are less likely to miss it.
17676 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17678 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17680 * troff/env.c (environment::choose_breakpoint): Make `can't find
17681 breakpoint' error a warning of type WARN_BREAK. Change message to
17682 `can't break line'.
17683 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17685 * troff/input.c: Add WARN_BREAK to warning_table. Include
17686 WARN_BREAK in DEFAULT_WARNING_MASK.
17688 * tty/tmac.tty: Add definition of \(+-.
17690 * groff.sh: Remove `--' option to set command.
17692 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17694 * ps/devps/eqnchar: Better definition of cdot using md.
17695 * dvi/devdvi/eqnchar: Likewise.
17696 * xditview/devX100/eqnchar: Likewise.
17697 * xditview/devX75/eqnchar: Likewise.
17698 * eqn/lex.c: Add definition of cdot.
17700 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17702 * troff/input.c (get_optional_char): New function.
17703 * troff/input.c (set_page_character): Use get_optional_char(),
17704 rather than has_arg() and tok.get_char(1).
17705 * troff/env.c (tab_character, leader_character, hyphen_char,
17706 field_characters): Likewise.
17707 (margin_character): Likewise. Also always delete the
17708 margin_character_node.
17710 * troff/input.c (token::get_char): Use token::description.
17712 * troff/input.c (has_arg): Don't skip over tab and \}.
17713 * troff/number.c (start_number): Give a warning if the number
17714 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17716 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17718 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17720 (get_name, get_long_name): Use these. Rename `warn' argument to
17723 * troff/node.c (get_fontno): Test that the symbol is not null.
17725 * troff/input.c (token::description): New function.
17726 * troff/number.c (parse_term): Use token::description in `numeric
17727 expression expected' message.
17728 * troff/groff.h: Add WARN_MISSING.
17729 * troff/number.c (start_number): New function.
17730 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17731 get_incr_number): Use start_number().
17732 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17734 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17735 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17737 * troff/input.c (token::get_char): Use WARN_MISSING.
17738 * troff/input.c (token::delimiter): Use token::description.
17739 * troff/env.c (environment_switch): Back out Aug 3 change.
17740 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17742 * troff/token.h (token::tab): New function.
17743 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17744 * troff/reg.c (alter_format): Likewise.
17745 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17747 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17749 * troff (most files): Redo warnings. Divide warnings into various
17750 categories; warning() has an additional first argument indicating
17751 the category it falls into.
17752 * troff/input.c (main): -w now takes an argument. New option -W.
17753 (enable_warning, disable_warning): New functions.
17755 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17756 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17758 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17760 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17761 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17762 * xditview/devX75/eqnchar: Likewise.
17763 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17765 * eqn/other.c: When bar or over applies to a single character
17766 don't produce an overline_box or an underline_box. Instead produce
17767 an accent_box or an underaccent_box, with the accent a line
17768 whose width is accent_width. New classes underaccent_box,
17769 overline_char_box and underline_char_box.
17770 * eqn/box.h: Move overline_box, underline_box, accent_box class
17771 declarations into eqn/other.c. Add declarations of
17772 make_underline_box, make_overline_box, make_accent_box.
17773 * eqn/eqn.y: Call make_overline_box, make_underline_box
17774 make_accent_box instead of constructors.
17775 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17777 * eqn/other.c: Add accent_box::~accent_box.
17778 * eqn/box.h: Declare it.
17780 * groff.sh: With -Tps, use eqn -D.
17782 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17784 (underline_box::output): Similarily.
17785 (accent_box::output): Use \Z.
17787 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17790 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17792 * troff/div.c (top_level_diversion::transparent_output(unsigned
17793 char)): Use asciify.
17794 * troff/input.c (asciify): Don't make it static.
17795 * troff/token.h (asciify): Declare it.
17797 * troff/input.c (get_name, get_long_name, token::get_char,
17798 token::delimiter): Add an extra default argument which says
17799 whether a warning should be printed.
17800 * troff: Pass a non-zero argument to one of these rather than
17801 printing a warning directly.
17803 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17805 * troff: Consistently use symbol::is_null.
17807 * troff/dictionary.h: Move some inline functions into
17810 * troff/request.h: Move inline functions into input.c.
17811 (request_or_macro::invoke): Make it pure.
17813 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17814 * troff/input.c (init_input_requests): Use class constant_int_reg.
17815 (class compatible_reg): Deleted.
17816 * troff/div.c (init_div_requests): Use class constant_int_reg.
17817 (class last_post_line_extra_space_reg): Deleted.
17819 * troff/env.c (tab_character): Don't change the tab character if
17820 we get an invalid argument.
17821 (hyphen_char): Similarily.
17823 * troff/reg.c (alter_format): Check that nm is not null.
17825 * Makefile, groff.sh: Make it possible to customize the commands
17826 used for printing PostScript and dvi files. Also make it possible
17827 to customize the path used by groff.sh.
17829 * eqn/eqn.y: Make `left' right associative.
17831 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17833 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17836 * pic/pic.h: Removed definition of INT_MAX.
17838 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17841 * troff/input.c (token::next): Handle \R like \n.
17843 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17845 * ps/tmac.pc (PSPIC): Simplify.
17847 * troff/env.c (tab_stops::to_string):
17848 * pic/pic.y (object_type_name):
17849 * pic/troff.c (simple_output::line):
17850 * pic/tex.c (tex_output::spline):
17851 * pic/object.c (object_spec::make_object):
17852 * tbl/main.c (process_data): Add cases to switch statements to
17853 avoid cfront warnings. (Some of these are spurious, since the
17854 switch already has a default case.)
17856 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17857 `ps-'. Don't test systat; instead check number of arguments to
17860 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17862 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17864 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17865 Unlink the file as soon as we have opened it, so that we don't
17866 have to bother with signal handlers.
17867 (handler): Deleted.
17868 (fatal_error_exit): Deleted.
17869 (main): Don't call signal.
17871 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17873 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17875 * pic/pic.y: If there is a label, or an nth construction before
17876 the first `.' in the argument to `with', ignore it and generate a
17878 * pic/lex.c (lex_warning): New function.
17880 * tbl/table.c (table::init_output): In section keep and release
17881 macro, use 0 indent when diverting and the correct indent when
17884 * troff/input.c (interpolate_number_format): Do not interpolate
17885 anything if the number register is not defined.
17887 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17889 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17891 * ps/devps/prologue (PICTURE): Set components of graphics state to
17892 their default values.
17894 * ps/devps/text.enc: Add trademark
17895 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17896 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17897 * ps/devps/symbolchars: Add names for summation and product.
17899 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17900 suchthat. Add pp. Add upper-case letters.
17902 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17903 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17906 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17907 rA (right angle bracket) to ra. Introduce names for double-headed
17908 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17909 * ps/devps/textmap: Likewise for ps device.
17910 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17911 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17912 * tty/devascii/R.proto: Likewise.
17913 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17915 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17917 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17919 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17922 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17924 * troff/div.c (when_request): Use symbol::is_null rather than
17925 has_arg to determine whether we have an argument.
17926 (change_trap): Remove the trap if we get an invalid number. Give
17927 an error if we don't get at least the macro name.
17928 (diversion_trap): Remove trap if we get an invalid name or number.
17930 * troff/env.c (environment_switch): Pop if we get an invalid
17931 symbol or numeric expression.
17933 * troff/input.c (do_define_macro): If EOF is encoutered while
17934 defining the macro, do tok.next() before returning.
17936 * troff/token.h (has_arg): Move definition from here, to ...
17937 * troff/input.c (has_arg): ... here
17939 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17940 * troff/input.c (shift): Likewise.
17942 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17945 * pic/troff.c (troff_output::start_picture): Comment out calls to
17948 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17949 interpret_lf_args succeeds.
17951 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17952 \\. This avoids problems with \$N.
17954 * groff.sh: Pass -C to preprocessors.
17956 * lib/lf.c (interpret_lf_args): Be more flexible.
17958 * tbl/main.c (main): Add -C option.
17959 (table_input::get): Do not recognize TE if followed by character
17960 other than a space or newline unless -C option given.
17961 (process_input_file): Likewise for lf, TS.
17962 (process_data): Likewise for lf in text blocks.
17964 * eqn/main.c (main): Add -C option.
17965 (do_file): Don't recognize EQ, EN or lf if followed by character
17966 other than space or newline unless -C option given.
17967 * eqn/lex.c (file_input::read_line): Similarily.
17968 * eqn/eqn.h: Declare compatible_flag.
17970 * etc/soelim.c (main): Add -C option.
17971 (interpret_lf_args): Use version in libgroff.
17974 * pic/main.c (main): Add -C option, which sets compatible_flag.
17975 (top_input::get), (top_input::peek): If -C option not given,
17976 do not recognize .PS/.PE/.PF/.lf if followed by a character
17977 other than space or newline.
17978 * pic/lex.c (file_input::read_line): Similarily.
17979 * pic/pic.h: Add declaration of compatible_flag.
17981 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17983 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17985 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17986 derived from node. New class space_char_hmotion_node.
17987 * troff/input.c (asciify_macro): New function.
17988 * troff/input.c (init_input_requests): New request `asciify' bound
17990 * macros/mm.diff: New file.
17991 * Makefile: In install.mm target use `patch' to apply
17994 * troff/input.c (macro::print_size): Just print the size in bytes.
17996 * troff/div.c (return_request): Correct the argument
17999 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
18001 * troff/node.h (class composite_node): Add sz member.
18002 * troff/node.c (composite_node::size): Return sz.
18003 * troff/input.c (macro_to_node): Use the initial size in the
18004 environment as the size of the composite_node.
18006 * troff/node.c (node::zero_width_tprint): Provide a reasonable
18009 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
18011 * troff/div.c (change_trap): If we get a bad number expression,
18014 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
18016 * lib/matherr.c (matherr): Define this only if math.h defines
18019 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
18021 * troff/div.c (macro_diversion::distance_to_next_trap): If there
18022 no diversion trap return vunits(INT_MAX - vresolution).
18024 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
18026 * troff/input.c (do_zero_width): New implementation that doesn't
18027 use a temporary environment. Use instead:
18028 (token::add_to_node_list): New function.
18029 * troff/env.c (environment::get_prev_char_height),
18030 (environment::get_prev_char_height),
18031 (environment::get_prev_char_skew): New functions.
18032 (environment::get_prev_char): New function.
18033 (environment::get_prev_char_width): Change to use get_prev_char.
18034 (init_env_request): Implement new registers .cht, .cdp, .csk.
18035 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18036 \Z being processed in a separate environment.
18038 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
18040 * tbl/table.c: Removed TABLE_BOTTOM_REG.
18042 * tbl/table.c (table::init_output): In the section release macro,
18043 give a warning message if the section won't fit on one page.
18045 * tbl/table.c (table::do_top): Emit table keep only if table is
18047 (table::do_bottom): Likewise for table release.
18048 (table::table), (table::add_vertical_rule): Remove reference to
18050 * tbl/table.h: Remove keep member.
18052 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18053 SECTION_RELEASE_MACRO, if there's not enough space before the next
18054 trap to output the diversion, call T# ourselves, set
18055 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18056 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
18057 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
18058 vertical position and return to it before turning traps on again.
18060 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
18062 * troff/node.c, troff/node.h: In classes derived from node,
18063 replace prev_char_width method by last_char_node method.
18064 * troff/env.c (environment::get_prev_char_width): Use
18065 node::last_char_node rather than node::get_prev_char_width.
18067 * Makefile: Added comment about -fno-inline on 68030-based
18070 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18071 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18072 expressions using sizeof to int.
18073 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18075 * macros/tmac.e (TS): Don't move @f back past the current
18078 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18080 * ps/ps.c (main): Buffer stderr.
18081 * dvi/dvi.c (main): Likewise.
18082 * tty/tty.c (main): Likewise.
18084 * ps/ps.c (ps_printer::do_import): Improve error handling.
18086 * troff/input.c (abort_request): Use asciify.
18088 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18089 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18090 type of first argument int rather than char. This works around a
18091 bug on the 68030 based Apollo using g++ 1.37.1.
18093 * tbl/table.h (class table): Add `keep' member.
18094 * tbl/table.c (table::table): Initialize `keep'.
18095 (table::add_vertical_rule): Set `keep' to 1.
18096 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18097 (table::do_bottom): Likewise for table release macro.
18098 (table::do_row): Emit section keep macro even if the row is 0.
18100 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18102 * macros/tmac.e (@C): Preserve the font family across the change
18105 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18107 * lib/font.c: Initialize font::hor and font::vert to 1.
18108 (font::load_desc): Check the values of font::hor and font::vert.
18110 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18111 be included in a C compilation.
18112 (iftoa): Use INT_DIGITS. Include lib.h.
18114 (as_string): Likewise.
18115 * tbl/table.c: Removed definition of INT_DIGITS.
18116 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18117 * troff/input.c (input_input_requests): Likewise.
18118 * ps/ps.c (make_encoding_name): Likewise.
18119 (ps_printer::set_style): Likewise.
18120 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18122 * tty/devascii/R.proto: Map fm onto '.
18123 * tty/devlatin1/R.proto: Likewise.
18125 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18127 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18128 argument to \w is at a different input level.
18130 * tbl/table.c (table::init_output): Define a new macro
18131 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18132 transparently outputs itself.
18133 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18135 (table::do_row): Likewise.
18137 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18138 TRANSPARENT_STRING_NAME.
18140 * tbl/table.c (table::init_output): In the table release macro
18141 print an error message and don't produce any output if after
18142 issuing the need request the table still will not fit. Also
18143 remove the diversion after bringing it back.
18145 * tbl/table.c (table::init_output): Define a new macro
18146 REPEATED_MARK_MACRO, like mk but if in a diversion also
18147 transparently outputs itself.
18148 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18149 is necessary because .TH might not call .T#.
18150 (table::do_top): Likewise TOP_REG.
18151 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18152 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18153 table header might contain just the two top rules.
18155 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18157 * troff/div.c: Implement new request `ptr' to print all traps.
18159 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18160 init_string_env_reg.
18161 * troff/env.c (class tab_reg): Deleted.
18163 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18165 * troff/div.c: New number register .pn returns the number of the
18166 next page as set by the pn request.
18168 * macros/tmac.an: Redid headers and footers. Number each manual
18169 entry starting from 1 unless \nC is > 0, like Sun. Added an
18170 optional 5th argument to .TH which specifies the manual name and
18171 appears in the center of the header. Understand the X, P and D
18172 registers like Sun.
18174 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18176 * troff/env.c (init_env_requests): New number register `.lt' to
18177 return the title length.
18179 * troff/node.h (class transparent_dummy_node): New class.
18180 * troff/node.c (class transparent_dummy_node): Provide member
18182 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18185 * troff/input.c (token::next): New escape sequence \).
18186 * troff/input.c (get_copy): Recognize \) in copy mode.
18188 * troff/input.c (input_stack::clear): New function.
18189 * troff/input.c (exit_request): Use input_stack::clear.
18191 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18192 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18194 * troff/env.c: Move set_page_character to input.c. Move
18195 page_character to input.c also.
18196 * troff/env.c (title): Split off the reading of the parts of the
18197 title into read_title_parts.
18198 * troff/input.c (read_title_parts): New function. Check the
18199 input_level when testing whether a token matches the delimiter.
18201 * troff/input.c (exit_request): New function.
18202 * troff/input.c (init_input_requests): Bind ex request to
18203 exit_request rather than exit_groff.
18205 * troff/input.c (exit_groff): Call tok.next() before
18206 process_input_stack().
18208 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18210 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18211 * troff/env.h: ditto.
18212 * troff/input.c: ditto.
18214 * troff/env.c (environment::is_empty): Test pending_lines.
18216 * troff/env.c (environment::have_pending_lines): Removed.
18218 * troff/input.c: Add request to flush pending lines from the
18221 * troff/env.c, troff/env.h: Add automatic widow control feature.
18223 * troff/input.c (exit_groff): Do process_input_stack() after
18224 do_break() but before setting exit_flag to 2.
18226 * troff/input.c: Remove FLUSH_PENDING_LINES and
18227 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18228 environment after END_TRAP token seen, but only if there aren't
18229 any more traps still unfinished.
18230 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18232 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18234 * troff/env.c: Rename the `retain_size' member of class
18235 pending_output_line to `no_fill'.
18237 * troff/env.c (title): When the line is output, make the
18238 retain_size argument !fill.
18240 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18241 * troff/node.c (space_node::get_breakpoints),
18242 (dbreak_node::get_breakpoints): Fill this in.
18243 * troff/env.c: Allow specification of maximum number of
18244 consecutive hyphenated lines.
18246 * troff/env.c (environment::is_empty): Add test for !current_tab.
18248 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18250 * troff/env.c (environment::hyphenate_line): Don't completely give
18251 up if the word is not to be hyphenated; continue so that breaks
18252 can be made at break_char_node's.
18254 * lib/lib.h: Only define INT_MAX if it's not already defined;
18255 undef INT_MIN if it's already defined.
18257 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18259 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18260 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18263 * macros/tmac.an (an-header): Set no-space mode.
18265 * macros/tmac.an (TH): Start a new page if necessary.
18267 * Started using ChangeLog at version 0.4.
18270 version-control: never