1 2005-03-28 Werner LEMBERG <wl@gnu.org>
3 Add support for double- and zero-width characters in grotty.
5 * src/devices/grotty/tty.cpp (glyph): Add width.
6 (tty_printer::make_underline, tty_printer::make_bold,
7 tty_printer::add_character): Add parameter to pass character width.
9 (tty_printer::end_page): Increase hpos by actual character width.
11 * font/devutf8/R.proto: Specify zero width for non-spacing
14 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
16 * Makefile.comm (extraclean): Remove more junk files.
18 2005-03-25 Werner LEMBERG <wl@gnu.org>
20 * configure.ac: Undo change from 2005-03-24.
21 * configure: Regenerated.
23 2005-03-24 Werner LEMBERG <wl@gnu.org>
25 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
26 (dist): Search Makefile while descending into $(EXTRADIRS).
28 * doc/Makefile.in (.PHONY): Add.
29 (clean): Don't remove *.png and *.eps.
31 (realclean): Remove *.png and *.eps.
32 (extraclean): Depend on distclean.
34 * configure.ac: Add copyright.
35 Handle contrib/pdfmark/Makefile.
37 * configure: Regenerated.
39 2005-03-18 Larry Kollar <kollar@alltel.net>
41 Add numbered and definition lists to www.tmac.
43 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
44 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
45 auxiliary string registers.
46 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
47 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
49 (www-level1, www-level2, www-level3): Initialize to empty.
50 (www-level0, www-level4, www-level5, www-level6, www-level7,
51 www-level8, www-level9): New string registers.
52 (www-push-li, www-pop-li): New macros.
53 (www-push-level, www-pop-level): Renamed to...
54 (www-push-ul-level, www-pop-ul-level): This.
56 (www-push-ol-level, www-pop-ol-level): New macros.
58 (OLS, OLE, DLS, DLE): New user macros.
59 (LI): Removed. It is aliased to one of...
60 (www-li-ul, www-li-ol, www-li-dl): New macros.
62 * tmac/groff_www.man: Document new macros.
66 2005-03-18 Werner LEMBERG <wl@gnu.org>
68 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
69 doc-operating-system-NetBSD-2.0.2): New strings.
71 * tmac/groff_mdoc.man: Updated.
73 2005-03-17 Werner LEMBERG <wl@gnu.org>
75 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
77 2005-03-17 Werner LEMBERG <wl@gnu.org>
79 * src/libs/libgroff/hypot.c: Renamed to...
80 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
82 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
84 * src/include/lib.h: Updated.
86 2005-03-16 Werner LEMBERG <wl@gnu.org>
88 Add workaround for broken hypot() on Interix.
90 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
92 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
93 (CSRCS): Add `hypot.c'.
95 * src/include/lib.h: Declare `groff_hypot'.
97 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
100 * src/preproc/pic/pic.h: Don't declare `hypot'.
102 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
104 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
106 * src/devices/grohtml/post-html.cpp
107 (html_printer::lookahead_for_tables): End .ce properly to avoid a
110 2005-03-15 Werner LEMBERG <wl@gnu.org>
112 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
114 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
116 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
118 2005-03-14 Werner LEMBERG <wl@gnu.org>
120 Add Cyrillic support to devutf8 and devhtml.
122 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
124 * tmac/unicode.tmac: New file.
126 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
128 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
132 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
134 * src/libs/libdriver/printer.cpp (check_for_output_error): New
135 function. It has been introduced to catch peculiar error contexts
136 on MS-Windows platforms.
138 2005-02-28 Werner LEMBERG <wl@gnu.org>
140 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
143 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
145 * configure: Regenerated.
149 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
151 Integrate `pdfmark' into normal groff build system;
152 install macro `pdfmark' packages, build and install `pdfroff',
153 and PDF format documentation.
155 * Makefile.comm: Add PDFDOCDIR.
157 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
158 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
159 (unstall_dirs): Add pdfdocdir.
161 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
162 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
163 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
164 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
165 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
166 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
168 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
169 use of GROFF_AWK_PREFS.
170 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
171 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
173 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
174 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
175 also by modified GROFF_HTML_PROGRAMS).
177 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
179 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
181 (html_text::done_para): Unset `start_space'.
182 (html_text::remove_para_align): Call `retrieve_para_space' for the
185 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
187 (html_printer::do_check_center): Emit vertical space if necessary.
189 * src/roff/troff/env.cpp (environment_switch): Preserve
190 `seen_space', `seen_eol', and `suppress_next_eol' while switching
193 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
196 2005-02-20 Werner LEMBERG <wl@gnu.org>
198 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
201 2005-02-17 Werner LEMBERG <wl@gnu.org>
203 * doc/pic.ms, man/groff.man: Fix typos.
205 * doc/groff.texinfo: Fix typos.
206 (\LEmacro): Get proper mathematical spacing.
208 2005-02-16 Werner LEMBERG <wl@gnu.org>
210 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
211 * configure: Regenerated with autoconf 2.59b.
213 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
215 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
216 html_printer::start_font): Fix handling of preformatted text.
218 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
220 These patches modify the indentation implementation to use `<p
221 style=margin-left: n%>'. Many thanks to Peter and Larry for
222 suggesting this solution. Grohtml only uses tables for `.IP' and
223 related tags when the first operand has a short width.
225 Similarly, they modify all vertical space code. By default, grohtml
226 sets up a style sheet which uses no vertical space between `table',
227 `pre', and `p' tags. It forces spaces when it needs them using
228 `style="margin-top: 1em"'.
230 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
231 (html_table::emit_table_header, html_table::emit_new_row):
233 (html_table::set_space): New function.
234 (html_indent::html_indent): Don't set `is_used'.
235 (html_indent::begin): Rewritten.
236 (html_indent::end): Remove code in function.
238 * src/devices/grohtml/html-table.h: Updated.
239 (html_table): Make `out' public.
241 * src/devices/grohtml/html-text.cpp (html_text::html_text):
242 Initialize `start_space' with FALSE.
243 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
244 (html_text::issue_tag): Add argument to handle space style.
245 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
246 (html_text::flush_text): Don't set `start_space'.
247 (html_text::push_para): Don't set `p->really_issued'.
248 (html_text::do_emittext): Updated.
249 (html_text::do_para): Add paremeter to handle space.
251 (html_text::retrieve_para_space): New function.
253 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
254 (tag_definition): Remove `really_issued'.
255 (html_text): Updated.
257 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
258 `current_column' and `row_space'.
260 (html_printer::emit_raw, html_printer::write_header,
261 html_printer::do_indent, html_printer::do_check_center,
262 html_printer::do_tab_ts): Handle vertical space.
263 (html_printer:do_tab_te, html_printer::do_end_para): Call
265 (html_printer::do_col): Rewritten.
266 (html_printer::flush_globs): Remove debugging code.
267 (html_printer::is_line_start): New function.
268 (html_printer::start_font): Use `is_line_start'.
269 (html_printer::writeHeadMetaStyle): New function.
270 (html_printer::do_file_components, html_printer::~html_printer):
271 Call `writeHeadMetaStyle'.
273 * tmac/www.tmac (www-handle-percent): New macro.
274 (MPIMG): Handle percent values for width and height parameters.
277 * tmac/groff_www.man: Updated.
279 2005-02-14 Werner LEMBERG <wl@gnu.org>
281 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
282 $psname and $italic_angle.
283 Immediately restart file input loops if `split' returns an empty
286 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
287 Werner LEMBERG <wl@gnu.org>
289 Update afmtodit to better support Unicode (Michail).
290 Update afmtodit to use Perl 5 syntax (Werner).
292 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
294 Decorate variables with `my' where necessary.
295 Use `defined' where necessary to avoid warnings.
296 Don't use `do' for subroutine calls.
297 Other minor syntax updates.
298 Check for both `uXXXX[X[X]]' and `uniXXXX'.
299 Handle glyph variants properly.
300 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
303 * src/utils/afmtodit/afmtodit.man: Updated.
305 2005-02-13 Werner LEMBERG <wl@gnu.org>
307 Make groff.texinfo work with texinfo 4.8.
309 * doc/groff.texinfo (@Var): Use @r and @slanted.
310 (@defdummy, @Def*): Use @c to avoid empty lines.
311 (\angles): Replaced with...
312 (\Langlemacro, \Ranglemacro): New TeX macros.
313 (@Langlemacro, @Ranglemacro): New variables defined with @set.
314 (@angles): Use @Langlemacro and @Ranglemacro.
315 (\LE): Replaced with...
316 (\LEmacro): New TeX macro.
317 (@LEmacro): New variable defined with @set.
319 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
320 variables defined with @set.
321 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
322 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
327 * doc/texinfo.tex: Update to texinfo version 4.8.
329 * README.CVS: Updated.
331 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
333 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
336 2005-02-05 Werner LEMBERG <wl@gnu.org>
338 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
339 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
342 2005-02-01 Werner LEMBERG <wl@gnu.org>
344 * src/roff/groff/groff.man: Add information about paper size.
346 2005-01-25 Werner LEMBERG <wl@gnu.org>
348 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
351 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
353 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
355 (Re): Emit a warning if called without `.Rs'.
356 (doc-finish-reference): Use parameter for decreasing
357 `doc-reference-count'.
358 (doc-print-reference): Pass specific count parameters to
359 `doc-finish-reference'.
361 2005-01-21 Werner LEMBERG <wl@gnu.org>
363 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
364 Reset pointers to zero after deallocation. This fixes a crash
365 if a driver is called with multiple input files. Reported by
366 Ken Chilton <ken@chiltonfamily.org>.
368 * src/devices/grops/grops.man: Add more info on DSC.
370 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
372 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
375 2005-01-17 Werner LEMBERG <wl@gnu.org>
377 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
378 against division by zero.
380 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
382 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
384 2004-12-19 Werner LEMBERG <wl@gnu.org>
386 * install-sh: New version; taken from texinfo CVS.
388 2004-12-17 Werner LEMBERG <wl@gnu.org>
390 * tmac/devtag.tmac: Protect against loading twice.
391 Protect agains compatibility mode.
392 * tmac/www.tmac: Protect against loading twice.
393 Load `devtag.tmac' before switching off compatibility mode.
394 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
396 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
398 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
399 * configure: Updated.
401 2004-12-15 Thomas Klausner <wiz@netbsd.org>
403 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
405 2004-12-15 Werner LEMBERG <wl@gnu.org>
407 Make `test-groff' work again -- previously, wrong paths have been
408 used. Additionally, it can now be called from anywhere.
410 * test-groff.in: Don't test for groff binary. This is no longer
411 necessary since the proper paths are determined by `configure'.
412 (EXEEXT): Removed. No longer used.
413 (srcdir, builddir): Use values provided by the configure script.
414 (XENVIRONMENT): Updated.
418 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
420 Make .tag and .taga work for all devices (but only grohtml actually
423 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
424 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
425 html_printer::handle_assertion): Don't use hard-coded string
427 (html_printer::lookahead_for_table): Reset `tbl' properly if
429 (html_printer::devtag): New function, handling `devtag'.
430 (html_printer::special): Don't handle `html-tag'.
432 * src/include/printer.h, src/libs/libdriver/printer.cpp
433 (printer::devtag): New virtual function.
435 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
438 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
439 src/roff/troff/node.cpp: s/html-tag/devtag/.
441 * src/roff/troff/input.cpp (tag, taga): Always call
444 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
445 macros instead of HTML-TAG*.
447 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
449 * tmac/www.tmac: Load devtag.tmac.
450 Replace HTML-TAG* macros with DEVTAG* macros.
451 (HTML, HTML-NS): Changed definitions.
453 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
455 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
457 2004-12-10 Werner LEMBERG <wl@gnu.org>
459 Import Mike's `gdiffmk' package.
461 * contrib/gdiffmk/*: New files.
462 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
465 2004-12-08 Werner LEMBERG <wl@gnu.org>
467 Import Keith's `pdfmark' package. Integration is very preliminary.
469 * contrib/pdfmark/*: New files.
470 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
473 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
475 Fix a bug with title handling in HTML.
477 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
478 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
480 (html_printer::handle_tag_within_title): New function.
481 (html_printer::do_title): Use it.
483 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
484 (cov*tl-au-print): Emit `.eo.tl' tag.
486 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
488 * man/groff_char.man: Minor imrovements.
490 2004-12-04 Werner LEMBERG <wl@gnu.org>
492 * src/preproc/eqn/eqn.man: Revised.
494 2004-11-25 Werner LEMBERG <wl@gnu.org>
496 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
500 Remove X_NOT_STDC_ENV conditional.
501 (Version_string, program_name): New global variables.
502 (groff_flag): Removed.
504 (usage): Take a stream as argument.
507 (main): Add `long_options' array for `--help' and `--version'.
508 Make `-g' a dummy option.
509 Handle `-v' and unknown options.
510 Remove unused `position' variable.
512 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
513 (XLIBS): Add LIBGROFF.
515 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
518 * src/devices/xditview/Dvi.c (default_font_map): Split into three
519 parts to avoid compiler warning.
520 (resources): Don't initialize with `default_font_map'.
521 (ClassInitialize): Initialize first element of `resources'.
523 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
526 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
527 src/utils/pfbtops/pfbtops.man: Revised, updated.
529 * configure.ac: Generate src/utils/xtotroff/Makefile.
530 * configure: Regenerated.
532 2004-11-24 Werner LEMBERG <wl@gnu.org>
534 First fixes to get produce HTML.
536 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
539 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
540 (HR, LI): Use `HTML</p>', not `HTML'.
542 * doc/webpage.ms: Minor updates.
544 2004-11-23 Larry Kollar <kollar@alltel.net>
546 Add option -S grohtml to determine the file split level.
548 * src/devices/grohtml/post-html.cpp (split_level): New global
550 (html_header::determine_header_level): Use split_level.
551 (main): Handle `-S' command line option.
554 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
556 * src/devices/grohtml/grohtml.man: Document it.
561 2004-11-23 Y T <doarhop@hotmail.com>
563 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
564 the volume and number refer entries.
566 2004-11-22 Werner LEMBERG <wl@gnu.org>
568 * src/devices/grohtml/html-table.cpp
569 (html_table::emit_table_header): Don't emit `cols' attribute which
570 doesn't exist in HTML 4.0 and is thus invalid.
572 * NEWS: More minor fixes and updates.
574 2004-11-18 Werner LEMBERG <wl@gnu.org>
576 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
577 (HTML</p>): Minor clean-up.
579 * tmac/groff_www.man: Updated.
581 * src/devices/grohtml/grohtml.man: Revised and updated.
585 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
587 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
589 (html_printer::do_links): Fix rules generation around automatic
592 * tmac/www.tmac (LK): Use HTML-TAG-NS.
594 No longer emit empty line for non-HTML devices.
596 2004-11-17 Werner LEMBERG <wl@gnu.org>
598 * doc/Makefile.in (prepare_examples, webpage.html): Handle
601 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
602 prepare_examples, webpage.html): Handle `groff.css'.
604 2004-11-15 Werner LEMBERG <wl@gnu.org>
606 * NEWS, README, doc/webpage.ms: Updated.
608 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
610 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
612 * src/include/printer.h (printer): Remove virtual function
614 Update all source files.
616 * src/devices/grohtml/post-html.cpp (html_printer): New member
617 function `round_width'.
619 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
621 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
622 column key letter suffix.
624 2004-10-14 Werner LEMBERG <wl@gnu.org>
626 * Makefile.in (check): Depend on `site.exp' and `docheck'.
627 (docheck): Run dejagnu's `runtest' if it exists.
628 (site.exp): Create dejagnu configuration file.
630 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
632 2004-10-13 Werner LEMBERG <wl@gnu.org>
634 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
635 src/devices/grohtml/post-html.cpp (make_val,
636 html_printer::handle_state_assertion): Fix compiler warnings.
638 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
639 (diversion::diversion): Fix order of initializers.
641 * src/roff/troff/div.h: Don't include `mtsm.h'.
643 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
644 (environment::environment): Fix order of initializers.
645 (environment::make_tag, environment::construct_format_state): Fix
648 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
649 (input_iterator::input_iterator, macro::macro): Fix order of
652 * src/roff/troff/mtsm.cpp: Include only necessary header files.
653 (state_set::add, state_set::val): Fix compiler warnings.
655 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
656 (bool_value_state, int_value_state, units_value_state,
657 string_value_state): Remove comma after last element which causes
658 an error with g++ 3.3.3.
660 * src/roff/troff/node.cpp: Include `stringclass.h'.
661 (hline_node::hline_node, vline_node::vline_node,
662 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
664 (zero_width_node::zero_width_node): Fix order of initializers.
666 * src/roff/troff/node.h: Don't include `mtsm.h'.
667 (hmotion_node): Fix compiler warnings.
669 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
671 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
673 * doc/groff.css: New file.
675 * doc/webpage.ms: Use `groff.css'.
678 * tmac/an-old.tmac (need_eo_h): New number register.
679 (TH): Emit `.eo.tl' tag after title.
680 (SH): Set `need_eo_h'.
681 (an-trap): Handle `need_eo_h'.
682 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
684 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
685 (TL): Always start diversion.
687 (@AI): Always call `par@reset'.
688 (@AB): Update code for -Thtml.
689 (cov*tl-au-print): Handle -Thtml.
690 (par@reset): Handle `need_eo_tl', `need_eo_h'.
693 (@SH): Set `need_eo_h' for -Thtml.
694 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
696 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
697 Set `need_eo_h' for -Thtml.
698 (@EQ, @EN): Don't handle -Thtml specially.
699 (par@load-init): Don't handle -Thtml specially.
701 * tmac/www.tmac (www:paraspace): New macro.
702 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
703 (HTML</p>, HTML-TAG-NEXT): New macros.
704 (HnE): Emit tag `.eo.h' instead of break.
705 (HR): s/HTML-NS/HTML/.
706 (www-end-nowhere): End diversion only if `www-html' not set.
708 (ULS, ULE): s|HTML|HTML</p>|.
709 (LI): Call `www:paraspace'.
712 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
714 * src/roff/troff/request.h (macro): Make `p' public.
715 New variable `is_a_diversion'.
716 New member function `is_diversion'.
719 * src/devices/grohtml/html.h (simple_output): New member function
722 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
723 computation of `total'.
724 (tabs::check_init): New function.
725 (html_table::emit_table_header): Emit style data.
726 (html_table::insert_column): Improved.
728 * src/devices/grohtml/html-table.h: Updated.
730 * src/devices/grohtml/html-text.cpp (html_text::html_text):
731 Initialize `start_space' with TRUE.
732 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
734 (html_text::flush_text): Set `start_space' flag.
735 (html_text::uses_indent, html_text::remove_para_space,
736 html_text::get_alignment): New functions.
737 (html_text::push_para): Updated.
738 (html_text::do_para): Check for empty argument.
739 Don't set `space_emitted'.
740 (html_text::do_space, html_text::emit_space): Updated.
742 * src/devices/grohtml/html-text.h (tag_definition): New variable
744 (html_text): New member function `uses_indent', `remove_para_space',
747 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
749 (simple_output:nl): Always emit `\n'.
751 * src/devices/grohtml/post-html.cpp: Include `string.h'.
752 (BASE_POINT_SIZE): Removed.
753 (base_point_size, head_info): New global variables.
754 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
756 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
758 (page::add_and_encode): Pass additional parameter for tag flag.
759 (assert_pos): New structure.
760 (assert_state): New class.
761 (html_printer): Remove `indentation', `prev_indent'.
762 Add variables `troff_indent', `device_indent', `temp_indent'.
763 Add variables `seen_indent', `next_indent', `seen_pageoffset',
764 `next_pageoffset', `seen_linelenght', `next_linelength',
765 `seen_center', `next_center', `seen_space', `seen_break', `as'.
766 Add member functions `do_check_center', `do_space', `do_head',
767 `get_troff_indent', `restore_troff_indent', `handle_assertion',
768 `handle_state_assertion', `do_end_para', `set_char_and_width'.
769 Change argument to `do_fill' to `char *'.
771 (html_printer::emit_raw): Call `shutdown_table'.
773 (html_printer::do_center): Simplified.
774 (html_printer::do_title): Improved.
775 (html_printer::write_header): Emit one more newline.
777 (html_printer::do_heading, html_printer::do_indent,
778 html_printer::do_eol, html_printer::do_tab_ts,
779 html_printer::do_tab, html_printer::do_tab0,
780 html_printer::calc_po_in, html_printer::next_horiz_pos,
781 html_printer::remove_courier_tabs,
782 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
784 (html_printer::do_linelength, html_printer::do_pageoffset,
785 html_printer::do_indentation, html_printer::do_tempindent,
786 html_printer::do_tab_te): Simplified.
787 (html_printer::do_pointsize): Check whether point size is really
788 associated a `.tl' tag.
789 (html_printer::do_break): Rewritten.
790 (html_printer::troff_tag): Improved.
791 (html_printer::flush_globs): Updated.
792 (html_printer::lookahead_for_tables): Handle `is_br'.
794 (html_printer::set_char): Check `sbuf_style.f'.
795 (html_printer::write_navigation): Use string comparison.
796 (html_printer::~html_printer): Emit `head_info'.
797 (html_printer::special): Rewritten.
798 (get_str, make_val): New functions.
799 (main): New option `s' to set the base point size.
801 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
803 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
805 * src/roff/troff/node.cpp: New extern `debug_state'.
806 Include `stringclass.h' and `mtsm.h'.
807 Implement new classes and class members from `node.h'.
808 (real_output_file): Make `fp' public.
809 (troff_output_file): New variables `cur_div_level' and `tag_list'.
811 (troff_output_file::really_print_line): Check whether we should push
812 the current troff state and use the state at the start of the
813 invocation of this diversion.
814 (troff_output_file::add_to_tag_list): New member function.
815 (node::add_char): Handle `glyph_comp_np'.
817 * src/roff/troff/node.h: Include `mtsm.h'.
818 (node): New variables `state', `push_state', `div_nest_level',
819 `is_special'. Update constructors, all descendants.
820 Pass additional argument to `add_char' member function.
821 New virtual member functions `is_tag', `debug_node',
822 `debug_node_list'. Update all descendants.
823 (tag_node): New class for handling tags.
824 (output_file): Add variable `state'.
826 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
828 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
829 providing a minimal troff state machine to emit meta tags for the
830 post-grohtml device driver.
832 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
835 2004-10-09 Werner LEMBERG <wl@gnu.org>
837 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
839 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
841 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
843 * src/roff/troff/div.h: Include `mtsm.h'.
844 (diversion): New variables `any_chars_added', `needs_push',
845 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
846 `saved_suppress_next_eol', `modified_tag'.
847 New virtual member function `is_diversion'. Update all descendants.
849 * src/roff/troff/div.cpp (diversion::diversion,
850 macro_diversion::macro_diversion): Updated.
851 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
853 (top_level_diversion::space): Handle `curenv->seen_space'.
854 (page_offset): Update tag handling.
855 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
857 * src/roff/troff/env.h (environment): Make `tabs' public.
858 Remove `ignore_next_eol', `emitted_node'.
859 Update `output_line', `output'.
860 New variables `seen_space', `seen_eol', `suppress_next_eol',
862 New member functions `construct_state', `make_tag',
863 `construct_format_state, `construct_new_line_state,
865 Remove `add_html_tag', `make_html_tag'.
867 * src/roff/troff/env.cpp: New externs `suppress_push',
868 `get_diversion_state', `global_diverted_space'.
869 (pending_output_line): New variable `was_centered'.
870 Update constructor and all callers.
871 (pending_output_line::output): Call `curenv->construct_format_state'.
872 (environment::environment, environment::copy): Updated.
873 (environment::output): Handle `was_centered'.
874 (environment::add_char): Handle construct and diversion state.
875 (environment::add_node): Handle construct state.
876 (environment::newline): Handle `was_centered'.
877 (environment::output_line): Updated.
878 (environment::possibly_break_line): Updated.
880 (environment::add_html_tag): Replaced with...
881 (environment::make_tag): New function.
882 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
883 (environment::dump_troff_state): New debugging function.
884 (environment::construct_state, environment::construct_format_state,
885 environment::construct_new_line_state): New functions.
886 (environment::do_break): Updated.
887 Handle `global_diverted_space'.
888 (environment::handle_tag): Update tag handling.
889 (point_size, fill, do_break_request): Don't call `add_html_tag'.
890 (no_fill): Don't call `add_html_tag'.
891 Set `suppress_next_eol'.
892 (center, right_justify, line_length, indent, temporary_indent,
896 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
897 (input_iterator): New variables `is_diversion', `diversion_state'.
899 (input_stack): New member functions `get_div_level',
900 `get_diversion_state', `check_end_diversion'.
901 New variables `div_level', `diversion_state'. Initialize them.
902 (suppress_push, global_diverted_space): New global variables.
903 (input_stack::finish_get, input_stack::finish_peek,
904 input_stack::remove_boundary, input_stack::end_file,
905 input_stack::clear, input_stack::pop_macro): Call
906 `check_end_diversion'.
907 (input_stack::push): Handle `div_level' and `diversion_state'.
908 (get_diversion_state): New function.
909 (diverted_space_node::reread): Handle `global_diverted_space'.
910 (macro::macro): Update constructors.
911 (macro::is_diversion): New function.
912 (macro::operator=): Set `is_a_diversion'.
913 (string_iterator): New member function `is_diversion'.
914 (string_iterator::string_iterator): Update constructors.
915 (string_iterator::fill): Set `div_nest_level'.
916 (macro_iterator): New member function `is_diversion'.
917 (do_if_request): Handle `suppress_push'.
918 (tag, taga): New functions.
919 (init_input_requests): Add `tag' and `taga' requests.
921 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
923 * src/include/font.h (font): New member function
924 `get_image_generator'.
925 New variables `unscaled_charwidths' and `image_generator'.
927 * src/libs/libgroff/font.cpp (font::get_width): Always return the
928 character's unscaled width if `font::unscaled_charwidths' is set.
929 (font::get_image_generator): New function.
930 (font::load_desc): Check the `unscaled_charwidths' and
931 `image_generator' keywords.
933 * src/libs/libgroff/fontfile.cpp: Initialize
934 `font::unscaled_charwidths' and `font::image_generator'.
936 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
938 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
940 * man/groff_font.man: Document `unscaled_charwidths' and
943 * src/preproc/html/pre-html.cpp: Include `device.h'.
944 (image_gen): New global variable.
945 (imageList::createPage): Use `image_gen'.
946 (main): Use `image_generator' keyword.
948 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
950 * tmac/html.tmac: Handle \[sqrtex].
952 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
954 * src/include/printer.h (printer): New virtual method `round_width'.
956 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
957 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
958 src/devices/grotty/tty.cpp (printer::round_width): New function
961 * src/devices/grohtml/post-html.cpp (printer::round_width): New
963 (html_printer::set_numbered_char): Use it.
965 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
967 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
969 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
971 * configure: Regenerated.
973 * Makefile.in (GHOSTSCRIPT): New variable.
974 (MDEFINES): Add GHOSTSCRIPT.
976 2004-10-03 Werner LEMBERG <wl@gnu.org>
978 * INSTALL.gen: Updated (taken from texinfo CVS).
980 2004-09-28 Werner LEMBERG <wl@gnu.org>
984 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
986 * tmac/groff_www.man: Revised and updated.
988 2004-09-26 Werner LEMBERG <wl@gnu.org>
990 Fix \$@ and \$* to handle any number of arguments.
992 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
995 * src/roff/troff/input.cpp (input_iterator::internal_level):
997 (input_stack): New member functions `increase_level' and
999 (input_stack::get_level): Don't use `internal_level'.
1000 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1001 (end_quote_iterator): Completely removed.
1002 (interpolate_arg): Build string for \$@ and \$* which is then
1003 pushed onto the input stack.
1005 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
1007 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1010 2004-09-23 Werner LEMBERG <wl@gnu.org>
1012 * tmac/an-old.tmac (ne): Using default scaling operator.
1014 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1016 This change implements the following features:
1019 New numeric register: Defines number of lines following LP, PP,
1020 QP, IP or XP, which must be kept together, before any automatic
1021 page break. If insufficient space remains on the current page, a
1022 page break is forced before the new paragraph begins.
1025 New numeric register: Sets number of lines of following paragraph
1026 which must be kept with a heading, defined by NH or SH, before any
1027 automatic page break. If insufficient space remains on the
1028 current page, a page break is forced before the heading.
1031 (Thanks to Joerg van den Hoff, for this idea).
1033 New numeric register: Sets the first level of heading (set with
1034 NH), which will keep the same point size as body text; e.g. if
1035 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1036 point size specified by \n[PS], but .NH 2 and .NH 1 will have
1037 progressively larger point sizes, determined by \n[PSINCR] (see
1041 New numeric register: Sets the point size increment for each level
1042 of heading, (set with NH), below the threshold level set by
1043 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1044 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1045 and all other levels will remain at 10pt, (because \n[PS] = 10).
1048 Existing macro now accepts a numeric argument, to make heading
1049 size match that of NH with same argument value, when the
1050 GROWPS/PSINCR feature is enabled.
1053 New string, set by NH macro, replaces the existing (undocumented)
1054 use of SN, to represent the assigned section number.
1057 New string, set by NH macro, represents the assigned section
1058 number, but omits the terminal period (periods at intermediate
1059 levels are retained).
1062 String set by NH macro, originally undocumented, now implemented
1063 as an alias for SN-DOT (which reproduces original behaviour).
1065 * tmac/s.tmac (PORPHANS): New register.
1066 (par*start): Use it.
1067 (HORPHANS, GROWPS, PSINCR): New registers.
1068 (SH-NO-TAG, @SH): Use them.
1071 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1073 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1074 of `Ds' and `De' macros.
1076 2004-09-10 Werner LEMBERG <wl@gnu.org>
1078 In tbl, handle \a as an interpreted leader character if in
1081 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1082 LEADER_CHAR): New macros.
1083 (compatible_flag): New declaration.
1085 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1086 LEADER_3, and LEADER_4 to `state'.
1087 (table_input::get): Handle `\a'.
1089 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1090 (LEADER_REG): New macro.
1091 (table::init_output): Define LEADER_REG string register if in
1094 * src/preproc/tbl/tbl.man: Document it.
1096 2004-08-18 Werner LEMBERG <wl@gnu.org>
1098 * tmac/doc.tmac (An): Fix error message.
1100 2004-08-06 Werner LEMBERG <wl@gnu.org>
1102 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1103 file can't be opened. UNIX tbl has the same behaviour.
1105 2004-08-05 Y T <doarhop@hotmail.com>
1107 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1108 (DBRead): If in compatibility mode, take into account the text
1109 when computing figure boundaries.
1111 2004-08-05 Werner LEMBERG <wl@gnu.org>
1113 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1114 from Tadziu Hoffmann.
1116 2004-08-03 Werner LEMBERG <wl@gnu.org>
1118 * doc/meref.me: Document `_M' register.
1120 2004-08-03 Martin Husemann <martin@duskware.de>
1122 Make hpftodit work correctly on big-endian systems.
1124 * src/utils/hpftodit/hpftodit.cpp (File): New method
1125 `get_uint32(char *)'.
1126 (entry): New member `orig_value'.
1127 (read_tags): Use new method.
1128 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1131 2004-08-01 Werner LEMBERG <wl@gnu.org>
1133 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1134 are already in X11's `macros.t' file.
1136 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1138 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1140 (read_and_output_pcltypeface): Handle strings with length <= 4.
1142 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1144 * tmac/s.tmac (pg@top): Don't save `PO' register.
1145 (pg*end-col, pg*end-page): Directly use `PO' register.
1147 2004-07-27 Werner LEMBERG <wl@gnu.org>
1149 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1151 * src/preproc/refer/refer.cpp (output_references): Check for
1153 * src/preproc/refer/refer.man: Improve documentation of
1154 `bibliography' command.
1156 2004-07-26 Werner LEMBERG <wl@gnu.org>
1158 Add requests `fcolor' and `gcolor'.
1160 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1162 (init_env_requests): Add `fcolor' and `gcolor'.
1164 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1166 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1167 Document new requests.
1169 2004-07-24 Werner LEMBERG <wl@gnu.org>
1171 Add support for fractional point sizes in ms macros. A value for
1172 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1173 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1175 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1176 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1178 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1180 2004-07-19 Werner LEMBERG <wl@gnu.org>
1182 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1184 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1185 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1187 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1189 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1190 * tmac/groff_mdoc.man: Updated.
1192 2004-07-05 Werner LEMBERG <wl@gnu.org>
1194 * doc/groff.texinfo: Further improve documentation of `hcode'.
1196 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1198 Improve appearance of arrows in pic.
1200 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1202 Use two line segments for drawing non-filled arrow head.
1203 (line_object::print, spline_object::print): Shorten line length to
1204 avoid arrow sticking.
1205 (arc_object::print): Take arrow direction into account.
1207 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1209 * tmac/groff_www.man: Update documentation of .MPIMG.
1211 2004-07-03 Werner LEMBERG <wl@gnu.org>
1213 * tmac/an-old.tmac (RI): Always start with font `R'.
1214 (RI, IR): Properly end with font `R'.
1216 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1218 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1219 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1220 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1221 Don't pass more than six arguments to .R, .I, .B, etc., for
1222 compatibility with traditional troff macros.
1224 2004-07-02 Werner LEMBERG <wl@gnu.org>
1226 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1227 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1229 (PUSH_COMP_MODE): New internal character constant.
1232 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1233 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1234 (token::next, macro::append): Handle PUSH_COMP_MODE.
1235 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1236 POP_GROFFCOMP after each of the decoded arguments to make them
1237 independent from the compatibility mode status.
1238 (comp_mode): Add `COMP_ENABLE'.
1239 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1240 (define_string, append_string, define_macro, define_indirect_macro,
1241 append_macro, append_indirect_macro): Handle `compatible_flag'.
1242 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1244 * man/groff_diff.man, doc/groff.texinfo: Updated.
1246 2004-07-01 Werner LEMBERG <wl@gnu.org>
1248 * doc/groff.texinfo: Improve documentation of `hcode'.
1249 Use @documentencoding and convert document to latin-1; to do that
1250 make latin characters active and assign proper macros (within a
1251 @tex...@end tex environment).
1252 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1253 * doc/Makefile.sub (groff): Ditto.
1255 2004-06-29 Werner LEMBERG <wl@gnu.org>
1257 Implement two new conditional operators `F <name>' and `S <name>'
1258 which check whether <name> is a valid font or style, respectively.
1260 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1261 (text_file::text_file): Updated.
1262 (text_file::error): Don't emit message if `silent' is set.
1263 (font::load_font): Add optional third argument (which is directly
1265 (font::load): Add optional second argument to check the header of
1266 a font only, without emitting warning or error messages.
1267 * src/include/font.h (font): Updated.
1269 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1271 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1272 fourth argument to check a font without mounting.
1273 (check_font, check_style): New functions.
1274 * src/roff/troff/node.h: Updated.
1276 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1279 2004-06-27 Werner LEMBERG <wl@gnu.org>
1281 Implement new string-valued register `.sty' to return the current
1284 * env.cpp (environment::get_style_name_string): New function.
1285 (init_env_requests): Add `.sty' register.
1286 * env.h (environment): Updated.
1287 * node.cpp (font_info): Make `get_style_name' a friend.
1288 (get_style_name): New function.
1291 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1294 2004-06-15 Werner LEMBERG <wl@gnu.org>
1296 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1299 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1301 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1302 and \n[mo] to avoid dependency on current date.
1304 2004-06-08 Werner LEMBERG <wl@gnu.org>
1306 * Makefile.sub (install_data): New target.
1308 2004-06-04 Werner LEMBERG <wl@gnu.org>
1310 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1312 2004-06-03 Werner LEMBERG <wl@gnu.org>
1314 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1316 (install_data): Add $(srcdir).
1318 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1321 2004-06-02 Werner LEMBERG <wl@gnu.org>
1323 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1324 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1325 Add test for Xmu library.
1326 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1327 GROFF_APPRESDIR_DEFAULT): New macros.
1329 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1330 and GROFF_APPRESDIR_DEFAULT.
1332 * configure: Regenerated.
1334 * Makefile.in (appresdir): New variable.
1335 (MDEFINES): Add appresdir.
1337 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1339 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1341 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1342 `$(srcdir)/eign', not `eign'.
1344 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1346 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1347 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1348 Protect (g)xditview with `\%' to avoid hyphenation.
1349 Other minor formatting.
1351 2004-06-01 Werner LEMBERG <wl@gnu.org>
1353 Integrate gxditview into groff's standard directory hierarchy.
1355 * src/xditview/*: Moved to ...
1356 * src/devices/xditview/*: Here.
1357 Moved DviChar.h and XFontName.h to src/include.
1358 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1359 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1360 Moved xtotroff.c to new directory src/utils/xtotroff.
1361 Provide proper Makefile.sub files (reusing the stuff from
1363 DESC renamed to DESC.in.
1364 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1365 Converted everything from K&R to ANSI C.
1366 Decorated with const where appropriate.
1367 Cast string constants with `String' and `char *' where appropriate.
1368 Made it compile with C++ (used as a C compiler).
1369 Removed other minor compiler warnings.
1371 * src/devices/xditview/device.c: Include config.h, string.h, and
1373 Don't declare `exit', `strtok', `strchr', and `getenv'.
1376 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1379 * src/devices/xditview/xditview.c: Include config.h.
1380 Include stdio.h earlier.
1381 Protect declaration of `popen' and `pclose' with
1382 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1383 Replace `caddr_t' with `XtPointer'.
1384 (MakePromptFunc): New typedef.
1385 (DoPrint): Use RETSIGTYPE.
1386 (promptfunction): Change type to MakePromptFunc.
1387 (MakePrompt): Use MakePromptFunc for third argument.
1390 * src/devices/xditview/ad2c: Add casts to `String'.
1392 * src/include/XFontName.h (XFontNameString): Don't use array
1394 Add prototypes for `XParseFontName', `XFormatFontName',
1395 `XCompareFontName', and `XCopyFontName'.
1397 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1400 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1401 Don't declare `XParseFontName' and `XFormatFontName'.
1403 (main): Remove `optind' and `optarg'.
1405 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1406 (to select programs which need X).
1407 Make XDEVIDIRS depend on `FORCE'.
1408 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1410 (MDEFINES): Updated.
1411 (LIBDIRS): Use XLIBDIRS.
1412 (CPROGDIRS): Use XPROGDIRS.
1413 (DEVDIRS): Remove font directories for gxditview.
1414 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1415 (EXTRADIRS): Remove src/xditview.
1417 * Makefile.sub (DISCLEANFILES): Updated.
1419 * Makefile.comm (LIBXUTIL): New variable.
1420 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1421 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1423 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1425 * aclocal.m4 (GROFF_X11): New function.
1427 * configure.ac: Call GROFF_X11.
1428 Don't create src/xditview/Imakefile.
1429 Don't emit notice how to build gxditview.
1431 * configure: Regenerated.
1433 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1435 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1437 * Makefile.in (CPPFLAGS): Define.
1438 (MDEFINES): Add CPPFLAGS.
1440 2004-05-27 Werner LEMBERG <wl@gnu.org>
1442 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1444 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1446 Fix problems with `friend name injections'.
1448 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1449 make_script_box), src/roff/troff/div.h (end_diversions),
1450 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1453 2004-05-25 Bernd Warken <bwarken@mayn.de>
1455 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1457 2004-05-25 Werner LEMBERG <wl@gnu.org>
1459 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1460 src/libs/libgroff/color.cpp: Include lib.h.
1462 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1464 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1465 through Forte 6u1, and for how to get GNU make on Solaris.
1467 2004-05-24 Werner LEMBERG <wl@gnu.org>
1469 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1472 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1474 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1477 2005-05-14 Werner LEMBERG <wl@gnu.org>
1479 * REVISION: Set to 2.
1481 * aclocal.m4 (GROFF_STDINT_H): Removed.
1482 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1484 * configure.ac: Updated.
1485 * configure, src/include/config.hin: Regenerated.
1487 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1488 inttypes.h conditionally.
1490 2003-05-13 Werner LEMBERG <wl@gnu.org>
1492 Version 1.19.1 released
1493 =======================
1495 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1497 * src/preproc/refer/label.y (same_author_last_name,
1498 same_author_name): Handle empty sort keys.
1500 2004-05-10 Werner LEMBERG <wl@gnu.org>
1502 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1505 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1506 doc-str-Lb-librt): Reset font.
1507 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1508 Provide `doc-str-Lb' to reset font.
1509 * tmac/groff_mdoc.man: Updated.
1511 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1513 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1514 snprintf versions which don't conform to ANSI C 99 (this is,
1515 counting the string's trailing null byte in the return value).
1517 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1519 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1520 that all implementations of sprintf handle null pointers correctly.
1522 2004-05-04 Werner LEMBERG <wl@gnu.org>
1524 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1525 Document `.U' register.
1527 * src/roff/troff/env.cpp (environment::mark_last_line)
1528 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1530 2004-05-04 Larry Kollar <kollar@alltel.net>
1532 New read-only register `.U'; it returns 1 in safer mode and 0
1535 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1538 2004-05-03 Werner LEMBERG <wl@gnu.org>
1540 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1542 2004-04-17 Werner LEMBERG <wl@gnu.org>
1544 * src/include/font.h (font): Use `int' for ch_index.
1545 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1546 font::compact): Updated.
1548 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1551 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1552 (hyphen_word): Fix compiler warnings.
1553 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1556 (get_delim_number, get_line_arg): Change second argument type to
1558 (macro_header::copy, token::next, do_define_string,
1559 do_define_character, substring_request, asciify_macro,
1560 unformat_macro, read_size, non_interpreted_node::interpret,
1561 while_request, main: Fix compiler warnings.
1562 (read_color_draw_node): Initialize `col'.
1564 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1565 `start_col' and `end_col' of type `int'.
1566 (vertical_rule): Make `col' of type `int'.
1568 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1571 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1573 (format_serial): Use them to remove dependency on ASCII.
1575 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1577 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1580 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1582 (glyph): Change type of `hpos' to `int'.
1584 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1585 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1587 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1589 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1591 2004-04-16 Werner LEMBERG <wl@gnu.org>
1593 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1594 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1595 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1596 `double' instead of `float' everywhere.
1597 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1599 (main): Add return value.
1600 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1602 Update all user functions.
1604 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1605 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1606 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1607 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1608 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1609 src/roff/troff/input.cpp, src/roff/troff/request.h,
1610 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1613 * src/utils/indxbib/signal.c: Include stdlib.h.
1615 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1617 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1618 before the first page.
1620 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1622 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1623 (doc-operating-system-*): Updated.
1624 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1625 (doc-str-Lb-*): Add more library names.
1627 2004-04-10 Art Haas <ahaas@airmail.net>
1629 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1632 2004-04-09 Art Haas <ahaas@airmail.net>
1634 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1636 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1638 * arch/misc/shdeps.sh: Generate better comment for sed script.
1640 2004-04-08 Art Haas <ahaas@airmail.net>
1642 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1643 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1644 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1645 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1646 (polyfill), src/preproc/grn/main.cpp (polyfill),
1647 src/preproc/refer/command.cpp (command_table),
1648 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1649 gcc 3.5 doesn't like).
1651 2004-04-08 Werner LEMBERG <wl@gnu.org>
1653 Removing many compiler warnings. groff should now compile with
1654 a C++ compiler used for C files also. [Simple variable renamings
1655 to avoid shadowing aren't logged in detail.]
1657 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1658 (draw_dvi_printer::draw) ['c']: Enclose in block.
1660 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1661 (page::add_line): Fix typos.
1662 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1664 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1665 Some local variable renamings.
1666 * src/devices/grolbp/lbp.h: Some local variable renamings.
1668 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1671 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1672 Remove redundant local variable declaration.
1673 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1674 Don't use `caddr_t' but `void *'.
1675 Enclose functions with `extern "C"' for C++.
1677 * src/libs/libdriver/input.cpp (remember_filename,
1678 remember_source_filename): Use cast for string constant.
1680 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1681 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1682 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1683 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1685 Enclose functions with `extern "C"' for C++.
1686 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1687 (needs_quoting): Return `int'.
1688 (quote_arg): Add proper casts to malloc and realloc.
1689 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1690 various MS Windows environments.
1691 (spawnvp_wrapper): Add proper cast to malloc.
1693 * src/preproc/eqn/box.h: Remove redundant declarations of
1694 `make_script_box', `make_mark_box' and `make_lineup_box'.
1695 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1696 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1699 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1700 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1701 (dx, dy): Renamed functions to...
1702 (deltax, deltay): This.
1703 * src/preproc/grn/main.cpp: Some local variable renamings.
1704 (deffont): Add `const'.
1705 (initpic, conv): Use cast for string constant.
1707 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1708 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1709 (char_buffer::run_output_filter): Second argument is unused.
1710 * src/preproc/html/pushback.cpp: Some local variable renamings.
1712 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1713 * src/preproc/pic/object.cpp: Some local variable renamings.
1715 * src/preproc/refer/label.y (lookup_label): Remove redundant
1716 declaration of local variable.
1718 * src/preproc/soelim.cpp: Remove redundant declaration of
1719 `interpret_lf_args'.
1721 * src/preproc/tbl/main.cpp: Some local variable renamings.
1723 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1724 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1725 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1726 Don't use C++-style comments.
1728 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1729 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1730 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1732 * src/roff/troff/div.h: Remove redundant declaration of
1734 * src/roff/troff/troff.h: Remove redundant declaration of
1736 * src/roff/troff/input.cpp: Remove redundant declaration of
1737 `handle_first_page_transition' and `process_input_stack'.
1739 * src/utils/hpftodit.cpp: Some local variable renamings.
1741 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1743 Don't define RETSIGTYPE.
1744 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1746 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1747 (error): Use `const' in argument.
1748 (main): Remove redundant declaration of `optind'.
1749 Move declaration of `Version_string' to top-level.
1751 * PROBLEMS: Document difficulties compiling signal.c if a C++
1752 compiler is used for C.
1754 2004-04-07 Werner LEMBERG <wl@gnu.org>
1756 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1758 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1760 Make scripts like nroff.sh and neqn.sh portable across various
1761 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1762 non-POSIX path separators. The idea is to extend those scripts to
1763 decide at run-time (of the script) which path separator to use.
1765 * arch/misc/Makefile.sub: New file.
1766 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1767 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1768 a proper definition of the variable `GROFF_RUNTIME'.
1770 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1771 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1772 (PROGDEPDIRS): New variable.
1774 (PROGDIRS): Add PROGDEPDIRS.
1776 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1777 Don't substitute @SEP@ and @BINDIR@.
1778 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1779 (PATH): Use GROFF_RUNTIME.
1781 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1782 Don't substitute @SEP@ and @BINDIR@.
1783 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1784 (PATH): Use GROFF_RUNTIME.
1786 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1788 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1789 Cygwin which doesn't handle stderr correctly.
1791 2004-03-08 Werner LEMBERG <wl@gnu.org>
1793 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1794 against empty argument. Problem reported by <cgd@broadcom.com>.
1796 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1798 * Makefile.in (SEP): Replaced with...
1799 (RT_SEP, SH_SEP): Separators for the target platform's native path
1800 separator and the build environment, respectively.
1801 (fontpath, tmacpath): Use RT_SEP.
1802 (MDEFINES): Updated.
1804 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1805 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1806 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1807 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1809 2004-03-05 Werner LEMBERG <wl@gnu.org>
1811 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1812 reduce alignment problems with newer printers which use built-in
1813 TrueType fonts (instead of the older Intellifonts). The ideal
1814 solution is to provide a second set of groff metric files, but this
1815 is extremely time-consuming to produce, given that HP's metric
1816 files are very rudimentary.
1818 2004-03-01 Werner LEMBERG <wl@gnu.org>
1820 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1821 s/operand/argument/ in error message.
1823 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1825 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1828 2004-03-01 Antti Kantee <pooka@netbsd.org>
1830 * tmac/s.tmac (XE): Fix error message.
1832 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1834 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1837 * src/roff/groff/pipeline.c: Declare strcasecmp.
1838 (run_pipeline) [_WIN32]: Use function name variants which don't
1840 Fix stream handling.
1842 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1844 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1845 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1846 for platforms which use the native Win32 runtime libraries.
1847 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1849 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1850 QUOTE_ARG_REALLOC_ERROR): Fix string.
1852 * src/preproc/html/pre-html.cpp: Remove declaration of
1854 Don't use __MINGW32__.
1855 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1856 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1857 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1858 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1859 calls to `set_redirection' and `WAIT'.
1860 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1861 Fix calls to `set_redirection' and `save_and_redirect'.
1862 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1863 to `set_redirection' and `save_and_redirect'.
1864 (usage): Fix message.
1865 (makeTempFiles, main): Use `DEBUG_FILE'.
1867 2004-02-21 Werner LEMBERG <wl@gnu.org>
1869 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1871 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1873 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1874 quoting for MSVC's spawn* and exec* functions.
1875 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1876 spawnvp with proper quoting for MSVC.
1878 * src/libs/libgroff/assert.cpp (program_name),
1879 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1880 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1882 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1884 * src/include/error.h (program_name): Declare as `extern "C"'.
1885 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1887 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1889 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1891 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1893 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1895 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1897 (sbasename) [__MSDOS__ || ...]: New function.
1898 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1900 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1901 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1903 Use STDOUT_FILENO instead of hardcoded file handle.
1904 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1906 2004-02-19 Werner LEMBERG <wl@gnu.org>
1908 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1909 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1911 2004-02-18 Werner LEMBERG <wl@gnu.org>
1913 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1914 new font and mapping files.
1916 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1917 Keith Marshall <keith.d.marshall@ntlworld.com>
1919 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1920 an input pipe. This is needed for the MSVC compiler to make troff's
1923 * src/roff/troff/div.cpp: Include nonposix.h.
1924 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1926 2004-02-17 Werner LEMBERG <wl@gnu.org>
1928 * font/devlj4/generate/special.awk: New script.
1929 * font/devlj4/generate/Makefile (S): Use special.awk.
1930 * font/devlj4/*: Regenerated, including the following new files:
1931 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1932 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1933 * NEWS: Document new lj4 fonts and revised hpftodit.
1935 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1937 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1939 2004-01-25 Werner LEMBERG <wl@gnu.org>
1941 * src/libs/libgroff/progname.cpp: Replaced with...
1942 * src/libs/libgroff/progname.c: New file.
1943 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1945 2004-01-17 Werner LEMBERG <wl@gnu.org>
1947 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1949 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1951 * font/devlj4/generate/wingdings.map,
1952 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1953 Use groff glyph names where possible.
1954 * src/devices/grolj4/lj4_font.man: Minor updates.
1956 2004-01-13 Werner LEMBERG <wl@gnu.org>
1958 * tmac/www.tmac (DC): Handle TTY devices.
1960 * doc/webpage.ms: Document viewCVS from ffii.org.
1961 * NEWS, README: Updated.
1963 * src/roff/groff/groff.man: Mention lj4_font man page.
1965 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1967 (FONTS): Add SYMBOL and WINGDINGS.
1968 (SYMBOL, WINGDINGS): New targets.
1970 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1972 * src/devices/grolj4/lj4_font.man: New man page.
1973 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1974 * src/devices/grolj4.man: Mention lj4_font man page.
1976 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1977 * src/utils/hpftodit/hpftodit.man: Document it.
1979 Remove details about fonts (which are now in lj4_font.man).
1981 * font/devlj4/generate/symbol.map,
1982 font/devlj4/generate/wingdings.map: New files.
1984 2004-01-12 Werner LEMBERG <wl@gnu.org>
1986 * README: Mention ffii's viewcvs access.
1988 2004-01-09 Werner LEMBERG <wl@gnu.org>
1990 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1992 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1994 Revert most of the change from 2004-01-03 to better control used
1997 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1998 (text_symbol_sets, special_symbol_sets): New arrays.
1999 (symbol_set_table): New global variable.
2000 (read_symbol_sets): Use search order given in the text_symbol_sets
2001 and special_symbol_sets arrays. If command line flag -a is not
2002 given, search both arrays.
2003 (output_charset): Require x_height_tag only for command line flag -i.
2005 2004-01-06 Werner LEMBERG <wl@gnu.org>
2007 Implement string-valued registers \n[.m] and \n[.M] to return the
2008 name of the current drawing and background color, respectively.
2010 * src/roff/troff/symbol.h: Moved to...
2011 * src/include/symbol.h: Here.
2012 Small fixes to make it work outside of the `troff' directory.
2013 * src/roff/troff/symbol.cpp: Moved to...
2014 * src/libs/libgroff/symbol.cpp: Here.
2015 Small fixes to make it work outside of the `troff' directory.
2017 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2018 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2021 * src/include/color.h: Include symbol.h.
2022 (color): Add new field `nm'.
2023 * src/libs/libgroff/color.cpp (color::color): Updated.
2025 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2026 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2027 src/roff/troff/reg.cpp: Don't include symbol.h.
2029 * src/roff/troff/env.cpp: Don't include symbol.h.
2030 (environment::get_glyph_color_string,
2031 environment_get_fill_color_string): New member functions.
2032 (init_env_requests): Handle `.m' and `.M' registers.
2033 * src/roff/troff/input.cpp: Don't include symbol.h.
2034 (default_symbol): Moved to symbol.cpp/symbol.h.
2035 (do_glyph_color, do_fill_color, define_color): Pass symbol name
2036 to color constructor.
2037 * src/roff/troff/env.h: Updated.
2039 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2040 Document new registers.
2042 2004-01-05 Werner LEMBERG <wl@gnu.org>
2044 * src/roff/troff/node.cpp (space_node::get_breakpoints,
2045 space_node::nbreaks): Protect against zero `next' field.
2047 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
2049 In hpftodit, use the symbol sets offered in the TFM.
2051 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2052 (symbol_set, text_symbol_sets, special_symbol_sets,
2053 symbol_set_table): Removed.
2054 (get_printcode): Removed.
2055 (read_symbol_sets): Initialize `symbol_set' field with
2057 Simplify code to just use the `kind' value.
2058 (output_charset): Improve output formatting.
2059 (dump_symbols): Simplified.
2061 2004-01-02 Werner LEMBERG <wl@gnu.org>
2063 * font/devlj4/generate/text.map: Add more MSL numbers.
2065 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
2067 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2068 (text_symbol_sets): Add more symbol sets.
2069 (debug_flag): New static variable (moved from `main').
2070 (get_printcode, show_symset): New functions.
2071 (main): Remove `debug_flag'.
2072 (output_charset): Use `show_symset'.
2073 (dump_symbols): Use `show_symset'.
2074 Print symsets for all glyphs.
2075 (read_map): Actually call `unicode_to_ucode_make' but this time
2078 2004-01-01 Werner LEMBERG <wl@gnu.org>
2080 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2081 Fix placement of comments.
2083 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2085 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2086 option `-d' is given.
2087 (output_charset): Improve warning messages to give more information.
2088 (dump_symbols): Make information more precise.
2090 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2091 appear as-is and shouldn't be decomposed.
2093 2003-12-31 Werner LEMBERG <wl@gnu.org>
2095 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2096 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2097 (FONTS): Add TrueType font families Arial and Times New Roman.
2098 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2099 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2102 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2104 * test-groff.in (SEP): Quote value.
2105 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2106 `tem' to `char*' to avoid deallocation of a pointer to a constant
2107 object which some compilers don't like.
2109 2003-12-31 Werner LEMBERG <wl@gnu.org>
2111 * font/devlj4/generate (text.map, special.map): Rewritten to work
2112 with the new hpftodit version.
2114 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2116 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2117 set and 8bit character code for all glyphs also.
2119 2003-12-30 Werner LEMBERG <wl@gnu.org>
2121 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2123 2003-12-29 Werner LEMBERG <wl@gnu.org>
2125 More fixes for MSVC compiler.
2127 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2130 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2131 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2132 (getpid) [_MSC_VER]: Remove.
2133 Include direct.h and process.h conditionally.
2135 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2136 parentheses for a_delete.
2138 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2140 * test-groff: Replaced with...
2141 * test-groff.in: This new template to handle path separator
2144 * configure.ac: Check for direct.h and process.h.
2145 Generate test-groff script.
2146 * configure, src/include/config.hin: Regenerated.
2148 2003-12-28 Werner LEMBERG <wl@gnu.org>
2150 Add integral extension glyph.
2151 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2153 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2155 * font/devps/generate/textmap: Provide entry for `integralex' to
2156 override (old) PUA value of the AGL.
2157 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2158 * font/devps/*: Regenerated.
2160 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2161 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2163 2003-12-27 Werner LEMBERG <wl@gnu.org>
2165 Add forgotten `coproduct' symbol (already available for DVI).
2167 * font/devhtml/R.proto, font/devps/generate/textmap,
2168 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2169 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2170 U+2210 (\[coproduct]).
2172 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2174 hpftodit has been extended to handle TrueType metric files and
2175 more glyphs. See hpftodit.man for more details.
2177 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2178 ctype.h, and unicode.h.
2179 s/msl/charcode/ everywhere since we now handle Unicode values also.
2180 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2181 Use it where appropriate.
2182 (MULTIPLIER): Replaced with...
2183 (multiplier): New global static variable.
2185 (tag_type): Add more TFM tags.
2186 (tag_name): New array.
2187 (ENUM_TYPE, FLOAT_TYPE): Removed.
2188 (BYTE_TYPE): New value assigned.
2189 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2190 (text_symbol_sets, special_symbol_sets): Extended to cover more
2192 (check_type): Add return value.
2193 (check_units): Add parameters to get ppi and upem values.
2194 Handle TrueType TFM data.
2195 (output_font_name): New function.
2196 (output_charset): Add parameter to handle TFM type.
2197 Handle TrueType TFMs also.
2198 (em_fract): New macro.
2199 (dump_tags): Be much more verbose and handle more tags.
2200 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2201 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2203 (read_map): Add parameter to handle TFM type.
2204 Handle both MSL and Unicode mappings.
2205 (main): Add two new command line options `-a' and `-q'.
2206 Updated to make use of new functions.
2209 * src/utils/hpftodit/hpuni.cpp: New file.
2211 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2214 2003-12-25 Werner LEMBERG <wl@gnu.org>
2216 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2218 2003-12-24 Werner LEMBERG <wl@gnu.org>
2220 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2221 by Michail Vidiassov <master@iaas.msu.ru>.
2223 2003-12-20 Werner LEMBERG <wl@gnu.org>
2225 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2227 Add missing latin-2 glyphs.
2228 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2230 * tmac/troffrc: Load `composite.tmac' earlier.
2232 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2233 u00{53,73}_0327, and u0049_0307.
2234 * tmac/X.tmac: Add u00{47,67}_0306.
2235 * tmac/tty-char.tmac: Use composite glyph names for readability.
2239 * src/include/unicode.h: Remove `extern' keywords.
2241 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2243 * tmac/latin5.tmac: New file.
2245 2003-12-19 Werner LEMBERG <wl@gnu.org>
2247 Add some glyphs needed for Turkish.
2249 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2252 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2253 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2254 u00{53,73}_0327, and u0049_0307.
2256 2003-12-18 Werner LEMBERG <wl@gnu.org>
2258 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2260 Remove trailing zeros.
2262 2003-12-17 Werner LEMBERG <wl@gnu.org>
2264 Make \? transparent to end-of-sentence recognition.
2266 * src/roff/troff/input.cc (non_interpreted_node): Add
2267 `ends_sentence' member function.
2269 2003-12-16 Werner LEMBERG <wl@gnu.org>
2271 * doc/groff.texinfo: Document `dt' request correctly.
2272 Other minor typographical improvements.
2274 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2276 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2278 2003-12-10 Richard Stallman <rms@gnu.org>
2280 * LICENSE: Better wording.
2282 2003-12-09 Werner LEMBERG <wl@gnu.org>
2284 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2285 * configure, NEWS: Updated.
2287 2003-12-08 Werner LEMBERG <wl@gnu.org>
2289 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2291 2003-12-07 Bernd Warken <bwarken@mayn.de>
2295 2003-12-07 Werner LEMBERG <wl@gnu.org>
2297 * INSTALL: Improved.
2299 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2301 Use path separator character of target platform for compiled-in
2304 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2305 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2306 * configure: Regenerated.
2307 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2309 2003-12-05 Werner LEMBERG <wl@gnu.org>
2311 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2312 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2314 2003-12-04 Bernd Warken <bwarken@mayn.de>
2316 * LICENSE: New file.
2318 2003-12-03 Werner LEMBERG <wl@gnu.org>
2320 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2321 ligatures present in AFM files since groff currently only
2322 understands some standard ligatures and nothing else.
2324 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2326 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2329 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2332 Don't use Unix wait flags.
2334 2003-12-02 Werner LEMBERG <wl@gnu.org>
2336 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2337 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2338 src/roff/troff/uniuni.cpp: Moved to...
2339 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2340 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2341 src/libs/libgroff/uniuni.cpp: Here.
2343 * src/include/Makefile.sub.old (HDRS),
2344 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2345 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2347 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2349 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2353 2003-12-01 Werner LEMBERG <wl@gnu.org>
2355 * groff.texinfo: Document special behaviour of `.vs 0'.
2356 Improve documentation of `cflags' request.
2359 2003-11-29 Werner LEMBERG <wl@gnu.org>
2361 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2362 * font/devlj4/CORONET: Regenerated.
2364 2003-11-24 Werner LEMBERG <wl@gnu.org>
2366 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2367 if processing hyphenation patterns in traditional mode.
2368 Improve error messages.
2370 2003-11-20 Werner LEMBERG <wl@gnu.org>
2372 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2373 troff_output_file::put_char): Fix type of local variable `c'.
2375 2003-11-19 Werner LEMBERG <wl@gnu.org>
2377 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2379 (i_to_a): Removed. libgroff already provides this function.
2380 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2382 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2384 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2387 2003-11-17 Werner LEMBERG <wl@gnu.org>
2389 * COPYING: Use correct version.
2391 2003-11-11 Werner LEMBERG <wl@gnu.org>
2393 LynxOS 4.0.0 doesn't declare vfprintf.
2395 * configure.ac: Check for vfprintf.
2396 * configure: Regenerated.
2397 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2398 * src/include/config.hin: Regenerated.
2400 2003-11-10 Werner LEMBERG <wl@gnu.org>
2402 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2404 * configure.ac: Check for vsnprintf.
2405 * configure: Regenerated.
2406 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2408 * src/include/config.hin: Regenerated.
2410 2003-11-09 Werner LEMBERG <wl@gnu.org>
2412 * aclocal.m4: Updated syntax to autoconf 2.59.
2413 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2414 Don't check for gsos2.
2415 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2416 working abs_top_srcdir and abs_top_builddir.
2418 * configure.ac: Updated syntax to autoconf 2.59.
2419 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2420 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2421 * configure: Regenerated.
2423 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2424 s/@groff_top_builddir@/@abs_top_builddir@/.
2426 * src/roff/groff/pipeline.c (xstrsignal):
2427 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2429 2003-11-07 Werner LEMBERG <wl@gnu.org>
2431 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2432 make start angle smaller than end angle to circumvent a bug in tpic
2433 handling of some versions of dvipdfm (and dvipdfmx).
2435 2003-10-30 Werner LEMBERG <wl@gnu.org>
2437 * src/devices/grops/grops.man: Improve section on creating EPS.
2439 2003-10-29 Werner LEMBERG <wl@gnu.org>
2441 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2444 2003-10-28 Werner LEMBERG <wl@gnu.org>
2446 * doc/groff.texinfo: Fix documentation of `.if'.
2448 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2450 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2451 the form `uniXXXX' also.
2453 2003-10-27 Werner LEMBERG <wl@gnu.org>
2455 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2456 contrib/pic2graph/pic2graph.sh: Implement secure management of
2458 Pass `-P-pletter' to groff to avoid data outside of the converted
2459 area -- some versions of `convert' (for example 5.3.8) don't check
2460 the bounding box of the image but always use a fixed image size
2461 (letter paper format).
2462 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2463 contrib/pic2graph/pic2graph.man: Updated.
2465 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2467 2003-10-26 Werner LEMBERG <wl@gnu.org>
2469 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2470 troff_output::simple_ellipse, troff_output::simple_arc,
2471 troff_output::simple_line, troff_output::simple_spline,
2472 troff_output::simple_polygon): Insert a space before arguments.
2473 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2474 latter doesn't produce a node, so the following `.sp -1' would do
2476 Don't emit `.sp -1' after \M. This also doesn't produce a token
2477 (and we don't have to care about compatibility mode).
2478 (troff_output::set_color, troff_output::reset_color): Don't emit
2479 `.sp -1' after \M and \m.
2481 * src/roff/troff/input.cpp (old_have_input): New global variable.
2482 (input_stack::get): Handle `old_have_input'.
2483 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2484 `trapping_blank_line' depending on `old_have_input', not
2487 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2489 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2490 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2491 default directory names for temporary files.
2492 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2494 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2495 [__MSDOS__] (run_pipeline): Honour environment variables.
2496 Don't use `tmpnam' but `tempnam' to work around messy
2499 * README.MinGW: New file.
2501 2003-10-16 Werner LEMBERG <wl@gnu.org>
2503 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2504 `(*t)->next' without testing validity of `*t'.
2505 (usage): Make it more readable.
2507 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2509 Make html device run under both MS-DOS and Win32.
2511 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2512 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2513 spawn or fork+exec has to be used, and whether parent must sleep
2514 until the child process terminates. Used in
2515 `char_buffer::run_output_filter'.
2516 (copyofstdoutfd): Removed.
2517 (char_buffer): Replace `write_file_html' and `write_file_troff'
2518 member functions with `emit_troff_output' and `run_output_filter'.
2519 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2521 (replaceFd): Replaced with...
2522 (set_redirection): New auxiliary function.
2523 (waitForChild): Replaced with...
2524 (save_and_redirect): New auxiliary function for.
2526 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2529 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2531 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2532 (GROFF_LIBC): New function.
2533 * configure.ac: Call GROFF_LIBC.
2535 * configure: Regenerated.
2537 * src/include/lib.h: Handle __MINGW32__.
2538 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2539 Add macro for `pipe'.
2542 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2545 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2548 2003-10-13 Werner LEMBERG <wl@gnu.org>
2550 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2553 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2556 2003-10-12 Werner LEMBERG <wl@gnu.org>
2558 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2559 src/roff/troff/input.cc (usage): Updated.
2561 * NEWS, doc/groff.texinfo: Updated.
2563 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2565 * src/libs/libgroff/searchpath.cpp
2566 (search_path::open_file_cautious): New function which also handles
2567 `-' as stdin and stdout depending on the access mode.
2568 * src/include/searchpath.h (search_path): Updated.
2570 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2571 * src/devices/grops/ps.h: Include `searchpath.h'.
2572 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2573 Open resource file with `include_search_path.open_file_cautious'.
2574 * src/devices/grops/grops.man: Document new `-I' switch.
2576 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2577 (main), src/devices/grolj4/lj4.cpp (main),
2578 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2580 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2582 (include_search_path): New global variable.
2583 (include_path_append): Removed.
2584 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2585 (do_file): Simplify, using new
2586 `include_search_path.open_file_cautious'.
2588 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2590 (main): Pass arguments to `-I' to both troff and devices.
2591 Improve handling of `-V'.
2592 * src/roff/groff/groff.man: Document changes to -I and -V.
2594 * src/roff/troff/input.cpp (include_search_path): New global
2596 (next_file, source, ps_bbox_request, transparent_file,
2597 process_input_file): Use new
2598 `include_search_path.open_file_cautious'.
2599 (main) Handle `-I' switch.
2600 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2601 Use new `include_search_path.open_file_cautious'.
2602 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2603 * src/roff/troff/troff.man: Document new `-I' switch.
2605 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2607 Support multiple calls of .Lb in LIBRARY section.
2609 * tmac/doc-common (doc-in-library-section): New register.
2610 (doc-section-library): New string.
2611 (Sh): Set `doc-in-library-section'.
2613 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2614 if in LIBRARY section.
2615 * tmac/doc.tmac (doc-save-global-vars): Updated.
2616 * NEWS, tmac/groff_mdoc.man: Updated.
2618 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2620 * tmac/doc-common (doc-default-operating-system): New variable.
2623 2003-09-08 Werner LEMBERG <wl@gnu.org>
2625 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2627 2003-08-31 Werner LEMBERG <wl@gnu.org>
2629 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2630 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2631 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2632 $(DEVFILES) are not empty.
2633 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2635 2003-08-26 Chuck Silvers <chuq@chuq.com>
2637 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2638 with parallel runs of `make'.
2640 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2642 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2643 insert SORT_SEP. With certain combinations of sort specifications,
2644 refer sorted entries in the wrong order. In particular, entries
2645 with a missing field should be be sorted before all entries that
2646 have that field, before refer looks to the next field.
2648 2003-08-23 Werner LEMBERG <wl@gnu.org>
2650 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2651 g++ linker is used. Reported by Mark J. Reed
2652 <mark.reed@turner.com>.
2654 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2656 Add key character `x' to tbl which makes tbl call a user-defined
2657 macro on a table cell.
2659 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2660 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2661 `set_modifier' after printing the compatibility request.
2662 (set_modifier): Print call to `m->macro' if not empty.
2663 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2665 (process_format): Implement cases `x' and `X'.
2666 * src/preproc/tbl/tbl.man, NEWS: Updated.
2668 2003-08-15 Werner LEMBERG <wl@gnu.org>
2670 * doc/groff.texinfo: Minor fixes.
2672 2003-08-09 Werner LEMBERG <wl@gnu.org>
2674 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2676 2003-08-07 Werner LEMBERG <wl@gnu.org>
2678 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2679 argument list to nothing if there is no file to match. Use `ls' as
2680 a protection, similar to autoconf.
2682 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2683 empty argument lists.
2685 * doc/groff.texinfo: Improve documentation how vertical spacing
2686 and line breaks interact.
2689 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2691 2003-08-03 Werner LEMBERG <wl@gnu.org>
2693 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2694 EPS (using eps2eps or similar programs to compute the bounding box).
2696 2003-07-24 Werner LEMBERG <wl@gnu.org>
2698 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2699 * doc/texinfo.tex: Updated from texinfo 4.6.
2700 * README.CVS: From now on we need texinfo 4.6.
2702 2003-07-23 Werner LEMBERG <wl@gnu.org>
2704 Add requests `dei1' and `ami1' for completeness.
2706 * src/roff/troff/input.cc (calling_mode): Remove
2707 CALLING_DISABLE_COMP.
2708 (comp_mode): New enumeration.
2709 (do_define_string, define_string, define_nocomp_string,
2710 append_string, append_nocomp_string): Updated.
2711 (do_define_macro): Add third parameter.
2712 (define_macro, define_nocomp_macro, define_indirect_macro,
2713 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2714 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2717 (init_input_requests): Add `dei1' and `ami1'.
2719 * tmac/trace.tmac: Handle de1 and am1.
2720 (de): Improve tracing message.
2721 (am): Add missing `do'.
2724 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2725 Document new requests.
2727 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2729 Add option -G to .MPIMG to insert a gap between text and the image.
2731 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2732 www-finish-left-ll): Updated.
2733 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2734 (MPIMG): Make option -L and -R optional.
2735 Implement option -G.
2737 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2739 * src/devices/grohtml/post-html.cpp
2740 (html_printer::do_file_components): Don't use `stdout' as lvalue
2741 since it can be a macro.
2743 2003-07-22 Werner LEMBERG <wl@gnu.org>
2745 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2746 the corresponding test in aclocal.m4.
2748 2003-07-21 Werner LEMBERG <wl@gnu.org>
2750 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2751 names but RGB values directly. Otherwise pnmtopng depends on
2752 an external file `rgb.txt' which maps colour names to values.
2754 2003-07-20 Werner LEMBERG <wl@gnu.org>
2756 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2757 * configure, src/include/config.hin: Regenerated.
2759 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2761 2003-07-19 Werner LEMBERG <wl@gnu.org>
2763 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2765 2003-07-18 Werner LEMBERG <wl@gnu.org>
2767 * *.man: Switch to non-compatibility mode temporarily if GNU
2768 syntax extensions are used in the particular man page.
2770 * PROBLEMS: Add solutions for SGR problems.
2772 2003-07-17 Werner LEMBERG <wl@gnu.org>
2774 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2775 used to change the drawing scheme.
2777 * src/devives/grotty/tty.cpp (bold_flag_option,
2778 underline_flag_option, italic_flag_option, reverse_flag_option,
2779 bold_underline_mode_option): New global variables.
2780 (update_options): New function.
2781 (tty_printer::special): Call update_options.
2782 (main): Don't set xxx_flag but xxx_flag_option, then call
2785 2003-07-14 Werner LEMBERG <wl@gnu.org>
2787 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2789 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2791 (hline_char, vline_char): New global variables.
2792 (tty_printer::tty_printer): Initialize them.
2793 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2794 horizontal and vertical lines.
2795 (crossings): New global array.
2796 (tty_printer::end_page): Use it to determine the proper crossing
2797 character for -Tutf8.
2799 2003-07-12 Werner LEMBERG <wl@gnu.org>
2801 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2802 (HTMLDOCFILES): Revert to `pic.html'.
2803 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2805 2003-07-11 Werner LEMBERG <wl@gnu.org>
2807 * doc/pic.ms: Improve documentation of absolute coordinates.
2808 Document absolute positioning of pictures.
2810 * NEWS: Add new pic capability.
2812 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2814 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2817 2003-07-07 Werner LEMBERG <wl@gnu.org>
2819 Implement support for dashed and dotted ellipses in pic. Based on
2820 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2822 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2823 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2824 functions. Ellipse arcs are approximated with circle arcs.
2825 * src/preproc/pic/common.h (common_output): Updated.
2826 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2828 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2830 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2832 2003-07-06 Werner LEMBERG <wl@gnu.org>
2834 Make grotty work on platforms which have unsigned char as the
2835 default for char. Based on a patch by Thomas Klausner
2838 * src/devices/grotty/tty.cpp (schar): New typedef.
2839 Updated calls to declare_ptable and implement_ptable.
2840 (glyph): Use schar for back_color_idx and fore_color_idx.
2841 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2842 (tty_printer::tty_color, tty_printer::tty_printer,
2843 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2845 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2847 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2848 * src/roff/nroff/nroff.man: Updated.
2850 2003-07-05 Werner LEMBERG <wl@gnu.org>
2852 * NEWS, tmac/groff_www.man: Updated.
2853 * doc/Makefile.sub: Updated.
2855 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2857 Implement support for multiple HTML output files.
2859 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2860 -j command line option.
2862 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2864 (file): New fields `new_output_file', `require_links',
2866 (file::file): Updated.
2867 (files::set_file_name, files::set_links_required,
2868 files::are_links_required, files::is_new_output_file,
2869 files::file_name, files::next_file_name): New functions.
2870 (header_desc): New fields `no_of_level_one_headings',
2872 (header_desc::header_desc): Updated.
2873 (header_desc::write_headings): Handle multiple files.
2874 (html_printer::write_header): Save file name in which header occurs.
2875 (html_printer::determine_header_level): Possibly split files on
2877 (html_printer::do_links, html_printer::troff_tag): Updated.
2878 (html_printer::insert_split_file, html_printer::do_job_name,
2879 html_printer::emit_link, html_printer::write_navigation,
2880 html_printer::do_file_components): New functions.
2881 (html_printer::~html_printer): Handle multiple files.
2882 (main): Handle command line option `-j'.
2884 * src/devices/grohtml/grohtml.man: Updated.
2886 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2889 * tmac/www.tmac (JOBNAME): New macro.
2890 * tmac/s.tmac (SH-NO-TAG): New macro.
2891 (@SH): Call SH-NO-TAG.
2894 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2896 * tmac/groff_mdoc.man: Improve documentation of punctuation
2899 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2901 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2903 2003-07-03 Werner LEMBERG <wl@gnu.org>
2905 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2907 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2909 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2910 after `/*' and `*/'.
2912 (Fn, Fo): Reduce indentation in synopsis.
2914 * tmac/doc-common (doc-check-depth): New macro.
2915 (doc-end-macro, Sh, Ss): Use it.
2916 (Cd): Fix behaviour in synopsis.
2917 (In): Make it parsed and callable.
2918 If not in the synopsis, represent the C header file enclosed in
2920 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2921 Use minus, not hyphen.
2923 * tmc/groff_mdoc.man: Updated.
2925 2003-07-01 Werner LEMBERG <wl@gnu.org>
2927 Integrated grap2graph, contributed by Eric S. Raymond.
2929 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2931 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2932 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2934 2003-07-01 Colin Watson <cjwatson@debian.org>
2936 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2937 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2939 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2941 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2943 2003-06-31 Werner LEMBERG <wl@gnu.org>
2945 * doc/Makefile.sub (CLEANADD): Remove all files created by
2946 running `make groff.{pdf,dvi}'.
2948 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2951 2003-06-30 Werner LEMBERG <wl@gnu.org>
2953 * Makefile.in (SHELL): Define as @SHELL@.
2954 (mkinstalldirs): Use $(SHELL).
2955 (MDEFINES): Add $(SHELL).
2956 * Makefile.comm (SHELL): Removed.
2958 2003-06-29 Werner LEMBERG <wl@gnu.org>
2960 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2961 The X11 documentation files use them.
2962 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2964 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2966 * tmac/e.tmac (@C): Handle .ad also.
2968 2003-06-12 Werner LEMBERG <wl@gnu.org>
2970 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2972 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2973 Assign `n' even here. It is possible to construct a node
2974 immediately following an escape character:
2982 2003-06-10 Werner LEMBERG <wl@gnu.org>
2984 * README.WIN32: Removed.
2985 * MANIFEST: Updated.
2987 2003-06-07 Werner LEMBERG <wl@gnu.org>
2989 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2991 2003-06-05 Werner LEMBERG <wl@gnu.org>
2993 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2994 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2996 2003-06-03 Werner LEMBERG <wl@gnu.org>
2998 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2999 is done by the calling function.
3001 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
3003 * tmac/X.tmac: Fix definition of `em'.
3005 2003-05-22 Werner LEMBERG <wl@gnu.org>
3007 * src/roff/troff/input.cc (return_macro_request): Fix detection of
3010 2003-05-18 Werner LEMBERG <wl@gnu.org>
3012 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3013 to make items work which consist only of a tag.
3015 2003-05-17 Werner LEMBERG <wl@gnu.org>
3017 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3018 aren't stretched in a tag (this can fail with unformatted boxes).
3019 Instead, insert a break and go back one line.
3021 2003-05-16 Werner LEMBERG <wl@gnu.org>
3023 * src/roff/troff/input.cc (return_macro_request): If called with
3024 argument pop macro twice. We need this to trace `return'.
3026 * tmac/trace.tmac: Handle `return'.
3029 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3032 2003-05-15 Larry Kollar <kollar@alltel.net>
3034 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3035 registers `FPS', `FVS', and `FPD'.
3037 2003-05-15 Werner LEMBERG <wl@gnu.org>
3039 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3042 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
3044 * tmac/groff_mdoc.man: Slight improvements.
3046 2003-05-03 Werner LEMBERG <wl@gnu.org>
3048 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3049 `doc-header-space' after header line if register `cR' is set.
3051 2003-05-02 Werner LEMBERG <wl@gnu.org>
3055 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
3057 * tmac/doc-common (Nd): Use \[em].
3059 2003-05-01 Werner LEMBERG <wl@gnu.org>
3061 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3062 doc-footer-space): Initialize to 0.5i.
3063 (doc-setup-page-layout): Don't set doc-header-space and
3066 2003-04-30 Werner LEMBERG <wl@gnu.org>
3068 * REVISION: Set to 1.
3070 * doc/pic.ms: Document possible problems with `figname'.
3072 2003-04-29 Werner LEMBERG <wl@gnu.org>
3074 Version 1.19 released
3075 =====================
3077 * VERSION: Set to 1.19.
3078 * REVISION: Set to 0.
3079 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3081 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3082 Define charset as `US-ASCII' in html output.
3084 * tmac/www.tmac (ULE): Add missing scaling indicator.
3086 * win32-diffs: Removed.
3088 2003-04-28 Werner LEMBERG <wl@gnu.org>
3090 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3092 Document how to insert discardable whitespace with `.ss'.
3094 2003-04-27 Werner LEMBERG <wl@gnu.org>
3096 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3097 work with plain TeX also.
3099 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3101 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3103 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3106 2003-04-24 Werner LEMBERG <wl@gnu.org>
3108 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3109 vbox with positive height and zero depth if in TeX mode.
3111 * NEWS: Document glyph name changes for grodvi and grolj4.
3113 2003-04-23 Werner LEMBERG <wl@gnu.org>
3115 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3116 * doc/pic.ms: Fixed.
3118 2003-04-21 Werner LEMBERG <wl@gnu.org>
3120 HP-UX 10.20 has `snprintf' but it isn't declared.
3122 * configure.ac: Add declaration test for snprintf.
3123 * configure: Regenerated.
3124 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3125 * src/include/config.hin: Regenerated.
3127 2003-04-19 Werner LEMBERG <wl@gnu.org>
3129 Add keyword `figname' to pic, specifying the name of the picture
3130 box in TeX mode. Based on a patch from William J Poser
3131 <wjposer@unagi.cis.upenn.edu>.
3133 * src/preproc/pic/pic.y: New token `FIGNAME'.
3134 (macro_name): New rule of type <str>.
3135 (placeless_element): Handle `FIGNAME'.
3136 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3137 * src/preproc/pic/main.cpp (graphname): New global variable.
3138 (do_picture): Initialize `graphname'.
3139 * src/preproc/pic/pic.h: Updated.
3140 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3143 (tex_output::text): Beautify output.
3144 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3145 `shaded' and `outlined' unconditionally.
3146 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3149 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3150 greater is necessary.
3152 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3154 Add option -r to soelim to avoid emission of `.lf' lines.
3155 Add option -t to produces TeX comment lines instead of `.lf' lines.
3157 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3160 (main): Handle `-r' and `-t'.
3161 (set_location): Handle `raw_flag' and `tex_flag'.
3162 * src/preproc/soelim/soelim.man, NEWS: Updated.
3164 2003-04-17 Werner LEMBERG <wl@gnu.org>
3166 * tmac/hyphenex.sh: Replaced with...
3167 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3170 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3171 if --quiet is used for the configure script.
3172 * configure: Regenerated.
3174 2003-04-16 Werner LEMBERG <wl@gnu.org>
3176 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3177 Add `const' to second argument.
3178 (html_printer::add_table_end): Add `const' to argument.
3179 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3180 `const' to arguments.
3181 * src/devices/grohtml/html-text.h: Updated.
3183 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3184 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3187 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3188 cast for integer constant.
3190 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3191 (writeNbytes): Add `const' to first argument.
3192 (writeString): Add `const' to argument.
3193 (char_buffer::can_see): Add `const' to third argument.
3194 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3195 `const' to argument.
3196 * src/preproc/html/pushback.h: Updated.
3198 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3199 (include_path_append): Add `const' to argument.
3202 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3204 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3205 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3207 (unicode_decompose_init::unicode_decompose_init): Updated.
3208 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3210 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3211 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3214 * tmac/hyphenex.sh: Make script more portable by using a here
3217 2003-04-15 Werner LEMBERG <wl@gnu.org>
3219 Renamed all `*.cc' files to `*.cpp'.
3220 Updated all configuration files, makefiles, and documentation.
3222 2003-04-14 Werner LEMBERG <wl@gnu.org>
3224 * tmac/hyphenex.sh: Slight improvements.
3226 2003-04-13 Werner LEMBERG <wl@gnu.org>
3228 * font/devascii/R.proto, font/devcp1037/R.proto,
3229 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3230 character slots with unnamed glyphs.
3232 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3233 (an-first): New global variable.
3234 (an-header): Emit vertical space between multiple man pages.
3236 2003-04-11 Werner LEMBERG <wl@gnu.org>
3238 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3241 2003-04-10 Werner LEMBERG <wl@gnu.org>
3243 * PROBLEMS: Revised.
3245 2003-04-10 Bernd Warken <bwarken@mayn.de>
3247 * doc/webpage.ms: Improved.
3249 2003-04-09 Werner LEMBERG <wl@gnu.org>
3251 Add register \n[.height] which returns the value of \H.
3252 Add register \n[.slant] which returns the value of \S.
3254 * src/roff/troff/env.cc (init_env_requests): Implement.
3255 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3258 2003-04-08 Werner LEMBERG <wl@gnu.org>
3260 * tmac/html.tmac: Move some of the data into html-end.tmac.
3261 Remove most of the character translations for eqn since html fonts
3262 now cover those characters.
3264 * tmac/html-end.tmac: New file.
3265 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3266 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3267 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3269 2003-04-07 Werner LEMBERG <wl@gnu.org>
3271 * man/groff_out.man: Document negative values of `N' if -Thtml is
3274 2003-04-06 Werner LEMBERG <wl@gnu.org>
3276 * Makefile.comm (depend.temp): Check location of YTABC.
3278 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3280 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3282 (groff_bin_path): Rename to GROFF_BIN_PATH.
3283 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3284 * doc/Makefile.in (TROFFBIN): New variable for troff
3286 (GROFFBIN): New variable for groff binary path.
3287 (groff_bin_path): Rename to GROFF_BIN_PATH.
3288 (TROFF): Use TROFFBIN.
3289 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3290 * doc/Makefile.sub (GROFFBIN): New variable for groff
3292 (groff_bin_path): Rename to GROFF_BIN_PATH.
3293 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3295 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3296 with INSTALL_SCRIPT.
3297 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3298 * Makefile.dev (all): Depend on DEVSCRIPTS.
3299 (install_dev): Likewise.
3300 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3302 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3303 (DEVGENSCRIPTS): New variable to hold generated scripts.
3305 2003-04-05 Werner LEMBERG <wl@gnu.org>
3307 * src/libs/libdriver/input.cc (IntArray::operator[],
3308 IntArray::get_data): Remove meaningless `const' in return value.
3310 * README.CVS: New file.
3312 2003-04-04 Werner LEMBERG <wl@gnu.org>
3314 Check for stdint.h in C++, not in C.
3316 * aclocal.m4 (GROFF_STDINT_H): New function,
3317 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3319 * configure, src/include/config.hin: Regenerated.
3320 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3323 Fix handling of in grohtml. To do this, troff emits `N'
3324 with a negative value, representing the width of the unbreakable
3325 space (only for -Thtml). grohtml then converts this back to
3326 and uses the value of N as its width.
3328 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3329 unbreakable_space_node::tprint): Emit `N-<width>'.
3330 * src/include/printer.h (printer::set_numbered_char): Make it
3332 Make members `font_table' and `nfonts' protected instead of private.
3333 * src/devices/grohtml/post-html.cc
3334 (html_printer::set_numbered_char): New member function.
3337 * src/libs/libgroff/maxfilename.cc:
3338 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3340 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3343 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3345 * man/roff.man: Small fixes.
3347 2003-04-03 Werner LEMBERG <wl@gnu.org>
3349 Make groff independent from locale's numeric settings.
3351 * configure.ac: Check for `setlocale'.
3352 * configure, src/include/config.hin: Regenerated.
3354 * src/include/lib.h: Handle HAVE_SETLOCALE.
3356 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3357 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3358 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3361 * doc/groff.texinfo: Change dir category to `Typesetting'.
3362 (Man font macros): Mention that there is no space between arguments
3365 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3366 (*printer::change_color, *printer::change_fill_color): Add missing
3369 2003-04-02 Werner LEMBERG <wl@gnu.org>
3371 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3372 html_table::is_gap): Compute table widths after converting border
3373 positions to avoid rounding errors.
3375 2003-04-01 Werner LEMBERG <wl@gnu.org>
3377 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3378 `space_emitted' properly.
3380 2003-03-31 Werner LEMBERG <wl@gnu.org>
3382 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3383 (html_table::set_linelength): Don't add 1.
3384 (html_table::add_indent): Don't subtract 1.
3386 * tmac/html.tmac: Set default page offset to zero.
3388 2003-03-30 Werner LEMBERG <wl@gnu.org>
3390 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3392 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3393 unbreakable_space_node::tprint): New functions.
3394 (troff_output_file): Make space_char_hmotion_mode::tprint and
3395 unbreakable_space_node::tprint to friends.
3396 * src/roff/troff/node.h: Updated.
3398 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3399 in the HTML standard).
3401 2003-03-29 Werner LEMBERG <wl@gnu.org>
3403 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3404 Otherwise, the following code
3413 produces `x a' instead of `xa'. This is a temporary fix, disabling
3414 font changes in diversions for -Thtml.
3416 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3418 (an-do-tag-html): Merge with ...
3419 (an-do-tag): This macro.
3420 Change code slightly to circumvent grohtml bug.
3421 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3423 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3424 html_table::is_gap): Round `width' properly.
3426 * tmac/html.tmac: Provide some default layout parameters for
3429 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3432 2003-03-28 Werner LEMBERG <wl@gnu.org>
3434 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3436 2003-03-27 Werner LEMBERG <wl@gnu.org>
3438 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3441 2003-03-20 Werner LEMBERG <wl@gnu.org>
3443 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3445 * doc/groff.texinfo: Updated.
3447 2003-03-19 Werner LEMBERG <wl@gnu.org>
3449 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3450 TOKEN_END_TRAP>: Reset `have_input'.
3452 2003-03-18 Werner LEMBERG <wl@gnu.org>
3454 * src/roff/groff/groff.man: Mention groff_trace man page.
3456 2003-03-16 Werner LEMBERG <wl@gnu.org>
3458 * Makefile.in (LIBEXT): New variable to indicate the file extension
3459 of library files. Computed heuristically from $(OBJEXT).
3460 (MDEFINES): Add $(LIBEXT).
3461 * Makefile.lib, Makefile.comm: Use it.
3463 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3464 overlong lines into smaller chunks.
3465 (get_binary): New function.
3467 * src/utils/pfbtops/pfbtops.man: Updated.
3469 2003-03-15 Colin Watson <cjwatson@debian.org>
3471 * src/roff/groff/groff.man: Minor syntax fix.
3473 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3475 * src/devices/grops/ps.cc (ps_printer::media_set,
3476 ps_printer::~ps_printer): Handle zero paper width and length.
3478 2003-03-13 Werner LEMBERG <wl@gnu.org>
3480 Add options -p and -l to grodvi.
3482 * src/devices/grodvi/dvi.cc: Include paper.h.
3483 (landscape_flag, user_paper_length, user_paper_width): New global
3485 (dvi_printer::begin_page): Emit `papersize' special.
3486 Set color after initialization of `cur_h' and `cur_v'.
3487 (main): Add options `-l' and `-p'.
3488 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3489 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3491 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3493 2003-03-12 Werner LEMBERG <wl@gnu.org>
3495 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3496 * man/groff_tmac.man: This man page.
3497 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3500 * tmac/X.tmac: Don't load pspic.tmac.
3502 2003-03-11 Werner LEMBERG <wl@gnu.org>
3504 Make variable `pr' local to libdriver/input.cc. Based on a patch
3505 by Bernd Warken <bwarken@mayn.de>.
3507 * src/include/driver.h (pr): Removed.
3509 * src/libs/libdriver/input.cc (pr): New global variable.
3510 (do_file): Deallocate `pr'.
3511 * src/libs/libdriver/printer.cc (pr): Removed.
3513 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3514 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3515 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3516 (main): Don't delete `pr'.
3518 2003-03-10 Werner LEMBERG <wl@gnu.org>
3520 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3521 * tmac/papersize.tmac: New file.
3522 * tmac/troffrc: Include `papersize.tmac'.
3523 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3524 * tmac/an-old.tmac: Set LT to LL by default.
3526 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3527 doc/groff.texinfo: Updated.
3529 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3530 bug which caused all odd iso papers to have wrong dimensions.
3532 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3533 (main) <'p'>: Set `user_paper_width' also.
3534 (ps_printer::media_width, ps_printer::media_height): Use values
3535 given with option `-p'.
3537 2003-03-09 Werner LEMBERG <wl@gnu.org>
3539 * src/include/nonposix.h: Provide default for SET_BINARY.
3541 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3542 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3545 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3546 (main): Treat \r\n as \n.
3548 2003-03-08 Werner LEMBERG <wl@gnu.org>
3550 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3551 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3553 2003-03-07 Werner LEMBERG <wl@gnu.org>
3555 Added support to access more than 256 glyphs in Type 1 fonts.
3557 * src/devices/grops/ps.cc (subencoding): New structure.
3558 (style): Add `sub' field.
3560 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3561 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3564 (ps_printer::set_char): Use `set_subencoding'.
3565 (make_subencoding_name): New function.
3566 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3567 (ps_printer::~ps_printer): Emit subencoding definitions.
3569 * src/devices/grops/psrm.cc (valid_input_table): New array to
3570 properly support EBCDIC.
3571 (white_space): Add `\f'.
3572 (ps_get_line): Change first argument to be of type `string &'.
3573 Updated all callers.
3574 This allows to get lines of arbitrary length.
3575 Use `valid_input_table'.
3576 Remove warning about non-conforming PS line length. This seems
3577 not to be of great importance -- for example, dvips don't emit
3579 (PS_LINE_MAX): Removed.
3580 (matches_comment): Change first argument to be of type `string &'.
3582 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3584 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3585 %AGL_to_unicode, %default_ligatures): New hash tables.
3586 Read all map entries.
3587 Add unencoded characters.
3588 Check for default ligatures if there are no `L' entries.
3589 Print all kern entries.
3590 Print all characters in charset.
3591 * src/utils/afmtodit/afmtodit.man: Updated.
3593 * font/devps/*: Regerated all fonts.
3595 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3596 of characters, just use `.trin'. Otherwise the mapping depends
3597 on the font encoding.
3598 * tmac/ps.tmac: Add `fi' and `fl'.
3599 Improve `Fi' and `Fl'.
3600 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3601 * tmac/Xps.tmac: Fix `em'.
3605 2003-03-04 Werner LEMBERG <wl@gnu.org>
3607 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3610 2003-03-03 Werner LEMBERG <wl@gnu.org>
3612 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3614 * font/devps/generate/textmap: Remove entry `similarequal'.
3615 * font/devps/symbolmap: Updated.
3617 2003-03-02 Werner LEMBERG <wl@gnu.org>
3619 * src/libs/libgroff/font.cc (font::load): Fix error message for
3622 * src/devices/grops/grops.man: Improve documentation of the -b
3625 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3626 `ascii' and `cp1047'.
3628 2003-03-01 Werner LEMBERG <wl@gnu.org>
3630 Document composite glyphs and the `composite' request.
3632 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3634 2003-02-28 Werner LEMBERG <wl@gnu.org>
3636 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3637 * font/devdvi/*EC: Updated.
3639 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3640 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3641 * tmac/troffrc: Load `composite.tmac'.
3642 * tmac/Makefile.sub (NORMALFILES): Updated.
3644 * doc/groff.texinfo (Input Encodings): New section.
3647 2003-02-27 Werner LEMBERG <wl@gnu.org>
3649 * doc/texinfo.tex: New version 2003-02-11.06.
3651 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3652 * tmac/groff_mdoc.man: Fix description of `Dt'.
3654 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3656 * font/devps/prologue.ps: Fix for included Postscript that does
3657 a setpagedevice -- which is now safely ignored.
3661 * src/devices/grops/ps.cc: Now sets the page size in the generated
3662 document. This is done in two ways: Via a %%-comment for gv and
3663 the like, and via a PageSize and setpagedevice for programs that
3664 understands Postscript proper, like ps2pdf.
3666 * src/devices/grops/ps.h: New broken-flag to avoid page size
3667 definition, if required.
3669 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3671 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3672 Not really necessary due to the fix in prologue.ps, but cleaner:
3673 Such information does not belong in an .eps file.
3675 * doc/Makefile.sub: See doc/Makefile.in.
3677 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3679 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3680 instead of P1 since the latter is broken in some versions of netpbm.
3681 * configure: Updated.
3683 2003-02-26 Larry Kollar <kollar@alltel.net>
3685 Make man pages more customizable.
3687 * tmac/an-old.tmac (FT): New register holding footer distance from
3689 (HF): New string holding the default heading font.
3690 (TH): Handle registers `IN' and `SN' set on the command line.
3692 (PT, BT): New strings to customize header and footer lines.
3693 (an-header, an-footer): Use them.
3695 * tmac/groff_man.man: Document changes.
3697 * doc/groff.texinfo: Document man changes.
3698 Document Ultrix extensions of man.
3700 2003-02-26 Werner LEMBERG <wl@gnu.org>
3702 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3703 `have_input' after changing back to old environment.
3705 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3706 function up to be defined before first call. This is necessary to
3707 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3709 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3710 the default font directory also. Based on a patch from James
3711 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3712 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3713 * src/utils/afmtodit/afmtodit.man: Document it.
3717 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3719 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3721 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3722 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3723 * configure.ac: Use it.
3724 * configure: Regenerated.
3725 * Makefile.in: Updated.
3727 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3728 (CLEANADD): Add www.tmac-sed.
3729 (pnmtops_nosetpage): Define default.
3730 (install_data): Handle www.tmac-sed and substitute
3731 @PNMTOPS_NOSETPAGE@.
3732 (stamp-sed): Add www.tmac.
3733 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3734 It now breaks URLs at suitable places.
3735 (www:substring_ok): New register set by...
3736 (www:@test_substring): New macro.
3737 (www:error): New alias to www-error.
3738 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3740 (URL): Use www:url_breaks.
3741 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3742 (CDS, CDE): New macros.
3744 2003-02-25 Werner LEMBERG <wl@gnu.org>
3746 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3749 2003-02-24 Werner LEMBERG <wl@gnu.org>
3751 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3752 can be negative also.
3754 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3756 (read_char_table): Avoid negative ascenders.
3757 (output_charset): Add cast.
3758 * font/devlj4/*: Regenerated.
3760 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3763 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3764 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3766 * font/devdvi/*: Regenerated.
3768 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3769 normal width, while the previously used characters (U+2329 and
3770 U+232A) are classified as wide due to canonical equivalence with the
3771 CJK punctuation characters U+3008 and U+3009.
3773 * font/devutf8/R.proto: Updated.
3774 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3776 * man/groff_char.man: Simplify handling of table traps by
3777 introducing `start block' and `end block' macros.
3778 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3779 (DL): Make it work with Unix troff also.
3780 Fix code values of `la' and `ra'.
3782 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3784 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3786 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3787 New destructor, fixing a major memory leak.
3789 2003-02-22 Werner LEMBERG <wl@gnu.org>
3791 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3792 to be in conformance with Unicode 3.0 and newer.
3794 * font/devlj4/generate/text.map: Add `Eu'.
3795 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3796 * font/devlj4/S: Regenerated.
3798 * man/groff_char.man: Completely rewritten.
3800 * doc/groff.texinfo: Fix description of request and macro arguments.
3802 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3806 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3807 Deallocate `columns' list.
3808 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3810 (text_glob::text_glob_html, text_glob::text_glob_special,
3811 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3812 text_glob::text_glob_tag): Avoid memory leaks.
3813 (text_glob::remember_table): Free memory before reassigning.
3815 2003-02-19 Werner LEMBERG <wl@gnu.org>
3817 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3818 alias `hbar'), the Planck constant over two pi.
3820 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3821 `+e' for position 34.
3822 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3823 `u2662' and `u2661'.
3824 * font/devdvi/{MI,S}: Regenerated.
3825 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3826 * font/devlbp/*: Add `hbar' alias.
3827 * font/devlj4/generate/special.map: Ditto.
3828 * font/devlj4/S: Regenerated.
3829 * font/devps/generate/symbolchars: Add `+e'.
3830 * font/devps/generate/textmap: Fix PS name for `-h'.
3832 * font/devps/symbolmap: Regenerated.
3834 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3836 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3838 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3841 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3843 * tmac/tty-char.tmac: Add `+e'.
3845 2003-02-17 Werner LEMBERG <wl@gnu.org>
3847 Another round trying to really fix problems with `have_input'.
3849 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3850 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3852 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3853 handling if both foreground and background colors are default.
3855 * doc/groff.texinfo (Debugging): Document .lf differences to
3858 2003-02-16 Werner LEMBERG <wl@gnu.org>
3860 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3861 null-bytes in created string.
3863 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3864 alias_macro, lookup_request): Improve warning messages.
3866 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3868 Free `last_image_filename'.
3870 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3872 (imageList::createPage, imageList::createImage): Use `free', not
3874 (imageItem::~imageItem): Free `imageName'.
3875 (addRegDef): Use `strsave', not `strdup'.
3876 (get_resolution): Free `pathp'.
3878 2003-02-15 Werner LEMBERG <wl@gnu.org>
3880 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3883 2003-02-14 Werner LEMBERG <wl@gnu.org>
3885 Add memory management for colors to deallocate unnamed colors
3888 * src/include/color.h (color): New members `free_list' and `next'.
3889 New member functions `new' and `delete'.
3891 * src/libs/libgroff/color.cc: Implement it.
3893 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3894 for array size of new operator.
3896 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3897 redundant comparison.
3899 * src/roff/troff/input.cc (word_space_node::reread,
3900 hmotion_node::reread): Avoid warning about unused parameter.
3901 (reset_output_registers): Remove redundant parameter.
3902 (define_color): Undo change 2003-02-12.
3904 * src/roff/troff/reg.h: Updated.
3906 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3907 output_file::put_filename, real_output_file::really_put_filename,
3908 ascii_output_file::really_print_line,
3909 break_char_node::get_hyphen_list): Avoid warning about unused
3911 (suppress_node::tprint): Updated.
3913 * configure.ac: Check declaration for rand() and srand().
3914 * configure: Regenerated.
3916 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3918 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3921 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3922 to avoid compiler warnings.
3924 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3927 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3929 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3931 Updated all callers.
3933 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3935 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3936 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3938 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3939 Parameter is unused.
3940 (html_printer::add_table_end): Define parameter conditionally.
3941 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3944 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3945 (lbp_printer::set_char): Last parameter is unused.
3947 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3949 2003-02-13 Werner LEMBERG <wl@gnu.org>
3951 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3952 Make \D'f ...' move horizontally again for backwards compatibility.
3953 Replace it with \D'Fg ...' where appropriate to avoid dependency
3954 on horizontal resolution.
3956 * src/roff/troff/input.cc (do_get_long_name): New function.
3957 (get_long_name): Call it.
3959 (read_draw_node): Handle `\D'Fx ...' by calling ...
3960 (read_color_draw_node): New function.
3962 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3964 Pass it to `do_get_long_name' which is used instead of
3967 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3968 unnecessary value guard.
3969 (parse_D_command) <'f'>: Add horizontal shift.
3971 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3972 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3973 (FILL_MAX): Removed.
3975 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3978 2003-02-12 Werner LEMBERG <wl@gnu.org>
3980 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3981 do_zero_width): Push `\n' if closing delimiter is missing.
3983 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3984 <'F'>: Make \F non-transparent at the beginning of line.
3985 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3986 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3989 (define_color): Free color in case of reassignment.
3991 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3992 @DefescListEnd): Use @Var, not @var.
3995 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3997 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3998 `shaded' and `outlined' arrays.
3999 (object_spec::object_spec): Initialize `shaded' and `outlined'.
4000 (graphic_object::set_fill_color, graphic_object::set_outline_color):
4002 (closed_object::set_fill_color): Ditto.
4003 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4005 (troff_output::reset_color): Use a_delete instead of free.
4006 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4008 2003-02-11 Werner LEMBERG <wl@gnu.org>
4010 * doc/groff.texinfo: Improve documentation of `ad'.
4011 Document that \D'f...' is dependent on the horizontal resolution.
4012 * man/groff_diff.man: Improve documentation of \D'f...'.
4014 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4015 compensating \h'...' for \D'f ...' since the latter no longer moves
4017 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4019 2003-02-10 Werner LEMBERG <wl@gnu.org>
4021 Improve error messages for `x F' (and `F') commands.
4023 * src/include/error.h: Add declaration for
4024 `current_source_filename'.
4025 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4026 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4027 parameter for source file string.
4028 Updated all callers.
4030 * src/libs/libdriver/input.cc: Add `current_source_filename'.
4031 (remember_source_filename): New function.
4032 (parse_x_command <'F'>, do_file <'F'>): Use it.
4034 2003-02-09 Werner LEMBERG <wl@gnu.org>
4036 Make grotty not emit warnings about unknown colors more than
4039 * src/devices/grotty/tty.cc: Include `ptable.h'.
4040 (TTY_MAX_COLORS): Removed.
4041 (DEFAULT_COLOR_IDX): Defined to -1.
4042 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4043 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4044 Change `tty_colors' to be a ptable.
4045 First arg of `put_color' is now `char'.
4046 New functions `make_rgb_string' and `tty_color'.
4047 (tty_printer::tty_printer): Use `tty_color'.
4048 (tty_printer::color_to_idx): Return value is now `char'.
4051 * src/include/color.h (color): Add `print_color' member function.
4052 * src/libs/libgroff/color.cc (color::print_color): Implement it.
4054 2003-02-08 Werner LEMBERG <wl@gnu.org>
4058 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4061 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4062 assume that value has been allocated with `new[]', thus use
4063 `a_delete' for deallocation.
4065 * src/libs/libdriver/input.cc (get_integer_arg,
4066 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4069 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4070 * src/libs/libgroff/nametoindex.cc
4071 (character_indexer::named_char_index): Use `new <type>[1]'.
4073 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4075 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4076 (split_text): Use `a_delete'.
4078 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4081 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4082 harmless memory leak.
4083 (hyphen_trie::read_patterns_file): Initialize `buf'.
4084 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4085 Initialize `current_fill_color'and `current_glyph_color'.
4086 * src/roff/troff/glyphuni.cc
4087 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4088 * src/roff/troff/uniuni.cc
4089 (unicode_decompose_init::unicode_decompose_init): Ditto.
4090 * src/roff/troff/uniglyph.cc
4091 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4093 2003-01-26 Werner LEMBERG <wl@gnu.org>
4095 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4096 `access' before calling `unlink'.
4097 (do_file): Handle __EMX__.
4099 * src/include/nonposix.h: Handle __EMX__.
4101 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4102 (fontpath,tmacpath): Use it.
4104 Sorted alphabetically.
4106 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4108 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4111 2003-01-27 Werner LEMBERG <wl@gnu.org>
4113 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4114 New files, copied from gnulib.
4115 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4116 * configure.ac: Updated.
4117 * configure: Regenerated.
4119 * src/include/config.hin: Regenerated.
4120 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4121 Don't define `strcasecmp' as `strcmp'.
4122 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4123 Dont define `strncasecmp' as `strncmp'.
4125 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4128 2003-01-26 Werner LEMBERG <wl@gnu.org>
4130 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4133 2003-01-25 Werner LEMBERG <wl@gnu.org>
4135 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4137 2003-01-24 Werner LEMBERG <wl@gnu.org>
4139 Add US-english hyphenation exceptions (converted from Barbara
4140 Beeton's hyphenation exception log reports which appear irregularly
4143 * tmac/hyphen.us: Updated to latest version.
4144 * tmac/README: Updated.
4145 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4146 * tmac/troffrc: Load `hyphenex.us'.
4147 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4148 * doc/groff.texinfo: Updated.
4150 2003-01-23 Werner LEMBERG <wl@gnu.org>
4152 Improve hyphenation slightly. This is a first step in redesigning
4153 the hyphenation algorithm to make it more flexible (e.g. allowing
4154 kerns and ligatures between the hyphenation character and the
4155 following character -- while not used normally in English, other
4156 languages like German would benefit).
4158 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4159 assertion instead of if-clause.
4160 Let `get_hyphen_list' return the number of involved characters in
4161 the hyphenation pattern instead of computing it directly (which
4162 often yields too small values).
4163 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4164 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4167 2003-01-22 Werner LEMBERG <wl@gnu.org>
4169 Fixing a bug which caused groff to hang if the hyphenation exception
4170 dictionary tried to grow.
4172 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4173 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4174 pointer to dictionary.
4176 2003-01-20 Werner LEMBERG <wl@gnu.org>
4178 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4179 negative left italic correction.
4180 * src/utils/afmtodit/afmtodit.man: Document it.
4182 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4183 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4184 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4188 2003-01-16 Werner LEMBERG <wl@gnu.org>
4192 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4194 * src/preproc/refer/refer.man: Mention REFER environment variable.
4196 2003-01-05 Werner LEMBERG <wl@gnu.org>
4198 Similar to \[is], the square root glyph (\[sr]) and the square root
4199 extension glyph (\[radicalex]) are now text symbols. The new
4200 mathematical versions are called \[sqrt] and \[sqrtex],
4203 * font/devX*/S: Regenerated.
4204 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4205 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4206 * font/devdvi/EX, font/devdvi/S: Regenerated.
4207 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4208 * font/devlj4/generate/special.map: Add `sqrt'.
4209 * font/devlj4/S: Regenerated.
4210 * font/devps/generate/textmap: Add `sqrt'.
4211 * font/devps/S, font/devps/symbolmap: Regenerated.
4213 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4214 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4215 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4216 overlap horizontally.
4218 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4219 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4222 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4223 and `sqrtex' are overlapping glyphs.
4225 2003-01-04 Werner LEMBERG <wl@gnu.org>
4227 * font/devdvi/generate/texsy.map: Add `is'.
4228 * font/devps/symbolmap: Regenerated.
4229 * font/devdvi/*TC, MI, S: Regenerated.
4231 * tmac/dvi.tmac: Remove `is'.
4233 2003-01-03 Werner LEMBERG <wl@gnu.org>
4235 `is' is now a text symbol (only relevant for dvi). The math variant
4236 can be accessed with `integral'.
4238 * font/devX*/S: Regenerated.
4239 * font/devdvi/generate/texex.map: Remove `is'.
4240 * font/devdvi/EX: Updated.
4241 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4242 * font/devlj4/generate/special.map: Ditto.
4243 * font/devlj4/S: Regenerated.
4244 * font/devps/generate/textmap: Add `integral'.
4245 * font/devps/S: Regenerated.
4247 * tmac/dvi.tmac: Define `is'.
4249 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4251 * src/preproc/tbl/main.cc (process_format): Fix error message.
4253 2003-01-02 Werner LEMBERG <wl@gnu.org>
4255 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4256 * font/devps/textmap: Fix entries for `ne' and `nc'.
4257 * font/devps/symbolmap: Regenerated.
4259 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4260 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4261 `38', `58', `78', `-+', `|=', `nc', `ne'.
4263 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4264 Use `schar' for `aq'.
4265 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4266 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4267 * tmac/tty.tmac: Add `ne'.
4269 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4270 for fallback glyphs.
4272 2002-12-29 Werner LEMBERG <wl@gnu.org>
4276 * font/devX*/*: Regenerated.
4277 * font/devdvi/generate/ec.map: Remove `eq'.
4278 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4279 Assign `|=' to position 39.
4280 * font/devdvi/*EC, S: Regenerated.
4281 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4282 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4283 Assign `|=' to position 549.
4284 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4286 Add `uni2243' for `|='.
4288 * tmac/ec.tmac: Add `eq'.
4289 * tmac/dvi.tmac: Add `=~'.
4290 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4293 2002-12-21 Werner LEMBERG <wl@gnu.org>
4295 * font/devdvi/generate/tc.map: Remove `**'.
4296 * font/devdvi/*TC: Regenerated.
4297 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4299 * font/devutf8/NOTES: Updated.
4301 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4302 Don't give default parameter to `set_macro'.
4303 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4304 instead of `set_macro'.
4305 (charinfo::setx_macro): Implement it.
4306 (charinfo::set_macro): Don't change `mode'.
4308 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4309 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4310 * tmac/dvi.tmac: Define `!=' with `.schar'.
4312 2002-12-20 Werner LEMBERG <wl@gnu.org>
4314 * font/devX*/S: Regenerated.
4315 * font/devdvi/generate/ec.map: Remove `pl'.
4316 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4317 * font/devdvi/*{TC,EC}: Regenerated.
4318 * font/devhtml/R.proto: Add `-+'.
4319 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4320 * font/devlbp/*: Remove `or'.
4321 * font/devlj4/generate/special.map: Remove `or'.
4322 * font/devlj4/S: Regenerated.
4323 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4324 `seveneighths', `threeeighths'.
4326 Replace `minusplus' with `uni2213'.
4327 * font/devps/symbolmap: Regenerated.
4328 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4331 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4333 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4334 Call glyph_color and fill_color even if tcommand_flag isn't set.
4335 (make_node, node::add_char): Check not ci->is_fallback but
4338 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4339 * tmac/ec.tmac: Add .rchar entry for `f/'.
4340 Don't remove `12', `14', `34'.
4341 Define `pl' to be always roman.
4342 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4343 Define `18', `38', `58', `78'.
4344 * tmac/tty.tmac: Add `-+'.
4345 * tmac/dvi.tmac: Define `f/'.
4346 (dvi-frac): Use `f/'.
4347 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4348 Define `18', `38', `58', `78'.
4350 2002-12-15 Colin Watson <cjwatson@debian.org>
4352 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4354 2002-12-10 Werner LEMBERG <wl@gnu.org>
4356 Add glyph `tno', a textual variant of `no'.
4358 * font/devX*/*: Regenerated.
4359 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4360 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4361 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4362 * font/devdvi/*: Regenerated.
4363 * font/devlbp/*: Add `tno'.
4364 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4365 * font/devlj4/*: Regenerated.
4366 * font/devps/generate/textmap: Replace `no' with `tno'.
4367 * font/devps/generate/symbolchars: Add `no'.
4368 * font/devps/*: Regenerated.
4370 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4372 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4373 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4377 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4378 Add definition for `sd'.
4379 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4381 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4383 2002-12-08 Werner LEMBERG <wl@gnu.org>
4385 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4386 mode to avoid rounding errors.
4387 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4389 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4390 src/roff/troff/troff.man: Improve documentation of -T.
4392 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4394 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4395 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4397 2002-12-06 Werner LEMBERG <wl@gnu.org>
4399 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4400 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4401 Scaling Euro.sansserif glyphs down to have the same height as
4403 Removed unnecessary points; added some extrema.
4405 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4408 2002-12-04 Werner LEMBERG <wl@gnu.org>
4410 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4411 and `Euro.symbol.bold.slanted'.
4412 Improve some glyph offsets and widths.
4413 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4415 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4417 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4420 * tmac/europs.tmac: Updated to new glyph indices.
4421 Use Euro.symbol for font familiy `A'.
4423 * doc/groff.texinfo: Minor improvements.
4425 2002-12-02 Werner LEMBERG <wl@gnu.org>
4427 * font/devdvi/generate.tc.map: s/%O/%0/.
4428 * font/devdvi/*TC: Regenerated.
4430 * src/roff/troff/div.cc (init_div_requests): Sorted.
4432 * tmac/dvi.tmac: Remove `Ye'.
4433 * tmac/ec.tmac: Remove `Ye'.
4434 Add .rchar entry for `de'.
4436 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4437 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4440 2002-11-30 Werner LEMBERG <wl@gnu.org>
4442 Add PS font for various Euro glyphs.
4444 * font/devps/generate/freeeuro.sfd: New master font file for
4446 * font/devps/generate/sfdtopfa.pe: New conversion script for
4448 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4449 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4450 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4452 * font/devps/EURO: Generated from `freeeuro.afm'.
4453 * font/devps/download: Add `freeuro.pfa'.
4454 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4457 * tmac/europs.tmac: New file.
4458 * tmac/ps.tmac: Include `europs.tmac'.
4459 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4461 2002-11-29 Werner LEMBERG <wl@gnu.org>
4463 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4464 * font/devdvi/S: Regenerated.
4465 * font/devhtml/R.proto: Fix `CR' and `ci'.
4467 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4469 * font/devps/symbolmap: Regenerated.
4470 * font/devutf8/R.proto: Fix `CR' and `ci'.
4472 * font/devutf8/NOTES: Updated.
4474 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4477 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4479 * tmac/dvi.tmac: Add `lh' and `rh'.
4480 * tmac/Xps.tmac: Fix `lh' and `rh'.
4481 * tmac/X.tmac: Add `OK'.
4482 * tmac/lj4.tmac: Ditto.
4484 2002-11-24 Werner LEMBERG <wl@gnu.org>
4486 * font/devX*/S: Regenerated.
4487 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4488 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4489 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4490 * font/devdvi/S: Regenerated.
4491 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4492 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4493 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4494 `bracketleftbt', `bracketrighttp', `bracketrightex',
4495 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4496 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4497 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4499 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4500 * font/devutf8/NOTES: Updated.
4501 * font/devlj4/generate/special.map: Add glyph `braceex'.
4502 * font/devlj4/S: Regenerated.
4504 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4506 2002-11-14 Werner LEMBERG <wl@gnu.org>
4508 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4511 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4513 * doc/texinfo.tex: New version from texinfo 4.3.
4514 * doc/groff.texinfo: Updated for texinfo 4.3.
4515 Use @tie{} where appropriate.
4516 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4517 * font/devdvi/generate/tc.map: Remove `rn'.
4518 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4519 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4521 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4522 font/devX75-12/*: Regenerated.
4524 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4525 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4526 Improve definition of `an'.
4527 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4529 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4530 * tmac/X.tmac: Add definition for `or'.
4531 * tmac/Xps.tmac: Undo change 2002-11-05.
4532 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4534 2002-11-11 Werner LEMBERG <wl@gnu.org>
4536 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4539 2002-11-10 Werner LEMBERG <wl@gnu.org>
4541 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4542 defines a glyph which is searched after the check for fonts declared
4543 with `.special' (and before the check for all mounted special
4544 fonts). `fschar' defines a glyph for a particular font which is
4545 searched after the check for fonts declared with `.fspecial' (and
4546 before the check for fonts declared with `.special'). `rfschar'
4547 removes glyphs defined with `fschar'.
4549 * src/roff/troff/token.h (char_mode): New enum.
4550 Declare do_define_character.
4551 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4553 (charinfo::is_fallback): Updated.
4554 (charinfo::is_special): New method.
4555 * src/roff/troff/input.cc (do_define_character): Add and use
4556 optional second parameter used as a prefix for font-specific glyph
4558 (define_character, define_fallback_character): Updated.
4559 (define_special_character): New function.
4560 (init_input_requests): Add `schar'.
4561 (charinfo::charinfo, charinfo::set_macro): Updated.
4562 * src/roff/troff/node.cc: Include `stringclass.h'.
4563 (make_glyph_node): Handle special glyphs defined with `.schar' and
4565 (define_font_special_character, remove_font_special_character): New
4567 (init_node_requests): Sorted.
4568 Add `fschar' and `rfschar'.
4569 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4570 Document new requests.
4572 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4573 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4575 2002-11-08 Werner LEMBERG <wl@gnu.org>
4577 Added new font `SC' (cmtex10) to devdvi.
4579 * devdvi/generate/Makefile (FONTS): Add `SC'.
4581 * devdvi/generate/textex.map: New map file for cmtex.
4583 * devdvi/Makefile.sub (DEVFILES): Updated.
4584 * tmac/dvi.tmac: Add fspecial entries for SC.
4585 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4586 found before `S' since the font position of `SC' is lower due to the
4587 gaps in DESC's `font' line.
4588 * tmac/ec.tmac: Add a `special' call.
4591 * font/devhtml/R.proto: Remove double entry for `ti'.
4592 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4593 * tmac/tty-char.tmac: Remove entry for `bq'.
4594 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4595 * tmac/ec.tmac: Don't remove `aq' glyph.
4596 * tmac/X.tmac: Fix entry for `em'.
4597 Add entries for `fo' and `fc'.
4598 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4600 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4601 documentation of `special' and `fspecial' requests.
4603 2002-11-05 Werner LEMBERG <wl@gnu.org>
4605 * font/devascii/R.proto, font/devcp1047/R.proto,
4606 font/devlatin1/R.proto: Remove entry for `.i'.
4607 * font/devdvi/generate/textt.map: Add entry for `ad'.
4608 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4609 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4610 We need this for getting kerning values to compose `/l' and `/L'.
4611 * font/devdvi: Regenerated font definition files for CM fonts.
4612 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4613 * font/devutf8/R.proto: Ditto.
4614 Remove double entry for `ti'.
4616 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4617 for (groff) ligatures, `la', and `ra'.
4618 Add "'C", "'c", `IJ', and `ij'.
4619 Remove double entry for `ti'.
4620 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4622 Add "'C", "'c", `IJ', and `ij'.
4623 Fix entries for (groff) ligatures, `la', and `ra'.
4625 * tmac/ps.tmac (ps-achar): New macro.
4626 Define "'c" and "'C".
4627 * tmac/tty.tmac: Add entry for `.i'.
4628 * tmac/X.tmac (X-achar): New macro.
4629 Define "'c", "'C", and `:Y'.
4630 Add entries for `IJ' and `ij'.
4631 * tmac/Xps.tmac (Xps-achar): New macro.
4632 Define "'c" and "'C".
4633 Add entries for `IJ' and `ij'.
4634 * tmac/lbp.tmac (lbp-achar): New macro.
4635 Add fallback characters for all groff ligatures and many other
4637 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4638 Add entries for `/l' and `/L'.
4639 Define "'c" and "'C".
4640 Add entries for `IJ' and `ij'.
4642 2002-11-02 Larry Kollar <kollar@alltel.net>
4644 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4646 2002-11-02 Werner LEMBERG <wl@gnu.org>
4648 Adding support for composite glyphs: \[xxx yyy ...] and the
4649 `composite' request.
4651 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4652 to Unicode-based glyph names.
4653 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4654 glyph names to groff glyph names.
4655 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4656 Unicode-based glyph names.
4657 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4658 for handling Unicode glyph names.
4659 * src/roff/troff/input.cc: Include unicode.h.
4660 (composite_glyph_name): New function.
4661 (token::next) <'['>: Handle Unicode glyph names and composite
4663 (composite_dictionary): New dictionary for the `composite' request.
4664 (composite_request): Implement `composite' request.
4665 (init_input_requests): Add `composite'.
4666 Alphabetically sorted.
4667 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4669 (init_env_requests): Alphabetically sorted.
4670 Removed `tas' and `tar' (already commented out).
4671 * src/roff/troff/Makefile.sub: Updated.
4673 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4675 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4678 2002-10-29 Werner LEMBERG <wl@gnu.org>
4680 Fix computation of .trunc register. Additionally, its value (and
4681 the value of the .ne register) is now always set before entering the
4684 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4685 `needed_space' before calling `space'.
4686 (top_level_diversion::space): Remove special code for 'sp before the
4688 Call `begin_page' with the discarded space as a parameter.
4689 (top_level_diversion::begin_page): Add optional parameter to set
4691 * src/roff/troff/div.h: Updated.
4693 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4696 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4697 (LP): Remove superfluous call to `br'.
4698 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4699 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4701 2002-10-26 Werner LEMBERG <wl@gnu.org>
4703 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4704 (doc-setup-header): Don't set page register `%'.
4705 * tmac/doc-nroff: Remove variable `C'.
4706 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4707 (doc-setup-header): Don't set page register `%'.
4709 * tmac/doc-common (doc-header): Call `ns'.
4710 (doc-paragraph): Protect .sp with .br so that it survives traps
4711 possibly set by the user.
4712 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4714 * tmac/doc*: Replace ' with . for consistency if no effect.
4716 2002-10-26 Werner LEMBERG <wl@gnu.org>
4718 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4719 so that it survives traps possibly set by the user.
4721 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4722 (troff_output_file::set_font): Call flush_tbuf if necessary.
4723 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4724 flush_tbuf and do_motion only if necessary.
4725 (troff_output_file::start_special,
4726 troff_output_file::put_char_width, troff_output_file::put_char,
4727 troff_output_file::draw): Updated.
4728 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4729 vmotion_node::tprint): Undo change 2002-10-23.
4731 2002-10-25 Werner LEMBERG <wl@gnu.org>
4733 * tmac/www.tmac (DC): Fix case of overlapping images.
4735 2002-10-23 Werner LEMBERG <wl@gnu.org>
4737 * src/roff/troff/node.cc (troff_output_file::fill_color,
4738 troff_output_file::glyph_color): Set current color before testing
4740 (troff_output_file::put_char_width, troff_output_file::put_char,
4741 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4743 (troff_output_file::file_color, troff_output_file::glyph_color):
4745 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4746 vmotion_node::tprint): Move first, then call fill_color.
4748 2002-10-20 Werner LEMBERG <wl@gnu.org>
4750 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4751 possible to use multiple main macro packages.
4753 2002-10-19 Werner LEMBERG <wl@gnu.org>
4755 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4756 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4757 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4759 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4760 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4762 2002-10-16 Werner LEMBERG <wl@gnu.org>
4764 * NEWS, doc/webpage.ms: Updated.
4766 2002-10-14 Werner LEMBERG <wl@gnu.org>
4768 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4769 troff_output_file::put_char, troff_output_file::fill_color,
4770 troff_output_file::glyph_color): Handle case where color pointer
4773 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4775 Add the new -r option to grotty. It is similar to the -i option
4776 except it tells grotty(1) to use the "reverse video" attribute to
4777 render italic fonts.
4779 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4780 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4781 (tty_printer::make_underline, tty_printer::put_color,
4782 tty_printer::end_page): Use it.
4783 (main): Add -r switch.
4785 * src/devices/grotty/grotty.man: Document it.
4787 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4789 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4790 cast to `unsigned char' to properly read patterns with 8bit
4793 2002-10-08 Werner LEMBERG <wl@gnu.org>
4795 * REVISION: Increased to 2.
4797 Version 1.18.1 released
4798 =======================
4800 2002-10-08 Werner LEMBERG <wl@gnu.org>
4802 * doc/webpage.ms, NEWS: Updated.
4804 2002-10-07 Werner LEMBERG <wl@gnu.org>
4806 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4807 suppress additional whitespace after the header.
4809 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4812 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4814 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4816 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4817 (Dt): Use it to improve language localization (especially Russian
4820 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4822 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4823 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4825 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4827 Call `picurve' for BSPLINE.
4828 (HGPrintElt): Handle BSPLINE.
4829 * src/preproc/grn/README: Document it.
4831 2002-10-03 Werner LEMBERG <wl@gnu.org>
4833 * src/roff/troff/node.cc (break_char_node::col): New variable.
4834 Updated constructor.
4835 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4837 (space_node::space_node): Remove assertion.
4838 (break_char_node::add_self): Pass color argument to space node.
4839 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4841 * src/roff/troff/env.cc (environment::do_break,
4842 environment::add_padding): Ditto.
4844 2002-10-02 Werner LEMBERG <wl@gnu.org>
4846 Redesigning color support in troff. Colors are no longer
4847 represented as separate nodes but are now part of glyph nodes and
4848 friends. This fixes the current formatting misbehaviour due to the
4849 changes introduced on 2002-09-20. Some extra code is necessary for
4850 proper grotty support: Without adding color variables to
4851 space-related nodes, the background color would be changed too late.
4853 * src/roff/troff/node.h, src/roff/troff/node.cc:
4854 s/current_pagecolor/current_fill_color/.
4855 s/current_glyphcolor/current_glyph_color/.
4856 (glyph_color_node, fill_color_node): Removed.
4857 (node::get_glyph_color, node::get_fill_color): New virtual member
4859 (space_node::col): New variable.
4860 Updated constructors of space_node and derived classes accordingly.
4861 (hmotion_node::col): New variable.
4862 Updated constructors of hmotion_node and space_char_hmotion_node
4864 (vmotion_node::col): New variable.
4865 Updated constructor accordingly.
4866 (draw_node::gcol, draw_node::fcol): New variables.
4867 Updated constructor accordingly.
4868 (special_node::gcol, special_node::fcol): New variables.
4869 Updated constructors accordingly.
4870 (troff_output_file::put_char, troff_output_file::put_charwidth,
4871 troff_output_file::draw): Set glyph and fill color.
4872 (troff_output_file::start_special): Set glyph and fill color.
4873 Always set current font.
4874 (troff_output_file::fill_color, troff_output_file::glyph_color):
4875 Don't call `do_motion'.
4876 (glyph_node::gcol, glyph_node::fcol): New variables.
4877 Updated constructors of glyph_node and ligature_node accordingly.
4878 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4880 (glyph_node::merge_glyph_node,
4881 kern_pair_node::add_discretionary_hyphen,
4882 node::add_discretionary_hyphen): Updated.
4883 (break_char_node::merge_self): Updated.
4884 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4885 vmotion_node::tprint): Handle color.
4886 (make_glyph_node, make_node, node::add_char): Updated.
4888 * src/roff/troff/env.cc (environment::space_newline,
4889 environment::space, environment::output_line, environment::do_break,
4890 environment::make_tab_node, environment::add_padding, title):
4892 (environment_switch, environment_copy): Don't add color nodes.
4894 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4896 (token::next): Updated.
4897 \m and \M now are as transparent as \s.
4898 (process_input_stack, token::add_to_node_list, token::process,
4899 read_draw_node): Updated.
4900 (charinfo_to_node_list): Don't add color nodes.
4902 * doc/groff.texinfo: Updated.
4904 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4906 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4909 2002-09-27 Colin Watson <cjwatson@debian.org>
4911 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4913 2002-09-23 Werner LEMBERG <wl@gnu.org>
4915 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4917 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4918 (linewidth_factor): New global variable.
4919 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4921 (long_options): Add -w/--linewidth option.
4923 (main): Handle -w option to set linewidth_factor.
4924 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4927 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4929 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4931 Fixed a bug in the line thickness setting code.
4933 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4935 (lbp_printer::set_line_thickness): Pass environment as second
4937 Implement it actually.
4938 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4939 and `set_line_thickness, depending on the current font size.
4941 2002-09-21 Werner LEMBERG <wl@gnu.org>
4943 Some Debian patches.
4945 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4946 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4949 2002-09-20 Werner LEMBERG <wl@gnu.org>
4951 * configure: Regenerated with autoconf 2.54.
4953 2002-09-20 Werner LEMBERG <wl@gnu.org>
4955 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4957 Rename cur_fill_color to fill_color.
4958 * src/roff/troff/env.cc: Updated.
4960 2002-09-20 Werner LEMBERG <wl@gnu.org>
4962 * src/roff/troff/env.cc (title): Copy color status after processing
4964 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4965 fill color nodes to reset colors properly.
4967 * tmac/www.tmac (DC): Fix color handling.
4969 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4970 * doc/groff.texinfo: Fixing documentation of `tl' request.
4971 * doc/webpage.ms: Updated.
4973 2002-09-19 Werner LEMBERG <wl@gnu.org>
4975 * src/roff/troff/env.cc (environent_switch, environment_copy):
4976 Emit glyph and fill color nodes to initialize colors properly.
4978 2002-09-17 Colin Watson <cjwatson@debian.org>
4980 * src/roff/troff/env.cc (environment::set_glyph_color,
4981 environment::set_fill_color): Fix typo which prevented \m[] work
4984 2002-09-17 Werner LEMBERG <wl@gnu.org>
4986 Add left and right italic correction to non-slanted PS fonts. This
4987 is an experimental feature to improve image rendering of grohtml.
4989 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4990 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4991 * font/devps/*: All non-slanted fonts regenerated.
4994 2002-09-16 Werner LEMBERG <wl@gnu.org>
4996 Add a site-specific font directory.
4998 * Makefile.in (localfontdir, legacyfontdir): New variables.
4999 (fontpath): Use them.
5000 (MDEFINES, uninstall_dirs): Updated.
5001 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5002 Remove `FONTPATH' and `MACROPATH'.
5004 * src/roff/troff/troff.man, NEWS: Updated.
5005 * doc/groff.texinfo (Font Directories): New section.
5008 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5009 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5010 src/preproc/grn/grn.man: Minor fixes.
5012 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5013 Remove unused variable.
5015 2002-09-11 Werner LEMBERG <wl@gnu.org>
5017 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5018 * man/groff_out.man: Fix documentation of 'N'.
5020 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
5022 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5023 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5025 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5026 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5027 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5028 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5029 PRE_TAG>: Call `begin' with `FALSE'.
5031 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5033 * src/libs/libgroff/string.cc (string::extract): Fix position of
5034 terminating null byte.
5036 2002-09-08 Werner LEMBERG <wl@gnu.org>
5038 Add global option `nospaces' to tbl so that leading and trailing
5039 spaces in data items are ignored.
5041 * src/libs/libgroff/string.cc (string::remove_spaces): New member
5042 function to remove leading and trailing spaces.
5043 * src/include/stringclass.h: Updated.
5045 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5047 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5049 Fix typo in error messages.
5050 (process_data): Implement `nospaces' option.
5051 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5053 2002-09-07 Werner LEMBERG <wl@gnu.org>
5055 * src/include/config.hin: Add `HAVE_ISATTY'.
5056 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5058 * src/libs/libgroff/tmpname.cc: Include `time.h'.
5059 * src/libs/libdriver/input.cc (Char): Add `operator==' and
5060 `operator!=' for `char'.
5061 * doc/groff.texinfo: Replace @ifnottex block for top node with
5064 2002-09-06 Werner LEMBERG <wl@gnu.org>
5066 * doc/Makefile.in (.texinfo.html): Add -I switch.
5067 * doc/groff.texinfo: Add @ifnottex block for top node to make
5068 translation to HTML work.
5070 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
5072 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5073 (get_papersize, determine_vertical_offset): Removed.
5074 (char_buffer::do_image): Always specify letter size.
5076 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5079 2002-09-05 Werner LEMBERG <wl@gnu.org>
5081 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5082 default indentation.
5084 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
5086 * src/preproc/html/pre-html.cc (imageList::createPage): Use
5088 (generateImages): Clean up push-back buffer.
5090 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5092 * doc/groff.texinfo: Minor fixes.
5094 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5096 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5097 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5099 (determine_vertical_offset): Use LETTER_LENGTH.
5100 (createPage): Moved to ...
5101 (imageList::createPage): This.
5102 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5103 (imageList::getMaxX): New function.
5104 (createImage): Moved to ...
5105 (imageList::createImage): This.
5106 (imageList::createImages): New function.
5107 (generateImages): Read `maxx' directly.
5109 (scanArguments): Don't specify `gsPaper' for `-o'.
5110 (makeTempFiles): Call `xtmpfile' with the last argument set to
5113 2002-08-24 Werner LEMBERG <wl@gnu.org>
5115 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5116 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5117 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5118 * src/preproc/html/pushback.cc: Include nonposix.h.
5119 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5122 2002-08-23 Werner LEMBERG <wl@gnu.org>
5124 Use $(OBJEXT) for the object file extension.
5126 * Makefile.comm (.SUFFIXES): Add .obj.
5127 (.cc.obj, .c.obj): New implicit rules.
5128 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5129 (MDEFINES): Add EXEEXT and OBJEXT.
5130 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5132 2002-08-22 Werner LEMBERG <wl@gnu.org>
5134 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5136 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5138 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5140 (html_printer::update_min_max, html_printer::add_table_end): New
5142 (html_printer::lookahead_for_tables): Use them.
5143 Reset page offset correctly.
5144 (html_printer::~html_printer): Add creation of creator comment up.
5146 2002-08-20 Werner LEMBERG <wl@gnu.org>
5148 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5149 * man/groff_tmac.man: Fix typos.
5150 * man/groff_font.man: Minor reordering.
5151 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5153 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5155 Avoid endless loops while scanning for tables.
5157 * src/devices/grohtml/post-html.cc (list::insert): Set
5159 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5161 Return immediately if that argument is NULL.
5162 (html_printer::calc_nf): Don't test if `g' is NULL.
5163 (html_printer::lookahead_for_tables): Use
5164 `glyphs.move_right_get_data'.
5165 Don't test if `g' is NULL.
5167 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5169 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5171 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5173 (char_block::char_block): Allocate `buffer'.
5174 (char_buffer::add_string): Use it.
5176 2002-08-15 Werner LEMBERG <wl@gnu.org>
5178 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5179 src/devices/grodvi/grodvi.man: Document default line thickness.
5181 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5183 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5186 2002-08-14 Werner LEMBERG <wl@gnu.org>
5188 * doc/webpage.ms: Updated.
5190 2002-08-09 Werner LEMBERG <wl@gnu.org>
5192 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5195 2002-08-08 Aaron Campbell <aaron@monkey.org>
5197 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5200 2002-08-08 Werner LEMBERG <wl@gnu.org>
5202 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5205 Don't push back a space but a newline onto the stack.
5207 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5209 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5212 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5213 html_printer::start_font): Handle them.
5214 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5216 (html_text::do_bold): Don't reset italic and tt.
5217 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5218 * font/devhtml/DESC.proto: Add those fonts.
5219 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5221 2002-08-07 Werner LEMBERG <wl@gnu.org>
5223 * MORE.STUFF: Added gpresent.
5225 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5226 whitespace before printing the logging message.
5228 2002-07-31 Colin Watson <cjwatson@debian.org>
5230 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5231 Initialize `n' to zero. This fixes a segfault on ARM.
5233 2002-07-30 Werner LEMBERG <wl@gnu.org>
5235 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5237 2002-07-29 Werner LEMBERG <wl@gnu.org>
5239 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5242 2002-07-28 Colin Watson <cjwatson@debian.org>
5244 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5246 (html_printer::html_printer): Initialize `pointsize'.
5248 2002-07-26 Werner LEMBERG <wl@gnu.org>
5250 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5252 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5253 (gnu.eps): Add -rle switch to pnmtops.
5254 (distfiles): Add gnu.eps and gnu.png.
5256 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5258 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5261 2002-07-24 Werner LEMBERG <wl@gnu.org>
5263 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5264 ' \+' but ' *' for sed.
5265 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5267 2002-07-23 Werner LEMBERG <wl@gnu.org>
5269 * doc/groff.texinfo: Document `papersize' keyword.
5270 * NEWS, man/groff_font.man: Updated.
5272 2002-07-23 Colin Watson <cjwatson@debian.org>
5274 Extend papersize keyword to accept more than a single entry. The
5275 first valid will be used.
5277 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5278 (font::scan_papersize): Really skip final newline.
5279 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5281 2002-07-23 Werner LEMBERG <wl@gnu.org>
5283 * configure.ac: Test for isatty.
5284 * configure: Regenerated.
5285 * src/include/posix.h: Check HAVE_ISATTY.
5286 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5287 * src/utils/lookbib/lookbib.cc: Include posix.h.
5288 Don't declare isatty.
5290 2002-07-21 Werner LEMBERG <wl@gnu.org>
5292 * NEWS: Add `output' request.
5294 * REVISION: Increased to 1.
5296 Version 1.18.0 released
5297 =======================
5299 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5301 Allow internal glyph indices > 0xFF in grohtml for input characters.
5303 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5305 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5306 Updated all callers.
5307 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5308 (html_printer): Updated.
5310 2002-07-19 Werner LEMBERG <wl@gnu.org>
5312 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5313 * font/devutf8/R.proto: Adding some missing glyphs.
5314 * font/devutf8/NOTES: Updated.
5316 * tmac/dvi.tmac: Add more composite glyphs.
5317 * tmac/html.tmac: Updated.
5319 * man/groff_char.man: Add `sum' and `product' entities.
5323 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5325 Improved table, tab, and indenting support.
5327 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5328 string_iterator::suppress_newline_flag): Removed. Updated all
5329 function which have used it.
5331 * src/roff/troff/env.cc: Include `input.h'.
5332 (environment::add_node): Accept 0 as parameter.
5333 (environment::add_html_tag): Add `force' parameter.
5334 Updated all callers.
5335 (environment::add_html_tag_tabs): Ditto.
5336 For the moment, support left-aligned tabs only.
5337 (environment::make_html_tag): New function.
5338 (fill, no_fill): Set .br html tag additionally.
5339 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5340 (environment::add_html_tag_eol): Removed.
5341 (tab_stops::distance_to_next_tab): Add variant for handling
5343 (environment::distance_to_next_tab): Ditto.
5344 Updated all callers.
5345 (environment::handle_tab): Handle tabs for html.
5347 * src/roff/troff/env.h: Updated.
5349 * src/roff/troff/div.cc: Updated all callers of
5350 `environment::add_html_tag'.
5352 * src/devices/grohtml/html-table.cc,
5353 src/devices/grohtml/html-table.h: New files.
5355 * src/devices/grohtml/html-text.cc (html_text): New members
5356 `blank_para' and `start_space'.
5357 (html_text::issue_tag): Don't emit TABLE_TAG.
5358 Handle indentation for PRE_TAG and P_TAG.
5359 (html_text::end_tag): Updated.
5360 (html_text::table_is_void, html_text::issue_table_begin,
5361 html_text::issue_table_end): Removed.
5362 (html_text::do_push): Simplified.
5363 [DEBUGGING]: Small fix.
5364 (html_text::push_para): Add new parameter for indentation; updated
5367 (html_text::do_indent, html_text::do_table, html_text::done_table,
5368 html_text::is_in_table): Removed.
5369 (html_text::do_pre): Handle P_TAG also.
5370 (html_text::shutdown): Handle p->indent.
5371 (html_text::check_emit_text): Simplified.
5372 (html_text::do_emittext): Reset `blank_para'.
5373 (html_text::do_para): Add new parameter for indentation; updated
5375 (html_text::remove_indent): New function.
5376 (html_text::do_space): Handle verbatim text properly.
5377 (html_text::ever_emitted_text, html_text::starts_with_space,
5378 html_text::remove_para_align): New functions.
5379 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5381 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5384 * src/devices/grohtml/post-html.cc: Include html-table.h.
5385 (INDENTATION): Removed.
5386 (text_glob): Added many `is_<foo>' functions.
5387 Added table description `tab'.
5388 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5390 (list): Add `insert' and `move_to' member functions.
5391 (page): Add `insert_tag' member function.
5392 (page::dump_page) [DEBUG_TABLES]: Improved.
5393 (html_printer): Add `table' and `max_linelength' elements.
5394 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5395 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5396 `remove_tabs', `remove_courier_tabs'.
5397 (html_printer::emit_raw): Handle indentation.
5398 (html_printer::do_center, html_printer::write_header): Updated.
5399 (html_printer::is_courier_until_eol): Check for tag.
5400 (html_printer::do_linelength): Handle max_linelength.
5401 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5403 (html_printer::do_tempindent): Updated.
5404 (html_printer::do_indentedparagraph): Removed.
5405 (html_printer::do_indent): Simplified.
5406 (html_printer::do_eol): Use `ever_emitted_text'.
5407 (html_printer::do_flush, html_printer::do_links): Don't call
5409 (html_printer::do_break): Handle end_tempindent.
5410 (html_printer::troff_tag): Get argument.
5412 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5413 (html_printer::flush_page): Call `lookahead_for_tables'.
5414 Don't call `done_table'.
5415 (html_printer::add_to_sbuf): Always call do_indent.
5417 * src/devices/grohtml/Makefile.sub: Updated.
5419 * tmac/an-old.tmac (TP): Don't handle html device specially.
5420 (an-do-tag-html): New function which will be used instead of
5421 `an-do-tag' if html device is used.
5423 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5425 * tmac/s.tmac (@IP): Don't handle html device specially.
5426 (@IP-html): New function which will be used instead of `@IP' if
5427 html device is used.
5429 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5430 is a hack which will eventually vanish again.
5431 (PIMG): Handle `-C' option correctly if not html.
5434 2002-07-17 Werner LEMBERG <wl@gnu.org>
5436 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5438 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5440 * contrib/pic2graph/pic2graph.*: Use convert(1).
5441 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5443 2002-07-14 Bernd Warken <bwarken@mayn.de>
5445 * tmac/groff_trace.man: New file.
5446 * tmac/Makefile.sub: Updated.
5449 2002-07-13 Werner LEMBERG <wl@gnu.org>
5451 * src/roff/groff/groff.man: Add some cross references.
5453 2002-07-12 Werner LEMBERG <wl@gnu.org>
5455 * src/roff/troff/input.cc (substring_request): Add warnings for
5456 string indices out of range.
5458 2002-07-11 Werner LEMBERG <wl@gnu.org>
5460 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5461 * font/devdvi/*EC: Regenerated.
5463 2002-07-10 Bernd Warken <bwarken@mayn.de>
5465 * man/groff_char.man: Updated and extended.
5467 2002-07-10 Werner LEMBERG <wl@gnu.org>
5469 * src/roff/troff/input.cc (length_macro): Renamed to...
5470 (length_request): This.
5471 Move call of `tok.next()' to the very end, otherwise the register
5472 value hasn't been updated yet.
5473 (init_input_requests): Updated.
5475 2002-07-09 Werner LEMBERG <wl@gnu.org>
5477 * src/roff/troff/input.cc (substring_macro): Renamed to...
5478 (substring_request): This.
5479 (init_input_requests): Updated.
5480 * src/roff/troff/request.h: Updated.
5482 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5484 * src/roff/grog/grog.sh: Fix typo.
5486 2002-07-08 Werner LEMBERG <wl@gnu.org>
5488 * win32-diffs: Updated.
5490 Handle `papersize' keyword properly in DESC.
5492 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5494 Updated all callers.
5495 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5497 * src/include/paper.h: Updated.
5499 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5500 Other minor C syntax fixes.
5501 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5502 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5504 (lbp_printer::lbp_printer): Pass three arguments.
5505 Set paper dimensions properly.
5506 (make_printer, main): Updated.
5507 (handle_unknown_desc_command): Fix error messages.
5508 (main): Handle papersize keyword in DESC properly.
5510 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5512 (lbp_printer::lbp_printer): Pass an argument.
5513 Set paper_size properly.
5514 (handle_unknown_desc_command): Removed.
5515 (make_printer, main): Updated.
5516 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5518 * man/groff_font.man, NEWS: Updated.
5520 2002-07-07 Werner LEMBERG <wl@gnu.org>
5522 Integrated eqn2graph, contributed by Eric S. Raymond.
5524 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5526 * Makefile.in, NEWS: Updated.
5528 2002-06-04 Werner LEMBERG <wl@gnu.org>
5530 Changing the substring request to make it fit better with other
5531 string manipulation functions in other programming languages:
5532 Index 0 is now the first character in the string, and index -1
5533 indicates the last character. Since this request didn't work
5534 properly anyway in the last release, it doesn't harm too much to
5537 * src/roff/troff/input.cc (substring_macro): Use loops to get
5538 the real string length (ignoring COMPATIBLE_SAVE and
5539 COMPATIBLE_RESTORE) and offsets.
5540 Implement change described above.
5542 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5543 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5545 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5547 2002-06-03 Werner LEMBERG <wl@gnu.org>
5549 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5550 COMPATIBLE_RESTORE are completely ignored.
5552 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5554 (macro): `length' field renamed to `len'.
5555 Added new field `empty_macro' (1 if macro is empty), to be used
5556 instead of checking `len'.
5557 Updated all callers.
5558 (macro::empty): Updated.
5559 (macro::length, macro::set, macro::get): New functions.
5560 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5562 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5563 COMPATIBLE_RESTORE pairs.
5564 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5565 * src/roff/troff/request.h: Updated.
5567 * doc/groff.texinfo: Document .chop's behaviour better.
5569 2002-06-02 Werner LEMBERG <wl@gnu.org>
5571 * doc/pic.ms: Fix documentation for the addition of positions.
5573 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5575 2002-06-29 Werner LEMBERG <wl@gnu.org>
5577 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5579 * src/roff/troff/input.cc (have_string_arg): New global variable.
5580 (read_mode): New enumeration.
5581 (read_escape_name): Use it. Update all calls.
5582 (read_long_escape_name): Use it. Update all calls.
5583 Set have_string_arg if appropriate.
5584 (get_char_for_escape_name): Add parameter for handling space
5586 (interpolate_string_with_args, decode_string_args): New functions.
5587 (get_copy, token::next): Call it if necessary.
5588 (interpolate_string): Fix error message.
5590 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5593 2002-06-24 Bernd Warken <bwarken@mayn.de>
5595 * man/groff_tmac.man: Updated and extended.
5597 2002-06-24 Werner LEMBERG <wl@gnu.org>
5599 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5601 2002-06-23 Werner LEMBERG <wl@gnu.org>
5603 * doc/pic.ms: Improve documentation of composite block objects.
5605 2002-06-22 Werner LEMBERG <wl@gnu.org>
5607 * src/roff/troff/input.cc (init_registers): Add three registers
5608 `seconds', `minutes', and `hours' to hold the current time.
5610 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5613 2002-06-20 Werner LEMBERG <wl@gnu.org>
5615 Make \X accept both `\ ' and `\~', converting them to single space
5618 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5619 (token::unstretchable_space): New inline function.
5620 * src/roff/troff/input.cc (token::next, token::delimiter,
5621 token::description, token::add_to_node_list, token::process): Handle
5622 TOKEN_UNSTRETCHABLE_NODE.
5623 (encode_char): Handle tok.stretchable_space and
5624 tok.unstretchable_space.
5626 * NEWS, doc/groff.texinfo: Document it..
5628 2002-06-19 Werner LEMBERG <wl@gnu.org>
5630 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5632 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5633 keyword to enable/disable SGR output.
5634 (tty_printer::change_fill_color): New function.
5635 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5637 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5640 2002-06-18 Werner LEMBERG <wl@gnu.org>
5642 Add a `color' request and a `.color' register to control usage of
5645 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5646 (color_flag): This (which is the inverse).
5647 (activate_color): New function.
5648 (main, init_input_requests): Updated.
5649 * src/roff/troff/troff.h, src/roff/troff/node.cc
5650 (troff_output_file::fill_color, troff_output_file::glyph_color):
5653 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5654 Document the changes.
5656 2002-06-17 Colin Watson <cjwatson@debian.org>
5658 Circumvent bug in autoconf 2.53 regarding top_builddir.
5660 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5661 * Makefile.in, doc/Makefile.in:
5662 s/@top_builddir@/@groff_top_builddir@/.
5663 * configure: Regenerated (with autoconf 2.53).
5665 2002-06-17 Werner LEMBERG <wl@gnu.org>
5667 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5668 `paperwidth' and `paperlength' for the `papersize' keyword.
5670 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5672 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5674 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5676 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5677 html_printer::do_linelength, html_printer::do_pageoffset,
5678 html_printer::do_indentation, html_printer::do_tempindent,
5679 html_printer::do_break, html_printer::begin_page): Clear indented
5681 * tmac/html.tmac: Disable hyphenation.
5683 2002-06-15 Werner LEMBERG <wl@gnu.org>
5685 Don't produce HTML files if utility programs are missing.
5687 * Makefile.in (make_html, make_install_html): New variables.
5688 (MDEFINES): Updated.
5690 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5692 * configure.ac: Use it.
5693 * configure: Regenerated.
5695 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5696 (HTMLEXAMPLESFILES): This new variable.
5697 (EXAMPLESIMAGEFILES): Renamed to...
5698 (HTMLEXAMPLEIMAGEFILES): This.
5699 (CLEANADD): Add HTMLEXAMPLEFILES.
5700 (all): Use `make_html'.
5702 (install_data): Use `make_install_html'.
5703 Move html stuff to...
5704 (install_html): This new target.
5705 (uninstall_sub): Updated.
5707 2002-06-14 Bernd Warken <bwarken@mayn.de>
5709 * src/roff/grog/Makefile.sub (grog): Renamed to...
5711 (grog): New rule to always install grog.sh as grog.
5713 2002-06-08 Bernd Warken <bwarken@mayn.de>
5715 * src/roff/grog/grog.pl: Fix typo.
5717 2002-06-07 Werner LEMBERG <wl@gnu.org>
5719 * doc/groff.texinfo: Add more info on .tr arguments.
5721 2002-06-05 Werner LEMBERG <wl@gnu.org>
5723 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5725 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5726 * configure: Regenerated.
5728 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5730 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5732 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5734 2002-06-04 Werner LEMBERG <wl@gnu.org>
5736 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5737 is not initialized at the time we need it in case `--prefix' hasn't
5738 been set. Check for `ac_default_prefix' also.
5739 Test for `papersize' keyword also and generalize allowed whitespace.
5740 * configure: Regenerated.
5742 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5745 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5747 (src_version, src_revision): New variables to avoid overwriting
5748 from parent make process.
5749 (version.cc): Updated.
5751 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5752 (linebuf, linebufsize): New global variables.
5753 (sys_fatal): Use `fatal' to abort properly.
5754 (get_line): New function.
5755 (get_resolution): Use it.
5756 Improve error messages.
5757 (get_papersize): Check `papersize' also.
5759 Improve error messages.
5761 2002-06-03 Werner LEMBERG <wl@gnu.org>
5763 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5764 should be removed only if builddir is not srcdir.
5765 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5766 (clean): Depend on `mostlyclean'.
5767 (distclean): Depend on `clean'.
5768 (realclean, extraclean): Depend on `distclean'.
5769 (.y.cc, .y.o): Simplified. The output files are no longer written
5770 to srcdir but to builddir.
5771 * Makefile.in (MDEFINES): Add `version' and `revision'.
5772 (uninstall_dirs): Fix order of directories.
5773 * doc/Makefile.sub (version, revision): Removed.
5774 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5775 Added `HTMLDOCFILES'.
5776 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5777 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5778 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5781 * doc/texinfo.tex (\authortt): New macro.
5782 (\shortcontt): Define.
5783 (\titlepage): Set \tt to \authortt while defining \authorfont.
5784 (\appendixbox): New macro.
5785 (\chapmacro, \appendixentry): Use \appendixbox to get even
5786 indentation for letters.
5787 (\summarycontents): Set \tt.
5788 (\internalpagesize): Add two arguments for real paper width and
5789 height as needed by pdfTeX.
5790 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5792 (\tempdima, \tempdimb): New temporary dimensions.
5793 (\pagesizesyyy): Updated.
5795 2002-06-02 Werner LEMBERG <wl@gnu.org>
5797 Adding a new keyword `papersize' to the DESC file format (similar
5798 but not completely identical to grolbp's extension). grops now has
5799 a -p command line option to override `papersize'. Finally, grolbp
5800 has been adapted to the new syntax.
5802 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5803 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5805 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5806 (CCSRCS): Add `paper.cc'.
5808 * src/include/font.h (font): Add `papersize' element.
5809 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5810 (font::scan_papersize): New function.
5811 (font::load_desc): Use it for handling `papersize' keyword.
5812 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5814 * src/devices/grops/ps.cc: Include paper.h.
5815 (user_paper_length): New global variable.
5816 (ps_printer): Use paper length as initializer.
5817 (make_printer): Updated.
5818 (main): Handle new `-p' option.
5819 * src/devices/grops/grops.man: Updated.
5821 * src/devices/grolbp/lbp.cc: Include paper.h.
5822 s/papersizes/lbp_papersizes/.
5823 (set_papersize): Use new `papersizes' array.
5824 (handle_unknown_desc_command): Don't handle `papersize'.
5825 (main): Use `font::scan_papersize' for handling `-p' option.
5826 * src/devices/grolbp/grolbp.man: Updated.
5828 * man/groff_font.man: Document `papersize'.
5831 2002-05-30 Werner LEMBERG <wl@gnu.org>
5833 * src/devices/grops/TODO: Updated.
5834 * src/devices/grops/grops.man: More info on paper formats.
5835 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5837 2002-05-29 Werner LEMBERG <wl@gnu.org>
5839 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5840 to list only if srcdir != currdir.
5841 (distfiles): New target.
5843 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5844 (NOMAKEDIRS): New variable.
5847 2002-05-26 Werner LEMBERG <wl@gnu.org>
5849 Add .output request, similar to \! at top-level.
5851 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5852 (output_request): New function.
5853 (init_input_requests): Add it.
5855 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5858 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5859 (prepare_examples): Fix typo.
5860 * doc/groff.texinfo (@direntry): Fix it.
5862 2002-05-25 Werner LEMBERG <wl@gnu.org>
5864 Including the doc subdir into groff's Makefile system.
5866 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5867 * configure.ac: Use it.
5868 Generate `doc/Makefile'.
5869 * configure: Regenerated.
5871 * Makefile.in (infodir, INSTALL_INFO): New variables.
5872 (MDEFINES, uninstall_dirs): Updated.
5873 (OTHERDIRS): Add `doc'.
5874 * Makefile.comm (CLEANDIRADD): New variable.
5875 (mostlyclean): Use it.
5877 * doc/Makefile.sub, doc/Makefile.in: New files.
5878 * doc/Makefile: Removed.
5880 * NEWS, INSTALL: Updated.
5882 2002-05-24 Werner LEMBERG <wl@gnu.org>
5884 * doc/homepage.ms: Renamed to ...
5885 * doc/webpage.ms: This.
5888 2002-05-23 Werner LEMBERG <wl@gnu.org>
5890 Integrating the `mom' macro package, contributed by Peter Schaffter
5893 * contrib/mom/*: New subdirectory tree.
5894 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5895 be used for documentation files.
5896 (MDEFINES, uninstall_dirs): Use them.
5897 (OTHERDIRS): Add contrib/mom.
5898 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5900 * MANIFEST, NEWS: Updated.
5902 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5904 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5905 if at outer level; at start-up we are at outer level.
5907 * src/roff/troff/input.cc (do_suppress): Implement it.
5910 Add option -p to show progress information.
5911 pre-grohtml will now render only one page at a time, reducing the
5912 size of needed disk resources enormously.
5914 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5915 (imagePageName): New global variable.
5916 (psPageName, show_progress, currentPageNo): New global variables.
5917 (html_system): Close saved stderr and stdout handles.
5918 (write_end_image): Accept a parameter to control \O escape.
5919 (write_start_image): Adapted to new \O meaning.
5920 (char_buffer::write_upto_newline): Updated.
5921 (createAllPages): Replaced with...
5922 (createPage): This new function to create a single page for images.
5923 It uses `psselect' from the psutils package.
5924 (removeAllPages): Removed.
5925 (createImage): Updated.
5926 Handle progress display.
5927 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5928 (scanArguments): Add option -p.
5929 (makeTempFiles): Updated to create temp files for psPageName and
5931 (removeTempFiles): Removed.
5934 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5935 html_printer::write_header): Append `\0' to `buffer'.
5936 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5938 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5939 Handle `text_emitted'.
5940 (html_text::table_is_void): Slightly rewritten.
5941 (stop): New external symbol.
5942 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5943 (html_text::shutdown): Call `dump_stack'.
5944 (html_text::do_space): Rewritten.
5945 * src/devices/grohtml/grohtml.man: Document -p and the need of
5948 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5950 Call \O[0] if `ps4html' is active.
5951 * tmac/s.tmac (@EQ, @EN): Handle html better.
5953 * tmac/html.tmac: Don't use black for background colour.
5955 * src/roff/troff/node.cc: Include `div.h'.
5956 (troff_output_file::really_print_line): Don't use `is_on'.
5957 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5958 troff_output_file::check_charinfo,
5959 troff_output_file::put_char_width, troff_output_file::put_char,
5960 troff_output_file::determine_line_limits, troff_output_file::draw,
5961 real_output_file::begin_page, glyph_color_node::tprintf,
5962 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5964 (troff_output_file::really_on): Call `do_motion'.
5965 (suppress_node::tprint): Use `get_page_number' instead of `%'
5967 Call `reset_output_registers' conditionally on `is_on'.
5969 * doc/groff.texinfo: Document new syntax of \O.
5970 * NEWS, man/groff_diff.man: Updated.
5972 2002-05-22 Werner LEMBERG <wl@gnu.org>
5974 * MORE.STUFF: Add info about David Frey's deroff implementation.
5977 2002-05-16 Werner LEMBERG <wl@gnu.org>
5979 Pic's `with' attribute now accepts positions.
5981 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5982 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5984 (object_spec): Add rule for `WITH' and `position'.
5985 (relative_path): Give `corner' the precedence of `CHOP'.
5986 * src/preproc/pic/object.h (path): New members `pos' and
5988 * src/preproc/pic/object.cc: Updated initializers of `path'.
5989 (path::follow): Handle `is_position'.
5991 * doc/pic.ms: Completely updated grammar description.
5992 Many typographical improvements.
5994 2002-05-15 Werner LEMBERG <wl@gnu.org>
5996 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5997 code of x in range 0-127) also.
5998 * doc/groff.texinfo, man/groff_diff.man: Updated.
6000 Added keywords `north', `south', `east', and `west' for corners
6003 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6005 (yylex): Handle them.
6006 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6007 (corner): Handle them.
6009 2002-05-14 Werner LEMBERG <wl@gnu.org>
6011 * src/devices/grops/grops.man: Clarify handling of `download' file.
6013 2002-05-11 Werner LEMBERG <wl@gnu.org>
6015 Adding `warnscale' and `spreadwarn' requests, based on a patch from
6016 Jeffrey Friedl <jfriedl@yahoo.com>.
6018 * src/roff/troff/input.cc (spread_limit, warn_scale,
6019 warn_scaling_indicator): New global variables.
6020 (warnscale_request, spreadwarn_requests): New functions.
6021 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6022 (init_input_requests): Updated.
6023 (error_type): Add `OUTPUT_WARNING'.
6024 (do_error): Handle it.
6025 (output_warning): New warning function which shows output location.
6026 * src/roff/troff/env.h (spread_limit): New external variable.
6027 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6029 (distribute_space): Emit warning if added space is larger than
6031 (environment::possibly_break_line): Emit warning if a line can't
6032 be adjusted on both sides.
6034 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6036 2002-05-08 Werner LEMBERG <wl@gnu.org>
6038 * src/roff/troff/node.cc (special_node::special_node): Use
6039 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
6040 \X''\% crashes, for example.
6042 * doc/groff.texinfo: Document \! and \? used at top-level.
6044 2002-05-06 Werner LEMBERG <wl@gnu.org>
6046 * src/preproc/pic/pic.man: Fix some keyword syntax.
6047 Other minor typographical fixes.
6049 * src/roff/groff/groff.man: Fix typos.
6051 2002-05-04 Werner LEMBERG <wl@gnu.org>
6053 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6054 (ShortOpt[]): This to avoid problems with refer.
6056 * doc/pic.ms: Fix typo.
6057 Fix pic grammar description.
6059 * tmac/an-old.tmac (ne): Use de1, not de.
6061 2002-05-03 Werner LEMBERG <wl@gnu.org>
6063 * doc/groff.texinfo: Finished separation of glyphs and characters.
6064 Don't use the string `Appendix' for appendix headers (both in
6065 the text and the table of contents).
6066 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6069 Use registers LL and LT (similar to -ms) for controlling the
6070 length of title and line, respectively, in the -man and -mdoc
6073 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6074 (doc-setup-page-layout): Use \n[LL] and \n[LT].
6075 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6077 (an-header, an-p-footer): Use \n[LT].
6078 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6079 doc/groff.texinfo: Document it.
6081 2002-05-02 Werner LEMBERG <wl@gnu.org>
6083 * doc/fdl.texi: New file.
6084 * doc/groff.texinfo: Include it.
6085 Define and use @copying.
6086 Starting with separating glyph, symbol, and character.
6088 2002-04-27 Werner LEMBERG <wl@gnu.org>
6090 * Makefile.in (EXEEXT): Set it.
6091 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6094 * src/include/nonposix.h: Define GS_NAME.
6095 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6097 Some preliminary changes for EMX support under OS/2.
6099 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6100 __EMX__ similar to __MSDOS__.
6101 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6103 2002-04-25 Werner LEMBERG <wl@gnu.org>
6105 * doc/groff.texinfo: Integrated groff_out.man.
6108 2002-04-23 Werner LEMBERG <wl@gnu.org>
6110 * man/groff_out.man: Minor fixes.
6112 2002-04-23 Werner LEMBERG <wl@gnu.org>
6114 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6115 correct page references.
6116 Fixed many index entries.
6118 2002-04-23 Bernd Warken <bwarken@mayn.de>
6120 * man/roff.man: Enlarged.
6122 2002-04-22 Werner LEMBERG <wl@gnu.org>
6124 * doc/groff.texinfo: More examples, other fixes.
6126 2002-04-20 Werner LEMBERG <wl@gnu.org>
6128 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6129 will now form a chain, e.g.
6138 This is for compatibility with plan 9's troff.
6140 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6144 * doc/groff.texinfo: Add documentation of remaining requests and
6147 2002-04-19 Werner LEMBERG <wl@gnu.org>
6149 * doc/groff.texinfo: Add documentation of remaining escapes.
6151 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6152 * font/devdvi/*TC: Regenerated.
6154 2002-04-18 Werner LEMBERG <wl@gnu.org>
6156 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6157 if not in compatibility mode, i.e., increment relative to the
6159 * doc/groff.texinfo: Updated accordingly.
6161 2002-04-17 Werner LEMBERG <wl@gnu.org>
6163 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6165 2002-04-16 Bernd Warken <bwarken@mayn.de>
6167 * src/roff/groff/groff.man: Improve documentation of -P option.
6170 2002-04-15 Werner LEMBERG <wl@gnu.org>
6172 Add new escape \F to switch font family.
6174 * src/roff/troff/input.cc (token::next): Handle \F.
6175 * src/roff/troff/env.cc (environment::set_family): Handle
6177 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6180 2002-04-14 Werner LEMBERG <wl@gnu.org>
6182 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6185 2002-04-13 Werner LEMBERG <wl@gnu.org>
6187 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6188 \m[] and \M[], respectively.
6190 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6191 (symbol::symbol): Handle NULL string and empty string differently.
6192 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6193 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6194 Add optional parameter.
6195 Updated calling functions.
6196 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6198 * src/roff/troff/env.cc (environment::set_font): Ditto.
6200 * src/preproc/pic/troff.cc (troff_output::set_fill,
6201 troff_output::reset_color: Updated.
6203 * tmac/www.tmac: Updated.
6205 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6206 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6209 * tmac/Xps.tmac: Remove some redundant code.
6211 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6212 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6213 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6216 2002-04-13 Bernd Warken <bwarken@mayn.de>
6218 * src/include/printer.h, src/libs/libdriver/printer.cc
6219 (printer::change_fill_color): New member function.
6220 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6222 2002-04-12 Werner LEMBERG <wl@gnu.org>
6224 * doc/groff.texinfo: Completed pass on gtroff reference.
6226 2002-04-11 Werner LEMBERG <wl@gnu.org>
6228 * doc/groff.texinfo: More fixes.
6230 2002-04-11 Bernd Warken <bwarken@mayn.de>
6232 * src/include/color.h: Decorate with `const'.
6235 * src/libs/libgroff.color.cc: Decorate with `const'.
6237 (color::color): Initialize members.
6238 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6239 command according to the documentation.
6241 * man/groff_out.man: Updated.
6244 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6246 * src/preproc/html/pre-html.cc (write_start_image): Remove
6248 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6250 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6251 \C'hy' caused an assertion failure.
6253 * src/roff/troff/env.cc (environment::environment): Initialize
6255 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6257 2002-04-10 Werner LEMBERG <wl@gnu.org>
6259 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6260 Document pvs request and .pvs register.
6262 2002-04-09 Werner LEMBERG <wl@gnu.org>
6264 * doc/groff.texinfo: Improve and fix documentation of diversions
6267 2002-04-08 Werner LEMBERG <wl@gnu.org>
6269 * doc/groff.texinfo: Fix documentation of drawing functions.
6272 2002-04-07 Werner LEMBERG <wl@gnu.org>
6274 * doc/groff.texinfo: Better documentation of double quotes as
6278 2002-04-06 Werner LEMBERG <wl@gnu.org>
6280 * man/groff_font.man: Document names of special characters better.
6281 * doc/groff.texinfo: Minor improvements.
6283 * tmac/lbp.tmac: Load latin1.tmac.
6284 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6286 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6288 2002-04-05 Werner LEMBERG <wl@gnu.org>
6290 * tmac/tty.tmac: Don't use shc request.
6291 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6294 * man/groff_diff.man: Minor fixes.
6296 * font/devlbp/*: Remove all `charXXX' entities.
6298 * src/libs/libgroff/font.cc (font::~font): Deallocate
6299 `special_device_coding'.
6300 (font::load): Use `new' for allocating `special_device_coding'.
6301 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6302 Removed unused member.
6304 2002-04-05 Werner LEMBERG <wl@gnu.org>
6306 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6307 (resource_manager::do_begin_binary,
6308 resource_manager::do_begin_data): Use it.
6310 * doc/texinfo.tex: Updated to version 4.2.
6312 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6313 (token::zero_width_break): New inline function.
6314 * src/roff/troff/input.cc (token::next): Use it.
6315 (token::description): Updated.
6316 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6317 (token::add_to_node_list, token::process): Use it.
6318 * NEWS, doc/groff.texinfo: Updated.
6320 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6321 * tmac/tty.tmac: Add missing backslash.
6323 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6325 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6326 `.ps' register instead of `.s' to handle fractional point sizes.
6327 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6328 limit_box::output): Ditto.
6329 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6330 size_box::output): Ditto.
6331 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6332 over_box::output): Ditto.
6333 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6334 script_box::output): Ditto.
6335 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6336 sqrt_box::output): Ditto.
6338 2002-04-03 Michael Selway <mas@ssl.co.uk>
6340 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6343 2002-04-03 Werner LEMBERG <wl@gnu.org>
6345 * doc/homepage.ms: Reduce title size.
6346 * doc/groff.texinfo: Fix documentation of .t register.
6347 Fix handling of colon.
6350 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6351 only if page length is positive to avoid a loop.
6353 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6356 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6358 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6359 s/__CYGWIN32__/__CYGWIN__/.
6361 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6363 * doc/gnu.xpm: New image contributed by Emily Mulley.
6364 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6365 (homepage.html): Be dependent on gnu.eps.
6366 * doc/homepage.ms: Updated to new image.
6368 * src/devices/grohtml/post-html.cc (html_printer): New member
6370 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6371 (html_printer::sbuf_continuation): Use it.
6373 2002-03-28 Werner LEMBERG <wl@gnu.org>
6375 * src/libs/libgroff/getopt.c: Updated to latest version.
6377 * tmac/README: More on hyphen.tex license.
6379 2002-03-26 Larry Kollar <kollar@alltel.net>
6381 * doc/groff.texinfo: Add documentation of most missing requests.
6383 2002-03-25 Werner LEMBERG <wl@gnu.org>
6385 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6386 of `+-', `mu', and `di', respectively.
6388 * font/devascii/R.proto, font/devutf8/R.proto,
6389 font/devlatin1/R.proto, font/devhtml/R.proto,
6390 font/devcp1047/R.proto, font/devlpb/*: Add them.
6391 * font/devps/generate/textmap: Ditto.
6392 * font/devps/*: Regenerated.
6393 * font/devlj4/generate/text.map: Add them.
6394 * font/devlj4/*: Regenerated.
6395 * font/devdvi/generate/tc.map: Use them.
6396 * font/devdvi/generate/texsy.map: Add them.
6397 * font/devdvi/*: Regenerated.
6398 * font/devX*/*: Regenerated.
6400 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6401 tmac/tty-char.tmac: Updated.
6403 * NEWS, man/groff_char.man: Updated.
6405 2002-03-24 Werner LEMBERG <wl@gnu.org>
6407 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6408 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6409 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6410 we use `.fchar' in dvi.tmac.
6411 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6412 * tmac/Xps.tmac: Simplify some char definitions.
6413 Add definition for \[f/].
6414 * man/groff_char.man: Updated for new X.tmac.
6416 * tmac/README: New file.
6418 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6420 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6421 internal .y.o rule took precendence over the .y.cc rule, compiling
6422 the yacc files with gcc instead of g++.
6424 2002-03-23 Werner LEMBERG <wl@gnu.org>
6426 * tmac/dvi.tmac: Add replacement font for `CB'.
6428 * tmac/doc.tmac: s/request/macro/ in messages.
6429 (doc-generic-macro): Improve error message.
6430 * tmac/groff_mdoc.man: Minor improvements.
6432 2002-03-22 Werner LEMBERG <wl@gnu.org>
6434 * doc/groff.texinfo: Document possible conflict between `tr' and
6437 2002-03-21 Werner LEMBERG <wl@gnu.org>
6439 Improve handling of hyphenation patterns. It is now possible to
6440 use most of TeX's pattern files unmodified. To make the process
6441 more flexible, a new request `hpfcode' has been added which
6442 provides a character code mapping for the `hpf' request. See
6443 comment before hpf_getc() for more details.
6445 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6447 (read_patterns_file): Additional parameter for exception dictionary.
6448 Extended to recognize \pattern, \hyphenation, and \endinput.
6449 (do_hyphenation_patterns_file): Updated.
6450 * src/roff/troff/env.h (hpf_code_table): New extern.
6452 * src/roff/troff/input.cc (hpf_code_table): New array.
6453 (init_hpf_code_table, hyphenation_patterns_file_code): New
6455 (hyphenation_code): Handle translation from `trin' correctly.
6456 (main, init_input_requests): Updated.
6457 (charinfo::set_translation): Handle hyphenation code also.
6459 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6462 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6463 char' is used for offsets in hyphenation exceptions.
6465 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6467 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6469 2002-03-20 Larry Kollar <kollar@alltel.net>
6471 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6474 2002-03-18 Werner LEMBERG <wl@gnu.org>
6476 * tmac/html.tmac: Fix serious typo.
6478 2002-03-17 Larry Kollar <kollar@alltel.net>
6480 * doc/groff.texinfo: Add documentation for `writec' request.
6482 2002-03-17 Werner LEMBERG <wl@gnu.org>
6484 Added request `hpfa' to append hyphenation patterns.
6486 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6488 (hyphenation_patterns_file): Renamed to...
6489 (do_hyphenation_patterns_file): This.
6490 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6492 (init_hyphen_requests): Updated.
6493 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6495 2002-03-16 Werner LEMBERG <wl@gnu.org>
6497 Added request `writec' in analogy to `tmc'.
6499 * src/roff/troff/input.cc (write_request): Renamed to...
6500 (do_write_request): This.
6501 Added one parameter.
6502 (write_request, write_request_continue): New functions.
6503 (init_input_requests): Updated.
6504 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6506 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6508 * NEWS: Document it.
6510 2002-03-15 Werner LEMBERG <wl@gnu.org>
6512 * man/groff.man: Add writem request.
6514 Add request `trin' (translate input) to make `.asciify' work
6515 correctly. This is necessary since `charXXX' entity names are no
6516 longer hardcoded in font definition files.
6518 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6519 `translate_input' members.
6520 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6521 charinfo::set_translation_input): New methods.
6522 (charinfo::set_translation): Add third argument.
6523 * src/roff/troff/input.cc (charinfo:set_translation): Set
6525 (do_translate): Add second argument.
6526 (translate_input): New function.
6527 (init_input_requests): Updated.
6528 * src/roff/troff/node.cc (glyph_node::asciify,
6529 composite_node::asciify): Use `get_asciify_code'.
6531 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6533 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6535 2002-03-14 Larry Kollar <kollar@alltel.net>
6537 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6539 2002-03-14 Werner LEMBERG <wl@gnu.org>
6541 Add a new request `sizes' similar to the `sizes' command in DESC
6544 * src/roff/troff/env.cc (override_sizes): New function.
6545 (init_env_requests): Use it.
6546 * src/roff/troff/token.h: Export `read_string'.
6547 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6549 2002-03-12 Werner LEMBERG <wl@gnu.org>
6551 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6553 2002-03-10 Werner LEMBERG <wl@gnu.org>
6555 * tmac/pspic.tmac: Add support for -Tdvi.
6556 * tmac/dvi.tmac: Include pspic.tmac.
6557 * src/devices/grodvi/grodvi.man: Document it.
6560 * font/devlj4/generate/Makefile: Fix URL of metric files.
6562 2002-03-09 Werner LEMBERG <wl@gnu.org>
6564 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6566 2002-03-09 Larry Kollar <kollar@alltel.net>
6568 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6570 2002-03-08 Werner LEMBERG <wl@gnu.org>
6572 * doc/groff.texinfo: Fixes for texinfo 4.1.
6574 2002-03-07 Werner LEMBERG <wl@gnu.org>
6576 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6578 Handle CYGWIN properly.
6580 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6582 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6583 * tmac/lbp.tmac: Add some font translations.
6585 2002-03-02 Werner LEMBERG <wl@gnu.org>
6587 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6588 font/devhtml/R.proto: Remove `charXXX' entries.
6589 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6592 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6593 * font/devlj4/*: Regenerated all font definition files.
6594 * tmac/lj4.tmac: Load latin1.tmac.
6596 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6597 from 2000-06-17: LJ4 metric files are *not* text files.
6599 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6600 register to test for EBCDIC.
6602 2002-03-01 Werner LEMBERG <wl@gnu.org>
6604 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6605 files (as grops already does).
6606 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6608 * src/devices/grops/grops.man: Document comment lines in encoding
6611 * tmac/cp1047.tmac: New file.
6612 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6613 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6614 * tmac/Makefile.sub (NORMALFILES): Updated.
6616 * tmac/ec.tmac: Don't load latin1.tmac again.
6618 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6619 font/devps/generate/dingbats.map,
6620 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6621 font/devps/generate/Makefile (symbolmap): Add header comment.
6622 * font/devps/generate/textmap: Ditto.
6623 Remove `charXXX' entries.
6624 * font/devps/symbolmap: Regenerated.
6625 * font/devps/*: Regenerated all font definition files.
6627 2002-02-28 Werner LEMBERG <wl@gnu.org>
6629 Add color support to grodvi (for drawing colors are currently
6630 translated to gray values).
6632 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6633 (dvi_printer): Add `cur_color' member.
6634 (dvi_printer::set_color): New function.
6635 (draw_dvi_printer): Remove `fill'.
6636 (draw_dvi_printer::fill_next): Pass environment as parameter.
6637 Update code for new color support translated to gray.
6638 (dvi_printer::set_char): Updated.
6639 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6640 changes crossing the page border.
6641 (dvi_printer::draw): Updated.
6642 Remove cases `f' and `F'.
6643 * tmac/dvi.tmac: Add color definitions.
6644 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6646 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6649 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6650 versions of autoconf.
6651 * configure: Updated.
6653 * doc/homepage.ms: Use `.blm'.
6654 * tmac/www.tmac (www-depth): New auxiliary variable.
6655 (www-pop-level): Don't issue HTML tag.
6656 (ULS, ULE, LI): Use absolute indentation.
6658 * src/devices/grops/ps.cc (ps_printer::begin_page,
6659 ps_printer::end_page): Switch forth and back to default color while
6660 starting a new page.
6662 2002-02-27 Werner LEMBERG <wl@gnu.org>
6664 Add EC and TC fonts to devdvi.
6666 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6667 * font/devdvi/generate/cork.map: Renamed to...
6668 * font/devdvi/generate/ec.map: This.
6669 Remove entry for `aq'.
6670 * font/devdvi/generate/tc.map: New file.
6671 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6674 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6675 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6676 * tmac/ec.tmac: New file.
6677 * tmac/Makefile.sub (NORMALFILES): Updated.
6678 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6679 * man/groff_char.man: Check `ECFONTS' register.
6681 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6683 2002-02-26 Werner LEMBERG <wl@gnu.org>
6685 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6686 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6687 * font/devdvi/*: Updated.
6688 * tmac/dvi.tmac: Formatting.
6690 Add font `HBI' for the dvi output.
6691 Add support for font families `T' and `H'.
6693 * font/devdvi/HBI: New file.
6694 * font/devdvi/B: Renamed to ...
6695 * font/devdvi/TB: This.
6696 * font/devdvi/BI: Renamed to ...
6697 * font/devdvi/TBI: This.
6698 * font/devdvi/I: Renamed to ...
6699 * font/devdvi/TI: This.
6700 * font/devdvi/R: Renamed to ...
6701 * font/devdvi/TR: This.
6702 * font/devdvi/H: Renamed to ...
6703 * font/devdvi/HR: This.
6704 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6705 * font/devdvi/generate/Makefile (HBI): New rule.
6707 (R, I, B, BI, H): Renamed to ...
6708 (TR, TI, TB, TBI, HR): This, respectively.
6710 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6711 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6712 Add `styles' and `family' keywords.
6713 * tmac/dvi.tmac: Alias `H' to `HR'.
6714 Add some fspecial requests for italic fonts.
6715 Add TR and TI as special.
6716 Add support for `_' with font CWI.
6718 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6719 operator `:'. Until now, the expression `0:1' would return 2
6722 2002-02-25 Werner LEMBERG <wl@gnu.org>
6724 * man/groff_char.man: Added some missing PS glyph names (from the
6726 * font/devps/generate/textmap, font/devps/symbolmap: Add
6729 * doc/groff.texinfo: Minor additions and fixes.
6730 * man/groff_diff.man: Remove documentation of fp request. This
6731 is already covered in the original troff manual.
6732 Updated to be consistent with other doc files.
6735 2002-02-24 Werner LEMBERG <wl@gnu.org>
6737 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6739 Define new variable OTHERDEVDIRS (containing `font/devlj4
6740 font/devlbp' if not EBCDIC).
6741 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6742 (OTHERDEVDIRS): New variable.
6743 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6744 * configure: Regenerated.
6746 * NEWS, src/devices/grotty/grotty.man: Updated.
6748 2002-02-23 Werner LEMBERG <wl@gnu.org>
6750 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6751 get_line_arg): Honour input level.
6753 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6755 * font/*/*: Implement it in all font files.
6756 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6757 * font/devps/symbolmap: Updated.
6758 * font/devlj4/generate/text.map: Updated.
6759 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6760 * font/devdvi/generate/texmi.map: Updated.
6762 * font/devutf8/R.proto: Remove all `charXXX' entries.
6763 * font/devutf8/NOTES: Updated.
6765 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6768 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6770 * NEWS, man/groff_char.man: Updated.
6772 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6774 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6776 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6778 * src/roff/grog/grog.pl: Fix computation of $refer.
6780 2002-02-19 Werner LEMBERG <wl@gnu.org>
6782 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6783 `snprintf' and `vsnprintf'.
6785 * src/include/htmlindicate.h: Renamed to...
6786 * src/include/htmlhint.h: This.
6787 * src/include/Makefile.sub: Updated.
6788 * src/preproc/eqn/main.cc: Updated.
6790 2002-02-18 Werner LEMBERG <wl@gnu.org>
6792 * man/roff.man, man/groff_out.man, man/groff.man,
6793 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6794 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6796 * win32-diffs: Updated.
6798 2002-02-17 Werner LEMBERG <wl@gnu.org>
6800 * doc/Makefile (clean): Add *.eps.
6801 (MEMACROS): Removed.
6802 (TFLAG): New variable.
6805 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6807 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6809 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6811 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6813 * src/roff/troff/troff.man: Fix order of parameter description.
6817 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6819 Simplify image handling for grohtml.
6822 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6824 (html_text::dump_stack): Don't emit newline while debugging.
6825 (html_text::do_push) [DEBUGGING]: Print more info.
6826 (html_text::check_emit_text): Fix handling of <p>.
6827 * src/devices/grohtml/html.h: Updated.
6828 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6829 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6830 send its data to stderr also.
6832 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6833 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6834 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6836 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6838 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6839 is_inline_image): Removed.
6840 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6841 (graphic_start, graphic_end): Removed.
6842 * src/include/htmlindicate.h: Updated.
6843 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6844 (macroset_template): New global variable.
6845 (makeFileName): Use `macroset_template'.
6846 (write_end_image): Don't take a parameter.
6848 (write_start_image: Don't emit newline.
6849 (char_buffer::write_upto_newline): Updated.
6850 (char_buffer::skip_to_newline): Renamed to ...
6851 (char_buffer::skip_until_newline): This.
6853 (char_buffer::write_file_troff, char_buffer::write_file_html):
6855 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6856 (removeAllPages): Remove `DEBUGGING' conditionals.
6857 (addRegDef, dump_args): New functions.
6858 (char_buffer::do_html, char_buffer::do_image): Handle
6859 `www-image-template' command line variable.
6860 Add more debugging code.
6861 (addps4html): Removed.
6862 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6864 * src/preproc/eqn/main.cc: Include `ctype.h'.
6865 (suppress_html): Removed.
6867 (inline_equation): Use `html_begin_suppress' and
6868 `html_end_suppress'.
6869 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6870 (troff_output::start_picture, troff_output::finish_picture):
6872 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6873 (process_input_file): Updated.
6875 * src/roff/troff/div.cc (page_number): Set page number only if the
6876 `ps4html' register isn't defined.
6877 * src/roff/troff/input.cc (image_no): New external variable.
6878 (do_suppress): Use it.
6879 * src/roff/troff/node.h (suppress_node::image_id): New member.
6880 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6881 (suppress_node::suppress_node): Initialize `image_id' member.
6882 (suppress_node::same): Handle `image_id' also.
6883 (suppress_node::copy): Updated.
6884 (last_image_id): New global variable.
6885 (suppress_node::tprint): Use it.
6887 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6889 * tmac/pspic.mac (PSPIC): Fix html support.
6890 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6891 * tmac/www.tmac (www-image-template): Set up.
6892 (HTMLINDEX): Renamed to...
6894 (BODYCOLOR): Renamed to...
6896 (BACKGROUND): Renamed to...
6898 (URL): Change order of parameters for consistency.
6899 (MAILTO): Renamed to...
6901 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6902 (IMG, PIMG, MPIMG): This.
6903 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6905 (LINKS): Renamed to...
6907 (LINE): Renamed to...
6909 (NO-AUTO-RULE): Renamed to...
6911 (HTML-TL): Renamed to...
6913 (UL-BEGIN, UL-END): Renamed to...
6915 (DROPCAP): Renamed to...
6917 (TS, TE, EQ, EN): Provide default definitions.
6918 (www-make-unique-name): Updated.
6919 (HTML-IMAGE-INLINE): Fix typo.
6920 * tmac/groff_www.man: Updated.
6922 * doc/Makefile (homepage.html): Add option -r to grohtml.
6923 Use shortened image name.
6924 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6925 * doc/homepage.ms: Updated and extended.
6927 2002-02-14 Werner LEMBERG <wl@gnu.org>
6929 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6931 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6932 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6933 (tty_printer::put_color): Use it.
6934 (ttr_printer::end_page): Simplify.
6936 2002-02-13 Werner LEMBERG <wl@gnu.org>
6938 * tmac/groff_tmac.man: Moved to...
6939 * man/groff_tmac.man: This place.
6940 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6942 2002-02-12 Werner LEMBERG <wl@gnu.org>
6944 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6945 $(COMPILE.c) to not include groff's assert.h.
6947 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6949 * NEWS, src/drivers/grotty/grotty.man: Document it.
6951 2002-02-11 Werner LEMBERG <wl@gnu.org>
6953 * src/libs/snprintf/snprintf.c: Updated to latest version
6956 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6957 test whether there is `.]' also.
6958 Don't check for spaces after `.['.
6959 * src/roff/grog/grog.sh: Do the same.
6961 2002-02-10 Werner LEMBERG <wl@gnu.org>
6965 * src/libs/libgroff/illegal.cc: Renamed to ...
6966 * src/libs/libgroff/invalid.cc: This.
6967 (illegal_char_table): Renamed to ...
6968 (invalid_char_table): This.
6969 * src/libs/libgroff/Makefile.sub: Updated.
6970 * win32-diffs: Updated.
6972 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6973 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6974 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6975 font::load), src/preproc/eqn/main.cc (read_line, main),
6976 src/preproc/eqn/lex.cc (file_input::read_line),
6977 src/preproc/pic/lex.cc (file_input::read_line,
6978 simple_file_input::get, simple_file_input::peek),
6979 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6980 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6981 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6982 do_bib), src/preproc/tbl/main.cc (table_input::get),
6983 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6984 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6985 do_zero_width, read_request, encode_char, ps_get_line,
6986 transparent_file, get_char_for_escape_name, transparent_translate,
6987 asciify, input_char_description, read_string, set_string),
6988 src/roff/troff/env.cc (environment::add_html_tag),
6989 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6991 * src/include/lib.h: Updated.
6993 * src/preproc/eqn/eqn.cc: Removed.
6997 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6999 2002-02-09 Werner LEMBERG <wl@gnu.org>
7001 * doc/gnu.xpm: New image.
7002 * doc/Makefile (DOCS): Add homepage.ps.
7003 Add rules for converting xpm->png and xpm->eps.
7004 Use `gnu.{xpm,eps}' as image names.
7005 * doc/homepage.ms: Updated.
7007 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
7009 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7010 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7011 Remove calls to `B1' and `B2'
7012 (PNG-IMAGE): New macro for inclusion of images in PNG format.
7013 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7014 auxiliary variables for MARGIN-PNG-IMAGE.
7015 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7016 auxiliary macros for MARGIN-PNG-IMAGE.
7017 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7019 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7020 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7021 (DROPCAP): New macro to produce dropcap characters.
7022 (www-do-image): Renamed back to...
7023 (HTML-DO-IMAGE): This.
7024 Updated all callers.
7026 * doc/Makefile (gnubw.eps): Updated.
7027 * doc/homepage.ms: Updated.
7029 2002-02-08 Werner LEMBERG <wl@gnu.org>
7031 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7032 Added `linethick' to table in section `Style Variables'.
7034 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
7036 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7038 2002-02-07 Werner LEMBERG <wl@gnu.org>
7040 Adding options -C (compatibility mode) and -c (grotty's old output
7043 * src/roff/nroff/nroff.sh: Implement it.
7045 * NEWS, src/roff/nroff/nroff.man: Updated.
7047 * PROBLEMS: Document bison 1.32 bug.
7049 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7051 * src/roff/troff/node.cc (make_tfont): Define it earlier.
7052 * src/roff/troff/div.h: Add prototype for `end_diversions'.
7053 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7054 * src/roff/troff/env.h: Add prototype for `title'.
7056 Adding EBCDIC support to grotty.
7058 * src/devices/grotty/tty.cc (CSI): New macro.
7059 (SGR_*, tty_printer::put_color): Use it.
7061 2002-02-06 Werner LEMBERG <wl@gnu.org>
7063 Implementing color support in grotty. The new switch -c activates
7064 the old drawing scheme, disabling color at the same time. The new
7065 switch `-i' selects italic instead of underlining (SGR only).
7067 * src/devices/grotty/tty.cc (putstring): New define instead of
7068 `fputs'. Updated all callers.
7069 (old_drawing_scheme): New global variable.
7070 (COLOR_CHANGE): New enum value.
7071 (SGR_*): New defines containing color handling escape sequences.
7072 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7073 (glyph): New members `back_color_idx' and `fore_color_idx'.
7074 (glyph::order): Add COLOR_CHANGE.
7075 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7076 `is_underline', `is_bold', `cu_flag', `tty_colors'.
7077 New methods `make_underline', `make_bold', `color_to_idx',
7078 `change_color', `put_color'.
7079 (cu_flag): Moved into `tty_printer' class.
7080 (tty_printer::tty_printer): Initialize colors.
7081 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7082 tty_printer::draw, tty_printer::end_page): Handle colors also.
7083 (main): Add options `-c' and `-i'.
7085 * NEWS, src/devices/grotty/grotty.man: Updated.
7087 * src/include/errarg.h (errarg): Add support for `unsigned int'.
7088 * src/libs/libgroff/errarg.c: Implement it.
7090 * src/include/printer.h (printer): Add `change_color' method
7091 (currently used by grotty only).
7092 * src/libs/libdriver/printer.cc: Implement it.
7093 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7094 call to `pr->change_color'.
7096 * src/roff/troff/node.cc (troff_output_file::fill_color,
7097 troff_output_file::glyph_color): Call `do_motion'.
7099 * tmac/tty.tmac: Add color definitions.
7101 * src/roff/groff/groff.man: Minor fixes.
7103 2002-02-05 Bernd Warken <bwarken@mayn.de>
7105 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7106 it. This is a preparation for future changes.
7108 2002-02-05 Werner LEMBERG <wl@gnu.org>
7110 * src/roff/troff/input.cc (process_input_stack): Fix the case
7111 where leading spaces are followed by \f or \s; previously, an
7112 incorrect space width has been used.
7114 * doc/roff.man (quoted_char): Fix argument.
7115 (comment): Define string.
7117 2002-02-04 Larry Kollar <kollar@alltel.net>
7119 * doc/groff.texinfo: More fixes.
7121 2002-02-04 Werner LEMBERG <wl@gnu.org>
7123 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7124 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7125 `restore_compatibility' before `output_string' -- the LINE_STRING
7126 register now already contains proper switches from and to
7129 * man/groff_char.man: Add Euro symbol.
7130 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7131 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7132 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7135 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7137 (.texinfo.html): Add support for texinfo->html.
7139 2002-02-03 Werner LEMBERG <wl@gnu.org>
7141 Added three new requests `ds1', `as1', and `ami'. The former two
7142 are equivalent to `ds' and `as' with the difference that
7143 compatibility mode is saved on entry, switched off during string
7144 expansion, and restored on exit. The latter is the pendant to `dei'
7147 (do_define_string): Use `define_mode' and `calling mode'.
7148 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7149 end of string, respectively.
7150 (define_string, append_string): Use `calling_mode'.
7151 (define_nocomp_string, append_nocomp_string,
7152 define_string_indirect): New functions.
7153 (init_input_requests): Updated.
7154 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7156 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7157 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7158 mm macro package accesses this string register directly.
7159 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7161 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7164 2002-02-02 Larry Kollar <kollar@alltel.net>
7166 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7168 2002-01-31 Werner LEMBERG <wl@gnu.org>
7170 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7172 2002-01-31 Bernd Warken <bwarken@mayn.de>
7174 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7175 * man/groff_out.man: Revised and updated.
7177 2002-01-30 Bernd Warken <bwarken@mayn.de>
7179 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7180 out the unused `{' and `}' commands. Undefined by default.
7181 (IntArray): Make `data' private.
7182 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7183 new methods instead.
7184 (skip_line_D, skip_to_end_of_line): New functions.
7185 (get_D_fixed_args): Use `skip_line_D'.
7186 Changed to handle dummy odd arguments by ...
7187 (get_D_fixed_args_odd_dummy): This new function.
7188 (get_D_variable_args): Split some code into ...
7189 (get_possibly_integer_args): This new function.
7190 (send_draw): Use more `const'.
7191 (delete_current_env): New function.
7192 (position_to_end_of_args): Use `size_t'.
7194 (send_draw): Updated.
7195 (parse_D_command): Handle `c', `C', and `t' better.
7199 2002-01-29 Werner LEMBERG <wl@gnu.org>
7202 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7203 @Def...ListEnd which replaces @Def...x. This is necessary to get
7204 proper HTML output -- see the comment in the file for more
7208 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7210 Fixes to make color changes of 2002-01-21 work with grohtml.
7212 * src/devices/grohtml/post-html.cc (style): Updated.
7213 (html_printer): Remove unused methods.
7214 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7215 html_printer::special): Updated.
7216 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7217 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7218 Added some debugging code.
7219 (html_text::start_tag): Updated.
7220 (html_text::do_push): New method.
7221 (html_text::push_para): Call it.
7222 Add method for handling color.
7223 (html_text::do_color): Updated.
7224 (html_text::shutdown): Handle color.
7225 * src/devices/grohtml/html-text.h (tag_definition): New member
7229 2002-01-28 Werner LEMBERG <wl@gnu.org>
7231 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7233 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7235 Add two switches -a and -g to control the antialiasing bits for
7236 text and graphics, respectively.
7238 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7240 * src/devices/grohtml/grohtml.man: Document them.
7241 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7243 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7244 (setupAntiAlias): New function.
7245 (createAllPages): Updated.
7246 (scanArguments): Handle `-a' and `-g'.
7247 (main): Call `setupAntiAlias'.
7250 2002-01-27 Werner LEMBERG <wl@gnu.org>
7252 * doc/groff.texinfo (Def*): Call index function after deffn.
7254 * tmac/html.tmac: Call `nroff' request.
7256 2002-01-26 Larry Kollar <kollar@alltel.net>
7258 * tmac/groff_ms.man: Add some omissions.
7260 2002-01-25 Larry Kollar <kollar@alltel.net>
7262 * tmac/groff_ms.man: Typographical improvements.
7264 2002-01-25 Werner LEMBERG <wl@gnu.org>
7266 * doc/groff.texinfo: Updated version and copyright.
7267 * src/devices/grops/grops.man: Updated.
7269 * tmac/groff_tmac.man: Fix `ig' macro.
7271 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7273 Use `.ne' unconditionally everywhere.
7274 (TS): Only insert some vertical space. Doing a page break is no
7275 longer necessary due to the redefinition of the `ne' request.
7277 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7278 warning for unknown subcommands but parse and pass them to the
7281 2002-01-24 Werner LEMBERG <wl@gnu.org>
7283 * tmac/groff_www.man, NEWS: Fix typos.
7285 2002-01-21 Werner LEMBERG <wl@gnu.org>
7287 Complete revision of color support:
7289 Adapt programs to the new libdriver/input.cc.
7291 Color spaces are no longer converted to RGB but transferred as-is
7292 in the troff intermediate output format.
7294 Handle default color gracefully. troff now supports a `default'
7295 color (which can't be changed).
7297 grops will now use the proper color space functions if available.
7301 Note that currently grohtml doesn't handle colors properly. This
7304 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7305 (ui_to_a): New function.
7306 * src/include/lib.h: Updated.
7308 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7309 (color): Simplified; removed all `double' members and methods.
7310 A new array `components' now holds the color parameters.
7311 (color::is_default, color::get_components): New methods.
7312 (color::operator==, color:operator!=): New.
7313 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7314 to make access to the `components' array more comprehensible.
7315 * src/libs/libgroff/color.cc: Implement new color support.
7316 (atoh): Small fixes.
7317 (color::read_encoding): Simplified for new troff intermediate color
7319 (default_color): New global variable.
7321 * src/roff/troff/input.cc (default_symbol): New global variable.
7322 (lookup_color): Use it.
7323 (default_black): Removed.
7324 (do_glyph_color, do_fill_color): Simplified.
7325 (define_color): Handle default color.
7327 (do_if_request): Handle default color.
7328 * src/roff/troff/env.cc (environment::environment): Initialize
7329 colors with `default_color'.
7330 * src/roff/troff/node.cc (troff_output_file::put): Add method
7332 (troff_output_file::hex): Removed.
7333 (troff_output_file::fill_color, troff_output_file::glyph_color):
7334 Updated to include/color.h and libdriver/input.cc.
7336 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7337 fill color properly (identically to the outline color). \D'f...'
7338 doesn't work any more.
7339 All function calls to it updated.
7341 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7343 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7346 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7347 (ps_printer::sbuf_color): Make a real member instead of pointer.
7348 (ps_printer::fill_color, ps_printer::output_color): Removed.
7349 (ps_printer::ps_printer): Updated.
7350 (ps_printer::set_char): Ditto.
7351 (ps_printer::set_color): Use various color schemes.
7352 Use `put_color' method.
7353 (ps_printer::flush_sbuf): Don't set color.
7354 (ps_printer::fill_path): Take `environment' as parameter.
7355 Simplify color handling.
7356 (ps_printer::set_line_thickness): Renamed to ...
7357 (ps_printer::set_line_thickness_and_color): This (and updated).
7358 (ps_printer::set_color): Change second parameter from `complete'
7359 to `fill' which better describes what it does.
7360 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7361 and text in the right order.
7363 Remove branches for `f' and `F'; this is handled by
7365 * src/devices/grops/ps.h: Updated.
7366 * font/devps/prologue (FL): Redefined.
7367 ({F,C}r,k,g: New color functions (with and without filling).
7369 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7370 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7371 doc/groff.texinfo, NEWS: Updated.
7373 2002-01-20 Bernd Warken <bwarken@mayn.de>
7375 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7376 in this file for what has been changed.
7378 2002-01-19 Werner LEMBERG <wl@gnu.org>
7380 * test-groff: Fix GROFF_FONT_PATH.
7381 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7382 is read before .TH or .Dd is parsed.
7384 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7386 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7387 quadrant boundaries.
7389 2002-01-18 Werner LEMBERG <wl@gnu.org>
7391 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7394 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7396 * tmac/doc.common: Initialize %I register for the %I macro to
7397 avoid (harmless) warning.
7398 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7399 when in the SYNOPSIS section.
7401 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7403 * src/preproc/pic/lex.cc (get_token): Fix typo.
7405 2002-01-17 Werner LEMBERG <wl@gnu.org>
7407 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7409 2002-01-17 Larry Kollar <kollar@alltel.net>
7411 * tmac/groff_ms.man: Completely rewritten.
7413 2002-01-16 Werner LEMBERG <wl@gnu.org>
7415 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7417 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7419 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7421 (ps_printer::draw): Ditto.
7423 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7425 * tmac/groff_mdoc.man: Minor fixes.
7427 2002-01-13 Werner LEMBERG <wl@gnu.org>
7429 * man/groff_out.man: Some fixes.
7431 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7433 * doc/pic.ms: Fix typos.
7435 2002-01-12 Werner LEMBERG <wl@gnu.org>
7437 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7439 2002-01-10 Werner LEMBERG <wl@gnu.org>
7441 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7445 2002-01-09 Bernd Warken <bwarken@mayn.de>
7447 * man/groff_out.man: Revised.
7448 * man/roff.man: Minor fixes.
7449 * src/roff/troff/troff.man: Some reordering.
7451 2002-01-09 Werner LEMBERG <wl@gnu.org>
7453 * tmac/an-old.tmac: Add dummy macros for equation support.
7455 2002-01-07 Werner LEMBERG <wl@gnu.org>
7457 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7459 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7461 * tmac/groff_man.man: Small improvements.
7463 2002-01-07 Bernd Warken <bwarken@mayn.de>
7465 * man/groff_diff.man: Revised.
7467 2002-01-06 Werner LEMBERG <wl@gnu.org>
7469 * tmac/www.tmac: Remove extraneous backslash.
7471 2002-01-06 Bernd Warken <bwarken@mayn.de>
7473 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7475 2002-01-05 Werner LEMBERG <wl@gnu.org>
7477 Integrated groffer, contributed by Bernd Warken.
7479 * contrib/groffer/*: New.
7480 * Makefile.in, NEWS: Updated.
7482 2002-01-04 Werner LEMBERG <wl@gnu.org>
7484 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7485 registers defined in macro packages.
7486 Revising the ms part.
7488 2002-01-04 Larry Kollar <kollar@alltel.net>
7490 * doc/groff.texinfo: Add documentation for ms macros.
7492 2002-01-02 Werner LEMBERG <wl@gnu.org>
7494 First step in adding PS support for the Euro symbol. `eu' is the
7495 official Euro logo, `Eu' is a font-specific glyph variant.
7497 * font/devps/text.enc: Add `Euro' at position 9.
7498 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7499 * font/devps/symbolmap: Regenerated.
7503 2002-01-02 Bernd Warken <bwarken@mayn.de>
7505 * man/roff.man: Revised.
7507 2002-01-01 Bernd Warken <bwarken@mayn.de>
7509 * src/roff/groff/groff.man: Completely rewritten.
7511 2001-12-31 Werner LEMBERG <wl@gnu.org>
7513 * doc/Makefile: Updated.
7515 2001-12-30 Werner LEMBERG <wl@gnu.org>
7517 * tmac/www.tmac: Make all names of internal macros/registers/strings
7518 lowercase, and prepend `www-'.
7519 Other minor changes.
7520 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7522 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7524 Implement option `-b' in grohtml to set the HTML background colour.
7526 * src/devices/grohtml/post-html.cc (default_background): New global
7528 (html_printer::html_printer): Initialize `background' to
7529 `default_background'.
7530 (main): Implement option `-b'.
7532 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7534 * src/devices/grohtml/grohtml.man: Updated.
7535 * doc/Makefile (.ms.html): Use `-b'.
7536 * tmac/html.tmac: Don't set background color.
7538 Add new grohtml tag `.html-tl'.
7540 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7542 (title_desc::title_desc): Updated.
7543 (html_printer::troff_tag): Handle `.html-tl'.
7544 (html_printer::write_title): Use `with_h1'.
7545 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7546 (HTML-TL): New macro.
7548 Add support for unordered lists in HTML.
7550 * tmac/www.tmac (www-level): New auxiliary register.
7551 (www-level1, www-level2, www-level3): New auxiliary strings.
7552 (www-push-level, www-pop-level): New auxiliary macros
7553 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7557 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7558 (DEFAULT_VERTICAL_OFFSET): Removed.
7559 (IMAGE_BOARDER_PIXELS): Set to 0.
7560 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7561 (vertical_offset): Initialize with 0.
7562 (gsPaper): New global variable.
7563 (get_resolution): Scan for and return unsigned int.
7564 (get_papersize): New function to get paper length from devps/DESC.
7565 (determine_vertical_offset): New function.
7566 (createAllPages): Produce gray-level images and use proper page
7568 (createImage): Use `-quiet' option of pnmcrop.
7569 (addZ): Fix passing of `-Z'.
7570 (scanArguments): Fix handling of `-o'.
7571 (main): Call `determine_vertical_offset'.
7572 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7575 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7576 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7577 glyph descenders properly.
7579 * doc/homepage.ms: Include `gnubw.eps'.
7580 * doc/Makefile (gnubw.eps): New rule.
7581 (homepage.html): Depend on `gnubw.eps'.
7583 2001-12-25 Werner LEMBERG <wl@gnu.org>
7585 * src/roff/troff/input.cc (default_black): Fix return value.
7587 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7589 * tmac/doc-common (Dt): Change output of architecture strings.
7590 Do some syntax cleanup.
7591 * tmac/groff_mdoc.man: Updated.
7593 2001-12-23 Werner LEMBERG <wl@gnu.org>
7595 Adding an `itc' request (input line trap accepting \c).
7597 * src/roff/troff/env.h (environment): New member
7598 `continued_input_trap'.
7599 Make `do_input_trap' a friend function instead of `input_trap'.
7600 * src/roff/troff/env.cc (environment::environment,
7601 environment::copy): Updated.
7602 (environment::newline): Implement it.
7603 (do_input_trap): New function.
7604 (input_trap): Call `do_input_trap'.
7605 (input_trap_continued): New function.
7606 (init_env_requests): Updated.
7607 * src/roff/troff/TODO: Updated.
7609 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7612 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7614 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7616 * tmac/doc-common, tmac/doc-syms: Small updates.
7618 2001-12-22 Colin Watson <cjwatson@debian.org>
7620 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7622 2001-12-22 Bernd Warken <bwarken@mayn.de>
7624 * MANIFEST: New file.
7626 2001-12-22 Werner LEMBERG <wl@gnu.org>
7628 * src/preproc/grn/grn.man: Updated.
7630 2001-12-22 Solar Designer <solar@openwall.com>
7632 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7635 2001-12-19 Werner LEMBERG <wl@gnu.org>
7637 Implement a fallback character request `.fchar'.
7639 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7640 (is_fallback): New inline function.
7641 * src/roff/troff/input.cc (do_define_character): New function.
7642 (define_character): Call `do_define_character'.
7643 (define_fallback_character): New function.
7644 (init_input_requests): Add `fchar'.
7645 (charinfo::charinfo): Updated.
7646 (charinfo::set_macro): New argument to set `fallback' flag.
7647 * src/roff/troff/node.cc (make_glyph_node, make_node,
7648 node::add_char): Check `fallback' flag.
7649 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7651 2001-12-16 Werner LEMBERG <wl@gnu.org>
7653 * groff.texinfo: Document exact search algorithm for glyphs.
7655 2001-12-15 Werner LEMBERG <wl@gnu.org>
7657 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7658 the left side of $(MANPAGES) rule to make it always non-empty.
7660 2001-12-14 Werner LEMBERG <wl@gnu.org>
7662 * src/roff/troff/input.cc (default_black): Define default color
7663 `black' if not yet defined.
7665 2001-12-13 Werner LEMBERG <wl@gnu.org>
7667 Implement new string-valued register `.fn' to return the current
7668 real (internal) font name.
7670 * env.cc (environment::get_font_name_string): New function.
7671 (init_env_requests): Add `.fn' register.
7672 * env.h (environment): Updated.
7673 * node.cc (font_info): Make `get_font_name' a friend.
7674 (get_font_name): New function.
7677 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7679 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7681 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7683 2001-12-12 Werner LEMBERG <wl@gnu.org>
7685 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7687 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7689 * man/groff_diff.man: Adding documentation for \O.
7691 2001-12-10 Werner LEMBERG <wl@gnu.org>
7693 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7694 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7696 2001-12-09 Werner LEMBERG <wl@gnu.org>
7698 * man/roff.man: Revised.
7699 * src/roff/groff/groff.man: Replace man page references with a
7700 pointer to roff.man.
7702 2001-12-09 Bernd Warken <bwarken@mayn.de>
7704 * man/roff.man: Completely rewritten.
7706 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7708 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7710 2001-12-05 Werner LEMBERG <wl@gnu.org>
7712 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7714 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7715 order of initializers.
7718 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7720 * doc/groff.texinfo: Fix documentation of \O.
7722 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7723 html_text::do_table, html_text::do_emittext, html_text::do_para):
7724 Use `const' for first argument.
7725 (html_text::do_table): Use cast.
7726 * src/devices/grohtml/html-text.h: Updated.
7727 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7728 method for `const string &s'.
7729 * src/devices/grohtml/html.h: Updated.
7730 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7731 (ANCHOR_TEMPLATE): Modified.
7732 (manufacture_headings): New global variable to handle `-h' option.
7733 (is_subsection): Removed.
7734 (char_buffer::add_string): Add `const' to first argument.
7735 Protect against invalid string argument.
7736 Add method for `const string &s'.
7737 (text_glob): Completely redesigned.
7738 (page): Use `const' for strings and remove string length variable.
7739 (page::add_html): Removed.
7740 (page::add_end_encode): New member function.
7741 (to_unicode): Moved upwards.
7742 (title_desc, header_desc): Updated.
7743 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7745 (html_printer::is_bold, html_printer::make_bold): New member
7747 (html_printer::end_of_line): Updated.
7748 (generate_img_src, html_printer::do_auto_image,
7749 html_printer::do_title, html_printer::write_header,
7750 html_printer::determine_header_level, html_printer::do_heading,
7751 html_printer::do_linelength, html_printer::do_pageoffset,
7752 html_printer::do_indentation, html_printer::do_tempindent,
7753 html_printer::do_indentedparagraph, html_printer::do_break,
7754 html_printer::flush_sbuf, get_html_translation,
7755 html_printer::begin_page, html_printer::special): Rewritten to get
7756 rid of static string length limit.
7757 (html_printer::troff_tag): Added `.no-auto-rule'.
7758 (html_printer::flush_globs): Small fix.
7759 (html_printer::determine_space): Don't compute `space_width'.
7760 (html_printer::translate_to_html): Renamed to ...
7761 (html_printer::emit_html): This (with updates).
7762 (html_printer::write_header): Implement `-h' option.
7763 (html_printer::draw): Remove commented-out code. Handle `F'
7765 (html_printer::add_char_to_sbuf): Removed.
7766 (html_printer::add_to_sbuf): Rewritten.
7767 (html_printer::sbuf_continuation): Fixed.
7768 (html_printer::seen_backwards_escape, reverse,
7769 html_printer::remove_last_char_from_sbuf): Removed.
7770 (char_translate_to_html, str_translate_to_html): Removed.
7771 (html_printer::overstrike): New function member.
7772 (html_printer::set_char): Use it.
7773 (html_printer::do_body): New function member.
7774 (html_printer::~html_printer): Use it.
7775 (main): Handle `-h' option.
7777 * src/devices/grohtml/grohtml.man: Document -h switch.
7779 * src/preproc/html/pre-html.cc: Include searchpath.h
7780 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7781 (get_resolution): New function.
7782 (checkImageDir): Use `0777' permissions in mkdir()
7783 (write_start_image): Rewritten to use `\O[5...]'.
7784 (createImage, generateImages): Updated.
7785 (main): Handle `F' and `h' options.
7786 Use `get_resolution'.
7788 * src/roff/troff/input.cc (begin, end, image): Removed.
7789 (do_suppress): Take parameter.
7790 Handle modified syntax of `\O'.
7791 (token::next): Updated.
7792 (init_markup_requests): Removed.
7795 * src/roff/troff/div.h: Add declaration for begin_page().
7797 * tmac/color-html.tmac: Removed. Contents moved to...
7798 * tmac/html.tmac: Here. Set background color.
7799 * tmac/color.tmac: Removed. Contents moved to...
7800 * tmac/ps.tmac: Here.
7801 * tmac/www.tmac: Remove the title command when generating images
7803 (NO_AUTO_RULE): New macro.
7804 (HTML_DO_IMAGE): Use revised `\O' escapes.
7805 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7807 2001-12-02 Werner LEMBERG <wl@gnu.org>
7809 * tmac/groff_mdoc.man: Fix typo.
7811 2001-12-01 Colin Watson <cjwatson@debian.org>
7813 * man/roff.man: Fix typo.
7815 2001-11-29 Werner LEMBERG <wl@gnu.org>
7817 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7820 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7821 more than one argument to \D'f ...'.
7823 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7825 2001-11-28 Werner LEMBERG <wl@gnu.org>
7827 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7830 * tmac/groff_man.man: Minor cosmetic fix.
7832 2001-11-27 Werner LEMBERG <wl@gnu.org>
7834 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7835 tmac/groff_www.man: s/mwww/www/.
7837 2001-11-26 Werner LEMBERG <wl@gnu.org>
7839 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7840 * configure: Regenerated.
7841 * win32-diffs: Updated.
7843 * tmac/groff_mwww.tmac: Renamed to ...
7844 * tmac/groff_www.tmac: This.
7845 * tmac/mwww.tmac: Removed.
7846 * NEWS, tmac/Makefile.sub: Updated.
7848 2001-11-21 Werner LEMBERG <wl@gnu.org>
7850 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7851 Fix explanation of `\D' and `rt'.
7853 2001-11-20 Werner LEMBERG <wl@gnu.org>
7855 * tmac/an-old.tmac (an-header): Set header length equal to page
7857 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7861 2001-11-19 Werner LEMBERG <wl@gnu.org>
7863 * NEWS, man/Makefile.sub: Updated.
7865 2001-11-19 Bernd Warken <bwarken@mayn.de>
7867 * man/ditroff.man: New file.
7869 2001-11-17 Werner LEMBERG <wl@gnu.org>
7871 * man/groff_differences.man: Renamed to ...
7872 * man/groff_diff.man: This. Updated.
7873 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7875 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7876 * src/preproc/html/pushback.cc: This. Updated.
7877 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7878 * src/preproc/html/pushback.h: This.
7879 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7882 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7883 * src/libs/libgroff/htmlhint.cc: This.
7884 * src/libs/libgroff/Makefile.sub: Updated.
7886 * tmac/an-old.tmac (an-end): Fix page length.
7888 2001-11-16 Werner LEMBERG <wl@gnu.org>
7890 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7891 * man/Makefile.sub: Include groff_differences.man.
7892 * VERSION: Set to 1.18.
7893 * REVISION: Set to 0.
7895 2001-11-16 Bernd Warken <bwarken@mayn.de>
7897 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7898 the second dot (or ending macro name) to end a macro.
7899 * doc/groff.texinfo: Doc fix.
7901 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7903 * tmac/doc-common (doc-header): Handle very long document titles
7906 2001-11-16 Werner LEMBERG <wl@gnu.org>
7908 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7910 2001-11-15 Werner LEMBERG <wl@gnu.org>
7912 * src/roff/troff/troff.man: Revised and split into troff.man and...
7913 * man/groff_differences.man: New file.
7916 2001-11-13 Werner LEMBERG <wl@gnu.org>
7918 * tmac/an-old.tmac (TS, TE): New macros for table support.
7920 2001-11-12 Werner LEMBERG <wl@gnu.org>
7922 * src/include/lib.h: Provide a fix for emx to not include
7925 2001-10-27 Werner LEMBERG <wl@gnu.org>
7927 * src/roff/troff/input.cc (substring_macro): Fix computation of
7930 2001-10-20 Werner LEMBERG <wl@gnu.org>
7932 Undo change from 2001-08-28.
7934 * src/roff/troff/input.cc (have_input): New global variable.
7935 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7936 in compatibility mode.
7937 (process_input_stack): Use it.
7939 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7941 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7942 being handled as end-of-sentence characters,
7944 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7946 * src/roff/troff/input.cc (file_iterator): New members
7947 `suppress_newline_flag' and `seen_escape'.
7948 (file_iterator::next_file): Updated.
7949 (file_iterator::fill): Use it.
7950 (string_iterator): New member `suppress_newline_flag'.
7951 (string_iterator::fill): Set it.
7952 (get_color_element): Use MAX_COLOR_VAL.
7953 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7954 (no_fill): Don't set `env->ignore_next_eol'.
7955 (environment::newline): Handle `eol' tag properly.
7957 (environment::add_html_tag): Set `env->ignore_next_eol'.
7959 * src/roff/troff/env.h (environment): Updated.
7961 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7963 (html_printer::outstanding_eol): New member function.
7964 (html_printer::do_title): Use new functions.
7965 (html_printer::troff_tag): Test `id_eol_ce'.
7967 2001-10-10 Werner LEMBERG <wl@gnu.org>
7969 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7970 files work with -C also.
7972 2001-10-05 Werner LEMBERG <wl@gnu.org>
7974 * doc/pic.ms: Minor fix.
7975 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7976 as a valid command line switch.
7977 * src/devices/grohtml/post-html.cc (main): Ditto.
7979 * src/devices/grohtml/grohtml.man: Updated.
7980 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7982 2001-10-04 Werner LEMBERG <wl@gnu.org>
7984 Implementing color support in troff, pic, grops, and grohtml. These
7985 changes are based on a major patch provided by Gaius Mulley
7988 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7989 definitions with both hex values and fractions.
7991 New escapes: \m and \M for drawing and background color,
7992 respectively. This corresponds to the troff output commands `m'
7995 groff and troff accept command line switch `-c' to disable color
7996 output (which is automatically disabled in compatibility mode).
7998 New scaling indicator `f' for fractions (1f = 65536u).
8000 New conditional operator `m' to test for defined colors with `if'
8003 New keywords `color' (or `colour', `colored', `coloured'), `outline'
8004 (or `outlined'), and `shaded' added to pic.
8006 * src/include/color.h: New file.
8007 * src/include/driver.h: Include it.
8008 * src/include/printer.h: Include color.h.
8009 (environment): New members `col' and `fill'.
8010 (printer): Remove `adjust_arc_center' member function.
8011 * src/include/Makefile.sub: Updated.
8013 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8015 Handle `m' and `DF' troff commands.
8016 * src/libs/libgroff/color.cc: New file.
8017 * src/libs/libgroff/Makefile.sub: Updated.
8019 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8021 (createImage): Fix computation of `y2'.
8023 (buffer::write_file_html): Remove calls to `stop'.
8025 * src/preproc/pic/common.h (common_output): New abstract function
8026 members `set_color', `reset_color', `get_last_filled', and
8027 `get_outline_color'.
8028 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8029 (object_spec): Add members `shaded' and `outlined'.
8030 * src/preproc/pic/output.h (output): `command' is now abstract.
8031 New function members `set_color', `reset_color', `get_last_filled',
8032 and `get_outline_color'.
8033 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8034 `outline[d]', and `shaded'.
8035 * src/preproc/pic/object.cc (output::command): Removed.
8036 (output::set_location): Moved to output.h.
8037 (graphic_object): Add protected members `outline_color' and
8039 Add member functions `set_outline_color', `get_outline_color', and
8041 (closed_object): Add member function `set_fill_color'.
8042 Add member `color_fill'.
8043 (graphic_object::print_text): Use `out->set_color' and
8045 (box_object::print, ellipse_object::print, circle_object::print,
8046 line_object::print, spline_object::print, arc_object::print): Ditto.
8047 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8048 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8049 `SHADED', making them `%left'.
8050 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8051 * src/preproc/pic/tex.cc (tex_output): New dummy function members
8052 `set_color', `reset_color', `get_last_filled', and
8053 `get_outline_color'.
8054 * src/preproc/pic/troff.cc (simple_output): New abstract function
8055 members `set_color', `reset_color', and `get_last_filled'.
8056 (simple_output::polygon, simple_output::circle,
8057 simple_output::ellipse): Use `get_last_filled'.
8058 (troff_output): New members `last_filled' and `last_outlined'.
8059 New function members `set_color', `reset_color', `get_last_filled',
8060 and `get_outline_color'.
8061 (troff_output::finish_picture): Use `reset_color'.
8062 (troff_output::set_fill): Test `last_filled'.
8063 * src/preproc/pic/pic.man: Updated.
8065 * src/roff/groff/groff.cc (main): Implement `-c' option.
8066 (synopsis, help): Updated.
8067 src/roff/groff/groff.man: Updated.
8069 * src/roff/troff/troff.h: Include color.h.
8070 (warning_type): Add WARN_COLOR.
8071 * src/roff/troff/env.h (environment): New members
8072 `{cur,prev}_{glyph,fill}_color'.
8073 New member functions `get_{prev_,}{glyph,fill}_color'.
8074 * src/roff/troff/env.cc: Initialize and implement them.
8075 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8076 Replace `NULL' with `0' everywhere for consistency.
8077 (lookup_color, default_black, do_glyph_color, do_fill_color,
8078 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8079 define_color): New functions.
8080 (token::next): Implement \M and \m escapes.
8081 (do_if_request): Implement `m' operator.
8083 (main): Implement `-c' option.
8084 (init_markup_requests): Add `defcolor' request.
8085 (warning_table): Add `color' warning.
8086 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8088 * src/roff/troff/node.cc (troff_output_file): New members
8089 `current_{page,glyph}color'. New member functions `put_hex',
8090 `glyph_color', and `fill_color'.
8091 (glyph_color_node::*, fill_color_node::*): Implement it.
8092 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8093 (parse_term): Add support for `f'.
8094 * src/roff/troff/troff.man: Updated.
8096 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8098 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8099 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8101 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8102 (tag_definition): Use `void *' for arg1.
8103 (html_text): New member functions `do_color' and `done_color'.
8104 Use `void *' for second parameter of `push_para' member function.
8105 New `push_para' member function with a single parameter.
8106 Use `char *' for parameter of `issue_table_begin' member funtion.
8107 New `issue_color_begin' member function.
8108 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8110 (html_text::issue_color_begin): New function.
8111 (html_text::issue_table_begin): Use `char *' for parameter.
8112 (html_text::start_tag, html_text::shutdown,
8113 html_text::check_emit_text): Updated.
8114 (html_text::push_para): Use `void *' for second parameter.
8115 Add same function with only one parameter.
8116 (html_text::do_*): Updated.
8117 (html_text::do_color, html_text::done_color): New functions.
8118 * src/devices/grohtml/post-html.cc (style): New member `col'.
8119 Mew member `style' with 6 parameters.
8120 (style::style, style::operator==): Updated.
8121 (html_printer::do_font): Use it.
8122 (html_printer::draw): Add dummy entry for `F'.
8123 (html_printer::set_char): Updated.
8124 * src/devices/grohtml/grohtml.man: Updated.
8126 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8127 trailing zeroes removed.
8128 (ps_printer): New members `sbuf_color', `fill_color', and
8130 Removed member `fill'.
8131 New member function `set_color'.
8132 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8133 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8134 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8136 * tmac/color-html.tmac, tmac/color.tmac: New files.
8137 * tmac/troffrc: Include them.
8138 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8139 * tmac/Makefile.sub: Updated.
8141 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8142 man/groff.man: Updated.
8143 * font/devps/prologue.ps: Define FC and CO functions.
8145 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8147 Fix incorrect cropping of images and incorrect handling of special
8148 characters. Fix handling of file names in \O.
8150 * src/include/geometry.h: New file.
8151 * src/libs/libgroff/geometry.cc: New file.
8152 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8154 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8156 (do_suppress): Updated.
8157 * src/roff/troff/node.cc: Include geometry.h.
8158 (troff_output_file::flush_tbuf): Fixed parameters to
8159 `check_output_limits'.
8160 (troff_output_file::check_charinfo): Ditto.
8161 (troff_output_file::determine_line_limits): Add support for `Da'
8164 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8165 Add new parameter `is_special' to decode special characters from
8167 (html_printer::do_title, html_printer::do_heading,
8168 html_printer::do_indentedparagraph,
8169 html_printer::translate_to_html, html_printer::special): Updated.
8171 2001-10-03 Werner LEMBERG <wl@gnu.org>
8173 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8174 Fix entry for config.h.
8175 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8176 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8177 * src/preproc/eqn/eqn.man: Document -d command line option.
8179 2001-09-27 Werner LEMBERG <wl@gnu.org>
8181 * man/groff.man: Use
8189 instead of the old code (`.ad .hy' after the table) to suppress
8190 incorrect hyphenation for grohtml output.
8192 2001-09-22 Werner LEMBERG <wl@gnu.org>
8194 * man/groff_font.man, man/groff_out.man: Minor fixes.
8196 2001-09-20 Werner LEMBERG <wl@gnu.org>
8198 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8199 Arnold Robbins <arnold@skeeve.com>).
8201 2001-09-09 Werner LEMBERG <wl@gnu.org>
8203 * configure: Regenerated with autoconf 2.52.
8205 * doc/groff.texinfo: Complete revision of indices.
8207 2001-09-07 Werner LEMBERG <wl@gnu.org>
8209 * doc/Makefile (clean): Updated to delete all indices.
8211 2001-09-05 Werner LEMBERG <wl@gnu.org>
8213 * src/roff/troff/troff.man: Remove superfluous line.
8215 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8216 given on the command line (or rather, if only the default warnings
8219 2001-09-03 Werner LEMBERG <wl@gnu.org>
8221 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8222 use .ne for TTY devices.
8224 2001-08-31 Werner LEMBERG <wl@gnu.org>
8226 * src/roff/troff/token.h, src/roff/troff/input.cc:
8227 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8229 2001-08-28 Werner LEMBERG <wl@gnu.org>
8231 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8232 * src/roff/troff/input.cc (token::next): Return
8233 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8235 (token::description): Updated.
8236 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8237 (token::add_to_node_list, token::process): Ignore
8238 TOKEN_TRANSPARENT_ESCAPE.
8240 2001-08-27 Werner LEMBERG <wl@gnu.org>
8242 * tmac/an-old.tmac: Fix `S' string.
8244 2001-08-26 Werner LEMBERG <wl@gnu.org>
8246 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8248 2001-08-25 Werner LEMBERG <wl@gnu.org>
8250 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8252 Many other minor fixes.
8254 * configure.ac: Add message at end to inform how to compile
8256 * configure: Regenerated.
8258 2001-08-24 Werner LEMBERG <wl@gnu.org>
8260 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8261 Updated to latest version of libc.
8263 2001-08-23 Werner LEMBERG <wl@gnu.org>
8265 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8266 Autoconf 2.50 and newer can handle this.
8267 * configure: Regenerated.
8269 2001-08-21 Werner LEMBERG <wl@gnu.org>
8271 * doc/pic.ms: Fix typo.
8272 * src/preproc/tbl/tbl.man: Document case of global options.
8274 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8276 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8277 handling of `CR' font.
8279 2001-08-20 Werner LEMBERG <wl@gnu.org>
8281 Use a config.h file.
8283 * src/include/lib.h: Include config.h.
8284 * All C files: Ditto (if necessary).
8285 * All C++ source and header files: Include lib.h first (if
8288 * src/include/config.hin: New file (autogenerated by autoheader).
8289 * stamp-h.in: New file.
8290 * configure.ac: Updated.
8291 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8292 (GROFF_ARRAY_DELETE): Simplified.
8293 * Makefile.sub (DISTCLEANFILES): Updated.
8294 Added targets for remaking config.status, config.hin, config.h,
8295 stamp-h.in, and stamp-h.
8296 * configure: Regenerated.
8298 2001-08-19 Werner LEMBERG <wl@gnu.org>
8302 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8304 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8305 (do_sprintf): Use snprintf().
8307 2001-08-18 Werner LEMBERG <wl@gnu.org>
8309 * src/libs/snprintf/*: Added an snprintf module written by Mark
8311 * src/libs/libgroff/Makefile.sub: Updated.
8312 * configure.ac: Add test for snprintf().
8313 * Makefile.in: Updated.
8314 * configure: Regenerated.
8316 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8319 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8321 * tmac/doc.tmac (Ex): New implementation.
8322 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8324 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8326 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8328 * tmac/groff_tmac.man: Updated.
8330 2001-08-13 Werner LEMBERG <wl@gnu.org>
8332 * src/preproc/tbl/tbl.man: Minor documentation update.
8334 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8336 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8337 * configure.ac: Add declaration test for gettimeofday().
8338 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8339 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8340 * configure: Regenerated.
8342 2001-08-11 Werner LEMBERG <wl@gnu.org>
8344 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8345 * configure.ac: Add declaration test for strcasecmp().
8346 * Makefile.in: Updated.
8347 * configure: Regenerated.
8348 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8349 this is necessary because groff's mkstemp.cc is C++.
8350 Add declaration conditionally for strcasecmp().
8352 2001-08-10 Werner LEMBERG <wl@gnu.org>
8354 Integrated pic2graph, contributed by Eric S. Raymond.
8356 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8358 * Makefile.in, NEWS: Updated.
8360 * src/preproc/tbl/tbl.man: Revised.
8362 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8364 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8366 2001-08-09 Werner LEMBERG <wl@gnu.org>
8368 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8371 2001-08-08 Paul Eggert <eggert@twinsun.com>
8373 * Makefile.sub (configure): Depend on configure.ac, not
8375 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8377 2001-08-07 Werner LEMBERG <wl@gnu.org>
8379 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8382 2001-08-06 Werner LEMBERG <wl@gnu.org>
8384 * src/roff/troff/troff.man: Improve documentation of -E option.
8386 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8388 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8391 2001-07-27 Werner LEMBERG <wl@gnu.org>
8393 * src/preproc/refer/refer.cc: Undo last change.
8394 * src/devices/grohtml/post-html.cc: Ditto.
8396 2001-07-26 Werner LEMBERG <wl@gnu.org>
8398 * src/preproc/refer/refer.cc: Include `lib.h'.
8399 * src/devices/grohtml/post-html.cc: Ditto.
8401 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8403 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8404 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8405 * Makefile.in: Comment updated.
8406 * configure: Regenerated.
8408 2001-07-25 Werner LEMBERG <wl@gnu.org>
8410 * src/preproc/pic/pic.cc: Removed.
8411 * src/preproc/pic/pic_tab.h: Removed.
8412 * src/preproc/refer/label.cc: Removed.
8414 * doc/Makefile (.ms.html): Don't use a file name extension in
8415 argument to grohtml's -I option.
8416 * Makefile.in (dist): Remove CVS directories.
8417 Call `distfiles' target.
8419 * src/devices/grohtml/grohtml.man: Add information about valid
8420 versions of pnmtopng.
8421 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8422 name instead of number.
8424 2001-07-24 Werner LEMBERG <wl@gnu.org>
8426 * doc/groff.texinfo: Minor fixes.
8428 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8430 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8433 2001-07-20 Werner LEMBERG <wl@gnu.org>
8435 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8436 * src/libs/libgroff/mkstemp.cc: New file.
8437 * src/libs/libgroff/mksdir.cc: New file.
8438 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8439 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8440 * src/libs/libgroff/Makefile.sub: Updated.
8441 * src/include/lib.h: Add mksdir() prototype.
8442 * src/include/posix.h: Define S_IXUSR if not yet defined.
8444 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8445 (createAllPages): Use mksdir() instead of current code.
8446 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8447 (main): [!HAVE_MKSTEMP]: Removed.
8449 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8450 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8452 * configure.ac: Add tests for stdint.h, sys/time.h, and
8454 Call new GROFF_xxx macros.
8455 * configure: Regenerated.
8456 * Makefile.in: Comments updated.
8458 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8460 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8461 instead of current code.
8462 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8463 * src/roff/groff/groff.cc (possible_command::insert_args): New
8465 (main): Use it for predriver handling instead of insert_arg().
8467 2001-07-19 Werner LEMBERG <wl@gnu.org>
8469 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8472 * src/include/posix.h: Define S_IWUSR if not yet defined.
8474 2001-07-18 Werner LEMBERG <wl@gnu.org>
8478 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8480 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8481 Some other minor fixes.
8482 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8484 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8486 Replace call to `troff' with `groff -Z' to make it aware of
8489 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8490 (troff_command, command_prefix): Removed.
8491 (alterDeviceTo): Use groff.
8492 (addZ): New function.
8493 (char_buffer::do_html): Use it.
8494 (scanArguments): Use TROFF_COMMAND.
8495 (findPrefix): Removed.
8497 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8499 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8501 * doc/pic.ms: Documentation fixes.
8503 2001-07-17 Werner LEMBERG <wl@gnu.org>
8505 Replace atexit() with global destructor.
8507 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8508 (xtmpfile_list_init): New global structure to deallocate
8509 xtmpfile_list on exit. Its destructor inherits most code from
8511 (remove_tmp_files): Deleted.
8512 (add_tmp_file): Simplified.
8514 2001-07-16 Werner LEMBERG <wl@gnu.org>
8516 Replace strdup() with strsave().
8518 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8519 (set_papersize): Use strsave() and a_delete.
8520 (main): Use strsave().
8521 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8522 removeAllPages): Use strsave() and a_delete.
8524 * configure.ac: Remove test for strdup.
8525 * Makefile.in: Comment updated.
8526 * configure: Regenerated.
8528 2001-07-15 Werner LEMBERG <wl@gnu.org>
8530 * win32-diffs: Updated.
8532 2001-07-14 Werner LEMBERG <wl@gnu.org>
8534 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8535 removing the old one.
8536 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8538 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8540 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8542 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8544 Merge -xwidth into -width. Add -xwidth functionality to -column
8547 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8549 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8550 string immediately following a leading dot starts with a valid mdoc
8552 Add similar code to the -column branch.
8553 (doc-Bl-usage): Updated.
8554 * groff_mdoc.man: s/-xwidth/-width/.
8556 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8558 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8559 running into centered or non-formatted text.
8561 2001-07-11 Werner LEMBERG <wl@gnu.org>
8563 Introduce short and long prefixes to have the selection at run-time
8564 whether there is a 8+3 limit for names of temporary files.
8566 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8567 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8568 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8570 (temp_init): New global structure to initialize above three
8572 (xtmptemplate): Use two parameters for long and short prefix.
8573 Simplify code use above three variables.
8574 (xtmpfile): Use long and short prefixes as parameters.
8575 * src/include/lib.h: Updated.
8577 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8579 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8580 (createAllPages, makeTempFiles): Updated.
8582 2001-07-09 Werner LEMBERG <wl@gnu.org>
8584 * REVISION: Increased to 3.
8586 Version 1.17.2 released
8587 =======================
8589 2001-07-07 Werner LEMBERG <wl@gnu.org>
8591 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8594 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8596 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8598 * tmac/groff_mdoc.man: Fix synopsis.
8600 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8602 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8603 Restore `doc-Pa-font'.
8605 2001-07-04 Werner LEMBERG <wl@gnu.org>
8607 * src/utils/indxbib/dirnamemax.c: Moved to ...
8608 * src/libs/libgroff/maxfilename.cc: Here.
8609 s/dir_name_max/file_name_max/.
8611 * src/include/lib.h: Add file_name_max.
8612 * src/utils/indxbib/indxbib.cc: Updated.
8613 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8616 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8618 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8620 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8621 REGION_TEMPLATE): New macros.
8622 (createAllPages, makeTempFiles): Use them.
8623 Include `nonposix.h'.
8624 (html_system): New function.
8625 (createAllPages, createImage): Use it.
8628 * tmac/www.tmac: Fix typos.
8630 2001-07-03 Werner LEMBERG <wl@gnu.org>
8632 * tmac/www.tmac: Disable hyphenation in normal text only if output
8634 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8635 * tmac/groff_mwww.man, NEWS: Updated.
8637 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8639 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8642 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8644 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8645 doc-display-ps-stack): Implement font and font size stack for
8648 2001-07-02 Werner LEMBERG <wl@gnu.org>
8650 * REVISION: Increased to 2.
8651 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8653 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8654 beginning of a line.
8655 * src/groff/grog/grog.sh: Ditto.
8657 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8659 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8662 2001-06-27 Werner LEMBERG <wl@gnu.org>
8664 Fix problems with preprocessor string for `man' program.
8666 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8667 Updated/added copyright.
8668 Moved Emacs's local variable to identify nroff mode to the end of
8669 the file; add local variable if missing.
8671 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8673 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8674 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8675 * configure: Regenerated.
8677 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8679 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8680 * configure: Regenerated.
8682 2001-06-24 Werner LEMBERG <wl@gnu.org>
8684 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8686 * doc/pic.ms: Fix typos.
8688 Version 1.17.1 released
8689 =======================
8691 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8693 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8694 * configure: Updated.
8696 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8698 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8700 * src/roff/troff/dic.cc (blank_line): Add html tag.
8702 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8704 * src/roff/troff/input.cc (do_suppress): Fix typo.
8706 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8708 Added two new options (-D and -I) to specify image names and a
8709 subdirectory to place the images in.
8711 Change syntax from \\Ox to \\O[x].
8713 * src/devices/grohtml/post-html.cc (main): Add options.
8715 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8716 Use `NULL' instead of `0' for null string pointers.
8717 (MAX_RETRIES): New macro.
8718 (lengthOfintToStr, intToStr, make_message): New functions.
8719 (makeFileName): Make function static.
8720 Implement -D and -I options.
8721 (checkImageDir): New function.
8722 (write_end_image, write_start_image): Use new syntax of \O.
8723 (createAllPages, removeAllPages): Implement -D and -I options. Use
8725 (createImage): Use make_message().
8726 (addps4html): Add guard for malloc().
8727 (usage, scanArguments): Updated.
8728 (makeTempFiles): Use mkstemp().
8729 (removeTempFiles): Use unlink().
8730 (findPrefix): Add guard for malloc().
8732 * src/roff/troff/input.cc (get_delim_file_name): New function to
8734 (do_suppress): Updated to parse new syntax.
8735 * src/devices/grohtml/grohtml.man: Updated.
8736 * tmac/www.tmac: Updated to new syntax.
8740 2001-06-15 Werner LEMBERG <wl@gnu.org>
8742 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8744 * src/devices/grohtml/grohtml.man: Minor improvements.
8746 2001-06-14 Werner LEMBERG <wl@gnu.org>
8748 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8750 2001-06-11 Werner LEMBERG <wl@gnu.org>
8752 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8753 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8755 * src/preproc/grn/grn.man: Add proper '\" string.
8757 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8759 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8761 2001-06-08 Werner LEMBERG <wl@gnu.org>
8763 Updated to autoconf 2.50.
8765 * configure.in: Renamed to...
8766 * configure.ac: This.
8767 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8768 (GROFF_OS390): Updated.
8769 * configure: Regenerated.
8771 2001-05-18 Werner LEMBERG <wl@gnu.org>
8773 * src/roff/troff/env.c, src/roff/troff/env.h,
8774 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8777 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8779 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8781 2001-05-16 Werner LEMBERG <wl@gnu.org>
8783 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8784 less than or equal zero; set it to 1 then.
8785 * src/roff/troff/node.h (node::node): Initialize `last'.
8787 2001-05-08 Werner LEMBERG <wl@gnu.org>
8789 * tmac/an-old.tmac: Make predefined strings work in compatibility
8791 Add troff version guard.
8792 * tmac/doc.tmac: Simplify version guard.
8794 2001-05-07 Werner LEMBERG <wl@gnu.org>
8796 The .ns and .rs requests are now honoured not only in the top-level
8797 but in all diversions (similar to UNIX troff).
8799 This change is based on a patch from Tadziu Hoffmann
8800 <hoffmann@usm.uni-muenchen.de>.
8802 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8803 (top_level_diversion): Remove `no_space_mode' member.
8804 * src/roff/troff/div.cc (diversion::diversion,
8805 top_level_diversion::top_level_diversion): Updated.
8806 (macro_diversion::output): Reset `no_space_mode'.
8807 (no_space, restore_spacing): Use `curdiv' unconditionally.
8808 (space_request, blank_line): Check `curdiv->no_space_mode'.
8809 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8810 `curdiv' unconditionally.
8811 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8814 2001-05-06 Werner LEMBERG <wl@gnu.org>
8816 Added two new requests `de1' and `am1' which are similar to `de' and
8817 `am' with the difference that compatibility mode is saved on entry,
8818 switched off during macro execution, and restored on exit.
8820 * src/roff/troff/input.h: Added two new special characters
8821 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8822 * src/roff/troff/input.cc (input_iterator): Added two member
8823 functions `save_compatible_flag' and `get_compatible_flag'.
8824 (input_stack): Ditto.
8825 (string_iterator): Ditto. Also add private member
8826 `saved_compatible_flag'.
8827 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8828 (calling_mode): New enumeration.
8829 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8830 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8831 (define_macro, define_indirect_macro, append_macro, ignore): Use
8833 (define_nocomp_macro, append_nocomp_macro): New functions.
8834 (init_input_requests): Updated.
8835 (do_request): Rename local variable `saved_compatible_flag' to
8836 `old_compatible_flag'.
8837 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8839 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8840 public and trap-invoked macros. As a consequence, the man macros
8841 work in compatibility mode also.
8843 2001-05-06 Solar Designer <solar@openwall.com>
8845 * Makefile.in: Use $(mandir).
8847 2001-05-06 Alexios Zavras <zvr@pobox.com>
8849 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8851 2001-05-05 Werner LEMBERG <wl@gnu.org>
8853 Added `.ns' number register: Returns 1 in no-space mode (if in
8854 top-level diversion), 0 otherwise.
8856 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8857 (init_div_requests): Updated.
8858 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8861 2001-05-04 Werner LEMBERG <wl@gnu.org>
8863 * src/roff/nroff/nroff.man: Improved documentation (especially
8866 2001-05-02 Werner LEMBERG <wl@gnu.org>
8868 Added `brp' request: This is \p as a request.
8870 * src/roff/troff/env.cc (environment::do_break): Add parameter
8872 (do_break_request): New function (was `break_request').
8873 (break_request): Calls `do_break_request'.
8874 (break_spread_request): New; calls `do_break_request'.
8875 (init_env_requests): Updated.
8876 * src/roff/troff/env.h: Updated.
8877 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8879 * REVISION: Increased to 1.
8880 * win32-diffs: Updated.
8882 2001-05-01 Werner LEMBERG <wl@gnu.org>
8884 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8885 * tmac/troffrc-end: Make it really work in compatibility mode.
8887 2001-04-27 Werner LEMBERG <wl@gnu.org>
8889 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8892 2001-04-22 Werner LEMBERG <wl@gnu.org>
8894 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8895 latest versions from glibc CVS archive.
8897 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8898 <c.zeelenberg@hccnet.nl>.
8900 2001-04-21 Werner LEMBERG <wl@gnu.org>
8902 * configure.in: Move check for mkstemp() to...
8903 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8904 * configure: Regenerated.
8906 * src/include/groff-getopt.h: Don't use variable names in
8909 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8910 * src/devices/grohtml/Makefile.sub,
8911 src/devices/grohtml/post-html.cc: Updated.
8913 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8915 * configure.in: Add special check for mkstemp().
8916 * src/libs/libgroff/tmpfile.cc: Use it.
8917 * src/utils/indxbib/indxbib.cc: Ditto.
8918 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8919 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8922 2001-04-20 Bruce Lilly <blilly@erols.com>
8924 `Version_string' as C++ object was not visible to linker from C
8926 Add `const' to `Version_string'.
8928 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8929 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8930 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8931 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8932 (scanArguments), src/preproc/refer/refer.cc (main),
8933 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8934 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8935 (main), src/devices/grohtml/post-html.cc (main),
8936 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8937 (main), src/utils/hpftodit/hpftodit.cc (main),
8938 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8939 (main), src/utils/lkbib/lkbib.cc (main),
8940 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8942 * src/roff/groff/pipeline.c: Add _UWIN.
8943 * src/include/nonposix.h: Ditto.
8945 2001-04-20 Werner LEMBERG <wl@gnu.org>
8947 * src/include/lib.h: Use HAVE_STRERROR.
8948 * src/roff/groff/pipeline.c: Ditto.
8949 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8950 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8951 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8952 * win32-diffs: Updated.
8953 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8955 2001-04-19 Werner LEMBERG <wl@gnu.org>
8957 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8958 instead of hardwired `"troff"'.
8959 (char_buffer::read_file): Remove unused variables.
8960 (char_buffer::write_file_troff): Ditto.
8961 (char_buffer::write_file_html): Ditto.
8962 (generateImages): Ditto.
8964 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8966 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8968 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8969 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8970 index_search_item::search1): Ditto.
8971 * src/roff/troff/node.h (width_list): Reorder members.
8972 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8973 (lookup_warning): Ditto.
8974 (prepend_string): Commented out.
8975 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8976 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8977 * src/preproc/tbl/main.cc (process_format): Ditto.
8978 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8980 * src/preproc/pic/pic.cc: Updated.
8981 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8982 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8983 * src/preproc/refer/command.cc (execute_command): Ditto.
8984 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8985 * src/preproc/refer/token.cc (lookup_token): Ditto.
8986 * src/preproc/soelim/soelim.cc: Ditto.
8987 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8988 (isHexDigit): Commented out.
8989 (pushBackBuffer::isString): Remove unused variable.
8990 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8992 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8993 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8995 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8996 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8997 lookup_paper_size): Ditto.
8998 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8999 (text_glob, element_list): Reorder members.
9000 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9002 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9003 return value to `void'.
9004 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9006 * src/devices/grohtml/html.h (simple_output::check_newline,
9007 simple_output::space_or_newline, simple_output::enable_newlines):
9009 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9011 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9012 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9013 output_ligatures, output_charset, read_map): Ditto.
9014 * src/utils/lookbib/lookbib.cc (main): Ditto.
9015 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9016 (do_file): Fix typo (`=' -> `==').
9017 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9018 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9020 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
9022 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9023 Fix usage of GROFF_BIN_PATH.
9024 * src/roff/nroff/nroff.man: Updated.
9026 2001-04-18 Werner LEMBERG <wl@gnu.org>
9028 * NEWS: Fixing typos.
9031 Version 1.17 released
9032 =====================
9034 2001-04-17 Werner LEMBERG <wl@gnu.org>
9036 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9037 directory, not in $(srcdir).
9039 2001-04-16 Werner LEMBERG <wl@gnu.org>
9041 * doc/groff.texinfo: More info on conditionals.
9043 2001-04-15 Werner LEMBERG <wl@gnu.org>
9045 * doc/groff.texinfo: Added some info about groff internals.
9047 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9048 about missing special character only if the name is non-null.
9050 2001-04-14 Werner LEMBERG <wl@gnu.org>
9052 Removing the grohtml-old device driver which is now obsolete.
9054 * src/devices/grohtml-old/*: Removed.
9055 * font/devhtml-old/*: Removed.
9056 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9058 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9059 * test-groff (PATH): Updated.
9060 * tmac/Makefile.sub (NORMALFILES): Updated.
9061 * tmac/an-old.tmac: Remove special code for html-old device.
9062 Replace `html-or-html-old' register with `an-html'.
9063 * tmac/eqnrc: Updated.
9064 * tmac/html-old.tmac: Removed.
9065 * tmac/troffrc, tmac/troffrc-end: Updated.
9066 * tmac/www.tmac: Remove special code for html-old device.
9067 Replace `html-or-html-old' register with `www-html'.
9069 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9070 src/libs/libgroff/htmlindicate.cc (graphic_end),
9071 include/htmlindicate.h, src/preproc/grn/*.cc,
9072 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9073 single argument for consistency with rest of source code.
9075 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9077 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
9079 * src/roff/troff/troff.man: Fixing typos.
9081 2001-04-13 Werner LEMBERG <wl@gnu.org>
9083 * doc/pic.ms: Fixing many font switches.
9084 * doc/groff.texinfo: Fixes, additions.
9085 * MORE.STUFF: Updated.
9087 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
9089 * src/devices/grohtml/grohtml.man: Updated manual page regarding
9091 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9093 (removeTempFiles): New function to tidy up temporary files.
9094 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9095 Many fixes to do with the new inline suppress node and image regions
9097 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9098 (generate_img_src): New function.
9099 (html_printer::do_auto_image): Utilizes it.
9100 (do_heading, do_title): Include inline images within their contents.
9101 (html_printer::begin_page): Tidied up comments that are issued to
9102 the html output file.
9103 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9105 (text_glob::is_br): New method used by do_heading.
9106 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9107 equivalent diversion.
9108 * src/include/html-strings.h: Altered image tags to reflect the
9110 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9112 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9113 it is already inside a pic image. Only emit tags if the argument
9114 `-Tps:html' is present.
9115 * src/preproc/tbl/main.cc: Changes to reflect additional
9116 `html_end_suppress' parameter.
9117 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9118 emitted since the last eol tag was written.
9119 * src/roff/troff/env.h: New boolean `emitted_node'.
9120 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9121 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9122 * src/roff/troff/node.cc (check_charinfo): New method.
9123 (troff_output_file::determine_line_limits): Alterations to limit
9125 * tmac/www.tmac: Changes to reflect new suppress nodes.
9127 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9129 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9130 Escape the html_glyph in the buffer.
9131 (str_translate_to_html): Output the unescaped escaped_char.
9132 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9133 `frame=void', not `frame=none'. Add `border=0'.
9135 2001-04-12 Werner LEMBERG <wl@gnu.org>
9137 * PROBLEMS: Add some words on how to avoid wrapper macros.
9139 2001-04-11 Blake McBride <blake@florida-software.com>
9141 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9143 2001-04-11 Werner LEMBERG <wl@gnu.org>
9145 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9146 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9147 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9148 * Makefile.sub (DISTCLEANFILES): Here.
9150 * libs/libgroff/new.cc: Include `nonposix.h'.
9151 * win32-diffs: Updated.
9153 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9155 Added skeleton macro for defunct macros.
9157 Updated documentation.
9159 When inside displays, an empty input line warning should be
9160 suppressed. If another macro call is put inside a display,
9161 all subsequent empty lines found in that display caused a
9162 warning to be emitted.
9164 * tmac/doc.tmac (doc-defunct-macro): New macro.
9165 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9166 (doc-restore-global-vars): Fixed typo.
9167 (doc-empty-line): Check the `doc-display-depth' register to
9168 determine whether we are inside display or not.
9170 * tmac/doc-common: Removed `Or' and `Sf' registers.
9171 Moved obsolete `Ds' macro to doc.tmac.
9173 * tmac/groff_mdoc.man: Bump document date.
9174 Document `.Vt' under ``Variable Types''.
9175 Removed documentation for obsolete `.Or' macro.
9177 2001-04-10 Werner LEMBERG <wl@gnu.org>
9180 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9182 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9184 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9185 (usage): Add stream argument. Don't exit.
9186 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9187 Write --version output to stdout, not stderr.
9188 (usage): Add stream argument. Don't exit.
9189 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9190 (usage): Add stream argument. Don't exit.
9191 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9193 (usage): Add stream argument. Don't exit.
9194 (main): Write --help output to stdout, not stderr.
9195 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9196 (usage): Add stream argument. Don't exit.
9197 * src/devices/grops/ps.cc (main): Accept --help and --version.
9198 (usage): Add stream argument. Don't exit.
9199 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9200 (usage): Add stream argument. Don't exit.
9201 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9202 (main): Accept --help and --version.
9203 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9204 (main): Accept --help and --version.
9205 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9206 (scanArguments): Accept --help and --version.
9207 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9208 (main): Accept --help and --version.
9209 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9210 (usage): Add stream argument. Don't exit.
9211 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9213 (main): Accept --help and --version.
9214 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9215 (main): Accept --help and --version.
9216 * src/roff/groff/groff.cc (main): Accept --help and --version.
9217 (synopsis): Add stream argument.
9218 (help): Write --help output to stdout, not stderr.
9219 (usage): Add stream argument. Don't exit.
9220 * src/roff/grog/grog.pl: Accept --help and --version.
9222 * src/roff/grog/grog.sh: Accept --help and --version.
9223 * src/roff/nroff/nroff.sh: Accept --help and --version.
9224 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9225 (usage): Add stream argument. Don't exit.
9226 (main): Accept --help and --version.
9227 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9228 (usage): New function with stream argument, doesn't exit.
9229 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9230 (usage): New function with stream argument, doesn't exit.
9231 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9232 (usage): Add stream argument. Don't exit.
9233 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9234 (main): Accept --help and --version.
9235 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9237 (main): Accept --help and --version.
9238 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9239 (main): Accept --help and --version.
9240 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9241 (usage): Add stream argument. Don't exit.
9243 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9245 Fix indentation in SYNOPSIS.
9247 Updated to include changes of latest BSD mdoc version (basically,
9248 the only change is that `.Fn' and `.Fc' put a final semicolon after
9249 a function declaration in the SYNOPSIS section).
9251 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9252 (doc-in-synopsis-section): New variable. Updated all related
9254 (doc-indent-synopsis-active): New register.
9255 (Nd, Fn, Fo): Use it.
9256 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9257 `.Cd' with long argument line produces indented wrapped lines.
9258 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9259 undesirable line break to be output.
9260 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9262 (Fn, Fc): Add final `;' to output.
9263 (doc-save-global-vars, doc-restore-global-vars): Updated.
9264 * tmac/doc-common: Remove `Ex' register.
9266 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9269 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9271 * tmac/doc.tmac (Cd): Simplify code.
9272 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9274 2001-04-06 Werner LEMBERG <wl@gnu.org>
9276 Implement continuous underlining for nroff mode. To do that, a new
9277 request in the ditroff language has been added: `x u N' (N is 0
9280 \X and \Y are now transparent to end-of-sentence recognition.
9282 * src/include/printer.h (printer): Add `type' parameter to `special'
9284 * src/libs/libdriver/printer.cc (printer::special): Updated.
9285 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9287 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9288 specials of type `p'.
9289 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9290 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9291 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9292 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9293 (glyph::order): New method.
9294 (tty_printer::add_char): Use it.
9295 (tty_printer::special): New method.
9296 (tty_printer::end_page): Implement it.
9298 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9299 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9300 to set `no_init_string'.
9301 (special_node::tprint_start): Use it.
9302 (special_node::same, special_node::copy): Updated.
9303 (special_node::ends_sentence): New method.
9304 (troff_output_file::start_special): Add parameter to include
9305 inititialization of special conditionally.
9307 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9308 * src/roff/troff/env.cc (do_underline_special): New function.
9309 (environment::set_font): Use it.
9310 (do_underline): Use it. This was `underline()'.
9311 (underline): Call `do_underline()'.
9312 (continuous_underline): New function which calls `do_underline()'.
9313 (environment::newline): Use `do_underline_special()'.
9314 (init_env_requests): Updated.
9316 * NEWS, man/troff_out.man: Updated.
9318 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9320 * font/devutf8/R.proto: Fix code of 'shc'.
9322 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9324 Many fixes. Diag lists can now be nested also; additionally,
9325 `-compact' and `-offset' are supported.
9327 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9328 (doc-list-have-indent-stackXXX): A new register stack.
9329 (doc-have-diag-list): Removed.
9330 (Bl): Use `doc-list-have-indent-stackXXX'.
9332 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9333 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9334 (doc-set-vertical-and-indent): Ditto.
9335 (doc-next-list-depth): Removed.
9336 (doc-increment-list-stack): Updated.
9337 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9338 `doc-next-list-depth'.
9339 (doc-end-list, doc-end-column-list): Don't use
9340 `doc-increment-list-stack'.
9341 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9342 (doc-save-global-vars, doc-restore-global-vars): Updated.
9343 * tmac/doc-common: Updated.
9344 * tmac/groff_mdoc.man: Updated.
9347 2001-04-02 Werner LEMBERG <wl@gnu.org>
9349 * src/devices/grotty/grotty.man: Fix grammatical error.
9351 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9353 Remove .Ld from mdoc package; replace it with special handling of
9356 * tmac/doc-common: Remove `Ld' register.
9357 Uncomment `doc-volume-ds-*' strings.
9358 Remove `doc-operating-system-default'.
9360 * tmac/doc-syms (Ld): Removed.
9361 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9365 * tmac/groff_mdoc.man: Many fixes and updates.
9367 2001-03-29 Werner LEMBERG <wl@gnu.org>
9369 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9370 Bond <tkb@tkb.mpl.com>.
9371 * tmac/www.tmac: Save compatibility mode.
9373 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9375 * tmac/groff_mdoc.man: Many fixes.
9377 2001-03-28 Werner LEMBERG <wl@gnu.org>
9379 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9382 2001-03-27 Werner LEMBERG <wl@gnu.org>
9384 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9385 diversion. This fixes overlong tags.
9387 2001-03-26 Werner LEMBERG <wl@gnu.org>
9389 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9390 * tmac/doc-syms: Fix error messages.
9391 * tmac/an-old.tmac: Remove incorrect double backslashes.
9393 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9395 * tmac/Makefile.sub: Strip mdoc.local also
9396 * tmac/strip.sed: Fixed.
9398 2001-03-24 Werner LEMBERG <wl@gnu.org>
9400 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9401 selecting the font size.
9402 * tmac/groff_mdoc.man, NEWS: Document it.
9404 2001-03-23 Werner LEMBERG <wl@gnu.org>
9406 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9408 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9409 argument to restore previous font family.
9410 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9412 * doc/groff.texinfo: More fixes and additions (mainly for font
9413 manipulating commands).
9415 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9416 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9417 * tmac/Makefile.sub, NEWS: Updated.
9419 2001-03-23 Werner LEMBERG <wl@gnu.org>
9421 Replaced mdoc implementation. The new version is `state of the
9422 art', using almost all new features of groff 1.17 -- it won't run
9423 with older versions.
9425 * tmac/doc.tmac: Completely rewritten.
9426 * tmac/doc-common: Ditto.
9427 * tmac/doc-nroff: Ditto.
9428 * tmac/doc-ditroff: Ditto.
9429 * tmac/doc-syms: Ditto.
9430 * tmac/mdoc.local: New file.
9431 * tmac/groff_mdoc.samples.man: Replaced with ...
9432 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9433 * tmac/strip.sed: Updated.
9434 * tmac/Makefile.sub: Updated.
9437 * tmac/groff_man.man: Add `man.local' to the FILES section.
9439 2001-03-22 Werner LEMBERG <wl@gnu.org>
9441 * doc/groff.texinfo: Added many @noindent.
9442 Replaced @end_Example -> @endExample.
9443 Added info whether registers are r/o.
9444 Many other additions and fixes.
9446 2001-03-21 Werner LEMBERG <wl@gnu.org>
9448 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9449 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9450 Improved @Def* macros: Now the exact syntax of request, register,
9451 and escapes is shown.
9452 Added macros for parentheses and brackets to be used in @Def*.
9453 Many fixes and improvements of the documentation.
9455 2001-03-20 Werner LEMBERG <wl@gnu.org>
9457 * doc/groff.texinfo: Added new index: `st' (for strings).
9458 Added macros @Defstr(x).
9459 Added macro @Example (adding @group).
9460 Other minor improvements.
9462 2001-03-19 Werner LEMBERG <wl@gnu.org>
9464 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9465 `rq' for requests. `fn' is no longer used.
9466 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9469 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9470 number with name of man page.
9472 2001-03-19 Larry Kollar <kollar@alltel.net>
9474 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9477 2001-03-19 Werner LEMBERG <wl@gnu.org>
9479 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9480 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9481 * src/devices/grohtml/grohtml.man: Fixing typos.
9483 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9485 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9486 * tmac/groff_mwww.man: Remove .LINE macro
9487 * tmac/www.tmac (LINE): Add `.ti'.
9489 * src/devices/grohtml/post-html.cc (html_printer): New member
9491 (html_printer::emit_raw): Use it.
9492 (html_printer::do_linelength): Ditto.
9493 (html_printer::do_pageoffset): Ditto.
9494 (html_printer::do_indentation): Ditto.
9495 (html_printer::do_tempindent): Ditto.
9496 (html_printer::do_break): Ditto.
9497 (html_printer::begin_page): Ditto.
9498 (html_printer::do_indentedparagraph): New function.
9499 (html_printer::troff_tag): Handle `.ip'.
9500 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9501 Add `<td width=...>' handling.
9502 (html_text::do_table): Add parameter.
9503 (html_text::do_indent): Updated.
9504 * src/devices/groohtml/html-text.h: Updated.
9506 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9508 Introduced simple html tables to implement indentation.
9510 * src/devices/grohtml/html.h (word, word_list): New structures.
9511 (simple_output): Use it.
9512 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9513 (html_printer): Improve indentation handling.
9514 (html_printer::emit_raw): Set `in_table' element. Handle
9516 (html_printer::write_header): Move conditional downwards.
9517 Don't allow whitespace in tags.
9518 (html_printer::do_linelength): Handle line length and indentation
9520 (html_printer::do_pageoffset): Handle indentation conditionally.
9521 (html_printer::do_indentation): Ditto.
9522 (html_printer::do_tempindent): New function member.
9523 (html_printer::do_fill): Take care of indentation.
9524 (html_printer::do_flush): Finish table.
9525 (html_printer::do_links): Ditto.
9526 (html_printer::do_break): New function for handling `.br' and `.ti'.
9527 (html_printer::troff_tag): Use it.
9529 (html_printer::flush_globs): Fix.
9530 (html_printer::flush_page): Finish table.
9531 (html_printer::html_printer): Fix error message. Set up
9533 (html_printer::add_to_sbuf): Remove special handling of character
9535 (to_unicode): Remove `stop()'.
9536 (html_printer::write_title): Cleanup.
9537 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9538 (html_printer::~html_printer): Flush text and end the line.
9540 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9541 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9543 (html_text::start_tag): Disable newlines.
9544 (html_text::table_is_void): New function.
9545 (html_text::issue_table_begin): Ditto.
9546 (html_text::issue_table_end): Ditto.
9547 (html_text::push_para): Better table handling.
9548 (html_text::do_indent): New function.
9549 (html_text::do_table): Ditto.
9550 (html_text::done_table): Ditto.
9551 (html_text::do_tt): Handle PRE_TAG.
9552 (html_text::is_in_table): New function.
9553 (html_text::check_emit_text): Handle tables.
9554 (html_text::do_emittext): Use `nl()'.
9555 (html_text::do_para): Handle table.
9556 (html_text::remove_def): New function.
9557 * src/devices/grohtml/output.cc (word, word_list): Implement
9559 (simple_output::end_line): Flush last word.
9560 (simple_output::simple_comment): Ditto.
9561 (simple_output::begin_comment): Recoded.
9562 (simple_output::end_comment): Ditto.
9563 (simple_output::comment_arg): Removed.
9564 (simple_output::check_newline): Improve test and flush last word.
9565 (simple_output::space_or_newline): Improved.
9566 (simple_output::write_newline): Replaced with...
9567 (simple_output::nl): This.
9568 (simple_output::put_raw_char): Flush last word.
9569 (simple_output::check_space): Removed.
9570 (simple_output::put_translated_string): Ditto.
9571 (simple_output::put_string): Simplified.
9572 (simple_output::put_number): Updated.
9573 (simple_output::put_float): Ditto.
9574 (simple_output::put_symbol): Removed.
9575 (simple_output::enable_newlines): Add `check_newline()'.
9576 (simple_output::flush_last_word): New function.
9578 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9579 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9581 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9582 * tmac/an-old.tmac (TP): Ditto.
9584 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9586 * mdate.sh: Make it POSIX compliant.
9588 2001-03-09 Werner LEMBERG <wl@gnu.org>
9590 Added the `return' request to end a macro immediately. It simply
9591 pops iterators from the input stack until a macro iterator is found.
9593 * src/roff/troff/input.cc (input_iterator::is_macro,
9594 macro_iterator::is_macro): New member.
9595 (input_return_boundary): New class to signal an immediate return
9597 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9599 (input_stack::clear): Use it.
9600 (input_stack::pop_macro): New function.
9601 (while_request): Use `is_return_boundary()'.
9602 (return_macro_request): New function.
9603 (init_input_requests): Use it.
9605 * src/roff/troff/TODO: Updated.
9606 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9608 2001-03-08 Werner LEMBERG <wl@gnu.org>
9610 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9613 2001-03-07 Werner LEMBERG <wl@gnu.org>
9615 Make `\B' more rigid.
9617 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9619 (get_number_rigidly): New function.
9620 * src/roff/troff/input.cc (do_expr_test): Use it.
9621 * src/roff/troff/token.h: Updated.
9623 * src/roff/troff/request.h: Fix typo (init_html_request ->
9624 init_markup_request).
9626 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9628 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9629 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9630 are now `.begin', `.end', `.image'.
9632 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9633 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9634 Use add_char_to_sbuf().
9635 (to_unicode): New function.
9636 (char_translate_to_html): Changing type of `ch' parameter.
9638 (html_printer::~html_printer): Comment out doctype string.
9639 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9640 instead of `.html-end'.
9641 (write_start_image): Use `.begin' and `.image' instead of
9642 `.html-begin' and `.html-image'.
9643 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9644 (html_begin): Renamed to ...
9646 (html_end): Renamed to ...
9648 (html_image): Renamed to ...
9650 (init_html_requests): Renamed to ...
9651 (init_markup_requests): This.
9652 * tmac/www.tmac: Updated.
9654 2001-02-28 Bram <bram@avontuur.org>
9656 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9659 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9661 * doc/meref.me: Fixing some typos.
9663 2001-02-16 Werner LEMBERG <wl@gnu.org>
9665 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9666 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9667 * src/roff/troff/node.h: Updated.
9669 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9671 * tmac/groff_tmac.man: Fix typo.
9673 2001-02-16 Werner LEMBERG <wl@gnu.org>
9675 Fixing a bug which prevented proper end-of-sentence recognition
9676 between an `unformatted' box and the following text. As a
9677 consequence, vertical line distances are no longer preserved in
9678 boxes after a call to `.unformat' -- because boxes aren't
9679 line-oriented (contrary to diversions), this doesn't make sense
9682 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9684 (vertical_size_node::set_unformat_flag): New method.
9685 * src/roff/troff/node.hh: Updated.
9686 * src/roff/troff/input.cc (word_space_node::reread,
9687 hmotion_node::reread): Reset `unformat' flag after usage.
9688 (unformat_macro): Append only if `set_unformat_flag()' returns
9690 * src/roff/troff/troff.man: Updated.
9692 2001-02-15 Werner LEMBERG <wl@gnu.org>
9694 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9695 documentation of `asciify' and `unformat' requests.
9697 2001-02-13 Werner LEMBERG <wl@gnu.org>
9699 Redesigned the `unformat' request. It is no longer connected with
9700 `asciify' but rather uses new `reread()' methods if the `unformat'
9701 flag is set. Additionally, the handling of space characters after
9702 unformatting has been fixed so that they retain their width.
9704 * src/roff/troff/node.h (width_list): New structure to store
9705 original widths of spaces.
9706 (node): Added `unformat' member.
9707 Replaced `num_spaces' variable with `orig_width' list.
9708 * src/roff/troff/node.cc (*node::asciify,
9709 asciify_reverse_node_list): Removed `unformat_only' flag and related
9711 (word_space_node::asciify, word_space_node::word_space_node): Use
9713 (word_space_node::~word_space_node): New destructor.
9714 (word_space_node::copy): Updated to handle `orig_width'.
9715 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9716 (*node::merge_space): Update `orig_width' list if necessary.
9717 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9718 * src/roff/troff/enc.cc (environment::space_newline): Use
9720 (environment::space): Added method to handle space width and
9721 sentence space width as parameters. Use `width_list'.
9722 (environment::make_tab_node): Updated.
9723 * src/roff/troff/env.h: Updated.
9724 * src/roff/troff/input.cc (word_space_node::reread,
9725 unbreakable_space_node::reread, hmotion_node::reread): New methods
9726 to handle nodes specially if `unformat' flag is set.
9727 (do_asciify_macro): Renamed back to ...
9728 (asciify_macro): This.
9729 (unformat_macro): New implementation to simply set the `unformat'
9732 * MORE.STUFF: Added more info about deroff.
9734 2001-02-08 Werner LEMBERG <wl@gnu.org>
9736 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9737 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9738 and `add_self()' methods to avoid hyphenation. For example, the
9739 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9740 soft hyphen after `foo'. Now the hyphen list is correctly
9741 `foo<ignore><ignore>bar'.
9743 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9745 * tmac/groff_tmac.man: Fix `BIR' macro.
9747 2001-02-04 Werner LEMBERG <wl@gnu.org>
9749 A new escape sequence `\:', inserting a zero-width break point.
9751 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9752 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9754 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9756 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9757 and `asciify()' methods.
9758 * src/roff/troff/node.cc (space_node::space_node): Updated.
9759 (space_node::asciify): Handle `was_escape_colon'.
9760 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9762 Handle `\~' similar to other comparable requests.
9764 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9766 (token::next): Move creation of an unbreakable_space_node to...
9767 (token::add_to_node_list): Here.
9769 Fix a bug which sometimes prevented hyphenation of words connected
9770 with `\~' or `\ ' (and other escape sequences handled as
9771 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9772 (after a call to the `unformat' request).
9774 * src/roff/troff/env.h (environment::possibly_break_line,
9775 environment::hyphenate_line): Introducing `start_here' parameter.
9776 * src/roff/troff/env.cc (environment::space_newline,
9777 environment::space): Use it.
9778 (environment::possibly_break_line, environment::hyphenate_line):
9780 * src/roff/troff/input.cc (process_input_stack): Use it.
9781 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9782 space_char_hmotion_node, overstrike_node): Add
9783 `get_hyphenation_type()' method.
9784 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9785 if `unformat_only' is active.
9787 2001-01-30 Werner LEMBERG <wl@gnu.org>
9789 Implemented new read-only number register `.linetabs' which
9790 returns 1 if in line-tabs mode, 0 otherwise.
9792 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9793 * src/roff/troff/env.cc (get_line_tabs): New function.
9794 (init_env_requests): Use it.
9795 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9797 * VERSION, REVISION: Changing to 1.17.0.
9799 2001-01-28 Werner LEMBERG <wl@gnu.org>
9801 Fixed a bug which prevented hyphenation of words which are finished
9804 * src/roff/troff/token.h (token): Add enum type
9805 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9806 * src/roff/troff/input.cc (token::next, token::description,
9807 get_line_arg, token::add_to_node_list, token::process): Use it.
9809 2001-01-27 Werner LEMBERG <wl@gnu.org>
9811 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9812 * src/roff/troff/div.cc (do_divert): Use it.
9814 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9816 2001-01-25 Werner LEMBERG <wl@gnu.org>
9818 Adding the `linetabs' request. If set, tab distances are not
9819 computed relative to the input line but relative to the output line.
9821 * src/roff/troff/env.h (environment): New member `line_tabs'.
9822 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9823 (environment::environment, environment::copy): Updated.
9824 (environment::distance_to_next_tab): Use `line_tabs'.
9825 (init_env_requests): Register request.
9826 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9829 2001-01-24 Werner LEMBERG <wl@gnu.org>
9831 Introducing a new read-only register `.int' which is set to a
9832 positive value if the last output line is interrupted (i.e., if it
9835 * src/roff/troff/env.cc (init_env_requests): Add it.
9836 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9838 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9840 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9841 * src/preproc/html/pre-html.cc (findPrefix): New function which
9842 generates the troff executable name via the system prefix.
9843 * src/preproc/eqn/main.cc: Modified warning message.
9845 2001-01-23 Werner LEMBERG <wl@gnu.org>
9847 troff's `box' and `boxa' requests didn't preserve temporary
9850 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9851 `saved_target_text_length' members.
9852 * src/roff/troff/div.cc (do_divert): Use them.
9854 Tabs (but not yet leaders and fields) are now handled correctly by
9857 * node.h (hmotion_node): Add field `was_tab'.
9858 * env.cc (environment::make_tab_node): Set it.
9859 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9861 Added new request `unformat' which will, contrary to `asciify',
9862 preserve font information after unformatting (i.e., only nodes
9863 dealing with horizontal space are converted back to input
9866 * input.cc (asciify_macro): Renamed to ...
9867 (do_asciify_macro): this, having a new parameter `unformat_only'.
9868 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9869 (init_input_requests): Added `unformat'.
9870 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9871 parameter to control asciification process.
9872 * node.h (*_node::asciify): Ditto.
9873 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9875 2001-01-20 Werner LEMBERG <wl@gnu.org>
9877 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9879 2001-01-18 Werner LEMBERG <wl@gnu.org>
9881 * tmac/ps.tmac: Remove call of psold.tmac.
9882 * tmac/psold.tmac: Comment updated.
9883 * tmac/psnew.tmac: Removed since no longer needed.
9884 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9886 * font/devutf8/R.proto: Adding `shc' glyph.
9887 * font/devutf8/NOTES: Updated.
9889 * test-groff: Updated.
9891 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9893 First cut of the new html device driver. Changes to pre-html and
9894 the new grohtml are too numerous to be documented here.
9896 Stuff related to `html' has been renamed to `html-old' and `html2'
9897 stuff has been renamed to `html' (including directories). The new
9898 html device driver is therefore invoked as `-Thtml'.
9900 Added new `\O' escape to suppress output (needed by html driver).
9902 Added functions and code to pass info about input-level commands
9903 (`.in', `.fl', etc.) to html driver.
9905 Three new functions (.html-begin, .html-end, and .html-image) for
9906 better html handling: `html-begin' will execute the remaining line
9907 if at the outermost nesting level, increasing an internal counter.
9908 `html-end' does the same but decreases the internal counter.
9909 `html_image' puts its arguments into a special node (suppress_node)
9910 to define an image region.
9912 The `output' request has been removed.
9914 * tmac/html-tags.tmac: Removed.
9915 * tmac/arkup.tmac: Updated and renamed to ...
9916 * tmac/www.tmac: New file.
9917 * tmac/markup.tmac Updated and renamed to ...
9918 * tmac/mwww.tmac: New file.
9919 * tmac/Makefile.sub: Updated.
9920 * tmac/an-old.tmac: Updated.
9921 * tmac/eqnrc: Updated.
9922 * tmac/groff_man.man
9923 * tmac/groff_markup.man: Updated and renamed to ...
9924 * tmac/groff_mwww.man: New file.
9925 * tmac/groff_tmac.man: Updated.
9926 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9927 * tmac/html.tmac: Updated and renamed from html2.tmac.
9928 * tmac/pspic.tmac: Updated html support.
9929 * tmac/s.tmac: Added html output support.
9930 * tmac/troffrc, tmac/troffrc-end: Updated.
9932 * Makefile.in, doc/Makefile: Updated.
9933 * doc/groff.texinfo: Added info about new `\O' escape.
9934 * doc/homepage.ms: Use `MAILTO' macro.
9936 * font/devhtml/DESC.proto: Add `C' font.
9937 * font/devhtml/Makefile.sub: Updated.
9938 * font/devhtml/R.proto: Minor fixes.
9939 * font/devhtml-old/Makefile.sub: Updated.
9941 * src/devices/grohtml-old/Makefile.sub: Updated.
9943 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9945 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9946 graphic_start): Add `inline' parameter. Update.
9947 (html_end_suppress, graphic_end): Update.
9949 * src/include/html-strings.h: New file.
9950 * src/include/htmlindicate.h: Comments updated.
9951 * src/include/printer.h: Updated.
9953 * src/preproc/eqn/main.cc (do_file, main): Updated.
9954 * src/preproc/pic/troff.cc (troff_output::start_picture,
9955 troff_output::finish_picture): Updated.
9956 * src/preproc/tbl/main.cc (process_input_file): Updated.
9958 * src/roff/groff/groff.cc (main): Updated.
9959 Pass device arguments to predrivers also.
9960 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9961 * src/roff/troff/env.h (environment): Updated.
9962 New elements `need_eol' and `ignore_next_eol' (for html output).
9963 * src/roff/troff/env.cc (environment::environment): Add initializers
9964 for `need_eol' and `ignore_next_eol'.
9965 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9967 (point_size, fill, no_fill, center, right_justify, line_length,
9968 indent, temporary_indent, break_request, handle_tab): Use
9970 (set_tabs): Use `add_html_tag_tabs()'.
9971 (environment::add_html_tag): Updated.
9972 (environment::do_break): Updated.
9973 * src/roff/troff/div.cc (space_request, flush_output): Use
9974 `environment::add_html_tag()'.
9975 * src/roff/troff/input.cc: Updated.
9976 New variable `html_level' to indicate nested `html-begin' requests.
9977 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9978 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9979 `force_tprint()' method.
9980 (token::next): Handle `\O'.
9981 (do_suppress): Implement it.
9982 (html_begin, html_end, html_image): New functions.
9983 (init_output_requests): Renamed to ...
9984 (init_html_requests): this.
9986 (macro::append_str, macro::append_unsigned, macro::append_int): New
9988 New variable `output_low_mark_miny' to limit minimal value of y.
9989 (reset_output_registers): Use it.
9990 (output_request): Removed.
9991 (get_output_registers): New function.
9992 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9993 (*_node): Added `force_tprint()' if necessary.
9994 (special_node): New elements `tf' and `get_tfont()'.
9995 (suppress_node): New class.
9996 * src/roff/troff/node.cc:
9997 New global variables `image_no' and `suppress_start_page'.
9998 (real_output_file): New method `is_on()'.
9999 (troff_output_file): New method `start_special(tfont)'.
10000 (troff_output_file::really_print_line): Use `tprint' conditionally.
10001 (real_output_file::print_line): Updated.
10002 (real_output_file::on): Updated.
10003 (*_node): Added `force_tprint()'.
10004 (special_node::special_node): Initializer updated.
10005 (special_node::same, special_node::copy, special_node::tprint_start):
10007 (get_reg_int, get_reg_str): New functions.
10008 (suppress_node::*): New methods.
10009 New global variables last_position, last_image_filename;
10010 (min): New inline function.
10011 * src/roff/troff/reg.h, src/roff/troff/request.h,
10012 src/roff/troff/troff.h: Updated.
10014 2001-01-13 Werner LEMBERG <wl@gnu.org>
10016 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10017 documentation of `asciify' request.
10019 2001-01-12 Werner LEMBERG <wl@gnu.org>
10021 * src/roff/troff/input.cc: Move definition of special characters
10022 like `ESCAPE_TILDE' to ...
10023 * src/roff/troff/input.h: New file.
10024 * src/roff/troff/Makefile.sub (HDRS): Add it.
10026 Extending the .asciify request to `unformat' space characters also.
10028 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10029 to count input space characters.
10030 Update constructors to take care of it.
10031 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10032 `ESCAPE_SPACE' instead of normal space.
10033 (word_space_node::asciify): New method.
10034 (unbreakable_space_node::asciify): New method.
10035 (word_space_node::merge_space): New method.
10036 * src/roff/troff/env.cc (environment::space_newline,
10037 environment::space): Add code to initialize `num_spaces' (using the
10038 constructor of `word_space_node').
10039 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10042 2001-01-09 Werner LEMBERG <wl@gnu.org>
10044 * man/groff_char.man: Use table header traps only conditionally.
10046 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
10048 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10050 2001-01-08 Werner LEMBERG <wl@gnu.org>
10052 Introducing the `box' and `boxa' requests which are similar to
10053 `di' resp. `da' but omitting a partially filled line (which is
10054 restored after ending the diversion).
10056 * src/roff/troff/div.h (diversion): Add elements to save partially
10058 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10059 partially filled line.
10060 (divert, divert_append): Updated.
10061 (box, box_append): New functions.
10062 (init_div_requests): Use them.
10063 * src/roff/troff/env.h (environment): do_divert() is now a friend.
10064 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10066 * doc/groff.texinfo: Fix documentation of `lf' request.
10068 2000-12-25 Werner LEMBERG <wl@gnu.org>
10070 * src/roff/troff/troff.man, NEWS: Document `writem' request.
10072 2000-12-21 Werner LEMBERG <wl@gnu.org>
10074 Ignore `ss' request if in compatibility mode.
10076 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10077 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10078 * src/roff/troff/env.cc (space_size): Use it.
10080 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10081 `ss' request in nroff mode.
10083 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10086 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
10088 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10090 2000-12-13 Werner LEMBERG <wl@gnu.org>
10092 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10093 * src/preproc/eqn/neqn.man: Small fixes and additions.
10095 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
10097 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10100 * src/preproc/eqn/neqn.man: New file.
10102 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10105 * tmac/e.tmac: Add `T&' macro.
10106 Fix `indent cannot be negative' warning.
10107 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10109 2000-12-07 Werner LEMBERG <wl@gnu.org>
10111 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10113 2000-12-06 Werner LEMBERG <wl@gnu.org>
10115 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10118 * MORE.STUFF: Added info about deroff for djgpp.
10120 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10121 documentation of -rcR switch.
10123 2000-12-03 Werner LEMBERG <wl@gnu.org>
10125 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10126 if -rcR=1 (which is now the default in nroff mode), a single, very
10127 long page is created instead of multiple pages: All `ne' and `wh'
10128 requests are put into conditionals; a new macro `an-end' is added to
10129 be called with `em'.
10131 Some other minor cleanups.
10133 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10135 2000-12-02 Werner LEMBERG <wl@gnu.org>
10137 Fixing a bug which prevented hyphenation in words followed
10138 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10140 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10141 Adding possibly_break_line().
10142 * src/roff/troff/env.h (environment): Make possibly_break_line()
10145 Make `\~' usable in .tr request.
10147 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10148 (token): Add stretchable_space().
10149 * src/roff/troff/input.cc (token::next, token::delimiter,
10150 token::description, process_input_stack, do_translate,
10151 add_to_node_list, token::process): Use it.
10152 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10153 for adjusting the space.
10154 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10155 for stretchable space.
10156 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10157 (make_node): Add code for stretchable space.
10158 * src/roff/troff/env.cc (environment::add_char): Use it.
10159 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10160 (get_copy, token::next, transparent_translate, asciify): Use it.
10162 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10163 doc/groff.texinfo: Updated.
10164 * man/groff.man: Small reorderings.
10166 2000-11-23 Werner LEMBERG <wl@gnu.org>
10169 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10171 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10172 `safer_macro_path' to -M option.
10173 * src/roff/troff/troff.man: Fixes.
10175 2000-11-22 Werner LEMBERG <wl@gnu.org>
10177 Use safer path (except for config files) if -U isn't specified. Add
10178 a special macro path (without home and current directory) for config
10179 files. Add home directory to unsafe path for consistency. Don't
10180 include the home directory in the font path.
10182 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10184 * src/include/macropath.h: Add `config_macrp_path'.
10185 * src/libs/libgroff/fontfile.cc: Fix font path.
10186 * src/roff/troff/input.cc (process_startup_file): Use
10187 `config_macro_path'.
10188 (main): Select unsafe path if -U is given.
10190 * src/preproc/eqn/main.cc (main): Fixing search path for
10191 configuration file.
10192 * src/preproc/eqn/eqn.man: Updated.
10194 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10197 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10198 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10199 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10200 src/devices/grotty/grotty.man: Updated.
10202 * Makefile.in: Fix comments.
10204 2000-11-17 Werner LEMBERG <wl@gnu.org>
10206 * tmac/safer.tmac: Empty file added (again) for compatibility
10208 * tmac/Makefile.sub: Updated.
10210 2000-11-16 Werner LEMBERG <wl@gnu.org>
10212 * src/devices/grodvi/dvi.cc (main),
10213 src/devices/grohtml2/post-html.cc (main),
10214 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10215 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10216 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10217 (main), src/preproc/html2/pre-html.cc (main),
10218 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10219 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10220 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10221 (main), src/utils/hpftodit/hpftodit.cc (main),
10222 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10223 (main), src/utils/lookbib/lookbib.cc (main),
10224 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10225 (main): Use stdout for -v.
10226 * src/roff/groff/groff.cc (run_commands),
10227 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10228 to make direct printing to stdout possible.
10229 * src/roff/groff/pipeline.h: Updated.
10231 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10232 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10233 * src/utils/afmtodit/afmtodit.man: Updated.
10235 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10236 (version): New function.
10238 * src/utils/addftinfo/addftinfo.man: Updated.
10240 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10241 Fixing copyright dates.
10243 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10246 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10249 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10251 2000-11-15 Werner LEMBERG <wl@gnu.org>
10253 In all programs, make -v return immediately with exit status 0 to
10254 be compliant with the GNU standard.
10256 * src/devices/grodvi/dvi.cc (main),
10257 src/devices/grohtml2/post-html.cc (main),
10258 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10259 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10260 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10261 (main), src/preproc/html2/pre-html.cc (main),
10262 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10263 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10264 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10265 (main): Implement it.
10268 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10269 and postprocessors to the -v option.
10271 * src/roff/grog/grog.pl: Implement -v.
10272 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10273 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10275 * src/roff/nroff/nroff.sh: Implement -v.
10276 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10277 * src/roff/nroff/nroff.man: Updated.
10279 * src/preproc/eqn/main.cc (main): Fix comment typo.
10281 * MORE.STUFF: Added info about djgpp port of grap.
10283 2000-11-14 Werner LEMBERG <wl@gnu.org>
10285 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10286 mode (or rather, implemented non-compatibility mode).
10287 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10289 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10290 replacing it -- we don't find gxditview otherwise.
10291 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10293 * src/preproc/pic/depend: Removed. Unnecessary.
10295 Implemented dummy keyword `solid' in pic for compatibility with
10298 * lex.cc (lookup_keyword): Added `solid'.
10299 * pic.y: Added SOLID with dummy rule.
10300 * pic.cc, pic_tab.h: Regenerated.
10301 * doc/pic.ms: Updated.
10303 2000-11-13 Werner LEMBERG <wl@gnu.org>
10305 For security reasons, don't use the current directory but the home
10306 directory while searching and scanning troffrc and troffrc-end.
10307 Similarly, replace the current directory with the home directory
10310 * Makefile.in (fontpath, tmacpath): Remove current directory.
10312 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10313 two parameters `add_home' and `add_current'.
10314 (search_path::~search_path, search_path::command_line_dir,
10315 search_path::open_file): Remove tests for `dirs' being zero.
10316 * src/include/searchpath.h: Adjust.
10317 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10318 `safer_macro_path'.
10319 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10321 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10322 * src/roff/troff/input.cc: Use `mac_path', initialized with
10324 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10325 * src/roff/troff/env.cc: Use `mac_path'.
10327 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10329 * NEWS, man/roff.man, src/roff/troff/troff.man,
10330 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10333 2000-11-12 Werner LEMBERG <wl@gnu.org>
10335 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10337 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10338 * configure.in: Fix typo in comment.
10339 * configure: Regenerated.
10341 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10344 2000-11-08 Werner LEMBERG <wl@gnu.org>
10346 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10348 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10349 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10352 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10353 * tmac/Makefile.sub (install_data): Create
10354 $(systemtmacdir) and $(localtmacdir).
10355 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10356 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10357 NEWS, doc/groff.texinfo: Updated and minor fixes.
10359 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10360 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10361 $(systemtmacdir) since the wrapper files are platform-dependent.
10363 2000-11-01 Werner LEMBERG <wl@gnu.org>
10365 * doc/groff.texinfo: Fix typo.
10367 2000-10-26 Werner LEMBERG <wl@gnu.org>
10369 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10370 tmac.doc.old -> doc-old.tmac
10371 tmac.an.old -> an-old.tmac
10373 * tmac/tmac.*: Moved to ...
10374 * tmac/*.tmac: this.
10375 * tmac/man.local: Fix comment.
10376 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10377 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10378 Added some `FILES' sections. More use of @...@ directives. Other
10380 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10381 * doc/homepage.ms, doc/groff.texinfo: Updated.
10382 * man/groff.man, man/roff.man: Updated.
10383 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10384 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10385 src/devices/grotty/grotty.man: Updated.
10386 * src/preproc/pic/pic.man: Updated.
10387 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10388 instead of -mdoc.old.
10389 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10390 * src/roff/nroff/nroff.man: Updated.
10393 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10395 * tmac/mm.diff: Removed -- it has no use now since the mm package
10398 * tmac/*: Removed trailing spaces.
10400 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10401 the tmac subdirectory also).
10403 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10404 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10405 stuff since it is no longer needed.
10407 * README, PROBLEMS: Updated.
10409 2000-10-25 Werner LEMBERG <wl@gnu.org>
10411 Invert current behaviour: Search first FOOBAR.tmac, then
10414 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10415 (open_mac_file, macro_source): Implement it.
10416 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10417 doc/groff.texinfo, NEWS: Document it.
10419 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10420 Small documentation improvements.
10422 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10423 subdirectory also).
10425 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10427 2000-10-24 Werner LEMBERG <wl@gnu.org>
10429 Add local tmac directory (groff/site-tmac).
10431 * Makefile.in: Add $(localtmacdir).
10432 (uninstall_dirs): Add $(localtmacdir).
10433 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10434 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10435 in $(localtmacdir). Create $(localtmacdir).
10436 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10437 Updated and minor fixes.
10439 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10441 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10443 2000-10-23 Werner LEMBERG <wl@gnu.org>
10445 Move hyphen.us to tmac directory.
10447 * src/roff/troff/hyphen.us: Removed.
10448 * src/tmac/hyphen.us: Added.
10449 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10451 Change installation structure for data files from .../groff/... to
10452 .../groff/<version><revision>/... to be conform with other GNU
10455 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10456 doc/Makefile: Implement it.
10457 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10458 * configure: Updated.
10459 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10460 * NEWS: Document it.
10461 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10462 @MACRODIR@ instead of hard-coded directories.
10464 2000-10-22 Werner LEMBERG <wl@gnu.org>
10466 Implement $GROFF_BIN_PATH environment variable (which defaults to
10467 $bindir) used for child programs of groff and similar wrappers.
10469 * gendefs.sh: Improve documentation.
10470 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10471 src/preproc/eqn/Makefile.sub (neqn),
10472 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10473 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10475 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10476 $GROFF_PATH__ (the latter for communication with troff).
10477 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10479 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10480 doc/groff.texinfo: Document it.
10482 * doc/groff.texinfo: Improve documentation of troff's -a option.
10484 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10486 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10487 non-intrusive eol marker.
10488 (troff_output_file::determine_line_limits): New function.
10489 (troff_output_file::draw): Use it.
10490 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10491 output_pending_lines() instead of output_line().
10492 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10493 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10494 createImage): Small fixes.
10496 2000-10-14 Werner LEMBERG <wl@gnu.org>
10498 Replace tmac.safer with a real secure solution.
10500 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10501 system_request, pipe_output): Disable requests if in safer mode.
10502 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10503 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10504 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10505 doc/groff.texinfo, src/roff/groff/groff.man,
10506 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10508 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10509 (resource_manager::output_prolog): Replace setenv() with putenv().
10511 2000-10-09 Werner LEMBERG <wl@gnu.org>
10513 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10514 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10515 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10516 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10517 compilation errors with some compilers. It seems that this code
10518 is no longer necessary -- if yes, it is easy to add some #ifdef's
10519 for that particular old-fashioned compiler.
10521 * MORE.STUFF: Added info about Meta-tbl.
10523 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10525 2000-10-07 Werner LEMBERG <wl@gnu.org>
10527 Adding a new escape sequence \B'...': If the string between
10528 the delimiters is a valid numeric expression, return the character
10529 `1', and `0' otherwise. This is an analogon to \A.
10531 * src/roff/troff/input.cc (do_expr_test): Implement it.
10532 (token::next): Use it.
10533 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10535 * tmac/tmac.trace: Made independent from escape character.
10537 2000-10-06 Werner LEMBERG <wl@gnu.org>
10539 Adding a new request .dei: define indirect. The first and second
10540 parameter of .dei are taken from string registers instead directly;
10541 this very special request is needed to make tmac.trace independent
10542 from the escape character (which might even be disabled).
10544 * src/roff/troff/input.cc (do_define_macro): Implement it.
10545 (define_macro_indirect): New function.
10546 (init_input_requests): Use it.
10548 Adding two requests .ecs and .ecr: Save and restore the escape
10549 character. These two requests are needed to make tmac.trace
10550 independent from the escape character (which might even be
10553 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10555 (init_input_requests): Use it.
10557 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10559 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10561 Adding a new option -P and new environment variable GROPS_PROLOGUE
10562 to grops, selecting a different prologue file (minor modifications
10565 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10566 src/devices/grops/ps.cc (main): Implement it.
10567 * src/devices/grops/grops.man, NEWS: Document it.
10569 2000-09-22 Werner LEMBERG <wl@gnu.org>
10571 * INSTALL: Add info about selecting paper format.
10573 2000-09-21 Werner LEMBERG <wl@gnu.org>
10575 * src/roff/troff/input.cc (main): Fixing compiler warning.
10576 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10577 strings.h from the former to the latter.
10578 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10579 stuff from the former to the latter.
10581 2000-09-11 Werner LEMBERG <wl@gnu.org>
10583 Implementing two new requests .tm1 and .tmc: The former is similar
10584 to .tm but can output leading spaces; its syntax is similar to
10585 defining a string, i.e., a `"' can be used to mark the beginning of
10586 the string to be written to stderr: `.tm1 " test'. The latter is
10587 similar to .tm1 but doesn't write out a final newline character.
10589 * src/roff/troff/input.cc (terminal1, terminal_continue,
10590 do_terminal): New functions.
10591 (init_input_requests): Use them.
10592 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10594 2000-09-09 Werner LEMBERG <wl@gnu.org>
10596 * tmac/groff_mdoc.samples.man: Small fixes.
10598 2000-09-08 Werner LEMBERG <wl@gnu.org>
10600 * tmac/groff_mdoc.man: Fixing typo.
10602 2000-09-02 Werner LEMBERG <wl@gnu.org>
10604 Implementing a .nop request which does nothing.
10606 * src/roff/troff/input.cc (nop_request): New function.
10607 (init_input_requests): Use it.
10608 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10610 2000-09-01 Werner LEMBERG <wl@gnu.org>
10612 * doc/groff.texinfo: Added some comments.
10614 2000-08-30 Werner LEMBERG <wl@gnu.org>
10616 * src/roff/troff/TODO: Updated.
10618 2000-08-25 Werner LEMBERG <wl@gnu.org>
10620 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10622 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10624 * font/devps/generate/Makefile (SHELL): Define explicitly to
10625 "/bin/sh", for non-Unix platforms.
10626 (extraclean): Use a more portable "" quoting instead of a
10627 backslash (which doesn't work on DOS/Windows).
10629 * font/devlj4/generate/Makefile (extraclean): Ditto.
10631 * font/devdvi/generate/Makefile (extraclean): Ditto.
10633 2000-08-25 Werner LEMBERG <wl@gnu.org>
10635 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10636 src/roff/troff/troff.man: Document Eli's latest changes.
10638 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10640 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10641 macro file names of the form NAME.tmac as well as tmac.NAME.
10643 2000-08-25 Werner LEMBERG <wl@gnu.org>
10645 * src/include/posix.h: Remove definition of FILENAME_MAX.
10647 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10648 `sys_fatal' and `stop' function().
10650 * test-groff: Updated.
10652 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10654 Added the new troff command .output <arg> to suppress output (while
10655 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10656 registers (for passing the output dimensions to the output device).
10658 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10660 * src/roff/troff/node.h, src/roff/troff/node.cc
10661 (troff_output_file::really_print_line,
10662 ascii_output_file::really_print_line,
10663 supress_output_file::really_print_line): Use `width' parameter.
10664 (troff_output_file::really_on, troff_output_file::really_off,
10665 output_file::on, output_file::off, real_output_file::on,
10666 real_output_file::off, real_output_file::really_on,
10667 real_output_file::really_off): New functions.
10668 (real_output_file:public output_file): New variable `output_on'.
10669 (real_output_file::begin_page, real_output_file::copy_file,
10670 real_output_file::transparent_char, real_output_file::print_line):
10672 (real_output_file::print_line): Use check_output_limits.
10673 * src/roff/troff/reg.h, src/roff/troff/request.h,
10674 src/roff/troff/input.cc (assign_registers): New function to remove
10676 (do_ps_file): Use it.
10677 (check_output_limits, reset_output_registers, output_request,
10678 init_output_requests): New functions.
10679 (init_input_requests): Updated.
10681 Added new grohtml2 device and html2 preprocessor (coding
10682 not yet finished) which will eventually replace grohtml.
10684 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10686 * src/include/htmlindicate.h, src/include/htmlindicate
10687 (html_begin_suppress, html_end_suppress): New functions.
10688 * src/preproc/tbl/main.cc: Use it.
10689 * src/roff/groff/groff.cc: Add support for html2 device (which will
10690 automatically invoke the html2 preprocessor).
10691 * src/roff/troff/input.cc (is_html2): New variable.
10692 * src/roff/troff/troff.h, src/roff/troff/env.h,
10693 src/roff/troff/env.cc (environment::add_html_tag): New function
10695 (environment::do_break): Use it.
10696 * font/devhtml2/*: New files.
10697 * src/devices/grohtml2: New device.
10698 * src/preproc/html2: New preprocessor.
10699 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10701 2000-08-23 Werner LEMBERG <wl@gnu.org>
10703 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10705 2000-08-22 Werner LEMBERG <wl@gnu.org>
10707 * src/include/lib.h: Provide a fix for IRIX to not include
10710 2000-08-18 Werner LEMBERG <wl@gnu.org>
10712 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10713 since some non-GNU sed programs can't handle null regexps.
10714 * configure, src/preproc/eqn/Makefile.sub,
10715 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10717 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10718 bug (string.h and strings.h are both needed according to latest
10721 * MORE.STUFF: Added info about unroff and troffcvt.
10723 2000-08-08 Werner LEMBERG <wl@gnu.org>
10725 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10728 * tmac/tmac.man.old: Remove unused number register.
10730 * tmac.doc: Minor documentation fix.
10732 2000-08-07 Paul Eggert <eggert@twinsun.com>
10734 * src/roff/groff/pipeline.c (is_system_shell):
10735 Fix typo: "monocased_shell" no longer exists.
10737 2000-08-07 Paul Eggert <eggert@twinsun.com>
10739 Remove FILENAME_MAX limits.
10741 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10742 that the argument length is less than FILENAME_MAX.
10743 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10744 Use struct hack to allocate and free file name.
10745 (struct xtmpfile_list): fname is now part of the structure,
10746 not a pointer to another string.
10748 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10750 * src/include/posix.h: Add a default value for FILENAME_MAX.
10752 2000-08-06 Paul Eggert <eggert@twinsun.com>
10754 Add support for new BSD-style man pages (with ".Dd" instead of
10755 ".TH"), so that "groff -man" understands both styles, even
10756 when running "groff -man" on a host whose system man page
10757 macros don't support ".Dd".
10759 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10760 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10761 in case the system man macros don't define Dd or TH.
10763 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10764 * tmac/tmac.an: New one-line file.
10765 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10767 2000-08-06 Werner LEMBERG <wl@gnu.org>
10769 * src/roff/troff/troff.man: Fixing typos.
10771 Version 1.16.1 released
10772 =======================
10774 2000-07-31 Werner LEMBERG <wl@gnu.org>
10776 Preparing release 1.16.1.
10778 * REVISION: Revision number set to 1.
10779 * MORE.STUFF: Added info about port to DOS.
10780 * NEWS, win32-diffs: Updated.
10782 * src/include/nonposix.h: Remove first line -- this file is used
10785 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10788 2000-07-30 Werner LEMBERG <wl@gnu.org>
10790 * doc/texinfo.tex: Update to latest version.
10792 2000-06-28 Paul Eggert <eggert@twinsun.com>
10794 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10795 commands that fail. Don't assume that "export a=b" is valid shell
10796 syntax. This is needed for Solaris 2.5.1.
10798 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10799 comment about missing Solaris headers.
10801 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10803 2000-06-25 Werner LEMBERG <wl@gnu.org>
10805 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10808 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10810 * win32-diffs: Updated.
10811 * README.WIN32: Added CRs to make all Windows editors happy.
10813 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10814 src/roff/groff/pipeline.c).
10816 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10818 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10819 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10821 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10823 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10824 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10826 (main): Support non-Posix systems with several different styles of
10827 slash characters in file names.
10829 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10830 (main) [SET_BINARY]: Switch stdin into binary mode.
10832 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10833 (main): Support file names with several possible slash-type
10834 characters, as given by DIR_SEPS[] in nonposix.h.
10835 (main) [__MSDOS__]: If renaming the temporary index file fails
10836 because it has more than one dot in its trunk, replace the dot
10837 with an underscore and try again.
10838 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10840 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10842 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10843 (File::File): Open the input file in binary mode. Strip CR
10844 characters from each CR-LF pair.
10845 (xbasename): Support file names with several possible slash-type
10846 characters, as given by DIR_SEPS[] in nonposix.h.
10848 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10850 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10851 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10852 [!_POSIX_VERSION]: Define for traditional Unix systems.
10853 (real_output_file::real_output_file): Remove the MSVC-specific
10854 call to popen, use instead POPEN_WT, appropriately defined on
10855 nonposix.h. #include nonposix.h.
10856 (real_output_file::~real_output_file): Remove the MSVC-specific
10857 call to pclose, a suitable macro is now defined on nonposix.h.
10858 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10859 and WEXITSTATUS instead of assuming traditional Unix
10860 interpretation of the status returned by pclose.
10862 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10863 call to popen, use POPEN_RT instead (appropriately defined on
10864 nonposix.h). #include nonposix.h.
10865 (ps_bbox_request): Open the PostScript file in binary mode.
10866 Close the file after processing it.
10867 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10870 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10871 A version of run_pipeline that doesn't use `fork'.
10872 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10873 (system_shell_name, system_shell_dash_c)
10874 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10875 the ugliness of testing DOS/Windows file names for equality, and
10876 support both stock shells and ports of Unix shells.
10878 * src/roff/groff/groff.cc: #include nonposix.h.
10879 (BSHELL): Definition moved to nonposix.h.
10880 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10881 instead of a literal "-c".
10882 (xbasename): Support file names with several possible slash-type
10883 characters, as given by DIR_SEPS[] in nonposix.h.
10884 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10885 of literal strings.
10887 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10888 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10890 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10893 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10895 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10898 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10900 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10901 P_tmpdir is defined, use it instead of the literal "/tmp".
10902 (remove_tmp_files, add_tmp_file): New functions.
10903 (xtmpfile): Record temporary files and register an atexit function
10904 to delete them explicitly, instead of relying on the OS to do
10905 that, which doesn't work on non-Unix systems.
10907 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10908 (search_path::search_path): Use PATH_SEP instead of a literal
10910 (search_path::command_line_dir): Ditto.
10911 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10912 to support non-Posix systems.
10914 * src/libs/libbib/search.cc: #include nonposix.h.
10915 (search_list::add_file): Open the file in binary mode.
10917 * src/libs/libbib/linear.cc: #include nonposix.h.
10918 (file_buffer::load): Remove \r characters preceding \n from the
10921 * src/libs/libbib/index.cc: #include nonposix.h.
10922 (make_index_search_item): Open index_filename in O_BINARY mode.
10923 (index_search_item_iterator::get_tag): Ditto. Remove \r
10924 characters before \n characters.
10925 (index_search_item::check_files): Open files in binary mode.
10926 (index_search_item::munge_filename): Support DOS-style file names
10927 with backslashes and drive letters, use IS_ABSOLUTE.
10929 * src/devices/grops/ps.cc: #include nonposix.h.
10930 (main) [SET_BINARY]: Switch stdout to binary mode.
10932 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10933 (main) [SET_BINARY]: Switch stdout to binary mode.
10935 * src/devices/grolbp/lbp.cc: #include nonposix.h
10936 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10938 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10939 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10941 (main) [SET_BINARY]: Switch stdout to binary mode.
10942 [_MSC_VER]: Remove an explicit call to _setmode.
10944 * src/include/nonposix.h: New file.
10946 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10947 operation when building with DJGPP.
10948 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10949 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10952 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10954 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10955 etc. can include a semi-colon on DOS/Windows.
10956 (depend.temp): Use depend1.temp instead of depend.temp1, to
10957 prevent files from overerwiting each other on 8+3 filesystems.
10959 * gendef.sh (t): Change definition to work with DOS/Windows.
10961 doc/groff.texinfo: Apart of some typo corrections, I also changed
10962 some index entris, to make them more non-ambiguous, and also put
10963 @ignore around some parts that are not yet written, to allow the
10964 Info output be readable.
10966 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10968 Replaced specific checks for function declarations with a generic
10969 routine taken from GNU bfd.
10971 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10972 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10973 * configure.in: Use it.
10974 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10975 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10976 src/roff/groff/groff.cc: Use it.
10977 * Makefile.in, configure: Updated.
10979 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10981 * src/devides/grolbp/lbp.h: Removed unused variables.
10983 2000-05-31 Keith Thompson <kst@sdsc.edu>
10985 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10988 2000-05-31 Werner LEMBERG <wl@gnu.org>
10990 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10991 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10992 * configure.in: Use it.
10993 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10994 * configure, Makefile.in: Updated.
10996 * configure.in: Add test for strncasecmp().
10997 * src/include/lib.h: Use it.
10999 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
11001 * src/preproc/grn/Makefile.sub: Add MLIB.
11003 2000-05-29 Nix <nix@esperi.demon.co.uk>
11005 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11007 2000-05-29 Werner LEMBERG <wl@gnu.org>
11009 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11011 * PROBLEMS: Small update.
11013 * src/devices/grolbp/lbp.cc: Various small fixes.
11015 2000-05-28 Keith Thompson <kst@sdsc.edu>
11017 * src/roff/nroff/nroff.sh: Fix main loop syntax.
11019 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11021 2000-05-25 Werner LEMBERG <wl@gnu.org>
11023 * man/roff.man: Removed unused macro.
11025 2000-05-24 Werner LEMBERG <wl@gnu.org>
11027 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
11028 This is needed e.g. if you do
11029 `make distclean; ./configure; make dist'.
11031 Version 1.16 released
11032 =====================
11034 2000-05-23 Werner LEMBERG <wl@gnu.org>
11036 Adding font CWI (constant width italic) to devdvi.
11038 * font/devdvi/CWI: New file.
11039 * font/devdvi/generate/Makefile: Add generating rule.
11040 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11041 tmac/tmac.dvi: Use it.
11042 * NEWS: Announce it.
11044 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11045 * font/devlj4/generate/Makefile: Cosmetic changes only.
11047 * man/groff.man: Removed most of the redundant description of
11048 special characters (which is in groff_char.man). Added font
11049 translation CB->CR for devdvi. Other minor fixes.
11051 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11052 (registered) symbols.
11054 2000-05-22 Werner LEMBERG <wl@gnu.org>
11056 * doc/Makefile: Added rule for creating info files.
11058 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
11060 * font/devdvi/generate/Makefile: Fixed dependencies.
11062 * font/devps/*: Regenerated. Heavy changes for Bookman and
11063 NewCentury Schoolbook!
11064 * font/devps/generate/afmname: Will now run with GNU awk.
11065 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11066 * font/devps/generate/Makefile: Cosmetic changes only.
11068 2000-05-21 Werner LEMBERG <wl@gnu.org>
11070 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11071 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
11072 `.SS' now produces a heading with a smaller size than `.SH'.
11073 Completely formatted.
11074 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11076 * man/groff.man: Improved table appearance. Use of `eo' request
11077 to reduce number of doubled backslashes in macro definitions.
11078 Replacing `\e' with `\(rs'. Other minor fixes.
11080 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11081 to have correct line number.
11083 * INSTALL: Small improvement.
11085 2000-05-20 Bernd Warken <bwarken@mayn.de>
11087 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11090 2000-05-19 Bernd Warken <bwarken@mayn.de>
11092 * man/groff.man: Complete update (with a lot of corrections by WL).
11094 2000-05-18 Werner LEMBERG <wl@gnu.org>
11096 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11098 * font/*/*: Implement it.
11099 * man/groff_char.man, NEWS: Document it.
11101 * src/include/unix.h: Removed. It isn't used.
11103 * doc/groff.texinfo: Slight improvements.
11105 2000-05-17 Werner LEMBERG <wl@gnu.org>
11107 * README, win32-diffs: Small fixes and improvements.
11109 2000-05-16 Werner LEMBERG <wl@gnu.org>
11111 * FDL: New file (the Free Documentation License version 1.1).
11113 * doc/groff.texinfo: Added many start-up values for gtroff.
11114 Some structural improvements of the source code.
11116 2000-05-15 Werner LEMBERG <wl@gnu.org>
11118 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11119 * src/roff/troff/troff.man: Added info about troffrc-end.
11121 2000-05-14 Werner LEMBERG <wl@gnu.org>
11123 * Makefile.in (EXTRADIRS): Fix typos.
11124 (dist): Handle deletion of old .tar.gz file correctly.
11125 (DISTDIRS): Include all tty output devices.
11127 * doc/groff.texinfo: Adding more cross references; countless other
11130 2000-05-13 Werner LEMBERG <wl@gnu.org>
11132 * MORE.STUFF: Added Robert Marks's utilities.
11134 2000-05-12 Werner LEMBERG <wl@gnu.org>
11136 Added win32 port contributed by Blake McBride
11137 <blake@florida-software.com>.
11139 * README.WIN32, win32-diffs: New files.
11142 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11143 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11144 (change): Removed unused variables.
11146 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11147 (savebounds): Changed return value from `int' to `void'.
11148 * src/preproc/grn/hdb.cc: Ditto.
11150 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11151 final backslash in comment to avoid compiler warning.
11153 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11155 * doc/groff.texinfo: More fixes.
11157 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11159 * tmac/tmac.doc: Documentation fix.
11161 2000-05-11 Werner LEMBERG <wl@gnu.org>
11163 * doc/groff.texinfo: Reading the source code shows up a lot of
11164 omissions and incorrect data... More conversion to @Deffn macros.
11166 2000-05-10 Werner LEMBERG <wl@gnu.org>
11168 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11171 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11173 2000-05-09 Werner LEMBERG <wl@gnu.org>
11175 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11178 * doc/groff.texinfo: Extended history section. More conversion to
11179 @Deffn macros. More .tr documentation.
11181 2000-05-07 Werner LEMBERG <wl@gnu.org>
11183 * doc/groff.texinfo: Completed tab section. Added info about
11186 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11188 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11190 2000-05-05 Werner LEMBERG <wl@gnu.org>
11192 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11194 * NEWS: Document it.
11196 * man/troff.man: Minor optical improvements.
11198 2000-05-03 Werner LEMBERG <wl@gnu.org>
11200 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11202 * font/*/*: Implement it.
11203 * man/groff_char.man, NEWS: Document it.
11205 2000-05-02 Werner LEMBERG <wl@gnu.org>
11207 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11209 * NEWS: Document the three new man pages.
11211 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11212 * configure: Updated.
11214 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11216 2000-05-01 Werner LEMBERG <wl@gnu.org>
11218 Added grap support to grog.
11220 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11221 * src/roff/grog/grog.man: Document it.
11223 * doc/groff.texinfo, NEWS: Add info about grap support.
11225 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11226 (with slight fixes by me).
11228 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11229 * tmac/Makefile.sub: Add groff_tmac.man.
11230 * man/roff.man: New file giving overview of roff system.
11231 * man/troff.man: A short reference of troff.
11232 * man/Makefile.sub: Add roff.man and troff.man.
11234 2000-04-30 Werner LEMBERG <wl@gnu.org>
11236 Added grap support to groff.
11238 * src/roff/groff/groff.cc: Implement it.
11239 * src/roff/groff/groff.man: Document it.
11241 * src/devices/grotty/grotty.man: Add cp1047 device.
11242 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11244 * src/roff/groff/groff.man: Ditto.
11245 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11246 * doc/groff.texinfo: Ditto.
11248 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11251 2000-04-29 Werner LEMBERG <wl@gnu.org>
11253 * man/groff_char.man: Add `pc' glyph.
11254 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11255 * tmac/tmac.tty: Add `pc' glyph.
11256 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11257 we use cp1047 output device.
11259 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11260 there are still hardcoded latin1->unicode values in utf8's font
11262 * configure: Updated.
11263 * NEWS: Minor clarification. Updated.
11265 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11268 2000-04-28 Werner LEMBERG <wl@gnu.org>
11270 Adding EBCDIC code page 1047.
11272 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11273 font/devcp1047/DESC.proto: New files.
11275 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11276 either ascii/latin1 or cp1047.
11277 * Makefile.in: Use it.
11278 * configure: Updated.
11280 Replacing and/or adding `md' (mathdot) glyph with `pc'
11281 (periodcentered) in all text fonts.
11283 * font/*/*: Change it.
11285 2000-04-27 Werner LEMBERG <wl@gnu.org>
11287 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11289 * configure.in: Add check for strings.h.
11290 * src/include/driver.h: Use HAVE_STRINGS_H.
11291 * src/devices/grolbp/lpb.cc: Remove string.h.
11293 * src/include/groff-getopt.h: New file. It will be used instead of
11294 getopt.h (to be included in lib.h) to avoid endless problems with
11295 picky C++ compilers.
11296 * src/include/lib.h: Use groff-getopt.h.
11297 * src/include/Makefile.sub: Updated.
11299 * configure: Updated.
11300 * Makefile.in: Updated.
11302 * NEWS: Mention EBCDIC support.
11304 2000-04-26 Werner LEMBERG <wl@gnu.org>
11306 * TODO: Some additions.
11308 2000-04-25 Werner LEMBERG <wl@gnu.org>
11310 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11313 2000-04-23 Werner LEMBERG <wl@gnu.org>
11315 * src/roff/troff/troff.man: Minor fixes.
11317 2000-04-22 Werner LEMBERG <wl@gnu.org>
11319 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11320 `.T' string register and the incompatible definition of the `.T'
11321 number register (compared to Unix troff).
11323 * man/groff_char.man: Add some missing characters.
11324 * font/devutf8/NOTES: Update.
11326 2000-04-21 Werner LEMBERG <wl@gnu.org>
11328 * src/include/htmlindicate.h, src/include/lib.h,
11329 src/include/posix.h: Fix copyright.
11331 * src/include/Makefile.sub: Update.
11333 2000-04-20 Werner LEMBERG <wl@gnu.org>
11335 * src/roff/troff/input.cc (input_char_description): Removing
11336 superfluous space char.
11338 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11340 * doc/groff.texinfo: Document EBCDIC.
11342 2000-04-19 Werner LEMBERG <wl@gnu.org>
11344 Introducing `shc' as the glyph name for the soft hyphen character.
11346 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11347 font/devlatin1/R.proto: Use it.
11351 2000-04-18 Werner LEMBERG <wl@gnu.org>
11353 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11354 dependency on ASCII order.
11356 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11358 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11359 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11361 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11362 to increase portability.
11364 2000-04-15 Werner LEMBERG <wl@gnu.org>
11366 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11367 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11368 the generic `\n' if under OS/390 Unix.
11370 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11372 * configure: Regenerated.
11374 2000-04-14 Werner LEMBERG <wl@gnu.org>
11376 * doc/groff.texinfo: More conversions to @Deffn.
11378 2000-04-12 Werner LEMBERG <wl@gnu.org>
11380 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11383 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11385 2000-04-10 Werner LEMBERG <wl@gnu.org>
11387 * doc/groff.texinfo: More conversions to @Deffn.
11389 2000-04-08 Werner LEMBERG <wl@gnu.org>
11391 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11392 Updated to latest version (glibc 2.1.3).
11394 2000-04-07 Werner LEMBERG <wl@gnu.org>
11396 * doc/Makefile (clean): Include more index files.
11397 Add rule texinfo->dvi.
11399 2000-04-05 Werner LEMBERG <wl@gnu.org>
11401 * doc/groff.texinfo: Added new index `op' for operators. More
11402 info on end of sentence characters. More use of @Deffn.
11404 2000-03-30 Werner LEMBERG <wl@gnu.org>
11406 * */*.man: Adding a note that a whitespace can be inserted between
11407 a command line option and its parameter -- we are using GNU getopt.
11409 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11411 2000-03-28 Werner LEMBERG <wl@gnu.org>
11413 Correct anachronism of calling the man macro file with `-man'
11414 instead of `-m man' etc.
11416 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11417 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11418 load tmac.<package>.
11420 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11424 * doc/groff.texinfo: Updated.
11426 * tmac/groff_man.man: Copyright added.
11428 2000-03-27 Werner LEMBERG <wl@gnu.org>
11430 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11431 typeset the request resp. escape name with a tt font -- due to a
11432 bug in texinfo.tex it is necessary to use the `-e' switch with
11435 Improving info about usage of groff units.
11439 2000-03-20 Werner LEMBERG <wl@gnu.org>
11441 * doc/groff.texinfo: Added section about man macro package
11442 (I've basically taken groff_man.man). Introducing new indices `ma'
11443 for macros/strings and `gl' for glyph names. Other minor fixes.
11445 * tmac/groff_man.man: Fixed some typos.
11447 2000-03-19 Werner LEMBERG <wl@gnu.org>
11449 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11452 * doc/texinfo.tex: New file.
11454 2000-03-18 Werner LEMBERG <wl@gnu.org>
11456 * doc/groff.texinfo: Improved section on number registers. Other
11459 2000-03-16 Werner LEMBERG <wl@gnu.org>
11461 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11464 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11465 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11466 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11467 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11469 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11471 * src/roff/grog/grog.man: Updated copyright date.
11473 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11475 * configure.in: Added test for strdup.
11477 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11480 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11484 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11486 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11488 2000-03-11 Werner LEMBERG <wl@gnu.org>
11490 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11492 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11493 * src/include/lib.h: Remove some spaces.
11495 2000-03-10 Werner LEMBERG <wl@gnu.org>
11497 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11498 initializers from arguments (some compilers don't like this).
11500 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11502 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11503 used by pic and eqn to tell grohtml where the graphic regions start
11505 * src/libs/libgroff/Makefile.sub: Use it.
11506 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11507 graphic_start() and graphic_end() from htmlindicate.cc.
11509 2000-03-09 Werner LEMBERG <wl@gnu.org>
11511 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11512 * tmac/groff_man.man: More fixes.
11514 2000-03-08 Werner LEMBERG <wl@gnu.org>
11516 * doc/Makefile: Added texput.log to the `clean' target.
11517 * doc/groff.texinfo: Added info about delimiters for escapes.
11519 2000-03-08 Bernd Warken <bwarken@mayn.de>
11521 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11522 other graphic formats.
11524 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11526 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11527 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11528 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11531 2000-03-07 Werner LEMBERG <wl@gnu.org>
11533 * doc/groff.texinfo: Spelling fixes.
11535 2000-03-06 Werner LEMBERG <wl@gnu.org>
11537 * tmac/groff_man.man: Completely revised to cover everything in
11540 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11541 Other minor fixings.
11542 * src/roff/troff/env.cc (environment_copy): Improve error message and
11544 * src/roff/troff/TODO: Updated.
11546 * doc/Makefile: Bug fixes -- this is still provisional, though...
11548 * tmac/eqnrc: Small fixes.
11550 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11552 Adding a request `evc' to copy environments.
11554 * src/roff/troff/env.cc (environment::copy, environment_copy):
11556 * src/roff/troff/env.h: Add prototype.
11558 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11560 Adding strsep() -- Solaris 8 doesn't have it.
11562 * configure.in: Test it.
11563 * src/devices/grolbp/lbp.cc: Add code.
11565 2000-03-05 Werner LEMBERG <wl@gnu.org>
11567 * src/roff/troff/div.cc (macro_diversion::output,
11568 top_level_diversion::output): Fixing an incompatibility with
11569 original troff: \x'0' updates the .a register also. Thanks to
11570 <Andries.Brouwer@cwi.nl> for pointing this out.
11571 * doc/groff.texinfo: Document it.
11573 * Makefile.in: Create Makefile.dep if necessary before calling the
11574 submake process to avoid warning about nonexistent file.
11576 * NEWS, PROJECTS: Updated.
11578 2000-03-04 Werner LEMBERG <wl@gnu.org>
11580 * tmac/troffrc: Add tmac.lbp.
11582 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11584 * tmac/tmac.lbp: New file.
11585 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11588 2000-03-03 Werner LEMBERG <wl@gnu.org>
11590 * Makefile.in: Fixing $(subdir).
11592 * README, NEWS: Small fixes.
11594 * test-groff: Adding path to grolbp.
11596 * configure.in: The (new) file src/xditview/Imakefile.in will be
11597 also configured -- it is now possible to build gxditview in a
11598 directory different from $srcdir.
11600 2000-03-02 Blake McBride <blake@florida-software.com>
11602 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11604 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11606 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11608 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11611 2000-02-29 Werner LEMBERG <wl@gnu.org>
11613 Adding GNU getopt to the groff distribution.
11615 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11617 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11618 * aclocal.a4: Remove GROFF_GETOPT function.
11619 * configure.in, Makefile.in, PROBLEMS: Update.
11620 * src/include/lib.h: Replace getopt tests with getopt.h.
11621 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11623 * doc/groff.texinfo: Further checking/updating. Adding more index
11626 * man/groff_out.man: Fix nroff mode activation (for emacs).
11627 * man/groff_font.man: Add missing ligature.
11629 2000-02-28 Werner LEMBERG <wl@gnu.org>
11631 * doc/groff.texinfo: Further checking/updating. Adding more index
11634 * src/devices/grolbp/grolbp.man: Added a comment line at the
11635 beginning of the file (similar to shell scripts) which indicates
11636 that `tbl' should be used as a preprocessor.
11638 2000-02-27 Blake McBride <blake@florida-software.com>
11640 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11641 Windows NT 4.0). Uses _MSC_VER define where necessary.
11643 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11644 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11645 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11646 src/include/lib.h, src/libs/libgroff/errarg.cc,
11647 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11648 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11649 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11650 src/roff/troff/div.cc, src/roff/troff/env.cc,
11651 src/roff/troff/input.cc, src/roff/troff/node.cc,
11652 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11653 if_to_a() to avoid name clashes.
11654 * src/include/posix.h: Don't use unistd.h.
11655 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11656 clause for integrating non-Unix xtmpfile() code.
11657 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11658 structure; use "rt" for popen() in pipe_source(); add getpid()
11660 * src/roff/troff/node.cc: Use special versions of popen() in
11661 real_output_file() and pclose() in ~real_output_file().
11663 2000-02-27 Werner LEMBERG <wl@gnu.org>
11665 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11666 LBP-8 series laser printers). This code has been contributed by
11667 Francisco Andrés Verdú <pandres@dragonet.es>.
11669 * src/devices/grolbp/*: The grolbp output device.
11670 * font/devlpb/*: The font description files.
11671 * Makefile.in: Add grolpb and devlbp subdirectories.
11673 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11674 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11677 * doc/groff.texinfo: Further checking/updating. Adding more index
11682 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11684 * man/groff_font.man: Adding info about obsolete DESC keywords.
11685 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11688 2000-02-26 Werner LEMBERG <wl@gnu.org>
11690 * src/preproc/grn/grn.man: Added info about the gremlin file format
11691 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11693 2000-02-25 Werner LEMBERG <wl@gnu.org>
11695 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11696 friends to be non-integer.
11698 * src/preproc/grn/grn.man: Document it.
11700 * doc/groff.texinfo: Further checking/updating. Adding more index
11703 2000-02-24 Werner LEMBERG <wl@gnu.org>
11705 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11706 line thicknesses to be integer multiples of this value.
11708 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11709 corresponding code doesn't work (yet).
11711 * doc/groff.texinfo: Further checking/updating. Adding more index
11714 2000-02-23 Werner LEMBERG <wl@gnu.org>
11716 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11717 specify line thickness instead of base units. The new default
11718 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11719 thick lines respectively.
11721 Removed unused variable `prevval'.
11723 * src/preproc/grn/grn.man: Updated.
11725 2000-02-22 Werner LEMBERG <wl@gnu.org>
11727 * src/preproc/grn/main.cc: Slight formatting.
11729 * src/roff/groff/groff.man: Formatting fix.
11730 * src/preproc/grn/grn.man: Ditto.
11732 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11734 * doc/groff.texinfo: Further checking/updating.
11736 2000-02-21 Werner LEMBERG <wl@gnu.org>
11738 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11740 * test-groff: Added grn subdir to path.
11742 * doc/groff.texinfo: Some restructing and other small improvements.
11744 * src/roff/groff/groff.cc (help): Fixed info string.
11746 2000-02-20 Werner LEMBERG <wl@gnu.org>
11748 * doc/meref.me: Fix description of .GS request.
11750 * src/roff/troff/troff.man: Fixing typo.
11752 Adding the `grn' preprocessor for gremlin graphic files.
11754 * src/preproc/grn/*: This is the Berkeley distribution written by
11755 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11756 Senderowicz and Werner Lemberg.
11758 * doc/grnexampl.{me,g}: A sample for grn.
11760 * Makefile.in: Added subdirectory entry for grn.
11762 * src/roff/groff/groff.cc: Added support for grn. It can be now
11763 called with the switch `-g'.
11765 * src/roff/groff/groff.man: Updated.
11767 * src/roff/grog/grog.{man,pl,sh}: Updated.
11771 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11773 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11774 parametrically polymorphic.
11776 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11777 and the alterations to xtmpfile.
11778 xtmpfile can be requested to return the filename created
11779 and asked not to unlink the temp file. The default behaviour
11780 if parameters are absent is exactly the same as before.
11782 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11784 A new request `length' is available which returns the length of a
11785 string in a number register:
11787 * src/roff/troff/input.cc (length_macro): Implement it.
11788 * src/roff/troff/input.cc (init_input_requests): Register it.
11790 2000-02-11 Werner LEMBERG <wl@gnu.org>
11792 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11793 of the `substring' request.
11795 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11798 * src/roff/troff/TODO, NEWS: Updated.
11800 2000-02-09 Werner LEMBERG <wl@gnu.org>
11802 * src/roff/groff/groff.man: Added an example.
11804 2000-02-06 Werner LEMBERG <wl@gnu.org>
11806 I've considerably modified the directory structure of the
11807 distribution to get a more vertical layout. For example, the number
11808 of top level directories has been reduced from 42 to 6.
11810 As a consequence, many changes, especially to the makefiles, were
11813 * The makefile variables `top_builddir' and `top_srcdir' have been
11814 introduced. Virtually all relative paths have been replaced with
11815 absolute ones using these two variables.
11817 * Dependencies (in the files `Makefile.dep') are no longer part of
11818 the distribution. Instead, they are created during a `make install'
11819 in the build directory.
11821 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11822 make `top_srcdir' and `top_builddir' absolute.
11824 Some other changes:
11826 * Man pages now depend on the files `VERSION' and `REVISION'.
11828 * The added shell script `mkinstalldirs' will replace `mkdir' in
11831 * VERSION: Version number increased to 1.16.
11833 2000-02-04 Werner LEMBERG <wl@gnu.org>
11835 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11837 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11838 (after an update of the mm stuff).
11840 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11842 2000-02-03 Werner LEMBERG <wl@gnu.org>
11844 The .psbb request will now also accept Mac PS images (i.e. using LF
11845 as the EOL character).
11847 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11848 (with slight modifications).
11849 * troff/input.cc (do_ps_file): Use it.
11851 * test-groff: Add grohtml and grolj4 output devices to PATH.
11853 2000-01-30 Werner LEMBERG <wl@gnu.org>
11855 * NEWS, MORE.STUFF: Updated.
11857 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11859 Add the `srand' command to pic.
11861 * pic/lex.cc, pic/pic.y: Implement it.
11862 * pic/pic.man: Document it.
11863 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11865 2000-01-30 Werner LEMBERG <wl@gnu.org>
11867 Add a new request `.psbb'. This does exactly what the external
11868 program psbb did. It scans a PostScript image file for a
11869 %%BoundingBox comment and extracts the bounding box values (in
11870 PostScript units) which are then stored in the four new (read-only)
11871 number registers `llx', `lly', `urx', and `ury'.
11873 This will allow the usage of the .PSPIC macro without worrying
11874 about unsafe behaviour of groff, i.e., it will work without the
11875 `-U' switch of groff.
11877 * troff/input.cc: Implement it.
11878 * tmac/tmac.pspic: Use it.
11879 * troff/troff.man, grops/grops.man, NEWS: Document it.
11880 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11882 This is bloody C code simply adapted from psbb.c! Any improvements
11885 2000-01-29 Werner LEMBERG <wl@gnu.org>
11887 * man/groff_font.man: Minor clarifications.
11891 2000-01-28 Werner LEMBERG <wl@gnu.org>
11893 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11895 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11897 * man/groff_font.man: Brought up to date regarding tcommand
11899 * libgroff/font.cc: Handle everything after `--' as a comment
11901 * devps/*: Added comment delimiter inside devps font files.
11903 2000-01-28 Werner LEMBERG <wl@gnu.org>
11905 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11906 \fC...\fP (which now works as expected).
11908 * troff/troff.man: Fix typo.
11910 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11912 Completed the pass_filenames implementation in troff.
11914 * libdriver/input.cc: Will read the new `F' tcommand.
11915 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11916 * troff/input.cc: Use it.
11918 2000-01-26 Werner LEMBERG <wl@gnu.org>
11920 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11921 font will now be updated even if an invalid font is selected.
11923 2000-01-24 Werner LEMBERG <wl@gnu.org>
11925 * doc/homepage.ms: Updated for new tmac.arkup.
11927 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11929 * tmac/tmac.arkup: Cleanup.
11931 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11933 Removed obsolete .LINK macro completely.
11935 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11936 will be immediately appended to the second argument (to be used with
11937 punctuation, for example).
11939 Disabled .CDFTP macro temporarily for security reasons.
11941 * tmac/groff_markup.man: Complete revision for latest changes in
11942 tmac.arkup -- note that it does not yet format correctly with
11945 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11947 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11948 * devutf8/R.proto: Add mappings for wp, lh, rh.
11949 * devutf8/NOTES: Updated.
11951 2000-01-23 Werner LEMBERG <wl@gnu.org>
11953 * doc/groff.texinfo: Updated version/copyright info.
11955 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11957 Added support for two new directives in device descriptions:
11958 `pass_filenames' (to pass the input file name to the output device)
11959 and `use_charnames_in_special' (to support e.g. accented characters
11960 in the `X' request).
11962 * include/font.h, troff/charinfo.h: Declare it.
11964 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11966 * devhtml/DESC: Use it.
11968 * troff/input.cc: New function encoded_char.
11970 * troff/token.h: Add test for `specialness'.
11972 2000-01-21 Werner LEMBERG <wl@gnu.org>
11974 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11975 mistake from the list of files to be installed.
11977 2000-01-18 Werner LEMBERG <wl@gnu.org>
11979 * README: Added info how to apply patches.
11981 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11983 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11985 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11987 * troff/input.cc: Add support for troffrc-end.
11989 * tbl/main.cc: Altered to issue table-start and table-end special
11990 characters if using the html device.
11992 * devhtml/*: Modified font files to incorporate html encoding of
11995 * tmac/groff_markup.man: New file documenting tmac.arkup.
11997 * tmac/troffrc-end: New file. This is invoked after all user
11998 specified macros. Currently used by the html device to include
11999 tmac.html. Thus no need for users to specify -mhtml anymore.
12001 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12002 (MAN7): Add groff_markup.man.
12004 * tmac/tmac.an, tmac/tmac.html: Small html updates.
12006 * tmac/troffrc: tmac.arkup will now be called for the html device.
12008 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12009 extra device specific information about fonts.
12011 * doc/homepage.ms: New file. It is an example how an HTML home page
12012 could look like with grohtml.
12014 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
12016 2000-01-12 Bruno Haible <haible@clisp.cons.org>
12018 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
12021 * devutf8/NOTES: Updated.
12023 2000-01-08 Bruno Haible <haible@clisp.cons.org>
12025 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12026 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12027 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12028 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12029 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12030 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12031 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12032 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12035 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12037 2000-01-12 Fabrizio Polacco <fab@prosa.it>
12039 grolj4: Paper size will be searched case-insensitively.
12041 * include/lib.h: Add check for strcasecmp().
12042 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12043 * configure.in: Check for strcasecmp().
12045 2000-01-11 Werner LEMBERG <wl@gnu.org>
12047 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12050 2000-01-10 Werner LEMBERG <wl@gnu.org>
12052 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12055 Add a new read-only register, `.Y', which contains the groff
12058 * troff/input.cc (init_input_requests): Define it.
12059 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12060 * doc/groff.texinfo, troff/troff.man: Document it.
12062 * libgroff/Makefile.sub (version.cc): Add definition of
12063 `Version_string[]', consisting of `<major>.<minor>.<revision>'
12064 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12065 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12066 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12067 troff/input.cc, pfbtops/pfbtops.c: Use it.
12069 2000-01-10 Fabrizio Polacco <fab@prosa.it>
12071 Add a revision scheme to the groff package.
12073 * REVISION: New file.
12074 * libgroff/Makefile.sub (version.cc): Use it to define
12075 `revision_string[]'.
12076 * grops/psrm.cc: Use revision_string (converted to an unsigned
12077 integer) in constructor of resource_manager.
12079 2000-01-10 Bruno Haible <haible@clisp.cons.org>
12081 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12083 * Makefile.in (DEVDIRS): Add devutf8.
12084 * grotty/tty.cc: Include device.h.
12085 (glyph): Change type of `code' to `unsigned int'.
12086 (tty_printer): New field is_utf8. Constructor takes device argument.
12087 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12088 (tty_printer::add_char): Change type of first arg to `unsigned int'.
12089 (tty_printer::put_char): New function.
12090 (tty_printer::end_page): Use put_char() instead of ::putchar().
12091 (make_printer): Pass device to tty_printer constructor.
12092 * nroff.sh: Determine default device by calling 'locale'. As a
12093 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12094 Recognize UTF-8 locales.
12095 * tmac/eqnrc: Recognize utf8 like latin1.
12096 * tmac/troffrc: Device utf8 needs tmac.tty.
12098 2000-01-07 Werner LEMBERG <wl@gnu.org>
12100 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12102 2000-01-07 Paul Eggert <eggert@twinsun.com>
12104 Add a new predefined writeable number register, `year',
12105 which contains the current year.
12107 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12108 * tmac/tmac.s: Use it.
12109 * troff/input.cc (init_registers): Initialize it.
12111 2000-01-06 Werner LEMBERG <wl@gnu.org>
12113 * PROBLEMS: Fixed typo.
12115 2000-01-04 Paul Eggert <eggert@twinsun.com>
12117 * PROBLEMS: Add Y2k advice for the yr number register.
12119 2000-01-03 Paul Eggert <eggert@twinsun.com>
12121 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12123 2000-01-02 Werner LEMBERG <wl@gnu.org>
12125 * tmac/tmac.arkup: Slight modification of macros to provide better
12126 appearance for non-HTML formats.
12128 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12130 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12131 does not automatically translate to malloc(n) on all OSes
12132 (e.g., SunOS) so do it explicitly. Also, check the returned
12135 2000-01-01 Werner LEMBERG <wl@gnu.org>
12137 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12139 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12140 expects this variable
12142 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12144 * doc/Makefile: Added instructions to create HTML and text
12145 versions of some files.
12147 1999-12-31 Werner LEMBERG <wl@gnu.org>
12149 * Updated INSTALL.gen.
12151 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12152 better resp. correctly with non-HTML devices.
12154 Version 1.15 released
12155 =====================
12157 1999-12-28 Werner LEMBERG <wl@gnu.org>
12159 * NEWS, VERSION: Changed to 1.15
12161 1999-12-27 Paul Eggert <eggert@twinsun.com>
12163 * nroff/nroff.man: -S is safer, not safe.
12165 * groff/groff.cc (main): Use `safer', not `safe', in variable
12166 names. This does not change the behavior.
12168 * troff/input.cc (main): Likewise.
12170 * nroff/nroff.sh: Likewise.
12172 * troff/input.cc (prepend_string): New function.
12173 (main): Prepend -msafer, so that we check macro libraries for
12176 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12178 Version 1.14 released
12179 =====================
12181 1999-12-26 Werner LEMBERG <wl@gnu.org>
12183 * NEWS, VERSION: Changed to 1.14.
12185 1999-12-24 Werner LEMBERG <wl@gnu.org>
12187 * refer/refer.cc: Fixing the last fix.
12189 Version 1.13 released
12190 =====================
12192 1999-12-23 Werner LEMBERG <wl@gnu.org>
12194 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12199 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12201 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12202 document conventions, the version number must be a real.
12204 Version 1.12.1 released
12205 =======================
12207 1999-12-22 Werner LEMBERG <wl@gnu.org>
12209 * VERSION: Changed to 1.12.1.
12211 1999-12-22 Alan Rooks <arooks@istar.ca>
12213 * refer/refer.cc (do_file): Slight modification to satisfy the
12214 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12217 1999-12-20 Werner LEMBERG <wl@gnu.org>
12219 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12222 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12223 list of unsafe requests.
12225 * pic/pic.man: Fixed a typo.
12227 * man/groff_out.man: Fixed a typo.
12229 1999-12-18 Werner LEMBERG <wl@gnu.org>
12231 * Makefile.in: Doc fixes.
12233 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12235 * groff/groff.cc: Missing `U' option added to getopt().
12237 * troff/troff.man: Missing `U' option added to synopsis.
12239 Version 1.12 released
12240 =====================
12242 1999-12-14 Werner LEMBERG <wl@gnu.org>
12244 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12247 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12248 with the more appropriate terms `safer' and `unsafe'.
12250 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12251 sys_nerr and sys_errlist[].
12253 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12255 * pic/pic.y, pic/pic.cc: Added check for fmod().
12257 1999-12-13 Werner LEMBERG <wl@gnu.org>
12259 * VERSION: Changed to 1.12.
12261 Here some patches from various sources; most of them taken from
12262 the Debian distribution.
12264 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12265 tmac/Makefile.sub: New files copied directly from the NetBSD
12266 distribution. Probably, some additional adaptation later on is
12269 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12270 of unsafe requests.
12272 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12273 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12274 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12275 (`-S') is now the default.
12277 * README, NEWS: Updated.
12279 1999-12-09 Werner LEMBERG <wl@gnu.org>
12281 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12283 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12285 1999-12-06 Werner LEMBERG <wl@gnu.org>
12287 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12288 grief than relief today. Additionally, it is against the GNU
12291 * configure: Recreated.
12293 1999-12-05 Werner LEMBERG <wl@gnu.org>
12295 * configure.in: Added GROFF_LIBM.
12297 * configure: Recreated.
12299 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12302 * Makefile.in: Added definition of $(LIBM).
12304 * Makefile.comm (LIBM): Removed.
12306 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12308 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12310 * doc/Makefile: Added rule for generation pic.html.
12312 (clean): Files produced by grohtml will be removed also.
12314 * doc/pic.ms: Small fix.
12316 * tmac/tmac.html: Fixed suppression of headers.
12318 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12320 * tmac/tmac.html: Fixing horizontal arrows.
12322 Turning off hyphenation.
12324 * tmac/tmac.an: Improved support for grohtml; better indentation,
12325 no footers/headers.
12327 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12329 * tmac/tmac.arkup: Added CDFTP macro
12331 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12334 * tmac/troffrc: Some additions for HTML stuff.
12336 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12338 * tmac/tmac.html: Small changes.
12340 1999-09-26 Werner LEMBERG <wl@gnu.org>
12342 * doc/groff.texinfo: Minor fixes.
12344 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12346 * devhtml/TR: Changed spacewidth to 3.
12348 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12350 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12352 * tmac/tmac.arkup: New file.
12354 * grohtml/ChangeLog: New file.
12356 1999-09-16 Werner LEMBERG <wl@gnu.org>
12358 * doc/groff.texinfo (Common Features): Added Copying chapter.
12359 Changed format to @smallbook.
12361 1999-09-15 Werner LEMBERG <wl@gnu.org>
12363 * NEWS: Added info about groff.texinfo.
12365 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12368 1999-09-14 Werner LEMBERG <wl@gnu.org>
12370 * groff/groff.man: More updates.
12372 1999-09-13 Werner LEMBERG <wl@gnu.org>
12374 * doc/groff.texinfo: New file. This manual is still very
12375 rudimentary. It has been originally contributed by Trent
12376 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12379 * INSTALL: Added information about the `doc' subdir
12381 * troff/troff.man: Minor fixes.
12383 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12386 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12388 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12389 also, otherwise it is included itself in another call of `make
12392 * groff/groff.cc (synopsis): Removed superfluous space.
12394 * PROJECTS, PROBLEMS, NEWS: Updated.
12396 * VERSION: Updated to 1.12beta.
12398 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12400 * README: Updated: Included documentation about CVS repository,
12401 mailing lists, and daily snapshots.
12403 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12405 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12407 * tmac/tmac.an: If the tag didn't fit into the space that the
12408 macro `TP' specifies, the rest of the tag went into the space for
12411 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12413 * grolj4/lj4.cc: Added duplex printing (option `-d').
12415 * grolj4/grolj4.man: Document duplex printing.
12417 1999-09-12 Werner LEMBERG <wl@gnu.org>
12419 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12420 non-GNUish sed programs.
12422 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12425 * configure.in (LIBS): Added `-lc'
12427 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12429 * pic/tex.cc (solid_arc): Casting M_PI to double.
12431 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12433 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12434 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12435 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12437 * groff/groff_man.man: New file. This manual page was originally
12438 written for the Debian GNU/Linux system by Susan G. Kleinmann
12441 * eqn/list.cc (list_box::compute_metrics,
12442 list_box::compute_sublist_width): Removed variable declaration to
12443 avoid shadowing warnings.
12445 * grops/psrm.cc (resource_manager::process_file): Ditto.
12447 * tfmtodit/tfmtodit.cc (main): Ditto.
12449 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12450 to avoid shadowing warnings.
12452 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12453 shadowing loop variable.
12455 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12457 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12459 New grohtml frontend to convert groff input to html.
12461 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12463 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12465 * tmac/eqnrc: Added html device.
12467 * tmac/tmac.html: New file.
12469 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12470 (troff_output::start_picture, troff_output::finish_picture),
12471 tbl/main.cc (process_input_file):
12472 Surrounded output with `graphics_start' and `graphics_end' so that
12473 the html driver can identify non-text portions.
12475 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12476 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12477 grotty/tty.ps (tty_printer::set_char): Additional parameter
12480 * include/printer.h: Class printer: New function
12481 set_char_and_width; new variables (is_char_named, is_named_set,
12482 named_command, named_char_s, named_char_n) to hold information
12483 about named characters -- needed by the html driver.
12485 * libdriver/printer.cc (printer::set_ascii_char,
12486 printer::set_special_char): Use set_char_and_width.
12488 * devhtml/*: New device files for html driver.
12490 * grohtml/*: New driver grohtml.
12492 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12494 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12497 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12499 * libgroff/string.cc (search): Small fix to test against NULL
12502 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12504 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12505 \b'abc') were stacked in reverse order when processed in a
12508 * troff/node.h: Added `*last' to struct `node' to make the above
12511 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12512 The default scale for the 'f' and 't' graphics functions were 'm'
12513 rather than 'u' (i.e., no scaling).
12515 1999-09-11 Peter Miller <peterm@jna.com.au>
12517 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12518 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12519 defining include paths.
12521 * soelim/soelim.cc (include_path_append): New function.
12523 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12525 * tbl/main.cc (process_options): Unix (at least Documenter's
12526 Workbench) tbl allows arbitrary non-alpha characters between
12529 1999-09-11 Paul Eggert <eggert@twinsun.com>
12531 Y2k fixes. Don't assume that the current year precedes 2000.
12533 * doc/meref.me: Add \n(y2, \n(y4.
12535 * tmac/doc-common (Yr): New number register.
12536 (Dd): Don't assume current year precedes 2000.
12538 * tmac/tmac.e (td): Likewise.
12539 (y2, y4): New number registers.
12541 * pic/pic.man: Update reference for pic paper to May, 1991
12544 1999-09-11 Werner LEMBERG <wl@gnu.org>
12546 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12547 Removed quotation marks which prevented correct expansion of
12550 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12552 1999-09-10 Werner LEMBERG <wl@gnu.org>
12554 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12557 * Removed configure.old.
12559 1999-08-31 Werner LEMBERG <wl@gnu.org>
12561 * VERSION: Updated to 1.11.1
12563 1999-05-27 Werner LEMBERG <wl@gnu.org>
12565 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12567 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12568 added quotations around $(tmac_wrap) to avoid syntax error if
12571 * configure: Newly generated using autoconf 2.13.
12573 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12575 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12577 * README, PROJECTS, NEWS, INSTALL, VERSION,
12578 doc/Makefile. doc/pic.ms, groff/groff.man:
12579 Prepare for 1.11 release. No code changes.
12580 Documentation for pic added (doc/pic.ms).
12582 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12584 * Version 1.10 released.
12586 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12588 * afmtodit/afmtodit.pl: Avoid comment on first line.
12590 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12592 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12593 * configure.in: Call it.
12595 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12596 (distfiles): Doesn't depend on config.log or config.cache.
12598 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12600 * grog/grog.sh: Use print "" rather than print in END rule.
12602 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12604 * tbl/main.cc (process_data): Don't give error for excess data
12605 entries that are comments.
12607 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12609 * tbl/main.cc (process_data): Fix case where new for-scope rules
12610 silently change meaning of code.
12612 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12614 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12615 of non-zero hyphenation codes.
12617 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12619 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12621 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12623 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12625 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12627 * tmac/tmac.andoc: Make it work in compatibility mode.
12629 * refer/token.h (token_info::is_range_sep): New function.
12630 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12631 * refer/ref.cc (reference::output): More sophisticated check for
12634 * devps/prologue.ps (MANUAL): New procedure.
12635 * grops/ps.cc (main): New -m option.
12636 (usage): Include -m.
12637 (ps_printer::~ps_printer): Implement -m.
12639 * aclocal.m4 (GROFF_G): New macro.
12640 * configure.in: Call it.
12641 * Makefile.in (g): Provided by configure.
12643 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12645 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12648 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12649 (tmac_m, tmac_s): Deleted.
12650 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12651 tmac_s_prefix): New variables.
12652 (MDEFINES): Change accordingly.
12653 * Makefile.comm (.man.n): Use new TMAC_* variables.
12654 * configure.in (GROFF_TMAC): Call.
12655 * aclocal.m4 (GROFF_TMAC): Define.
12656 * tmac/Makefile.sub (stamp_wrap): New target.
12657 (install_data, uninstall_sub): Handle macro wrapping.
12659 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12661 * tbl/main.cc (main): Ignore -T option.
12663 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12665 * devlj4/generate/special.map: Add definition of \(nb.
12667 * tmac/tmac.dvi: Add definition of \(nb.
12669 * troff/dictionary.c (dictionary::dictionary): association::v gets
12670 initialized by association::association.
12672 * tmac/Makefile.sub: Avoid using temporary files when installing.
12674 * troff/env.cc (environment::set_font): Make bad font number a
12677 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12679 * Makefile.in (datadir): Use share rather than lib.
12681 * groff/groff.cc (basename): Rename to xbasename.
12683 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12685 * Makefile (CCLIBS): Don't use.
12686 * Makefile.ccpg: Likewise.
12688 * acgroff.m4: Rename to...
12689 * aclocal.m4: Modify extensively for autoconf 2.
12690 * configure.in: Likewise.
12691 * Makefile.in: Likewise.
12693 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12695 (xstrsignal): Check for definition of NSIG. Conditionalize
12696 on SYS_SIGLIST_DECLARED. Make return type const.
12698 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12700 * troff/input.cc (interpolate_macro): Rephrase missing space
12703 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12705 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12706 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12707 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12708 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12709 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12710 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12711 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12712 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12713 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12714 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12715 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12718 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12720 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12722 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12724 (macro_iterator::macro_iterator): Add additional argument.
12726 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12728 * troff/div.cc (vertical_size::vertical_size): In place of integer
12729 specifying line spacing use cunits specifying post vertical
12731 (macro_diversion::output, top_level_diversion::output): Likewise.
12732 * troff/div.h: Change declarations accordingly.
12733 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12735 (pending_output_line::pending_output_line,
12736 pending_output_line::output, environment::output,
12737 environment::output_line, environment::output_title,
12738 environment::hyphenate_line): In place of
12739 integer specifying line spacing use cunits specifying post vertical
12741 (environment::environment): Add post_vertical_spacing and
12742 prev_post_vertical_spacing arguments.
12743 (environment::get_post_vertical_spacing): New function.
12744 (environment::total_post_vertical_spacing): New function.
12745 (environment::post_vertical_spacing): New function.
12746 (init_env_requests): Initialize pvs request and .pvs register.
12747 * troff/env.h: Change declarations.
12749 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12751 * tmac/tmac.pspic: Immediately remove the temporary file.
12753 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12755 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12756 height is specified.
12758 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12760 * tbl/table.c (struct vertical rule, class table_entry): Use int
12761 not short for start_row and end_row.
12763 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12765 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12767 (diverted_space_node::reread, process_input_stack): Call
12768 trapping_blank_line() rather than blank_line().
12769 (init_input_requests): Bind "blm" to blank_line_macro().
12771 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12773 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12775 * troff/env.cc (environment::possibly_break_line): Require that
12776 width total excluding width of final space node be greater than
12777 the target text length.
12779 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12781 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12783 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12785 * troff/node.cc (charinfo_node): New class.
12786 (glyph_node, composite_node): Derive from charinfo_node. Change
12787 member functions accordingly.
12789 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12791 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12793 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12795 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12797 * devps/generate/textmap (notsubset): Add.
12799 * tmac/tmac.a4: New file.
12801 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12803 * pic/main.cc (had_parse_error): New variable.
12804 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12806 (main): Return 1 if had_parse_error is true.
12808 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12810 * grolj4/lj4.cc (main): Avoid use of strtoul.
12812 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12814 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12815 iso_8859_1 or $LESSCHARSET is latin1.
12817 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12819 * hpftodit: New directory.
12820 * Makefile.in (CCPROGDIRS): Add hpftodit.
12821 * devlj4/generate: New directory.
12823 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12825 * configure.in: Don't use AC_VFORK.
12826 * groff/pipeline.c (run_pipeline): Use fork() always.
12828 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12830 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12832 * Makefile.in (CCPROGDIRS): Add grolj4.
12833 (DEVDIRS): Add devlj4.
12834 * grolj4, devlj4: New directories.
12835 * tmac/troffrc: Handle lj4.
12836 * tmac/tmac.lj4: New file.
12838 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12840 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12842 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12844 * troff/input.cc (do_if_request): At end of second string, switch
12845 environments before getting next token.
12847 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12849 * devps/psstrip.sed: Split rule that strips whitespace on either
12850 side of delimiters.
12852 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12854 * troff/node.h (font_family::make_definition): Add return value to
12855 declaration. * troff/symbol.h (symbol::operator==,
12856 symbol::operator!=): Likewise.
12858 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12860 * groff/groff.cc (main, help, synopsis): Handle -S.
12861 (possible_command::insert_arg): New function.
12863 * tmac/tmac.safer: New file.
12864 * tmac/msafer.man: New file.
12865 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12867 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12869 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12870 * pic/pic.y (placeless_element): Avoid unsafe operations if
12871 `safer_flag' is set.
12872 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12874 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12876 * eqn/lex.cc (get_token): Put call to add_context() in block to
12877 work around Sun C++ 4.0 bug.
12879 * include/stringclass.h (operator +): Use ?: instead of `if' to
12880 work around Sun C++ 4.0 bug.
12882 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12884 * tbl/main.cc (process_format): Accept - as a synonym for the _
12887 * libbib/index.cc (minus_one): Don't declare as const.
12889 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12891 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12893 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12895 * troff/input.cc (write_macro_request): New function.
12896 (init_input_requests): Bind write_macro_request to writem.
12898 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12900 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12903 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12905 * tmac/tmac.s (@TS): Renamed from TS.
12906 (TS): Call LP then TS again.
12907 (cov*ab-init): Alias @TS to TS.
12909 * tmac/tmac.s: Allow QP or RS to initialize.
12911 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12912 Move initializations of PS and LL here.
12913 (par@init): Don't initialize HY. Avoid changing environment 0.
12914 (par*env-init): Don't all par@reset.
12916 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12918 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12920 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12922 * Makefile.in (MDEFINES): Add LDFLAGS.
12923 (LDFLAGS): Add definition line.
12925 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12927 * troff/input.cc (get_optional_char): Split off error check into...
12928 (check_missing_character): New function.
12929 * troff/token.h: Declare it.
12930 * troff/env.cc (margin_character): Don't call get_optional_char.
12931 Only call tok.next() after making the node.
12933 * include/lib.h (getopt): Make 2nd argument char *const *.
12935 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12937 * nroff/conftest.sh: Deleted.
12939 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12941 * pic/make-dos-dist: Deleted.
12943 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12945 * devps/psstrip.sed: Strip comments before stripping trailing
12948 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12950 * Version 1.09 released.
12952 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12954 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12956 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12958 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12960 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12962 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12963 about returning without a value.
12965 * troff/charinfo.h (charinfo::get_special_translation): Cast
12966 TRANSLATE_NONE to int.
12968 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12969 test. Fix test so that it works with n unsigned.
12971 * pic/pic.y (defaults_table): Fully bracket initializer.
12972 * pic/lex.cc (lookup_keyword): Likewise.
12973 * eqn/lex.cc (token_table, def_table): Likewise.
12974 * eqn/box.cc (param_table): Likewise.
12975 * troff/input.cc (warning_table): Likewise.
12976 * libgroff/font.cc (table): Likewise.
12977 * grops/ps.cc (ps_printer::special): Likewise.
12978 * grops/psrm.cc (resource_manager::process_file): Likewise.
12979 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12980 * refer/command.cc (command_table): Likewise.
12981 * addftinfo/addftinfo.cc (param_table): Likewise.
12983 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12984 about temp's being unused.
12985 (unused): New function.
12987 * groff/pipeline.cc: Declare c_fatal.
12989 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12992 * libbib/index.cc (index_search_item::load): Prevent compiler
12993 warnings about fd_closer's being unused.
12994 (unused): New function.
12996 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12998 * troff/input.cc (copy_mode_error): Make `prefix' static.
13001 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13003 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13004 HAVE_CC_OSFCN_H and modify accordingly.
13006 * troff/input.cc (init_charset_table): radicalex overlaps
13009 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13010 udodo!hans@relay.NL.net).
13011 * groff/configure.in: Call it.
13013 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13014 * groff/configure.in: Call it.
13015 * include/lib.h: Conditionalize declaration of pclose.
13017 * troff/div.cc (last_page_number): New global variable.
13018 (top_level_diversion::begin_page): Exit if we just printed the
13020 * troff/div.h (last_page_number): Declare it.
13021 * troff/input.cc (parse_output_page_list): Set last_page_number.
13023 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13024 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13025 tmac/tmac.X: Likewise.
13026 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13027 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13029 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
13031 * tmac/doc-ditroff (hK): Remove groff specific code which
13032 prevented page-breaks between separate manual entries. If this is
13033 the first page, don't set the page number to 1.
13035 * acgroff.m4 (GROFF_POSIX): New macro.
13036 * configure.in: Use it.
13038 * troff/node.cc (class real_output_file,
13039 real_output_file::real_output_file,
13040 real_output_file::~real_output_file): Conditionalize use of
13041 popen/pclose on POPEN_MISSING.
13042 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13043 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13044 (pipe_source): Similarily.
13046 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13048 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13049 presence of declarations by trying to compile example with
13050 conflicting declarations. (gcc only gives a warning for missing
13053 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
13055 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13056 (from Ulrich Lauther).
13058 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
13060 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13062 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
13064 * indxbib/indxbib.cc (write_hash_table): Add code for case where
13065 pointers and ints have different sizes.
13067 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
13069 * tmac/tmac.s (par*env-init): Call par@reset.
13071 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
13073 * tmac/tmac.s (@IP): Switch to a new environment when diverting
13075 (par*push-tag-env, par*pop-tag-env): New macros.
13077 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
13079 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13080 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
13082 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13083 comment. Include <time.h>.
13085 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
13087 * grops/ps.cc (is_small_h, is_small_v): Deleted.
13088 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13091 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
13093 * troff/input.cc (read_request): Only print a prompt if reading
13094 from the terminal. Also clearerr on EOF if reading from the
13095 terminal. Declare isatty.
13097 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
13099 * refer/label.y: Rename map_t to map_func and extractor_t to
13102 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13104 * include/assert.h: Don't use volatile.
13105 * libgroff/assert.cc: Likewise.
13107 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13109 * troff/input.cc (abort_request): Look at character in tok before
13110 calling get_copy().
13112 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13114 * troff/troff.h (NO_RETURN): Deleted.
13115 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13116 * troff/input.cc (exit_troff): Likewise
13118 * Makefile.in: Remove `Making ...' messages since GNU make now
13121 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13123 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13125 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13126 to constant 1 inch.
13128 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13130 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13132 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13134 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13135 MARK_REG if there was no left delimiter.
13137 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13139 * pic/troff.cc (troff_output::text): Set line thickness to
13140 relative before outputting text.
13142 * tmac/tmac.e (@k): Don't zero ?T.
13145 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13147 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13149 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13151 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13154 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13156 * troff/input.cc (ignoring): New variable.
13157 (ignore): Set ignoring during call to do_define_macro.
13158 (do_define_macro): Clear ignoring before interpolating terminating
13160 (copy_mode_error): New function.
13161 (get_char_for_escape_name, read_long_escape_name,
13162 interpolate_arg): Use copy_mode_error.
13163 (warning_table): Add WARN_IG.
13164 * troff/troff.h (WARN_IG): Declare.
13165 (WARN_TOTAL): Change accordingly.
13167 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13168 * groff/groff.cc (strsignal): Delete declaration.
13170 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13172 * troff/div.cc (page_offset): Use 'm' as default scaling.
13174 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13176 * nroff/nroff.sh: Ignore -u.
13178 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13180 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13182 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13184 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13186 (B2): With -Tascii, leave additional vertical space before
13187 and after. Ensure that the left and right indent is restored to
13188 what it was even if the point size changes. Don't call
13189 par@finish. Change the indent, line length and title length
13190 directly. With -Tascii, make the width of the box 1n less.
13191 (B1): Remember 1n at the current point size. Don't call
13192 par@reset. Change the indent, line length and title length
13193 directly. Ensure that the temporary indent is preserved.
13194 (par*box-mark-top): Turn off no spacing mode.
13196 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13198 * Makefile.in (dist): Use .gz suffix.
13200 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13202 * troff/input.cc (main): Add return 0.
13203 * pic/main.cc (main): Use return instead of exit.
13204 * tbl/main.cc (main): Likewise.
13205 * eqn/main.cc (main): Likewise.
13206 * grops/ps.cc (main): Likewise.
13207 * grotty/tty.cc (main): Likewise.
13208 * groff/groff.cc (main): Likewise.
13209 * grodvi/dvi.cc (main): Likewise.
13210 * refer/refer.cc (main): Likewise.
13211 * indxbib/indxbib.cc (main): Likewise.
13212 * lkbib/lkbib.cc (main): Likewise.
13213 * soelim/soelim.cc (main): Likewise.
13214 * addftinfo/addftinfo.cc (main): Likewise.
13215 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13216 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13218 * troff/token.h (process_input_stack): Don't declare as static.
13219 * troff/input.cc: Likewise.
13221 * troff/node.c (invalidate_fontno): Make it a static member of
13222 class font_family. Change callers.
13223 * troff/node.c: Change declaration.
13225 * tbl/main.cc (struct input_entry_format): Add explicit public
13227 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13228 struct double_hline_stuff): Likewise.
13229 * tbl/table.h (struct entry_format): Likewise.
13230 * pic/object.h (struct saved_state): Likewise.
13232 * include/stringclass.h: Add forward declarations of friend
13233 functions that are later declared as inline. Don't include inline
13234 specifier in friend declaration.
13236 * libgroff/lib.h: Declare popen and pclose.
13237 * acgroff.m4 (GROFF_POPEN): New macro.
13238 * configure.in: Call it.
13240 * include/lib.h (PI): New constant. Undef first if necessary.
13241 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13242 * grops/ps.cc (degrees, radians): Likewise.
13243 * libgroff/font.cc (font::get_skew): Likewise.
13245 * grops/ps.cc (is_ascii): New function.
13246 (ps_output::put_string): Use is_ascii. Use csprint rather than
13248 (ps_printer::define_encoding): Use csspace.
13249 * libgroff/strtol.c (ISASCII): New macro.
13250 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13251 Use ISASCII rather than isascii.
13252 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13253 * libgroff/cset.cc: Likewise.
13254 * libdriver/input.cc: Include cset.h.
13255 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13258 * refer/refer.cc (main): Use %ld rather than %d for longs.
13260 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13263 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13265 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13267 * troff/input.cc (hyphenation_code): Skip white space between
13270 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13272 * tbl/table.h (table::entry_list_tailp): New member.
13273 (table::table): Initialize it.
13274 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13277 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13279 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13280 with negative horizontal positions. Remove casts of glyph::hpos to
13282 (USHRT_MAX): Delete definition.
13283 (SHRT_MAX, SHRT_MIN): New definitions.
13284 (glyph::hpos): Change type to short.
13285 (tty_printer::end_page): Output multiple backspaces if necessary.
13286 Remove casts of glyph::hpos to int.
13288 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13290 * tmac/tmac.s (@RT): New definition.
13292 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13294 * refer/refer.cc (do_file): Make sure current_filename is set when
13297 * pic/common.cc (common_output::dot_line): Handle zero length
13300 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13302 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13303 (par@init): Initialize \n[HY].
13305 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13307 * troff/dictionary.cc (dictionary::remove): Continue when
13310 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13312 * Makefile.com (.y.cc): Avoid ending up with two versions of
13315 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13317 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13318 (\(,C): Likewise. Also fix typo.
13320 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13322 * lib.h: Delete extraneous semi-colon.
13324 * Add pso request: `so' from a pipe.
13325 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13326 (file_iterator::close): New function.
13327 (file_iterator::~file_iterator, file_iterator::next_file): Use
13328 file_iterator::close.
13329 (file_iterator::backtrace): Say `process' rather than `file' when
13330 the stream is popened.
13331 (pipe_source): New function.
13332 (init_input_requests): Bind ".pso" to pipe_source.
13334 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13336 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13338 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13339 digits in lower case.
13341 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13343 * Version 1.08 released.
13345 * Makefile.in (dist): Insert || true after ln -s commands that
13348 * mm: Update to mm 1.16.
13350 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13351 * configure.in: Call GROFF_CSH_HACK. Substitute for
13353 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13355 * nroff/Makefile.sub (nroff): New target.
13356 (install_data): Install nroff.
13357 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13358 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13360 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13362 * eqn/Makefile.sub (neqn): Add chmod +x.
13364 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13366 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13368 * troff/input.cc (string_iterator::string_iterator()): Initialize
13371 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13373 * troff/div.cc (macro_diversion::space,
13374 top_level_diversion::space): Don't set high_water_mark.
13375 (macro_diversion::output, top_level_diversion::output): Don't
13376 include post line space in high water mark.
13378 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13380 * eqn/eqn.y: Don't define YYDEBUG.
13381 * pic/pic.y: Likewise.
13383 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13385 * tmac/tmac.e ([3): Add space after comma following editors.
13386 Change double spaces to single spaces.
13387 ([4): Change double spaces to single spaces.
13389 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13390 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13391 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13392 after %!PS-Adobe- (for Newsprint).
13394 * troff/div.cc (top_level_diversion::begin_page): When
13395 before_first_page is 1, set page_number to 1.
13397 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13399 * eqn/box.cc (box::top_level): Protect equation with \&.
13401 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13403 * groff/groff.cc (possible_command::set_name): Delete old name.
13405 * groff/groff.cc (possible_command::~possible_command): Use
13408 * troff/node.cc (troff_output_file::begun_page): New member.
13409 (troff_output_file::troff_output_file): Initialize it.
13410 (troff_output_file::really_begin_page): Only output V command if a
13411 page has been begun.
13413 * pic/pic.y (placeless_element): Delete argument to PRINT after
13416 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13418 * Make wrapman work.
13419 * troff/div.h (class top_level_diversion): Replace
13420 first_page_begun by before_first_page (with opposite sense).
13421 * Change first_page_begun to before_first_page inverting sense.
13422 * troff/div.cc (class nl_reg): New class.
13423 (init_div_requests): Use class nl_reg for \n(nl.
13424 (top_level_diversion::begin_page): Don't call
13425 output_file::begin_page if before_first_page is 2;
13426 reset before_first_page afterwards. If have_next_page_number is
13427 false, then always increment page_number.
13428 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13429 Restore compatibility mode after loading, and then disable
13430 compatibility mode in TH.
13432 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13434 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13436 * troff/node.h (output_file::trailer): Declare.
13437 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13438 * troff/node.cc (output_file::trailer): New function.
13439 (troff_output_file::~troff_output_file): Move most code into...
13440 (troff_output_file::trailer): New function.
13441 (class troff_output_file): Delete page_length member. Declare
13443 (troff_output_file::really_begin_page): Use current page length
13444 for final V command.
13446 * tbl/main.cc (struct options): New decimal_point_char member.
13447 (options::options): Initialize this.
13448 (process_options): Implement decimalpoint option.
13449 (process_data): Pass decimal_point_char option to table::table.
13450 * tbl/table.h (class table): New decimal_point_char member.
13451 (table::table): Add additional argument.
13452 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13453 second argument specifying decimal point character. Use this
13455 (table::table): Initialize decimal_point_char.
13456 (table::add_entry): Change call to find_dot.
13458 * troff/input.cc (get_copy, token::next): Implement \V.
13459 (interpolate_environment_variable): New function.
13461 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13463 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13464 * pic/pic.y: Likewise.
13466 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13468 * refer/ref.cc (reference::insert_field, reference::delete_field):
13470 * troff/number.cc (parse_term): Likewise.
13472 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13473 * configure.in: Use GROFF_PROG_YACC.
13475 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13477 * Makefile.in (OPTIMIZE): New define.
13478 (DEBUG): Empty by default.
13479 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13481 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13482 (GROFF_ARRAY_DELETE): Likewise.
13483 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13485 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13487 * devps/psstrip.sed: Use different delimiter on last line (so that
13488 it works with BSD 4.4 sed.)
13490 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13492 * devps/psstrip.sed: Delete comments.
13494 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13495 optind, opterr, optarg.
13496 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13499 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13501 * Makefile.in (check): Dummy target.
13503 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13505 * Version 1.07 released.
13507 * Integrate mm 1.11.
13509 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13510 where start_col was meant.
13512 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13514 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13516 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13518 * troff/input.cc (token::next): Make \z\o'...' and similar things
13521 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13523 (environment): Add margin_character_flags member.
13524 * env.cc (environment::environment(symbol),
13525 environment::environment(const environment *): Initialize
13526 margin_character_flags.
13527 (margin_character): Rewrite.
13528 (environment::output_line): Add a margin character if
13529 margin_character_flags is non-zero. Turn off the
13530 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13531 zero, use margin_character_node without copying and then set
13532 margin_character_node to 0.
13534 * devps/DESC.in: Change minimum size to 1000.
13536 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13538 * troff/symbol.h (symbol::hash): Change return type to unsigned
13540 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13543 * test-groff: Use -r rather than -x.
13545 * grops/psfig.diff: Include in distribution again.
13547 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13549 * Makefile.in (dist): Use gzip.
13551 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13553 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13554 unistd.h as well as in stdlib.h.
13555 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13556 defined; otherwise include <sys/types.h> and <unistd.h> if
13557 UNISTD_H_DECLARES_GETOPT is defined.
13559 * configure.in: use builtin(include, ... rather than include(...
13560 * configure: Regenerate with autoconf 1.3.
13562 * libdriver/print.cc (printer::adjust_arc_center): Use new
13563 algorithm suggested by Andy Fyfe.
13565 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13566 * include/printer.h: Declare this.
13567 * grops/ps.cc (ps_printer::draw): Use it.
13568 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13570 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13572 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13574 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13576 * eqn/main.cc (main): Handle "eqn -".
13578 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13580 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13582 * mm: Integrate version 1.08.
13584 * pic/troff.cc (troff_output::finish_picture): Set
13585 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13586 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13587 if it's not defined. Check whether the register is non-zero rather
13588 than whether it's not defined.
13589 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13591 * indxbib/indxbib.cc: Move all signal handling into...
13592 * indxbib/signal.c: New file.
13593 * configure.in: Call AC_RETSIGTYPE.
13595 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13596 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13597 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13599 * troff/input.cc (token::token, token::operator=): Work round SGI
13601 * pic/object.cc (position::position): Likewise.
13603 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13605 * pic/pic.h: Move declaration of hypot().
13607 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13609 * pic/pic.h: Declare hypot().
13611 * pic/pic.h: Define M_PI if necessary.
13613 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13615 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13618 * devps/prologue.ps (RE): Handle the possibility that the old font
13619 doesn't have a FontName entry.
13621 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13623 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13624 (@C): Use @fam not fam.
13626 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13628 * lookbib/lookbib.cc (main): Change type of start to const char *.
13629 * lkbib/lkbib.cc (main): Likewise.
13631 * eqn/lex.cc (definition::definition): Don't use member
13632 initializer syntax for members of anonymous unions.
13634 * troff/input.cc (input_stack::backtrace): Change type of to const
13637 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13639 * include/stringclass.h (class string): Declare inline friend
13640 functions as inline in class declaration.
13641 * troff/hvunits.h (class hunits, class vunits): Likewise.
13642 * include/refid.h (class reference_id): Likewise
13643 * troff/troff.h (points_to_units(units), scale(units, double)):
13644 Delete declarations.
13645 * libdriver/input.cc (get_char): Delete declaration.
13646 * include/lib.h: Change 2nd argument of getopt from const char **
13648 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13649 char **' before assigning to a `const char **'.
13650 * tbl/table.cc: Delete extra declarations of prints().
13652 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13654 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13655 char **' before assigning to a `const char **'.
13657 * libgroff/errarg.cc (errarg::errarg): Don't use member
13658 initializer syntax for members of anonymous unions.
13660 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13662 * mm: Integrate version 1.07.
13664 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13666 * troff/input.c (translate2): Rename to
13667 (translate_no_transparent).
13668 (init_input_requests): Rename tr2 to trnt.
13670 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13672 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13673 (charinfo::set_translation, charinfo::set_special_translation):
13674 Add second argument that specifies value for
13675 transparent_translate.
13676 (charinfo::get_translation, charinfo::get_special_translation):
13677 Add optional second argument that specifies whether translation is
13678 being used for transparent throughput.
13679 * troff/input.cc (charinfo::set_translation,
13680 charinfo::set_special_translation): Handle second argument.
13681 (charinfo::charinfo): Initialize transparent_translate.
13682 (translate): Split main part off into
13683 (do_translate): New function. Pass argument saying whether
13684 translation applies to transparent throughput.
13685 (translate2): New request.
13686 (init_input_requests): Bind translate2 to `tr2'.
13688 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13690 * tbl/table.h (class table): Add `nokeep' flag.
13691 * tbl/main.cc (process_options): Handle `nokeep' option.
13692 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13693 table::do_bottom): Don't output keep/release macro definitions or
13694 calls when `nokeep' option has been specified.
13696 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13698 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13700 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13702 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13703 block_entry::divert, alphabetic_block_entry::divert): Add extra
13704 argument giving column separation.
13705 (table::compute_widths): Pass column separation to
13706 table_entry::divert().
13707 (block_entry::do_divert): If an entry spans multiple columns and a
13708 minimumum width has been specified for each column, then set the
13709 line length to the sum of the widths (plus possibly the column
13712 * troff/input.cc (set_escape_char): Don't set the escape_char
13713 until after calling has_arg().
13715 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13717 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13720 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13721 in case where r > nrows - 1.
13723 * tbl/table.cc (BODY_HEIGHT): Deleted.
13724 (LINE_SEP): New definition.
13725 (table::print_single_hline, table::print_double_hline,
13726 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13727 table::do_row, table::do_top): Use LINE_SEP space before a line
13728 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13730 * tbl/table.cc (text_entry::print_contents): New function.
13731 (text_string_name, right_text_string_name): Deleted.
13732 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13733 (simple_text_entry::do_width, numeric_text_entry::do_width,
13734 alphabetic_text_entry::do_width): Don't store the contents of the
13736 (left_text_entry::simple_print, right_text_entry::simple_print,
13737 center_text_entry::simple_print,
13738 alphabetic_text_entry::simple_print,
13739 numeric_text_entry::simple_print): Print the entry directly
13740 instead of using the stored string.
13742 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13744 * devps/Makefile: Strip PostScript files.
13745 * devps/prologue: Rename to...
13746 * devps/prologue.ps.
13747 * devps/psstrip.sed: New file.
13748 * devps/download: Use .pfa rather than .ps for installed versions
13751 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13753 * troff/env.cc (input_trap): Give a warning if the argument is out
13756 * troff/env.cc (adjust): Treat negative argument as missing. Round
13757 argument > 5 down to 5.
13759 * troff/env.cc (center, right_justify): Make negative argument zero.
13761 * troff/div.cc (page_offset, vertical_position_traps): Treat
13762 invalid argument as missing.
13763 * troff/env.cc (line_spacing, line_length, title_length, indent,
13764 underline, hyphen_line_max_request, control_char,
13765 no_break_control_char, widow_control_request, adjust, input_trap,
13766 point_size): Likewise.
13767 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13768 constant_space): Likewise.
13769 * troff/input.cc (compatible, shift, warn_request,
13770 set_escape_char): Likewise.
13772 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13773 * tbl/table.cc (table::table): Likewise.
13775 * Makefile.dev (install_dev): depends on $(DEVFILES).
13777 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13779 * devX75, devX75-12, devX100, devX100-12: New directories.
13780 * Makefile.in: Add these to DEVDIRS.
13782 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13783 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13784 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13785 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13787 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13788 (uninstall): New target.
13789 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13790 uninstall_prog, uninstall_dev): New targets.
13792 * troff/div.cc (return_request): Treat an invalid argument as
13795 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13797 * tmac/tmac.e ((f): Set up the environment even when there's a
13798 current diversion. Transperently throughput a call to @N.
13801 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13803 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13804 up to vertical resolution.
13806 * tbl/table.cc (table::do_row): Change row number after printing
13809 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13811 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13813 * Rename CHANGES to NEWS.
13815 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13817 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13819 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13821 * man.ultrix: Removed.
13823 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13825 * Makefile.comm (extraclean): Delete files whose names begin with
13828 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13831 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13833 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13834 * troff/div.cc (page_length, need_space, space_request): Treat
13835 invalid optional argument as missing.
13836 * troff/env.cc (number_lines): If the first argument is present
13837 but not a number, turn on line numbering, don't change the next
13838 line number and parse the remaining arguments.
13840 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13842 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13844 * eqn/box.h: Change declaration accordingly.
13845 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13846 the specified size was bad but don't give an error. Check for
13848 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13849 * eqn/lex (do_size): Likewise.
13851 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13853 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13854 compatible headers.
13856 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13858 * tbl/table.cc (table::init_output): Improve error message when
13859 table won't fit on one page.
13861 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13863 * pic/troff.cc (troff_output::start_picture): Generate line
13864 containing a horizontal motion equal to the width of the picture.
13866 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13867 using GROFF_COMMAND_PREFIX environment variable.
13869 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13871 * mdate.sh: Use $NF rather than $(NF).
13873 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13875 * pic/main.cc (main): Use %1 not %c in argument to warning.
13877 * eqn/main.cc (main): Output code to check that geqn was given the
13880 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13882 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13883 `ln -s ../Makefile .; make; rm -f Makefile'.
13885 * troff/hyphen: Rename to...
13887 * troff/input.cc (main): Delete -H option. Don't call
13888 read_hyphen_file().
13889 * troff/env.cc: Include searchpath.h and macropath.h.
13890 (exception_dictionary): Deleted.
13892 (read_hyphen_file): Deleted.
13893 (hyphenation_language): New struct.
13894 (class trie, class hyphen_trie): Move declarations up.
13895 (trie_node::~trie_node): Deleted.
13896 (trie::delete_trie_node): New function.
13897 (trie::do_delete): New pure virtual function.
13898 (hyphen_trie::do_delete): New function.
13899 (trie::~trie): New function.
13900 (hyphen_trie::~hyphen_trie): New function.
13901 (trie::clear): No need to chcek that tp is not 0.
13902 (current_language, language_dictionary): New variables.
13903 (hyphen_word): Give an error if no current language. Use
13904 exceptions dictionary in current language.
13905 (hyphen_trie::read_patterns_file): Find file using macro_path.
13906 Allow comments (starting with %) in patterns file. Don't make it
13907 a fatal error if the file can't be found.
13908 (hyphenate): Return if no current language. Get the exceptions
13909 dictionary and the hyphenation patterns from the current language.
13910 (set_hyphenation_language): New variable.
13911 (hyphenation_patterns_file): New function.
13912 (hyphenation_language_reg): New class.
13913 (hyphenation_language_reg::get_string): New function.
13914 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13915 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13917 * groff/groff.cc (main, help, synopsis): Delete -H option.
13918 * include/Makefile.sub: Don't define HYPHENFILE.
13919 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13920 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13921 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13922 hyphenation patterns.
13924 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13926 * eqn/neqn.sh: New file.
13927 * eqn/Makefile.sub: Handle neqn.sh.
13929 * eqn/eqn.h: Declare `nroff' variable.
13930 * eqn/box.cc (param_table): Add `nroff' param.
13931 (nroff): Define it.
13932 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13934 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13936 * troff/troff.h (WARN_FONT): New warning.
13937 (WARN_TOTAL): Change accordingly.
13938 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13939 (warning_table): Add WARN_FONT.
13940 * troff/node.cc (mount_font_no_translate): Pass argument to
13941 font::load_font. If this is non-zero, give a warning.
13942 Don't give an error message when accessing a font that has already
13943 been found to be invalid.
13944 * include/font.h (font::load, font::load_font): Add additional
13945 optional argument which suppresses error message if the font is
13947 * libgroff/font.cc (font::load_font): Handle additional argument.
13948 (font::load): Add additional argument. If this is non-null, set it
13949 to 1 and don't give error message.
13951 * include/printer.h (printer::end_page): Add argument giving
13953 * libdriver/input.cc (do_file): Pass this.
13954 * grops/ps.cc (ps_printer::end_page): Add argument.
13955 * grodvi/dvi.cc (dvi_printer::end_page,
13956 draw_dvi_printer::end_page): Add argument.
13957 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13958 columns_per_page members. New member nlines.
13959 (DEFAULT_LINES_PER_PAGE): Deleted.
13960 (tty_printer::tty_printer): Don't compute lines_per_page from
13961 font::paperlength. Don't compute columns_per_page from
13963 (tty_printer::add_char): Don't check horizontal position against
13964 columns_per_page. Grow glyphs vector if neccessary.
13965 (tty_printer::end_page): Add argument giving page_length in units.
13966 Discard lines past end of page.
13968 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13970 * tmac/tmac.tty-char: Fix definition of \(/l.
13972 * tmac/tmac.X: Define \(en.
13974 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13976 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13977 lpq, then use lp rather than lpr.
13979 * tmac/tmac.s (par@reset): Don't call `ad'.
13980 (par*env-init): Call `ad'.
13982 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13984 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13987 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13988 * indxbib/indxbib.cc: Likewise.
13990 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13992 * libgroff/putenv.c: New file.
13993 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13994 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13995 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13996 stdlib.h with AC_HAVE_HEADERS.
13998 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
14000 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14003 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
14005 * eqn/box.cc (gsize): Make it an int.
14006 (set_gsize): Parse argument handling increment or decrement.
14007 (box::top_level): Convert gsize to a string.
14009 * troff/input.cc (exit_troff): Make buf unsigned char [].
14010 Call to make_temp_iterator casts buf to char*.
14012 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14014 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14015 * Makefile.cpg (depend.temp): Likewise.
14017 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14019 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14021 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
14023 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14025 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
14027 * Version 1.06 released.
14029 * Integrate mm 1.04.
14031 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
14033 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14035 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
14037 * afmtodit/afmtodit.pl: Add -n option that disables generation of
14039 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14040 afmtodit. Regenerate.
14042 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14043 @f back past the current position.
14045 * tmac/tmac.e: Change calls to @R so that comments are not part of
14048 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
14050 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14052 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14053 check that we can link a call to a function declared in <stdio.h>.
14054 (GROFF_UNISTD_H): New macro.
14055 * configure.in: Call it.
14056 * Makefile.in: Document it.
14057 * include/posix.h: New file.
14058 * troff/troff.h: Don't include <osfcn.h>
14059 * troff/input.cc: Include posix.h.
14060 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14062 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14063 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14065 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14066 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14067 * libbib/search.cc (O_RDONLY): Delete definition.
14068 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14069 Don't include <osfcn.h>.
14071 * acgroff.m4 (GROFF_TIME_T): New macro.
14072 * configure.in: Call it.
14073 * Makefile.in: Document it.
14075 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14076 * configure.in: Call it.
14077 * Makefile.in: Document -DTRADITIONAL_CPP.
14078 * include/ptable.h: Don't include generic.h.
14079 (name2): Define it.
14081 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14082 Afterwards remove [T1 and [T2.
14083 (ref*spec!0, ref*spec!2): Use T1 rather than T.
14084 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14085 (ref*add-T2): Renamed from ref*add-T.
14086 (ref*add-T1): New macro.
14088 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
14090 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14092 * libbib/index.cc: Include <fcntl.h>.
14093 (O_RDONLY): Define if necessary.
14094 (make_index_search_item, index_search_item_iterator::get_tag,
14095 index_search_item::check_files): Use O_RDONLY.
14096 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14097 (O_RDONLY): Define if necessary.
14098 (search_list::add_file): Use O_RDONLY.
14099 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14101 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14104 * libbib/index.cc (S_ISREG): Define it if necessary.
14105 (index_search_item::load): Use S_ISREG.
14107 * include/driver.h: Include <errno.h>.
14109 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14111 * eqn/box.cc (body_height): Increase default value to 85.
14112 (body_depth): Increase default value to 35.
14114 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14116 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14117 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14118 protected from expansion with \E.
14120 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14122 * Makefile (Makefile): New target.
14124 * Makefile.sub (configure, distfiles): New targets.
14126 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14129 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14131 * eqn/box.cc (param_table): Add body_height and body_depth.
14133 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14135 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14137 * psbb/Makefile.sub: Don't link with libgroff.a.
14139 * acgroff.m4 (GROFF_PUTENV): New macro.
14140 * configure.in: Call GROFF_PUTENV.
14141 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14142 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14145 * troff/env.cc (distribute_space): Rename force_forward argument
14146 to force_reverse. Reverse the list if force_reverse is true.
14148 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14150 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14152 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14153 height or depth to be negative. Guard against SUP_RAISE quantity
14156 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14158 * devps/generate/textmap: Add `an' (arrowhorizex).
14159 * tmac/tmac.ps: \(an overlaps horizontally.
14160 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14162 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14163 * devps/textmap: Add arrowvertex.
14164 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14165 updownarrow delimiters.
14166 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14168 * tbl/table.cc (simple_entry::position_vertically,
14169 block_entry::position_vertically): For a centered entry, perform
14170 the motion in two stages.
14172 * refer/refer.cc (split_punct): Don't call lookup_token if there
14175 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14177 * troff/input.cc (token::next): Delete token_node after copying
14180 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14183 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14185 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14187 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14189 * grops/ps.cc (usage): -b option takes an argument.
14191 * devps/prologue (PLG): New procedure.
14192 * grops/ps.cc (main, usage): New -g option.
14193 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14196 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14198 * include/cset.h: Include <limits.h> if we have it.
14200 * libgroff/illegal.cc: New file.
14201 * include/lib.h (illegal_input_char): Use table.
14202 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14203 * pic/lex.cc (ARG1): Renumber to 14.
14204 * eqn/lex.cc (ARG1): Likewise.
14206 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14207 (eg 1.05.90) correctly.
14209 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14211 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14212 Rename $r and $R registers to $v and $V.
14213 ($r, $R): Initialize to 0.
14214 (@v, @V): New macros.
14218 * troff/input.cc (main, usage): Add -R option that says not to
14220 * eqn/main.cc (main, usage): Rename -n to -R.
14222 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14224 * devps/DESC.in: Leave font positions 5-9 blank.
14225 * devdvi/DESC.in: Likewise.
14227 * grog/grog.pl: Handle `.PS <file' correctly.
14229 * troff/input.cc (input_stack::push): Improve error message when
14230 input stack limit exceeded.
14232 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14234 * refer/refer.cc (main): Fix typo in handling of `a' option.
14236 * refer/refer.cc (do_bib): In state START after a newline remain
14239 * groff/groff.sh: Deleted.
14240 * groff/Makefile.sub: Delete handling of groff.sh.
14242 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14243 to determine whether to use \X'ps:...'.
14244 * tmac/troffrc: Set 0p register to 0.
14245 * tmac/tmac.ps: Set 0p register to 1.
14247 * groff/groff.cc: Support -X option. Give warning for -TXps and
14248 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14249 * tmac/troffrc: Support -r.X=1.
14251 * pic/troff.cc (troff_output::dot): Don't test
14252 zero_length_line_flag.
14254 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14256 * include/lib.h: Declare getopt() and friends unless
14257 STDLIB_H_DECLARES_GETOPT is defined.
14259 * doc/chars.tr: Delete.
14260 * man/groff_char.man: New file.
14262 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14264 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14265 user has changed register format.
14267 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14269 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14270 `postpro' command in DESC file. Get spooler command from `print'
14271 command in DESC file. Execute spooler command with /bin/sh.
14273 * groff/groff.cc: Split Unix-specific parts into...
14274 * groff/pipeline.c: New file.
14277 * COPYING: New file.
14278 * all files: Update copyright notices.
14280 * Rearrange files. Redo Makefiles. Use autoconf.
14282 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14284 * troff/input.c (charinfo_to_node_list): Interpret character
14285 definition with escape_char of `\'.
14287 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14289 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14290 Define INT_DIGITS as big enough for 64-bit integer.
14291 * lib/strtol.c: Don't include lib.h.
14292 * lib/lib.h: Delete ifdef __cplusplus stuff.
14294 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14296 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14297 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14298 get DESC from current directory.
14300 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14302 * tbl/main.c (main): Always reset the line number when reading
14305 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14306 table::define_bottom_macro, table::do_row, table::do_top): Round
14307 vertical spacing up to vertical resolution.
14309 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14311 * ps/ps.h (enum resource_type): Avoid comma at end of
14313 * dvi/dvi.c (class dvi_printer): Likewise.
14314 * dvi/tfmtodit.c (gf::load): Likewise.
14315 * refer/label.y (struct expression): Likewise.
14316 * refer/refer.c (class label_processing_state): Likewise.
14317 * refer/indxbib.c (do_file): Likewise.
14318 * troff/troff.c (enum warning_type): Likewise.
14319 * tbl/main.c (process_data): Likewise.
14320 * troff/charinfo.h (class charinfo):
14322 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14324 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14326 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14328 * groff.c: Move to new groff subdirectory.
14329 * groff/Makefile: New file.
14330 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14332 * man/mdate.sh: Use ls -L if supported.
14334 * Consolidate all header files produced by gendef into lib/defs.h.
14335 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14336 Don't include path.h.
14337 * lib/Makefile (path.h): Don't generate.
14338 * troff/input.c: Include defs.h. Don't include config.h.
14339 * troff/Makefile (config.h): Don't generate.
14340 * refer/index.h: Don't include suffix.h.
14341 * refer/index.c: Include defs.h.
14342 * refer/indxbib.c: Include defs.h.
14343 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14345 * refer/Makefile (suffix.h, path.h): Don't generate.
14346 * groff.c: Don't include config.h. Include defs.h.
14347 * Makefile (config.h): Don't generate.
14348 (lib/defs.h): Generate.
14349 (topclean): Remove lib/defs.h.
14351 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14353 * lib/malloc.c, lib/getpagesize.h: Deleted.
14354 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14356 * lib/Makefile: Delete malloc-related stuff.
14357 * lib/new.c: Workaround COOKIE_BUG if necessary.
14359 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14360 needed header files directly.
14361 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14362 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14364 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14366 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14368 * lib/font (font::load_desc, font::load): Don't split argument of
14370 (font::handle_unknown_font_command): Change type.
14371 * ps/ps.c (ps_font::handle_unknown_font_command,
14372 handle_unknown_desc_command): Change type.
14373 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14375 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14377 * lib/font.h (font::handle_unknown_font_command): Add file and
14379 * lib/font.c (font::handle_unknown_font_command):
14380 * ps/ps.c (ps_font::handle_unknown_font_command):
14381 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14382 lineno arguments. Use _with_file_and_line functions for error
14385 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14387 * lib/font.c (font::set_unknown_desc_command_handler): New
14389 (font::load_desc): For unknown commands, call
14390 unknown_desc_command_handler if not null.
14391 * lib/font.h (class font): Declare them.
14392 (FONT_COMMAND_HANDLER): New typedef.
14393 * ps/ps.c (handle_unknown_desc_command): New function.
14394 (main): Set bflag if we had a -b option. Call
14395 font::set_unknown_desc_command_handler.
14396 (broken.h): Don't include.
14397 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14399 * ps/devps/Makefile: Add `broken' command to DESC file using
14400 BROKEN_SPOOLER_FLAGS.
14402 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14404 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14406 * macros/tmac.e (@R, @S): New macros.
14407 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14408 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14409 Declare $H, $[0-9], .. macros with @S.
14410 Declare |0, |1, |2, |3 strings with @S.
14412 * macros/tmac.e (@S): Rename to @U.
14414 * macros/tmac.e (@z): Define @b and bp as empty instead of
14417 * macros/tmac.e (@m): Deleted.
14418 (@h): Don't call @m.
14419 (@z): Don't set @m trap.
14421 * macros/tmac.e ($h, $f): Define |z as empty string.
14423 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14426 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14428 ()f): Likewise for * register.
14430 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14431 argument is missing, don't change $R. Call sr with three
14432 arguments when initializing.
14434 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14436 * macros/tmac.e (sr): New macro.
14437 Initialize $r and $R using sr.
14439 * macros/tmac.e (,): Delete \*(#[.
14441 * troff/env.c (set_tabs): Read the tab type even if the position
14442 is bad. Allow the position of the first tab stop to be negative.
14444 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14446 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14448 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14449 rather than -DPATHCONF_MISSING.
14450 * Makefile: Get rid of PATHCONF_MISSING.
14452 * refer/map.c: New file.
14453 * refer/index.c: Interface to mmap through map.c. Rename map_size
14455 * refer/Makefile: Handle map.c.
14456 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14458 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14460 * Makefile: RANLIB should be `true' if there is no ranlib.
14461 * lib/Makefile (libgroff.a): Simplify.
14462 * driver/Makefile (libdriver.a): Simplify.
14464 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14465 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14468 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14470 * troff/env.c (compare_ranges): Declare as extern "C".
14472 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14474 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14476 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14478 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14479 but conditionalize use of \X based on \*(.T.
14480 (grops_output::*): Deleted.
14481 * pic/output.h: Delete declaration of make_grops_output.
14482 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14483 by default. -n sets it to 0.
14484 (usage): Corresponding changes.
14485 * groff.c (main): Don't pass -x or -p to pic.
14486 * groff.sh: Likewise.
14488 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14491 * ps/devps/afmtodit: Change calculation of asc_boundary and
14492 desc_boundary. Make these bounds inclusive.
14493 * ps/devps: Regenerate font files.
14495 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14497 * macros/tmac.latin1: New file.
14498 * macros/tmac.tty-char: Use tmac.latin1.
14499 (tmac.tty-tr): Deleted.
14500 * macros/Makefile: Install tmac.latin1.
14501 * macros/tmac.dvi: Use tmac.latin1.
14502 * macros/troffrc: Translate \[char160] onto no-break space here.
14503 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14505 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14507 * macros/tmac.Xps: Use `do' request.
14509 * macros/tmac.ps: Use `do' request.
14511 * macros/tmac.e (@C): Use `do' request.
14513 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14514 * macros/Makefile: Install tmac.X*.
14516 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14517 * tty/Makefile: Don't install tmac.tty*.
14518 * macros/Makefile: Install tmac.tty*.
14520 * dvi/tmac.dvi: Move to macros.
14521 * dvi/Makefile: Don't install tmac.dvi.
14522 * macros/Makefile: Install tmac.dvi.
14524 * ps/tmac.ps*: Move to macros.
14525 * ps/Makefile: Don't install tmac.ps*.
14526 * macros/Makefile: Install tmac.ps*.
14528 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14530 * macros/eqnrc: Set draw_lines parameter based on device.
14531 * groff.c: Don't pass -D flag to eqn.
14532 * groff.sh: Likewise.
14533 * eqn/main.c: Warn about use of -D.
14535 * troff/input.c (process_startup_file): New function.
14536 (main): Call process_startup_file().
14537 * macros/troffrc: New file.
14538 * macros/Makefile: Install troffrc.
14539 * groff.c (main): Don't pass extra -m option to troff. For a
14540 pseudo device pass the name of the pseudo device to troff using
14542 * groff.sh: Likewise.
14543 * groff.c (possible_command::prepend_arg): Deleted.
14545 * troff/input.c (do_request): New function.
14546 (init_input_requests): Bind "do" to do_request.
14548 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14549 load eqnrc from macro directory.
14550 * macros/eqnrc: New file.
14551 * macros/Makefile: Install eqnrc.
14552 * ps/devps/eqnchar: Deleted.
14553 * ps/devps/Makefile: Don't install eqnchar.
14554 * dvi/devdvi/eqnchar: Deleted.
14555 * dvi/devdvi/Makefile: Don't install eqnchar.
14556 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14559 * lib/device.[ch]: New files.
14560 * lib/font.h (font::set_device_name, font::get_device_name):
14562 * lib/fontfile.c: Use device.h.
14563 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14564 * troff/input.c: Delete definition of `device'.
14565 (main): Don't initialize device.
14566 * troff/troff.h: Include device.h rather than declaring device.
14567 * troff/Makefile: No need to handle DEVICE.
14568 * driver/input.c: Include device.h. Don't use
14569 font::{set,get}_device_name.
14570 * groff.c, Makefile: Rename device.h to config.h.
14571 * groff.c: Use library device variable.
14572 * eqn/main.c: Use library device variable.
14573 * eqn/Makefile: No need to handle DEVICE.
14575 * lib/searchpath.[ch]: New files.
14576 * lib/Makefile: Handle searchpath.[ch].
14577 * troff/input.c (open_file, init_dirs): Deleted.
14578 (macro_dirs): Deleted.
14579 (open_mac_file, macro_source): Use class search_path.
14580 (add_string, struct string_list): Move definition.
14581 (main): Change -M option to use macro_path. Delete call to
14583 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14584 Rewrite to use class search_path.
14585 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14586 * lib/Makefile: fontfile.c depends on searchpath.h.
14587 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14589 * lib/macropath.[ch]: New files.
14590 * troff/Makefile: No need to handle MACROPATH.
14592 * troff/input.c: Delete DUMP code.
14593 * lib/fontfile.c, lib/font.h: Delete
14594 font::forget_command_line_font_dirs.
14596 * troff/input.c (push_token): New function.
14597 (handle_first_page_transition): Use push_token().
14598 (process_input_stack): Change handling of a space at the beginning
14601 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14603 * troff/input.c (font_dirs): Delete unused variable.
14605 * eqn/lex.c (do_set): Correct error messages.
14607 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14609 * troff/input.c (do_define_string): Allow the string name to be
14610 followed immediately by a tab.
14611 (define_character): Likewise.
14613 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14615 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14618 * troff/input.c (input_iterator::is_file): New virtual function.
14619 (file_iterator::is_file): New function.
14620 (input_stack::end_file): New function.
14621 (input_stack::next_file): Handle the situation where there is no
14622 file on the input stack correctly. Avoid making two passes over
14624 (next_file): Make the filename optional; in this case call
14625 input_stack::end_file().
14627 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14629 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14630 produce a real _ charater when the current font is CW and _
14633 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14634 expression to work around gcc 2.2 bug.
14636 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14638 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14640 * troff/env.c (environment::add_padding): New function.
14641 (environment::add_char): Use add_padding().
14642 (environment::space): Likewise.
14643 (environment::wrap_up_field): Add some padding if there is none
14644 and there's no current tab.
14645 * troff/env.h: Declare environment::add_padding.
14647 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14649 * pic/pic.y: undef fmod and rand before declaring them.
14651 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14653 * troff/input.c (main): If the DESC file specifies a font name of
14654 0, then leave the corresponding font position empty.
14656 * nroff.sh: New file.
14657 * Makefile (install.nobin): Install nroff.sh.
14659 * tty/devlatin1/R.proto: Add ao as synonym for de.
14660 * tty/tmac.tty-char: Define ao as o.
14662 * tty/dev{ascii,latin1}/R.proto: Add aq.
14663 * tty/tmac.tty-char: Delete definition of aq.
14665 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14667 * troff/input.c (init_charset_table): Don't translate 0240.
14668 * ps/tmac.ps: Translate char160 to space.
14669 * dvi/tmac.dvi: Likewise.
14670 * tty/tmac.tty: Likewise.
14672 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14674 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14676 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14677 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14680 * tty/tmac.tty-char: Add \(ah.
14682 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14683 No need to define \(FM and \(!/. Conditionalize all character
14686 * ps/devps/lgreekmap: Add +h, +f, +p.
14688 * ps/tmac.psnew: New file.
14689 * ps/Makefile: Install tmac.psnew.
14691 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14692 character definitions in compatible mode.
14694 * troff/input.c (remove_character): New function.
14695 (init_input_requests): Bind remove_character to "rchar".
14697 * ps/tmac.psold: New file.
14698 * ps/Makefile: Install tmac.psold.
14699 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14700 characters into tmac.psold. Make these definitions unconditional.
14702 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14704 * ps/tmac.ps: Don't define \('c and \('C.
14706 * ps/devps/textmap: Move Greek characters to...
14707 * ps/devps/symbolchars:
14709 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14711 * ps/devps/text.enc: Add quotesingle.
14712 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14713 * tty/tmac.tty-char: Likewise.
14714 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14715 * dvi/devdvi/texi.map: Add Fn.
14716 * dvi/devdvi/msam.map: Add lz.
14717 * dvi/tmac.dvi: Handle Bq, bq, aq.
14719 * pic/lex.c (get_token): Recognize 'th.
14720 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14722 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14724 * ps/devps/textmap: Move di, mu, +- to...
14725 * ps/devps/symbolchars:
14727 * macros/tmac.s (@XS): Don't call par@reset or fi.
14728 (XA): Call LP. Turn off adjustment. Reduce line length.
14730 * macros/tmac.s: Initially alias XS to LP.
14731 (XS): Rename to @XS.
14732 (cov*ab-init): Alias XS to @XS.
14734 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14736 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14737 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14738 (token::is_size, token::changes_env): Deleted.
14739 * troff/number.c (parse_term): No need to process \s explicitly.
14740 Call tok.next() only after scale indicator has been processed.
14741 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14743 (token::next): Handle \s, \f, \S, \H immediately rather than
14744 returning them as tokens.
14745 (token::operator==, token::description, token::add_to_node_list,
14746 token::process): Remove handling of deleted tokens.
14748 * troff/env.c (environment::add_char): When adding padding
14749 indicator character, call start_line() if necessary.
14751 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14753 * ps/devps/afmtodit: Don't output 0 kerns.
14755 * ps/devps/afmtodit: Remove directory from name of encoding in
14756 font description file.
14758 * ps/devps/afmtodit: Improve error messages.
14760 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14762 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14763 * ps/devps/FontMakefile: Deleted.
14764 * ps/devps/afmname: New file.
14766 * ps/devps/symbol.sed: New file.
14767 * ps/devps/symbol.diff: Deleted.
14768 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14769 Generate zapfdr.afm from zapfd.afm.
14771 * tty/tmac.tty (tty-char): Prefix definition with ".
14773 * macros/tmac.an (TP): Don't start a diversion if one has already
14776 * tty/tmac.tty-char: Add Latin-1 characters.
14778 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14780 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14782 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14783 Move declaration of struct horizontal_span.
14785 * tbl/table.c (table::table): Initialize span_list.
14786 (table::~table): Delete span_list.
14788 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14790 * ps/devps/Makefile: Avoid dependency on GNU make.
14792 * ps/tmac.ps: Check that character does not already exist before
14795 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14796 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14797 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14800 * tty/tmac.tty-char: New file.
14801 * tty/Makefile: Install tmac.tty-char.
14802 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14805 * tty/tmac.tty: Fix definition of \(34.
14807 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14808 bracket-drawing characters onto |. Add *o.
14810 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14811 only if current_field.
14813 * troff/dictionary.c (dictionary::lookup): Free old_table after
14816 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14818 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14819 whose glyphs are identical to glyphs of some Roman character.
14821 * tty/devlatin1/R.proto (bu): Deleted.
14822 * tty/devascii/R.proto (bu): Deleted.
14823 * tty/tmac.tty: Add definition of \(bu.
14825 * eqn/main.c (do_file): Pass FILE as argument.
14826 (main): Automatically load eqnchar. New options -F and -n.
14827 Pass do_file an opened FILE.
14828 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14829 No need to include font.h.
14830 * groff.sh: Likewise. Don't need to use - for standard input.
14831 Prefix files with -- if first file starts with -.
14833 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14835 * troff/env.c (environment::possibly_break_line): Don't set line
14836 to 0 across call to output_line(). Don't call output_line() until
14837 after discarding nodes after break.
14839 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14841 * request.h (macro::empty): Declare it.
14842 * input.c (macro::empty): New method.
14843 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14846 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14848 * troff/env.c (environment::start_field): Decrement space_total
14849 when a space is frozen.
14851 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14853 * macros/tmac.an (R): Delete macro.
14855 * troff/input.c (get_copy, token::next): Support \# (like \" but
14856 newline is ignored).
14858 * troff/input.c (token::next): Fix error message in 'Y' case.
14860 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14862 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14865 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14867 * c++test.c: Include <osfcn.h>.
14869 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14872 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14874 * tbl/table.c (table::divide_span): Don't count column separation
14875 if expand was specified.
14877 * tbl/main.c (process_format): Don't ignore width specs in
14878 continued format. Give warning for changing equal widths or
14879 column separation in continued format.
14880 (process_data): Set column separation, minimum width, equal
14881 columns at end of table.
14883 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14885 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14886 node::add_discretionary_hyphen): Use soft_hyphen_char.
14887 (set_soft_hyphen_char): New function.
14888 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14890 * Makefile (c++tested): Give more helpful message if test fails.
14892 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14894 * troff/input.c (init_charset_table): Translate 0240 to
14895 an unbreakable space.
14897 * troff/token.h (token::hyphen_indicator): New function.
14898 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14900 * troff/input.c (translate): Allow translation to \%.
14901 * troff/node.c (node::add_char): Handle
14902 TRANSLATE_HYPHEN_INDICATOR.
14903 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14905 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14908 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14910 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14912 * groff.c (run_commands): If the last command gets a SIGPIPE send
14913 a SIGPIPE to all children than haven't yet terminated. When
14914 command terminates, set pid field to -1.
14916 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14918 * groff.c (main): Pass an appropriate -filename option to gxditview.
14920 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14922 * Makefile.bd (install): Remove existing program before copying.
14924 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14925 programs which have Unix counterparts to be installed with
14926 user-specified prefix.
14928 * troff/input.c (exit_troff): Don't check if exit_started.
14929 (exit_request): Don't call exit_troff if exit_started.
14931 * Makefile.bd (install.mm): Rename to install.dwbmm.
14933 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14935 * driver/input.c (do_file): Add missing break for '#' case.
14937 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14939 * troff/input.c (input_stack::clear): Clear past any boundaries and
14940 then add the boundaries back.
14942 * troff/input.c (exit_troff): Return immediately if already
14945 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14947 (pg*end-page): If the text has ended and there are no more
14948 footnotes or keeps, exit.
14950 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14952 * troff/input.c (init_charset_table): Make \(rq transparent by
14955 * macros/tmac.an: Define lq and rq strings.
14957 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14959 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14961 * troff/env.c (environment::final_break): New function.
14962 (environment::newline): Set prev_line_interrupted to 2 if
14964 * troff/env.h: Declare environment::final_break.
14965 * troff/input.c (exit_troff): Call environment::final_break()
14966 instead of environment::do_break().
14968 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14969 doesn't already exist.
14970 * macros/man.local: New file.
14971 * macros/tmac.an: Load man.local.
14972 * macros/man.ultrix: New file.
14974 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14976 * troff/input.c (exit_groff): Rename to...
14977 (exit_troff): New function.
14979 * troff/div.c (exit_started, done_end_macro,
14980 seen_last_page_ejector): New global variables.
14981 (began_page_in_end_macro): New static variable.
14982 (exit_flag): Deleted.
14983 (top_level_diversion::top_level_diversion): Initialize
14985 (top_level_diversion): More elaborate test for whether
14986 cleanup_and_exit() should be called.
14987 Set began_page_in_end_macro if the end macro isn't yet finished.
14988 * troff/div.h (top_level_diversion::last_page_count): New data
14990 (top_level_diversion::set_last_page): New function.
14991 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14992 * troff/env.c (do_break): Zero prev_line_interrupted.
14993 * troff/input.c (exit_flag): Delete declaration.
14994 (LAST_PAGE_EJECTOR): New magic cookie.
14995 (token::next): Handle LAST_PAGE_EJECTOR.
14996 (exit_groff): Set exit_started and done_end_macro instead of
14997 exit_flag. Call top_level_diversion::set_last_page. Push a
14998 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14999 another ejection after setting seen_last_page_ejector.
15001 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
15003 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15005 * macros/tmac.e (TH): Make sure there's room for the initial
15008 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15009 Set FVS in points rather than units.
15011 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
15013 * troff/div.c (top_level_diversion::add_trap): Don't consider the
15014 position of empty slots.
15016 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
15018 * ps/devps/S: Fix height and depth of parenrightex.
15019 * ps/devps/symbol.diff: Regenerate.
15021 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
15023 * tmac.e (u): Do underlining as in -mgs.
15025 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
15027 * tty/tty.c (tty_printer::end_page): If overstriking is
15028 suppressed, still turn overstruck horizontal and vertical lines
15031 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15034 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15036 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
15038 * Version 1.05 released.
15040 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
15042 * tty/tty.c: Instead of keeping an array of glyphs and then
15043 sorting it, keep a ordered linked list of glyphs for each line.
15045 * driver/driver.h: Include stddef.h.
15047 * tty/tty.c (compare_glyph):
15048 * refer/refer.c (rcompare):
15049 * troff/env.c (compare_ranges): Arguments of qsort comparison
15050 function should be const void *.
15052 * troff/number.c (parse_term):
15053 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15056 * refer/label.y (consider_authors): Don't access variables
15057 constructed under a condition outside that condition: put braces
15058 round for statement containing declaration; redeclare use of same
15061 * pic/pic.y (text_expr): Delete production that allows
15062 parenthesised text_expr.
15063 (expr): Allow a conditional_expr to appear in parentheses.
15064 (conditional_expr): Rename to any_expr.
15066 * mm: Install new version 1.01 from jh.
15068 * lib/font.c (font::get_width): Cache scaled widths.
15069 (font::font): Initialize widths_cache.
15070 (font::~font): Destroy widths_cache.
15071 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15073 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
15075 * c++test.c, c++test.ref: New files.
15076 * Makefile: Check that the C++ compiler works.
15078 * ps/tmac.pspic (PSPIC): Do a break.
15080 * ps/tmac.ps: Move definition of PSPIC into...
15081 * ps/tmac.pspic: New file.
15082 (PSPIC): Draw box around picture, but make it invisible to grops.
15083 * ps/tmac.ps: Load tmac.pspic.
15084 * ps/Makefile: Install tmac.pspic.
15086 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
15088 * lib/font.c (scale_round): If n is negative,
15089 subtract .5 before truncating floating point result.
15091 * lib/fontfile.c: Include <errno.h>.
15093 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
15095 * driver/input.c (get_char): Inline. Don't update current_lineno.
15096 Change callers to up date current_lineno if necessary.
15097 Use get_char() instead of getc(current_file).
15099 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
15101 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15103 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15105 * tty/tty.c (tmac.tty): Define \(rg as (R).
15107 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15109 * lib/lib.h: New define a_delete.
15110 * Use a_delete instead of delete when deleting an array of objects
15111 without destructors.
15113 * lib/lib.h: Rename adelete to ad_delete.
15114 * Change uses of adelete.
15116 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15118 * eqn/eqn.y: Include lib.h.
15120 * troff/node.c (grow_font_table): Delete old_font_table.
15122 * mm: Install new version from jh.
15124 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15126 * tbl/table.h (format_type): Make global instead of local to class
15127 entry_format. Prefix enumerators with FORMAT_.
15128 * tbl/table.c, tbl/main.c: Corresponding changes.
15129 * refer/token.h (token_type): Make global. Prefix enumerators
15131 * refer/token.[ch]: Corresponding changes.
15132 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15134 * troff/div.c (node::set_vertical_size): Don't name argument.
15136 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15138 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15139 * lib/lib.h: Define adelete accordingly.
15140 * pic/object.c (graphic_object::graphic_object):
15141 * tbl/main.c (format::~format):
15142 * tbl/table.c (table::~table):
15143 * refer/ref.c (reference::~reference, reference::merge,
15144 reference::insert_field, reference::delete_field): Use adelete.
15146 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15148 * tbl/table.h: Corresponding changes.
15150 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15151 Ensure total_angle is positive.
15153 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15155 * refer/ref.c (reference::merge, reference::insert_field,
15156 reference::delete_field): Avoid delete[0].
15158 * refer/token.c (init_special_chars): Move calls to cmupper
15159 outside calls to init_two_char_letter to work around bug in gcc
15162 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15164 * lib/new.c (operator new): Use __builtin_new for g++.
15166 * pic/object.c (graphic_object::~graphic_object): Don't use
15169 * pic/object.c (output::compute_scale): Initialize max_width and
15172 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15174 * troff/input.c (write_request): Call fflush.
15176 * troff/node.h (class composite_node): Move declaration to node.c
15177 * troff/input.c (charinfo_to_node): Rename to ...
15178 (charinfo_to_node_list): Return node list rather than composite
15180 * troff/node.c (make_composite_node): New function.
15181 (make_node, add_char): Call make_composite_node instead of
15183 (class composite_node): Add a tfont * member. Delete font_size
15185 (composite_node::composite_node, composite_node::copy,
15186 composite_node::size): Corresponding changes.
15187 (composite_node::tprint): Provide constant spacing, emboldening
15188 and track kerning as specified in tfont.
15189 (composite_node::width): Change width calculation accordingly.
15190 * troff/env.h (environment::composite): New member.
15191 (environment::is_composite, environment::set_composite): New
15193 * troff/env.c (environment::environment): Initialize composite.
15194 * troff/input.c (charinfo_to_node): Call
15195 environment::set_composite.
15196 * troff/node.c (make_composite_node, make_glyph_node): Use the
15197 plain version of the tfont if the environment is composite.
15199 * troff/node.c (font_info::get_space_width): Additional argument
15200 giving space_size. Handle constant space correctly. Scale by
15201 space_size unless constant spaced.
15202 (env_sentence_space_width): New function.
15203 * troff/node.h: Declare it.
15204 * troff/env.h (environment::get_space_size,
15205 environment::get_sentence_space_size,
15206 environment::get_narrow_space_width,
15207 environment::get_half_narrow_space_width): Make inline.
15208 (environment::get_space_width): Make inline. Just call
15210 * troff/env.c: Delete definitions for funtions made inline.
15211 (environment::space_newline, environment::space): Use
15212 env_sentence_space_width(). Don't scale by space_size.
15213 * troff/node.h: Move declarations of env*space_width() functions
15216 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15218 * macros/tmac.s (PS): Don't try to set negative indent.
15220 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15222 * pic/pic.y: Fix min function.
15224 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15226 * man/mdate.sh: Clear LANGUAGE.
15228 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15230 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15231 * pic/lex.c: New COMMAND keyword.
15232 * pic/pic.y (print_args, print_arg): New rules.
15233 (placeless_element): Use print_args for PRINT.
15234 New COMMAND element.
15236 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15238 * troff/input.c (terminal): Handle missing argument correctly.
15240 * pic/pic.y (text_expr): New rule.
15242 * pic/pic.y: Implement := operator.
15244 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15246 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15249 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15251 * ps/devps/dingbatsrmap: Include this in the distribution.
15253 * macros/tmac.doc: Replace with new version from 2nd Networking
15254 Release. Fix loading of doc-* files.
15255 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15256 * macros/tmac.doc.old: New file. Apply fixes that had been
15257 applied to old tmac.doc.
15258 * macros/tmac.andoc: Check that we're running under groff.
15259 * macros/Makefile: Rework.
15261 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15263 * tbl/table.h (format_type):
15264 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15265 typedef to make these types visible at file scope.
15266 * Makefile: Add NESTED_TYPES configuration option.
15268 * troff/div.c (mark): At the top level use the value of
15269 nl_reg_contents rather than the current vertical position.
15271 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15273 * tty/tty.c: Implement \D for horizontal or vertical lines.
15274 (tty_printer::set_char): Use vec_used+2 as serial number.
15275 Don't allow size of vector to exceed USHRT_MAX-2.
15276 Split off part into...
15277 (tty_printer::add_char): New function.
15278 (tty_printer::draw): New function.
15279 (compare_glyph): Handle equal serial numbers.
15280 (tty_printer::end_page): Handle overstruck characters from \D.
15281 (main, usage): Implement -d option.
15283 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15285 * tbl/main.c (process_format):
15286 * eqn/text.c (split_text):
15287 * troff/input.c (token::next): Use inner block for declarations
15288 with initializers in switch statement.
15290 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15292 * pic/common.c (common_output::dash_line): Cope with zero-length
15295 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15297 * Version 1.04 released.
15299 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15301 * macros/tmac.an (TH): Define a macro an-init to define variables
15302 based on command line arguments.
15303 (an-header): Call it.
15305 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15307 * Makefile (install.mm): Rename to install.dwbmm.
15309 * Makefile: Integrate mm.
15310 * mm: New directory.
15312 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15314 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15317 * pic/troff.c (troff_output::simple_spline,
15318 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15319 shadowing parameter.
15321 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15323 * lib/ptable.h: Add explicit casts when converting from unsigned
15326 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15327 * dvi/devdvi/Makefile: Install SA, SB.
15329 * refer/indxbib.c: Add declaration of mktemp.
15331 * refer/lookbib.c: Add declaration of isatty.
15333 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15335 * pic/lex.c (interpolate_macro_with_args): While collecting
15336 arguments, keep track of whether we're in a string.
15338 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15340 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15341 down with \v, so as to avoid problems with top of page trap
15342 setting no space mode.
15344 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15346 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15348 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15350 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15351 Improve error message.
15353 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15355 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15358 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15360 * groff.c (possible_command::execp): Always use _exit() after a
15363 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15364 NO_SYS_WAIT_H configuration options.
15365 * groff.c: Use these options. Use POSIX-style macros to extract
15366 fields from the status returned by wait().
15368 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15370 * tbl/table.c (table::compute_separation_factor): Allow the
15371 separation factor to drop to 0.
15373 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15375 * refer/search.c: Include <errno.h>.
15377 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15379 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15381 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15384 * pic/lex.c (input_stack::bol): Move definition out of class body.
15386 * pic/main.c: On MSDOS munge argv[0].
15388 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15390 * lib/ptable.c (hash_string): Use unsigned long rather than
15392 (next_ptable_size): Use unsigned rather than int. Give an error
15393 message if we've hit the largest table size.
15394 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15397 * pic/object.h (object_spec): Make flags unsigned long. Declare
15398 flags as const unisgned long rather than as enums.
15400 * pic/output.c: Deleted.
15402 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15404 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15405 Add additional argument.
15406 (line_entry::note_double_vrule_on_{left,right}): Set value of
15407 douvle_vrule_on_{right,left} flag according to argument.
15408 (simple_line_entry::simple_print,
15409 simple_line_entry::double_line_print): If adjacent to double vrule
15410 on a corner extend rather than shorten the rule by half the double
15413 * troff/number.c (parse_term): In checking for overflow, handle the
15414 case where the current horizontal position is negative.
15416 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15418 * pic/object.c (draw_arrow): Check for object having zero length.
15420 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15422 * eqn/main.c (do_file): Split off inline equation handling into...
15423 (inline_equation): New function. Search for starting delimiter
15425 (delim_search): New function. Don't recognize a delimiter that
15426 occurs in the name of an escape sequence, number register, string
15429 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15431 * eqn/delim.c (delim_box::compute_metrics): Don't call
15432 define_extensible_string if left is 0.
15433 (delim_box::output): Don't print the left delimiter if left is 0.
15434 (delim_box::debug_print): Check for left == 0 before calling printf.
15436 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15438 * troff/Makefile (majorminor.c): Include only digits in
15441 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15443 * refer/dirnamemax.c: new file.
15444 * refer/genlimits.c: Deleted.
15445 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15446 Don't check path length.
15447 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15448 * Makefile: Add PATHCONF_MISSING option.
15450 * refer/indxbib.c (get_cwd): New function.
15451 (main): Use get_cwd().
15452 * lib/getcwd.c: New file.
15453 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15454 GETCWD in SUBFLAGS.
15455 * lib/Makefile: Compile getcwd.o.
15457 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15460 * refer/indxbib.c (main): Check success of mktemp.
15462 * lib/tmpfile.c: New file.
15463 * lib/Makefile: Add tmpfile.c.
15464 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15465 * ps/ps.h: Delete declaration of mktemp().
15466 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15467 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15468 * driver/driver.h: No need now to include errno.h.
15470 * everywhere: Set errno to 0 before calling fopen().
15472 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15473 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15474 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15476 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15478 * troff/env.h (translate_space_to_dummy): Declare it.
15479 * troff/env.c (environment::space_newline, environment::space):
15480 If translate_space_to_dummy is set then make the width of spaces 0.
15481 * troff/input.c (translate): If the second character of a
15482 translation is a space, translate to unbreakable space. If the
15483 first character is a space, set or clear translate_space_to_dummy
15484 according to whether the second character is \&. Weird!
15486 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15488 * groff.c (run_commands): Don't use non-zero exit code because a
15489 command gets SIGPIPE.
15491 * groff.c, groff.sh: Use -mXps with -TXps.
15493 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15494 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15495 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15496 (ps_printer::special): New specials invis and endinvis.
15497 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15498 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15499 (ps_printer::end_page): Check that invis_count == 0.
15500 (ps_printer::invis_count): New member.
15501 (ps_printer::ps_printer): Initialize invis_count to 0.
15503 * troff/env.c (environment::hyphenate_line): Hyphenation
15504 indicator at beginning of word inhibits splitting after -, \(em
15507 * pic/pic.y (element): Allow another element to follow } without
15508 any intervening separator.
15510 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15512 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15514 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15516 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15517 declaration of wait() in header files.
15518 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15520 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15522 * lib/lib.h: Declare return type of strerror as char *.
15524 * man/Makefile: Add g flag to sed substitutions.
15525 * Makefile (shgroff, bindist): Likewise.
15527 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15529 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15530 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15533 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15535 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15538 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15540 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15543 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15545 * troff/input.c (define_number_reg): If currently undefined,
15546 don't define it if the argument is an invalid expression.
15548 * Makefile: Ignore return value of `if' commands without `else'
15551 * Makefile: Split up CPPDEFINES into a series of separate
15552 configuration options.
15554 * troff/input.c (init_registers): Use time_t instead of long
15555 unless LONG_FOR_TIME_T is defined. Use returned result rather
15556 than passing pointer.
15557 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15559 * lib/Makefile (fontpath.h): Use gendef.
15561 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15563 * troff/input.c (input_iterator::shift): Delete argument name.
15564 * troff/node.c (suppress_output_file::really_begin_page,
15565 suppress_output_file::really_transparent_char, node::ascii_print,
15566 node::tprint): Delete names of unused arguments.
15568 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15570 * refer/label.y (string): Pass $4 to command_error.
15572 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15574 * Version 1.03 released.
15576 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15578 * Makefile: Pass definition of SHELL in SUBFLAGS.
15580 * gendef: New file.
15581 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15582 ps/Makefile: Use gendef to construct header files that are
15583 constructed from the Makefile.
15585 * macros/Makefile: make all should build stripped version of tmac.e.
15587 * refer/Makefile (clean): Remove y.output.
15589 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15591 * ps/pfbtops.c (main): Add -v option which prints out a version
15593 * ps/Makefile (pfbtops): Link with libgroff.a.
15595 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15597 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15598 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15600 * refer/lkbib.c (main): Always terminate reference with blank
15602 * refer/lookbib.c (main): Likewise.
15604 * refer/linear.c (file_buffer::load): Check that the file is not a
15607 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15608 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15609 Delete second inclusion of <sys/param.h>.
15611 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15613 * troff/token.h (token::special): Deleted.
15615 * tbl/main.c (process_format): Rework so that opt->tab_char is
15616 recognized only when appropriate.
15618 * ps/Makefile (clean): Remove pfbtops.
15620 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15622 * lib/font.c (text_file::next): Don't return if we have got a
15625 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15627 * refer/refer.c (store_reference): Get hash code from old_table[i]
15628 when rehashing the table.
15630 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15632 * eqn/box.c (box::top_level): Save size and prev size using \R and
15633 restore it afterwards. Set the size to the size at the beginning
15635 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15636 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15638 * refer/Makefile (limits.h): Use ./genlimits.
15640 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15642 * refer/index.c: Delete declarations of stat() and fstat().
15644 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15646 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15648 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15650 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15652 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15654 * troff/input.c (token::get_char): Handle \e.
15656 * refer/linear.c: Delete declarations of fstat() and stat().
15658 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15660 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15661 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15663 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15665 * troff/input.c (do_define_macro): Improve error handling for end
15666 of file while defining macro.
15668 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15670 * eqn/box.h: Fix declaration of set_gsize.
15671 * eqn/box.c (set_gsize): Make argument const char *.
15672 (gsize): Declare as char *.
15673 * eqn/main.c (main): Don't convert gsize to int.
15674 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15676 * Version 1.02 released.
15678 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15680 * macros/tmac.andoc: New file.
15681 * macros/Makefile: Install tmac.andoc.
15683 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15684 operator new and delete on OP_DELETE_BROKEN not being defined.
15685 * Makefile: Mention OP_DELETE_BROKEN.
15687 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15689 * Makefile (bindist): Pass SUBFLAGS.
15691 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15693 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15695 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15698 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15700 * ps/ps.h, ps/psrm.c: Make comment_table and
15701 header_comment_table local to resource_manager::process_file.
15703 * groff.sh: With -TXps pass -printCommand option to gxditview.
15705 * groff.c (possible_command::print): Implement using
15706 append_arg_to_string.
15708 * xditview: Merge in new implementation with own ChangeLog.
15710 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15712 * groff.c (main): Implement PRINT_OPTION.
15713 (append_arg_to_string): New command.
15714 (device_table): Set PRINT_OPTION flag for Xps.
15716 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15718 * troff/groff.h: Rename to troff.h.
15720 * pic/lex.c (lookup_keyword, docmp): New functions.
15721 (get_token): Use new lookup_keyword.
15722 Don't include key.h.
15723 * pic/key.[ch], pic/pic.gperf: Deleted.
15724 * pic/Makefile: Remove gperf stuff.
15726 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15728 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15730 * troff/Makefile, troff/node.c: Move definition of
15731 STORE_WIDTH into node.c.
15733 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15735 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15737 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15738 dvi/devdvi/texb.map: Add lq and rq.
15739 dvi/devdvi: Regenerate fonts.
15740 * ps/devps/textmap: Add lq and rq.
15741 * ps/devps: Regenerate fonts.
15742 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15743 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15745 * pic/object.c (position_rectangle): When checking radius
15746 cope with possiblity that width or height is negative.
15747 (box_object::box_object): Have separate xrad and yrad with
15748 signs matching signs of dim components.
15749 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15750 (box_object::print): With rounded boxes use absolute values
15751 for dim and rad arguments.
15753 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15756 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15758 * various files: Add explicit destructors to keep Saber CC +d
15761 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15763 * eqn/box.c (box::top_level): Restore fonts correctly after
15764 font changes in line containing inline equation. Also
15765 restore previous font as well as current font.
15766 * eqn/pbox.h: Define necessary string and register names.
15768 * troff/input.c (token::next): Case 'R' calls do_register.
15769 (do_register): New function.
15771 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15773 * groff.c, groff.sh: Support Xps device. Allow each device
15774 to have a pseudo_name and a real_name.
15776 * groff.c (run_commands): Don't print `Broken pipe' messages.
15778 * ps/pfbtops.c: New file.
15779 * ps/Makefile: Add pfbtops.
15781 * troff/number.c (parse_term): Improved error message.
15783 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15785 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15787 * Makefile: Integrate refer.
15788 * refer: New directory.
15789 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15790 man/lkbib.man: New files.
15791 * man/Makefile: Support refer man pages.
15793 * lib/lib.h: Declare is_prime.
15794 * lib/prime.c: New file.
15796 * troff/input.c (macro_source): New function.
15797 (init_input_requests): Bind "mso" to macro_source.
15799 * troff/env.c (environment::possibly_break_line): Maintain
15800 pointer to pointer to node to be split in ndp so as to avoid
15801 using address of freed node.
15803 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15804 pointer to first node to be hyphenated in startp so as to
15805 avoid using address of freed node.
15807 * troff/env.c (class trie, class hyphen_trie): Make the
15808 elements of the trie be of type char not unsigned char.
15809 Declare arguments to be const char* instead of unsigned char *.
15811 * troff/env.c (hyphenate): Initialize hbuf[0].
15813 * troff/input.c (set_string): Declare p to be char * and cast
15814 *p to unsigned char when necessary.
15816 * troff/input.c (do_define_macro): Declare s to be const
15817 char*. Cast element to unisgned char when necessary, Declare
15818 d to be an int. Handle EOF better.
15820 * troff/Makefile, troff/input.c: Different scheme for passing
15821 definitions of MACROPATH, HYPHENFILE and DEVICE.
15823 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15825 * tty/devascii/R.proto: Delete entry for em.
15826 * tty/devlatin1/R.proto: Likewise.
15828 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15830 * troff/input.c (translate): Stop when we get a space. Treat eof
15833 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15835 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15837 * tbl/main.c (process_format): A font name following a `f'
15838 modifier that starts with a digit can be only one character long.
15839 Also deal with EOF on the second character of the font name.
15841 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15843 * troff/input.c (token::next): Turn \~ into an
15844 unbreakable_space_node.
15845 * troff/node.c (unbreakable_space_node): New class.
15846 * troff/node.h: Declare it.
15848 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15850 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15851 it's >= 0, before outputting it as a single byte.
15853 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15855 * lib/font.c: Make font_char_metric::code an int.
15856 (font::get_code): Change return type to int.
15857 (font::load): Allow code to be arbitrary integer.
15858 * lib/font.h (font::get_code): Change return type to int.
15859 (font::number_to_index): Change argument type to int.
15860 * troff/input.c (token::next): In case 'N', allow any value.
15861 Store value in token::val.
15862 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15863 (token::get_char, token::add_to_node_list, token::process): Get
15865 (charinfo::set_number): Change argument to int.
15866 (charinfo::get_number): Require that NUMBERED flag be set.
15867 (get_charinfo_by_number): Store numbered characters not between 0
15868 and 255 in a dictionary.
15869 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15871 (charinfo::number): Change type to int.
15872 (charinfo::set_number): Change type of set_number to int.
15873 * troff/node.c (troff_output_file::put_char_width,
15874 troff_output_file::put_char): Test whether character is numbered
15875 using charinfo::numbered().
15876 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15878 * lib/nametoindex.c: New implementation to cope with arbitrary
15881 * troff/input.c (token::operator==): Test val for
15882 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15885 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15886 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15888 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15890 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15893 * all Makefiles: rm targets of cp and >.
15895 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15898 * eqn/lex.c (def_table): Add dollar.
15900 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15902 * troff/input.c (do_width): Push back newline before closing delim
15905 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15907 * groff.c (possible_command::prepend_arg): New function.
15908 (main): Prepend device -m option.
15909 * groff.sh: Put device -m options before command-line options.
15911 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15913 * macros/tmac.an (IP): Quote argument to TP.
15915 * ps/ps.c (main): New option -b, which sets...
15916 (broken_flags): New variable.
15917 (ps_printer::~ps_printer): Incorporate the setup section in the
15918 prolog if (broken_flags & NO_SETUP_SECTION).
15919 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15920 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15921 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15922 ps_printer::print_needed_font_comment,
15923 ps_printer::print_supplied_font_comment,
15924 ps_printer::print_include_font_comments,
15925 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15926 ps_printer::read_download_file, read_document_fonts, add_font,
15927 skip_line, parse_fonts_arg, document_font::document_font,
15928 document_font::~document_font, document_font::download,
15929 ps_output::include_file): Deleted.
15930 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15931 rather than %!PS-Adobe-2.0. Make calls to
15932 resource_manager::need_font for each font that we used. Replace
15933 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15934 print_supplied_font_comment, print_needed_font_comment by call to
15935 resource_manager::print_header_comments. Output %%Orientation
15936 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15937 Don't output the prolog directly. Instead call
15938 resource_manager::output_prolog. Only define #copies when ncopies
15939 > 1. Delete calls to print_include_font_comments and
15940 download_fonts. Add call to resource_manager::document_setup.
15941 (ps_printer::do_file): Call resource_manager::import_file instead
15942 of including it ourselves.
15943 (ps_printer::do_import): Likewise. Also don't call
15944 merge_import_fonts. Push userdict on the dictionary stack before
15945 and pop it afterwards.
15946 Move declaration of ps_output into ps.h.
15947 * ps/psrm.c: New file implementing resource_manager class.
15948 * ps/ps.h: New file declaring ps_output and resource_manager
15950 * ps/devps/zapfdr.ps:
15951 * ps/devps/symbolsl.ps:
15952 * ps/devps/prologue: Use 3.0 conventions.
15953 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15954 Add default definition of BROKEN_SPOOLER_FLAGS.
15955 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15956 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15958 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15960 * etc/grog.pl: New file.
15961 * Makefile (GROG): New variable.
15962 Add GROG to SUBFLAGS.
15963 * etc/Makefile (GROG): New variable.
15964 (install.nobin): Install $(GROG) rather than grog.sh.
15966 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15968 * eqn/special.c (special_box::compute_metrics): Make the input and
15969 output strings the same. Get the new height and depth from the
15970 predefined height and depth registers. Also make subscript kern
15971 and skew available.
15972 (special_box::compute_subscript_kern, special_box::compute_skew):
15975 * eqn/box.c (pointer_box::compute_skew,
15976 simple_box::compute_metrics, box::top_level)
15977 * eqn/text.c (prime_box::compute_metrics,
15978 prime_box::comput_subscript_kern)
15979 * eqn/limit.c (limit_box::compute_metrics):
15980 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15981 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15982 negative numbers in `nr' requests with a leading 0.
15984 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15986 * eqn/special.c: New file.
15987 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15988 Add new rule for simple.
15989 * eqn/lex.c (token_table): Add SPECIAL.
15990 * eqn/box.h: Declare make_special_box.
15991 * eqn/Makefile: Add special.[co].
15993 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15995 * ps/devps/prologue: Possibly set packing to true while defining.
15996 Create grops dictionary here. Initialize local variables before
15997 defining procedures.
15998 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15999 the dictionary stack. Set strokeadjust and overprint to false if
16000 the relevant operators are defined.
16001 (PEND): New procedure.
16002 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16003 prologue. Do everything else in the setup section.
16004 (ps_printer::do_import): Just call PBEGIN and PEND around the
16005 picture. Also push userdict before, and pop it afterwards.
16007 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
16009 * troff/node.c (bracket_node::tprint): Brackets were being printed
16012 * macros/tmac.an (SH, SS): Set fill mode.
16014 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
16016 * troff/div.c (top_level_diversion::begin_page): Set
16017 high_water_mark to 0.
16019 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
16021 * man/mdate.sh: New file.
16022 * man/mdate.c: Deleted.
16023 * man/Makefile: Use mdate.sh instead of mdate.
16026 * eqn/lex.c (do_gsize): Supply missing argument to error message.
16028 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
16030 * man/mdate.c: New file.
16031 * man/*.man: Replace modification date by @MDATE@.
16032 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16033 (mdate): New target.
16035 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16036 Remove illegal input characters.
16038 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
16040 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16042 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
16044 * troff/div.c (begin_page): Change behaviour when
16045 !first_page_begun and !break_flag.
16047 * troff/input.c (do_name_test): Return 0 if argument is empty.
16049 * troff/input.c (read_long_escape_name): Require closing ] to be
16050 at same input level as opening [.
16052 * troff/input.c (read_increment_and_escape_name): New function.
16053 (get_copy, process_input_stack): Use this for \n.
16055 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
16057 * troff/div.c (top_level_diversion::begin_page): Ignore the
16058 current value of page_number if !first_page_begun.
16060 * groff.c (main): Fix declaration of buf.
16062 * troff/input.c (do_name_test): New function.
16063 (token::next): Implement \A.
16064 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16065 (token::description, token::add_to_node_list, token::process):
16066 Handle TOKEN_ESCAPE.
16067 * troff/token.h: New token TOKEN_ESCAPE.
16069 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
16071 * pic/main.c (do_picture): Allow space before and after filename
16072 following `<'. Check that the filename is not empty.
16074 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
16076 * Version 1.01 released.
16078 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16080 * dvi/tmac.dvi: ftr HR to H.
16082 * macros/tmac.e: Round up computation of $r.
16084 * xditview/tmac.X: Don't give up completely in compatibility mode.
16085 Use \n(.s instead of \n[.s].
16087 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16088 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16089 Add u to factors inside \s[...]. Rename frac to dvi-frac.
16090 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16091 short names in the char definitions.
16093 * ps/tmac.ps: Don't give up completely in compatibility mode.
16094 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16095 quote in front of \n(.s. Add u to factors inside \s[...].
16097 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
16099 * tty/tmac.tty: Call the nroff request.
16101 * macros/tmac.e ((x, )x): Better definitions that work properly
16103 (@0, @1): Helper macros for (x.
16105 * macros/tmac.e ($s, hl): Use \l rather than \D.
16107 * tty/tmac.tty: Make it work better in compatibility mode.
16108 (pchar): Rename to tty-char.
16110 * macros/tmac.e (@E): New macro.
16111 (r, i, b, rb, bi): Use @E.
16113 * macros/tmac.e (@F): Don't use (;...) syntax.
16115 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16116 it was modified for groff.
16118 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16120 * macros/tmac.e (<., .>): Removed.
16121 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16123 * macros/tmac.e: Remove check that groff is being used.
16125 * macros/tmac.e (@C): Change families only if using groff; turn
16126 compatibility mode off while changing familes. Save compatibility
16127 mode before changing families and restore it afterwards.
16129 * macros/tmac.e (@h): Remove test for offset + line length.
16131 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16132 (lo, th, ac): Define to call @S instead of using als.
16134 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16135 the ratio of the vertical spacing to the point size in units
16136 expressed as a percentage. Use these instead of $10r and $10R,
16137 Delete $10r and $10R.
16139 * lib/font.c (font::load): In default computation of space_width,
16140 divide by sizescale. Use scale_round.
16142 * macros/tmac.an (TP): Don't call `nf'.
16143 (an-do-tag): Don't call `fi'.
16145 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16147 * troff/input.c (process_input_stack): Handle the case where
16148 spaces at the beginning of an input line are followed by a
16151 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16153 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16154 * groff.sh: Use pic -x with the dvi device.
16156 * dvi/devdvi/FontMakefile (H): Don't use -s.
16158 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16159 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16160 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16163 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16165 * ps/psfig.diff: New file.
16166 * ps/tmac.psfig: New file.
16168 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16170 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16171 (]-): Don't call ref*do-tl.
16173 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16175 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16176 (fn@do-FS): Rename to fn*do-FS.
16178 * troff/input.c (transparent_translate): New function.
16179 (process_input_stack): Apply transparent_translate before calling
16180 diversion::transparent_output(unsigned char).
16182 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16184 * troff/input.c (do_define_macro): Define the macro before calling
16187 * xditview/Makefile: Add DEVICES variable. Change install target
16190 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16192 * groff.c (run_commands): Handle the possibility that there are
16193 child processes other than those forked by us.
16195 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16197 * lib/string.c (string::append): New function.
16198 * lib/stringclass.h: Declare it.
16200 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16202 * eqn/main.c (main): New option -N which sets
16203 no_newline_in_delim_flag.
16204 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16206 * groff.c (main): Pass -N on to eqn.
16207 (help, synopsis): Mention -N.
16208 * groff.sh: Implement -N.
16210 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16212 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16213 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16214 (XP): Allow as initializer.
16216 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16218 * troff/env.c (environment::wrap_up_field): If field_spaces are
16219 non-zero and we have a current_tab, subtract padding from
16220 tab_distance. If this makes tab_distance <= 0, use the next tab
16221 stop instead. If there isn't any next tab or it's a left tab,
16222 wrap up the current tab.
16223 (environment::start_field): Initialize tab_precedes_field.
16224 (environment::wrap_up_tab): If there's a current field, update
16225 pre_field_width, field_distance and tab_precedes_field.
16226 * troff/env.h (environment::tab_precedes_field): New member.
16228 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16230 * ps/ps.c (ps_printer::do_file): New function.
16231 (ps_printer::special): Bind to `file' special.
16232 (ps_printer::do_exec): Set ndefined_styles to 0.
16234 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16236 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16237 Avoid stripping first character from the start of unrecognized
16238 escapes. Use lex_error instead of error to report errors.
16239 * eqn/lex.c (get_token): Rework handling of escapes.
16240 (lex_error): Move declaration into...
16243 * xditview/xditview.c (main): Make -page option work.
16245 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16247 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16249 * macros/tmac.s (B2): Correct size of box.
16251 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16253 * macros/tmac.s (B2): Postpone drawing the box until in the
16254 top-level diversion.
16256 * tty/tmac.tty: Add font translations for C, CR, CW.
16258 * groff.c (synopsis, help): Document -i.
16259 * groff.sh: Implement -i.
16261 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16262 Simplify the construction of SN.
16264 * troff/number.c (parse_term): Give `|' a higher precedence.
16265 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16268 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16270 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16272 * lib/string.c (string::move): New function.
16273 * lib/stringclass.h: Declare it.
16275 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16277 * troff/env.c (distribute_space): Add optional argument
16279 (environment::wrap_up_field): Call distribute_space with
16280 `force_forward' argument of 1.
16282 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16284 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16285 Inline it. Move reallocation into...
16286 (string::grow1): New function.
16287 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16288 dependencies to include library header files.
16289 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16291 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16293 * macros/tmac.s (@NH): Use the same number registers than -ms does
16294 for the heading level counters. Use the same string that -ms does
16295 for the number for this heading.
16297 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16299 * lib/new.c (operator new): Cast result of malloc to char *.
16301 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16304 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16306 * groff.c (main): Support -i.
16308 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16310 * pic/pic.h: Include <osfcn.h>.
16312 * ps/ps.c: Add declaration of mktemp.
16314 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16315 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16316 argument as union wait *.
16317 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16318 argument to union wait *.
16320 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16322 * tty/tmac.tty: Add definition of \(co.
16324 * pic/object.c (make_arc): Only increase radius when radius
16325 strictly less than d.
16326 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16329 * troff/env.c (environment::environment(symbol),
16330 environment::environment(const environment *)): Initialize
16333 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16335 * tbl/main.c (main): Add exit(0).
16337 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16339 * pic/main.c (main):
16340 * eqn/main.c (main):
16341 * tbl/main.c (main):
16342 * etc/soelim.c (main):
16343 * driver/printer.c (printer::~printer):
16344 * troff/node.c (real_output_file::~real_output_file,
16345 real_output_file::flush): Check for errors on stdout.
16347 * most files: Add 1991 to copyright notice.
16349 * macros/tmac.s: Don't test \n(.x and \n(.y.
16351 * troff/input.c (token::next): Rename `escape_char' label to
16352 `handle_escape_char' and `normal_char' label to
16353 `handle_normal_char'.
16355 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16357 * groff.c (main, synopsis, help): Support -a option.
16358 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16359 to trflags while parsing options.
16361 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16363 * troff/number.c (parse_term): With `m', `M' and `n' scale
16364 indicators, convert scale factor to hunits before scaling.
16366 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16368 * lib/font.c (scale_round): Better test for overflow when n is
16371 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16373 * tbl/main.c (process_format): Add second argument of type
16374 options*. Change callers. Allow opt->tab_char as well as '\t'
16375 between format items.
16377 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16379 * macros/tmac.an (PD): With no arguments, make sure register PD is
16381 (TH): Call PD with no argument, instead of setting register PD
16384 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16386 * Version 1.00 released.
16388 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16390 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16392 * dvi/devdvi/DESC: Mount CW instead of CR.
16394 * dvi/tmac.dvi: Add definition of \(tm.
16396 * dvi/devdvi/texsy.map: Add lh, and rh.
16397 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16398 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16400 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16401 * dvi/devdvi/Makefile: Install H.
16402 * dvi/devdvi/H: New file.
16404 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16406 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16409 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16411 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16413 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16415 * macros/tmac.s (@EN): Handle the case where the equation is empty
16416 but the label is not.
16418 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16420 * troff/groff.h: New warning category WARN_SPACE.
16421 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16422 WARN_SPACE to warning_table.
16423 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16424 is longer than two characters and is not defined, but the first
16425 two characters do make a defined name.
16427 * PROBLEMS: New file.
16429 * CHANGES: New file.
16430 * README-0.6, README-1.00: Deleted.
16432 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16433 * xditview/devX75/Makefile: Make devX75-12.
16434 * xditview/devX100/Makefile: Make devX100-12.
16436 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16437 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16439 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16441 * README-0.7: Rename to README-1.00.
16443 * macros/tmac.pic: New file.
16444 * macros/Makefile (install.nobin): Install tmac.pic.
16446 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16448 * troff/env.c (hyphen_word): Correct the test for whether the
16449 token is a hyphen. Reset npos to 0.
16451 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16453 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16455 * macros/tmac.s (ds*common-end): Call par*reset.
16457 (par@reset-indent): Deleted.
16459 * macros/tmac.s (@IP): Divert the label.
16461 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16463 * xditview/draw.c (setGC): Use a line width of .1m rather than
16464 .04m by default; round rather than truncate value.
16466 * tbl/table.c (class empty_entry): New class.
16467 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16468 (table::add_entry): Represent empty entries by objects of type
16470 (table_entry::line_type): Return -1.
16471 (table::determine_row_type): Ignore entries with line_type 0.
16472 Treat type -1 as non-lines.
16474 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16476 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16477 macros/tmac.s: Rename \(-d to \(Sd.
16479 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16481 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16482 * xditview/libXdvi/DviChar.c: Likewise.
16483 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16485 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16487 * troff/div.c (top_level_diversion::begin_page): Call
16488 init_output() if the_output is 0.
16490 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16492 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16494 (get_copy): Turn \E into ESCAPE_E.
16495 (token::process, asciify): Handle ESCAPE_E.
16497 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16499 (DS): Implement `.DS R'.
16501 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16503 * macros/tmac.s (FS): New macro.
16505 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16507 * macros/tmac.s (cov*tl-init): Remove after first execution
16508 instead of aliasing to @nop. Call top of page macro explicitly
16509 instead of setting trap; call @init first. Set pg@top as top of
16511 (cov*auto-init): Deleted. Set cov*tl-init instead of
16512 cov*auto-init as top of page trap.
16513 (TL, LP): Do a break instead of calling cov*tl-init.
16514 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16515 @FE; in this case also give a warning and always start another
16516 page. No need to set pg@top here.
16517 (cov*tl-init): Rename to cov*first-page-init.
16519 * macros/tmac.s (RP): Do `.pn 0'.
16520 (cov*tl-init): With RP format don't do `.pn 0'.
16522 * macros/tmac.s (pg@cs-top): Set no space mode.
16524 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16525 (cov*ab-init): Alias TL, AU and AI to these.
16527 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16529 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16530 (@EN): Do nothing unless \n[dl] is > 0.
16532 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16534 * pic/object.c (ellipse_object::radius): New function.
16536 * VERSION: Change version to 0.7.
16538 * tbl/table.c (block_entry::do_divert): Declare return type as
16540 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16542 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16544 * troff/column.c: New file.
16545 * troff/Makefile: Corresponding changes.
16547 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16550 * troff/div.c (top_level_diversion::space): If the space causes
16551 the first-page transition and springs a trap, truncate the space
16554 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16556 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16559 * pic/troff.c (troff_output::line_thickness,
16560 troff_output::set_fill): Do a horizontal motion to compensate for
16561 the width of the \D escape sequence.
16563 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16565 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16568 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16571 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16572 Supply empty definition.
16573 (text_entry::simple_print, simple_text_entry::simple_print):
16574 Delete declarations.
16575 (table::add_entry): Represent empty entries by objects of type
16578 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16580 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16582 * tbl/table.c (left_text_entry::add_tab): New function.
16584 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16585 initialize like LP.
16587 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16589 * troff/env.c (environment::start_field): Give an error message if
16590 there is no next tab.
16592 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16594 * troff/env.c (hyphenate): Skip initial elements with zero
16597 * macros/tmac.s (par@init): Keep VS in points rather than units.
16599 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16601 * pic/main.c (main): Implement `-c' option.
16602 * pic/output.h: Declare make_tpic_output().
16603 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16605 (tpic_output): New class.
16606 (tpic_output::tpic_output, tpic_output::set_pen_size,
16607 tpic_output::command, make_tpic_output): New functions.
16609 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16611 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16612 if they're not already defined.
16613 * tbl/table.c (init_output): Don't test \n(.g.
16615 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16616 `d', `r' and `c' conditions even in compatibility mode.
16618 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16620 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16623 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16625 * troff/env.h (environment::prev_line_interrupted): New member.
16626 (environment::get_prev_line_interrupted): New function.
16627 * troff/env.c (environment::newline): Set prev_line_interrupted.
16628 (environment::environment(const environment *),
16629 environment::environment(symbol)): Initialize
16630 prev_line_interrupted.
16631 * troff/input.c (process_input_stack): Don't give special
16632 treatment to space and newline at the beginning of the line if the
16633 previous line was interrupted.
16635 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16637 * eqn/eqn.y: Disallow PRIME by itself.
16638 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16640 (def_table): Remove definition of '. Define prime to be `.
16642 * eqn/eqn.y: Split off part of rule `script' into a new rule
16645 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16647 * macros/tmac.s ({, }): New string aliases.
16649 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16651 * README-0.7: New file.
16653 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16655 * macros/tmac.s: New file.
16656 * man/groff_ms.man: New file.
16657 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16658 * Makefile.bd: Similarily.
16659 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16660 definition of TMAC_S.
16661 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16662 * macros/TODO: New file.
16664 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16666 * troff/env.c (right_justify): New function.
16667 (init_env_requests): Bind this to request "rj".
16668 (center_lines): Set right_justify_lines to 0. If we get a bad
16669 integer, center 1 line.
16670 (environment::environment(symbol), environment::environment(const
16671 environment *)): Initialize right_justify_lines.
16672 (environment::get_right_justify_lines): New function.
16673 (init_env_requests): Bind this to number_register ".rj".
16675 * troff/env.c (environment::choose_breakpoint): Implement
16676 hyphenation_margin and hyphenation_space.
16677 (environment::get_hyphenation_space,
16678 environment::get_hyphenation_margin): New functions.
16679 (init_env_requests): Bind these to .hys and .hym.
16680 (hyphenation_space_request, hyphenation_margin_request): New
16682 (init_env_requests): Bind these to hys and hym.
16683 (environment::environment(symbol), environment::environment(const
16684 environment *)): Initialize hyphenation_margin and
16686 * troff/env.h: Corresponding changes to class environment.
16688 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16690 * troff/div.c (blank_line): Always do a break.
16692 * eqn/box.c (do_text): Turn off escapes while appending text to
16695 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16697 * troff/input.c (while_break_request, while_continue_request): New
16699 (init_input_requests): Bind these to "break" and "continue".
16700 (while_depth, while_break_flag): New variables.
16701 (while_request): Update while_depth. Break out of loop if
16702 while_break_flag is set.
16704 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16706 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16709 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16711 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16713 * stringify: New file.
16714 * Makefile (groff.o): Use stringify.
16716 * xditview/tmac.X: Remove definition of \(rn.
16717 * xditview/libXdvi/DviChar.c: Remove radicalex from
16720 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16722 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16723 (alphabetic_block_entry::alphabetic_block_entry,
16724 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16726 (block_entry::divert): Split off body into ...
16727 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16728 from the line length; also update the span width to dl+2n, and the
16729 alphabetic span width to dl.
16731 * driver/input.c (do_file): While reading argument to D command,
16732 when expanding buffer, multiply szp by sizeof(int) rather than 2
16733 in the argument to memcpy.
16735 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16736 width of alphabetic columns.
16738 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16740 * troff/node.c (lookup_family): Supply second argument to lookup.
16742 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16743 search, return immediately if v is 0.
16745 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16746 (troff_output::start_picture): Set this reg.
16747 (troff_output::end_picture): Remove this reg
16748 * eqn/box.c (box::extra_space): Don't produce `\x's if
16749 EQN_NO_EXTRA_SPACE_REG is defined.
16751 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16752 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16755 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16757 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16760 * troff/div.c (top_level_diversion::top_level_diversion):
16761 Initialize page_number to 0.
16763 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16765 * groff/troff (environment::environment(const environment *)):
16766 Initialize name to e->name, rather than "anonymous".
16768 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16770 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16771 requested_page. Split middle part into ...
16772 (FindPage): New function.
16773 (SetValues): If we don't yet know the last page, and the requested
16774 page is greater than the current page, call FindPage.
16775 Update the font_map_string before doing this.
16777 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16778 Translate \(lh and \(rh into left and right double arrows.
16780 * troff/node.c (class hyphen_inhibitor_node): New class.
16781 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16782 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16783 hyphen_inhibitor_node::type,
16784 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16785 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16786 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16789 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16791 * troff/node.h (dummy_node::get_hyphenation_type,
16792 transparent_dummy_node::get_hyphenation_type): Declare them.
16793 * troff/node.c: (dummy_node::get_hyphenation_type,
16794 transparent_dummy_node::get_hyphenation_type): New functions.
16796 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16798 * xditview/libXdvi/draw.c: If M_PI not defined after including
16799 math.h, then define it.
16801 * xditview/Makefile: Add definition of AR. Pass it to the submake
16803 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16805 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16807 * troff/dictionary.h (object_dictionary::alias): Declare return
16809 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16810 if the old name was defined.
16811 * troff/input.c (alias_macro): Give a warning if the old name was
16813 * troff/reg.c (alias_reg): Likewise.
16815 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16817 * troff/input.c (token::next): Delete implementation of \R.
16819 * macros/Makefile: Strip comments from tmac.e while installing it.
16821 * troff/input.c: New variable `nroff_mode'.
16822 (troff_request, nroff_request): New functions.
16823 (init_input_requests): Bind `troff' and `nroff' to troff_request
16825 (do_if_request): Compute results of t and n conditions from
16828 * text/text.c (split_text): Fix typo in >=.
16830 * eqn/lex.c: Add definition of `==' to def_table.
16832 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16834 * pic/tex.c (tex_output::start_picture): Change the definitions of
16835 \graph and \graphtemp so that they work properly with Plain TeX.
16837 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16838 argument to `ar' is not less than the first.
16840 * pic/pic.y: Allow a comma between elements of the variable list
16841 in the argument to `reset'.
16843 * pic/object.c (arc_object::arc_object): Fix computation of
16846 * eqn/main.c (main): Add exit(0).
16848 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16850 * troff/div.c (begin_page): Test no_space_mode after doing the
16851 break, but still push the page ejector cookie before doing the
16852 break. Also set the next page number after doing the break.
16854 * xditview/xditview.c (NewFile): Don't set the title and icon name
16855 if this is the first file and its name is `-'.
16856 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16857 the X75 and X100 devices.
16858 (main): If a device has the XT_OPTION flag set and there's exactly
16859 one file argument, pass the driver -xrm and -title options to set
16860 the icon name and window title to the name of the file.
16862 * troff/env.c (environment_switch): If there was an argument but
16863 it wasn't a valid number or name, then pop an environment but
16864 don't give an error message on underflow.
16866 * troff/number.c (start_number): Correct spelling in error message.
16868 * troff/input.c (token::delimiter): Don't print an error message
16871 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16872 ParseDrawFunction if dw->display_enable is true.
16874 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16876 * pic/pic.y: Parse text positioning like normal attributes, so as
16877 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16878 positioning attribute.
16880 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16882 * tbl/main.c (process_data): When in state START while reading a
16883 text block, don't change to state MIDDLE if c is a newline.
16885 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16887 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16888 so as to avoid shadowing parameter.
16890 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16892 * tbl/table.c (trim_space): Deleted.
16893 (table::add_entry): Don't call trim_space.
16895 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16897 * VERSION: Change version to 0.6.
16899 * troff/number.c (parse_expr): Make == work.
16901 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16903 * man/grog.man: New file.
16904 * man/Makefile: Add grog.n to MAN1PAGES.
16905 * etc/grog.sh: New file.
16906 * etc/Makefile: Install grog.sh as grog.
16908 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16910 * troff/input.c (token::next): Implement \E.
16912 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16914 * xditview/tmac.X: Change font translations to match tmac.ps.
16916 * troff/input.c (non_empty_name_warning): Don't give a warning if
16917 `\{' terminates the name.
16919 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16921 * ps/devps/symbol.diff: New file.
16922 * ps/devps/FontMakefile: Mention symbol.diff.
16924 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16926 * troff/node.c (font_position): Use get_long_name to read the
16929 * troff/env.c (environment_switch): If we get a number that's < 0
16930 or >= NENVIRONMENTS, treat it like a name.
16931 Change NENVIRONMENTS to 10.
16933 * troff/groff.h: Remove definition of FONTS_MAX.
16934 * troff/node.h (class font_family): Make map a pointer instead of
16935 an array. Add a map_size member. Make it a class. Make nm const
16936 and public. Make invalidate_fontno a friend.
16937 * troff/node.c: Define font_table_size. Make font_info a pointer
16938 rather than an array.
16939 (class troff_output_file): Allocate font_position dynamically. Add
16940 nfont_positions member.
16941 (troff_output_file::set_font): Grow font_position if necessary.
16942 (troff_output_file::~troff_output_file): Delete font_position.
16943 (troff_output_file::troff_output_file): Allocate font_position.
16944 (grow_font_table): New function.
16945 (troff_output_file::really_begin_page,
16946 troff_output_file:really_copy_page): Use nfont_positions rather
16948 (mount_font_no_translate, mount_style): Call grow_font_table if
16950 (font_family::font_family): Allocate map.
16951 (font_family::make_definite): Grow map if necessary. Use
16952 font_table_size instead of FONTS_MAX.
16953 (font_family::~font_family): New function.
16954 (invalidate_fontno): Use font_family::map_size.
16955 (get_fontno, env_space_width, env_half_narrow_space_width,
16956 env_narrow_space_width, symbol_fotno, is_good_fontno,
16957 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16959 (next_available_font_position): Never return 0.
16961 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16963 * ps/tmac.ps: Add font translations for compatibility with dpost.
16965 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16967 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16968 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16969 Move definitions baseline_sep, shift_down, column_sep,
16970 matrix_side_sep into...
16971 * eqn/box.c: Add them to param_table.
16972 * eqn/pbox.h: Add declarations to pbox.h.
16974 * troff/input.c (set_string): Cast value to unsigned char *.
16976 * troff/token.h (process_input_stack): Declare it static before
16977 declaring it a friend.
16979 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16981 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16983 * dvi/devdvi/EX: Regenerate.
16985 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16988 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16990 * eqn/lex.c: In defaults_table, make definition of `dot' call
16991 `dot_def'. Don't explicitly make it roman. Similarily for other
16994 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16996 (for_input::get, for_input::peek): Use this.
16997 (do_for): Add by_is_multiplicative argument.
16998 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16999 Change semantic value of optional_by to be a double plus a flag
17000 saying whethet the by clause is multiplicative.
17002 * eqn/lex.c (get_delimited_text): Remember location of start of
17003 definition. Improve error handling when EOF is encountered.
17005 * lib/font.h: Rename handle_x_command to
17006 handle_unknown_font_command.
17007 * lib/font.c (font::load): Call handle_unknown_font_command for
17008 any unknown command in the font description file. Don't call
17009 handle_x_command. Include the name of the command in the argv.
17010 Improve message for unknown command after kernpairs or charset
17012 * ps/ps.c (ps_font::handle_x_command): Rename to
17013 handle_unknown_font_command. Remove message about `x download'
17014 command. Give error message for wrong number of arguments.
17015 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17016 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17017 handle_unknown_font_command. Give an error message for wrong
17018 number of arguments. Rename design_size to designsize.
17019 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17020 checksum', `designsize' instead of `design_size'.
17022 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
17024 * eqn/*.[chy]: Change underaccent to uaccent.
17026 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
17027 give it the same precedence as ACCENT.
17028 * eqn/other.c (make_underaccent_box): New function.
17029 * eqn/box.h: Declare it.
17030 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17033 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
17035 * pic/pic.y (reset_all): New function. Called in rule for RESET.
17036 (parse_init): Call reset_all.
17037 (define_variable): When defining scale reset only those
17038 pre-defined variables that are scaled.
17039 (defaults_table): Add `scale' as non-scaled value.
17041 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17042 together with the text; allow any number of positioning words;
17043 allow center as a positioning word.
17045 * pic/object.c (output::compute_scale): Get picture maximum height
17046 and width from variables called maxpswid and maxpsht.
17047 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17049 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
17051 * pic/object.c (object_spec::make_text): Multiply textht by number
17054 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17056 (do_sprintf): New function.
17057 (pic.gperf): Add sprintf token.
17058 (text, sprintf): New rules.
17060 * pic/pic.y: `rand()' with no arguments returns a random number
17061 in the range [0,1).
17063 * pic/pic.y: Allow a bare expression to be an attribute: change
17064 precedences to support this. Change optional_ordinal rule to
17065 optional_ordinal_last to avoid reduce/reduce conflict.
17066 * pic/object.c (object_spec::object_spec): Initialize direction.
17068 * pic/pic.y: Implement ^ operator meaning exponentiation.
17070 * troff/node.h: Add default argument to mount_font.
17071 * troff/node.c (font_position): Read an optional third argument
17072 giving the external_name.
17073 (mount_font): Add optional argument giving the external_name.
17074 (mount_font_not_translate): Have additional argument giving
17075 external name. Use this name to load the font. Pass both names
17076 to font_info::font_info.
17077 (font_info::font_info): Have additional argument giving
17079 (class tfont): New member external_name.
17080 (font_info::get_tfont): Use external name to construct tfont_spec.
17082 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
17084 * eqn/lex.c (init_table): Add argument giving device. Define
17085 name of device to be "1".
17086 (do_ifdef): Counts as true if the argument has been defined with
17088 * eqn/main.c (main): Call init_table with device argument. Make
17089 device local to main.
17090 * eqn/eqn.h: Change declaration of init_table. Remove declaration
17093 * pic/lex.c (get_delimited): Allow text to be delimited by
17094 matching {}s. Don't recognize ending delimiter within a string.
17096 * troff/input.c (get_delim_name): New function.
17097 (token::next): Implement \C.
17099 * lib/font.c (font::load): Grok ---. Add an alias for each
17100 character based on its code.
17101 (font::get_code_width): Deleted.
17102 * lib/font.h (class font): Declare font::number_to_index().
17103 Remove declaration of font::get_code_width.
17104 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17105 to indices of named characters.
17106 (font::number_to_index): New function.
17107 * troff/input.c (font::number_to_index): New function.
17108 (get_charinfo_by_number, charinfo::get_number,
17109 charinfo::set_number): New functions.
17110 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17111 (token::process, token::description, token::get_char,
17112 token::add_to_node_list, token::operator==): Handle
17113 TOKEN_NUMBERED_CHAR.
17114 * troff/charinfo.h: Declare get_charinfo_by_number,
17115 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17117 (charinfo::numbered): New function.
17118 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17119 * troff/env.h (class environment): Remove declaration of ...
17120 * troff/env.c (environment::make_numbered_char_node): Deleted.
17121 * troff/node.c (make_numbered_node): Deleted.
17122 (class numbered_glyph_node): Remove.
17123 (troff_output_file::put_char_width, troff_output_file::put_char):
17124 Handle numbered chars.
17125 (troff_output_file::numbered_char): Removed.
17126 (tfont::get_code_width): Removed.
17127 (make_glyph_node): Don't search special fonts for numbered
17129 * troff/node.h: Remove declaration of make_numbered_node.
17130 * driver/input.c (do_file): Handle N command.
17131 * driver/printer.h: Add declaration of ...
17132 * driver/printer.c (printer::set_numbered_char): New function.
17133 * dvi/tfmtodit.c (main): Generate unnamed entries.
17134 * ps/devps/afmtodit: Likewise.
17135 * xditview/xtotroff.c (MapFont): Likewise.
17136 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17138 * tbl/main.c (process_format): If multiple widths are specified
17139 for a column but all the widths are the same, don't give an error
17142 * tbl/table.c (table::do_row): If the current row is all lines and
17143 the stuff doesn't contains a line, mark the top of the row after
17144 printing stuff before the row. If the current row is not all
17145 lines and the stuff doesn't contain a line, don't unnecessarily
17146 mark the top of the row before printing the stuff.
17148 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17150 * troff/groff.h: Remove MAX_PATH.
17151 * troff/input.c (open_file): Dynamically allocate space for the
17153 (open_mac_file, process_macro_file): Corresponding changes.
17155 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17157 * troff/node.h (class output_file): Make copy_file pure. Add
17158 vspace method ifdef COLUMN. Add is_printing method.
17159 * troff/node.c: Add class printing_reg. Add class
17160 real_output_file. Derive other output_file classes from
17161 real_output_file; in these classes rename begin_page to
17162 really_begin_page, print_line to really_print_line, copy_file to
17163 really_copy_file, transparent_char to really_transparent_char.
17164 Move output_file::flush to real_output_file. Add printing member
17165 to class output_file.
17166 * troff/div.h: Remove printing member from top_level_diversion.
17167 Add vspace member function to class diversion ifdef COLUMN. Add
17168 some declarations ifdef COLUMN.
17169 * troff/div.c (top_level_diversion::copy_file,
17170 top_level_diversion::transparent_output,
17171 top_level_diversion::output): Don't test printing member before
17173 * troff/input.c: Handle initial variable_space_request ifdef
17175 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17176 but comment it out.
17178 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17180 * troff/div.c (diversion::need): Make any space forced. If we
17181 sprung a trap, set truncated_space to minus the distance to the
17182 trap and set needed_space to the amount that was needed.
17183 (top_level_diversion::space): A forced space turns no_space_mode
17185 (class constant_vunits_reg): New class.
17186 (init_div_requests): Implement number registers .trunc and .ne
17187 using constant_vunits_reg.
17188 (class truncated_space_reg): Deleted.
17190 * troff/div.h: Don't have a no_space_mode member in diversion.
17191 Instead have it in top_level_diversion.
17192 * troff/div.c (diversion::diversion): Don't initialize
17194 (top_level_diversion::top_level_diversion): Initialize
17196 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17197 (macro_diversion::output): Don't clear no_space_mode.
17199 * troff/input.c (diverted_space_node::reread): Don't call
17200 environment::do_break. In fill mode, act like a blank line.
17201 (diverted_copy_file_node::reread): Don't call
17202 environment::do_break.
17204 * troff/div.c (blank_line): New function.
17205 * troff/div.h: Declare it.
17206 * troff/input.c (process_input_stack): Call it.
17208 * troff/div.c (truncated_space_reg::get_string): New function.
17209 (init_div_requests): Bind to .trunc.
17210 (space_request, top_level_diversion::space,
17211 top_level_diversion::output, macro_diversion::space,
17212 macro_diversion::output): Update truncated_space.
17213 (macro_diversion::output): Redo calculations when trap sprung.
17214 (macro_diversion::output, macro_diversion::space): No need for
17217 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17218 after truncating post line spacing.
17220 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17222 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17223 defined as a procedure rather than as an operator.
17225 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17227 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17229 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17231 * troff/div.c (top_level_diversion::output): Merge
17232 output_file::print_line and output_file::end_of_line member
17234 * troff/div.h (class output_file):
17235 * troff/node.c (troff_output_file::print_line,
17236 troff_output_file::end_of_line, output_file::end_of_line,
17237 ascii_output_file::print_line, suppress_output_file::print_line):
17238 Corresponding changes.
17240 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17242 * troff/input.c (token::next): Don't give a warning for `\.'.
17244 * troff/env.c (environment::get_center_lines): New function.
17245 (init_env_requests): Bind number register .ce to it.
17246 * troff/env.h: Declare it.
17247 * tbl/table.c (table::init_output): Define reset macro to restore
17248 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17250 (table::print): If center option not given, then imply center
17251 option if SAVED_CENTER_REG > 0.
17253 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17255 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17256 Troff.ps from DOWNLOAD.
17258 * troff/Makefile: Change comment in DEFINES to avoid confusing
17261 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17262 code. Don't try to catch errors with stopped.
17263 (check_line_lengths): New function.
17264 * ps/devps/prologue (EXEC): Deleted.
17265 (EBEGIN, EEND): New procedures.
17267 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17269 * troff/input.c: Include request.h before node.h.
17270 * troff/node.c: Likewise.
17271 * troff/env.c: Likewise.
17272 * troff/div.c: Likewise.
17273 * troff/node.h (class special_node): Store argument as a macro
17274 rather than a char *.
17275 * troff/node.c (special_node::special_node, special_node::copy):
17277 (special_node::~special_node): Deleted.
17278 (special_node::tprint): Deleted.
17279 (special_node::tprint_start, special_node::tprint_end,
17280 special_node::tprint_char): New functions.
17281 (troff_output_file::special): Deleted.
17282 (troff_output_file::start_special, troff_output_file::end_special,
17283 troff_output_file::special_char): New functions.
17284 * troff/input.c (special_node::tprint): New function.
17285 (do_special): Use macro not char *.
17286 (do_transparent_macro): Deleted.
17287 (token::next): Don't call do_transparent_macro.
17289 * troff/input.c (token::next): Add 'Y' case.
17290 (do_transparent_macro): New function.
17291 * troff/node.c (troff_output_file::special): Handle newlines with
17292 argument using new continuation convention.
17293 * driver/input.c (get_string): Cope with continuation convention.
17294 (do_file): Don't call skip_line after calling get_string(1).
17295 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17296 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17298 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17301 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17303 * troff/input.c (asciify): By default, illegal input characters
17304 should return empty string.
17306 * troff/input.c (copy_file): Handle first page transition like title.
17307 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17309 * troff/input.c (token::next): Improve error message for EOF after
17311 (input_char_description): New function.
17312 (get_char_for_escape_name): Use input_char_description.
17313 (token::next): Warn about unrecognized escape sequences.
17314 (warning_table): Add WARN_ESCAPE.
17315 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17318 * troff/token.h: Remove declaration of process_input_stack.
17320 * troff/input.c: Remove declaration of init_hyphen_requests.
17321 * troff/request.h: Correct spelling in declaration of same.
17323 * troff/input.c (token::next): Check whether escape_char is 0.
17325 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17327 * groff.c (main, usage, help): Implement -P and -L options.
17328 * groff.sh: Likewise.
17330 * troff/input.c (token::next): Use some gotos to avoid code
17333 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17334 Avoid calling symbol::symbol if name empty.
17336 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17338 * troff/input.c (init_input_requests): Make \n(.x return the major
17339 version number and \n(.y return the minor version number.
17340 * troff/Makefile: Construct file majorminor.c defining
17341 major_version and minor_version automatically from ../VERSION.
17343 * troff/node.c (class glyph_node): Make operator new and operator
17345 (class ligature_node): Similarily.
17347 * troff/input.c (operator==(const macro &, const macro &)): New
17349 (non_interpreted_node::same): Use this.
17350 (string_iterator::string_iterator): Make macro& argument const.
17352 * troff/input.c (input_iterator::get): New function. Don't make
17353 asciify_macro or class non_interpreted_node friends of class
17355 (non_interpreted_node::interpret): Use input_iterator::get.
17356 (asciify_macro): Likewise.
17358 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17359 ~non_interpreted_node): Deleted.
17360 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17363 * troff/symbol.h: Make all symbol member functions const.
17365 * lib/strtol.c: New file.
17366 * lib/Makefile: Add strtol.c.
17367 * Makefile: Define STRTOL as strtol.o to include strtol in
17370 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17372 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17374 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17376 * troff/input.c (do_special): Use input_level.
17378 * troff/token.h (TOKEN_BACKSPACE): New token.
17379 (token::backspace): New function.
17380 * troff/input.c (token::description, token::next, token::process):
17381 Grok TOKEN_BACKSPACE.
17382 (do_special): Turn TOKEN_BACKSPACE back into \b.
17384 * troff/token.h (token::leader): New function.
17385 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17387 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17389 * troff/input.c (do_special): Use token::description in error
17392 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17394 * troff/input.c (decode_args): Combine quoted and
17395 quote_input_level variables. Make it a for (;;) loop.
17397 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17399 * troff/input.c (read_long_escape_name): The test for whether to
17400 expand buffer was off by 1.
17401 (read_string): Similarily.
17403 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17405 * troff/input.c: Use `const int' rather than `static const int'.
17407 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17408 (macro_diversion::copy_file): New function.
17409 * troff/node.h: New class diverted_copy_file_node.
17410 * troff/node.c: Implement it.
17411 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17412 first page transition by pushing a diverted_copy_file_node.
17413 * troff/input.c (token::next, process_input_stack): Don't handle
17416 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17418 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17419 whether space widths need adjusting.
17421 * troff/charinfo.h: Generalize translated_to_space to
17422 special_translation so as to allow translation to \&.
17423 * troff/input.c (translate): Allow translation to \&.
17424 (charinfo::*): Corresponding changes.
17425 * troff/node.c (make_node, node::add_char): Corresponding changes.
17426 * troff/node.h (dummy_node::dummy_node): Allow optional first
17429 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17430 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17432 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17433 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17434 (token::process): Grok that.
17435 * troff/input.c (copy_file): Handle first page transition like
17436 title by pushing a COPY_FILE_REQUEST cookie.
17437 (token::next, process_input_stack): Grok that.
17438 * troff/node.h (output_file::copy_file): Add x and y arguments.
17440 * troff/div.c (top_level_diversion::copy_file): Supply them.
17441 * troff/node.c (troff_output_file::copy_file): Add x and y
17442 arguments; moveto specified position. Invalidate font_position
17443 array after copying file.
17444 (output_file::copy_file): New function.
17445 (suppressed_output_file::copy_file, ascii_output::copy_file):
17447 * troff/input.c (transparent_file): New function.
17448 (init_input_requests): Bind to "trf".
17449 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17450 (process_input_stack): Likewise.
17452 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17454 * troff/node.c (init_node_requests): New number registers .kern
17455 pointing to global_kern_mode, and .lg pointing to
17456 global_ligature_mode.
17458 * troff/node.c (ligature): Don't change it if we get a bad
17461 * troff/input.c (do_define_string): Don't strip tabs.
17463 * troff/input.c (asciify_macro): Make the string_iterator auto.
17465 * troff/node.c (init_font_requests): Rename to...
17466 (init_node_requests):
17467 * troff/node.h: Change declaration.
17468 * troff/input.c (main): Change call.
17470 * troff/input.c (node::reread, diverted_space_node::reread): New
17472 (process_input_stack): Call reread rather than
17473 get_diverted_space_node.
17474 * troff/node.c (node::get_diverted_space_node,
17475 diverted_space_node::get_diverted_space_node): Removed.
17476 * troff/node.h: Declare reread methods instead of
17477 get_diverted_space_node methods. Make `n' member private.
17478 * troff/input.c: (token::diverted_space): Removed.
17479 * troff/token.h: Removed declaration.
17482 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17484 * eqn/script.c (script_box::compute_metrics): Don't let
17485 SUP_RAISE_FORMAT become negative.
17487 * tbl/table.c (table::do_row): Entries that don't end in the
17488 this row shouldn't make the row non-blank.
17490 * tbl/table.c (table::make_columns_equal): Only set the width of
17491 columns which are marked as equal.
17493 * tbl/main.c (process_data): Before issuing excess data error,
17494 if last character was a newline unget it; then get it again after
17495 the error. Also include the contents of the entry in the message.
17497 * groff.c: New file.
17498 * Makefile: Build groff from groff.c. Make it possible to use
17499 either groff.sh or groff.c as groff.
17500 * Makefile.bd: Similarily.
17502 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17504 * groff.sh: Don't delay expansion of $@ in assignment to files.
17505 Remove occurrences of \".
17507 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17509 * all Makefiles: Simplify and rearrange.
17511 * Makefile: Handle fmod like malloc.
17512 * lib/Makefile: Similarily.
17513 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17515 * Makefile: Rename OPTIMISE to OPTIMIZE.
17517 * groff.sh: Remove assignment to PATH.
17518 * Makefile: Remove SHPATH variable.
17519 * Makefile.bd: Similarily.
17521 * groff.sh: Add -V option to print the pipeline instead of
17524 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17526 * lib/font.c: Split off file searching into ...
17527 * lib/fontfile.c: New file.
17529 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17531 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17533 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17534 Also change misleading comment.
17535 (table::do_vspan): Change similarily misleading comment.
17536 * tbl/main.c (process_data): A format row with an explicit `s'
17537 uses up a data line, even if all the other columns are `_' or `='.
17539 * troff/input.c (token::description): Fix description of
17540 TOKEN_DUMMY and TOKEN_EMPTY.
17542 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17544 * groff.sh: Fix description of -Z in help message.
17546 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17548 * pic/object.c (object_spec::make_object): Allow negative and zero
17550 * pic/pic.y: Give linethick default value of -1.0.
17551 * pic/troff.c (troff_output::troff_output): Initialize
17552 last_line_thickness to BAD_THICKNESS.
17553 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17554 (troff_output::line_thickness): Canonicalize negative thicknesses
17555 to RELATIVE_THICKNESS.
17556 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17557 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17559 (tex_output::start_picture): Set pen_size to -2.0.
17561 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17562 0, then use 0 linewidth.
17563 (ps_printer::ps_printer): Initialize line_thickness to -1.
17565 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17567 * ps/devps/symbolchars: Remove `or'.
17568 * ps/tmac.ps: Implement \(or with .char.
17570 * ps/devps/symbolchars: Move most characters into textmap.
17571 * ps/devps/textmap: Add names for troff bracket characters. Remove
17574 * ps/devps/TSymbol.ps: Removed.
17575 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17576 * ps/tmac.ps: Do with .char what TSymbol did.
17577 * ps/devps/download: Remove TSymbol.
17579 * ps/devps/T: Removed.
17580 * ps/devps/Troff.ps: Removed.
17581 * ps/devps/Troff.afm: Removed.
17582 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17583 * ps/devps/download: Remove Troff.
17584 * ps/devps/FontMakefile: Remove T target.
17585 * ps/devps/DESC-A4: Remove T from font list.
17586 * ps/devps/DESC-letter: Likewise.
17588 * troff/input.c (macro_to_node): Rename to ...
17589 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17590 character's definition while processing it.
17591 * troff/node.c (node::add_char, make_node): Change calls to
17592 macro_to_node accordingly.
17594 * troff/input.c (token::next): Translate \_ to \(ul.
17596 * tty/devascii/R.proto: Add `|'.
17597 * tty/devlatin1/R.proto: Likewise.
17599 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17601 * man: Put the version number in all the man pages.
17603 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17605 * Makefile.bd: New file.
17606 * README.bd: New file.
17608 * VERSION: New file.
17609 * lib/version.c: Removed.
17610 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17613 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17614 environment variable.
17616 * all Makefiles: Split install target into install.bin for
17617 binaries, and install.nobin for everything else.
17618 * Makefile: Add bindist target.
17620 * man/afmtodit.man: New file.
17621 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17622 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17624 * ps/Makefile: Pass BINDIR to make install in devps.
17626 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17627 the space character.
17629 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17631 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17633 * ps/ps.c: Redo font downloading.
17634 * ps/devps/download: New file.
17635 * ps/devps/Makefile: Add download to DEVICEFILES.
17636 * ps/devps/afmtodit: Remove -d option.
17637 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17638 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17639 * ps/devps/zapfdr.ps: Likewise.
17640 * ps/devps/TSymbol.ps: Likewise.
17642 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17644 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17646 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17648 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17649 then strip the first line if it starts with %.
17650 * Makefile: Add a comment about this.
17652 * man/tfmtodit.man: New file.
17653 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17654 * dvi/Makefile: Install tfmtodit in BINDIR.
17656 * dvi/tfmtodit.c (usage): Mention -v option.
17658 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17660 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17661 * troff/node.c (troff_output_file::transparent_char): Don't call
17664 * eqn: Add check_tabs method to most box classes.
17665 * eqn/box.c (box::top_level): Call check_tabs.
17667 * eqn/script.c (script_box::output): Use \Z.
17668 * eqn/limit.c (limit_box::output): Use \Z.
17670 * eqn/box.c (box::top_level): Use itoa.
17672 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17674 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17675 * dvi/devdvi/Makefile: Don't make links to CW.
17677 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17679 * xditview/tmac.X: Likewise.
17681 * troff/node.c: Add font translation feature.
17682 (get_font_translation): New function.
17683 (symbol_fontno): Translate the font name.
17684 (mount_font_no_translate): Rename to mount_font to this.
17685 (mount_font): New function.
17686 (font_family::make_definite): Call mount_font_no_translate instead
17688 (mount_style): Translate the font name.
17689 (font_translate): New function.
17690 (init_font_requests): Bind "ftr" to font_translate.
17692 * ps/devps/prologue (SN): New procedure that rounds a position to
17693 the nearest (pixel + (.25,.25)).
17694 (DL): Use SN to round endpoints.
17696 * lib/version.c: Changed version to 0.5.
17698 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17700 * Makefile: Move definition of PAGE to the very beginning, so that
17701 people are less likely to miss it.
17703 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17705 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17707 * troff/env.c (environment::choose_breakpoint): Make `can't find
17708 breakpoint' error a warning of type WARN_BREAK. Change message to
17709 `can't break line'.
17710 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17712 * troff/input.c: Add WARN_BREAK to warning_table. Include
17713 WARN_BREAK in DEFAULT_WARNING_MASK.
17715 * tty/tmac.tty: Add definition of \(+-.
17717 * groff.sh: Remove `--' option to set command.
17719 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17721 * ps/devps/eqnchar: Better definition of cdot using md.
17722 * dvi/devdvi/eqnchar: Likewise.
17723 * xditview/devX100/eqnchar: Likewise.
17724 * xditview/devX75/eqnchar: Likewise.
17725 * eqn/lex.c: Add definition of cdot.
17727 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17729 * troff/input.c (get_optional_char): New function.
17730 * troff/input.c (set_page_character): Use get_optional_char(),
17731 rather than has_arg() and tok.get_char(1).
17732 * troff/env.c (tab_character, leader_character, hyphen_char,
17733 field_characters): Likewise.
17734 (margin_character): Likewise. Also always delete the
17735 margin_character_node.
17737 * troff/input.c (token::get_char): Use token::description.
17739 * troff/input.c (has_arg): Don't skip over tab and \}.
17740 * troff/number.c (start_number): Give a warning if the number
17741 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17743 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17745 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17747 (get_name, get_long_name): Use these. Rename `warn' argument to
17750 * troff/node.c (get_fontno): Test that the symbol is not null.
17752 * troff/input.c (token::description): New function.
17753 * troff/number.c (parse_term): Use token::description in `numeric
17754 expression expected' message.
17755 * troff/groff.h: Add WARN_MISSING.
17756 * troff/number.c (start_number): New function.
17757 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17758 get_incr_number): Use start_number().
17759 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17761 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17762 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17764 * troff/input.c (token::get_char): Use WARN_MISSING.
17765 * troff/input.c (token::delimiter): Use token::description.
17766 * troff/env.c (environment_switch): Back out Aug 3 change.
17767 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17769 * troff/token.h (token::tab): New function.
17770 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17771 * troff/reg.c (alter_format): Likewise.
17772 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17774 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17776 * troff (most files): Redo warnings. Divide warnings into various
17777 categories; warning() has an additional first argument indicating
17778 the category it falls into.
17779 * troff/input.c (main): -w now takes an argument. New option -W.
17780 (enable_warning, disable_warning): New functions.
17782 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17783 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17785 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17787 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17788 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17789 * xditview/devX75/eqnchar: Likewise.
17790 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17792 * eqn/other.c: When bar or over applies to a single character
17793 don't produce an overline_box or an underline_box. Instead produce
17794 an accent_box or an underaccent_box, with the accent a line
17795 whose width is accent_width. New classes underaccent_box,
17796 overline_char_box and underline_char_box.
17797 * eqn/box.h: Move overline_box, underline_box, accent_box class
17798 declarations into eqn/other.c. Add declarations of
17799 make_underline_box, make_overline_box, make_accent_box.
17800 * eqn/eqn.y: Call make_overline_box, make_underline_box
17801 make_accent_box instead of constructors.
17802 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17804 * eqn/other.c: Add accent_box::~accent_box.
17805 * eqn/box.h: Declare it.
17807 * groff.sh: With -Tps, use eqn -D.
17809 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17811 (underline_box::output): Similarily.
17812 (accent_box::output): Use \Z.
17814 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17817 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17819 * troff/div.c (top_level_diversion::transparent_output(unsigned
17820 char)): Use asciify.
17821 * troff/input.c (asciify): Don't make it static.
17822 * troff/token.h (asciify): Declare it.
17824 * troff/input.c (get_name, get_long_name, token::get_char,
17825 token::delimiter): Add an extra default argument which says
17826 whether a warning should be printed.
17827 * troff: Pass a non-zero argument to one of these rather than
17828 printing a warning directly.
17830 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17832 * troff: Consistently use symbol::is_null.
17834 * troff/dictionary.h: Move some inline functions into
17837 * troff/request.h: Move inline functions into input.c.
17838 (request_or_macro::invoke): Make it pure.
17840 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17841 * troff/input.c (init_input_requests): Use class constant_int_reg.
17842 (class compatible_reg): Deleted.
17843 * troff/div.c (init_div_requests): Use class constant_int_reg.
17844 (class last_post_line_extra_space_reg): Deleted.
17846 * troff/env.c (tab_character): Don't change the tab character if
17847 we get an invalid argument.
17848 (hyphen_char): Similarily.
17850 * troff/reg.c (alter_format): Check that nm is not null.
17852 * Makefile, groff.sh: Make it possible to customize the commands
17853 used for printing PostScript and dvi files. Also make it possible
17854 to customize the path used by groff.sh.
17856 * eqn/eqn.y: Make `left' right associative.
17858 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17860 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17863 * pic/pic.h: Removed definition of INT_MAX.
17865 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17868 * troff/input.c (token::next): Handle \R like \n.
17870 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17872 * ps/tmac.pc (PSPIC): Simplify.
17874 * troff/env.c (tab_stops::to_string):
17875 * pic/pic.y (object_type_name):
17876 * pic/troff.c (simple_output::line):
17877 * pic/tex.c (tex_output::spline):
17878 * pic/object.c (object_spec::make_object):
17879 * tbl/main.c (process_data): Add cases to switch statements to
17880 avoid cfront warnings. (Some of these are spurious, since the
17881 switch already has a default case.)
17883 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17884 `ps-'. Don't test systat; instead check number of arguments to
17887 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17889 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17891 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17892 Unlink the file as soon as we have opened it, so that we don't
17893 have to bother with signal handlers.
17894 (handler): Deleted.
17895 (fatal_error_exit): Deleted.
17896 (main): Don't call signal.
17898 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17900 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17902 * pic/pic.y: If there is a label, or an nth construction before
17903 the first `.' in the argument to `with', ignore it and generate a
17905 * pic/lex.c (lex_warning): New function.
17907 * tbl/table.c (table::init_output): In section keep and release
17908 macro, use 0 indent when diverting and the correct indent when
17911 * troff/input.c (interpolate_number_format): Do not interpolate
17912 anything if the number register is not defined.
17914 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17916 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17918 * ps/devps/prologue (PICTURE): Set components of graphics state to
17919 their default values.
17921 * ps/devps/text.enc: Add trademark
17922 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17923 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17924 * ps/devps/symbolchars: Add names for summation and product.
17926 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17927 suchthat. Add pp. Add upper-case letters.
17929 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17930 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17933 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17934 rA (right angle bracket) to ra. Introduce names for double-headed
17935 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17936 * ps/devps/textmap: Likewise for ps device.
17937 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17938 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17939 * tty/devascii/R.proto: Likewise.
17940 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17942 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17944 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17946 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17949 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17951 * troff/div.c (when_request): Use symbol::is_null rather than
17952 has_arg to determine whether we have an argument.
17953 (change_trap): Remove the trap if we get an invalid number. Give
17954 an error if we don't get at least the macro name.
17955 (diversion_trap): Remove trap if we get an invalid name or number.
17957 * troff/env.c (environment_switch): Pop if we get an invalid
17958 symbol or numeric expression.
17960 * troff/input.c (do_define_macro): If EOF is encoutered while
17961 defining the macro, do tok.next() before returning.
17963 * troff/token.h (has_arg): Move definition from here, to ...
17964 * troff/input.c (has_arg): ... here
17966 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17967 * troff/input.c (shift): Likewise.
17969 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17972 * pic/troff.c (troff_output::start_picture): Comment out calls to
17975 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17976 interpret_lf_args succeeds.
17978 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17979 \\. This avoids problems with \$N.
17981 * groff.sh: Pass -C to preprocessors.
17983 * lib/lf.c (interpret_lf_args): Be more flexible.
17985 * tbl/main.c (main): Add -C option.
17986 (table_input::get): Do not recognize TE if followed by character
17987 other than a space or newline unless -C option given.
17988 (process_input_file): Likewise for lf, TS.
17989 (process_data): Likewise for lf in text blocks.
17991 * eqn/main.c (main): Add -C option.
17992 (do_file): Don't recognize EQ, EN or lf if followed by character
17993 other than space or newline unless -C option given.
17994 * eqn/lex.c (file_input::read_line): Similarily.
17995 * eqn/eqn.h: Declare compatible_flag.
17997 * etc/soelim.c (main): Add -C option.
17998 (interpret_lf_args): Use version in libgroff.
18001 * pic/main.c (main): Add -C option, which sets compatible_flag.
18002 (top_input::get), (top_input::peek): If -C option not given,
18003 do not recognize .PS/.PE/.PF/.lf if followed by a character
18004 other than space or newline.
18005 * pic/lex.c (file_input::read_line): Similarily.
18006 * pic/pic.h: Add declaration of compatible_flag.
18008 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
18010 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18012 * troff/node.c, troff/node.h: Add `asciify' methods to classes
18013 derived from node. New class space_char_hmotion_node.
18014 * troff/input.c (asciify_macro): New function.
18015 * troff/input.c (init_input_requests): New request `asciify' bound
18017 * macros/mm.diff: New file.
18018 * Makefile: In install.mm target use `patch' to apply
18021 * troff/input.c (macro::print_size): Just print the size in bytes.
18023 * troff/div.c (return_request): Correct the argument
18026 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
18028 * troff/node.h (class composite_node): Add sz member.
18029 * troff/node.c (composite_node::size): Return sz.
18030 * troff/input.c (macro_to_node): Use the initial size in the
18031 environment as the size of the composite_node.
18033 * troff/node.c (node::zero_width_tprint): Provide a reasonable
18036 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
18038 * troff/div.c (change_trap): If we get a bad number expression,
18041 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
18043 * lib/matherr.c (matherr): Define this only if math.h defines
18046 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
18048 * troff/div.c (macro_diversion::distance_to_next_trap): If there
18049 no diversion trap return vunits(INT_MAX - vresolution).
18051 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
18053 * troff/input.c (do_zero_width): New implementation that doesn't
18054 use a temporary environment. Use instead:
18055 (token::add_to_node_list): New function.
18056 * troff/env.c (environment::get_prev_char_height),
18057 (environment::get_prev_char_height),
18058 (environment::get_prev_char_skew): New functions.
18059 (environment::get_prev_char): New function.
18060 (environment::get_prev_char_width): Change to use get_prev_char.
18061 (init_env_request): Implement new registers .cht, .cdp, .csk.
18062 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18063 \Z being processed in a separate environment.
18065 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
18067 * tbl/table.c: Removed TABLE_BOTTOM_REG.
18069 * tbl/table.c (table::init_output): In the section release macro,
18070 give a warning message if the section won't fit on one page.
18072 * tbl/table.c (table::do_top): Emit table keep only if table is
18074 (table::do_bottom): Likewise for table release.
18075 (table::table), (table::add_vertical_rule): Remove reference to
18077 * tbl/table.h: Remove keep member.
18079 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18080 SECTION_RELEASE_MACRO, if there's not enough space before the next
18081 trap to output the diversion, call T# ourselves, set
18082 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18083 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
18084 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
18085 vertical position and return to it before turning traps on again.
18087 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
18089 * troff/node.c, troff/node.h: In classes derived from node,
18090 replace prev_char_width method by last_char_node method.
18091 * troff/env.c (environment::get_prev_char_width): Use
18092 node::last_char_node rather than node::get_prev_char_width.
18094 * Makefile: Added comment about -fno-inline on 68030-based
18097 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18098 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18099 expressions using sizeof to int.
18100 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18102 * macros/tmac.e (TS): Don't move @f back past the current
18105 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18107 * ps/ps.c (main): Buffer stderr.
18108 * dvi/dvi.c (main): Likewise.
18109 * tty/tty.c (main): Likewise.
18111 * ps/ps.c (ps_printer::do_import): Improve error handling.
18113 * troff/input.c (abort_request): Use asciify.
18115 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18116 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18117 type of first argument int rather than char. This works around a
18118 bug on the 68030 based Apollo using g++ 1.37.1.
18120 * tbl/table.h (class table): Add `keep' member.
18121 * tbl/table.c (table::table): Initialize `keep'.
18122 (table::add_vertical_rule): Set `keep' to 1.
18123 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18124 (table::do_bottom): Likewise for table release macro.
18125 (table::do_row): Emit section keep macro even if the row is 0.
18127 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18129 * macros/tmac.e (@C): Preserve the font family across the change
18132 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18134 * lib/font.c: Initialize font::hor and font::vert to 1.
18135 (font::load_desc): Check the values of font::hor and font::vert.
18137 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18138 be included in a C compilation.
18139 (iftoa): Use INT_DIGITS. Include lib.h.
18141 (as_string): Likewise.
18142 * tbl/table.c: Removed definition of INT_DIGITS.
18143 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18144 * troff/input.c (input_input_requests): Likewise.
18145 * ps/ps.c (make_encoding_name): Likewise.
18146 (ps_printer::set_style): Likewise.
18147 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18149 * tty/devascii/R.proto: Map fm onto '.
18150 * tty/devlatin1/R.proto: Likewise.
18152 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18154 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18155 argument to \w is at a different input level.
18157 * tbl/table.c (table::init_output): Define a new macro
18158 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18159 transparently outputs itself.
18160 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18162 (table::do_row): Likewise.
18164 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18165 TRANSPARENT_STRING_NAME.
18167 * tbl/table.c (table::init_output): In the table release macro
18168 print an error message and don't produce any output if after
18169 issuing the need request the table still will not fit. Also
18170 remove the diversion after bringing it back.
18172 * tbl/table.c (table::init_output): Define a new macro
18173 REPEATED_MARK_MACRO, like mk but if in a diversion also
18174 transparently outputs itself.
18175 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18176 is necessary because .TH might not call .T#.
18177 (table::do_top): Likewise TOP_REG.
18178 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18179 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18180 table header might contain just the two top rules.
18182 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18184 * troff/div.c: Implement new request `ptr' to print all traps.
18186 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18187 init_string_env_reg.
18188 * troff/env.c (class tab_reg): Deleted.
18190 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18192 * troff/div.c: New number register .pn returns the number of the
18193 next page as set by the pn request.
18195 * macros/tmac.an: Redid headers and footers. Number each manual
18196 entry starting from 1 unless \nC is > 0, like Sun. Added an
18197 optional 5th argument to .TH which specifies the manual name and
18198 appears in the center of the header. Understand the X, P and D
18199 registers like Sun.
18201 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18203 * troff/env.c (init_env_requests): New number register `.lt' to
18204 return the title length.
18206 * troff/node.h (class transparent_dummy_node): New class.
18207 * troff/node.c (class transparent_dummy_node): Provide member
18209 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18212 * troff/input.c (token::next): New escape sequence \).
18213 * troff/input.c (get_copy): Recognize \) in copy mode.
18215 * troff/input.c (input_stack::clear): New function.
18216 * troff/input.c (exit_request): Use input_stack::clear.
18218 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18219 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18221 * troff/env.c: Move set_page_character to input.c. Move
18222 page_character to input.c also.
18223 * troff/env.c (title): Split off the reading of the parts of the
18224 title into read_title_parts.
18225 * troff/input.c (read_title_parts): New function. Check the
18226 input_level when testing whether a token matches the delimiter.
18228 * troff/input.c (exit_request): New function.
18229 * troff/input.c (init_input_requests): Bind ex request to
18230 exit_request rather than exit_groff.
18232 * troff/input.c (exit_groff): Call tok.next() before
18233 process_input_stack().
18235 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18237 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18238 * troff/env.h: ditto.
18239 * troff/input.c: ditto.
18241 * troff/env.c (environment::is_empty): Test pending_lines.
18243 * troff/env.c (environment::have_pending_lines): Removed.
18245 * troff/input.c: Add request to flush pending lines from the
18248 * troff/env.c, troff/env.h: Add automatic widow control feature.
18250 * troff/input.c (exit_groff): Do process_input_stack() after
18251 do_break() but before setting exit_flag to 2.
18253 * troff/input.c: Remove FLUSH_PENDING_LINES and
18254 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18255 environment after END_TRAP token seen, but only if there aren't
18256 any more traps still unfinished.
18257 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18259 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18261 * troff/env.c: Rename the `retain_size' member of class
18262 pending_output_line to `no_fill'.
18264 * troff/env.c (title): When the line is output, make the
18265 retain_size argument !fill.
18267 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18268 * troff/node.c (space_node::get_breakpoints),
18269 (dbreak_node::get_breakpoints): Fill this in.
18270 * troff/env.c: Allow specification of maximum number of
18271 consecutive hyphenated lines.
18273 * troff/env.c (environment::is_empty): Add test for !current_tab.
18275 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18277 * troff/env.c (environment::hyphenate_line): Don't completely give
18278 up if the word is not to be hyphenated; continue so that breaks
18279 can be made at break_char_node's.
18281 * lib/lib.h: Only define INT_MAX if it's not already defined;
18282 undef INT_MIN if it's already defined.
18284 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18286 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18287 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18290 * macros/tmac.an (an-header): Set no-space mode.
18292 * macros/tmac.an (TH): Start a new page if necessary.
18294 * Started using ChangeLog at version 0.4.
18297 version-control: never