1 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3 Correct `gnu.eps' handling for build from distribution tarball, with
4 separate source and build directories.
6 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
7 grnexmpl.g, groff.css and gnu.eps from source to build directory;
8 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
9 (prepare_examples): Make it depend on examples.stamp.
10 (CLEANADD): Add examples.stamp.
12 2005-04-27 Werner LEMBERG <wl@gnu.org>
16 position: '(' position ')'
20 * src/preproc/pic/pic.y (position, position_not_place): Handle
21 additional parentheses.
23 * doc/pic.ms: Updated.
25 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
27 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
29 2005-04-18 Werner LEMBERG <wl@gnu.org>
31 * src/roff/groff/pipeline.c: Don't include ctype.h.
33 2005-04-13 Werner LEMBERG <wl@gnu.org>
35 * src/roff/nroff/nroff.man: Document option `-M'.
37 2005-04-13 Bruce Lilly <blilly@erols.com>
39 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
41 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
42 Werner LEMBERG <wl@gnu.org>
44 Add binary relocation support for Windows platforms.
46 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
48 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
50 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
51 (search_path::search_path, search_path::open_file_cautious): Use
54 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
55 src/include/Makefile.sub (HDRS): Updated.
57 2005-04-01 Werner LEMBERG <wl@gnu.org>
59 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
62 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
64 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
65 lib.h already does it.
67 * src/libs/libgroff/maxpathname.cpp: New file, defining
70 * src/include/lib.h: Add prototype for path_name_max.
72 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
74 * src/include/nonposix.h (PATH_EXT): New macro.
76 2005-03-28 Werner LEMBERG <wl@gnu.org>
78 Add support for double- and zero-width characters in grotty.
80 * src/devices/grotty/tty.cpp (glyph): Add width.
81 (tty_printer::make_underline, tty_printer::make_bold,
82 tty_printer::add_character): Add parameter to pass character width.
84 (tty_printer::end_page): Increase hpos by actual character width.
86 * font/devutf8/R.proto: Specify zero width for non-spacing
89 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
91 * Makefile.comm (extraclean): Remove more junk files.
93 2005-03-25 Werner LEMBERG <wl@gnu.org>
95 * configure.ac: Undo change from 2005-03-24.
96 * configure: Regenerated.
98 2005-03-24 Werner LEMBERG <wl@gnu.org>
100 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
101 (dist): Search Makefile while descending into $(EXTRADIRS).
103 * doc/Makefile.in (.PHONY): Add.
104 (clean): Don't remove *.png and *.eps.
106 (realclean): Remove *.png and *.eps.
107 (extraclean): Depend on distclean.
109 * configure.ac: Add copyright.
110 Handle contrib/pdfmark/Makefile.
112 * configure: Regenerated.
114 2005-03-18 Larry Kollar <kollar@alltel.net>
116 Add numbered and definition lists to www.tmac.
118 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
119 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
120 auxiliary string registers.
121 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
122 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
123 (www-level): Removed.
124 (www-level1, www-level2, www-level3): Initialize to empty.
125 (www-level0, www-level4, www-level5, www-level6, www-level7,
126 www-level8, www-level9): New string registers.
127 (www-push-li, www-pop-li): New macros.
128 (www-push-level, www-pop-level): Renamed to...
129 (www-push-ul-level, www-pop-ul-level): This.
131 (www-push-ol-level, www-pop-ol-level): New macros.
133 (OLS, OLE, DLS, DLE): New user macros.
134 (LI): Removed. It is aliased to one of...
135 (www-li-ul, www-li-ol, www-li-dl): New macros.
137 * tmac/groff_www.man: Document new macros.
141 2005-03-18 Werner LEMBERG <wl@gnu.org>
143 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
144 doc-operating-system-NetBSD-2.0.2): New strings.
146 * tmac/groff_mdoc.man: Updated.
148 2005-03-17 Werner LEMBERG <wl@gnu.org>
150 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
152 2005-03-17 Werner LEMBERG <wl@gnu.org>
154 * src/libs/libgroff/hypot.c: Renamed to...
155 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
157 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
159 * src/include/lib.h: Updated.
161 2005-03-16 Werner LEMBERG <wl@gnu.org>
163 Add workaround for broken hypot() on Interix.
165 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
167 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
168 (CSRCS): Add `hypot.c'.
170 * src/include/lib.h: Declare `groff_hypot'.
172 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
175 * src/preproc/pic/pic.h: Don't declare `hypot'.
177 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
179 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
181 * src/devices/grohtml/post-html.cpp
182 (html_printer::lookahead_for_tables): End .ce properly to avoid a
185 2005-03-15 Werner LEMBERG <wl@gnu.org>
187 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
189 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
191 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
193 2005-03-14 Werner LEMBERG <wl@gnu.org>
195 Add Cyrillic support to devutf8 and devhtml.
197 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
199 * tmac/unicode.tmac: New file.
201 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
203 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
207 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
209 * src/libs/libdriver/printer.cpp (check_for_output_error): New
210 function. It has been introduced to catch peculiar error contexts
211 on MS-Windows platforms.
213 2005-02-28 Werner LEMBERG <wl@gnu.org>
215 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
218 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
220 * configure: Regenerated.
224 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
226 Integrate `pdfmark' into normal groff build system;
227 install macro `pdfmark' packages, build and install `pdfroff',
228 and PDF format documentation.
230 * Makefile.comm: Add PDFDOCDIR.
232 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
233 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
234 (unstall_dirs): Add pdfdocdir.
236 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
237 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
238 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
239 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
240 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
241 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
243 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
244 use of GROFF_AWK_PREFS.
245 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
246 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
248 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
249 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
250 also by modified GROFF_HTML_PROGRAMS).
252 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
254 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
256 (html_text::done_para): Unset `start_space'.
257 (html_text::remove_para_align): Call `retrieve_para_space' for the
260 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
262 (html_printer::do_check_center): Emit vertical space if necessary.
264 * src/roff/troff/env.cpp (environment_switch): Preserve
265 `seen_space', `seen_eol', and `suppress_next_eol' while switching
268 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
271 2005-02-20 Werner LEMBERG <wl@gnu.org>
273 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
276 2005-02-17 Werner LEMBERG <wl@gnu.org>
278 * doc/pic.ms, man/groff.man: Fix typos.
280 * doc/groff.texinfo: Fix typos.
281 (\LEmacro): Get proper mathematical spacing.
283 2005-02-16 Werner LEMBERG <wl@gnu.org>
285 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
286 * configure: Regenerated with autoconf 2.59b.
288 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
290 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
291 html_printer::start_font): Fix handling of preformatted text.
293 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
295 These patches modify the indentation implementation to use `<p
296 style=margin-left: n%>'. Many thanks to Peter and Larry for
297 suggesting this solution. Grohtml only uses tables for `.IP' and
298 related tags when the first operand has a short width.
300 Similarly, they modify all vertical space code. By default, grohtml
301 sets up a style sheet which uses no vertical space between `table',
302 `pre', and `p' tags. It forces spaces when it needs them using
303 `style="margin-top: 1em"'.
305 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
306 (html_table::emit_table_header, html_table::emit_new_row):
308 (html_table::set_space): New function.
309 (html_indent::html_indent): Don't set `is_used'.
310 (html_indent::begin): Rewritten.
311 (html_indent::end): Remove code in function.
313 * src/devices/grohtml/html-table.h: Updated.
314 (html_table): Make `out' public.
316 * src/devices/grohtml/html-text.cpp (html_text::html_text):
317 Initialize `start_space' with FALSE.
318 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
319 (html_text::issue_tag): Add argument to handle space style.
320 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
321 (html_text::flush_text): Don't set `start_space'.
322 (html_text::push_para): Don't set `p->really_issued'.
323 (html_text::do_emittext): Updated.
324 (html_text::do_para): Add paremeter to handle space.
326 (html_text::retrieve_para_space): New function.
328 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
329 (tag_definition): Remove `really_issued'.
330 (html_text): Updated.
332 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
333 `current_column' and `row_space'.
335 (html_printer::emit_raw, html_printer::write_header,
336 html_printer::do_indent, html_printer::do_check_center,
337 html_printer::do_tab_ts): Handle vertical space.
338 (html_printer:do_tab_te, html_printer::do_end_para): Call
340 (html_printer::do_col): Rewritten.
341 (html_printer::flush_globs): Remove debugging code.
342 (html_printer::is_line_start): New function.
343 (html_printer::start_font): Use `is_line_start'.
344 (html_printer::writeHeadMetaStyle): New function.
345 (html_printer::do_file_components, html_printer::~html_printer):
346 Call `writeHeadMetaStyle'.
348 * tmac/www.tmac (www-handle-percent): New macro.
349 (MPIMG): Handle percent values for width and height parameters.
352 * tmac/groff_www.man: Updated.
354 2005-02-14 Werner LEMBERG <wl@gnu.org>
356 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
357 $psname and $italic_angle.
358 Immediately restart file input loops if `split' returns an empty
361 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
362 Werner LEMBERG <wl@gnu.org>
364 Update afmtodit to better support Unicode (Michail).
365 Update afmtodit to use Perl 5 syntax (Werner).
367 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
369 Decorate variables with `my' where necessary.
370 Use `defined' where necessary to avoid warnings.
371 Don't use `do' for subroutine calls.
372 Other minor syntax updates.
373 Check for both `uXXXX[X[X]]' and `uniXXXX'.
374 Handle glyph variants properly.
375 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
378 * src/utils/afmtodit/afmtodit.man: Updated.
380 2005-02-13 Werner LEMBERG <wl@gnu.org>
382 Make groff.texinfo work with texinfo 4.8.
384 * doc/groff.texinfo (@Var): Use @r and @slanted.
385 (@defdummy, @Def*): Use @c to avoid empty lines.
386 (\angles): Replaced with...
387 (\Langlemacro, \Ranglemacro): New TeX macros.
388 (@Langlemacro, @Ranglemacro): New variables defined with @set.
389 (@angles): Use @Langlemacro and @Ranglemacro.
390 (\LE): Replaced with...
391 (\LEmacro): New TeX macro.
392 (@LEmacro): New variable defined with @set.
394 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
395 variables defined with @set.
396 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
397 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
402 * doc/texinfo.tex: Update to texinfo version 4.8.
404 * README.CVS: Updated.
406 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
408 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
411 2005-02-05 Werner LEMBERG <wl@gnu.org>
413 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
414 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
417 2005-02-01 Werner LEMBERG <wl@gnu.org>
419 * src/roff/groff/groff.man: Add information about paper size.
421 2005-01-25 Werner LEMBERG <wl@gnu.org>
423 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
426 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
428 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
430 (Re): Emit a warning if called without `.Rs'.
431 (doc-finish-reference): Use parameter for decreasing
432 `doc-reference-count'.
433 (doc-print-reference): Pass specific count parameters to
434 `doc-finish-reference'.
436 2005-01-21 Werner LEMBERG <wl@gnu.org>
438 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
439 Reset pointers to zero after deallocation. This fixes a crash
440 if a driver is called with multiple input files. Reported by
441 Ken Chilton <ken@chiltonfamily.org>.
443 * src/devices/grops/grops.man: Add more info on DSC.
445 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
447 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
450 2005-01-17 Werner LEMBERG <wl@gnu.org>
452 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
453 against division by zero.
455 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
457 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
459 2004-12-19 Werner LEMBERG <wl@gnu.org>
461 * install-sh: New version; taken from texinfo CVS.
463 2004-12-17 Werner LEMBERG <wl@gnu.org>
465 * tmac/devtag.tmac: Protect against loading twice.
466 Protect agains compatibility mode.
467 * tmac/www.tmac: Protect against loading twice.
468 Load `devtag.tmac' before switching off compatibility mode.
469 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
471 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
473 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
474 * configure: Updated.
476 2004-12-15 Thomas Klausner <wiz@netbsd.org>
478 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
480 2004-12-15 Werner LEMBERG <wl@gnu.org>
482 Make `test-groff' work again -- previously, wrong paths have been
483 used. Additionally, it can now be called from anywhere.
485 * test-groff.in: Don't test for groff binary. This is no longer
486 necessary since the proper paths are determined by `configure'.
487 (EXEEXT): Removed. No longer used.
488 (srcdir, builddir): Use values provided by the configure script.
489 (XENVIRONMENT): Updated.
493 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
495 Make .tag and .taga work for all devices (but only grohtml actually
498 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
499 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
500 html_printer::handle_assertion): Don't use hard-coded string
502 (html_printer::lookahead_for_table): Reset `tbl' properly if
504 (html_printer::devtag): New function, handling `devtag'.
505 (html_printer::special): Don't handle `html-tag'.
507 * src/include/printer.h, src/libs/libdriver/printer.cpp
508 (printer::devtag): New virtual function.
510 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
513 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
514 src/roff/troff/node.cpp: s/html-tag/devtag/.
516 * src/roff/troff/input.cpp (tag, taga): Always call
519 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
520 macros instead of HTML-TAG*.
522 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
524 * tmac/www.tmac: Load devtag.tmac.
525 Replace HTML-TAG* macros with DEVTAG* macros.
526 (HTML, HTML-NS): Changed definitions.
528 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
530 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
532 2004-12-10 Werner LEMBERG <wl@gnu.org>
534 Import Mike's `gdiffmk' package.
536 * contrib/gdiffmk/*: New files.
537 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
540 2004-12-08 Werner LEMBERG <wl@gnu.org>
542 Import Keith's `pdfmark' package. Integration is very preliminary.
544 * contrib/pdfmark/*: New files.
545 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
548 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
550 Fix a bug with title handling in HTML.
552 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
553 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
555 (html_printer::handle_tag_within_title): New function.
556 (html_printer::do_title): Use it.
558 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
559 (cov*tl-au-print): Emit `.eo.tl' tag.
561 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
563 * man/groff_char.man: Minor imrovements.
565 2004-12-04 Werner LEMBERG <wl@gnu.org>
567 * src/preproc/eqn/eqn.man: Revised.
569 2004-11-25 Werner LEMBERG <wl@gnu.org>
571 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
575 Remove X_NOT_STDC_ENV conditional.
576 (Version_string, program_name): New global variables.
577 (groff_flag): Removed.
579 (usage): Take a stream as argument.
582 (main): Add `long_options' array for `--help' and `--version'.
583 Make `-g' a dummy option.
584 Handle `-v' and unknown options.
585 Remove unused `position' variable.
587 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
588 (XLIBS): Add LIBGROFF.
590 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
593 * src/devices/xditview/Dvi.c (default_font_map): Split into three
594 parts to avoid compiler warning.
595 (resources): Don't initialize with `default_font_map'.
596 (ClassInitialize): Initialize first element of `resources'.
598 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
601 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
602 src/utils/pfbtops/pfbtops.man: Revised, updated.
604 * configure.ac: Generate src/utils/xtotroff/Makefile.
605 * configure: Regenerated.
607 2004-11-24 Werner LEMBERG <wl@gnu.org>
609 First fixes to get produce HTML.
611 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
614 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
615 (HR, LI): Use `HTML</p>', not `HTML'.
617 * doc/webpage.ms: Minor updates.
619 2004-11-23 Larry Kollar <kollar@alltel.net>
621 Add option -S grohtml to determine the file split level.
623 * src/devices/grohtml/post-html.cpp (split_level): New global
625 (html_header::determine_header_level): Use split_level.
626 (main): Handle `-S' command line option.
629 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
631 * src/devices/grohtml/grohtml.man: Document it.
636 2004-11-23 Y T <doarhop@hotmail.com>
638 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
639 the volume and number refer entries.
641 2004-11-22 Werner LEMBERG <wl@gnu.org>
643 * src/devices/grohtml/html-table.cpp
644 (html_table::emit_table_header): Don't emit `cols' attribute which
645 doesn't exist in HTML 4.0 and is thus invalid.
647 * NEWS: More minor fixes and updates.
649 2004-11-18 Werner LEMBERG <wl@gnu.org>
651 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
652 (HTML</p>): Minor clean-up.
654 * tmac/groff_www.man: Updated.
656 * src/devices/grohtml/grohtml.man: Revised and updated.
660 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
662 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
664 (html_printer::do_links): Fix rules generation around automatic
667 * tmac/www.tmac (LK): Use HTML-TAG-NS.
669 No longer emit empty line for non-HTML devices.
671 2004-11-17 Werner LEMBERG <wl@gnu.org>
673 * doc/Makefile.in (prepare_examples, webpage.html): Handle
676 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
677 prepare_examples, webpage.html): Handle `groff.css'.
679 2004-11-15 Werner LEMBERG <wl@gnu.org>
681 * NEWS, README, doc/webpage.ms: Updated.
683 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
685 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
687 * src/include/printer.h (printer): Remove virtual function
689 Update all source files.
691 * src/devices/grohtml/post-html.cpp (html_printer): New member
692 function `round_width'.
694 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
696 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
697 column key letter suffix.
699 2004-10-14 Werner LEMBERG <wl@gnu.org>
701 * Makefile.in (check): Depend on `site.exp' and `docheck'.
702 (docheck): Run dejagnu's `runtest' if it exists.
703 (site.exp): Create dejagnu configuration file.
705 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
707 2004-10-13 Werner LEMBERG <wl@gnu.org>
709 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
710 src/devices/grohtml/post-html.cpp (make_val,
711 html_printer::handle_state_assertion): Fix compiler warnings.
713 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
714 (diversion::diversion): Fix order of initializers.
716 * src/roff/troff/div.h: Don't include `mtsm.h'.
718 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
719 (environment::environment): Fix order of initializers.
720 (environment::make_tag, environment::construct_format_state): Fix
723 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
724 (input_iterator::input_iterator, macro::macro): Fix order of
727 * src/roff/troff/mtsm.cpp: Include only necessary header files.
728 (state_set::add, state_set::val): Fix compiler warnings.
730 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
731 (bool_value_state, int_value_state, units_value_state,
732 string_value_state): Remove comma after last element which causes
733 an error with g++ 3.3.3.
735 * src/roff/troff/node.cpp: Include `stringclass.h'.
736 (hline_node::hline_node, vline_node::vline_node,
737 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
739 (zero_width_node::zero_width_node): Fix order of initializers.
741 * src/roff/troff/node.h: Don't include `mtsm.h'.
742 (hmotion_node): Fix compiler warnings.
744 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
746 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
748 * doc/groff.css: New file.
750 * doc/webpage.ms: Use `groff.css'.
753 * tmac/an-old.tmac (need_eo_h): New number register.
754 (TH): Emit `.eo.tl' tag after title.
755 (SH): Set `need_eo_h'.
756 (an-trap): Handle `need_eo_h'.
757 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
759 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
760 (TL): Always start diversion.
762 (@AI): Always call `par@reset'.
763 (@AB): Update code for -Thtml.
764 (cov*tl-au-print): Handle -Thtml.
765 (par@reset): Handle `need_eo_tl', `need_eo_h'.
768 (@SH): Set `need_eo_h' for -Thtml.
769 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
771 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
772 Set `need_eo_h' for -Thtml.
773 (@EQ, @EN): Don't handle -Thtml specially.
774 (par@load-init): Don't handle -Thtml specially.
776 * tmac/www.tmac (www:paraspace): New macro.
777 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
778 (HTML</p>, HTML-TAG-NEXT): New macros.
779 (HnE): Emit tag `.eo.h' instead of break.
780 (HR): s/HTML-NS/HTML/.
781 (www-end-nowhere): End diversion only if `www-html' not set.
783 (ULS, ULE): s|HTML|HTML</p>|.
784 (LI): Call `www:paraspace'.
787 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
789 * src/roff/troff/request.h (macro): Make `p' public.
790 New variable `is_a_diversion'.
791 New member function `is_diversion'.
794 * src/devices/grohtml/html.h (simple_output): New member function
797 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
798 computation of `total'.
799 (tabs::check_init): New function.
800 (html_table::emit_table_header): Emit style data.
801 (html_table::insert_column): Improved.
803 * src/devices/grohtml/html-table.h: Updated.
805 * src/devices/grohtml/html-text.cpp (html_text::html_text):
806 Initialize `start_space' with TRUE.
807 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
809 (html_text::flush_text): Set `start_space' flag.
810 (html_text::uses_indent, html_text::remove_para_space,
811 html_text::get_alignment): New functions.
812 (html_text::push_para): Updated.
813 (html_text::do_para): Check for empty argument.
814 Don't set `space_emitted'.
815 (html_text::do_space, html_text::emit_space): Updated.
817 * src/devices/grohtml/html-text.h (tag_definition): New variable
819 (html_text): New member function `uses_indent', `remove_para_space',
822 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
824 (simple_output:nl): Always emit `\n'.
826 * src/devices/grohtml/post-html.cpp: Include `string.h'.
827 (BASE_POINT_SIZE): Removed.
828 (base_point_size, head_info): New global variables.
829 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
831 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
833 (page::add_and_encode): Pass additional parameter for tag flag.
834 (assert_pos): New structure.
835 (assert_state): New class.
836 (html_printer): Remove `indentation', `prev_indent'.
837 Add variables `troff_indent', `device_indent', `temp_indent'.
838 Add variables `seen_indent', `next_indent', `seen_pageoffset',
839 `next_pageoffset', `seen_linelenght', `next_linelength',
840 `seen_center', `next_center', `seen_space', `seen_break', `as'.
841 Add member functions `do_check_center', `do_space', `do_head',
842 `get_troff_indent', `restore_troff_indent', `handle_assertion',
843 `handle_state_assertion', `do_end_para', `set_char_and_width'.
844 Change argument to `do_fill' to `char *'.
846 (html_printer::emit_raw): Call `shutdown_table'.
848 (html_printer::do_center): Simplified.
849 (html_printer::do_title): Improved.
850 (html_printer::write_header): Emit one more newline.
852 (html_printer::do_heading, html_printer::do_indent,
853 html_printer::do_eol, html_printer::do_tab_ts,
854 html_printer::do_tab, html_printer::do_tab0,
855 html_printer::calc_po_in, html_printer::next_horiz_pos,
856 html_printer::remove_courier_tabs,
857 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
859 (html_printer::do_linelength, html_printer::do_pageoffset,
860 html_printer::do_indentation, html_printer::do_tempindent,
861 html_printer::do_tab_te): Simplified.
862 (html_printer::do_pointsize): Check whether point size is really
863 associated a `.tl' tag.
864 (html_printer::do_break): Rewritten.
865 (html_printer::troff_tag): Improved.
866 (html_printer::flush_globs): Updated.
867 (html_printer::lookahead_for_tables): Handle `is_br'.
869 (html_printer::set_char): Check `sbuf_style.f'.
870 (html_printer::write_navigation): Use string comparison.
871 (html_printer::~html_printer): Emit `head_info'.
872 (html_printer::special): Rewritten.
873 (get_str, make_val): New functions.
874 (main): New option `s' to set the base point size.
876 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
878 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
880 * src/roff/troff/node.cpp: New extern `debug_state'.
881 Include `stringclass.h' and `mtsm.h'.
882 Implement new classes and class members from `node.h'.
883 (real_output_file): Make `fp' public.
884 (troff_output_file): New variables `cur_div_level' and `tag_list'.
886 (troff_output_file::really_print_line): Check whether we should push
887 the current troff state and use the state at the start of the
888 invocation of this diversion.
889 (troff_output_file::add_to_tag_list): New member function.
890 (node::add_char): Handle `glyph_comp_np'.
892 * src/roff/troff/node.h: Include `mtsm.h'.
893 (node): New variables `state', `push_state', `div_nest_level',
894 `is_special'. Update constructors, all descendants.
895 Pass additional argument to `add_char' member function.
896 New virtual member functions `is_tag', `debug_node',
897 `debug_node_list'. Update all descendants.
898 (tag_node): New class for handling tags.
899 (output_file): Add variable `state'.
901 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
903 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
904 providing a minimal troff state machine to emit meta tags for the
905 post-grohtml device driver.
907 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
910 2004-10-09 Werner LEMBERG <wl@gnu.org>
912 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
914 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
916 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
918 * src/roff/troff/div.h: Include `mtsm.h'.
919 (diversion): New variables `any_chars_added', `needs_push',
920 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
921 `saved_suppress_next_eol', `modified_tag'.
922 New virtual member function `is_diversion'. Update all descendants.
924 * src/roff/troff/div.cpp (diversion::diversion,
925 macro_diversion::macro_diversion): Updated.
926 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
928 (top_level_diversion::space): Handle `curenv->seen_space'.
929 (page_offset): Update tag handling.
930 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
932 * src/roff/troff/env.h (environment): Make `tabs' public.
933 Remove `ignore_next_eol', `emitted_node'.
934 Update `output_line', `output'.
935 New variables `seen_space', `seen_eol', `suppress_next_eol',
937 New member functions `construct_state', `make_tag',
938 `construct_format_state, `construct_new_line_state,
940 Remove `add_html_tag', `make_html_tag'.
942 * src/roff/troff/env.cpp: New externs `suppress_push',
943 `get_diversion_state', `global_diverted_space'.
944 (pending_output_line): New variable `was_centered'.
945 Update constructor and all callers.
946 (pending_output_line::output): Call `curenv->construct_format_state'.
947 (environment::environment, environment::copy): Updated.
948 (environment::output): Handle `was_centered'.
949 (environment::add_char): Handle construct and diversion state.
950 (environment::add_node): Handle construct state.
951 (environment::newline): Handle `was_centered'.
952 (environment::output_line): Updated.
953 (environment::possibly_break_line): Updated.
955 (environment::add_html_tag): Replaced with...
956 (environment::make_tag): New function.
957 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
958 (environment::dump_troff_state): New debugging function.
959 (environment::construct_state, environment::construct_format_state,
960 environment::construct_new_line_state): New functions.
961 (environment::do_break): Updated.
962 Handle `global_diverted_space'.
963 (environment::handle_tag): Update tag handling.
964 (point_size, fill, do_break_request): Don't call `add_html_tag'.
965 (no_fill): Don't call `add_html_tag'.
966 Set `suppress_next_eol'.
967 (center, right_justify, line_length, indent, temporary_indent,
971 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
972 (input_iterator): New variables `is_diversion', `diversion_state'.
974 (input_stack): New member functions `get_div_level',
975 `get_diversion_state', `check_end_diversion'.
976 New variables `div_level', `diversion_state'. Initialize them.
977 (suppress_push, global_diverted_space): New global variables.
978 (input_stack::finish_get, input_stack::finish_peek,
979 input_stack::remove_boundary, input_stack::end_file,
980 input_stack::clear, input_stack::pop_macro): Call
981 `check_end_diversion'.
982 (input_stack::push): Handle `div_level' and `diversion_state'.
983 (get_diversion_state): New function.
984 (diverted_space_node::reread): Handle `global_diverted_space'.
985 (macro::macro): Update constructors.
986 (macro::is_diversion): New function.
987 (macro::operator=): Set `is_a_diversion'.
988 (string_iterator): New member function `is_diversion'.
989 (string_iterator::string_iterator): Update constructors.
990 (string_iterator::fill): Set `div_nest_level'.
991 (macro_iterator): New member function `is_diversion'.
992 (do_if_request): Handle `suppress_push'.
993 (tag, taga): New functions.
994 (init_input_requests): Add `tag' and `taga' requests.
996 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
998 * src/include/font.h (font): New member function
999 `get_image_generator'.
1000 New variables `unscaled_charwidths' and `image_generator'.
1002 * src/libs/libgroff/font.cpp (font::get_width): Always return the
1003 character's unscaled width if `font::unscaled_charwidths' is set.
1004 (font::get_image_generator): New function.
1005 (font::load_desc): Check the `unscaled_charwidths' and
1006 `image_generator' keywords.
1008 * src/libs/libgroff/fontfile.cpp: Initialize
1009 `font::unscaled_charwidths' and `font::image_generator'.
1011 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1013 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1015 * man/groff_font.man: Document `unscaled_charwidths' and
1018 * src/preproc/html/pre-html.cpp: Include `device.h'.
1019 (image_gen): New global variable.
1020 (imageList::createPage): Use `image_gen'.
1021 (main): Use `image_generator' keyword.
1023 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1025 * tmac/html.tmac: Handle \[sqrtex].
1027 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1029 * src/include/printer.h (printer): New virtual method `round_width'.
1031 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1032 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1033 src/devices/grotty/tty.cpp (printer::round_width): New function
1036 * src/devices/grohtml/post-html.cpp (printer::round_width): New
1038 (html_printer::set_numbered_char): Use it.
1040 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
1042 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1044 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1046 * configure: Regenerated.
1048 * Makefile.in (GHOSTSCRIPT): New variable.
1049 (MDEFINES): Add GHOSTSCRIPT.
1051 2004-10-03 Werner LEMBERG <wl@gnu.org>
1053 * INSTALL.gen: Updated (taken from texinfo CVS).
1055 2004-09-28 Werner LEMBERG <wl@gnu.org>
1059 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1061 * tmac/groff_www.man: Revised and updated.
1063 2004-09-26 Werner LEMBERG <wl@gnu.org>
1065 Fix \$@ and \$* to handle any number of arguments.
1067 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1070 * src/roff/troff/input.cpp (input_iterator::internal_level):
1072 (input_stack): New member functions `increase_level' and
1074 (input_stack::get_level): Don't use `internal_level'.
1075 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1076 (end_quote_iterator): Completely removed.
1077 (interpolate_arg): Build string for \$@ and \$* which is then
1078 pushed onto the input stack.
1080 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
1082 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1085 2004-09-23 Werner LEMBERG <wl@gnu.org>
1087 * tmac/an-old.tmac (ne): Using default scaling operator.
1089 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1091 This change implements the following features:
1094 New numeric register: Defines number of lines following LP, PP,
1095 QP, IP or XP, which must be kept together, before any automatic
1096 page break. If insufficient space remains on the current page, a
1097 page break is forced before the new paragraph begins.
1100 New numeric register: Sets number of lines of following paragraph
1101 which must be kept with a heading, defined by NH or SH, before any
1102 automatic page break. If insufficient space remains on the
1103 current page, a page break is forced before the heading.
1106 (Thanks to Joerg van den Hoff, for this idea).
1108 New numeric register: Sets the first level of heading (set with
1109 NH), which will keep the same point size as body text; e.g. if
1110 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1111 point size specified by \n[PS], but .NH 2 and .NH 1 will have
1112 progressively larger point sizes, determined by \n[PSINCR] (see
1116 New numeric register: Sets the point size increment for each level
1117 of heading, (set with NH), below the threshold level set by
1118 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1119 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1120 and all other levels will remain at 10pt, (because \n[PS] = 10).
1123 Existing macro now accepts a numeric argument, to make heading
1124 size match that of NH with same argument value, when the
1125 GROWPS/PSINCR feature is enabled.
1128 New string, set by NH macro, replaces the existing (undocumented)
1129 use of SN, to represent the assigned section number.
1132 New string, set by NH macro, represents the assigned section
1133 number, but omits the terminal period (periods at intermediate
1134 levels are retained).
1137 String set by NH macro, originally undocumented, now implemented
1138 as an alias for SN-DOT (which reproduces original behaviour).
1140 * tmac/s.tmac (PORPHANS): New register.
1141 (par*start): Use it.
1142 (HORPHANS, GROWPS, PSINCR): New registers.
1143 (SH-NO-TAG, @SH): Use them.
1146 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1148 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1149 of `Ds' and `De' macros.
1151 2004-09-10 Werner LEMBERG <wl@gnu.org>
1153 In tbl, handle \a as an interpreted leader character if in
1156 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1157 LEADER_CHAR): New macros.
1158 (compatible_flag): New declaration.
1160 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1161 LEADER_3, and LEADER_4 to `state'.
1162 (table_input::get): Handle `\a'.
1164 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1165 (LEADER_REG): New macro.
1166 (table::init_output): Define LEADER_REG string register if in
1169 * src/preproc/tbl/tbl.man: Document it.
1171 2004-08-18 Werner LEMBERG <wl@gnu.org>
1173 * tmac/doc.tmac (An): Fix error message.
1175 2004-08-06 Werner LEMBERG <wl@gnu.org>
1177 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1178 file can't be opened. UNIX tbl has the same behaviour.
1180 2004-08-05 Y T <doarhop@hotmail.com>
1182 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1183 (DBRead): If in compatibility mode, take into account the text
1184 when computing figure boundaries.
1186 2004-08-05 Werner LEMBERG <wl@gnu.org>
1188 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1189 from Tadziu Hoffmann.
1191 2004-08-03 Werner LEMBERG <wl@gnu.org>
1193 * doc/meref.me: Document `_M' register.
1195 2004-08-03 Martin Husemann <martin@duskware.de>
1197 Make hpftodit work correctly on big-endian systems.
1199 * src/utils/hpftodit/hpftodit.cpp (File): New method
1200 `get_uint32(char *)'.
1201 (entry): New member `orig_value'.
1202 (read_tags): Use new method.
1203 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1206 2004-08-01 Werner LEMBERG <wl@gnu.org>
1208 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1209 are already in X11's `macros.t' file.
1211 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1213 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1215 (read_and_output_pcltypeface): Handle strings with length <= 4.
1217 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1219 * tmac/s.tmac (pg@top): Don't save `PO' register.
1220 (pg*end-col, pg*end-page): Directly use `PO' register.
1222 2004-07-27 Werner LEMBERG <wl@gnu.org>
1224 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1226 * src/preproc/refer/refer.cpp (output_references): Check for
1228 * src/preproc/refer/refer.man: Improve documentation of
1229 `bibliography' command.
1231 2004-07-26 Werner LEMBERG <wl@gnu.org>
1233 Add requests `fcolor' and `gcolor'.
1235 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1237 (init_env_requests): Add `fcolor' and `gcolor'.
1239 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1241 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1242 Document new requests.
1244 2004-07-24 Werner LEMBERG <wl@gnu.org>
1246 Add support for fractional point sizes in ms macros. A value for
1247 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1248 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1250 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1251 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1253 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1255 2004-07-19 Werner LEMBERG <wl@gnu.org>
1257 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1259 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1260 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1262 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1264 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1265 * tmac/groff_mdoc.man: Updated.
1267 2004-07-05 Werner LEMBERG <wl@gnu.org>
1269 * doc/groff.texinfo: Further improve documentation of `hcode'.
1271 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1273 Improve appearance of arrows in pic.
1275 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1277 Use two line segments for drawing non-filled arrow head.
1278 (line_object::print, spline_object::print): Shorten line length to
1279 avoid arrow sticking.
1280 (arc_object::print): Take arrow direction into account.
1282 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1284 * tmac/groff_www.man: Update documentation of .MPIMG.
1286 2004-07-03 Werner LEMBERG <wl@gnu.org>
1288 * tmac/an-old.tmac (RI): Always start with font `R'.
1289 (RI, IR): Properly end with font `R'.
1291 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1293 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1294 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1295 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1296 Don't pass more than six arguments to .R, .I, .B, etc., for
1297 compatibility with traditional troff macros.
1299 2004-07-02 Werner LEMBERG <wl@gnu.org>
1301 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1302 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1304 (PUSH_COMP_MODE): New internal character constant.
1307 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1308 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1309 (token::next, macro::append): Handle PUSH_COMP_MODE.
1310 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1311 POP_GROFFCOMP after each of the decoded arguments to make them
1312 independent from the compatibility mode status.
1313 (comp_mode): Add `COMP_ENABLE'.
1314 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1315 (define_string, append_string, define_macro, define_indirect_macro,
1316 append_macro, append_indirect_macro): Handle `compatible_flag'.
1317 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1319 * man/groff_diff.man, doc/groff.texinfo: Updated.
1321 2004-07-01 Werner LEMBERG <wl@gnu.org>
1323 * doc/groff.texinfo: Improve documentation of `hcode'.
1324 Use @documentencoding and convert document to latin-1; to do that
1325 make latin characters active and assign proper macros (within a
1326 @tex...@end tex environment).
1327 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1328 * doc/Makefile.sub (groff): Ditto.
1330 2004-06-29 Werner LEMBERG <wl@gnu.org>
1332 Implement two new conditional operators `F <name>' and `S <name>'
1333 which check whether <name> is a valid font or style, respectively.
1335 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1336 (text_file::text_file): Updated.
1337 (text_file::error): Don't emit message if `silent' is set.
1338 (font::load_font): Add optional third argument (which is directly
1340 (font::load): Add optional second argument to check the header of
1341 a font only, without emitting warning or error messages.
1342 * src/include/font.h (font): Updated.
1344 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1346 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1347 fourth argument to check a font without mounting.
1348 (check_font, check_style): New functions.
1349 * src/roff/troff/node.h: Updated.
1351 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1354 2004-06-27 Werner LEMBERG <wl@gnu.org>
1356 Implement new string-valued register `.sty' to return the current
1359 * env.cpp (environment::get_style_name_string): New function.
1360 (init_env_requests): Add `.sty' register.
1361 * env.h (environment): Updated.
1362 * node.cpp (font_info): Make `get_style_name' a friend.
1363 (get_style_name): New function.
1366 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1369 2004-06-15 Werner LEMBERG <wl@gnu.org>
1371 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1374 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1376 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1377 and \n[mo] to avoid dependency on current date.
1379 2004-06-08 Werner LEMBERG <wl@gnu.org>
1381 * Makefile.sub (install_data): New target.
1383 2004-06-04 Werner LEMBERG <wl@gnu.org>
1385 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1387 2004-06-03 Werner LEMBERG <wl@gnu.org>
1389 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1391 (install_data): Add $(srcdir).
1393 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1396 2004-06-02 Werner LEMBERG <wl@gnu.org>
1398 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1399 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1400 Add test for Xmu library.
1401 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1402 GROFF_APPRESDIR_DEFAULT): New macros.
1404 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1405 and GROFF_APPRESDIR_DEFAULT.
1407 * configure: Regenerated.
1409 * Makefile.in (appresdir): New variable.
1410 (MDEFINES): Add appresdir.
1412 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1414 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1416 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1417 `$(srcdir)/eign', not `eign'.
1419 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1421 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1422 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1423 Protect (g)xditview with `\%' to avoid hyphenation.
1424 Other minor formatting.
1426 2004-06-01 Werner LEMBERG <wl@gnu.org>
1428 Integrate gxditview into groff's standard directory hierarchy.
1430 * src/xditview/*: Moved to ...
1431 * src/devices/xditview/*: Here.
1432 Moved DviChar.h and XFontName.h to src/include.
1433 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1434 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1435 Moved xtotroff.c to new directory src/utils/xtotroff.
1436 Provide proper Makefile.sub files (reusing the stuff from
1438 DESC renamed to DESC.in.
1439 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1440 Converted everything from K&R to ANSI C.
1441 Decorated with const where appropriate.
1442 Cast string constants with `String' and `char *' where appropriate.
1443 Made it compile with C++ (used as a C compiler).
1444 Removed other minor compiler warnings.
1446 * src/devices/xditview/device.c: Include config.h, string.h, and
1448 Don't declare `exit', `strtok', `strchr', and `getenv'.
1451 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1454 * src/devices/xditview/xditview.c: Include config.h.
1455 Include stdio.h earlier.
1456 Protect declaration of `popen' and `pclose' with
1457 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1458 Replace `caddr_t' with `XtPointer'.
1459 (MakePromptFunc): New typedef.
1460 (DoPrint): Use RETSIGTYPE.
1461 (promptfunction): Change type to MakePromptFunc.
1462 (MakePrompt): Use MakePromptFunc for third argument.
1465 * src/devices/xditview/ad2c: Add casts to `String'.
1467 * src/include/XFontName.h (XFontNameString): Don't use array
1469 Add prototypes for `XParseFontName', `XFormatFontName',
1470 `XCompareFontName', and `XCopyFontName'.
1472 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1475 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1476 Don't declare `XParseFontName' and `XFormatFontName'.
1478 (main): Remove `optind' and `optarg'.
1480 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1481 (to select programs which need X).
1482 Make XDEVIDIRS depend on `FORCE'.
1483 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1485 (MDEFINES): Updated.
1486 (LIBDIRS): Use XLIBDIRS.
1487 (CPROGDIRS): Use XPROGDIRS.
1488 (DEVDIRS): Remove font directories for gxditview.
1489 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1490 (EXTRADIRS): Remove src/xditview.
1492 * Makefile.sub (DISCLEANFILES): Updated.
1494 * Makefile.comm (LIBXUTIL): New variable.
1495 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1496 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1498 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1500 * aclocal.m4 (GROFF_X11): New function.
1502 * configure.ac: Call GROFF_X11.
1503 Don't create src/xditview/Imakefile.
1504 Don't emit notice how to build gxditview.
1506 * configure: Regenerated.
1508 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1510 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1512 * Makefile.in (CPPFLAGS): Define.
1513 (MDEFINES): Add CPPFLAGS.
1515 2004-05-27 Werner LEMBERG <wl@gnu.org>
1517 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1519 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1521 Fix problems with `friend name injections'.
1523 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1524 make_script_box), src/roff/troff/div.h (end_diversions),
1525 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1528 2004-05-25 Bernd Warken <bwarken@mayn.de>
1530 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1532 2004-05-25 Werner LEMBERG <wl@gnu.org>
1534 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1535 src/libs/libgroff/color.cpp: Include lib.h.
1537 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1539 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1540 through Forte 6u1, and for how to get GNU make on Solaris.
1542 2004-05-24 Werner LEMBERG <wl@gnu.org>
1544 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1547 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1549 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1552 2005-05-14 Werner LEMBERG <wl@gnu.org>
1554 * REVISION: Set to 2.
1556 * aclocal.m4 (GROFF_STDINT_H): Removed.
1557 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1559 * configure.ac: Updated.
1560 * configure, src/include/config.hin: Regenerated.
1562 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1563 inttypes.h conditionally.
1565 2003-05-13 Werner LEMBERG <wl@gnu.org>
1567 Version 1.19.1 released
1568 =======================
1570 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1572 * src/preproc/refer/label.y (same_author_last_name,
1573 same_author_name): Handle empty sort keys.
1575 2004-05-10 Werner LEMBERG <wl@gnu.org>
1577 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1580 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1581 doc-str-Lb-librt): Reset font.
1582 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1583 Provide `doc-str-Lb' to reset font.
1584 * tmac/groff_mdoc.man: Updated.
1586 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1588 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1589 snprintf versions which don't conform to ANSI C 99 (this is,
1590 counting the string's trailing null byte in the return value).
1592 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1594 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1595 that all implementations of sprintf handle null pointers correctly.
1597 2004-05-04 Werner LEMBERG <wl@gnu.org>
1599 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1600 Document `.U' register.
1602 * src/roff/troff/env.cpp (environment::mark_last_line)
1603 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1605 2004-05-04 Larry Kollar <kollar@alltel.net>
1607 New read-only register `.U'; it returns 1 in safer mode and 0
1610 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1613 2004-05-03 Werner LEMBERG <wl@gnu.org>
1615 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1617 2004-04-17 Werner LEMBERG <wl@gnu.org>
1619 * src/include/font.h (font): Use `int' for ch_index.
1620 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1621 font::compact): Updated.
1623 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1626 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1627 (hyphen_word): Fix compiler warnings.
1628 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1631 (get_delim_number, get_line_arg): Change second argument type to
1633 (macro_header::copy, token::next, do_define_string,
1634 do_define_character, substring_request, asciify_macro,
1635 unformat_macro, read_size, non_interpreted_node::interpret,
1636 while_request, main: Fix compiler warnings.
1637 (read_color_draw_node): Initialize `col'.
1639 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1640 `start_col' and `end_col' of type `int'.
1641 (vertical_rule): Make `col' of type `int'.
1643 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1646 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1648 (format_serial): Use them to remove dependency on ASCII.
1650 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1652 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1655 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1657 (glyph): Change type of `hpos' to `int'.
1659 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1660 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1662 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1664 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1666 2004-04-16 Werner LEMBERG <wl@gnu.org>
1668 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1669 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1670 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1671 `double' instead of `float' everywhere.
1672 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1674 (main): Add return value.
1675 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1677 Update all user functions.
1679 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1680 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1681 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1682 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1683 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1684 src/roff/troff/input.cpp, src/roff/troff/request.h,
1685 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1688 * src/utils/indxbib/signal.c: Include stdlib.h.
1690 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1692 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1693 before the first page.
1695 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1697 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1698 (doc-operating-system-*): Updated.
1699 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1700 (doc-str-Lb-*): Add more library names.
1702 2004-04-10 Art Haas <ahaas@airmail.net>
1704 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1707 2004-04-09 Art Haas <ahaas@airmail.net>
1709 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1711 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1713 * arch/misc/shdeps.sh: Generate better comment for sed script.
1715 2004-04-08 Art Haas <ahaas@airmail.net>
1717 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1718 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1719 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1720 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1721 (polyfill), src/preproc/grn/main.cpp (polyfill),
1722 src/preproc/refer/command.cpp (command_table),
1723 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1724 gcc 3.5 doesn't like).
1726 2004-04-08 Werner LEMBERG <wl@gnu.org>
1728 Removing many compiler warnings. groff should now compile with
1729 a C++ compiler used for C files also. [Simple variable renamings
1730 to avoid shadowing aren't logged in detail.]
1732 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1733 (draw_dvi_printer::draw) ['c']: Enclose in block.
1735 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1736 (page::add_line): Fix typos.
1737 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1739 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1740 Some local variable renamings.
1741 * src/devices/grolbp/lbp.h: Some local variable renamings.
1743 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1746 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1747 Remove redundant local variable declaration.
1748 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1749 Don't use `caddr_t' but `void *'.
1750 Enclose functions with `extern "C"' for C++.
1752 * src/libs/libdriver/input.cpp (remember_filename,
1753 remember_source_filename): Use cast for string constant.
1755 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1756 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1757 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1758 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1760 Enclose functions with `extern "C"' for C++.
1761 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1762 (needs_quoting): Return `int'.
1763 (quote_arg): Add proper casts to malloc and realloc.
1764 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1765 various MS Windows environments.
1766 (spawnvp_wrapper): Add proper cast to malloc.
1768 * src/preproc/eqn/box.h: Remove redundant declarations of
1769 `make_script_box', `make_mark_box' and `make_lineup_box'.
1770 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1771 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1774 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1775 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1776 (dx, dy): Renamed functions to...
1777 (deltax, deltay): This.
1778 * src/preproc/grn/main.cpp: Some local variable renamings.
1779 (deffont): Add `const'.
1780 (initpic, conv): Use cast for string constant.
1782 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1783 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1784 (char_buffer::run_output_filter): Second argument is unused.
1785 * src/preproc/html/pushback.cpp: Some local variable renamings.
1787 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1788 * src/preproc/pic/object.cpp: Some local variable renamings.
1790 * src/preproc/refer/label.y (lookup_label): Remove redundant
1791 declaration of local variable.
1793 * src/preproc/soelim.cpp: Remove redundant declaration of
1794 `interpret_lf_args'.
1796 * src/preproc/tbl/main.cpp: Some local variable renamings.
1798 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1799 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1800 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1801 Don't use C++-style comments.
1803 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1804 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1805 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1807 * src/roff/troff/div.h: Remove redundant declaration of
1809 * src/roff/troff/troff.h: Remove redundant declaration of
1811 * src/roff/troff/input.cpp: Remove redundant declaration of
1812 `handle_first_page_transition' and `process_input_stack'.
1814 * src/utils/hpftodit.cpp: Some local variable renamings.
1816 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1818 Don't define RETSIGTYPE.
1819 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1821 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1822 (error): Use `const' in argument.
1823 (main): Remove redundant declaration of `optind'.
1824 Move declaration of `Version_string' to top-level.
1826 * PROBLEMS: Document difficulties compiling signal.c if a C++
1827 compiler is used for C.
1829 2004-04-07 Werner LEMBERG <wl@gnu.org>
1831 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1833 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1835 Make scripts like nroff.sh and neqn.sh portable across various
1836 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1837 non-POSIX path separators. The idea is to extend those scripts to
1838 decide at run-time (of the script) which path separator to use.
1840 * arch/misc/Makefile.sub: New file.
1841 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1842 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1843 a proper definition of the variable `GROFF_RUNTIME'.
1845 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1846 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1847 (PROGDEPDIRS): New variable.
1849 (PROGDIRS): Add PROGDEPDIRS.
1851 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1852 Don't substitute @SEP@ and @BINDIR@.
1853 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1854 (PATH): Use GROFF_RUNTIME.
1856 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1857 Don't substitute @SEP@ and @BINDIR@.
1858 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1859 (PATH): Use GROFF_RUNTIME.
1861 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1863 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1864 Cygwin which doesn't handle stderr correctly.
1866 2004-03-08 Werner LEMBERG <wl@gnu.org>
1868 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1869 against empty argument. Problem reported by <cgd@broadcom.com>.
1871 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1873 * Makefile.in (SEP): Replaced with...
1874 (RT_SEP, SH_SEP): Separators for the target platform's native path
1875 separator and the build environment, respectively.
1876 (fontpath, tmacpath): Use RT_SEP.
1877 (MDEFINES): Updated.
1879 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1880 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1881 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1882 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1884 2004-03-05 Werner LEMBERG <wl@gnu.org>
1886 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1887 reduce alignment problems with newer printers which use built-in
1888 TrueType fonts (instead of the older Intellifonts). The ideal
1889 solution is to provide a second set of groff metric files, but this
1890 is extremely time-consuming to produce, given that HP's metric
1891 files are very rudimentary.
1893 2004-03-01 Werner LEMBERG <wl@gnu.org>
1895 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1896 s/operand/argument/ in error message.
1898 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1900 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1903 2004-03-01 Antti Kantee <pooka@netbsd.org>
1905 * tmac/s.tmac (XE): Fix error message.
1907 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1909 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1912 * src/roff/groff/pipeline.c: Declare strcasecmp.
1913 (run_pipeline) [_WIN32]: Use function name variants which don't
1915 Fix stream handling.
1917 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1919 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1920 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1921 for platforms which use the native Win32 runtime libraries.
1922 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1924 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1925 QUOTE_ARG_REALLOC_ERROR): Fix string.
1927 * src/preproc/html/pre-html.cpp: Remove declaration of
1929 Don't use __MINGW32__.
1930 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1931 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1932 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1933 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1934 calls to `set_redirection' and `WAIT'.
1935 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1936 Fix calls to `set_redirection' and `save_and_redirect'.
1937 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1938 to `set_redirection' and `save_and_redirect'.
1939 (usage): Fix message.
1940 (makeTempFiles, main): Use `DEBUG_FILE'.
1942 2004-02-21 Werner LEMBERG <wl@gnu.org>
1944 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1946 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1948 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1949 quoting for MSVC's spawn* and exec* functions.
1950 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1951 spawnvp with proper quoting for MSVC.
1953 * src/libs/libgroff/assert.cpp (program_name),
1954 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1955 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1957 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1959 * src/include/error.h (program_name): Declare as `extern "C"'.
1960 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1962 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1964 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1966 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1968 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1970 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1972 (sbasename) [__MSDOS__ || ...]: New function.
1973 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1975 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1976 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1978 Use STDOUT_FILENO instead of hardcoded file handle.
1979 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1981 2004-02-19 Werner LEMBERG <wl@gnu.org>
1983 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1984 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1986 2004-02-18 Werner LEMBERG <wl@gnu.org>
1988 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1989 new font and mapping files.
1991 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1992 Keith Marshall <keith.d.marshall@ntlworld.com>
1994 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1995 an input pipe. This is needed for the MSVC compiler to make troff's
1998 * src/roff/troff/div.cpp: Include nonposix.h.
1999 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2001 2004-02-17 Werner LEMBERG <wl@gnu.org>
2003 * font/devlj4/generate/special.awk: New script.
2004 * font/devlj4/generate/Makefile (S): Use special.awk.
2005 * font/devlj4/*: Regenerated, including the following new files:
2006 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2007 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2008 * NEWS: Document new lj4 fonts and revised hpftodit.
2010 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
2012 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2014 2004-01-25 Werner LEMBERG <wl@gnu.org>
2016 * src/libs/libgroff/progname.cpp: Replaced with...
2017 * src/libs/libgroff/progname.c: New file.
2018 * src/libs/libgroff/Makefile.sub: Updated accordingly.
2020 2004-01-17 Werner LEMBERG <wl@gnu.org>
2022 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2024 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
2026 * font/devlj4/generate/wingdings.map,
2027 font/devlj4/generate/symbol.map: Include unnamed glyphs.
2028 Use groff glyph names where possible.
2029 * src/devices/grolj4/lj4_font.man: Minor updates.
2031 2004-01-13 Werner LEMBERG <wl@gnu.org>
2033 * tmac/www.tmac (DC): Handle TTY devices.
2035 * doc/webpage.ms: Document viewCVS from ffii.org.
2036 * NEWS, README: Updated.
2038 * src/roff/groff/groff.man: Mention lj4_font man page.
2040 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2042 (FONTS): Add SYMBOL and WINGDINGS.
2043 (SYMBOL, WINGDINGS): New targets.
2045 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
2047 * src/devices/grolj4/lj4_font.man: New man page.
2048 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2049 * src/devices/grolj4.man: Mention lj4_font man page.
2051 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2052 * src/utils/hpftodit/hpftodit.man: Document it.
2054 Remove details about fonts (which are now in lj4_font.man).
2056 * font/devlj4/generate/symbol.map,
2057 font/devlj4/generate/wingdings.map: New files.
2059 2004-01-12 Werner LEMBERG <wl@gnu.org>
2061 * README: Mention ffii's viewcvs access.
2063 2004-01-09 Werner LEMBERG <wl@gnu.org>
2065 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2067 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
2069 Revert most of the change from 2004-01-03 to better control used
2072 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2073 (text_symbol_sets, special_symbol_sets): New arrays.
2074 (symbol_set_table): New global variable.
2075 (read_symbol_sets): Use search order given in the text_symbol_sets
2076 and special_symbol_sets arrays. If command line flag -a is not
2077 given, search both arrays.
2078 (output_charset): Require x_height_tag only for command line flag -i.
2080 2004-01-06 Werner LEMBERG <wl@gnu.org>
2082 Implement string-valued registers \n[.m] and \n[.M] to return the
2083 name of the current drawing and background color, respectively.
2085 * src/roff/troff/symbol.h: Moved to...
2086 * src/include/symbol.h: Here.
2087 Small fixes to make it work outside of the `troff' directory.
2088 * src/roff/troff/symbol.cpp: Moved to...
2089 * src/libs/libgroff/symbol.cpp: Here.
2090 Small fixes to make it work outside of the `troff' directory.
2092 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2093 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2096 * src/include/color.h: Include symbol.h.
2097 (color): Add new field `nm'.
2098 * src/libs/libgroff/color.cpp (color::color): Updated.
2100 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2101 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2102 src/roff/troff/reg.cpp: Don't include symbol.h.
2104 * src/roff/troff/env.cpp: Don't include symbol.h.
2105 (environment::get_glyph_color_string,
2106 environment_get_fill_color_string): New member functions.
2107 (init_env_requests): Handle `.m' and `.M' registers.
2108 * src/roff/troff/input.cpp: Don't include symbol.h.
2109 (default_symbol): Moved to symbol.cpp/symbol.h.
2110 (do_glyph_color, do_fill_color, define_color): Pass symbol name
2111 to color constructor.
2112 * src/roff/troff/env.h: Updated.
2114 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2115 Document new registers.
2117 2004-01-05 Werner LEMBERG <wl@gnu.org>
2119 * src/roff/troff/node.cpp (space_node::get_breakpoints,
2120 space_node::nbreaks): Protect against zero `next' field.
2122 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
2124 In hpftodit, use the symbol sets offered in the TFM.
2126 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2127 (symbol_set, text_symbol_sets, special_symbol_sets,
2128 symbol_set_table): Removed.
2129 (get_printcode): Removed.
2130 (read_symbol_sets): Initialize `symbol_set' field with
2132 Simplify code to just use the `kind' value.
2133 (output_charset): Improve output formatting.
2134 (dump_symbols): Simplified.
2136 2004-01-02 Werner LEMBERG <wl@gnu.org>
2138 * font/devlj4/generate/text.map: Add more MSL numbers.
2140 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
2142 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2143 (text_symbol_sets): Add more symbol sets.
2144 (debug_flag): New static variable (moved from `main').
2145 (get_printcode, show_symset): New functions.
2146 (main): Remove `debug_flag'.
2147 (output_charset): Use `show_symset'.
2148 (dump_symbols): Use `show_symset'.
2149 Print symsets for all glyphs.
2150 (read_map): Actually call `unicode_to_ucode_make' but this time
2153 2004-01-01 Werner LEMBERG <wl@gnu.org>
2155 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2156 Fix placement of comments.
2158 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2160 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2161 option `-d' is given.
2162 (output_charset): Improve warning messages to give more information.
2163 (dump_symbols): Make information more precise.
2165 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2166 appear as-is and shouldn't be decomposed.
2168 2003-12-31 Werner LEMBERG <wl@gnu.org>
2170 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2171 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2172 (FONTS): Add TrueType font families Arial and Times New Roman.
2173 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2174 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2177 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2179 * test-groff.in (SEP): Quote value.
2180 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2181 `tem' to `char*' to avoid deallocation of a pointer to a constant
2182 object which some compilers don't like.
2184 2003-12-31 Werner LEMBERG <wl@gnu.org>
2186 * font/devlj4/generate (text.map, special.map): Rewritten to work
2187 with the new hpftodit version.
2189 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2191 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2192 set and 8bit character code for all glyphs also.
2194 2003-12-30 Werner LEMBERG <wl@gnu.org>
2196 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2198 2003-12-29 Werner LEMBERG <wl@gnu.org>
2200 More fixes for MSVC compiler.
2202 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2205 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2206 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2207 (getpid) [_MSC_VER]: Remove.
2208 Include direct.h and process.h conditionally.
2210 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2211 parentheses for a_delete.
2213 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2215 * test-groff: Replaced with...
2216 * test-groff.in: This new template to handle path separator
2219 * configure.ac: Check for direct.h and process.h.
2220 Generate test-groff script.
2221 * configure, src/include/config.hin: Regenerated.
2223 2003-12-28 Werner LEMBERG <wl@gnu.org>
2225 Add integral extension glyph.
2226 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2228 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2230 * font/devps/generate/textmap: Provide entry for `integralex' to
2231 override (old) PUA value of the AGL.
2232 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2233 * font/devps/*: Regenerated.
2235 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2236 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2238 2003-12-27 Werner LEMBERG <wl@gnu.org>
2240 Add forgotten `coproduct' symbol (already available for DVI).
2242 * font/devhtml/R.proto, font/devps/generate/textmap,
2243 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2244 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2245 U+2210 (\[coproduct]).
2247 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2249 hpftodit has been extended to handle TrueType metric files and
2250 more glyphs. See hpftodit.man for more details.
2252 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2253 ctype.h, and unicode.h.
2254 s/msl/charcode/ everywhere since we now handle Unicode values also.
2255 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2256 Use it where appropriate.
2257 (MULTIPLIER): Replaced with...
2258 (multiplier): New global static variable.
2260 (tag_type): Add more TFM tags.
2261 (tag_name): New array.
2262 (ENUM_TYPE, FLOAT_TYPE): Removed.
2263 (BYTE_TYPE): New value assigned.
2264 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2265 (text_symbol_sets, special_symbol_sets): Extended to cover more
2267 (check_type): Add return value.
2268 (check_units): Add parameters to get ppi and upem values.
2269 Handle TrueType TFM data.
2270 (output_font_name): New function.
2271 (output_charset): Add parameter to handle TFM type.
2272 Handle TrueType TFMs also.
2273 (em_fract): New macro.
2274 (dump_tags): Be much more verbose and handle more tags.
2275 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2276 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2278 (read_map): Add parameter to handle TFM type.
2279 Handle both MSL and Unicode mappings.
2280 (main): Add two new command line options `-a' and `-q'.
2281 Updated to make use of new functions.
2284 * src/utils/hpftodit/hpuni.cpp: New file.
2286 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2289 2003-12-25 Werner LEMBERG <wl@gnu.org>
2291 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2293 2003-12-24 Werner LEMBERG <wl@gnu.org>
2295 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2296 by Michail Vidiassov <master@iaas.msu.ru>.
2298 2003-12-20 Werner LEMBERG <wl@gnu.org>
2300 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2302 Add missing latin-2 glyphs.
2303 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2305 * tmac/troffrc: Load `composite.tmac' earlier.
2307 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2308 u00{53,73}_0327, and u0049_0307.
2309 * tmac/X.tmac: Add u00{47,67}_0306.
2310 * tmac/tty-char.tmac: Use composite glyph names for readability.
2314 * src/include/unicode.h: Remove `extern' keywords.
2316 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2318 * tmac/latin5.tmac: New file.
2320 2003-12-19 Werner LEMBERG <wl@gnu.org>
2322 Add some glyphs needed for Turkish.
2324 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2327 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2328 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2329 u00{53,73}_0327, and u0049_0307.
2331 2003-12-18 Werner LEMBERG <wl@gnu.org>
2333 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2335 Remove trailing zeros.
2337 2003-12-17 Werner LEMBERG <wl@gnu.org>
2339 Make \? transparent to end-of-sentence recognition.
2341 * src/roff/troff/input.cc (non_interpreted_node): Add
2342 `ends_sentence' member function.
2344 2003-12-16 Werner LEMBERG <wl@gnu.org>
2346 * doc/groff.texinfo: Document `dt' request correctly.
2347 Other minor typographical improvements.
2349 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2351 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2353 2003-12-10 Richard Stallman <rms@gnu.org>
2355 * LICENSE: Better wording.
2357 2003-12-09 Werner LEMBERG <wl@gnu.org>
2359 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2360 * configure, NEWS: Updated.
2362 2003-12-08 Werner LEMBERG <wl@gnu.org>
2364 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2366 2003-12-07 Bernd Warken <bwarken@mayn.de>
2370 2003-12-07 Werner LEMBERG <wl@gnu.org>
2372 * INSTALL: Improved.
2374 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2376 Use path separator character of target platform for compiled-in
2379 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2380 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2381 * configure: Regenerated.
2382 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2384 2003-12-05 Werner LEMBERG <wl@gnu.org>
2386 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2387 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2389 2003-12-04 Bernd Warken <bwarken@mayn.de>
2391 * LICENSE: New file.
2393 2003-12-03 Werner LEMBERG <wl@gnu.org>
2395 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2396 ligatures present in AFM files since groff currently only
2397 understands some standard ligatures and nothing else.
2399 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2401 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2404 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2407 Don't use Unix wait flags.
2409 2003-12-02 Werner LEMBERG <wl@gnu.org>
2411 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2412 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2413 src/roff/troff/uniuni.cpp: Moved to...
2414 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2415 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2416 src/libs/libgroff/uniuni.cpp: Here.
2418 * src/include/Makefile.sub.old (HDRS),
2419 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2420 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2422 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2424 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2428 2003-12-01 Werner LEMBERG <wl@gnu.org>
2430 * groff.texinfo: Document special behaviour of `.vs 0'.
2431 Improve documentation of `cflags' request.
2434 2003-11-29 Werner LEMBERG <wl@gnu.org>
2436 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2437 * font/devlj4/CORONET: Regenerated.
2439 2003-11-24 Werner LEMBERG <wl@gnu.org>
2441 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2442 if processing hyphenation patterns in traditional mode.
2443 Improve error messages.
2445 2003-11-20 Werner LEMBERG <wl@gnu.org>
2447 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2448 troff_output_file::put_char): Fix type of local variable `c'.
2450 2003-11-19 Werner LEMBERG <wl@gnu.org>
2452 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2454 (i_to_a): Removed. libgroff already provides this function.
2455 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2457 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2459 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2462 2003-11-17 Werner LEMBERG <wl@gnu.org>
2464 * COPYING: Use correct version.
2466 2003-11-11 Werner LEMBERG <wl@gnu.org>
2468 LynxOS 4.0.0 doesn't declare vfprintf.
2470 * configure.ac: Check for vfprintf.
2471 * configure: Regenerated.
2472 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2473 * src/include/config.hin: Regenerated.
2475 2003-11-10 Werner LEMBERG <wl@gnu.org>
2477 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2479 * configure.ac: Check for vsnprintf.
2480 * configure: Regenerated.
2481 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2483 * src/include/config.hin: Regenerated.
2485 2003-11-09 Werner LEMBERG <wl@gnu.org>
2487 * aclocal.m4: Updated syntax to autoconf 2.59.
2488 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2489 Don't check for gsos2.
2490 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2491 working abs_top_srcdir and abs_top_builddir.
2493 * configure.ac: Updated syntax to autoconf 2.59.
2494 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2495 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2496 * configure: Regenerated.
2498 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2499 s/@groff_top_builddir@/@abs_top_builddir@/.
2501 * src/roff/groff/pipeline.c (xstrsignal):
2502 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2504 2003-11-07 Werner LEMBERG <wl@gnu.org>
2506 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2507 make start angle smaller than end angle to circumvent a bug in tpic
2508 handling of some versions of dvipdfm (and dvipdfmx).
2510 2003-10-30 Werner LEMBERG <wl@gnu.org>
2512 * src/devices/grops/grops.man: Improve section on creating EPS.
2514 2003-10-29 Werner LEMBERG <wl@gnu.org>
2516 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2519 2003-10-28 Werner LEMBERG <wl@gnu.org>
2521 * doc/groff.texinfo: Fix documentation of `.if'.
2523 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2525 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2526 the form `uniXXXX' also.
2528 2003-10-27 Werner LEMBERG <wl@gnu.org>
2530 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2531 contrib/pic2graph/pic2graph.sh: Implement secure management of
2533 Pass `-P-pletter' to groff to avoid data outside of the converted
2534 area -- some versions of `convert' (for example 5.3.8) don't check
2535 the bounding box of the image but always use a fixed image size
2536 (letter paper format).
2537 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2538 contrib/pic2graph/pic2graph.man: Updated.
2540 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2542 2003-10-26 Werner LEMBERG <wl@gnu.org>
2544 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2545 troff_output::simple_ellipse, troff_output::simple_arc,
2546 troff_output::simple_line, troff_output::simple_spline,
2547 troff_output::simple_polygon): Insert a space before arguments.
2548 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2549 latter doesn't produce a node, so the following `.sp -1' would do
2551 Don't emit `.sp -1' after \M. This also doesn't produce a token
2552 (and we don't have to care about compatibility mode).
2553 (troff_output::set_color, troff_output::reset_color): Don't emit
2554 `.sp -1' after \M and \m.
2556 * src/roff/troff/input.cpp (old_have_input): New global variable.
2557 (input_stack::get): Handle `old_have_input'.
2558 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2559 `trapping_blank_line' depending on `old_have_input', not
2562 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2564 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2565 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2566 default directory names for temporary files.
2567 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2569 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2570 [__MSDOS__] (run_pipeline): Honour environment variables.
2571 Don't use `tmpnam' but `tempnam' to work around messy
2574 * README.MinGW: New file.
2576 2003-10-16 Werner LEMBERG <wl@gnu.org>
2578 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2579 `(*t)->next' without testing validity of `*t'.
2580 (usage): Make it more readable.
2582 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2584 Make html device run under both MS-DOS and Win32.
2586 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2587 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2588 spawn or fork+exec has to be used, and whether parent must sleep
2589 until the child process terminates. Used in
2590 `char_buffer::run_output_filter'.
2591 (copyofstdoutfd): Removed.
2592 (char_buffer): Replace `write_file_html' and `write_file_troff'
2593 member functions with `emit_troff_output' and `run_output_filter'.
2594 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2596 (replaceFd): Replaced with...
2597 (set_redirection): New auxiliary function.
2598 (waitForChild): Replaced with...
2599 (save_and_redirect): New auxiliary function for.
2601 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2604 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2606 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2607 (GROFF_LIBC): New function.
2608 * configure.ac: Call GROFF_LIBC.
2610 * configure: Regenerated.
2612 * src/include/lib.h: Handle __MINGW32__.
2613 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2614 Add macro for `pipe'.
2617 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2620 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2623 2003-10-13 Werner LEMBERG <wl@gnu.org>
2625 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2628 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2631 2003-10-12 Werner LEMBERG <wl@gnu.org>
2633 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2634 src/roff/troff/input.cc (usage): Updated.
2636 * NEWS, doc/groff.texinfo: Updated.
2638 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2640 * src/libs/libgroff/searchpath.cpp
2641 (search_path::open_file_cautious): New function which also handles
2642 `-' as stdin and stdout depending on the access mode.
2643 * src/include/searchpath.h (search_path): Updated.
2645 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2646 * src/devices/grops/ps.h: Include `searchpath.h'.
2647 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2648 Open resource file with `include_search_path.open_file_cautious'.
2649 * src/devices/grops/grops.man: Document new `-I' switch.
2651 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2652 (main), src/devices/grolj4/lj4.cpp (main),
2653 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2655 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2657 (include_search_path): New global variable.
2658 (include_path_append): Removed.
2659 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2660 (do_file): Simplify, using new
2661 `include_search_path.open_file_cautious'.
2663 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2665 (main): Pass arguments to `-I' to both troff and devices.
2666 Improve handling of `-V'.
2667 * src/roff/groff/groff.man: Document changes to -I and -V.
2669 * src/roff/troff/input.cpp (include_search_path): New global
2671 (next_file, source, ps_bbox_request, transparent_file,
2672 process_input_file): Use new
2673 `include_search_path.open_file_cautious'.
2674 (main) Handle `-I' switch.
2675 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2676 Use new `include_search_path.open_file_cautious'.
2677 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2678 * src/roff/troff/troff.man: Document new `-I' switch.
2680 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2682 Support multiple calls of .Lb in LIBRARY section.
2684 * tmac/doc-common (doc-in-library-section): New register.
2685 (doc-section-library): New string.
2686 (Sh): Set `doc-in-library-section'.
2688 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2689 if in LIBRARY section.
2690 * tmac/doc.tmac (doc-save-global-vars): Updated.
2691 * NEWS, tmac/groff_mdoc.man: Updated.
2693 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2695 * tmac/doc-common (doc-default-operating-system): New variable.
2698 2003-09-08 Werner LEMBERG <wl@gnu.org>
2700 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2702 2003-08-31 Werner LEMBERG <wl@gnu.org>
2704 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2705 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2706 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2707 $(DEVFILES) are not empty.
2708 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2710 2003-08-26 Chuck Silvers <chuq@chuq.com>
2712 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2713 with parallel runs of `make'.
2715 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2717 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2718 insert SORT_SEP. With certain combinations of sort specifications,
2719 refer sorted entries in the wrong order. In particular, entries
2720 with a missing field should be be sorted before all entries that
2721 have that field, before refer looks to the next field.
2723 2003-08-23 Werner LEMBERG <wl@gnu.org>
2725 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2726 g++ linker is used. Reported by Mark J. Reed
2727 <mark.reed@turner.com>.
2729 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2731 Add key character `x' to tbl which makes tbl call a user-defined
2732 macro on a table cell.
2734 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2735 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2736 `set_modifier' after printing the compatibility request.
2737 (set_modifier): Print call to `m->macro' if not empty.
2738 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2740 (process_format): Implement cases `x' and `X'.
2741 * src/preproc/tbl/tbl.man, NEWS: Updated.
2743 2003-08-15 Werner LEMBERG <wl@gnu.org>
2745 * doc/groff.texinfo: Minor fixes.
2747 2003-08-09 Werner LEMBERG <wl@gnu.org>
2749 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2751 2003-08-07 Werner LEMBERG <wl@gnu.org>
2753 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2754 argument list to nothing if there is no file to match. Use `ls' as
2755 a protection, similar to autoconf.
2757 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2758 empty argument lists.
2760 * doc/groff.texinfo: Improve documentation how vertical spacing
2761 and line breaks interact.
2764 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2766 2003-08-03 Werner LEMBERG <wl@gnu.org>
2768 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2769 EPS (using eps2eps or similar programs to compute the bounding box).
2771 2003-07-24 Werner LEMBERG <wl@gnu.org>
2773 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2774 * doc/texinfo.tex: Updated from texinfo 4.6.
2775 * README.CVS: From now on we need texinfo 4.6.
2777 2003-07-23 Werner LEMBERG <wl@gnu.org>
2779 Add requests `dei1' and `ami1' for completeness.
2781 * src/roff/troff/input.cc (calling_mode): Remove
2782 CALLING_DISABLE_COMP.
2783 (comp_mode): New enumeration.
2784 (do_define_string, define_string, define_nocomp_string,
2785 append_string, append_nocomp_string): Updated.
2786 (do_define_macro): Add third parameter.
2787 (define_macro, define_nocomp_macro, define_indirect_macro,
2788 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2789 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2792 (init_input_requests): Add `dei1' and `ami1'.
2794 * tmac/trace.tmac: Handle de1 and am1.
2795 (de): Improve tracing message.
2796 (am): Add missing `do'.
2799 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2800 Document new requests.
2802 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2804 Add option -G to .MPIMG to insert a gap between text and the image.
2806 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2807 www-finish-left-ll): Updated.
2808 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2809 (MPIMG): Make option -L and -R optional.
2810 Implement option -G.
2812 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2814 * src/devices/grohtml/post-html.cpp
2815 (html_printer::do_file_components): Don't use `stdout' as lvalue
2816 since it can be a macro.
2818 2003-07-22 Werner LEMBERG <wl@gnu.org>
2820 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2821 the corresponding test in aclocal.m4.
2823 2003-07-21 Werner LEMBERG <wl@gnu.org>
2825 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2826 names but RGB values directly. Otherwise pnmtopng depends on
2827 an external file `rgb.txt' which maps colour names to values.
2829 2003-07-20 Werner LEMBERG <wl@gnu.org>
2831 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2832 * configure, src/include/config.hin: Regenerated.
2834 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2836 2003-07-19 Werner LEMBERG <wl@gnu.org>
2838 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2840 2003-07-18 Werner LEMBERG <wl@gnu.org>
2842 * *.man: Switch to non-compatibility mode temporarily if GNU
2843 syntax extensions are used in the particular man page.
2845 * PROBLEMS: Add solutions for SGR problems.
2847 2003-07-17 Werner LEMBERG <wl@gnu.org>
2849 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2850 used to change the drawing scheme.
2852 * src/devives/grotty/tty.cpp (bold_flag_option,
2853 underline_flag_option, italic_flag_option, reverse_flag_option,
2854 bold_underline_mode_option): New global variables.
2855 (update_options): New function.
2856 (tty_printer::special): Call update_options.
2857 (main): Don't set xxx_flag but xxx_flag_option, then call
2860 2003-07-14 Werner LEMBERG <wl@gnu.org>
2862 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2864 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2866 (hline_char, vline_char): New global variables.
2867 (tty_printer::tty_printer): Initialize them.
2868 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2869 horizontal and vertical lines.
2870 (crossings): New global array.
2871 (tty_printer::end_page): Use it to determine the proper crossing
2872 character for -Tutf8.
2874 2003-07-12 Werner LEMBERG <wl@gnu.org>
2876 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2877 (HTMLDOCFILES): Revert to `pic.html'.
2878 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2880 2003-07-11 Werner LEMBERG <wl@gnu.org>
2882 * doc/pic.ms: Improve documentation of absolute coordinates.
2883 Document absolute positioning of pictures.
2885 * NEWS: Add new pic capability.
2887 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2889 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2892 2003-07-07 Werner LEMBERG <wl@gnu.org>
2894 Implement support for dashed and dotted ellipses in pic. Based on
2895 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2897 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2898 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2899 functions. Ellipse arcs are approximated with circle arcs.
2900 * src/preproc/pic/common.h (common_output): Updated.
2901 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2903 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2905 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2907 2003-07-06 Werner LEMBERG <wl@gnu.org>
2909 Make grotty work on platforms which have unsigned char as the
2910 default for char. Based on a patch by Thomas Klausner
2913 * src/devices/grotty/tty.cpp (schar): New typedef.
2914 Updated calls to declare_ptable and implement_ptable.
2915 (glyph): Use schar for back_color_idx and fore_color_idx.
2916 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2917 (tty_printer::tty_color, tty_printer::tty_printer,
2918 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2920 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2922 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2923 * src/roff/nroff/nroff.man: Updated.
2925 2003-07-05 Werner LEMBERG <wl@gnu.org>
2927 * NEWS, tmac/groff_www.man: Updated.
2928 * doc/Makefile.sub: Updated.
2930 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2932 Implement support for multiple HTML output files.
2934 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2935 -j command line option.
2937 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2939 (file): New fields `new_output_file', `require_links',
2941 (file::file): Updated.
2942 (files::set_file_name, files::set_links_required,
2943 files::are_links_required, files::is_new_output_file,
2944 files::file_name, files::next_file_name): New functions.
2945 (header_desc): New fields `no_of_level_one_headings',
2947 (header_desc::header_desc): Updated.
2948 (header_desc::write_headings): Handle multiple files.
2949 (html_printer::write_header): Save file name in which header occurs.
2950 (html_printer::determine_header_level): Possibly split files on
2952 (html_printer::do_links, html_printer::troff_tag): Updated.
2953 (html_printer::insert_split_file, html_printer::do_job_name,
2954 html_printer::emit_link, html_printer::write_navigation,
2955 html_printer::do_file_components): New functions.
2956 (html_printer::~html_printer): Handle multiple files.
2957 (main): Handle command line option `-j'.
2959 * src/devices/grohtml/grohtml.man: Updated.
2961 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2964 * tmac/www.tmac (JOBNAME): New macro.
2965 * tmac/s.tmac (SH-NO-TAG): New macro.
2966 (@SH): Call SH-NO-TAG.
2969 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2971 * tmac/groff_mdoc.man: Improve documentation of punctuation
2974 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2976 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2978 2003-07-03 Werner LEMBERG <wl@gnu.org>
2980 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2982 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2984 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2985 after `/*' and `*/'.
2987 (Fn, Fo): Reduce indentation in synopsis.
2989 * tmac/doc-common (doc-check-depth): New macro.
2990 (doc-end-macro, Sh, Ss): Use it.
2991 (Cd): Fix behaviour in synopsis.
2992 (In): Make it parsed and callable.
2993 If not in the synopsis, represent the C header file enclosed in
2995 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2996 Use minus, not hyphen.
2998 * tmc/groff_mdoc.man: Updated.
3000 2003-07-01 Werner LEMBERG <wl@gnu.org>
3002 Integrated grap2graph, contributed by Eric S. Raymond.
3004 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3006 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3007 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3009 2003-07-01 Colin Watson <cjwatson@debian.org>
3011 * src/xditview/*.c: Add prototypes, fix return types, add includes.
3012 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3014 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
3016 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3018 2003-06-31 Werner LEMBERG <wl@gnu.org>
3020 * doc/Makefile.sub (CLEANADD): Remove all files created by
3021 running `make groff.{pdf,dvi}'.
3023 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3026 2003-06-30 Werner LEMBERG <wl@gnu.org>
3028 * Makefile.in (SHELL): Define as @SHELL@.
3029 (mkinstalldirs): Use $(SHELL).
3030 (MDEFINES): Add $(SHELL).
3031 * Makefile.comm (SHELL): Removed.
3033 2003-06-29 Werner LEMBERG <wl@gnu.org>
3035 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3036 The X11 documentation files use them.
3037 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3039 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
3041 * tmac/e.tmac (@C): Handle .ad also.
3043 2003-06-12 Werner LEMBERG <wl@gnu.org>
3045 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3047 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3048 Assign `n' even here. It is possible to construct a node
3049 immediately following an escape character:
3057 2003-06-10 Werner LEMBERG <wl@gnu.org>
3059 * README.WIN32: Removed.
3060 * MANIFEST: Updated.
3062 2003-06-07 Werner LEMBERG <wl@gnu.org>
3064 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3066 2003-06-05 Werner LEMBERG <wl@gnu.org>
3068 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3069 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3071 2003-06-03 Werner LEMBERG <wl@gnu.org>
3073 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3074 is done by the calling function.
3076 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
3078 * tmac/X.tmac: Fix definition of `em'.
3080 2003-05-22 Werner LEMBERG <wl@gnu.org>
3082 * src/roff/troff/input.cc (return_macro_request): Fix detection of
3085 2003-05-18 Werner LEMBERG <wl@gnu.org>
3087 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3088 to make items work which consist only of a tag.
3090 2003-05-17 Werner LEMBERG <wl@gnu.org>
3092 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3093 aren't stretched in a tag (this can fail with unformatted boxes).
3094 Instead, insert a break and go back one line.
3096 2003-05-16 Werner LEMBERG <wl@gnu.org>
3098 * src/roff/troff/input.cc (return_macro_request): If called with
3099 argument pop macro twice. We need this to trace `return'.
3101 * tmac/trace.tmac: Handle `return'.
3104 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3107 2003-05-15 Larry Kollar <kollar@alltel.net>
3109 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3110 registers `FPS', `FVS', and `FPD'.
3112 2003-05-15 Werner LEMBERG <wl@gnu.org>
3114 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3117 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
3119 * tmac/groff_mdoc.man: Slight improvements.
3121 2003-05-03 Werner LEMBERG <wl@gnu.org>
3123 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3124 `doc-header-space' after header line if register `cR' is set.
3126 2003-05-02 Werner LEMBERG <wl@gnu.org>
3130 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
3132 * tmac/doc-common (Nd): Use \[em].
3134 2003-05-01 Werner LEMBERG <wl@gnu.org>
3136 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3137 doc-footer-space): Initialize to 0.5i.
3138 (doc-setup-page-layout): Don't set doc-header-space and
3141 2003-04-30 Werner LEMBERG <wl@gnu.org>
3143 * REVISION: Set to 1.
3145 * doc/pic.ms: Document possible problems with `figname'.
3147 2003-04-29 Werner LEMBERG <wl@gnu.org>
3149 Version 1.19 released
3150 =====================
3152 * VERSION: Set to 1.19.
3153 * REVISION: Set to 0.
3154 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3156 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3157 Define charset as `US-ASCII' in html output.
3159 * tmac/www.tmac (ULE): Add missing scaling indicator.
3161 * win32-diffs: Removed.
3163 2003-04-28 Werner LEMBERG <wl@gnu.org>
3165 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3167 Document how to insert discardable whitespace with `.ss'.
3169 2003-04-27 Werner LEMBERG <wl@gnu.org>
3171 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3172 work with plain TeX also.
3174 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3176 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3178 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3181 2003-04-24 Werner LEMBERG <wl@gnu.org>
3183 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3184 vbox with positive height and zero depth if in TeX mode.
3186 * NEWS: Document glyph name changes for grodvi and grolj4.
3188 2003-04-23 Werner LEMBERG <wl@gnu.org>
3190 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3191 * doc/pic.ms: Fixed.
3193 2003-04-21 Werner LEMBERG <wl@gnu.org>
3195 HP-UX 10.20 has `snprintf' but it isn't declared.
3197 * configure.ac: Add declaration test for snprintf.
3198 * configure: Regenerated.
3199 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3200 * src/include/config.hin: Regenerated.
3202 2003-04-19 Werner LEMBERG <wl@gnu.org>
3204 Add keyword `figname' to pic, specifying the name of the picture
3205 box in TeX mode. Based on a patch from William J Poser
3206 <wjposer@unagi.cis.upenn.edu>.
3208 * src/preproc/pic/pic.y: New token `FIGNAME'.
3209 (macro_name): New rule of type <str>.
3210 (placeless_element): Handle `FIGNAME'.
3211 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3212 * src/preproc/pic/main.cpp (graphname): New global variable.
3213 (do_picture): Initialize `graphname'.
3214 * src/preproc/pic/pic.h: Updated.
3215 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3218 (tex_output::text): Beautify output.
3219 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3220 `shaded' and `outlined' unconditionally.
3221 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3224 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3225 greater is necessary.
3227 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3229 Add option -r to soelim to avoid emission of `.lf' lines.
3230 Add option -t to produces TeX comment lines instead of `.lf' lines.
3232 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3235 (main): Handle `-r' and `-t'.
3236 (set_location): Handle `raw_flag' and `tex_flag'.
3237 * src/preproc/soelim/soelim.man, NEWS: Updated.
3239 2003-04-17 Werner LEMBERG <wl@gnu.org>
3241 * tmac/hyphenex.sh: Replaced with...
3242 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3245 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3246 if --quiet is used for the configure script.
3247 * configure: Regenerated.
3249 2003-04-16 Werner LEMBERG <wl@gnu.org>
3251 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3252 Add `const' to second argument.
3253 (html_printer::add_table_end): Add `const' to argument.
3254 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3255 `const' to arguments.
3256 * src/devices/grohtml/html-text.h: Updated.
3258 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3259 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3262 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3263 cast for integer constant.
3265 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3266 (writeNbytes): Add `const' to first argument.
3267 (writeString): Add `const' to argument.
3268 (char_buffer::can_see): Add `const' to third argument.
3269 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3270 `const' to argument.
3271 * src/preproc/html/pushback.h: Updated.
3273 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3274 (include_path_append): Add `const' to argument.
3277 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3279 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3280 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3282 (unicode_decompose_init::unicode_decompose_init): Updated.
3283 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3285 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3286 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3289 * tmac/hyphenex.sh: Make script more portable by using a here
3292 2003-04-15 Werner LEMBERG <wl@gnu.org>
3294 Renamed all `*.cc' files to `*.cpp'.
3295 Updated all configuration files, makefiles, and documentation.
3297 2003-04-14 Werner LEMBERG <wl@gnu.org>
3299 * tmac/hyphenex.sh: Slight improvements.
3301 2003-04-13 Werner LEMBERG <wl@gnu.org>
3303 * font/devascii/R.proto, font/devcp1037/R.proto,
3304 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3305 character slots with unnamed glyphs.
3307 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3308 (an-first): New global variable.
3309 (an-header): Emit vertical space between multiple man pages.
3311 2003-04-11 Werner LEMBERG <wl@gnu.org>
3313 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3316 2003-04-10 Werner LEMBERG <wl@gnu.org>
3318 * PROBLEMS: Revised.
3320 2003-04-10 Bernd Warken <bwarken@mayn.de>
3322 * doc/webpage.ms: Improved.
3324 2003-04-09 Werner LEMBERG <wl@gnu.org>
3326 Add register \n[.height] which returns the value of \H.
3327 Add register \n[.slant] which returns the value of \S.
3329 * src/roff/troff/env.cc (init_env_requests): Implement.
3330 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3333 2003-04-08 Werner LEMBERG <wl@gnu.org>
3335 * tmac/html.tmac: Move some of the data into html-end.tmac.
3336 Remove most of the character translations for eqn since html fonts
3337 now cover those characters.
3339 * tmac/html-end.tmac: New file.
3340 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3341 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3342 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3344 2003-04-07 Werner LEMBERG <wl@gnu.org>
3346 * man/groff_out.man: Document negative values of `N' if -Thtml is
3349 2003-04-06 Werner LEMBERG <wl@gnu.org>
3351 * Makefile.comm (depend.temp): Check location of YTABC.
3353 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3355 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3357 (groff_bin_path): Rename to GROFF_BIN_PATH.
3358 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3359 * doc/Makefile.in (TROFFBIN): New variable for troff
3361 (GROFFBIN): New variable for groff binary path.
3362 (groff_bin_path): Rename to GROFF_BIN_PATH.
3363 (TROFF): Use TROFFBIN.
3364 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3365 * doc/Makefile.sub (GROFFBIN): New variable for groff
3367 (groff_bin_path): Rename to GROFF_BIN_PATH.
3368 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3370 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3371 with INSTALL_SCRIPT.
3372 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3373 * Makefile.dev (all): Depend on DEVSCRIPTS.
3374 (install_dev): Likewise.
3375 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3377 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3378 (DEVGENSCRIPTS): New variable to hold generated scripts.
3380 2003-04-05 Werner LEMBERG <wl@gnu.org>
3382 * src/libs/libdriver/input.cc (IntArray::operator[],
3383 IntArray::get_data): Remove meaningless `const' in return value.
3385 * README.CVS: New file.
3387 2003-04-04 Werner LEMBERG <wl@gnu.org>
3389 Check for stdint.h in C++, not in C.
3391 * aclocal.m4 (GROFF_STDINT_H): New function,
3392 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3394 * configure, src/include/config.hin: Regenerated.
3395 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3398 Fix handling of in grohtml. To do this, troff emits `N'
3399 with a negative value, representing the width of the unbreakable
3400 space (only for -Thtml). grohtml then converts this back to
3401 and uses the value of N as its width.
3403 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3404 unbreakable_space_node::tprint): Emit `N-<width>'.
3405 * src/include/printer.h (printer::set_numbered_char): Make it
3407 Make members `font_table' and `nfonts' protected instead of private.
3408 * src/devices/grohtml/post-html.cc
3409 (html_printer::set_numbered_char): New member function.
3412 * src/libs/libgroff/maxfilename.cc:
3413 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3415 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3418 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3420 * man/roff.man: Small fixes.
3422 2003-04-03 Werner LEMBERG <wl@gnu.org>
3424 Make groff independent from locale's numeric settings.
3426 * configure.ac: Check for `setlocale'.
3427 * configure, src/include/config.hin: Regenerated.
3429 * src/include/lib.h: Handle HAVE_SETLOCALE.
3431 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3432 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3433 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3436 * doc/groff.texinfo: Change dir category to `Typesetting'.
3437 (Man font macros): Mention that there is no space between arguments
3440 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3441 (*printer::change_color, *printer::change_fill_color): Add missing
3444 2003-04-02 Werner LEMBERG <wl@gnu.org>
3446 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3447 html_table::is_gap): Compute table widths after converting border
3448 positions to avoid rounding errors.
3450 2003-04-01 Werner LEMBERG <wl@gnu.org>
3452 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3453 `space_emitted' properly.
3455 2003-03-31 Werner LEMBERG <wl@gnu.org>
3457 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3458 (html_table::set_linelength): Don't add 1.
3459 (html_table::add_indent): Don't subtract 1.
3461 * tmac/html.tmac: Set default page offset to zero.
3463 2003-03-30 Werner LEMBERG <wl@gnu.org>
3465 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3467 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3468 unbreakable_space_node::tprint): New functions.
3469 (troff_output_file): Make space_char_hmotion_mode::tprint and
3470 unbreakable_space_node::tprint to friends.
3471 * src/roff/troff/node.h: Updated.
3473 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3474 in the HTML standard).
3476 2003-03-29 Werner LEMBERG <wl@gnu.org>
3478 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3479 Otherwise, the following code
3488 produces `x a' instead of `xa'. This is a temporary fix, disabling
3489 font changes in diversions for -Thtml.
3491 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3493 (an-do-tag-html): Merge with ...
3494 (an-do-tag): This macro.
3495 Change code slightly to circumvent grohtml bug.
3496 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3498 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3499 html_table::is_gap): Round `width' properly.
3501 * tmac/html.tmac: Provide some default layout parameters for
3504 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3507 2003-03-28 Werner LEMBERG <wl@gnu.org>
3509 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3511 2003-03-27 Werner LEMBERG <wl@gnu.org>
3513 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3516 2003-03-20 Werner LEMBERG <wl@gnu.org>
3518 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3520 * doc/groff.texinfo: Updated.
3522 2003-03-19 Werner LEMBERG <wl@gnu.org>
3524 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3525 TOKEN_END_TRAP>: Reset `have_input'.
3527 2003-03-18 Werner LEMBERG <wl@gnu.org>
3529 * src/roff/groff/groff.man: Mention groff_trace man page.
3531 2003-03-16 Werner LEMBERG <wl@gnu.org>
3533 * Makefile.in (LIBEXT): New variable to indicate the file extension
3534 of library files. Computed heuristically from $(OBJEXT).
3535 (MDEFINES): Add $(LIBEXT).
3536 * Makefile.lib, Makefile.comm: Use it.
3538 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3539 overlong lines into smaller chunks.
3540 (get_binary): New function.
3542 * src/utils/pfbtops/pfbtops.man: Updated.
3544 2003-03-15 Colin Watson <cjwatson@debian.org>
3546 * src/roff/groff/groff.man: Minor syntax fix.
3548 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3550 * src/devices/grops/ps.cc (ps_printer::media_set,
3551 ps_printer::~ps_printer): Handle zero paper width and length.
3553 2003-03-13 Werner LEMBERG <wl@gnu.org>
3555 Add options -p and -l to grodvi.
3557 * src/devices/grodvi/dvi.cc: Include paper.h.
3558 (landscape_flag, user_paper_length, user_paper_width): New global
3560 (dvi_printer::begin_page): Emit `papersize' special.
3561 Set color after initialization of `cur_h' and `cur_v'.
3562 (main): Add options `-l' and `-p'.
3563 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3564 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3566 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3568 2003-03-12 Werner LEMBERG <wl@gnu.org>
3570 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3571 * man/groff_tmac.man: This man page.
3572 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3575 * tmac/X.tmac: Don't load pspic.tmac.
3577 2003-03-11 Werner LEMBERG <wl@gnu.org>
3579 Make variable `pr' local to libdriver/input.cc. Based on a patch
3580 by Bernd Warken <bwarken@mayn.de>.
3582 * src/include/driver.h (pr): Removed.
3584 * src/libs/libdriver/input.cc (pr): New global variable.
3585 (do_file): Deallocate `pr'.
3586 * src/libs/libdriver/printer.cc (pr): Removed.
3588 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3589 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3590 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3591 (main): Don't delete `pr'.
3593 2003-03-10 Werner LEMBERG <wl@gnu.org>
3595 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3596 * tmac/papersize.tmac: New file.
3597 * tmac/troffrc: Include `papersize.tmac'.
3598 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3599 * tmac/an-old.tmac: Set LT to LL by default.
3601 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3602 doc/groff.texinfo: Updated.
3604 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3605 bug which caused all odd iso papers to have wrong dimensions.
3607 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3608 (main) <'p'>: Set `user_paper_width' also.
3609 (ps_printer::media_width, ps_printer::media_height): Use values
3610 given with option `-p'.
3612 2003-03-09 Werner LEMBERG <wl@gnu.org>
3614 * src/include/nonposix.h: Provide default for SET_BINARY.
3616 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3617 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3620 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3621 (main): Treat \r\n as \n.
3623 2003-03-08 Werner LEMBERG <wl@gnu.org>
3625 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3626 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3628 2003-03-07 Werner LEMBERG <wl@gnu.org>
3630 Added support to access more than 256 glyphs in Type 1 fonts.
3632 * src/devices/grops/ps.cc (subencoding): New structure.
3633 (style): Add `sub' field.
3635 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3636 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3639 (ps_printer::set_char): Use `set_subencoding'.
3640 (make_subencoding_name): New function.
3641 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3642 (ps_printer::~ps_printer): Emit subencoding definitions.
3644 * src/devices/grops/psrm.cc (valid_input_table): New array to
3645 properly support EBCDIC.
3646 (white_space): Add `\f'.
3647 (ps_get_line): Change first argument to be of type `string &'.
3648 Updated all callers.
3649 This allows to get lines of arbitrary length.
3650 Use `valid_input_table'.
3651 Remove warning about non-conforming PS line length. This seems
3652 not to be of great importance -- for example, dvips don't emit
3654 (PS_LINE_MAX): Removed.
3655 (matches_comment): Change first argument to be of type `string &'.
3657 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3659 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3660 %AGL_to_unicode, %default_ligatures): New hash tables.
3661 Read all map entries.
3662 Add unencoded characters.
3663 Check for default ligatures if there are no `L' entries.
3664 Print all kern entries.
3665 Print all characters in charset.
3666 * src/utils/afmtodit/afmtodit.man: Updated.
3668 * font/devps/*: Regerated all fonts.
3670 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3671 of characters, just use `.trin'. Otherwise the mapping depends
3672 on the font encoding.
3673 * tmac/ps.tmac: Add `fi' and `fl'.
3674 Improve `Fi' and `Fl'.
3675 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3676 * tmac/Xps.tmac: Fix `em'.
3680 2003-03-04 Werner LEMBERG <wl@gnu.org>
3682 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3685 2003-03-03 Werner LEMBERG <wl@gnu.org>
3687 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3689 * font/devps/generate/textmap: Remove entry `similarequal'.
3690 * font/devps/symbolmap: Updated.
3692 2003-03-02 Werner LEMBERG <wl@gnu.org>
3694 * src/libs/libgroff/font.cc (font::load): Fix error message for
3697 * src/devices/grops/grops.man: Improve documentation of the -b
3700 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3701 `ascii' and `cp1047'.
3703 2003-03-01 Werner LEMBERG <wl@gnu.org>
3705 Document composite glyphs and the `composite' request.
3707 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3709 2003-02-28 Werner LEMBERG <wl@gnu.org>
3711 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3712 * font/devdvi/*EC: Updated.
3714 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3715 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3716 * tmac/troffrc: Load `composite.tmac'.
3717 * tmac/Makefile.sub (NORMALFILES): Updated.
3719 * doc/groff.texinfo (Input Encodings): New section.
3722 2003-02-27 Werner LEMBERG <wl@gnu.org>
3724 * doc/texinfo.tex: New version 2003-02-11.06.
3726 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3727 * tmac/groff_mdoc.man: Fix description of `Dt'.
3729 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3731 * font/devps/prologue.ps: Fix for included Postscript that does
3732 a setpagedevice -- which is now safely ignored.
3736 * src/devices/grops/ps.cc: Now sets the page size in the generated
3737 document. This is done in two ways: Via a %%-comment for gv and
3738 the like, and via a PageSize and setpagedevice for programs that
3739 understands Postscript proper, like ps2pdf.
3741 * src/devices/grops/ps.h: New broken-flag to avoid page size
3742 definition, if required.
3744 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3746 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3747 Not really necessary due to the fix in prologue.ps, but cleaner:
3748 Such information does not belong in an .eps file.
3750 * doc/Makefile.sub: See doc/Makefile.in.
3752 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3754 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3755 instead of P1 since the latter is broken in some versions of netpbm.
3756 * configure: Updated.
3758 2003-02-26 Larry Kollar <kollar@alltel.net>
3760 Make man pages more customizable.
3762 * tmac/an-old.tmac (FT): New register holding footer distance from
3764 (HF): New string holding the default heading font.
3765 (TH): Handle registers `IN' and `SN' set on the command line.
3767 (PT, BT): New strings to customize header and footer lines.
3768 (an-header, an-footer): Use them.
3770 * tmac/groff_man.man: Document changes.
3772 * doc/groff.texinfo: Document man changes.
3773 Document Ultrix extensions of man.
3775 2003-02-26 Werner LEMBERG <wl@gnu.org>
3777 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3778 `have_input' after changing back to old environment.
3780 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3781 function up to be defined before first call. This is necessary to
3782 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3784 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3785 the default font directory also. Based on a patch from James
3786 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3787 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3788 * src/utils/afmtodit/afmtodit.man: Document it.
3792 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3794 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3796 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3797 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3798 * configure.ac: Use it.
3799 * configure: Regenerated.
3800 * Makefile.in: Updated.
3802 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3803 (CLEANADD): Add www.tmac-sed.
3804 (pnmtops_nosetpage): Define default.
3805 (install_data): Handle www.tmac-sed and substitute
3806 @PNMTOPS_NOSETPAGE@.
3807 (stamp-sed): Add www.tmac.
3808 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3809 It now breaks URLs at suitable places.
3810 (www:substring_ok): New register set by...
3811 (www:@test_substring): New macro.
3812 (www:error): New alias to www-error.
3813 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3815 (URL): Use www:url_breaks.
3816 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3817 (CDS, CDE): New macros.
3819 2003-02-25 Werner LEMBERG <wl@gnu.org>
3821 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3824 2003-02-24 Werner LEMBERG <wl@gnu.org>
3826 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3827 can be negative also.
3829 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3831 (read_char_table): Avoid negative ascenders.
3832 (output_charset): Add cast.
3833 * font/devlj4/*: Regenerated.
3835 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3838 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3839 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3841 * font/devdvi/*: Regenerated.
3843 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3844 normal width, while the previously used characters (U+2329 and
3845 U+232A) are classified as wide due to canonical equivalence with the
3846 CJK punctuation characters U+3008 and U+3009.
3848 * font/devutf8/R.proto: Updated.
3849 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3851 * man/groff_char.man: Simplify handling of table traps by
3852 introducing `start block' and `end block' macros.
3853 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3854 (DL): Make it work with Unix troff also.
3855 Fix code values of `la' and `ra'.
3857 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3859 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3861 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3862 New destructor, fixing a major memory leak.
3864 2003-02-22 Werner LEMBERG <wl@gnu.org>
3866 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3867 to be in conformance with Unicode 3.0 and newer.
3869 * font/devlj4/generate/text.map: Add `Eu'.
3870 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3871 * font/devlj4/S: Regenerated.
3873 * man/groff_char.man: Completely rewritten.
3875 * doc/groff.texinfo: Fix description of request and macro arguments.
3877 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3881 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3882 Deallocate `columns' list.
3883 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3885 (text_glob::text_glob_html, text_glob::text_glob_special,
3886 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3887 text_glob::text_glob_tag): Avoid memory leaks.
3888 (text_glob::remember_table): Free memory before reassigning.
3890 2003-02-19 Werner LEMBERG <wl@gnu.org>
3892 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3893 alias `hbar'), the Planck constant over two pi.
3895 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3896 `+e' for position 34.
3897 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3898 `u2662' and `u2661'.
3899 * font/devdvi/{MI,S}: Regenerated.
3900 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3901 * font/devlbp/*: Add `hbar' alias.
3902 * font/devlj4/generate/special.map: Ditto.
3903 * font/devlj4/S: Regenerated.
3904 * font/devps/generate/symbolchars: Add `+e'.
3905 * font/devps/generate/textmap: Fix PS name for `-h'.
3907 * font/devps/symbolmap: Regenerated.
3909 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3911 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3913 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3916 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3918 * tmac/tty-char.tmac: Add `+e'.
3920 2003-02-17 Werner LEMBERG <wl@gnu.org>
3922 Another round trying to really fix problems with `have_input'.
3924 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3925 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3927 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3928 handling if both foreground and background colors are default.
3930 * doc/groff.texinfo (Debugging): Document .lf differences to
3933 2003-02-16 Werner LEMBERG <wl@gnu.org>
3935 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3936 null-bytes in created string.
3938 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3939 alias_macro, lookup_request): Improve warning messages.
3941 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3943 Free `last_image_filename'.
3945 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3947 (imageList::createPage, imageList::createImage): Use `free', not
3949 (imageItem::~imageItem): Free `imageName'.
3950 (addRegDef): Use `strsave', not `strdup'.
3951 (get_resolution): Free `pathp'.
3953 2003-02-15 Werner LEMBERG <wl@gnu.org>
3955 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3958 2003-02-14 Werner LEMBERG <wl@gnu.org>
3960 Add memory management for colors to deallocate unnamed colors
3963 * src/include/color.h (color): New members `free_list' and `next'.
3964 New member functions `new' and `delete'.
3966 * src/libs/libgroff/color.cc: Implement it.
3968 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3969 for array size of new operator.
3971 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3972 redundant comparison.
3974 * src/roff/troff/input.cc (word_space_node::reread,
3975 hmotion_node::reread): Avoid warning about unused parameter.
3976 (reset_output_registers): Remove redundant parameter.
3977 (define_color): Undo change 2003-02-12.
3979 * src/roff/troff/reg.h: Updated.
3981 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3982 output_file::put_filename, real_output_file::really_put_filename,
3983 ascii_output_file::really_print_line,
3984 break_char_node::get_hyphen_list): Avoid warning about unused
3986 (suppress_node::tprint): Updated.
3988 * configure.ac: Check declaration for rand() and srand().
3989 * configure: Regenerated.
3991 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3993 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3996 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3997 to avoid compiler warnings.
3999 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4002 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4004 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4006 Updated all callers.
4008 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4010 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4011 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4013 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4014 Parameter is unused.
4015 (html_printer::add_table_end): Define parameter conditionally.
4016 * src/devices/grohtml/output.cc (simple_output::special): Parameter
4019 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4020 (lbp_printer::set_char): Last parameter is unused.
4022 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4024 2003-02-13 Werner LEMBERG <wl@gnu.org>
4026 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4027 Make \D'f ...' move horizontally again for backwards compatibility.
4028 Replace it with \D'Fg ...' where appropriate to avoid dependency
4029 on horizontal resolution.
4031 * src/roff/troff/input.cc (do_get_long_name): New function.
4032 (get_long_name): Call it.
4034 (read_draw_node): Handle `\D'Fx ...' by calling ...
4035 (read_color_draw_node): New function.
4037 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4039 Pass it to `do_get_long_name' which is used instead of
4042 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4043 unnecessary value guard.
4044 (parse_D_command) <'f'>: Add horizontal shift.
4046 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4047 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4048 (FILL_MAX): Removed.
4050 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4053 2003-02-12 Werner LEMBERG <wl@gnu.org>
4055 * src/roff/troff/input.cc (do_name_test, do_expr_test,
4056 do_zero_width): Push `\n' if closing delimiter is missing.
4058 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4059 <'F'>: Make \F non-transparent at the beginning of line.
4060 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4061 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4064 (define_color): Free color in case of reassignment.
4066 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4067 @DefescListEnd): Use @Var, not @var.
4070 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4072 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4073 `shaded' and `outlined' arrays.
4074 (object_spec::object_spec): Initialize `shaded' and `outlined'.
4075 (graphic_object::set_fill_color, graphic_object::set_outline_color):
4077 (closed_object::set_fill_color): Ditto.
4078 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4080 (troff_output::reset_color): Use a_delete instead of free.
4081 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4083 2003-02-11 Werner LEMBERG <wl@gnu.org>
4085 * doc/groff.texinfo: Improve documentation of `ad'.
4086 Document that \D'f...' is dependent on the horizontal resolution.
4087 * man/groff_diff.man: Improve documentation of \D'f...'.
4089 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4090 compensating \h'...' for \D'f ...' since the latter no longer moves
4092 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4094 2003-02-10 Werner LEMBERG <wl@gnu.org>
4096 Improve error messages for `x F' (and `F') commands.
4098 * src/include/error.h: Add declaration for
4099 `current_source_filename'.
4100 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4101 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4102 parameter for source file string.
4103 Updated all callers.
4105 * src/libs/libdriver/input.cc: Add `current_source_filename'.
4106 (remember_source_filename): New function.
4107 (parse_x_command <'F'>, do_file <'F'>): Use it.
4109 2003-02-09 Werner LEMBERG <wl@gnu.org>
4111 Make grotty not emit warnings about unknown colors more than
4114 * src/devices/grotty/tty.cc: Include `ptable.h'.
4115 (TTY_MAX_COLORS): Removed.
4116 (DEFAULT_COLOR_IDX): Defined to -1.
4117 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4118 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4119 Change `tty_colors' to be a ptable.
4120 First arg of `put_color' is now `char'.
4121 New functions `make_rgb_string' and `tty_color'.
4122 (tty_printer::tty_printer): Use `tty_color'.
4123 (tty_printer::color_to_idx): Return value is now `char'.
4126 * src/include/color.h (color): Add `print_color' member function.
4127 * src/libs/libgroff/color.cc (color::print_color): Implement it.
4129 2003-02-08 Werner LEMBERG <wl@gnu.org>
4133 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4136 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4137 assume that value has been allocated with `new[]', thus use
4138 `a_delete' for deallocation.
4140 * src/libs/libdriver/input.cc (get_integer_arg,
4141 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4144 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4145 * src/libs/libgroff/nametoindex.cc
4146 (character_indexer::named_char_index): Use `new <type>[1]'.
4148 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4150 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4151 (split_text): Use `a_delete'.
4153 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4156 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4157 harmless memory leak.
4158 (hyphen_trie::read_patterns_file): Initialize `buf'.
4159 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4160 Initialize `current_fill_color'and `current_glyph_color'.
4161 * src/roff/troff/glyphuni.cc
4162 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4163 * src/roff/troff/uniuni.cc
4164 (unicode_decompose_init::unicode_decompose_init): Ditto.
4165 * src/roff/troff/uniglyph.cc
4166 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4168 2003-01-26 Werner LEMBERG <wl@gnu.org>
4170 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4171 `access' before calling `unlink'.
4172 (do_file): Handle __EMX__.
4174 * src/include/nonposix.h: Handle __EMX__.
4176 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4177 (fontpath,tmacpath): Use it.
4179 Sorted alphabetically.
4181 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4183 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4186 2003-01-27 Werner LEMBERG <wl@gnu.org>
4188 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4189 New files, copied from gnulib.
4190 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4191 * configure.ac: Updated.
4192 * configure: Regenerated.
4194 * src/include/config.hin: Regenerated.
4195 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4196 Don't define `strcasecmp' as `strcmp'.
4197 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4198 Dont define `strncasecmp' as `strncmp'.
4200 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4203 2003-01-26 Werner LEMBERG <wl@gnu.org>
4205 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4208 2003-01-25 Werner LEMBERG <wl@gnu.org>
4210 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4212 2003-01-24 Werner LEMBERG <wl@gnu.org>
4214 Add US-english hyphenation exceptions (converted from Barbara
4215 Beeton's hyphenation exception log reports which appear irregularly
4218 * tmac/hyphen.us: Updated to latest version.
4219 * tmac/README: Updated.
4220 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4221 * tmac/troffrc: Load `hyphenex.us'.
4222 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4223 * doc/groff.texinfo: Updated.
4225 2003-01-23 Werner LEMBERG <wl@gnu.org>
4227 Improve hyphenation slightly. This is a first step in redesigning
4228 the hyphenation algorithm to make it more flexible (e.g. allowing
4229 kerns and ligatures between the hyphenation character and the
4230 following character -- while not used normally in English, other
4231 languages like German would benefit).
4233 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4234 assertion instead of if-clause.
4235 Let `get_hyphen_list' return the number of involved characters in
4236 the hyphenation pattern instead of computing it directly (which
4237 often yields too small values).
4238 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4239 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4242 2003-01-22 Werner LEMBERG <wl@gnu.org>
4244 Fixing a bug which caused groff to hang if the hyphenation exception
4245 dictionary tried to grow.
4247 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4248 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4249 pointer to dictionary.
4251 2003-01-20 Werner LEMBERG <wl@gnu.org>
4253 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4254 negative left italic correction.
4255 * src/utils/afmtodit/afmtodit.man: Document it.
4257 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4258 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4259 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4263 2003-01-16 Werner LEMBERG <wl@gnu.org>
4267 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4269 * src/preproc/refer/refer.man: Mention REFER environment variable.
4271 2003-01-05 Werner LEMBERG <wl@gnu.org>
4273 Similar to \[is], the square root glyph (\[sr]) and the square root
4274 extension glyph (\[radicalex]) are now text symbols. The new
4275 mathematical versions are called \[sqrt] and \[sqrtex],
4278 * font/devX*/S: Regenerated.
4279 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4280 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4281 * font/devdvi/EX, font/devdvi/S: Regenerated.
4282 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4283 * font/devlj4/generate/special.map: Add `sqrt'.
4284 * font/devlj4/S: Regenerated.
4285 * font/devps/generate/textmap: Add `sqrt'.
4286 * font/devps/S, font/devps/symbolmap: Regenerated.
4288 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4289 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4290 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4291 overlap horizontally.
4293 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4294 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4297 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4298 and `sqrtex' are overlapping glyphs.
4300 2003-01-04 Werner LEMBERG <wl@gnu.org>
4302 * font/devdvi/generate/texsy.map: Add `is'.
4303 * font/devps/symbolmap: Regenerated.
4304 * font/devdvi/*TC, MI, S: Regenerated.
4306 * tmac/dvi.tmac: Remove `is'.
4308 2003-01-03 Werner LEMBERG <wl@gnu.org>
4310 `is' is now a text symbol (only relevant for dvi). The math variant
4311 can be accessed with `integral'.
4313 * font/devX*/S: Regenerated.
4314 * font/devdvi/generate/texex.map: Remove `is'.
4315 * font/devdvi/EX: Updated.
4316 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4317 * font/devlj4/generate/special.map: Ditto.
4318 * font/devlj4/S: Regenerated.
4319 * font/devps/generate/textmap: Add `integral'.
4320 * font/devps/S: Regenerated.
4322 * tmac/dvi.tmac: Define `is'.
4324 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4326 * src/preproc/tbl/main.cc (process_format): Fix error message.
4328 2003-01-02 Werner LEMBERG <wl@gnu.org>
4330 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4331 * font/devps/textmap: Fix entries for `ne' and `nc'.
4332 * font/devps/symbolmap: Regenerated.
4334 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4335 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4336 `38', `58', `78', `-+', `|=', `nc', `ne'.
4338 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4339 Use `schar' for `aq'.
4340 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4341 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4342 * tmac/tty.tmac: Add `ne'.
4344 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4345 for fallback glyphs.
4347 2002-12-29 Werner LEMBERG <wl@gnu.org>
4351 * font/devX*/*: Regenerated.
4352 * font/devdvi/generate/ec.map: Remove `eq'.
4353 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4354 Assign `|=' to position 39.
4355 * font/devdvi/*EC, S: Regenerated.
4356 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4357 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4358 Assign `|=' to position 549.
4359 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4361 Add `uni2243' for `|='.
4363 * tmac/ec.tmac: Add `eq'.
4364 * tmac/dvi.tmac: Add `=~'.
4365 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4368 2002-12-21 Werner LEMBERG <wl@gnu.org>
4370 * font/devdvi/generate/tc.map: Remove `**'.
4371 * font/devdvi/*TC: Regenerated.
4372 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4374 * font/devutf8/NOTES: Updated.
4376 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4377 Don't give default parameter to `set_macro'.
4378 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4379 instead of `set_macro'.
4380 (charinfo::setx_macro): Implement it.
4381 (charinfo::set_macro): Don't change `mode'.
4383 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4384 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4385 * tmac/dvi.tmac: Define `!=' with `.schar'.
4387 2002-12-20 Werner LEMBERG <wl@gnu.org>
4389 * font/devX*/S: Regenerated.
4390 * font/devdvi/generate/ec.map: Remove `pl'.
4391 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4392 * font/devdvi/*{TC,EC}: Regenerated.
4393 * font/devhtml/R.proto: Add `-+'.
4394 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4395 * font/devlbp/*: Remove `or'.
4396 * font/devlj4/generate/special.map: Remove `or'.
4397 * font/devlj4/S: Regenerated.
4398 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4399 `seveneighths', `threeeighths'.
4401 Replace `minusplus' with `uni2213'.
4402 * font/devps/symbolmap: Regenerated.
4403 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4406 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4408 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4409 Call glyph_color and fill_color even if tcommand_flag isn't set.
4410 (make_node, node::add_char): Check not ci->is_fallback but
4413 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4414 * tmac/ec.tmac: Add .rchar entry for `f/'.
4415 Don't remove `12', `14', `34'.
4416 Define `pl' to be always roman.
4417 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4418 Define `18', `38', `58', `78'.
4419 * tmac/tty.tmac: Add `-+'.
4420 * tmac/dvi.tmac: Define `f/'.
4421 (dvi-frac): Use `f/'.
4422 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4423 Define `18', `38', `58', `78'.
4425 2002-12-15 Colin Watson <cjwatson@debian.org>
4427 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4429 2002-12-10 Werner LEMBERG <wl@gnu.org>
4431 Add glyph `tno', a textual variant of `no'.
4433 * font/devX*/*: Regenerated.
4434 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4435 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4436 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4437 * font/devdvi/*: Regenerated.
4438 * font/devlbp/*: Add `tno'.
4439 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4440 * font/devlj4/*: Regenerated.
4441 * font/devps/generate/textmap: Replace `no' with `tno'.
4442 * font/devps/generate/symbolchars: Add `no'.
4443 * font/devps/*: Regenerated.
4445 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4447 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4448 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4452 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4453 Add definition for `sd'.
4454 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4456 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4458 2002-12-08 Werner LEMBERG <wl@gnu.org>
4460 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4461 mode to avoid rounding errors.
4462 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4464 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4465 src/roff/troff/troff.man: Improve documentation of -T.
4467 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4469 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4470 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4472 2002-12-06 Werner LEMBERG <wl@gnu.org>
4474 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4475 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4476 Scaling Euro.sansserif glyphs down to have the same height as
4478 Removed unnecessary points; added some extrema.
4480 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4483 2002-12-04 Werner LEMBERG <wl@gnu.org>
4485 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4486 and `Euro.symbol.bold.slanted'.
4487 Improve some glyph offsets and widths.
4488 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4490 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4492 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4495 * tmac/europs.tmac: Updated to new glyph indices.
4496 Use Euro.symbol for font familiy `A'.
4498 * doc/groff.texinfo: Minor improvements.
4500 2002-12-02 Werner LEMBERG <wl@gnu.org>
4502 * font/devdvi/generate.tc.map: s/%O/%0/.
4503 * font/devdvi/*TC: Regenerated.
4505 * src/roff/troff/div.cc (init_div_requests): Sorted.
4507 * tmac/dvi.tmac: Remove `Ye'.
4508 * tmac/ec.tmac: Remove `Ye'.
4509 Add .rchar entry for `de'.
4511 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4512 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4515 2002-11-30 Werner LEMBERG <wl@gnu.org>
4517 Add PS font for various Euro glyphs.
4519 * font/devps/generate/freeeuro.sfd: New master font file for
4521 * font/devps/generate/sfdtopfa.pe: New conversion script for
4523 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4524 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4525 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4527 * font/devps/EURO: Generated from `freeeuro.afm'.
4528 * font/devps/download: Add `freeuro.pfa'.
4529 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4532 * tmac/europs.tmac: New file.
4533 * tmac/ps.tmac: Include `europs.tmac'.
4534 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4536 2002-11-29 Werner LEMBERG <wl@gnu.org>
4538 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4539 * font/devdvi/S: Regenerated.
4540 * font/devhtml/R.proto: Fix `CR' and `ci'.
4542 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4544 * font/devps/symbolmap: Regenerated.
4545 * font/devutf8/R.proto: Fix `CR' and `ci'.
4547 * font/devutf8/NOTES: Updated.
4549 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4552 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4554 * tmac/dvi.tmac: Add `lh' and `rh'.
4555 * tmac/Xps.tmac: Fix `lh' and `rh'.
4556 * tmac/X.tmac: Add `OK'.
4557 * tmac/lj4.tmac: Ditto.
4559 2002-11-24 Werner LEMBERG <wl@gnu.org>
4561 * font/devX*/S: Regenerated.
4562 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4563 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4564 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4565 * font/devdvi/S: Regenerated.
4566 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4567 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4568 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4569 `bracketleftbt', `bracketrighttp', `bracketrightex',
4570 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4571 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4572 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4574 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4575 * font/devutf8/NOTES: Updated.
4576 * font/devlj4/generate/special.map: Add glyph `braceex'.
4577 * font/devlj4/S: Regenerated.
4579 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4581 2002-11-14 Werner LEMBERG <wl@gnu.org>
4583 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4586 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4588 * doc/texinfo.tex: New version from texinfo 4.3.
4589 * doc/groff.texinfo: Updated for texinfo 4.3.
4590 Use @tie{} where appropriate.
4591 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4592 * font/devdvi/generate/tc.map: Remove `rn'.
4593 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4594 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4596 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4597 font/devX75-12/*: Regenerated.
4599 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4600 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4601 Improve definition of `an'.
4602 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4604 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4605 * tmac/X.tmac: Add definition for `or'.
4606 * tmac/Xps.tmac: Undo change 2002-11-05.
4607 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4609 2002-11-11 Werner LEMBERG <wl@gnu.org>
4611 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4614 2002-11-10 Werner LEMBERG <wl@gnu.org>
4616 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4617 defines a glyph which is searched after the check for fonts declared
4618 with `.special' (and before the check for all mounted special
4619 fonts). `fschar' defines a glyph for a particular font which is
4620 searched after the check for fonts declared with `.fspecial' (and
4621 before the check for fonts declared with `.special'). `rfschar'
4622 removes glyphs defined with `fschar'.
4624 * src/roff/troff/token.h (char_mode): New enum.
4625 Declare do_define_character.
4626 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4628 (charinfo::is_fallback): Updated.
4629 (charinfo::is_special): New method.
4630 * src/roff/troff/input.cc (do_define_character): Add and use
4631 optional second parameter used as a prefix for font-specific glyph
4633 (define_character, define_fallback_character): Updated.
4634 (define_special_character): New function.
4635 (init_input_requests): Add `schar'.
4636 (charinfo::charinfo, charinfo::set_macro): Updated.
4637 * src/roff/troff/node.cc: Include `stringclass.h'.
4638 (make_glyph_node): Handle special glyphs defined with `.schar' and
4640 (define_font_special_character, remove_font_special_character): New
4642 (init_node_requests): Sorted.
4643 Add `fschar' and `rfschar'.
4644 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4645 Document new requests.
4647 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4648 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4650 2002-11-08 Werner LEMBERG <wl@gnu.org>
4652 Added new font `SC' (cmtex10) to devdvi.
4654 * devdvi/generate/Makefile (FONTS): Add `SC'.
4656 * devdvi/generate/textex.map: New map file for cmtex.
4658 * devdvi/Makefile.sub (DEVFILES): Updated.
4659 * tmac/dvi.tmac: Add fspecial entries for SC.
4660 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4661 found before `S' since the font position of `SC' is lower due to the
4662 gaps in DESC's `font' line.
4663 * tmac/ec.tmac: Add a `special' call.
4666 * font/devhtml/R.proto: Remove double entry for `ti'.
4667 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4668 * tmac/tty-char.tmac: Remove entry for `bq'.
4669 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4670 * tmac/ec.tmac: Don't remove `aq' glyph.
4671 * tmac/X.tmac: Fix entry for `em'.
4672 Add entries for `fo' and `fc'.
4673 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4675 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4676 documentation of `special' and `fspecial' requests.
4678 2002-11-05 Werner LEMBERG <wl@gnu.org>
4680 * font/devascii/R.proto, font/devcp1047/R.proto,
4681 font/devlatin1/R.proto: Remove entry for `.i'.
4682 * font/devdvi/generate/textt.map: Add entry for `ad'.
4683 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4684 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4685 We need this for getting kerning values to compose `/l' and `/L'.
4686 * font/devdvi: Regenerated font definition files for CM fonts.
4687 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4688 * font/devutf8/R.proto: Ditto.
4689 Remove double entry for `ti'.
4691 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4692 for (groff) ligatures, `la', and `ra'.
4693 Add "'C", "'c", `IJ', and `ij'.
4694 Remove double entry for `ti'.
4695 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4697 Add "'C", "'c", `IJ', and `ij'.
4698 Fix entries for (groff) ligatures, `la', and `ra'.
4700 * tmac/ps.tmac (ps-achar): New macro.
4701 Define "'c" and "'C".
4702 * tmac/tty.tmac: Add entry for `.i'.
4703 * tmac/X.tmac (X-achar): New macro.
4704 Define "'c", "'C", and `:Y'.
4705 Add entries for `IJ' and `ij'.
4706 * tmac/Xps.tmac (Xps-achar): New macro.
4707 Define "'c" and "'C".
4708 Add entries for `IJ' and `ij'.
4709 * tmac/lbp.tmac (lbp-achar): New macro.
4710 Add fallback characters for all groff ligatures and many other
4712 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4713 Add entries for `/l' and `/L'.
4714 Define "'c" and "'C".
4715 Add entries for `IJ' and `ij'.
4717 2002-11-02 Larry Kollar <kollar@alltel.net>
4719 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4721 2002-11-02 Werner LEMBERG <wl@gnu.org>
4723 Adding support for composite glyphs: \[xxx yyy ...] and the
4724 `composite' request.
4726 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4727 to Unicode-based glyph names.
4728 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4729 glyph names to groff glyph names.
4730 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4731 Unicode-based glyph names.
4732 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4733 for handling Unicode glyph names.
4734 * src/roff/troff/input.cc: Include unicode.h.
4735 (composite_glyph_name): New function.
4736 (token::next) <'['>: Handle Unicode glyph names and composite
4738 (composite_dictionary): New dictionary for the `composite' request.
4739 (composite_request): Implement `composite' request.
4740 (init_input_requests): Add `composite'.
4741 Alphabetically sorted.
4742 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4744 (init_env_requests): Alphabetically sorted.
4745 Removed `tas' and `tar' (already commented out).
4746 * src/roff/troff/Makefile.sub: Updated.
4748 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4750 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4753 2002-10-29 Werner LEMBERG <wl@gnu.org>
4755 Fix computation of .trunc register. Additionally, its value (and
4756 the value of the .ne register) is now always set before entering the
4759 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4760 `needed_space' before calling `space'.
4761 (top_level_diversion::space): Remove special code for 'sp before the
4763 Call `begin_page' with the discarded space as a parameter.
4764 (top_level_diversion::begin_page): Add optional parameter to set
4766 * src/roff/troff/div.h: Updated.
4768 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4771 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4772 (LP): Remove superfluous call to `br'.
4773 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4774 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4776 2002-10-26 Werner LEMBERG <wl@gnu.org>
4778 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4779 (doc-setup-header): Don't set page register `%'.
4780 * tmac/doc-nroff: Remove variable `C'.
4781 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4782 (doc-setup-header): Don't set page register `%'.
4784 * tmac/doc-common (doc-header): Call `ns'.
4785 (doc-paragraph): Protect .sp with .br so that it survives traps
4786 possibly set by the user.
4787 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4789 * tmac/doc*: Replace ' with . for consistency if no effect.
4791 2002-10-26 Werner LEMBERG <wl@gnu.org>
4793 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4794 so that it survives traps possibly set by the user.
4796 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4797 (troff_output_file::set_font): Call flush_tbuf if necessary.
4798 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4799 flush_tbuf and do_motion only if necessary.
4800 (troff_output_file::start_special,
4801 troff_output_file::put_char_width, troff_output_file::put_char,
4802 troff_output_file::draw): Updated.
4803 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4804 vmotion_node::tprint): Undo change 2002-10-23.
4806 2002-10-25 Werner LEMBERG <wl@gnu.org>
4808 * tmac/www.tmac (DC): Fix case of overlapping images.
4810 2002-10-23 Werner LEMBERG <wl@gnu.org>
4812 * src/roff/troff/node.cc (troff_output_file::fill_color,
4813 troff_output_file::glyph_color): Set current color before testing
4815 (troff_output_file::put_char_width, troff_output_file::put_char,
4816 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4818 (troff_output_file::file_color, troff_output_file::glyph_color):
4820 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4821 vmotion_node::tprint): Move first, then call fill_color.
4823 2002-10-20 Werner LEMBERG <wl@gnu.org>
4825 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4826 possible to use multiple main macro packages.
4828 2002-10-19 Werner LEMBERG <wl@gnu.org>
4830 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4831 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4832 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4834 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4835 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4837 2002-10-16 Werner LEMBERG <wl@gnu.org>
4839 * NEWS, doc/webpage.ms: Updated.
4841 2002-10-14 Werner LEMBERG <wl@gnu.org>
4843 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4844 troff_output_file::put_char, troff_output_file::fill_color,
4845 troff_output_file::glyph_color): Handle case where color pointer
4848 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4850 Add the new -r option to grotty. It is similar to the -i option
4851 except it tells grotty(1) to use the "reverse video" attribute to
4852 render italic fonts.
4854 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4855 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4856 (tty_printer::make_underline, tty_printer::put_color,
4857 tty_printer::end_page): Use it.
4858 (main): Add -r switch.
4860 * src/devices/grotty/grotty.man: Document it.
4862 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4864 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4865 cast to `unsigned char' to properly read patterns with 8bit
4868 2002-10-08 Werner LEMBERG <wl@gnu.org>
4870 * REVISION: Increased to 2.
4872 Version 1.18.1 released
4873 =======================
4875 2002-10-08 Werner LEMBERG <wl@gnu.org>
4877 * doc/webpage.ms, NEWS: Updated.
4879 2002-10-07 Werner LEMBERG <wl@gnu.org>
4881 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4882 suppress additional whitespace after the header.
4884 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4887 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4889 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4891 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4892 (Dt): Use it to improve language localization (especially Russian
4895 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4897 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4898 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4900 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4902 Call `picurve' for BSPLINE.
4903 (HGPrintElt): Handle BSPLINE.
4904 * src/preproc/grn/README: Document it.
4906 2002-10-03 Werner LEMBERG <wl@gnu.org>
4908 * src/roff/troff/node.cc (break_char_node::col): New variable.
4909 Updated constructor.
4910 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4912 (space_node::space_node): Remove assertion.
4913 (break_char_node::add_self): Pass color argument to space node.
4914 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4916 * src/roff/troff/env.cc (environment::do_break,
4917 environment::add_padding): Ditto.
4919 2002-10-02 Werner LEMBERG <wl@gnu.org>
4921 Redesigning color support in troff. Colors are no longer
4922 represented as separate nodes but are now part of glyph nodes and
4923 friends. This fixes the current formatting misbehaviour due to the
4924 changes introduced on 2002-09-20. Some extra code is necessary for
4925 proper grotty support: Without adding color variables to
4926 space-related nodes, the background color would be changed too late.
4928 * src/roff/troff/node.h, src/roff/troff/node.cc:
4929 s/current_pagecolor/current_fill_color/.
4930 s/current_glyphcolor/current_glyph_color/.
4931 (glyph_color_node, fill_color_node): Removed.
4932 (node::get_glyph_color, node::get_fill_color): New virtual member
4934 (space_node::col): New variable.
4935 Updated constructors of space_node and derived classes accordingly.
4936 (hmotion_node::col): New variable.
4937 Updated constructors of hmotion_node and space_char_hmotion_node
4939 (vmotion_node::col): New variable.
4940 Updated constructor accordingly.
4941 (draw_node::gcol, draw_node::fcol): New variables.
4942 Updated constructor accordingly.
4943 (special_node::gcol, special_node::fcol): New variables.
4944 Updated constructors accordingly.
4945 (troff_output_file::put_char, troff_output_file::put_charwidth,
4946 troff_output_file::draw): Set glyph and fill color.
4947 (troff_output_file::start_special): Set glyph and fill color.
4948 Always set current font.
4949 (troff_output_file::fill_color, troff_output_file::glyph_color):
4950 Don't call `do_motion'.
4951 (glyph_node::gcol, glyph_node::fcol): New variables.
4952 Updated constructors of glyph_node and ligature_node accordingly.
4953 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4955 (glyph_node::merge_glyph_node,
4956 kern_pair_node::add_discretionary_hyphen,
4957 node::add_discretionary_hyphen): Updated.
4958 (break_char_node::merge_self): Updated.
4959 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4960 vmotion_node::tprint): Handle color.
4961 (make_glyph_node, make_node, node::add_char): Updated.
4963 * src/roff/troff/env.cc (environment::space_newline,
4964 environment::space, environment::output_line, environment::do_break,
4965 environment::make_tab_node, environment::add_padding, title):
4967 (environment_switch, environment_copy): Don't add color nodes.
4969 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4971 (token::next): Updated.
4972 \m and \M now are as transparent as \s.
4973 (process_input_stack, token::add_to_node_list, token::process,
4974 read_draw_node): Updated.
4975 (charinfo_to_node_list): Don't add color nodes.
4977 * doc/groff.texinfo: Updated.
4979 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4981 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4984 2002-09-27 Colin Watson <cjwatson@debian.org>
4986 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4988 2002-09-23 Werner LEMBERG <wl@gnu.org>
4990 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4992 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4993 (linewidth_factor): New global variable.
4994 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4996 (long_options): Add -w/--linewidth option.
4998 (main): Handle -w option to set linewidth_factor.
4999 (lbp_printer::lbp_printer): Initialize req_linethickness, not
5002 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5004 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
5006 Fixed a bug in the line thickness setting code.
5008 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5010 (lbp_printer::set_line_thickness): Pass environment as second
5012 Implement it actually.
5013 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5014 and `set_line_thickness, depending on the current font size.
5016 2002-09-21 Werner LEMBERG <wl@gnu.org>
5018 Some Debian patches.
5020 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5021 * src/roff/troff/node.cc (bracket_node::copy): Initialize
5024 2002-09-20 Werner LEMBERG <wl@gnu.org>
5026 * configure: Regenerated with autoconf 2.54.
5028 2002-09-20 Werner LEMBERG <wl@gnu.org>
5030 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5032 Rename cur_fill_color to fill_color.
5033 * src/roff/troff/env.cc: Updated.
5035 2002-09-20 Werner LEMBERG <wl@gnu.org>
5037 * src/roff/troff/env.cc (title): Copy color status after processing
5039 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5040 fill color nodes to reset colors properly.
5042 * tmac/www.tmac (DC): Fix color handling.
5044 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5045 * doc/groff.texinfo: Fixing documentation of `tl' request.
5046 * doc/webpage.ms: Updated.
5048 2002-09-19 Werner LEMBERG <wl@gnu.org>
5050 * src/roff/troff/env.cc (environent_switch, environment_copy):
5051 Emit glyph and fill color nodes to initialize colors properly.
5053 2002-09-17 Colin Watson <cjwatson@debian.org>
5055 * src/roff/troff/env.cc (environment::set_glyph_color,
5056 environment::set_fill_color): Fix typo which prevented \m[] work
5059 2002-09-17 Werner LEMBERG <wl@gnu.org>
5061 Add left and right italic correction to non-slanted PS fonts. This
5062 is an experimental feature to improve image rendering of grohtml.
5064 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5065 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5066 * font/devps/*: All non-slanted fonts regenerated.
5069 2002-09-16 Werner LEMBERG <wl@gnu.org>
5071 Add a site-specific font directory.
5073 * Makefile.in (localfontdir, legacyfontdir): New variables.
5074 (fontpath): Use them.
5075 (MDEFINES, uninstall_dirs): Updated.
5076 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5077 Remove `FONTPATH' and `MACROPATH'.
5079 * src/roff/troff/troff.man, NEWS: Updated.
5080 * doc/groff.texinfo (Font Directories): New section.
5083 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5084 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5085 src/preproc/grn/grn.man: Minor fixes.
5087 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5088 Remove unused variable.
5090 2002-09-11 Werner LEMBERG <wl@gnu.org>
5092 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5093 * man/groff_out.man: Fix documentation of 'N'.
5095 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
5097 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5098 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5100 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5101 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5102 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5103 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5104 PRE_TAG>: Call `begin' with `FALSE'.
5106 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5108 * src/libs/libgroff/string.cc (string::extract): Fix position of
5109 terminating null byte.
5111 2002-09-08 Werner LEMBERG <wl@gnu.org>
5113 Add global option `nospaces' to tbl so that leading and trailing
5114 spaces in data items are ignored.
5116 * src/libs/libgroff/string.cc (string::remove_spaces): New member
5117 function to remove leading and trailing spaces.
5118 * src/include/stringclass.h: Updated.
5120 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5122 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5124 Fix typo in error messages.
5125 (process_data): Implement `nospaces' option.
5126 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5128 2002-09-07 Werner LEMBERG <wl@gnu.org>
5130 * src/include/config.hin: Add `HAVE_ISATTY'.
5131 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5133 * src/libs/libgroff/tmpname.cc: Include `time.h'.
5134 * src/libs/libdriver/input.cc (Char): Add `operator==' and
5135 `operator!=' for `char'.
5136 * doc/groff.texinfo: Replace @ifnottex block for top node with
5139 2002-09-06 Werner LEMBERG <wl@gnu.org>
5141 * doc/Makefile.in (.texinfo.html): Add -I switch.
5142 * doc/groff.texinfo: Add @ifnottex block for top node to make
5143 translation to HTML work.
5145 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
5147 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5148 (get_papersize, determine_vertical_offset): Removed.
5149 (char_buffer::do_image): Always specify letter size.
5151 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5154 2002-09-05 Werner LEMBERG <wl@gnu.org>
5156 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5157 default indentation.
5159 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
5161 * src/preproc/html/pre-html.cc (imageList::createPage): Use
5163 (generateImages): Clean up push-back buffer.
5165 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5167 * doc/groff.texinfo: Minor fixes.
5169 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5171 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5172 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5174 (determine_vertical_offset): Use LETTER_LENGTH.
5175 (createPage): Moved to ...
5176 (imageList::createPage): This.
5177 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5178 (imageList::getMaxX): New function.
5179 (createImage): Moved to ...
5180 (imageList::createImage): This.
5181 (imageList::createImages): New function.
5182 (generateImages): Read `maxx' directly.
5184 (scanArguments): Don't specify `gsPaper' for `-o'.
5185 (makeTempFiles): Call `xtmpfile' with the last argument set to
5188 2002-08-24 Werner LEMBERG <wl@gnu.org>
5190 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5191 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5192 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5193 * src/preproc/html/pushback.cc: Include nonposix.h.
5194 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5197 2002-08-23 Werner LEMBERG <wl@gnu.org>
5199 Use $(OBJEXT) for the object file extension.
5201 * Makefile.comm (.SUFFIXES): Add .obj.
5202 (.cc.obj, .c.obj): New implicit rules.
5203 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5204 (MDEFINES): Add EXEEXT and OBJEXT.
5205 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5207 2002-08-22 Werner LEMBERG <wl@gnu.org>
5209 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5211 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5213 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5215 (html_printer::update_min_max, html_printer::add_table_end): New
5217 (html_printer::lookahead_for_tables): Use them.
5218 Reset page offset correctly.
5219 (html_printer::~html_printer): Add creation of creator comment up.
5221 2002-08-20 Werner LEMBERG <wl@gnu.org>
5223 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5224 * man/groff_tmac.man: Fix typos.
5225 * man/groff_font.man: Minor reordering.
5226 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5228 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5230 Avoid endless loops while scanning for tables.
5232 * src/devices/grohtml/post-html.cc (list::insert): Set
5234 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5236 Return immediately if that argument is NULL.
5237 (html_printer::calc_nf): Don't test if `g' is NULL.
5238 (html_printer::lookahead_for_tables): Use
5239 `glyphs.move_right_get_data'.
5240 Don't test if `g' is NULL.
5242 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5244 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5246 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5248 (char_block::char_block): Allocate `buffer'.
5249 (char_buffer::add_string): Use it.
5251 2002-08-15 Werner LEMBERG <wl@gnu.org>
5253 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5254 src/devices/grodvi/grodvi.man: Document default line thickness.
5256 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5258 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5261 2002-08-14 Werner LEMBERG <wl@gnu.org>
5263 * doc/webpage.ms: Updated.
5265 2002-08-09 Werner LEMBERG <wl@gnu.org>
5267 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5270 2002-08-08 Aaron Campbell <aaron@monkey.org>
5272 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5275 2002-08-08 Werner LEMBERG <wl@gnu.org>
5277 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5280 Don't push back a space but a newline onto the stack.
5282 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5284 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5287 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5288 html_printer::start_font): Handle them.
5289 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5291 (html_text::do_bold): Don't reset italic and tt.
5292 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5293 * font/devhtml/DESC.proto: Add those fonts.
5294 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5296 2002-08-07 Werner LEMBERG <wl@gnu.org>
5298 * MORE.STUFF: Added gpresent.
5300 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5301 whitespace before printing the logging message.
5303 2002-07-31 Colin Watson <cjwatson@debian.org>
5305 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5306 Initialize `n' to zero. This fixes a segfault on ARM.
5308 2002-07-30 Werner LEMBERG <wl@gnu.org>
5310 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5312 2002-07-29 Werner LEMBERG <wl@gnu.org>
5314 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5317 2002-07-28 Colin Watson <cjwatson@debian.org>
5319 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5321 (html_printer::html_printer): Initialize `pointsize'.
5323 2002-07-26 Werner LEMBERG <wl@gnu.org>
5325 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5327 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5328 (gnu.eps): Add -rle switch to pnmtops.
5329 (distfiles): Add gnu.eps and gnu.png.
5331 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5333 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5336 2002-07-24 Werner LEMBERG <wl@gnu.org>
5338 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5339 ' \+' but ' *' for sed.
5340 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5342 2002-07-23 Werner LEMBERG <wl@gnu.org>
5344 * doc/groff.texinfo: Document `papersize' keyword.
5345 * NEWS, man/groff_font.man: Updated.
5347 2002-07-23 Colin Watson <cjwatson@debian.org>
5349 Extend papersize keyword to accept more than a single entry. The
5350 first valid will be used.
5352 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5353 (font::scan_papersize): Really skip final newline.
5354 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5356 2002-07-23 Werner LEMBERG <wl@gnu.org>
5358 * configure.ac: Test for isatty.
5359 * configure: Regenerated.
5360 * src/include/posix.h: Check HAVE_ISATTY.
5361 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5362 * src/utils/lookbib/lookbib.cc: Include posix.h.
5363 Don't declare isatty.
5365 2002-07-21 Werner LEMBERG <wl@gnu.org>
5367 * NEWS: Add `output' request.
5369 * REVISION: Increased to 1.
5371 Version 1.18.0 released
5372 =======================
5374 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5376 Allow internal glyph indices > 0xFF in grohtml for input characters.
5378 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5380 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5381 Updated all callers.
5382 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5383 (html_printer): Updated.
5385 2002-07-19 Werner LEMBERG <wl@gnu.org>
5387 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5388 * font/devutf8/R.proto: Adding some missing glyphs.
5389 * font/devutf8/NOTES: Updated.
5391 * tmac/dvi.tmac: Add more composite glyphs.
5392 * tmac/html.tmac: Updated.
5394 * man/groff_char.man: Add `sum' and `product' entities.
5398 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5400 Improved table, tab, and indenting support.
5402 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5403 string_iterator::suppress_newline_flag): Removed. Updated all
5404 function which have used it.
5406 * src/roff/troff/env.cc: Include `input.h'.
5407 (environment::add_node): Accept 0 as parameter.
5408 (environment::add_html_tag): Add `force' parameter.
5409 Updated all callers.
5410 (environment::add_html_tag_tabs): Ditto.
5411 For the moment, support left-aligned tabs only.
5412 (environment::make_html_tag): New function.
5413 (fill, no_fill): Set .br html tag additionally.
5414 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5415 (environment::add_html_tag_eol): Removed.
5416 (tab_stops::distance_to_next_tab): Add variant for handling
5418 (environment::distance_to_next_tab): Ditto.
5419 Updated all callers.
5420 (environment::handle_tab): Handle tabs for html.
5422 * src/roff/troff/env.h: Updated.
5424 * src/roff/troff/div.cc: Updated all callers of
5425 `environment::add_html_tag'.
5427 * src/devices/grohtml/html-table.cc,
5428 src/devices/grohtml/html-table.h: New files.
5430 * src/devices/grohtml/html-text.cc (html_text): New members
5431 `blank_para' and `start_space'.
5432 (html_text::issue_tag): Don't emit TABLE_TAG.
5433 Handle indentation for PRE_TAG and P_TAG.
5434 (html_text::end_tag): Updated.
5435 (html_text::table_is_void, html_text::issue_table_begin,
5436 html_text::issue_table_end): Removed.
5437 (html_text::do_push): Simplified.
5438 [DEBUGGING]: Small fix.
5439 (html_text::push_para): Add new parameter for indentation; updated
5442 (html_text::do_indent, html_text::do_table, html_text::done_table,
5443 html_text::is_in_table): Removed.
5444 (html_text::do_pre): Handle P_TAG also.
5445 (html_text::shutdown): Handle p->indent.
5446 (html_text::check_emit_text): Simplified.
5447 (html_text::do_emittext): Reset `blank_para'.
5448 (html_text::do_para): Add new parameter for indentation; updated
5450 (html_text::remove_indent): New function.
5451 (html_text::do_space): Handle verbatim text properly.
5452 (html_text::ever_emitted_text, html_text::starts_with_space,
5453 html_text::remove_para_align): New functions.
5454 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5456 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5459 * src/devices/grohtml/post-html.cc: Include html-table.h.
5460 (INDENTATION): Removed.
5461 (text_glob): Added many `is_<foo>' functions.
5462 Added table description `tab'.
5463 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5465 (list): Add `insert' and `move_to' member functions.
5466 (page): Add `insert_tag' member function.
5467 (page::dump_page) [DEBUG_TABLES]: Improved.
5468 (html_printer): Add `table' and `max_linelength' elements.
5469 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5470 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5471 `remove_tabs', `remove_courier_tabs'.
5472 (html_printer::emit_raw): Handle indentation.
5473 (html_printer::do_center, html_printer::write_header): Updated.
5474 (html_printer::is_courier_until_eol): Check for tag.
5475 (html_printer::do_linelength): Handle max_linelength.
5476 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5478 (html_printer::do_tempindent): Updated.
5479 (html_printer::do_indentedparagraph): Removed.
5480 (html_printer::do_indent): Simplified.
5481 (html_printer::do_eol): Use `ever_emitted_text'.
5482 (html_printer::do_flush, html_printer::do_links): Don't call
5484 (html_printer::do_break): Handle end_tempindent.
5485 (html_printer::troff_tag): Get argument.
5487 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5488 (html_printer::flush_page): Call `lookahead_for_tables'.
5489 Don't call `done_table'.
5490 (html_printer::add_to_sbuf): Always call do_indent.
5492 * src/devices/grohtml/Makefile.sub: Updated.
5494 * tmac/an-old.tmac (TP): Don't handle html device specially.
5495 (an-do-tag-html): New function which will be used instead of
5496 `an-do-tag' if html device is used.
5498 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5500 * tmac/s.tmac (@IP): Don't handle html device specially.
5501 (@IP-html): New function which will be used instead of `@IP' if
5502 html device is used.
5504 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5505 is a hack which will eventually vanish again.
5506 (PIMG): Handle `-C' option correctly if not html.
5509 2002-07-17 Werner LEMBERG <wl@gnu.org>
5511 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5513 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5515 * contrib/pic2graph/pic2graph.*: Use convert(1).
5516 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5518 2002-07-14 Bernd Warken <bwarken@mayn.de>
5520 * tmac/groff_trace.man: New file.
5521 * tmac/Makefile.sub: Updated.
5524 2002-07-13 Werner LEMBERG <wl@gnu.org>
5526 * src/roff/groff/groff.man: Add some cross references.
5528 2002-07-12 Werner LEMBERG <wl@gnu.org>
5530 * src/roff/troff/input.cc (substring_request): Add warnings for
5531 string indices out of range.
5533 2002-07-11 Werner LEMBERG <wl@gnu.org>
5535 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5536 * font/devdvi/*EC: Regenerated.
5538 2002-07-10 Bernd Warken <bwarken@mayn.de>
5540 * man/groff_char.man: Updated and extended.
5542 2002-07-10 Werner LEMBERG <wl@gnu.org>
5544 * src/roff/troff/input.cc (length_macro): Renamed to...
5545 (length_request): This.
5546 Move call of `tok.next()' to the very end, otherwise the register
5547 value hasn't been updated yet.
5548 (init_input_requests): Updated.
5550 2002-07-09 Werner LEMBERG <wl@gnu.org>
5552 * src/roff/troff/input.cc (substring_macro): Renamed to...
5553 (substring_request): This.
5554 (init_input_requests): Updated.
5555 * src/roff/troff/request.h: Updated.
5557 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5559 * src/roff/grog/grog.sh: Fix typo.
5561 2002-07-08 Werner LEMBERG <wl@gnu.org>
5563 * win32-diffs: Updated.
5565 Handle `papersize' keyword properly in DESC.
5567 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5569 Updated all callers.
5570 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5572 * src/include/paper.h: Updated.
5574 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5575 Other minor C syntax fixes.
5576 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5577 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5579 (lbp_printer::lbp_printer): Pass three arguments.
5580 Set paper dimensions properly.
5581 (make_printer, main): Updated.
5582 (handle_unknown_desc_command): Fix error messages.
5583 (main): Handle papersize keyword in DESC properly.
5585 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5587 (lbp_printer::lbp_printer): Pass an argument.
5588 Set paper_size properly.
5589 (handle_unknown_desc_command): Removed.
5590 (make_printer, main): Updated.
5591 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5593 * man/groff_font.man, NEWS: Updated.
5595 2002-07-07 Werner LEMBERG <wl@gnu.org>
5597 Integrated eqn2graph, contributed by Eric S. Raymond.
5599 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5601 * Makefile.in, NEWS: Updated.
5603 2002-06-04 Werner LEMBERG <wl@gnu.org>
5605 Changing the substring request to make it fit better with other
5606 string manipulation functions in other programming languages:
5607 Index 0 is now the first character in the string, and index -1
5608 indicates the last character. Since this request didn't work
5609 properly anyway in the last release, it doesn't harm too much to
5612 * src/roff/troff/input.cc (substring_macro): Use loops to get
5613 the real string length (ignoring COMPATIBLE_SAVE and
5614 COMPATIBLE_RESTORE) and offsets.
5615 Implement change described above.
5617 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5618 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5620 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5622 2002-06-03 Werner LEMBERG <wl@gnu.org>
5624 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5625 COMPATIBLE_RESTORE are completely ignored.
5627 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5629 (macro): `length' field renamed to `len'.
5630 Added new field `empty_macro' (1 if macro is empty), to be used
5631 instead of checking `len'.
5632 Updated all callers.
5633 (macro::empty): Updated.
5634 (macro::length, macro::set, macro::get): New functions.
5635 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5637 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5638 COMPATIBLE_RESTORE pairs.
5639 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5640 * src/roff/troff/request.h: Updated.
5642 * doc/groff.texinfo: Document .chop's behaviour better.
5644 2002-06-02 Werner LEMBERG <wl@gnu.org>
5646 * doc/pic.ms: Fix documentation for the addition of positions.
5648 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5650 2002-06-29 Werner LEMBERG <wl@gnu.org>
5652 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5654 * src/roff/troff/input.cc (have_string_arg): New global variable.
5655 (read_mode): New enumeration.
5656 (read_escape_name): Use it. Update all calls.
5657 (read_long_escape_name): Use it. Update all calls.
5658 Set have_string_arg if appropriate.
5659 (get_char_for_escape_name): Add parameter for handling space
5661 (interpolate_string_with_args, decode_string_args): New functions.
5662 (get_copy, token::next): Call it if necessary.
5663 (interpolate_string): Fix error message.
5665 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5668 2002-06-24 Bernd Warken <bwarken@mayn.de>
5670 * man/groff_tmac.man: Updated and extended.
5672 2002-06-24 Werner LEMBERG <wl@gnu.org>
5674 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5676 2002-06-23 Werner LEMBERG <wl@gnu.org>
5678 * doc/pic.ms: Improve documentation of composite block objects.
5680 2002-06-22 Werner LEMBERG <wl@gnu.org>
5682 * src/roff/troff/input.cc (init_registers): Add three registers
5683 `seconds', `minutes', and `hours' to hold the current time.
5685 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5688 2002-06-20 Werner LEMBERG <wl@gnu.org>
5690 Make \X accept both `\ ' and `\~', converting them to single space
5693 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5694 (token::unstretchable_space): New inline function.
5695 * src/roff/troff/input.cc (token::next, token::delimiter,
5696 token::description, token::add_to_node_list, token::process): Handle
5697 TOKEN_UNSTRETCHABLE_NODE.
5698 (encode_char): Handle tok.stretchable_space and
5699 tok.unstretchable_space.
5701 * NEWS, doc/groff.texinfo: Document it..
5703 2002-06-19 Werner LEMBERG <wl@gnu.org>
5705 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5707 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5708 keyword to enable/disable SGR output.
5709 (tty_printer::change_fill_color): New function.
5710 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5712 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5715 2002-06-18 Werner LEMBERG <wl@gnu.org>
5717 Add a `color' request and a `.color' register to control usage of
5720 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5721 (color_flag): This (which is the inverse).
5722 (activate_color): New function.
5723 (main, init_input_requests): Updated.
5724 * src/roff/troff/troff.h, src/roff/troff/node.cc
5725 (troff_output_file::fill_color, troff_output_file::glyph_color):
5728 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5729 Document the changes.
5731 2002-06-17 Colin Watson <cjwatson@debian.org>
5733 Circumvent bug in autoconf 2.53 regarding top_builddir.
5735 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5736 * Makefile.in, doc/Makefile.in:
5737 s/@top_builddir@/@groff_top_builddir@/.
5738 * configure: Regenerated (with autoconf 2.53).
5740 2002-06-17 Werner LEMBERG <wl@gnu.org>
5742 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5743 `paperwidth' and `paperlength' for the `papersize' keyword.
5745 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5747 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5749 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5751 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5752 html_printer::do_linelength, html_printer::do_pageoffset,
5753 html_printer::do_indentation, html_printer::do_tempindent,
5754 html_printer::do_break, html_printer::begin_page): Clear indented
5756 * tmac/html.tmac: Disable hyphenation.
5758 2002-06-15 Werner LEMBERG <wl@gnu.org>
5760 Don't produce HTML files if utility programs are missing.
5762 * Makefile.in (make_html, make_install_html): New variables.
5763 (MDEFINES): Updated.
5765 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5767 * configure.ac: Use it.
5768 * configure: Regenerated.
5770 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5771 (HTMLEXAMPLESFILES): This new variable.
5772 (EXAMPLESIMAGEFILES): Renamed to...
5773 (HTMLEXAMPLEIMAGEFILES): This.
5774 (CLEANADD): Add HTMLEXAMPLEFILES.
5775 (all): Use `make_html'.
5777 (install_data): Use `make_install_html'.
5778 Move html stuff to...
5779 (install_html): This new target.
5780 (uninstall_sub): Updated.
5782 2002-06-14 Bernd Warken <bwarken@mayn.de>
5784 * src/roff/grog/Makefile.sub (grog): Renamed to...
5786 (grog): New rule to always install grog.sh as grog.
5788 2002-06-08 Bernd Warken <bwarken@mayn.de>
5790 * src/roff/grog/grog.pl: Fix typo.
5792 2002-06-07 Werner LEMBERG <wl@gnu.org>
5794 * doc/groff.texinfo: Add more info on .tr arguments.
5796 2002-06-05 Werner LEMBERG <wl@gnu.org>
5798 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5800 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5801 * configure: Regenerated.
5803 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5805 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5807 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5809 2002-06-04 Werner LEMBERG <wl@gnu.org>
5811 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5812 is not initialized at the time we need it in case `--prefix' hasn't
5813 been set. Check for `ac_default_prefix' also.
5814 Test for `papersize' keyword also and generalize allowed whitespace.
5815 * configure: Regenerated.
5817 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5820 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5822 (src_version, src_revision): New variables to avoid overwriting
5823 from parent make process.
5824 (version.cc): Updated.
5826 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5827 (linebuf, linebufsize): New global variables.
5828 (sys_fatal): Use `fatal' to abort properly.
5829 (get_line): New function.
5830 (get_resolution): Use it.
5831 Improve error messages.
5832 (get_papersize): Check `papersize' also.
5834 Improve error messages.
5836 2002-06-03 Werner LEMBERG <wl@gnu.org>
5838 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5839 should be removed only if builddir is not srcdir.
5840 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5841 (clean): Depend on `mostlyclean'.
5842 (distclean): Depend on `clean'.
5843 (realclean, extraclean): Depend on `distclean'.
5844 (.y.cc, .y.o): Simplified. The output files are no longer written
5845 to srcdir but to builddir.
5846 * Makefile.in (MDEFINES): Add `version' and `revision'.
5847 (uninstall_dirs): Fix order of directories.
5848 * doc/Makefile.sub (version, revision): Removed.
5849 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5850 Added `HTMLDOCFILES'.
5851 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5852 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5853 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5856 * doc/texinfo.tex (\authortt): New macro.
5857 (\shortcontt): Define.
5858 (\titlepage): Set \tt to \authortt while defining \authorfont.
5859 (\appendixbox): New macro.
5860 (\chapmacro, \appendixentry): Use \appendixbox to get even
5861 indentation for letters.
5862 (\summarycontents): Set \tt.
5863 (\internalpagesize): Add two arguments for real paper width and
5864 height as needed by pdfTeX.
5865 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5867 (\tempdima, \tempdimb): New temporary dimensions.
5868 (\pagesizesyyy): Updated.
5870 2002-06-02 Werner LEMBERG <wl@gnu.org>
5872 Adding a new keyword `papersize' to the DESC file format (similar
5873 but not completely identical to grolbp's extension). grops now has
5874 a -p command line option to override `papersize'. Finally, grolbp
5875 has been adapted to the new syntax.
5877 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5878 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5880 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5881 (CCSRCS): Add `paper.cc'.
5883 * src/include/font.h (font): Add `papersize' element.
5884 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5885 (font::scan_papersize): New function.
5886 (font::load_desc): Use it for handling `papersize' keyword.
5887 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5889 * src/devices/grops/ps.cc: Include paper.h.
5890 (user_paper_length): New global variable.
5891 (ps_printer): Use paper length as initializer.
5892 (make_printer): Updated.
5893 (main): Handle new `-p' option.
5894 * src/devices/grops/grops.man: Updated.
5896 * src/devices/grolbp/lbp.cc: Include paper.h.
5897 s/papersizes/lbp_papersizes/.
5898 (set_papersize): Use new `papersizes' array.
5899 (handle_unknown_desc_command): Don't handle `papersize'.
5900 (main): Use `font::scan_papersize' for handling `-p' option.
5901 * src/devices/grolbp/grolbp.man: Updated.
5903 * man/groff_font.man: Document `papersize'.
5906 2002-05-30 Werner LEMBERG <wl@gnu.org>
5908 * src/devices/grops/TODO: Updated.
5909 * src/devices/grops/grops.man: More info on paper formats.
5910 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5912 2002-05-29 Werner LEMBERG <wl@gnu.org>
5914 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5915 to list only if srcdir != currdir.
5916 (distfiles): New target.
5918 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5919 (NOMAKEDIRS): New variable.
5922 2002-05-26 Werner LEMBERG <wl@gnu.org>
5924 Add .output request, similar to \! at top-level.
5926 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5927 (output_request): New function.
5928 (init_input_requests): Add it.
5930 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5933 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5934 (prepare_examples): Fix typo.
5935 * doc/groff.texinfo (@direntry): Fix it.
5937 2002-05-25 Werner LEMBERG <wl@gnu.org>
5939 Including the doc subdir into groff's Makefile system.
5941 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5942 * configure.ac: Use it.
5943 Generate `doc/Makefile'.
5944 * configure: Regenerated.
5946 * Makefile.in (infodir, INSTALL_INFO): New variables.
5947 (MDEFINES, uninstall_dirs): Updated.
5948 (OTHERDIRS): Add `doc'.
5949 * Makefile.comm (CLEANDIRADD): New variable.
5950 (mostlyclean): Use it.
5952 * doc/Makefile.sub, doc/Makefile.in: New files.
5953 * doc/Makefile: Removed.
5955 * NEWS, INSTALL: Updated.
5957 2002-05-24 Werner LEMBERG <wl@gnu.org>
5959 * doc/homepage.ms: Renamed to ...
5960 * doc/webpage.ms: This.
5963 2002-05-23 Werner LEMBERG <wl@gnu.org>
5965 Integrating the `mom' macro package, contributed by Peter Schaffter
5968 * contrib/mom/*: New subdirectory tree.
5969 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5970 be used for documentation files.
5971 (MDEFINES, uninstall_dirs): Use them.
5972 (OTHERDIRS): Add contrib/mom.
5973 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5975 * MANIFEST, NEWS: Updated.
5977 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5979 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5980 if at outer level; at start-up we are at outer level.
5982 * src/roff/troff/input.cc (do_suppress): Implement it.
5985 Add option -p to show progress information.
5986 pre-grohtml will now render only one page at a time, reducing the
5987 size of needed disk resources enormously.
5989 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5990 (imagePageName): New global variable.
5991 (psPageName, show_progress, currentPageNo): New global variables.
5992 (html_system): Close saved stderr and stdout handles.
5993 (write_end_image): Accept a parameter to control \O escape.
5994 (write_start_image): Adapted to new \O meaning.
5995 (char_buffer::write_upto_newline): Updated.
5996 (createAllPages): Replaced with...
5997 (createPage): This new function to create a single page for images.
5998 It uses `psselect' from the psutils package.
5999 (removeAllPages): Removed.
6000 (createImage): Updated.
6001 Handle progress display.
6002 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6003 (scanArguments): Add option -p.
6004 (makeTempFiles): Updated to create temp files for psPageName and
6006 (removeTempFiles): Removed.
6009 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6010 html_printer::write_header): Append `\0' to `buffer'.
6011 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6013 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6014 Handle `text_emitted'.
6015 (html_text::table_is_void): Slightly rewritten.
6016 (stop): New external symbol.
6017 (html_text::do_push) [DEBUGGING]: Use it and simplify.
6018 (html_text::shutdown): Call `dump_stack'.
6019 (html_text::do_space): Rewritten.
6020 * src/devices/grohtml/grohtml.man: Document -p and the need of
6023 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6025 Call \O[0] if `ps4html' is active.
6026 * tmac/s.tmac (@EQ, @EN): Handle html better.
6028 * tmac/html.tmac: Don't use black for background colour.
6030 * src/roff/troff/node.cc: Include `div.h'.
6031 (troff_output_file::really_print_line): Don't use `is_on'.
6032 (troff_output_file::word_marker, troff_output_file::flush_tbuf
6033 troff_output_file::check_charinfo,
6034 troff_output_file::put_char_width, troff_output_file::put_char,
6035 troff_output_file::determine_line_limits, troff_output_file::draw,
6036 real_output_file::begin_page, glyph_color_node::tprintf,
6037 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6039 (troff_output_file::really_on): Call `do_motion'.
6040 (suppress_node::tprint): Use `get_page_number' instead of `%'
6042 Call `reset_output_registers' conditionally on `is_on'.
6044 * doc/groff.texinfo: Document new syntax of \O.
6045 * NEWS, man/groff_diff.man: Updated.
6047 2002-05-22 Werner LEMBERG <wl@gnu.org>
6049 * MORE.STUFF: Add info about David Frey's deroff implementation.
6052 2002-05-16 Werner LEMBERG <wl@gnu.org>
6054 Pic's `with' attribute now accepts positions.
6056 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6057 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6059 (object_spec): Add rule for `WITH' and `position'.
6060 (relative_path): Give `corner' the precedence of `CHOP'.
6061 * src/preproc/pic/object.h (path): New members `pos' and
6063 * src/preproc/pic/object.cc: Updated initializers of `path'.
6064 (path::follow): Handle `is_position'.
6066 * doc/pic.ms: Completely updated grammar description.
6067 Many typographical improvements.
6069 2002-05-15 Werner LEMBERG <wl@gnu.org>
6071 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6072 code of x in range 0-127) also.
6073 * doc/groff.texinfo, man/groff_diff.man: Updated.
6075 Added keywords `north', `south', `east', and `west' for corners
6078 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6080 (yylex): Handle them.
6081 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6082 (corner): Handle them.
6084 2002-05-14 Werner LEMBERG <wl@gnu.org>
6086 * src/devices/grops/grops.man: Clarify handling of `download' file.
6088 2002-05-11 Werner LEMBERG <wl@gnu.org>
6090 Adding `warnscale' and `spreadwarn' requests, based on a patch from
6091 Jeffrey Friedl <jfriedl@yahoo.com>.
6093 * src/roff/troff/input.cc (spread_limit, warn_scale,
6094 warn_scaling_indicator): New global variables.
6095 (warnscale_request, spreadwarn_requests): New functions.
6096 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6097 (init_input_requests): Updated.
6098 (error_type): Add `OUTPUT_WARNING'.
6099 (do_error): Handle it.
6100 (output_warning): New warning function which shows output location.
6101 * src/roff/troff/env.h (spread_limit): New external variable.
6102 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6104 (distribute_space): Emit warning if added space is larger than
6106 (environment::possibly_break_line): Emit warning if a line can't
6107 be adjusted on both sides.
6109 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6111 2002-05-08 Werner LEMBERG <wl@gnu.org>
6113 * src/roff/troff/node.cc (special_node::special_node): Use
6114 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
6115 \X''\% crashes, for example.
6117 * doc/groff.texinfo: Document \! and \? used at top-level.
6119 2002-05-06 Werner LEMBERG <wl@gnu.org>
6121 * src/preproc/pic/pic.man: Fix some keyword syntax.
6122 Other minor typographical fixes.
6124 * src/roff/groff/groff.man: Fix typos.
6126 2002-05-04 Werner LEMBERG <wl@gnu.org>
6128 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6129 (ShortOpt[]): This to avoid problems with refer.
6131 * doc/pic.ms: Fix typo.
6132 Fix pic grammar description.
6134 * tmac/an-old.tmac (ne): Use de1, not de.
6136 2002-05-03 Werner LEMBERG <wl@gnu.org>
6138 * doc/groff.texinfo: Finished separation of glyphs and characters.
6139 Don't use the string `Appendix' for appendix headers (both in
6140 the text and the table of contents).
6141 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6144 Use registers LL and LT (similar to -ms) for controlling the
6145 length of title and line, respectively, in the -man and -mdoc
6148 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6149 (doc-setup-page-layout): Use \n[LL] and \n[LT].
6150 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6152 (an-header, an-p-footer): Use \n[LT].
6153 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6154 doc/groff.texinfo: Document it.
6156 2002-05-02 Werner LEMBERG <wl@gnu.org>
6158 * doc/fdl.texi: New file.
6159 * doc/groff.texinfo: Include it.
6160 Define and use @copying.
6161 Starting with separating glyph, symbol, and character.
6163 2002-04-27 Werner LEMBERG <wl@gnu.org>
6165 * Makefile.in (EXEEXT): Set it.
6166 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6169 * src/include/nonposix.h: Define GS_NAME.
6170 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6172 Some preliminary changes for EMX support under OS/2.
6174 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6175 __EMX__ similar to __MSDOS__.
6176 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6178 2002-04-25 Werner LEMBERG <wl@gnu.org>
6180 * doc/groff.texinfo: Integrated groff_out.man.
6183 2002-04-23 Werner LEMBERG <wl@gnu.org>
6185 * man/groff_out.man: Minor fixes.
6187 2002-04-23 Werner LEMBERG <wl@gnu.org>
6189 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6190 correct page references.
6191 Fixed many index entries.
6193 2002-04-23 Bernd Warken <bwarken@mayn.de>
6195 * man/roff.man: Enlarged.
6197 2002-04-22 Werner LEMBERG <wl@gnu.org>
6199 * doc/groff.texinfo: More examples, other fixes.
6201 2002-04-20 Werner LEMBERG <wl@gnu.org>
6203 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6204 will now form a chain, e.g.
6213 This is for compatibility with plan 9's troff.
6215 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6219 * doc/groff.texinfo: Add documentation of remaining requests and
6222 2002-04-19 Werner LEMBERG <wl@gnu.org>
6224 * doc/groff.texinfo: Add documentation of remaining escapes.
6226 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6227 * font/devdvi/*TC: Regenerated.
6229 2002-04-18 Werner LEMBERG <wl@gnu.org>
6231 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6232 if not in compatibility mode, i.e., increment relative to the
6234 * doc/groff.texinfo: Updated accordingly.
6236 2002-04-17 Werner LEMBERG <wl@gnu.org>
6238 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6240 2002-04-16 Bernd Warken <bwarken@mayn.de>
6242 * src/roff/groff/groff.man: Improve documentation of -P option.
6245 2002-04-15 Werner LEMBERG <wl@gnu.org>
6247 Add new escape \F to switch font family.
6249 * src/roff/troff/input.cc (token::next): Handle \F.
6250 * src/roff/troff/env.cc (environment::set_family): Handle
6252 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6255 2002-04-14 Werner LEMBERG <wl@gnu.org>
6257 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6260 2002-04-13 Werner LEMBERG <wl@gnu.org>
6262 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6263 \m[] and \M[], respectively.
6265 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6266 (symbol::symbol): Handle NULL string and empty string differently.
6267 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6268 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6269 Add optional parameter.
6270 Updated calling functions.
6271 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6273 * src/roff/troff/env.cc (environment::set_font): Ditto.
6275 * src/preproc/pic/troff.cc (troff_output::set_fill,
6276 troff_output::reset_color: Updated.
6278 * tmac/www.tmac: Updated.
6280 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6281 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6284 * tmac/Xps.tmac: Remove some redundant code.
6286 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6287 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6288 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6291 2002-04-13 Bernd Warken <bwarken@mayn.de>
6293 * src/include/printer.h, src/libs/libdriver/printer.cc
6294 (printer::change_fill_color): New member function.
6295 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6297 2002-04-12 Werner LEMBERG <wl@gnu.org>
6299 * doc/groff.texinfo: Completed pass on gtroff reference.
6301 2002-04-11 Werner LEMBERG <wl@gnu.org>
6303 * doc/groff.texinfo: More fixes.
6305 2002-04-11 Bernd Warken <bwarken@mayn.de>
6307 * src/include/color.h: Decorate with `const'.
6310 * src/libs/libgroff.color.cc: Decorate with `const'.
6312 (color::color): Initialize members.
6313 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6314 command according to the documentation.
6316 * man/groff_out.man: Updated.
6319 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6321 * src/preproc/html/pre-html.cc (write_start_image): Remove
6323 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6325 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6326 \C'hy' caused an assertion failure.
6328 * src/roff/troff/env.cc (environment::environment): Initialize
6330 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6332 2002-04-10 Werner LEMBERG <wl@gnu.org>
6334 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6335 Document pvs request and .pvs register.
6337 2002-04-09 Werner LEMBERG <wl@gnu.org>
6339 * doc/groff.texinfo: Improve and fix documentation of diversions
6342 2002-04-08 Werner LEMBERG <wl@gnu.org>
6344 * doc/groff.texinfo: Fix documentation of drawing functions.
6347 2002-04-07 Werner LEMBERG <wl@gnu.org>
6349 * doc/groff.texinfo: Better documentation of double quotes as
6353 2002-04-06 Werner LEMBERG <wl@gnu.org>
6355 * man/groff_font.man: Document names of special characters better.
6356 * doc/groff.texinfo: Minor improvements.
6358 * tmac/lbp.tmac: Load latin1.tmac.
6359 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6361 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6363 2002-04-05 Werner LEMBERG <wl@gnu.org>
6365 * tmac/tty.tmac: Don't use shc request.
6366 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6369 * man/groff_diff.man: Minor fixes.
6371 * font/devlbp/*: Remove all `charXXX' entities.
6373 * src/libs/libgroff/font.cc (font::~font): Deallocate
6374 `special_device_coding'.
6375 (font::load): Use `new' for allocating `special_device_coding'.
6376 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6377 Removed unused member.
6379 2002-04-05 Werner LEMBERG <wl@gnu.org>
6381 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6382 (resource_manager::do_begin_binary,
6383 resource_manager::do_begin_data): Use it.
6385 * doc/texinfo.tex: Updated to version 4.2.
6387 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6388 (token::zero_width_break): New inline function.
6389 * src/roff/troff/input.cc (token::next): Use it.
6390 (token::description): Updated.
6391 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6392 (token::add_to_node_list, token::process): Use it.
6393 * NEWS, doc/groff.texinfo: Updated.
6395 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6396 * tmac/tty.tmac: Add missing backslash.
6398 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6400 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6401 `.ps' register instead of `.s' to handle fractional point sizes.
6402 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6403 limit_box::output): Ditto.
6404 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6405 size_box::output): Ditto.
6406 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6407 over_box::output): Ditto.
6408 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6409 script_box::output): Ditto.
6410 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6411 sqrt_box::output): Ditto.
6413 2002-04-03 Michael Selway <mas@ssl.co.uk>
6415 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6418 2002-04-03 Werner LEMBERG <wl@gnu.org>
6420 * doc/homepage.ms: Reduce title size.
6421 * doc/groff.texinfo: Fix documentation of .t register.
6422 Fix handling of colon.
6425 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6426 only if page length is positive to avoid a loop.
6428 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6431 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6433 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6434 s/__CYGWIN32__/__CYGWIN__/.
6436 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6438 * doc/gnu.xpm: New image contributed by Emily Mulley.
6439 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6440 (homepage.html): Be dependent on gnu.eps.
6441 * doc/homepage.ms: Updated to new image.
6443 * src/devices/grohtml/post-html.cc (html_printer): New member
6445 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6446 (html_printer::sbuf_continuation): Use it.
6448 2002-03-28 Werner LEMBERG <wl@gnu.org>
6450 * src/libs/libgroff/getopt.c: Updated to latest version.
6452 * tmac/README: More on hyphen.tex license.
6454 2002-03-26 Larry Kollar <kollar@alltel.net>
6456 * doc/groff.texinfo: Add documentation of most missing requests.
6458 2002-03-25 Werner LEMBERG <wl@gnu.org>
6460 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6461 of `+-', `mu', and `di', respectively.
6463 * font/devascii/R.proto, font/devutf8/R.proto,
6464 font/devlatin1/R.proto, font/devhtml/R.proto,
6465 font/devcp1047/R.proto, font/devlpb/*: Add them.
6466 * font/devps/generate/textmap: Ditto.
6467 * font/devps/*: Regenerated.
6468 * font/devlj4/generate/text.map: Add them.
6469 * font/devlj4/*: Regenerated.
6470 * font/devdvi/generate/tc.map: Use them.
6471 * font/devdvi/generate/texsy.map: Add them.
6472 * font/devdvi/*: Regenerated.
6473 * font/devX*/*: Regenerated.
6475 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6476 tmac/tty-char.tmac: Updated.
6478 * NEWS, man/groff_char.man: Updated.
6480 2002-03-24 Werner LEMBERG <wl@gnu.org>
6482 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6483 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6484 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6485 we use `.fchar' in dvi.tmac.
6486 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6487 * tmac/Xps.tmac: Simplify some char definitions.
6488 Add definition for \[f/].
6489 * man/groff_char.man: Updated for new X.tmac.
6491 * tmac/README: New file.
6493 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6495 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6496 internal .y.o rule took precendence over the .y.cc rule, compiling
6497 the yacc files with gcc instead of g++.
6499 2002-03-23 Werner LEMBERG <wl@gnu.org>
6501 * tmac/dvi.tmac: Add replacement font for `CB'.
6503 * tmac/doc.tmac: s/request/macro/ in messages.
6504 (doc-generic-macro): Improve error message.
6505 * tmac/groff_mdoc.man: Minor improvements.
6507 2002-03-22 Werner LEMBERG <wl@gnu.org>
6509 * doc/groff.texinfo: Document possible conflict between `tr' and
6512 2002-03-21 Werner LEMBERG <wl@gnu.org>
6514 Improve handling of hyphenation patterns. It is now possible to
6515 use most of TeX's pattern files unmodified. To make the process
6516 more flexible, a new request `hpfcode' has been added which
6517 provides a character code mapping for the `hpf' request. See
6518 comment before hpf_getc() for more details.
6520 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6522 (read_patterns_file): Additional parameter for exception dictionary.
6523 Extended to recognize \pattern, \hyphenation, and \endinput.
6524 (do_hyphenation_patterns_file): Updated.
6525 * src/roff/troff/env.h (hpf_code_table): New extern.
6527 * src/roff/troff/input.cc (hpf_code_table): New array.
6528 (init_hpf_code_table, hyphenation_patterns_file_code): New
6530 (hyphenation_code): Handle translation from `trin' correctly.
6531 (main, init_input_requests): Updated.
6532 (charinfo::set_translation): Handle hyphenation code also.
6534 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6537 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6538 char' is used for offsets in hyphenation exceptions.
6540 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6542 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6544 2002-03-20 Larry Kollar <kollar@alltel.net>
6546 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6549 2002-03-18 Werner LEMBERG <wl@gnu.org>
6551 * tmac/html.tmac: Fix serious typo.
6553 2002-03-17 Larry Kollar <kollar@alltel.net>
6555 * doc/groff.texinfo: Add documentation for `writec' request.
6557 2002-03-17 Werner LEMBERG <wl@gnu.org>
6559 Added request `hpfa' to append hyphenation patterns.
6561 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6563 (hyphenation_patterns_file): Renamed to...
6564 (do_hyphenation_patterns_file): This.
6565 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6567 (init_hyphen_requests): Updated.
6568 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6570 2002-03-16 Werner LEMBERG <wl@gnu.org>
6572 Added request `writec' in analogy to `tmc'.
6574 * src/roff/troff/input.cc (write_request): Renamed to...
6575 (do_write_request): This.
6576 Added one parameter.
6577 (write_request, write_request_continue): New functions.
6578 (init_input_requests): Updated.
6579 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6581 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6583 * NEWS: Document it.
6585 2002-03-15 Werner LEMBERG <wl@gnu.org>
6587 * man/groff.man: Add writem request.
6589 Add request `trin' (translate input) to make `.asciify' work
6590 correctly. This is necessary since `charXXX' entity names are no
6591 longer hardcoded in font definition files.
6593 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6594 `translate_input' members.
6595 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6596 charinfo::set_translation_input): New methods.
6597 (charinfo::set_translation): Add third argument.
6598 * src/roff/troff/input.cc (charinfo:set_translation): Set
6600 (do_translate): Add second argument.
6601 (translate_input): New function.
6602 (init_input_requests): Updated.
6603 * src/roff/troff/node.cc (glyph_node::asciify,
6604 composite_node::asciify): Use `get_asciify_code'.
6606 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6608 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6610 2002-03-14 Larry Kollar <kollar@alltel.net>
6612 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6614 2002-03-14 Werner LEMBERG <wl@gnu.org>
6616 Add a new request `sizes' similar to the `sizes' command in DESC
6619 * src/roff/troff/env.cc (override_sizes): New function.
6620 (init_env_requests): Use it.
6621 * src/roff/troff/token.h: Export `read_string'.
6622 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6624 2002-03-12 Werner LEMBERG <wl@gnu.org>
6626 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6628 2002-03-10 Werner LEMBERG <wl@gnu.org>
6630 * tmac/pspic.tmac: Add support for -Tdvi.
6631 * tmac/dvi.tmac: Include pspic.tmac.
6632 * src/devices/grodvi/grodvi.man: Document it.
6635 * font/devlj4/generate/Makefile: Fix URL of metric files.
6637 2002-03-09 Werner LEMBERG <wl@gnu.org>
6639 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6641 2002-03-09 Larry Kollar <kollar@alltel.net>
6643 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6645 2002-03-08 Werner LEMBERG <wl@gnu.org>
6647 * doc/groff.texinfo: Fixes for texinfo 4.1.
6649 2002-03-07 Werner LEMBERG <wl@gnu.org>
6651 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6653 Handle CYGWIN properly.
6655 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6657 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6658 * tmac/lbp.tmac: Add some font translations.
6660 2002-03-02 Werner LEMBERG <wl@gnu.org>
6662 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6663 font/devhtml/R.proto: Remove `charXXX' entries.
6664 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6667 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6668 * font/devlj4/*: Regenerated all font definition files.
6669 * tmac/lj4.tmac: Load latin1.tmac.
6671 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6672 from 2000-06-17: LJ4 metric files are *not* text files.
6674 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6675 register to test for EBCDIC.
6677 2002-03-01 Werner LEMBERG <wl@gnu.org>
6679 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6680 files (as grops already does).
6681 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6683 * src/devices/grops/grops.man: Document comment lines in encoding
6686 * tmac/cp1047.tmac: New file.
6687 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6688 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6689 * tmac/Makefile.sub (NORMALFILES): Updated.
6691 * tmac/ec.tmac: Don't load latin1.tmac again.
6693 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6694 font/devps/generate/dingbats.map,
6695 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6696 font/devps/generate/Makefile (symbolmap): Add header comment.
6697 * font/devps/generate/textmap: Ditto.
6698 Remove `charXXX' entries.
6699 * font/devps/symbolmap: Regenerated.
6700 * font/devps/*: Regenerated all font definition files.
6702 2002-02-28 Werner LEMBERG <wl@gnu.org>
6704 Add color support to grodvi (for drawing colors are currently
6705 translated to gray values).
6707 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6708 (dvi_printer): Add `cur_color' member.
6709 (dvi_printer::set_color): New function.
6710 (draw_dvi_printer): Remove `fill'.
6711 (draw_dvi_printer::fill_next): Pass environment as parameter.
6712 Update code for new color support translated to gray.
6713 (dvi_printer::set_char): Updated.
6714 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6715 changes crossing the page border.
6716 (dvi_printer::draw): Updated.
6717 Remove cases `f' and `F'.
6718 * tmac/dvi.tmac: Add color definitions.
6719 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6721 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6724 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6725 versions of autoconf.
6726 * configure: Updated.
6728 * doc/homepage.ms: Use `.blm'.
6729 * tmac/www.tmac (www-depth): New auxiliary variable.
6730 (www-pop-level): Don't issue HTML tag.
6731 (ULS, ULE, LI): Use absolute indentation.
6733 * src/devices/grops/ps.cc (ps_printer::begin_page,
6734 ps_printer::end_page): Switch forth and back to default color while
6735 starting a new page.
6737 2002-02-27 Werner LEMBERG <wl@gnu.org>
6739 Add EC and TC fonts to devdvi.
6741 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6742 * font/devdvi/generate/cork.map: Renamed to...
6743 * font/devdvi/generate/ec.map: This.
6744 Remove entry for `aq'.
6745 * font/devdvi/generate/tc.map: New file.
6746 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6749 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6750 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6751 * tmac/ec.tmac: New file.
6752 * tmac/Makefile.sub (NORMALFILES): Updated.
6753 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6754 * man/groff_char.man: Check `ECFONTS' register.
6756 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6758 2002-02-26 Werner LEMBERG <wl@gnu.org>
6760 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6761 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6762 * font/devdvi/*: Updated.
6763 * tmac/dvi.tmac: Formatting.
6765 Add font `HBI' for the dvi output.
6766 Add support for font families `T' and `H'.
6768 * font/devdvi/HBI: New file.
6769 * font/devdvi/B: Renamed to ...
6770 * font/devdvi/TB: This.
6771 * font/devdvi/BI: Renamed to ...
6772 * font/devdvi/TBI: This.
6773 * font/devdvi/I: Renamed to ...
6774 * font/devdvi/TI: This.
6775 * font/devdvi/R: Renamed to ...
6776 * font/devdvi/TR: This.
6777 * font/devdvi/H: Renamed to ...
6778 * font/devdvi/HR: This.
6779 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6780 * font/devdvi/generate/Makefile (HBI): New rule.
6782 (R, I, B, BI, H): Renamed to ...
6783 (TR, TI, TB, TBI, HR): This, respectively.
6785 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6786 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6787 Add `styles' and `family' keywords.
6788 * tmac/dvi.tmac: Alias `H' to `HR'.
6789 Add some fspecial requests for italic fonts.
6790 Add TR and TI as special.
6791 Add support for `_' with font CWI.
6793 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6794 operator `:'. Until now, the expression `0:1' would return 2
6797 2002-02-25 Werner LEMBERG <wl@gnu.org>
6799 * man/groff_char.man: Added some missing PS glyph names (from the
6801 * font/devps/generate/textmap, font/devps/symbolmap: Add
6804 * doc/groff.texinfo: Minor additions and fixes.
6805 * man/groff_diff.man: Remove documentation of fp request. This
6806 is already covered in the original troff manual.
6807 Updated to be consistent with other doc files.
6810 2002-02-24 Werner LEMBERG <wl@gnu.org>
6812 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6814 Define new variable OTHERDEVDIRS (containing `font/devlj4
6815 font/devlbp' if not EBCDIC).
6816 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6817 (OTHERDEVDIRS): New variable.
6818 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6819 * configure: Regenerated.
6821 * NEWS, src/devices/grotty/grotty.man: Updated.
6823 2002-02-23 Werner LEMBERG <wl@gnu.org>
6825 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6826 get_line_arg): Honour input level.
6828 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6830 * font/*/*: Implement it in all font files.
6831 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6832 * font/devps/symbolmap: Updated.
6833 * font/devlj4/generate/text.map: Updated.
6834 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6835 * font/devdvi/generate/texmi.map: Updated.
6837 * font/devutf8/R.proto: Remove all `charXXX' entries.
6838 * font/devutf8/NOTES: Updated.
6840 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6843 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6845 * NEWS, man/groff_char.man: Updated.
6847 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6849 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6851 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6853 * src/roff/grog/grog.pl: Fix computation of $refer.
6855 2002-02-19 Werner LEMBERG <wl@gnu.org>
6857 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6858 `snprintf' and `vsnprintf'.
6860 * src/include/htmlindicate.h: Renamed to...
6861 * src/include/htmlhint.h: This.
6862 * src/include/Makefile.sub: Updated.
6863 * src/preproc/eqn/main.cc: Updated.
6865 2002-02-18 Werner LEMBERG <wl@gnu.org>
6867 * man/roff.man, man/groff_out.man, man/groff.man,
6868 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6869 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6871 * win32-diffs: Updated.
6873 2002-02-17 Werner LEMBERG <wl@gnu.org>
6875 * doc/Makefile (clean): Add *.eps.
6876 (MEMACROS): Removed.
6877 (TFLAG): New variable.
6880 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6882 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6884 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6886 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6888 * src/roff/troff/troff.man: Fix order of parameter description.
6892 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6894 Simplify image handling for grohtml.
6897 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6899 (html_text::dump_stack): Don't emit newline while debugging.
6900 (html_text::do_push) [DEBUGGING]: Print more info.
6901 (html_text::check_emit_text): Fix handling of <p>.
6902 * src/devices/grohtml/html.h: Updated.
6903 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6904 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6905 send its data to stderr also.
6907 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6908 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6909 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6911 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6913 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6914 is_inline_image): Removed.
6915 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6916 (graphic_start, graphic_end): Removed.
6917 * src/include/htmlindicate.h: Updated.
6918 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6919 (macroset_template): New global variable.
6920 (makeFileName): Use `macroset_template'.
6921 (write_end_image): Don't take a parameter.
6923 (write_start_image: Don't emit newline.
6924 (char_buffer::write_upto_newline): Updated.
6925 (char_buffer::skip_to_newline): Renamed to ...
6926 (char_buffer::skip_until_newline): This.
6928 (char_buffer::write_file_troff, char_buffer::write_file_html):
6930 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6931 (removeAllPages): Remove `DEBUGGING' conditionals.
6932 (addRegDef, dump_args): New functions.
6933 (char_buffer::do_html, char_buffer::do_image): Handle
6934 `www-image-template' command line variable.
6935 Add more debugging code.
6936 (addps4html): Removed.
6937 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6939 * src/preproc/eqn/main.cc: Include `ctype.h'.
6940 (suppress_html): Removed.
6942 (inline_equation): Use `html_begin_suppress' and
6943 `html_end_suppress'.
6944 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6945 (troff_output::start_picture, troff_output::finish_picture):
6947 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6948 (process_input_file): Updated.
6950 * src/roff/troff/div.cc (page_number): Set page number only if the
6951 `ps4html' register isn't defined.
6952 * src/roff/troff/input.cc (image_no): New external variable.
6953 (do_suppress): Use it.
6954 * src/roff/troff/node.h (suppress_node::image_id): New member.
6955 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6956 (suppress_node::suppress_node): Initialize `image_id' member.
6957 (suppress_node::same): Handle `image_id' also.
6958 (suppress_node::copy): Updated.
6959 (last_image_id): New global variable.
6960 (suppress_node::tprint): Use it.
6962 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6964 * tmac/pspic.mac (PSPIC): Fix html support.
6965 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6966 * tmac/www.tmac (www-image-template): Set up.
6967 (HTMLINDEX): Renamed to...
6969 (BODYCOLOR): Renamed to...
6971 (BACKGROUND): Renamed to...
6973 (URL): Change order of parameters for consistency.
6974 (MAILTO): Renamed to...
6976 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6977 (IMG, PIMG, MPIMG): This.
6978 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6980 (LINKS): Renamed to...
6982 (LINE): Renamed to...
6984 (NO-AUTO-RULE): Renamed to...
6986 (HTML-TL): Renamed to...
6988 (UL-BEGIN, UL-END): Renamed to...
6990 (DROPCAP): Renamed to...
6992 (TS, TE, EQ, EN): Provide default definitions.
6993 (www-make-unique-name): Updated.
6994 (HTML-IMAGE-INLINE): Fix typo.
6995 * tmac/groff_www.man: Updated.
6997 * doc/Makefile (homepage.html): Add option -r to grohtml.
6998 Use shortened image name.
6999 * doc/groff.texinfo: Updated info on grohtml strings and macros.
7000 * doc/homepage.ms: Updated and extended.
7002 2002-02-14 Werner LEMBERG <wl@gnu.org>
7004 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7006 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7007 SGR_BACK_DEFAULT_COLOR): Replaced with ...
7008 (tty_printer::put_color): Use it.
7009 (ttr_printer::end_page): Simplify.
7011 2002-02-13 Werner LEMBERG <wl@gnu.org>
7013 * tmac/groff_tmac.man: Moved to...
7014 * man/groff_tmac.man: This place.
7015 * tmac/Makefile.sub, man/Makefile.sub: Updated.
7017 2002-02-12 Werner LEMBERG <wl@gnu.org>
7019 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7020 $(COMPILE.c) to not include groff's assert.h.
7022 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7024 * NEWS, src/drivers/grotty/grotty.man: Document it.
7026 2002-02-11 Werner LEMBERG <wl@gnu.org>
7028 * src/libs/snprintf/snprintf.c: Updated to latest version
7031 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
7032 test whether there is `.]' also.
7033 Don't check for spaces after `.['.
7034 * src/roff/grog/grog.sh: Do the same.
7036 2002-02-10 Werner LEMBERG <wl@gnu.org>
7040 * src/libs/libgroff/illegal.cc: Renamed to ...
7041 * src/libs/libgroff/invalid.cc: This.
7042 (illegal_char_table): Renamed to ...
7043 (invalid_char_table): This.
7044 * src/libs/libgroff/Makefile.sub: Updated.
7045 * win32-diffs: Updated.
7047 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7048 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7049 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7050 font::load), src/preproc/eqn/main.cc (read_line, main),
7051 src/preproc/eqn/lex.cc (file_input::read_line),
7052 src/preproc/pic/lex.cc (file_input::read_line,
7053 simple_file_input::get, simple_file_input::peek),
7054 src/preproc/pic/main.cc (top_input::get, top_input::peek),
7055 src/preproc/pic/pic.man, src/preproc/refer/main.cc
7056 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7057 do_bib), src/preproc/tbl/main.cc (table_input::get),
7058 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7059 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7060 do_zero_width, read_request, encode_char, ps_get_line,
7061 transparent_file, get_char_for_escape_name, transparent_translate,
7062 asciify, input_char_description, read_string, set_string),
7063 src/roff/troff/env.cc (environment::add_html_tag),
7064 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7066 * src/include/lib.h: Updated.
7068 * src/preproc/eqn/eqn.cc: Removed.
7072 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7074 2002-02-09 Werner LEMBERG <wl@gnu.org>
7076 * doc/gnu.xpm: New image.
7077 * doc/Makefile (DOCS): Add homepage.ps.
7078 Add rules for converting xpm->png and xpm->eps.
7079 Use `gnu.{xpm,eps}' as image names.
7080 * doc/homepage.ms: Updated.
7082 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
7084 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7085 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7086 Remove calls to `B1' and `B2'
7087 (PNG-IMAGE): New macro for inclusion of images in PNG format.
7088 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7089 auxiliary variables for MARGIN-PNG-IMAGE.
7090 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7091 auxiliary macros for MARGIN-PNG-IMAGE.
7092 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7094 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7095 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7096 (DROPCAP): New macro to produce dropcap characters.
7097 (www-do-image): Renamed back to...
7098 (HTML-DO-IMAGE): This.
7099 Updated all callers.
7101 * doc/Makefile (gnubw.eps): Updated.
7102 * doc/homepage.ms: Updated.
7104 2002-02-08 Werner LEMBERG <wl@gnu.org>
7106 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7107 Added `linethick' to table in section `Style Variables'.
7109 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
7111 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7113 2002-02-07 Werner LEMBERG <wl@gnu.org>
7115 Adding options -C (compatibility mode) and -c (grotty's old output
7118 * src/roff/nroff/nroff.sh: Implement it.
7120 * NEWS, src/roff/nroff/nroff.man: Updated.
7122 * PROBLEMS: Document bison 1.32 bug.
7124 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7126 * src/roff/troff/node.cc (make_tfont): Define it earlier.
7127 * src/roff/troff/div.h: Add prototype for `end_diversions'.
7128 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7129 * src/roff/troff/env.h: Add prototype for `title'.
7131 Adding EBCDIC support to grotty.
7133 * src/devices/grotty/tty.cc (CSI): New macro.
7134 (SGR_*, tty_printer::put_color): Use it.
7136 2002-02-06 Werner LEMBERG <wl@gnu.org>
7138 Implementing color support in grotty. The new switch -c activates
7139 the old drawing scheme, disabling color at the same time. The new
7140 switch `-i' selects italic instead of underlining (SGR only).
7142 * src/devices/grotty/tty.cc (putstring): New define instead of
7143 `fputs'. Updated all callers.
7144 (old_drawing_scheme): New global variable.
7145 (COLOR_CHANGE): New enum value.
7146 (SGR_*): New defines containing color handling escape sequences.
7147 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7148 (glyph): New members `back_color_idx' and `fore_color_idx'.
7149 (glyph::order): Add COLOR_CHANGE.
7150 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7151 `is_underline', `is_bold', `cu_flag', `tty_colors'.
7152 New methods `make_underline', `make_bold', `color_to_idx',
7153 `change_color', `put_color'.
7154 (cu_flag): Moved into `tty_printer' class.
7155 (tty_printer::tty_printer): Initialize colors.
7156 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7157 tty_printer::draw, tty_printer::end_page): Handle colors also.
7158 (main): Add options `-c' and `-i'.
7160 * NEWS, src/devices/grotty/grotty.man: Updated.
7162 * src/include/errarg.h (errarg): Add support for `unsigned int'.
7163 * src/libs/libgroff/errarg.c: Implement it.
7165 * src/include/printer.h (printer): Add `change_color' method
7166 (currently used by grotty only).
7167 * src/libs/libdriver/printer.cc: Implement it.
7168 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7169 call to `pr->change_color'.
7171 * src/roff/troff/node.cc (troff_output_file::fill_color,
7172 troff_output_file::glyph_color): Call `do_motion'.
7174 * tmac/tty.tmac: Add color definitions.
7176 * src/roff/groff/groff.man: Minor fixes.
7178 2002-02-05 Bernd Warken <bwarken@mayn.de>
7180 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7181 it. This is a preparation for future changes.
7183 2002-02-05 Werner LEMBERG <wl@gnu.org>
7185 * src/roff/troff/input.cc (process_input_stack): Fix the case
7186 where leading spaces are followed by \f or \s; previously, an
7187 incorrect space width has been used.
7189 * doc/roff.man (quoted_char): Fix argument.
7190 (comment): Define string.
7192 2002-02-04 Larry Kollar <kollar@alltel.net>
7194 * doc/groff.texinfo: More fixes.
7196 2002-02-04 Werner LEMBERG <wl@gnu.org>
7198 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7199 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7200 `restore_compatibility' before `output_string' -- the LINE_STRING
7201 register now already contains proper switches from and to
7204 * man/groff_char.man: Add Euro symbol.
7205 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7206 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7207 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7210 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7212 (.texinfo.html): Add support for texinfo->html.
7214 2002-02-03 Werner LEMBERG <wl@gnu.org>
7216 Added three new requests `ds1', `as1', and `ami'. The former two
7217 are equivalent to `ds' and `as' with the difference that
7218 compatibility mode is saved on entry, switched off during string
7219 expansion, and restored on exit. The latter is the pendant to `dei'
7222 (do_define_string): Use `define_mode' and `calling mode'.
7223 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7224 end of string, respectively.
7225 (define_string, append_string): Use `calling_mode'.
7226 (define_nocomp_string, append_nocomp_string,
7227 define_string_indirect): New functions.
7228 (init_input_requests): Updated.
7229 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7231 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7232 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7233 mm macro package accesses this string register directly.
7234 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7236 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7239 2002-02-02 Larry Kollar <kollar@alltel.net>
7241 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7243 2002-01-31 Werner LEMBERG <wl@gnu.org>
7245 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7247 2002-01-31 Bernd Warken <bwarken@mayn.de>
7249 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7250 * man/groff_out.man: Revised and updated.
7252 2002-01-30 Bernd Warken <bwarken@mayn.de>
7254 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7255 out the unused `{' and `}' commands. Undefined by default.
7256 (IntArray): Make `data' private.
7257 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7258 new methods instead.
7259 (skip_line_D, skip_to_end_of_line): New functions.
7260 (get_D_fixed_args): Use `skip_line_D'.
7261 Changed to handle dummy odd arguments by ...
7262 (get_D_fixed_args_odd_dummy): This new function.
7263 (get_D_variable_args): Split some code into ...
7264 (get_possibly_integer_args): This new function.
7265 (send_draw): Use more `const'.
7266 (delete_current_env): New function.
7267 (position_to_end_of_args): Use `size_t'.
7269 (send_draw): Updated.
7270 (parse_D_command): Handle `c', `C', and `t' better.
7274 2002-01-29 Werner LEMBERG <wl@gnu.org>
7277 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7278 @Def...ListEnd which replaces @Def...x. This is necessary to get
7279 proper HTML output -- see the comment in the file for more
7283 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7285 Fixes to make color changes of 2002-01-21 work with grohtml.
7287 * src/devices/grohtml/post-html.cc (style): Updated.
7288 (html_printer): Remove unused methods.
7289 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7290 html_printer::special): Updated.
7291 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7292 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7293 Added some debugging code.
7294 (html_text::start_tag): Updated.
7295 (html_text::do_push): New method.
7296 (html_text::push_para): Call it.
7297 Add method for handling color.
7298 (html_text::do_color): Updated.
7299 (html_text::shutdown): Handle color.
7300 * src/devices/grohtml/html-text.h (tag_definition): New member
7304 2002-01-28 Werner LEMBERG <wl@gnu.org>
7306 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7308 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7310 Add two switches -a and -g to control the antialiasing bits for
7311 text and graphics, respectively.
7313 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7315 * src/devices/grohtml/grohtml.man: Document them.
7316 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7318 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7319 (setupAntiAlias): New function.
7320 (createAllPages): Updated.
7321 (scanArguments): Handle `-a' and `-g'.
7322 (main): Call `setupAntiAlias'.
7325 2002-01-27 Werner LEMBERG <wl@gnu.org>
7327 * doc/groff.texinfo (Def*): Call index function after deffn.
7329 * tmac/html.tmac: Call `nroff' request.
7331 2002-01-26 Larry Kollar <kollar@alltel.net>
7333 * tmac/groff_ms.man: Add some omissions.
7335 2002-01-25 Larry Kollar <kollar@alltel.net>
7337 * tmac/groff_ms.man: Typographical improvements.
7339 2002-01-25 Werner LEMBERG <wl@gnu.org>
7341 * doc/groff.texinfo: Updated version and copyright.
7342 * src/devices/grops/grops.man: Updated.
7344 * tmac/groff_tmac.man: Fix `ig' macro.
7346 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7348 Use `.ne' unconditionally everywhere.
7349 (TS): Only insert some vertical space. Doing a page break is no
7350 longer necessary due to the redefinition of the `ne' request.
7352 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7353 warning for unknown subcommands but parse and pass them to the
7356 2002-01-24 Werner LEMBERG <wl@gnu.org>
7358 * tmac/groff_www.man, NEWS: Fix typos.
7360 2002-01-21 Werner LEMBERG <wl@gnu.org>
7362 Complete revision of color support:
7364 Adapt programs to the new libdriver/input.cc.
7366 Color spaces are no longer converted to RGB but transferred as-is
7367 in the troff intermediate output format.
7369 Handle default color gracefully. troff now supports a `default'
7370 color (which can't be changed).
7372 grops will now use the proper color space functions if available.
7376 Note that currently grohtml doesn't handle colors properly. This
7379 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7380 (ui_to_a): New function.
7381 * src/include/lib.h: Updated.
7383 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7384 (color): Simplified; removed all `double' members and methods.
7385 A new array `components' now holds the color parameters.
7386 (color::is_default, color::get_components): New methods.
7387 (color::operator==, color:operator!=): New.
7388 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7389 to make access to the `components' array more comprehensible.
7390 * src/libs/libgroff/color.cc: Implement new color support.
7391 (atoh): Small fixes.
7392 (color::read_encoding): Simplified for new troff intermediate color
7394 (default_color): New global variable.
7396 * src/roff/troff/input.cc (default_symbol): New global variable.
7397 (lookup_color): Use it.
7398 (default_black): Removed.
7399 (do_glyph_color, do_fill_color): Simplified.
7400 (define_color): Handle default color.
7402 (do_if_request): Handle default color.
7403 * src/roff/troff/env.cc (environment::environment): Initialize
7404 colors with `default_color'.
7405 * src/roff/troff/node.cc (troff_output_file::put): Add method
7407 (troff_output_file::hex): Removed.
7408 (troff_output_file::fill_color, troff_output_file::glyph_color):
7409 Updated to include/color.h and libdriver/input.cc.
7411 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7412 fill color properly (identically to the outline color). \D'f...'
7413 doesn't work any more.
7414 All function calls to it updated.
7416 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7418 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7421 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7422 (ps_printer::sbuf_color): Make a real member instead of pointer.
7423 (ps_printer::fill_color, ps_printer::output_color): Removed.
7424 (ps_printer::ps_printer): Updated.
7425 (ps_printer::set_char): Ditto.
7426 (ps_printer::set_color): Use various color schemes.
7427 Use `put_color' method.
7428 (ps_printer::flush_sbuf): Don't set color.
7429 (ps_printer::fill_path): Take `environment' as parameter.
7430 Simplify color handling.
7431 (ps_printer::set_line_thickness): Renamed to ...
7432 (ps_printer::set_line_thickness_and_color): This (and updated).
7433 (ps_printer::set_color): Change second parameter from `complete'
7434 to `fill' which better describes what it does.
7435 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7436 and text in the right order.
7438 Remove branches for `f' and `F'; this is handled by
7440 * src/devices/grops/ps.h: Updated.
7441 * font/devps/prologue (FL): Redefined.
7442 ({F,C}r,k,g: New color functions (with and without filling).
7444 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7445 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7446 doc/groff.texinfo, NEWS: Updated.
7448 2002-01-20 Bernd Warken <bwarken@mayn.de>
7450 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7451 in this file for what has been changed.
7453 2002-01-19 Werner LEMBERG <wl@gnu.org>
7455 * test-groff: Fix GROFF_FONT_PATH.
7456 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7457 is read before .TH or .Dd is parsed.
7459 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7461 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7462 quadrant boundaries.
7464 2002-01-18 Werner LEMBERG <wl@gnu.org>
7466 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7469 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7471 * tmac/doc.common: Initialize %I register for the %I macro to
7472 avoid (harmless) warning.
7473 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7474 when in the SYNOPSIS section.
7476 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7478 * src/preproc/pic/lex.cc (get_token): Fix typo.
7480 2002-01-17 Werner LEMBERG <wl@gnu.org>
7482 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7484 2002-01-17 Larry Kollar <kollar@alltel.net>
7486 * tmac/groff_ms.man: Completely rewritten.
7488 2002-01-16 Werner LEMBERG <wl@gnu.org>
7490 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7492 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7494 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7496 (ps_printer::draw): Ditto.
7498 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7500 * tmac/groff_mdoc.man: Minor fixes.
7502 2002-01-13 Werner LEMBERG <wl@gnu.org>
7504 * man/groff_out.man: Some fixes.
7506 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7508 * doc/pic.ms: Fix typos.
7510 2002-01-12 Werner LEMBERG <wl@gnu.org>
7512 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7514 2002-01-10 Werner LEMBERG <wl@gnu.org>
7516 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7520 2002-01-09 Bernd Warken <bwarken@mayn.de>
7522 * man/groff_out.man: Revised.
7523 * man/roff.man: Minor fixes.
7524 * src/roff/troff/troff.man: Some reordering.
7526 2002-01-09 Werner LEMBERG <wl@gnu.org>
7528 * tmac/an-old.tmac: Add dummy macros for equation support.
7530 2002-01-07 Werner LEMBERG <wl@gnu.org>
7532 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7534 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7536 * tmac/groff_man.man: Small improvements.
7538 2002-01-07 Bernd Warken <bwarken@mayn.de>
7540 * man/groff_diff.man: Revised.
7542 2002-01-06 Werner LEMBERG <wl@gnu.org>
7544 * tmac/www.tmac: Remove extraneous backslash.
7546 2002-01-06 Bernd Warken <bwarken@mayn.de>
7548 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7550 2002-01-05 Werner LEMBERG <wl@gnu.org>
7552 Integrated groffer, contributed by Bernd Warken.
7554 * contrib/groffer/*: New.
7555 * Makefile.in, NEWS: Updated.
7557 2002-01-04 Werner LEMBERG <wl@gnu.org>
7559 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7560 registers defined in macro packages.
7561 Revising the ms part.
7563 2002-01-04 Larry Kollar <kollar@alltel.net>
7565 * doc/groff.texinfo: Add documentation for ms macros.
7567 2002-01-02 Werner LEMBERG <wl@gnu.org>
7569 First step in adding PS support for the Euro symbol. `eu' is the
7570 official Euro logo, `Eu' is a font-specific glyph variant.
7572 * font/devps/text.enc: Add `Euro' at position 9.
7573 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7574 * font/devps/symbolmap: Regenerated.
7578 2002-01-02 Bernd Warken <bwarken@mayn.de>
7580 * man/roff.man: Revised.
7582 2002-01-01 Bernd Warken <bwarken@mayn.de>
7584 * src/roff/groff/groff.man: Completely rewritten.
7586 2001-12-31 Werner LEMBERG <wl@gnu.org>
7588 * doc/Makefile: Updated.
7590 2001-12-30 Werner LEMBERG <wl@gnu.org>
7592 * tmac/www.tmac: Make all names of internal macros/registers/strings
7593 lowercase, and prepend `www-'.
7594 Other minor changes.
7595 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7597 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7599 Implement option `-b' in grohtml to set the HTML background colour.
7601 * src/devices/grohtml/post-html.cc (default_background): New global
7603 (html_printer::html_printer): Initialize `background' to
7604 `default_background'.
7605 (main): Implement option `-b'.
7607 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7609 * src/devices/grohtml/grohtml.man: Updated.
7610 * doc/Makefile (.ms.html): Use `-b'.
7611 * tmac/html.tmac: Don't set background color.
7613 Add new grohtml tag `.html-tl'.
7615 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7617 (title_desc::title_desc): Updated.
7618 (html_printer::troff_tag): Handle `.html-tl'.
7619 (html_printer::write_title): Use `with_h1'.
7620 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7621 (HTML-TL): New macro.
7623 Add support for unordered lists in HTML.
7625 * tmac/www.tmac (www-level): New auxiliary register.
7626 (www-level1, www-level2, www-level3): New auxiliary strings.
7627 (www-push-level, www-pop-level): New auxiliary macros
7628 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7632 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7633 (DEFAULT_VERTICAL_OFFSET): Removed.
7634 (IMAGE_BOARDER_PIXELS): Set to 0.
7635 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7636 (vertical_offset): Initialize with 0.
7637 (gsPaper): New global variable.
7638 (get_resolution): Scan for and return unsigned int.
7639 (get_papersize): New function to get paper length from devps/DESC.
7640 (determine_vertical_offset): New function.
7641 (createAllPages): Produce gray-level images and use proper page
7643 (createImage): Use `-quiet' option of pnmcrop.
7644 (addZ): Fix passing of `-Z'.
7645 (scanArguments): Fix handling of `-o'.
7646 (main): Call `determine_vertical_offset'.
7647 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7650 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7651 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7652 glyph descenders properly.
7654 * doc/homepage.ms: Include `gnubw.eps'.
7655 * doc/Makefile (gnubw.eps): New rule.
7656 (homepage.html): Depend on `gnubw.eps'.
7658 2001-12-25 Werner LEMBERG <wl@gnu.org>
7660 * src/roff/troff/input.cc (default_black): Fix return value.
7662 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7664 * tmac/doc-common (Dt): Change output of architecture strings.
7665 Do some syntax cleanup.
7666 * tmac/groff_mdoc.man: Updated.
7668 2001-12-23 Werner LEMBERG <wl@gnu.org>
7670 Adding an `itc' request (input line trap accepting \c).
7672 * src/roff/troff/env.h (environment): New member
7673 `continued_input_trap'.
7674 Make `do_input_trap' a friend function instead of `input_trap'.
7675 * src/roff/troff/env.cc (environment::environment,
7676 environment::copy): Updated.
7677 (environment::newline): Implement it.
7678 (do_input_trap): New function.
7679 (input_trap): Call `do_input_trap'.
7680 (input_trap_continued): New function.
7681 (init_env_requests): Updated.
7682 * src/roff/troff/TODO: Updated.
7684 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7687 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7689 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7691 * tmac/doc-common, tmac/doc-syms: Small updates.
7693 2001-12-22 Colin Watson <cjwatson@debian.org>
7695 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7697 2001-12-22 Bernd Warken <bwarken@mayn.de>
7699 * MANIFEST: New file.
7701 2001-12-22 Werner LEMBERG <wl@gnu.org>
7703 * src/preproc/grn/grn.man: Updated.
7705 2001-12-22 Solar Designer <solar@openwall.com>
7707 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7710 2001-12-19 Werner LEMBERG <wl@gnu.org>
7712 Implement a fallback character request `.fchar'.
7714 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7715 (is_fallback): New inline function.
7716 * src/roff/troff/input.cc (do_define_character): New function.
7717 (define_character): Call `do_define_character'.
7718 (define_fallback_character): New function.
7719 (init_input_requests): Add `fchar'.
7720 (charinfo::charinfo): Updated.
7721 (charinfo::set_macro): New argument to set `fallback' flag.
7722 * src/roff/troff/node.cc (make_glyph_node, make_node,
7723 node::add_char): Check `fallback' flag.
7724 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7726 2001-12-16 Werner LEMBERG <wl@gnu.org>
7728 * groff.texinfo: Document exact search algorithm for glyphs.
7730 2001-12-15 Werner LEMBERG <wl@gnu.org>
7732 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7733 the left side of $(MANPAGES) rule to make it always non-empty.
7735 2001-12-14 Werner LEMBERG <wl@gnu.org>
7737 * src/roff/troff/input.cc (default_black): Define default color
7738 `black' if not yet defined.
7740 2001-12-13 Werner LEMBERG <wl@gnu.org>
7742 Implement new string-valued register `.fn' to return the current
7743 real (internal) font name.
7745 * env.cc (environment::get_font_name_string): New function.
7746 (init_env_requests): Add `.fn' register.
7747 * env.h (environment): Updated.
7748 * node.cc (font_info): Make `get_font_name' a friend.
7749 (get_font_name): New function.
7752 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7754 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7756 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7758 2001-12-12 Werner LEMBERG <wl@gnu.org>
7760 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7762 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7764 * man/groff_diff.man: Adding documentation for \O.
7766 2001-12-10 Werner LEMBERG <wl@gnu.org>
7768 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7769 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7771 2001-12-09 Werner LEMBERG <wl@gnu.org>
7773 * man/roff.man: Revised.
7774 * src/roff/groff/groff.man: Replace man page references with a
7775 pointer to roff.man.
7777 2001-12-09 Bernd Warken <bwarken@mayn.de>
7779 * man/roff.man: Completely rewritten.
7781 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7783 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7785 2001-12-05 Werner LEMBERG <wl@gnu.org>
7787 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7789 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7790 order of initializers.
7793 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7795 * doc/groff.texinfo: Fix documentation of \O.
7797 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7798 html_text::do_table, html_text::do_emittext, html_text::do_para):
7799 Use `const' for first argument.
7800 (html_text::do_table): Use cast.
7801 * src/devices/grohtml/html-text.h: Updated.
7802 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7803 method for `const string &s'.
7804 * src/devices/grohtml/html.h: Updated.
7805 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7806 (ANCHOR_TEMPLATE): Modified.
7807 (manufacture_headings): New global variable to handle `-h' option.
7808 (is_subsection): Removed.
7809 (char_buffer::add_string): Add `const' to first argument.
7810 Protect against invalid string argument.
7811 Add method for `const string &s'.
7812 (text_glob): Completely redesigned.
7813 (page): Use `const' for strings and remove string length variable.
7814 (page::add_html): Removed.
7815 (page::add_end_encode): New member function.
7816 (to_unicode): Moved upwards.
7817 (title_desc, header_desc): Updated.
7818 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7820 (html_printer::is_bold, html_printer::make_bold): New member
7822 (html_printer::end_of_line): Updated.
7823 (generate_img_src, html_printer::do_auto_image,
7824 html_printer::do_title, html_printer::write_header,
7825 html_printer::determine_header_level, html_printer::do_heading,
7826 html_printer::do_linelength, html_printer::do_pageoffset,
7827 html_printer::do_indentation, html_printer::do_tempindent,
7828 html_printer::do_indentedparagraph, html_printer::do_break,
7829 html_printer::flush_sbuf, get_html_translation,
7830 html_printer::begin_page, html_printer::special): Rewritten to get
7831 rid of static string length limit.
7832 (html_printer::troff_tag): Added `.no-auto-rule'.
7833 (html_printer::flush_globs): Small fix.
7834 (html_printer::determine_space): Don't compute `space_width'.
7835 (html_printer::translate_to_html): Renamed to ...
7836 (html_printer::emit_html): This (with updates).
7837 (html_printer::write_header): Implement `-h' option.
7838 (html_printer::draw): Remove commented-out code. Handle `F'
7840 (html_printer::add_char_to_sbuf): Removed.
7841 (html_printer::add_to_sbuf): Rewritten.
7842 (html_printer::sbuf_continuation): Fixed.
7843 (html_printer::seen_backwards_escape, reverse,
7844 html_printer::remove_last_char_from_sbuf): Removed.
7845 (char_translate_to_html, str_translate_to_html): Removed.
7846 (html_printer::overstrike): New function member.
7847 (html_printer::set_char): Use it.
7848 (html_printer::do_body): New function member.
7849 (html_printer::~html_printer): Use it.
7850 (main): Handle `-h' option.
7852 * src/devices/grohtml/grohtml.man: Document -h switch.
7854 * src/preproc/html/pre-html.cc: Include searchpath.h
7855 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7856 (get_resolution): New function.
7857 (checkImageDir): Use `0777' permissions in mkdir()
7858 (write_start_image): Rewritten to use `\O[5...]'.
7859 (createImage, generateImages): Updated.
7860 (main): Handle `F' and `h' options.
7861 Use `get_resolution'.
7863 * src/roff/troff/input.cc (begin, end, image): Removed.
7864 (do_suppress): Take parameter.
7865 Handle modified syntax of `\O'.
7866 (token::next): Updated.
7867 (init_markup_requests): Removed.
7870 * src/roff/troff/div.h: Add declaration for begin_page().
7872 * tmac/color-html.tmac: Removed. Contents moved to...
7873 * tmac/html.tmac: Here. Set background color.
7874 * tmac/color.tmac: Removed. Contents moved to...
7875 * tmac/ps.tmac: Here.
7876 * tmac/www.tmac: Remove the title command when generating images
7878 (NO_AUTO_RULE): New macro.
7879 (HTML_DO_IMAGE): Use revised `\O' escapes.
7880 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7882 2001-12-02 Werner LEMBERG <wl@gnu.org>
7884 * tmac/groff_mdoc.man: Fix typo.
7886 2001-12-01 Colin Watson <cjwatson@debian.org>
7888 * man/roff.man: Fix typo.
7890 2001-11-29 Werner LEMBERG <wl@gnu.org>
7892 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7895 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7896 more than one argument to \D'f ...'.
7898 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7900 2001-11-28 Werner LEMBERG <wl@gnu.org>
7902 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7905 * tmac/groff_man.man: Minor cosmetic fix.
7907 2001-11-27 Werner LEMBERG <wl@gnu.org>
7909 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7910 tmac/groff_www.man: s/mwww/www/.
7912 2001-11-26 Werner LEMBERG <wl@gnu.org>
7914 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7915 * configure: Regenerated.
7916 * win32-diffs: Updated.
7918 * tmac/groff_mwww.tmac: Renamed to ...
7919 * tmac/groff_www.tmac: This.
7920 * tmac/mwww.tmac: Removed.
7921 * NEWS, tmac/Makefile.sub: Updated.
7923 2001-11-21 Werner LEMBERG <wl@gnu.org>
7925 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7926 Fix explanation of `\D' and `rt'.
7928 2001-11-20 Werner LEMBERG <wl@gnu.org>
7930 * tmac/an-old.tmac (an-header): Set header length equal to page
7932 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7936 2001-11-19 Werner LEMBERG <wl@gnu.org>
7938 * NEWS, man/Makefile.sub: Updated.
7940 2001-11-19 Bernd Warken <bwarken@mayn.de>
7942 * man/ditroff.man: New file.
7944 2001-11-17 Werner LEMBERG <wl@gnu.org>
7946 * man/groff_differences.man: Renamed to ...
7947 * man/groff_diff.man: This. Updated.
7948 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7950 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7951 * src/preproc/html/pushback.cc: This. Updated.
7952 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7953 * src/preproc/html/pushback.h: This.
7954 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7957 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7958 * src/libs/libgroff/htmlhint.cc: This.
7959 * src/libs/libgroff/Makefile.sub: Updated.
7961 * tmac/an-old.tmac (an-end): Fix page length.
7963 2001-11-16 Werner LEMBERG <wl@gnu.org>
7965 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7966 * man/Makefile.sub: Include groff_differences.man.
7967 * VERSION: Set to 1.18.
7968 * REVISION: Set to 0.
7970 2001-11-16 Bernd Warken <bwarken@mayn.de>
7972 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7973 the second dot (or ending macro name) to end a macro.
7974 * doc/groff.texinfo: Doc fix.
7976 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7978 * tmac/doc-common (doc-header): Handle very long document titles
7981 2001-11-16 Werner LEMBERG <wl@gnu.org>
7983 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7985 2001-11-15 Werner LEMBERG <wl@gnu.org>
7987 * src/roff/troff/troff.man: Revised and split into troff.man and...
7988 * man/groff_differences.man: New file.
7991 2001-11-13 Werner LEMBERG <wl@gnu.org>
7993 * tmac/an-old.tmac (TS, TE): New macros for table support.
7995 2001-11-12 Werner LEMBERG <wl@gnu.org>
7997 * src/include/lib.h: Provide a fix for emx to not include
8000 2001-10-27 Werner LEMBERG <wl@gnu.org>
8002 * src/roff/troff/input.cc (substring_macro): Fix computation of
8005 2001-10-20 Werner LEMBERG <wl@gnu.org>
8007 Undo change from 2001-08-28.
8009 * src/roff/troff/input.cc (have_input): New global variable.
8010 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8011 in compatibility mode.
8012 (process_input_stack): Use it.
8014 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
8016 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8017 being handled as end-of-sentence characters,
8019 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
8021 * src/roff/troff/input.cc (file_iterator): New members
8022 `suppress_newline_flag' and `seen_escape'.
8023 (file_iterator::next_file): Updated.
8024 (file_iterator::fill): Use it.
8025 (string_iterator): New member `suppress_newline_flag'.
8026 (string_iterator::fill): Set it.
8027 (get_color_element): Use MAX_COLOR_VAL.
8028 * src/roff/troff/env.cc (environment): Remove `need_eol'.
8029 (no_fill): Don't set `env->ignore_next_eol'.
8030 (environment::newline): Handle `eol' tag properly.
8032 (environment::add_html_tag): Set `env->ignore_next_eol'.
8034 * src/roff/troff/env.h (environment): Updated.
8036 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8038 (html_printer::outstanding_eol): New member function.
8039 (html_printer::do_title): Use new functions.
8040 (html_printer::troff_tag): Test `id_eol_ce'.
8042 2001-10-10 Werner LEMBERG <wl@gnu.org>
8044 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8045 files work with -C also.
8047 2001-10-05 Werner LEMBERG <wl@gnu.org>
8049 * doc/pic.ms: Minor fix.
8050 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8051 as a valid command line switch.
8052 * src/devices/grohtml/post-html.cc (main): Ditto.
8054 * src/devices/grohtml/grohtml.man: Updated.
8055 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8057 2001-10-04 Werner LEMBERG <wl@gnu.org>
8059 Implementing color support in troff, pic, grops, and grohtml. These
8060 changes are based on a major patch provided by Gaius Mulley
8063 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8064 definitions with both hex values and fractions.
8066 New escapes: \m and \M for drawing and background color,
8067 respectively. This corresponds to the troff output commands `m'
8070 groff and troff accept command line switch `-c' to disable color
8071 output (which is automatically disabled in compatibility mode).
8073 New scaling indicator `f' for fractions (1f = 65536u).
8075 New conditional operator `m' to test for defined colors with `if'
8078 New keywords `color' (or `colour', `colored', `coloured'), `outline'
8079 (or `outlined'), and `shaded' added to pic.
8081 * src/include/color.h: New file.
8082 * src/include/driver.h: Include it.
8083 * src/include/printer.h: Include color.h.
8084 (environment): New members `col' and `fill'.
8085 (printer): Remove `adjust_arc_center' member function.
8086 * src/include/Makefile.sub: Updated.
8088 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8090 Handle `m' and `DF' troff commands.
8091 * src/libs/libgroff/color.cc: New file.
8092 * src/libs/libgroff/Makefile.sub: Updated.
8094 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8096 (createImage): Fix computation of `y2'.
8098 (buffer::write_file_html): Remove calls to `stop'.
8100 * src/preproc/pic/common.h (common_output): New abstract function
8101 members `set_color', `reset_color', `get_last_filled', and
8102 `get_outline_color'.
8103 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8104 (object_spec): Add members `shaded' and `outlined'.
8105 * src/preproc/pic/output.h (output): `command' is now abstract.
8106 New function members `set_color', `reset_color', `get_last_filled',
8107 and `get_outline_color'.
8108 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8109 `outline[d]', and `shaded'.
8110 * src/preproc/pic/object.cc (output::command): Removed.
8111 (output::set_location): Moved to output.h.
8112 (graphic_object): Add protected members `outline_color' and
8114 Add member functions `set_outline_color', `get_outline_color', and
8116 (closed_object): Add member function `set_fill_color'.
8117 Add member `color_fill'.
8118 (graphic_object::print_text): Use `out->set_color' and
8120 (box_object::print, ellipse_object::print, circle_object::print,
8121 line_object::print, spline_object::print, arc_object::print): Ditto.
8122 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8123 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8124 `SHADED', making them `%left'.
8125 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8126 * src/preproc/pic/tex.cc (tex_output): New dummy function members
8127 `set_color', `reset_color', `get_last_filled', and
8128 `get_outline_color'.
8129 * src/preproc/pic/troff.cc (simple_output): New abstract function
8130 members `set_color', `reset_color', and `get_last_filled'.
8131 (simple_output::polygon, simple_output::circle,
8132 simple_output::ellipse): Use `get_last_filled'.
8133 (troff_output): New members `last_filled' and `last_outlined'.
8134 New function members `set_color', `reset_color', `get_last_filled',
8135 and `get_outline_color'.
8136 (troff_output::finish_picture): Use `reset_color'.
8137 (troff_output::set_fill): Test `last_filled'.
8138 * src/preproc/pic/pic.man: Updated.
8140 * src/roff/groff/groff.cc (main): Implement `-c' option.
8141 (synopsis, help): Updated.
8142 src/roff/groff/groff.man: Updated.
8144 * src/roff/troff/troff.h: Include color.h.
8145 (warning_type): Add WARN_COLOR.
8146 * src/roff/troff/env.h (environment): New members
8147 `{cur,prev}_{glyph,fill}_color'.
8148 New member functions `get_{prev_,}{glyph,fill}_color'.
8149 * src/roff/troff/env.cc: Initialize and implement them.
8150 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8151 Replace `NULL' with `0' everywhere for consistency.
8152 (lookup_color, default_black, do_glyph_color, do_fill_color,
8153 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8154 define_color): New functions.
8155 (token::next): Implement \M and \m escapes.
8156 (do_if_request): Implement `m' operator.
8158 (main): Implement `-c' option.
8159 (init_markup_requests): Add `defcolor' request.
8160 (warning_table): Add `color' warning.
8161 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8163 * src/roff/troff/node.cc (troff_output_file): New members
8164 `current_{page,glyph}color'. New member functions `put_hex',
8165 `glyph_color', and `fill_color'.
8166 (glyph_color_node::*, fill_color_node::*): Implement it.
8167 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8168 (parse_term): Add support for `f'.
8169 * src/roff/troff/troff.man: Updated.
8171 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8173 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8174 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8176 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8177 (tag_definition): Use `void *' for arg1.
8178 (html_text): New member functions `do_color' and `done_color'.
8179 Use `void *' for second parameter of `push_para' member function.
8180 New `push_para' member function with a single parameter.
8181 Use `char *' for parameter of `issue_table_begin' member funtion.
8182 New `issue_color_begin' member function.
8183 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8185 (html_text::issue_color_begin): New function.
8186 (html_text::issue_table_begin): Use `char *' for parameter.
8187 (html_text::start_tag, html_text::shutdown,
8188 html_text::check_emit_text): Updated.
8189 (html_text::push_para): Use `void *' for second parameter.
8190 Add same function with only one parameter.
8191 (html_text::do_*): Updated.
8192 (html_text::do_color, html_text::done_color): New functions.
8193 * src/devices/grohtml/post-html.cc (style): New member `col'.
8194 Mew member `style' with 6 parameters.
8195 (style::style, style::operator==): Updated.
8196 (html_printer::do_font): Use it.
8197 (html_printer::draw): Add dummy entry for `F'.
8198 (html_printer::set_char): Updated.
8199 * src/devices/grohtml/grohtml.man: Updated.
8201 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8202 trailing zeroes removed.
8203 (ps_printer): New members `sbuf_color', `fill_color', and
8205 Removed member `fill'.
8206 New member function `set_color'.
8207 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8208 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8209 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8211 * tmac/color-html.tmac, tmac/color.tmac: New files.
8212 * tmac/troffrc: Include them.
8213 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8214 * tmac/Makefile.sub: Updated.
8216 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8217 man/groff.man: Updated.
8218 * font/devps/prologue.ps: Define FC and CO functions.
8220 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8222 Fix incorrect cropping of images and incorrect handling of special
8223 characters. Fix handling of file names in \O.
8225 * src/include/geometry.h: New file.
8226 * src/libs/libgroff/geometry.cc: New file.
8227 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8229 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8231 (do_suppress): Updated.
8232 * src/roff/troff/node.cc: Include geometry.h.
8233 (troff_output_file::flush_tbuf): Fixed parameters to
8234 `check_output_limits'.
8235 (troff_output_file::check_charinfo): Ditto.
8236 (troff_output_file::determine_line_limits): Add support for `Da'
8239 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8240 Add new parameter `is_special' to decode special characters from
8242 (html_printer::do_title, html_printer::do_heading,
8243 html_printer::do_indentedparagraph,
8244 html_printer::translate_to_html, html_printer::special): Updated.
8246 2001-10-03 Werner LEMBERG <wl@gnu.org>
8248 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8249 Fix entry for config.h.
8250 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8251 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8252 * src/preproc/eqn/eqn.man: Document -d command line option.
8254 2001-09-27 Werner LEMBERG <wl@gnu.org>
8256 * man/groff.man: Use
8264 instead of the old code (`.ad .hy' after the table) to suppress
8265 incorrect hyphenation for grohtml output.
8267 2001-09-22 Werner LEMBERG <wl@gnu.org>
8269 * man/groff_font.man, man/groff_out.man: Minor fixes.
8271 2001-09-20 Werner LEMBERG <wl@gnu.org>
8273 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8274 Arnold Robbins <arnold@skeeve.com>).
8276 2001-09-09 Werner LEMBERG <wl@gnu.org>
8278 * configure: Regenerated with autoconf 2.52.
8280 * doc/groff.texinfo: Complete revision of indices.
8282 2001-09-07 Werner LEMBERG <wl@gnu.org>
8284 * doc/Makefile (clean): Updated to delete all indices.
8286 2001-09-05 Werner LEMBERG <wl@gnu.org>
8288 * src/roff/troff/troff.man: Remove superfluous line.
8290 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8291 given on the command line (or rather, if only the default warnings
8294 2001-09-03 Werner LEMBERG <wl@gnu.org>
8296 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8297 use .ne for TTY devices.
8299 2001-08-31 Werner LEMBERG <wl@gnu.org>
8301 * src/roff/troff/token.h, src/roff/troff/input.cc:
8302 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8304 2001-08-28 Werner LEMBERG <wl@gnu.org>
8306 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8307 * src/roff/troff/input.cc (token::next): Return
8308 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8310 (token::description): Updated.
8311 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8312 (token::add_to_node_list, token::process): Ignore
8313 TOKEN_TRANSPARENT_ESCAPE.
8315 2001-08-27 Werner LEMBERG <wl@gnu.org>
8317 * tmac/an-old.tmac: Fix `S' string.
8319 2001-08-26 Werner LEMBERG <wl@gnu.org>
8321 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8323 2001-08-25 Werner LEMBERG <wl@gnu.org>
8325 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8327 Many other minor fixes.
8329 * configure.ac: Add message at end to inform how to compile
8331 * configure: Regenerated.
8333 2001-08-24 Werner LEMBERG <wl@gnu.org>
8335 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8336 Updated to latest version of libc.
8338 2001-08-23 Werner LEMBERG <wl@gnu.org>
8340 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8341 Autoconf 2.50 and newer can handle this.
8342 * configure: Regenerated.
8344 2001-08-21 Werner LEMBERG <wl@gnu.org>
8346 * doc/pic.ms: Fix typo.
8347 * src/preproc/tbl/tbl.man: Document case of global options.
8349 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8351 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8352 handling of `CR' font.
8354 2001-08-20 Werner LEMBERG <wl@gnu.org>
8356 Use a config.h file.
8358 * src/include/lib.h: Include config.h.
8359 * All C files: Ditto (if necessary).
8360 * All C++ source and header files: Include lib.h first (if
8363 * src/include/config.hin: New file (autogenerated by autoheader).
8364 * stamp-h.in: New file.
8365 * configure.ac: Updated.
8366 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8367 (GROFF_ARRAY_DELETE): Simplified.
8368 * Makefile.sub (DISTCLEANFILES): Updated.
8369 Added targets for remaking config.status, config.hin, config.h,
8370 stamp-h.in, and stamp-h.
8371 * configure: Regenerated.
8373 2001-08-19 Werner LEMBERG <wl@gnu.org>
8377 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8379 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8380 (do_sprintf): Use snprintf().
8382 2001-08-18 Werner LEMBERG <wl@gnu.org>
8384 * src/libs/snprintf/*: Added an snprintf module written by Mark
8386 * src/libs/libgroff/Makefile.sub: Updated.
8387 * configure.ac: Add test for snprintf().
8388 * Makefile.in: Updated.
8389 * configure: Regenerated.
8391 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8394 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8396 * tmac/doc.tmac (Ex): New implementation.
8397 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8399 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8401 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8403 * tmac/groff_tmac.man: Updated.
8405 2001-08-13 Werner LEMBERG <wl@gnu.org>
8407 * src/preproc/tbl/tbl.man: Minor documentation update.
8409 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8411 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8412 * configure.ac: Add declaration test for gettimeofday().
8413 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8414 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8415 * configure: Regenerated.
8417 2001-08-11 Werner LEMBERG <wl@gnu.org>
8419 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8420 * configure.ac: Add declaration test for strcasecmp().
8421 * Makefile.in: Updated.
8422 * configure: Regenerated.
8423 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8424 this is necessary because groff's mkstemp.cc is C++.
8425 Add declaration conditionally for strcasecmp().
8427 2001-08-10 Werner LEMBERG <wl@gnu.org>
8429 Integrated pic2graph, contributed by Eric S. Raymond.
8431 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8433 * Makefile.in, NEWS: Updated.
8435 * src/preproc/tbl/tbl.man: Revised.
8437 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8439 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8441 2001-08-09 Werner LEMBERG <wl@gnu.org>
8443 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8446 2001-08-08 Paul Eggert <eggert@twinsun.com>
8448 * Makefile.sub (configure): Depend on configure.ac, not
8450 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8452 2001-08-07 Werner LEMBERG <wl@gnu.org>
8454 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8457 2001-08-06 Werner LEMBERG <wl@gnu.org>
8459 * src/roff/troff/troff.man: Improve documentation of -E option.
8461 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8463 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8466 2001-07-27 Werner LEMBERG <wl@gnu.org>
8468 * src/preproc/refer/refer.cc: Undo last change.
8469 * src/devices/grohtml/post-html.cc: Ditto.
8471 2001-07-26 Werner LEMBERG <wl@gnu.org>
8473 * src/preproc/refer/refer.cc: Include `lib.h'.
8474 * src/devices/grohtml/post-html.cc: Ditto.
8476 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8478 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8479 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8480 * Makefile.in: Comment updated.
8481 * configure: Regenerated.
8483 2001-07-25 Werner LEMBERG <wl@gnu.org>
8485 * src/preproc/pic/pic.cc: Removed.
8486 * src/preproc/pic/pic_tab.h: Removed.
8487 * src/preproc/refer/label.cc: Removed.
8489 * doc/Makefile (.ms.html): Don't use a file name extension in
8490 argument to grohtml's -I option.
8491 * Makefile.in (dist): Remove CVS directories.
8492 Call `distfiles' target.
8494 * src/devices/grohtml/grohtml.man: Add information about valid
8495 versions of pnmtopng.
8496 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8497 name instead of number.
8499 2001-07-24 Werner LEMBERG <wl@gnu.org>
8501 * doc/groff.texinfo: Minor fixes.
8503 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8505 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8508 2001-07-20 Werner LEMBERG <wl@gnu.org>
8510 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8511 * src/libs/libgroff/mkstemp.cc: New file.
8512 * src/libs/libgroff/mksdir.cc: New file.
8513 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8514 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8515 * src/libs/libgroff/Makefile.sub: Updated.
8516 * src/include/lib.h: Add mksdir() prototype.
8517 * src/include/posix.h: Define S_IXUSR if not yet defined.
8519 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8520 (createAllPages): Use mksdir() instead of current code.
8521 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8522 (main): [!HAVE_MKSTEMP]: Removed.
8524 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8525 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8527 * configure.ac: Add tests for stdint.h, sys/time.h, and
8529 Call new GROFF_xxx macros.
8530 * configure: Regenerated.
8531 * Makefile.in: Comments updated.
8533 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8535 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8536 instead of current code.
8537 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8538 * src/roff/groff/groff.cc (possible_command::insert_args): New
8540 (main): Use it for predriver handling instead of insert_arg().
8542 2001-07-19 Werner LEMBERG <wl@gnu.org>
8544 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8547 * src/include/posix.h: Define S_IWUSR if not yet defined.
8549 2001-07-18 Werner LEMBERG <wl@gnu.org>
8553 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8555 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8556 Some other minor fixes.
8557 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8559 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8561 Replace call to `troff' with `groff -Z' to make it aware of
8564 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8565 (troff_command, command_prefix): Removed.
8566 (alterDeviceTo): Use groff.
8567 (addZ): New function.
8568 (char_buffer::do_html): Use it.
8569 (scanArguments): Use TROFF_COMMAND.
8570 (findPrefix): Removed.
8572 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8574 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8576 * doc/pic.ms: Documentation fixes.
8578 2001-07-17 Werner LEMBERG <wl@gnu.org>
8580 Replace atexit() with global destructor.
8582 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8583 (xtmpfile_list_init): New global structure to deallocate
8584 xtmpfile_list on exit. Its destructor inherits most code from
8586 (remove_tmp_files): Deleted.
8587 (add_tmp_file): Simplified.
8589 2001-07-16 Werner LEMBERG <wl@gnu.org>
8591 Replace strdup() with strsave().
8593 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8594 (set_papersize): Use strsave() and a_delete.
8595 (main): Use strsave().
8596 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8597 removeAllPages): Use strsave() and a_delete.
8599 * configure.ac: Remove test for strdup.
8600 * Makefile.in: Comment updated.
8601 * configure: Regenerated.
8603 2001-07-15 Werner LEMBERG <wl@gnu.org>
8605 * win32-diffs: Updated.
8607 2001-07-14 Werner LEMBERG <wl@gnu.org>
8609 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8610 removing the old one.
8611 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8613 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8615 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8617 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8619 Merge -xwidth into -width. Add -xwidth functionality to -column
8622 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8624 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8625 string immediately following a leading dot starts with a valid mdoc
8627 Add similar code to the -column branch.
8628 (doc-Bl-usage): Updated.
8629 * groff_mdoc.man: s/-xwidth/-width/.
8631 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8633 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8634 running into centered or non-formatted text.
8636 2001-07-11 Werner LEMBERG <wl@gnu.org>
8638 Introduce short and long prefixes to have the selection at run-time
8639 whether there is a 8+3 limit for names of temporary files.
8641 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8642 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8643 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8645 (temp_init): New global structure to initialize above three
8647 (xtmptemplate): Use two parameters for long and short prefix.
8648 Simplify code use above three variables.
8649 (xtmpfile): Use long and short prefixes as parameters.
8650 * src/include/lib.h: Updated.
8652 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8654 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8655 (createAllPages, makeTempFiles): Updated.
8657 2001-07-09 Werner LEMBERG <wl@gnu.org>
8659 * REVISION: Increased to 3.
8661 Version 1.17.2 released
8662 =======================
8664 2001-07-07 Werner LEMBERG <wl@gnu.org>
8666 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8669 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8671 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8673 * tmac/groff_mdoc.man: Fix synopsis.
8675 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8677 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8678 Restore `doc-Pa-font'.
8680 2001-07-04 Werner LEMBERG <wl@gnu.org>
8682 * src/utils/indxbib/dirnamemax.c: Moved to ...
8683 * src/libs/libgroff/maxfilename.cc: Here.
8684 s/dir_name_max/file_name_max/.
8686 * src/include/lib.h: Add file_name_max.
8687 * src/utils/indxbib/indxbib.cc: Updated.
8688 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8691 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8693 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8695 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8696 REGION_TEMPLATE): New macros.
8697 (createAllPages, makeTempFiles): Use them.
8698 Include `nonposix.h'.
8699 (html_system): New function.
8700 (createAllPages, createImage): Use it.
8703 * tmac/www.tmac: Fix typos.
8705 2001-07-03 Werner LEMBERG <wl@gnu.org>
8707 * tmac/www.tmac: Disable hyphenation in normal text only if output
8709 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8710 * tmac/groff_mwww.man, NEWS: Updated.
8712 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8714 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8717 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8719 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8720 doc-display-ps-stack): Implement font and font size stack for
8723 2001-07-02 Werner LEMBERG <wl@gnu.org>
8725 * REVISION: Increased to 2.
8726 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8728 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8729 beginning of a line.
8730 * src/groff/grog/grog.sh: Ditto.
8732 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8734 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8737 2001-06-27 Werner LEMBERG <wl@gnu.org>
8739 Fix problems with preprocessor string for `man' program.
8741 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8742 Updated/added copyright.
8743 Moved Emacs's local variable to identify nroff mode to the end of
8744 the file; add local variable if missing.
8746 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8748 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8749 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8750 * configure: Regenerated.
8752 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8754 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8755 * configure: Regenerated.
8757 2001-06-24 Werner LEMBERG <wl@gnu.org>
8759 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8761 * doc/pic.ms: Fix typos.
8763 Version 1.17.1 released
8764 =======================
8766 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8768 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8769 * configure: Updated.
8771 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8773 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8775 * src/roff/troff/dic.cc (blank_line): Add html tag.
8777 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8779 * src/roff/troff/input.cc (do_suppress): Fix typo.
8781 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8783 Added two new options (-D and -I) to specify image names and a
8784 subdirectory to place the images in.
8786 Change syntax from \\Ox to \\O[x].
8788 * src/devices/grohtml/post-html.cc (main): Add options.
8790 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8791 Use `NULL' instead of `0' for null string pointers.
8792 (MAX_RETRIES): New macro.
8793 (lengthOfintToStr, intToStr, make_message): New functions.
8794 (makeFileName): Make function static.
8795 Implement -D and -I options.
8796 (checkImageDir): New function.
8797 (write_end_image, write_start_image): Use new syntax of \O.
8798 (createAllPages, removeAllPages): Implement -D and -I options. Use
8800 (createImage): Use make_message().
8801 (addps4html): Add guard for malloc().
8802 (usage, scanArguments): Updated.
8803 (makeTempFiles): Use mkstemp().
8804 (removeTempFiles): Use unlink().
8805 (findPrefix): Add guard for malloc().
8807 * src/roff/troff/input.cc (get_delim_file_name): New function to
8809 (do_suppress): Updated to parse new syntax.
8810 * src/devices/grohtml/grohtml.man: Updated.
8811 * tmac/www.tmac: Updated to new syntax.
8815 2001-06-15 Werner LEMBERG <wl@gnu.org>
8817 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8819 * src/devices/grohtml/grohtml.man: Minor improvements.
8821 2001-06-14 Werner LEMBERG <wl@gnu.org>
8823 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8825 2001-06-11 Werner LEMBERG <wl@gnu.org>
8827 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8828 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8830 * src/preproc/grn/grn.man: Add proper '\" string.
8832 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8834 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8836 2001-06-08 Werner LEMBERG <wl@gnu.org>
8838 Updated to autoconf 2.50.
8840 * configure.in: Renamed to...
8841 * configure.ac: This.
8842 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8843 (GROFF_OS390): Updated.
8844 * configure: Regenerated.
8846 2001-05-18 Werner LEMBERG <wl@gnu.org>
8848 * src/roff/troff/env.c, src/roff/troff/env.h,
8849 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8852 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8854 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8856 2001-05-16 Werner LEMBERG <wl@gnu.org>
8858 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8859 less than or equal zero; set it to 1 then.
8860 * src/roff/troff/node.h (node::node): Initialize `last'.
8862 2001-05-08 Werner LEMBERG <wl@gnu.org>
8864 * tmac/an-old.tmac: Make predefined strings work in compatibility
8866 Add troff version guard.
8867 * tmac/doc.tmac: Simplify version guard.
8869 2001-05-07 Werner LEMBERG <wl@gnu.org>
8871 The .ns and .rs requests are now honoured not only in the top-level
8872 but in all diversions (similar to UNIX troff).
8874 This change is based on a patch from Tadziu Hoffmann
8875 <hoffmann@usm.uni-muenchen.de>.
8877 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8878 (top_level_diversion): Remove `no_space_mode' member.
8879 * src/roff/troff/div.cc (diversion::diversion,
8880 top_level_diversion::top_level_diversion): Updated.
8881 (macro_diversion::output): Reset `no_space_mode'.
8882 (no_space, restore_spacing): Use `curdiv' unconditionally.
8883 (space_request, blank_line): Check `curdiv->no_space_mode'.
8884 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8885 `curdiv' unconditionally.
8886 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8889 2001-05-06 Werner LEMBERG <wl@gnu.org>
8891 Added two new requests `de1' and `am1' which are similar to `de' and
8892 `am' with the difference that compatibility mode is saved on entry,
8893 switched off during macro execution, and restored on exit.
8895 * src/roff/troff/input.h: Added two new special characters
8896 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8897 * src/roff/troff/input.cc (input_iterator): Added two member
8898 functions `save_compatible_flag' and `get_compatible_flag'.
8899 (input_stack): Ditto.
8900 (string_iterator): Ditto. Also add private member
8901 `saved_compatible_flag'.
8902 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8903 (calling_mode): New enumeration.
8904 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8905 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8906 (define_macro, define_indirect_macro, append_macro, ignore): Use
8908 (define_nocomp_macro, append_nocomp_macro): New functions.
8909 (init_input_requests): Updated.
8910 (do_request): Rename local variable `saved_compatible_flag' to
8911 `old_compatible_flag'.
8912 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8914 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8915 public and trap-invoked macros. As a consequence, the man macros
8916 work in compatibility mode also.
8918 2001-05-06 Solar Designer <solar@openwall.com>
8920 * Makefile.in: Use $(mandir).
8922 2001-05-06 Alexios Zavras <zvr@pobox.com>
8924 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8926 2001-05-05 Werner LEMBERG <wl@gnu.org>
8928 Added `.ns' number register: Returns 1 in no-space mode (if in
8929 top-level diversion), 0 otherwise.
8931 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8932 (init_div_requests): Updated.
8933 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8936 2001-05-04 Werner LEMBERG <wl@gnu.org>
8938 * src/roff/nroff/nroff.man: Improved documentation (especially
8941 2001-05-02 Werner LEMBERG <wl@gnu.org>
8943 Added `brp' request: This is \p as a request.
8945 * src/roff/troff/env.cc (environment::do_break): Add parameter
8947 (do_break_request): New function (was `break_request').
8948 (break_request): Calls `do_break_request'.
8949 (break_spread_request): New; calls `do_break_request'.
8950 (init_env_requests): Updated.
8951 * src/roff/troff/env.h: Updated.
8952 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8954 * REVISION: Increased to 1.
8955 * win32-diffs: Updated.
8957 2001-05-01 Werner LEMBERG <wl@gnu.org>
8959 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8960 * tmac/troffrc-end: Make it really work in compatibility mode.
8962 2001-04-27 Werner LEMBERG <wl@gnu.org>
8964 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8967 2001-04-22 Werner LEMBERG <wl@gnu.org>
8969 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8970 latest versions from glibc CVS archive.
8972 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8973 <c.zeelenberg@hccnet.nl>.
8975 2001-04-21 Werner LEMBERG <wl@gnu.org>
8977 * configure.in: Move check for mkstemp() to...
8978 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8979 * configure: Regenerated.
8981 * src/include/groff-getopt.h: Don't use variable names in
8984 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8985 * src/devices/grohtml/Makefile.sub,
8986 src/devices/grohtml/post-html.cc: Updated.
8988 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8990 * configure.in: Add special check for mkstemp().
8991 * src/libs/libgroff/tmpfile.cc: Use it.
8992 * src/utils/indxbib/indxbib.cc: Ditto.
8993 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8994 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8997 2001-04-20 Bruce Lilly <blilly@erols.com>
8999 `Version_string' as C++ object was not visible to linker from C
9001 Add `const' to `Version_string'.
9003 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9004 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9005 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9006 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9007 (scanArguments), src/preproc/refer/refer.cc (main),
9008 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9009 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9010 (main), src/devices/grohtml/post-html.cc (main),
9011 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9012 (main), src/utils/hpftodit/hpftodit.cc (main),
9013 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9014 (main), src/utils/lkbib/lkbib.cc (main),
9015 src/utils/addftinfo/addftinfo.cc (main): Implement it.
9017 * src/roff/groff/pipeline.c: Add _UWIN.
9018 * src/include/nonposix.h: Ditto.
9020 2001-04-20 Werner LEMBERG <wl@gnu.org>
9022 * src/include/lib.h: Use HAVE_STRERROR.
9023 * src/roff/groff/pipeline.c: Ditto.
9024 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9025 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9026 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9027 * win32-diffs: Updated.
9028 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9030 2001-04-19 Werner LEMBERG <wl@gnu.org>
9032 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9033 instead of hardwired `"troff"'.
9034 (char_buffer::read_file): Remove unused variables.
9035 (char_buffer::write_file_troff): Ditto.
9036 (char_buffer::write_file_html): Ditto.
9037 (generateImages): Ditto.
9039 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9041 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9043 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9044 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9045 index_search_item::search1): Ditto.
9046 * src/roff/troff/node.h (width_list): Reorder members.
9047 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9048 (lookup_warning): Ditto.
9049 (prepend_string): Commented out.
9050 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9051 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9052 * src/preproc/tbl/main.cc (process_format): Ditto.
9053 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9055 * src/preproc/pic/pic.cc: Updated.
9056 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9057 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9058 * src/preproc/refer/command.cc (execute_command): Ditto.
9059 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9060 * src/preproc/refer/token.cc (lookup_token): Ditto.
9061 * src/preproc/soelim/soelim.cc: Ditto.
9062 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9063 (isHexDigit): Commented out.
9064 (pushBackBuffer::isString): Remove unused variable.
9065 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9067 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9068 resource_manager::read_resource_arg, read_one_of, parse_extensions):
9070 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9071 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9072 lookup_paper_size): Ditto.
9073 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9074 (text_glob, element_list): Reorder members.
9075 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9077 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9078 return value to `void'.
9079 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9081 * src/devices/grohtml/html.h (simple_output::check_newline,
9082 simple_output::space_or_newline, simple_output::enable_newlines):
9084 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9086 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9087 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9088 output_ligatures, output_charset, read_map): Ditto.
9089 * src/utils/lookbib/lookbib.cc (main): Ditto.
9090 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9091 (do_file): Fix typo (`=' -> `==').
9092 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9093 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9095 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
9097 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9098 Fix usage of GROFF_BIN_PATH.
9099 * src/roff/nroff/nroff.man: Updated.
9101 2001-04-18 Werner LEMBERG <wl@gnu.org>
9103 * NEWS: Fixing typos.
9106 Version 1.17 released
9107 =====================
9109 2001-04-17 Werner LEMBERG <wl@gnu.org>
9111 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9112 directory, not in $(srcdir).
9114 2001-04-16 Werner LEMBERG <wl@gnu.org>
9116 * doc/groff.texinfo: More info on conditionals.
9118 2001-04-15 Werner LEMBERG <wl@gnu.org>
9120 * doc/groff.texinfo: Added some info about groff internals.
9122 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9123 about missing special character only if the name is non-null.
9125 2001-04-14 Werner LEMBERG <wl@gnu.org>
9127 Removing the grohtml-old device driver which is now obsolete.
9129 * src/devices/grohtml-old/*: Removed.
9130 * font/devhtml-old/*: Removed.
9131 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9133 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9134 * test-groff (PATH): Updated.
9135 * tmac/Makefile.sub (NORMALFILES): Updated.
9136 * tmac/an-old.tmac: Remove special code for html-old device.
9137 Replace `html-or-html-old' register with `an-html'.
9138 * tmac/eqnrc: Updated.
9139 * tmac/html-old.tmac: Removed.
9140 * tmac/troffrc, tmac/troffrc-end: Updated.
9141 * tmac/www.tmac: Remove special code for html-old device.
9142 Replace `html-or-html-old' register with `www-html'.
9144 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9145 src/libs/libgroff/htmlindicate.cc (graphic_end),
9146 include/htmlindicate.h, src/preproc/grn/*.cc,
9147 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9148 single argument for consistency with rest of source code.
9150 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9152 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
9154 * src/roff/troff/troff.man: Fixing typos.
9156 2001-04-13 Werner LEMBERG <wl@gnu.org>
9158 * doc/pic.ms: Fixing many font switches.
9159 * doc/groff.texinfo: Fixes, additions.
9160 * MORE.STUFF: Updated.
9162 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
9164 * src/devices/grohtml/grohtml.man: Updated manual page regarding
9166 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9168 (removeTempFiles): New function to tidy up temporary files.
9169 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9170 Many fixes to do with the new inline suppress node and image regions
9172 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9173 (generate_img_src): New function.
9174 (html_printer::do_auto_image): Utilizes it.
9175 (do_heading, do_title): Include inline images within their contents.
9176 (html_printer::begin_page): Tidied up comments that are issued to
9177 the html output file.
9178 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9180 (text_glob::is_br): New method used by do_heading.
9181 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9182 equivalent diversion.
9183 * src/include/html-strings.h: Altered image tags to reflect the
9185 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9187 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9188 it is already inside a pic image. Only emit tags if the argument
9189 `-Tps:html' is present.
9190 * src/preproc/tbl/main.cc: Changes to reflect additional
9191 `html_end_suppress' parameter.
9192 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9193 emitted since the last eol tag was written.
9194 * src/roff/troff/env.h: New boolean `emitted_node'.
9195 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9196 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9197 * src/roff/troff/node.cc (check_charinfo): New method.
9198 (troff_output_file::determine_line_limits): Alterations to limit
9200 * tmac/www.tmac: Changes to reflect new suppress nodes.
9202 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9204 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9205 Escape the html_glyph in the buffer.
9206 (str_translate_to_html): Output the unescaped escaped_char.
9207 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9208 `frame=void', not `frame=none'. Add `border=0'.
9210 2001-04-12 Werner LEMBERG <wl@gnu.org>
9212 * PROBLEMS: Add some words on how to avoid wrapper macros.
9214 2001-04-11 Blake McBride <blake@florida-software.com>
9216 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9218 2001-04-11 Werner LEMBERG <wl@gnu.org>
9220 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9221 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9222 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9223 * Makefile.sub (DISTCLEANFILES): Here.
9225 * libs/libgroff/new.cc: Include `nonposix.h'.
9226 * win32-diffs: Updated.
9228 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9230 Added skeleton macro for defunct macros.
9232 Updated documentation.
9234 When inside displays, an empty input line warning should be
9235 suppressed. If another macro call is put inside a display,
9236 all subsequent empty lines found in that display caused a
9237 warning to be emitted.
9239 * tmac/doc.tmac (doc-defunct-macro): New macro.
9240 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9241 (doc-restore-global-vars): Fixed typo.
9242 (doc-empty-line): Check the `doc-display-depth' register to
9243 determine whether we are inside display or not.
9245 * tmac/doc-common: Removed `Or' and `Sf' registers.
9246 Moved obsolete `Ds' macro to doc.tmac.
9248 * tmac/groff_mdoc.man: Bump document date.
9249 Document `.Vt' under ``Variable Types''.
9250 Removed documentation for obsolete `.Or' macro.
9252 2001-04-10 Werner LEMBERG <wl@gnu.org>
9255 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9257 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9259 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9260 (usage): Add stream argument. Don't exit.
9261 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9262 Write --version output to stdout, not stderr.
9263 (usage): Add stream argument. Don't exit.
9264 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9265 (usage): Add stream argument. Don't exit.
9266 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9268 (usage): Add stream argument. Don't exit.
9269 (main): Write --help output to stdout, not stderr.
9270 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9271 (usage): Add stream argument. Don't exit.
9272 * src/devices/grops/ps.cc (main): Accept --help and --version.
9273 (usage): Add stream argument. Don't exit.
9274 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9275 (usage): Add stream argument. Don't exit.
9276 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9277 (main): Accept --help and --version.
9278 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9279 (main): Accept --help and --version.
9280 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9281 (scanArguments): Accept --help and --version.
9282 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9283 (main): Accept --help and --version.
9284 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9285 (usage): Add stream argument. Don't exit.
9286 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9288 (main): Accept --help and --version.
9289 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9290 (main): Accept --help and --version.
9291 * src/roff/groff/groff.cc (main): Accept --help and --version.
9292 (synopsis): Add stream argument.
9293 (help): Write --help output to stdout, not stderr.
9294 (usage): Add stream argument. Don't exit.
9295 * src/roff/grog/grog.pl: Accept --help and --version.
9297 * src/roff/grog/grog.sh: Accept --help and --version.
9298 * src/roff/nroff/nroff.sh: Accept --help and --version.
9299 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9300 (usage): Add stream argument. Don't exit.
9301 (main): Accept --help and --version.
9302 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9303 (usage): New function with stream argument, doesn't exit.
9304 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9305 (usage): New function with stream argument, doesn't exit.
9306 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9307 (usage): Add stream argument. Don't exit.
9308 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9309 (main): Accept --help and --version.
9310 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9312 (main): Accept --help and --version.
9313 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9314 (main): Accept --help and --version.
9315 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9316 (usage): Add stream argument. Don't exit.
9318 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9320 Fix indentation in SYNOPSIS.
9322 Updated to include changes of latest BSD mdoc version (basically,
9323 the only change is that `.Fn' and `.Fc' put a final semicolon after
9324 a function declaration in the SYNOPSIS section).
9326 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9327 (doc-in-synopsis-section): New variable. Updated all related
9329 (doc-indent-synopsis-active): New register.
9330 (Nd, Fn, Fo): Use it.
9331 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9332 `.Cd' with long argument line produces indented wrapped lines.
9333 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9334 undesirable line break to be output.
9335 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9337 (Fn, Fc): Add final `;' to output.
9338 (doc-save-global-vars, doc-restore-global-vars): Updated.
9339 * tmac/doc-common: Remove `Ex' register.
9341 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9344 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9346 * tmac/doc.tmac (Cd): Simplify code.
9347 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9349 2001-04-06 Werner LEMBERG <wl@gnu.org>
9351 Implement continuous underlining for nroff mode. To do that, a new
9352 request in the ditroff language has been added: `x u N' (N is 0
9355 \X and \Y are now transparent to end-of-sentence recognition.
9357 * src/include/printer.h (printer): Add `type' parameter to `special'
9359 * src/libs/libdriver/printer.cc (printer::special): Updated.
9360 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9362 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9363 specials of type `p'.
9364 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9365 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9366 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9367 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9368 (glyph::order): New method.
9369 (tty_printer::add_char): Use it.
9370 (tty_printer::special): New method.
9371 (tty_printer::end_page): Implement it.
9373 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9374 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9375 to set `no_init_string'.
9376 (special_node::tprint_start): Use it.
9377 (special_node::same, special_node::copy): Updated.
9378 (special_node::ends_sentence): New method.
9379 (troff_output_file::start_special): Add parameter to include
9380 inititialization of special conditionally.
9382 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9383 * src/roff/troff/env.cc (do_underline_special): New function.
9384 (environment::set_font): Use it.
9385 (do_underline): Use it. This was `underline()'.
9386 (underline): Call `do_underline()'.
9387 (continuous_underline): New function which calls `do_underline()'.
9388 (environment::newline): Use `do_underline_special()'.
9389 (init_env_requests): Updated.
9391 * NEWS, man/troff_out.man: Updated.
9393 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9395 * font/devutf8/R.proto: Fix code of 'shc'.
9397 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9399 Many fixes. Diag lists can now be nested also; additionally,
9400 `-compact' and `-offset' are supported.
9402 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9403 (doc-list-have-indent-stackXXX): A new register stack.
9404 (doc-have-diag-list): Removed.
9405 (Bl): Use `doc-list-have-indent-stackXXX'.
9407 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9408 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9409 (doc-set-vertical-and-indent): Ditto.
9410 (doc-next-list-depth): Removed.
9411 (doc-increment-list-stack): Updated.
9412 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9413 `doc-next-list-depth'.
9414 (doc-end-list, doc-end-column-list): Don't use
9415 `doc-increment-list-stack'.
9416 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9417 (doc-save-global-vars, doc-restore-global-vars): Updated.
9418 * tmac/doc-common: Updated.
9419 * tmac/groff_mdoc.man: Updated.
9422 2001-04-02 Werner LEMBERG <wl@gnu.org>
9424 * src/devices/grotty/grotty.man: Fix grammatical error.
9426 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9428 Remove .Ld from mdoc package; replace it with special handling of
9431 * tmac/doc-common: Remove `Ld' register.
9432 Uncomment `doc-volume-ds-*' strings.
9433 Remove `doc-operating-system-default'.
9435 * tmac/doc-syms (Ld): Removed.
9436 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9440 * tmac/groff_mdoc.man: Many fixes and updates.
9442 2001-03-29 Werner LEMBERG <wl@gnu.org>
9444 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9445 Bond <tkb@tkb.mpl.com>.
9446 * tmac/www.tmac: Save compatibility mode.
9448 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9450 * tmac/groff_mdoc.man: Many fixes.
9452 2001-03-28 Werner LEMBERG <wl@gnu.org>
9454 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9457 2001-03-27 Werner LEMBERG <wl@gnu.org>
9459 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9460 diversion. This fixes overlong tags.
9462 2001-03-26 Werner LEMBERG <wl@gnu.org>
9464 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9465 * tmac/doc-syms: Fix error messages.
9466 * tmac/an-old.tmac: Remove incorrect double backslashes.
9468 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9470 * tmac/Makefile.sub: Strip mdoc.local also
9471 * tmac/strip.sed: Fixed.
9473 2001-03-24 Werner LEMBERG <wl@gnu.org>
9475 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9476 selecting the font size.
9477 * tmac/groff_mdoc.man, NEWS: Document it.
9479 2001-03-23 Werner LEMBERG <wl@gnu.org>
9481 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9483 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9484 argument to restore previous font family.
9485 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9487 * doc/groff.texinfo: More fixes and additions (mainly for font
9488 manipulating commands).
9490 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9491 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9492 * tmac/Makefile.sub, NEWS: Updated.
9494 2001-03-23 Werner LEMBERG <wl@gnu.org>
9496 Replaced mdoc implementation. The new version is `state of the
9497 art', using almost all new features of groff 1.17 -- it won't run
9498 with older versions.
9500 * tmac/doc.tmac: Completely rewritten.
9501 * tmac/doc-common: Ditto.
9502 * tmac/doc-nroff: Ditto.
9503 * tmac/doc-ditroff: Ditto.
9504 * tmac/doc-syms: Ditto.
9505 * tmac/mdoc.local: New file.
9506 * tmac/groff_mdoc.samples.man: Replaced with ...
9507 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9508 * tmac/strip.sed: Updated.
9509 * tmac/Makefile.sub: Updated.
9512 * tmac/groff_man.man: Add `man.local' to the FILES section.
9514 2001-03-22 Werner LEMBERG <wl@gnu.org>
9516 * doc/groff.texinfo: Added many @noindent.
9517 Replaced @end_Example -> @endExample.
9518 Added info whether registers are r/o.
9519 Many other additions and fixes.
9521 2001-03-21 Werner LEMBERG <wl@gnu.org>
9523 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9524 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9525 Improved @Def* macros: Now the exact syntax of request, register,
9526 and escapes is shown.
9527 Added macros for parentheses and brackets to be used in @Def*.
9528 Many fixes and improvements of the documentation.
9530 2001-03-20 Werner LEMBERG <wl@gnu.org>
9532 * doc/groff.texinfo: Added new index: `st' (for strings).
9533 Added macros @Defstr(x).
9534 Added macro @Example (adding @group).
9535 Other minor improvements.
9537 2001-03-19 Werner LEMBERG <wl@gnu.org>
9539 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9540 `rq' for requests. `fn' is no longer used.
9541 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9544 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9545 number with name of man page.
9547 2001-03-19 Larry Kollar <kollar@alltel.net>
9549 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9552 2001-03-19 Werner LEMBERG <wl@gnu.org>
9554 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9555 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9556 * src/devices/grohtml/grohtml.man: Fixing typos.
9558 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9560 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9561 * tmac/groff_mwww.man: Remove .LINE macro
9562 * tmac/www.tmac (LINE): Add `.ti'.
9564 * src/devices/grohtml/post-html.cc (html_printer): New member
9566 (html_printer::emit_raw): Use it.
9567 (html_printer::do_linelength): Ditto.
9568 (html_printer::do_pageoffset): Ditto.
9569 (html_printer::do_indentation): Ditto.
9570 (html_printer::do_tempindent): Ditto.
9571 (html_printer::do_break): Ditto.
9572 (html_printer::begin_page): Ditto.
9573 (html_printer::do_indentedparagraph): New function.
9574 (html_printer::troff_tag): Handle `.ip'.
9575 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9576 Add `<td width=...>' handling.
9577 (html_text::do_table): Add parameter.
9578 (html_text::do_indent): Updated.
9579 * src/devices/groohtml/html-text.h: Updated.
9581 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9583 Introduced simple html tables to implement indentation.
9585 * src/devices/grohtml/html.h (word, word_list): New structures.
9586 (simple_output): Use it.
9587 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9588 (html_printer): Improve indentation handling.
9589 (html_printer::emit_raw): Set `in_table' element. Handle
9591 (html_printer::write_header): Move conditional downwards.
9592 Don't allow whitespace in tags.
9593 (html_printer::do_linelength): Handle line length and indentation
9595 (html_printer::do_pageoffset): Handle indentation conditionally.
9596 (html_printer::do_indentation): Ditto.
9597 (html_printer::do_tempindent): New function member.
9598 (html_printer::do_fill): Take care of indentation.
9599 (html_printer::do_flush): Finish table.
9600 (html_printer::do_links): Ditto.
9601 (html_printer::do_break): New function for handling `.br' and `.ti'.
9602 (html_printer::troff_tag): Use it.
9604 (html_printer::flush_globs): Fix.
9605 (html_printer::flush_page): Finish table.
9606 (html_printer::html_printer): Fix error message. Set up
9608 (html_printer::add_to_sbuf): Remove special handling of character
9610 (to_unicode): Remove `stop()'.
9611 (html_printer::write_title): Cleanup.
9612 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9613 (html_printer::~html_printer): Flush text and end the line.
9615 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9616 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9618 (html_text::start_tag): Disable newlines.
9619 (html_text::table_is_void): New function.
9620 (html_text::issue_table_begin): Ditto.
9621 (html_text::issue_table_end): Ditto.
9622 (html_text::push_para): Better table handling.
9623 (html_text::do_indent): New function.
9624 (html_text::do_table): Ditto.
9625 (html_text::done_table): Ditto.
9626 (html_text::do_tt): Handle PRE_TAG.
9627 (html_text::is_in_table): New function.
9628 (html_text::check_emit_text): Handle tables.
9629 (html_text::do_emittext): Use `nl()'.
9630 (html_text::do_para): Handle table.
9631 (html_text::remove_def): New function.
9632 * src/devices/grohtml/output.cc (word, word_list): Implement
9634 (simple_output::end_line): Flush last word.
9635 (simple_output::simple_comment): Ditto.
9636 (simple_output::begin_comment): Recoded.
9637 (simple_output::end_comment): Ditto.
9638 (simple_output::comment_arg): Removed.
9639 (simple_output::check_newline): Improve test and flush last word.
9640 (simple_output::space_or_newline): Improved.
9641 (simple_output::write_newline): Replaced with...
9642 (simple_output::nl): This.
9643 (simple_output::put_raw_char): Flush last word.
9644 (simple_output::check_space): Removed.
9645 (simple_output::put_translated_string): Ditto.
9646 (simple_output::put_string): Simplified.
9647 (simple_output::put_number): Updated.
9648 (simple_output::put_float): Ditto.
9649 (simple_output::put_symbol): Removed.
9650 (simple_output::enable_newlines): Add `check_newline()'.
9651 (simple_output::flush_last_word): New function.
9653 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9654 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9656 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9657 * tmac/an-old.tmac (TP): Ditto.
9659 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9661 * mdate.sh: Make it POSIX compliant.
9663 2001-03-09 Werner LEMBERG <wl@gnu.org>
9665 Added the `return' request to end a macro immediately. It simply
9666 pops iterators from the input stack until a macro iterator is found.
9668 * src/roff/troff/input.cc (input_iterator::is_macro,
9669 macro_iterator::is_macro): New member.
9670 (input_return_boundary): New class to signal an immediate return
9672 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9674 (input_stack::clear): Use it.
9675 (input_stack::pop_macro): New function.
9676 (while_request): Use `is_return_boundary()'.
9677 (return_macro_request): New function.
9678 (init_input_requests): Use it.
9680 * src/roff/troff/TODO: Updated.
9681 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9683 2001-03-08 Werner LEMBERG <wl@gnu.org>
9685 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9688 2001-03-07 Werner LEMBERG <wl@gnu.org>
9690 Make `\B' more rigid.
9692 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9694 (get_number_rigidly): New function.
9695 * src/roff/troff/input.cc (do_expr_test): Use it.
9696 * src/roff/troff/token.h: Updated.
9698 * src/roff/troff/request.h: Fix typo (init_html_request ->
9699 init_markup_request).
9701 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9703 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9704 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9705 are now `.begin', `.end', `.image'.
9707 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9708 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9709 Use add_char_to_sbuf().
9710 (to_unicode): New function.
9711 (char_translate_to_html): Changing type of `ch' parameter.
9713 (html_printer::~html_printer): Comment out doctype string.
9714 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9715 instead of `.html-end'.
9716 (write_start_image): Use `.begin' and `.image' instead of
9717 `.html-begin' and `.html-image'.
9718 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9719 (html_begin): Renamed to ...
9721 (html_end): Renamed to ...
9723 (html_image): Renamed to ...
9725 (init_html_requests): Renamed to ...
9726 (init_markup_requests): This.
9727 * tmac/www.tmac: Updated.
9729 2001-02-28 Bram <bram@avontuur.org>
9731 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9734 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9736 * doc/meref.me: Fixing some typos.
9738 2001-02-16 Werner LEMBERG <wl@gnu.org>
9740 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9741 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9742 * src/roff/troff/node.h: Updated.
9744 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9746 * tmac/groff_tmac.man: Fix typo.
9748 2001-02-16 Werner LEMBERG <wl@gnu.org>
9750 Fixing a bug which prevented proper end-of-sentence recognition
9751 between an `unformatted' box and the following text. As a
9752 consequence, vertical line distances are no longer preserved in
9753 boxes after a call to `.unformat' -- because boxes aren't
9754 line-oriented (contrary to diversions), this doesn't make sense
9757 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9759 (vertical_size_node::set_unformat_flag): New method.
9760 * src/roff/troff/node.hh: Updated.
9761 * src/roff/troff/input.cc (word_space_node::reread,
9762 hmotion_node::reread): Reset `unformat' flag after usage.
9763 (unformat_macro): Append only if `set_unformat_flag()' returns
9765 * src/roff/troff/troff.man: Updated.
9767 2001-02-15 Werner LEMBERG <wl@gnu.org>
9769 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9770 documentation of `asciify' and `unformat' requests.
9772 2001-02-13 Werner LEMBERG <wl@gnu.org>
9774 Redesigned the `unformat' request. It is no longer connected with
9775 `asciify' but rather uses new `reread()' methods if the `unformat'
9776 flag is set. Additionally, the handling of space characters after
9777 unformatting has been fixed so that they retain their width.
9779 * src/roff/troff/node.h (width_list): New structure to store
9780 original widths of spaces.
9781 (node): Added `unformat' member.
9782 Replaced `num_spaces' variable with `orig_width' list.
9783 * src/roff/troff/node.cc (*node::asciify,
9784 asciify_reverse_node_list): Removed `unformat_only' flag and related
9786 (word_space_node::asciify, word_space_node::word_space_node): Use
9788 (word_space_node::~word_space_node): New destructor.
9789 (word_space_node::copy): Updated to handle `orig_width'.
9790 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9791 (*node::merge_space): Update `orig_width' list if necessary.
9792 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9793 * src/roff/troff/enc.cc (environment::space_newline): Use
9795 (environment::space): Added method to handle space width and
9796 sentence space width as parameters. Use `width_list'.
9797 (environment::make_tab_node): Updated.
9798 * src/roff/troff/env.h: Updated.
9799 * src/roff/troff/input.cc (word_space_node::reread,
9800 unbreakable_space_node::reread, hmotion_node::reread): New methods
9801 to handle nodes specially if `unformat' flag is set.
9802 (do_asciify_macro): Renamed back to ...
9803 (asciify_macro): This.
9804 (unformat_macro): New implementation to simply set the `unformat'
9807 * MORE.STUFF: Added more info about deroff.
9809 2001-02-08 Werner LEMBERG <wl@gnu.org>
9811 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9812 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9813 and `add_self()' methods to avoid hyphenation. For example, the
9814 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9815 soft hyphen after `foo'. Now the hyphen list is correctly
9816 `foo<ignore><ignore>bar'.
9818 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9820 * tmac/groff_tmac.man: Fix `BIR' macro.
9822 2001-02-04 Werner LEMBERG <wl@gnu.org>
9824 A new escape sequence `\:', inserting a zero-width break point.
9826 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9827 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9829 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9831 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9832 and `asciify()' methods.
9833 * src/roff/troff/node.cc (space_node::space_node): Updated.
9834 (space_node::asciify): Handle `was_escape_colon'.
9835 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9837 Handle `\~' similar to other comparable requests.
9839 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9841 (token::next): Move creation of an unbreakable_space_node to...
9842 (token::add_to_node_list): Here.
9844 Fix a bug which sometimes prevented hyphenation of words connected
9845 with `\~' or `\ ' (and other escape sequences handled as
9846 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9847 (after a call to the `unformat' request).
9849 * src/roff/troff/env.h (environment::possibly_break_line,
9850 environment::hyphenate_line): Introducing `start_here' parameter.
9851 * src/roff/troff/env.cc (environment::space_newline,
9852 environment::space): Use it.
9853 (environment::possibly_break_line, environment::hyphenate_line):
9855 * src/roff/troff/input.cc (process_input_stack): Use it.
9856 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9857 space_char_hmotion_node, overstrike_node): Add
9858 `get_hyphenation_type()' method.
9859 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9860 if `unformat_only' is active.
9862 2001-01-30 Werner LEMBERG <wl@gnu.org>
9864 Implemented new read-only number register `.linetabs' which
9865 returns 1 if in line-tabs mode, 0 otherwise.
9867 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9868 * src/roff/troff/env.cc (get_line_tabs): New function.
9869 (init_env_requests): Use it.
9870 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9872 * VERSION, REVISION: Changing to 1.17.0.
9874 2001-01-28 Werner LEMBERG <wl@gnu.org>
9876 Fixed a bug which prevented hyphenation of words which are finished
9879 * src/roff/troff/token.h (token): Add enum type
9880 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9881 * src/roff/troff/input.cc (token::next, token::description,
9882 get_line_arg, token::add_to_node_list, token::process): Use it.
9884 2001-01-27 Werner LEMBERG <wl@gnu.org>
9886 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9887 * src/roff/troff/div.cc (do_divert): Use it.
9889 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9891 2001-01-25 Werner LEMBERG <wl@gnu.org>
9893 Adding the `linetabs' request. If set, tab distances are not
9894 computed relative to the input line but relative to the output line.
9896 * src/roff/troff/env.h (environment): New member `line_tabs'.
9897 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9898 (environment::environment, environment::copy): Updated.
9899 (environment::distance_to_next_tab): Use `line_tabs'.
9900 (init_env_requests): Register request.
9901 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9904 2001-01-24 Werner LEMBERG <wl@gnu.org>
9906 Introducing a new read-only register `.int' which is set to a
9907 positive value if the last output line is interrupted (i.e., if it
9910 * src/roff/troff/env.cc (init_env_requests): Add it.
9911 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9913 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9915 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9916 * src/preproc/html/pre-html.cc (findPrefix): New function which
9917 generates the troff executable name via the system prefix.
9918 * src/preproc/eqn/main.cc: Modified warning message.
9920 2001-01-23 Werner LEMBERG <wl@gnu.org>
9922 troff's `box' and `boxa' requests didn't preserve temporary
9925 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9926 `saved_target_text_length' members.
9927 * src/roff/troff/div.cc (do_divert): Use them.
9929 Tabs (but not yet leaders and fields) are now handled correctly by
9932 * node.h (hmotion_node): Add field `was_tab'.
9933 * env.cc (environment::make_tab_node): Set it.
9934 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9936 Added new request `unformat' which will, contrary to `asciify',
9937 preserve font information after unformatting (i.e., only nodes
9938 dealing with horizontal space are converted back to input
9941 * input.cc (asciify_macro): Renamed to ...
9942 (do_asciify_macro): this, having a new parameter `unformat_only'.
9943 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9944 (init_input_requests): Added `unformat'.
9945 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9946 parameter to control asciification process.
9947 * node.h (*_node::asciify): Ditto.
9948 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9950 2001-01-20 Werner LEMBERG <wl@gnu.org>
9952 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9954 2001-01-18 Werner LEMBERG <wl@gnu.org>
9956 * tmac/ps.tmac: Remove call of psold.tmac.
9957 * tmac/psold.tmac: Comment updated.
9958 * tmac/psnew.tmac: Removed since no longer needed.
9959 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9961 * font/devutf8/R.proto: Adding `shc' glyph.
9962 * font/devutf8/NOTES: Updated.
9964 * test-groff: Updated.
9966 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9968 First cut of the new html device driver. Changes to pre-html and
9969 the new grohtml are too numerous to be documented here.
9971 Stuff related to `html' has been renamed to `html-old' and `html2'
9972 stuff has been renamed to `html' (including directories). The new
9973 html device driver is therefore invoked as `-Thtml'.
9975 Added new `\O' escape to suppress output (needed by html driver).
9977 Added functions and code to pass info about input-level commands
9978 (`.in', `.fl', etc.) to html driver.
9980 Three new functions (.html-begin, .html-end, and .html-image) for
9981 better html handling: `html-begin' will execute the remaining line
9982 if at the outermost nesting level, increasing an internal counter.
9983 `html-end' does the same but decreases the internal counter.
9984 `html_image' puts its arguments into a special node (suppress_node)
9985 to define an image region.
9987 The `output' request has been removed.
9989 * tmac/html-tags.tmac: Removed.
9990 * tmac/arkup.tmac: Updated and renamed to ...
9991 * tmac/www.tmac: New file.
9992 * tmac/markup.tmac Updated and renamed to ...
9993 * tmac/mwww.tmac: New file.
9994 * tmac/Makefile.sub: Updated.
9995 * tmac/an-old.tmac: Updated.
9996 * tmac/eqnrc: Updated.
9997 * tmac/groff_man.man
9998 * tmac/groff_markup.man: Updated and renamed to ...
9999 * tmac/groff_mwww.man: New file.
10000 * tmac/groff_tmac.man: Updated.
10001 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10002 * tmac/html.tmac: Updated and renamed from html2.tmac.
10003 * tmac/pspic.tmac: Updated html support.
10004 * tmac/s.tmac: Added html output support.
10005 * tmac/troffrc, tmac/troffrc-end: Updated.
10007 * Makefile.in, doc/Makefile: Updated.
10008 * doc/groff.texinfo: Added info about new `\O' escape.
10009 * doc/homepage.ms: Use `MAILTO' macro.
10011 * font/devhtml/DESC.proto: Add `C' font.
10012 * font/devhtml/Makefile.sub: Updated.
10013 * font/devhtml/R.proto: Minor fixes.
10014 * font/devhtml-old/Makefile.sub: Updated.
10016 * src/devices/grohtml-old/Makefile.sub: Updated.
10018 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10020 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10021 graphic_start): Add `inline' parameter. Update.
10022 (html_end_suppress, graphic_end): Update.
10024 * src/include/html-strings.h: New file.
10025 * src/include/htmlindicate.h: Comments updated.
10026 * src/include/printer.h: Updated.
10028 * src/preproc/eqn/main.cc (do_file, main): Updated.
10029 * src/preproc/pic/troff.cc (troff_output::start_picture,
10030 troff_output::finish_picture): Updated.
10031 * src/preproc/tbl/main.cc (process_input_file): Updated.
10033 * src/roff/groff/groff.cc (main): Updated.
10034 Pass device arguments to predrivers also.
10035 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10036 * src/roff/troff/env.h (environment): Updated.
10037 New elements `need_eol' and `ignore_next_eol' (for html output).
10038 * src/roff/troff/env.cc (environment::environment): Add initializers
10039 for `need_eol' and `ignore_next_eol'.
10040 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10042 (point_size, fill, no_fill, center, right_justify, line_length,
10043 indent, temporary_indent, break_request, handle_tab): Use
10045 (set_tabs): Use `add_html_tag_tabs()'.
10046 (environment::add_html_tag): Updated.
10047 (environment::do_break): Updated.
10048 * src/roff/troff/div.cc (space_request, flush_output): Use
10049 `environment::add_html_tag()'.
10050 * src/roff/troff/input.cc: Updated.
10051 New variable `html_level' to indicate nested `html-begin' requests.
10052 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10053 (non_interpreted_char_node, token_node, non_interpreted_node): Add
10054 `force_tprint()' method.
10055 (token::next): Handle `\O'.
10056 (do_suppress): Implement it.
10057 (html_begin, html_end, html_image): New functions.
10058 (init_output_requests): Renamed to ...
10059 (init_html_requests): this.
10061 (macro::append_str, macro::append_unsigned, macro::append_int): New
10063 New variable `output_low_mark_miny' to limit minimal value of y.
10064 (reset_output_registers): Use it.
10065 (output_request): Removed.
10066 (get_output_registers): New function.
10067 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10068 (*_node): Added `force_tprint()' if necessary.
10069 (special_node): New elements `tf' and `get_tfont()'.
10070 (suppress_node): New class.
10071 * src/roff/troff/node.cc:
10072 New global variables `image_no' and `suppress_start_page'.
10073 (real_output_file): New method `is_on()'.
10074 (troff_output_file): New method `start_special(tfont)'.
10075 (troff_output_file::really_print_line): Use `tprint' conditionally.
10076 (real_output_file::print_line): Updated.
10077 (real_output_file::on): Updated.
10078 (*_node): Added `force_tprint()'.
10079 (special_node::special_node): Initializer updated.
10080 (special_node::same, special_node::copy, special_node::tprint_start):
10082 (get_reg_int, get_reg_str): New functions.
10083 (suppress_node::*): New methods.
10084 New global variables last_position, last_image_filename;
10085 (min): New inline function.
10086 * src/roff/troff/reg.h, src/roff/troff/request.h,
10087 src/roff/troff/troff.h: Updated.
10089 2001-01-13 Werner LEMBERG <wl@gnu.org>
10091 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10092 documentation of `asciify' request.
10094 2001-01-12 Werner LEMBERG <wl@gnu.org>
10096 * src/roff/troff/input.cc: Move definition of special characters
10097 like `ESCAPE_TILDE' to ...
10098 * src/roff/troff/input.h: New file.
10099 * src/roff/troff/Makefile.sub (HDRS): Add it.
10101 Extending the .asciify request to `unformat' space characters also.
10103 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10104 to count input space characters.
10105 Update constructors to take care of it.
10106 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10107 `ESCAPE_SPACE' instead of normal space.
10108 (word_space_node::asciify): New method.
10109 (unbreakable_space_node::asciify): New method.
10110 (word_space_node::merge_space): New method.
10111 * src/roff/troff/env.cc (environment::space_newline,
10112 environment::space): Add code to initialize `num_spaces' (using the
10113 constructor of `word_space_node').
10114 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10117 2001-01-09 Werner LEMBERG <wl@gnu.org>
10119 * man/groff_char.man: Use table header traps only conditionally.
10121 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
10123 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10125 2001-01-08 Werner LEMBERG <wl@gnu.org>
10127 Introducing the `box' and `boxa' requests which are similar to
10128 `di' resp. `da' but omitting a partially filled line (which is
10129 restored after ending the diversion).
10131 * src/roff/troff/div.h (diversion): Add elements to save partially
10133 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10134 partially filled line.
10135 (divert, divert_append): Updated.
10136 (box, box_append): New functions.
10137 (init_div_requests): Use them.
10138 * src/roff/troff/env.h (environment): do_divert() is now a friend.
10139 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10141 * doc/groff.texinfo: Fix documentation of `lf' request.
10143 2000-12-25 Werner LEMBERG <wl@gnu.org>
10145 * src/roff/troff/troff.man, NEWS: Document `writem' request.
10147 2000-12-21 Werner LEMBERG <wl@gnu.org>
10149 Ignore `ss' request if in compatibility mode.
10151 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10152 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10153 * src/roff/troff/env.cc (space_size): Use it.
10155 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10156 `ss' request in nroff mode.
10158 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10161 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
10163 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10165 2000-12-13 Werner LEMBERG <wl@gnu.org>
10167 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10168 * src/preproc/eqn/neqn.man: Small fixes and additions.
10170 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
10172 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10175 * src/preproc/eqn/neqn.man: New file.
10177 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10180 * tmac/e.tmac: Add `T&' macro.
10181 Fix `indent cannot be negative' warning.
10182 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10184 2000-12-07 Werner LEMBERG <wl@gnu.org>
10186 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10188 2000-12-06 Werner LEMBERG <wl@gnu.org>
10190 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10193 * MORE.STUFF: Added info about deroff for djgpp.
10195 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10196 documentation of -rcR switch.
10198 2000-12-03 Werner LEMBERG <wl@gnu.org>
10200 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10201 if -rcR=1 (which is now the default in nroff mode), a single, very
10202 long page is created instead of multiple pages: All `ne' and `wh'
10203 requests are put into conditionals; a new macro `an-end' is added to
10204 be called with `em'.
10206 Some other minor cleanups.
10208 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10210 2000-12-02 Werner LEMBERG <wl@gnu.org>
10212 Fixing a bug which prevented hyphenation in words followed
10213 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10215 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10216 Adding possibly_break_line().
10217 * src/roff/troff/env.h (environment): Make possibly_break_line()
10220 Make `\~' usable in .tr request.
10222 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10223 (token): Add stretchable_space().
10224 * src/roff/troff/input.cc (token::next, token::delimiter,
10225 token::description, process_input_stack, do_translate,
10226 add_to_node_list, token::process): Use it.
10227 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10228 for adjusting the space.
10229 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10230 for stretchable space.
10231 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10232 (make_node): Add code for stretchable space.
10233 * src/roff/troff/env.cc (environment::add_char): Use it.
10234 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10235 (get_copy, token::next, transparent_translate, asciify): Use it.
10237 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10238 doc/groff.texinfo: Updated.
10239 * man/groff.man: Small reorderings.
10241 2000-11-23 Werner LEMBERG <wl@gnu.org>
10244 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10246 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10247 `safer_macro_path' to -M option.
10248 * src/roff/troff/troff.man: Fixes.
10250 2000-11-22 Werner LEMBERG <wl@gnu.org>
10252 Use safer path (except for config files) if -U isn't specified. Add
10253 a special macro path (without home and current directory) for config
10254 files. Add home directory to unsafe path for consistency. Don't
10255 include the home directory in the font path.
10257 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10259 * src/include/macropath.h: Add `config_macrp_path'.
10260 * src/libs/libgroff/fontfile.cc: Fix font path.
10261 * src/roff/troff/input.cc (process_startup_file): Use
10262 `config_macro_path'.
10263 (main): Select unsafe path if -U is given.
10265 * src/preproc/eqn/main.cc (main): Fixing search path for
10266 configuration file.
10267 * src/preproc/eqn/eqn.man: Updated.
10269 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10272 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10273 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10274 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10275 src/devices/grotty/grotty.man: Updated.
10277 * Makefile.in: Fix comments.
10279 2000-11-17 Werner LEMBERG <wl@gnu.org>
10281 * tmac/safer.tmac: Empty file added (again) for compatibility
10283 * tmac/Makefile.sub: Updated.
10285 2000-11-16 Werner LEMBERG <wl@gnu.org>
10287 * src/devices/grodvi/dvi.cc (main),
10288 src/devices/grohtml2/post-html.cc (main),
10289 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10290 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10291 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10292 (main), src/preproc/html2/pre-html.cc (main),
10293 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10294 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10295 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10296 (main), src/utils/hpftodit/hpftodit.cc (main),
10297 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10298 (main), src/utils/lookbib/lookbib.cc (main),
10299 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10300 (main): Use stdout for -v.
10301 * src/roff/groff/groff.cc (run_commands),
10302 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10303 to make direct printing to stdout possible.
10304 * src/roff/groff/pipeline.h: Updated.
10306 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10307 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10308 * src/utils/afmtodit/afmtodit.man: Updated.
10310 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10311 (version): New function.
10313 * src/utils/addftinfo/addftinfo.man: Updated.
10315 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10316 Fixing copyright dates.
10318 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10321 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10324 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10326 2000-11-15 Werner LEMBERG <wl@gnu.org>
10328 In all programs, make -v return immediately with exit status 0 to
10329 be compliant with the GNU standard.
10331 * src/devices/grodvi/dvi.cc (main),
10332 src/devices/grohtml2/post-html.cc (main),
10333 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10334 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10335 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10336 (main), src/preproc/html2/pre-html.cc (main),
10337 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10338 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10339 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10340 (main): Implement it.
10343 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10344 and postprocessors to the -v option.
10346 * src/roff/grog/grog.pl: Implement -v.
10347 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10348 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10350 * src/roff/nroff/nroff.sh: Implement -v.
10351 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10352 * src/roff/nroff/nroff.man: Updated.
10354 * src/preproc/eqn/main.cc (main): Fix comment typo.
10356 * MORE.STUFF: Added info about djgpp port of grap.
10358 2000-11-14 Werner LEMBERG <wl@gnu.org>
10360 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10361 mode (or rather, implemented non-compatibility mode).
10362 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10364 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10365 replacing it -- we don't find gxditview otherwise.
10366 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10368 * src/preproc/pic/depend: Removed. Unnecessary.
10370 Implemented dummy keyword `solid' in pic for compatibility with
10373 * lex.cc (lookup_keyword): Added `solid'.
10374 * pic.y: Added SOLID with dummy rule.
10375 * pic.cc, pic_tab.h: Regenerated.
10376 * doc/pic.ms: Updated.
10378 2000-11-13 Werner LEMBERG <wl@gnu.org>
10380 For security reasons, don't use the current directory but the home
10381 directory while searching and scanning troffrc and troffrc-end.
10382 Similarly, replace the current directory with the home directory
10385 * Makefile.in (fontpath, tmacpath): Remove current directory.
10387 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10388 two parameters `add_home' and `add_current'.
10389 (search_path::~search_path, search_path::command_line_dir,
10390 search_path::open_file): Remove tests for `dirs' being zero.
10391 * src/include/searchpath.h: Adjust.
10392 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10393 `safer_macro_path'.
10394 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10396 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10397 * src/roff/troff/input.cc: Use `mac_path', initialized with
10399 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10400 * src/roff/troff/env.cc: Use `mac_path'.
10402 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10404 * NEWS, man/roff.man, src/roff/troff/troff.man,
10405 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10408 2000-11-12 Werner LEMBERG <wl@gnu.org>
10410 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10412 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10413 * configure.in: Fix typo in comment.
10414 * configure: Regenerated.
10416 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10419 2000-11-08 Werner LEMBERG <wl@gnu.org>
10421 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10423 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10424 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10427 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10428 * tmac/Makefile.sub (install_data): Create
10429 $(systemtmacdir) and $(localtmacdir).
10430 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10431 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10432 NEWS, doc/groff.texinfo: Updated and minor fixes.
10434 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10435 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10436 $(systemtmacdir) since the wrapper files are platform-dependent.
10438 2000-11-01 Werner LEMBERG <wl@gnu.org>
10440 * doc/groff.texinfo: Fix typo.
10442 2000-10-26 Werner LEMBERG <wl@gnu.org>
10444 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10445 tmac.doc.old -> doc-old.tmac
10446 tmac.an.old -> an-old.tmac
10448 * tmac/tmac.*: Moved to ...
10449 * tmac/*.tmac: this.
10450 * tmac/man.local: Fix comment.
10451 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10452 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10453 Added some `FILES' sections. More use of @...@ directives. Other
10455 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10456 * doc/homepage.ms, doc/groff.texinfo: Updated.
10457 * man/groff.man, man/roff.man: Updated.
10458 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10459 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10460 src/devices/grotty/grotty.man: Updated.
10461 * src/preproc/pic/pic.man: Updated.
10462 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10463 instead of -mdoc.old.
10464 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10465 * src/roff/nroff/nroff.man: Updated.
10468 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10470 * tmac/mm.diff: Removed -- it has no use now since the mm package
10473 * tmac/*: Removed trailing spaces.
10475 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10476 the tmac subdirectory also).
10478 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10479 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10480 stuff since it is no longer needed.
10482 * README, PROBLEMS: Updated.
10484 2000-10-25 Werner LEMBERG <wl@gnu.org>
10486 Invert current behaviour: Search first FOOBAR.tmac, then
10489 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10490 (open_mac_file, macro_source): Implement it.
10491 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10492 doc/groff.texinfo, NEWS: Document it.
10494 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10495 Small documentation improvements.
10497 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10498 subdirectory also).
10500 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10502 2000-10-24 Werner LEMBERG <wl@gnu.org>
10504 Add local tmac directory (groff/site-tmac).
10506 * Makefile.in: Add $(localtmacdir).
10507 (uninstall_dirs): Add $(localtmacdir).
10508 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10509 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10510 in $(localtmacdir). Create $(localtmacdir).
10511 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10512 Updated and minor fixes.
10514 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10516 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10518 2000-10-23 Werner LEMBERG <wl@gnu.org>
10520 Move hyphen.us to tmac directory.
10522 * src/roff/troff/hyphen.us: Removed.
10523 * src/tmac/hyphen.us: Added.
10524 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10526 Change installation structure for data files from .../groff/... to
10527 .../groff/<version><revision>/... to be conform with other GNU
10530 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10531 doc/Makefile: Implement it.
10532 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10533 * configure: Updated.
10534 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10535 * NEWS: Document it.
10536 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10537 @MACRODIR@ instead of hard-coded directories.
10539 2000-10-22 Werner LEMBERG <wl@gnu.org>
10541 Implement $GROFF_BIN_PATH environment variable (which defaults to
10542 $bindir) used for child programs of groff and similar wrappers.
10544 * gendefs.sh: Improve documentation.
10545 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10546 src/preproc/eqn/Makefile.sub (neqn),
10547 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10548 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10550 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10551 $GROFF_PATH__ (the latter for communication with troff).
10552 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10554 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10555 doc/groff.texinfo: Document it.
10557 * doc/groff.texinfo: Improve documentation of troff's -a option.
10559 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10561 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10562 non-intrusive eol marker.
10563 (troff_output_file::determine_line_limits): New function.
10564 (troff_output_file::draw): Use it.
10565 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10566 output_pending_lines() instead of output_line().
10567 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10568 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10569 createImage): Small fixes.
10571 2000-10-14 Werner LEMBERG <wl@gnu.org>
10573 Replace tmac.safer with a real secure solution.
10575 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10576 system_request, pipe_output): Disable requests if in safer mode.
10577 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10578 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10579 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10580 doc/groff.texinfo, src/roff/groff/groff.man,
10581 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10583 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10584 (resource_manager::output_prolog): Replace setenv() with putenv().
10586 2000-10-09 Werner LEMBERG <wl@gnu.org>
10588 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10589 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10590 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10591 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10592 compilation errors with some compilers. It seems that this code
10593 is no longer necessary -- if yes, it is easy to add some #ifdef's
10594 for that particular old-fashioned compiler.
10596 * MORE.STUFF: Added info about Meta-tbl.
10598 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10600 2000-10-07 Werner LEMBERG <wl@gnu.org>
10602 Adding a new escape sequence \B'...': If the string between
10603 the delimiters is a valid numeric expression, return the character
10604 `1', and `0' otherwise. This is an analogon to \A.
10606 * src/roff/troff/input.cc (do_expr_test): Implement it.
10607 (token::next): Use it.
10608 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10610 * tmac/tmac.trace: Made independent from escape character.
10612 2000-10-06 Werner LEMBERG <wl@gnu.org>
10614 Adding a new request .dei: define indirect. The first and second
10615 parameter of .dei are taken from string registers instead directly;
10616 this very special request is needed to make tmac.trace independent
10617 from the escape character (which might even be disabled).
10619 * src/roff/troff/input.cc (do_define_macro): Implement it.
10620 (define_macro_indirect): New function.
10621 (init_input_requests): Use it.
10623 Adding two requests .ecs and .ecr: Save and restore the escape
10624 character. These two requests are needed to make tmac.trace
10625 independent from the escape character (which might even be
10628 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10630 (init_input_requests): Use it.
10632 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10634 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10636 Adding a new option -P and new environment variable GROPS_PROLOGUE
10637 to grops, selecting a different prologue file (minor modifications
10640 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10641 src/devices/grops/ps.cc (main): Implement it.
10642 * src/devices/grops/grops.man, NEWS: Document it.
10644 2000-09-22 Werner LEMBERG <wl@gnu.org>
10646 * INSTALL: Add info about selecting paper format.
10648 2000-09-21 Werner LEMBERG <wl@gnu.org>
10650 * src/roff/troff/input.cc (main): Fixing compiler warning.
10651 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10652 strings.h from the former to the latter.
10653 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10654 stuff from the former to the latter.
10656 2000-09-11 Werner LEMBERG <wl@gnu.org>
10658 Implementing two new requests .tm1 and .tmc: The former is similar
10659 to .tm but can output leading spaces; its syntax is similar to
10660 defining a string, i.e., a `"' can be used to mark the beginning of
10661 the string to be written to stderr: `.tm1 " test'. The latter is
10662 similar to .tm1 but doesn't write out a final newline character.
10664 * src/roff/troff/input.cc (terminal1, terminal_continue,
10665 do_terminal): New functions.
10666 (init_input_requests): Use them.
10667 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10669 2000-09-09 Werner LEMBERG <wl@gnu.org>
10671 * tmac/groff_mdoc.samples.man: Small fixes.
10673 2000-09-08 Werner LEMBERG <wl@gnu.org>
10675 * tmac/groff_mdoc.man: Fixing typo.
10677 2000-09-02 Werner LEMBERG <wl@gnu.org>
10679 Implementing a .nop request which does nothing.
10681 * src/roff/troff/input.cc (nop_request): New function.
10682 (init_input_requests): Use it.
10683 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10685 2000-09-01 Werner LEMBERG <wl@gnu.org>
10687 * doc/groff.texinfo: Added some comments.
10689 2000-08-30 Werner LEMBERG <wl@gnu.org>
10691 * src/roff/troff/TODO: Updated.
10693 2000-08-25 Werner LEMBERG <wl@gnu.org>
10695 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10697 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10699 * font/devps/generate/Makefile (SHELL): Define explicitly to
10700 "/bin/sh", for non-Unix platforms.
10701 (extraclean): Use a more portable "" quoting instead of a
10702 backslash (which doesn't work on DOS/Windows).
10704 * font/devlj4/generate/Makefile (extraclean): Ditto.
10706 * font/devdvi/generate/Makefile (extraclean): Ditto.
10708 2000-08-25 Werner LEMBERG <wl@gnu.org>
10710 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10711 src/roff/troff/troff.man: Document Eli's latest changes.
10713 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10715 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10716 macro file names of the form NAME.tmac as well as tmac.NAME.
10718 2000-08-25 Werner LEMBERG <wl@gnu.org>
10720 * src/include/posix.h: Remove definition of FILENAME_MAX.
10722 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10723 `sys_fatal' and `stop' function().
10725 * test-groff: Updated.
10727 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10729 Added the new troff command .output <arg> to suppress output (while
10730 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10731 registers (for passing the output dimensions to the output device).
10733 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10735 * src/roff/troff/node.h, src/roff/troff/node.cc
10736 (troff_output_file::really_print_line,
10737 ascii_output_file::really_print_line,
10738 supress_output_file::really_print_line): Use `width' parameter.
10739 (troff_output_file::really_on, troff_output_file::really_off,
10740 output_file::on, output_file::off, real_output_file::on,
10741 real_output_file::off, real_output_file::really_on,
10742 real_output_file::really_off): New functions.
10743 (real_output_file:public output_file): New variable `output_on'.
10744 (real_output_file::begin_page, real_output_file::copy_file,
10745 real_output_file::transparent_char, real_output_file::print_line):
10747 (real_output_file::print_line): Use check_output_limits.
10748 * src/roff/troff/reg.h, src/roff/troff/request.h,
10749 src/roff/troff/input.cc (assign_registers): New function to remove
10751 (do_ps_file): Use it.
10752 (check_output_limits, reset_output_registers, output_request,
10753 init_output_requests): New functions.
10754 (init_input_requests): Updated.
10756 Added new grohtml2 device and html2 preprocessor (coding
10757 not yet finished) which will eventually replace grohtml.
10759 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10761 * src/include/htmlindicate.h, src/include/htmlindicate
10762 (html_begin_suppress, html_end_suppress): New functions.
10763 * src/preproc/tbl/main.cc: Use it.
10764 * src/roff/groff/groff.cc: Add support for html2 device (which will
10765 automatically invoke the html2 preprocessor).
10766 * src/roff/troff/input.cc (is_html2): New variable.
10767 * src/roff/troff/troff.h, src/roff/troff/env.h,
10768 src/roff/troff/env.cc (environment::add_html_tag): New function
10770 (environment::do_break): Use it.
10771 * font/devhtml2/*: New files.
10772 * src/devices/grohtml2: New device.
10773 * src/preproc/html2: New preprocessor.
10774 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10776 2000-08-23 Werner LEMBERG <wl@gnu.org>
10778 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10780 2000-08-22 Werner LEMBERG <wl@gnu.org>
10782 * src/include/lib.h: Provide a fix for IRIX to not include
10785 2000-08-18 Werner LEMBERG <wl@gnu.org>
10787 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10788 since some non-GNU sed programs can't handle null regexps.
10789 * configure, src/preproc/eqn/Makefile.sub,
10790 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10792 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10793 bug (string.h and strings.h are both needed according to latest
10796 * MORE.STUFF: Added info about unroff and troffcvt.
10798 2000-08-08 Werner LEMBERG <wl@gnu.org>
10800 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10803 * tmac/tmac.man.old: Remove unused number register.
10805 * tmac.doc: Minor documentation fix.
10807 2000-08-07 Paul Eggert <eggert@twinsun.com>
10809 * src/roff/groff/pipeline.c (is_system_shell):
10810 Fix typo: "monocased_shell" no longer exists.
10812 2000-08-07 Paul Eggert <eggert@twinsun.com>
10814 Remove FILENAME_MAX limits.
10816 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10817 that the argument length is less than FILENAME_MAX.
10818 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10819 Use struct hack to allocate and free file name.
10820 (struct xtmpfile_list): fname is now part of the structure,
10821 not a pointer to another string.
10823 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10825 * src/include/posix.h: Add a default value for FILENAME_MAX.
10827 2000-08-06 Paul Eggert <eggert@twinsun.com>
10829 Add support for new BSD-style man pages (with ".Dd" instead of
10830 ".TH"), so that "groff -man" understands both styles, even
10831 when running "groff -man" on a host whose system man page
10832 macros don't support ".Dd".
10834 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10835 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10836 in case the system man macros don't define Dd or TH.
10838 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10839 * tmac/tmac.an: New one-line file.
10840 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10842 2000-08-06 Werner LEMBERG <wl@gnu.org>
10844 * src/roff/troff/troff.man: Fixing typos.
10846 Version 1.16.1 released
10847 =======================
10849 2000-07-31 Werner LEMBERG <wl@gnu.org>
10851 Preparing release 1.16.1.
10853 * REVISION: Revision number set to 1.
10854 * MORE.STUFF: Added info about port to DOS.
10855 * NEWS, win32-diffs: Updated.
10857 * src/include/nonposix.h: Remove first line -- this file is used
10860 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10863 2000-07-30 Werner LEMBERG <wl@gnu.org>
10865 * doc/texinfo.tex: Update to latest version.
10867 2000-06-28 Paul Eggert <eggert@twinsun.com>
10869 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10870 commands that fail. Don't assume that "export a=b" is valid shell
10871 syntax. This is needed for Solaris 2.5.1.
10873 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10874 comment about missing Solaris headers.
10876 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10878 2000-06-25 Werner LEMBERG <wl@gnu.org>
10880 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10883 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10885 * win32-diffs: Updated.
10886 * README.WIN32: Added CRs to make all Windows editors happy.
10888 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10889 src/roff/groff/pipeline.c).
10891 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10893 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10894 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10896 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10898 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10899 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10901 (main): Support non-Posix systems with several different styles of
10902 slash characters in file names.
10904 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10905 (main) [SET_BINARY]: Switch stdin into binary mode.
10907 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10908 (main): Support file names with several possible slash-type
10909 characters, as given by DIR_SEPS[] in nonposix.h.
10910 (main) [__MSDOS__]: If renaming the temporary index file fails
10911 because it has more than one dot in its trunk, replace the dot
10912 with an underscore and try again.
10913 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10915 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10917 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10918 (File::File): Open the input file in binary mode. Strip CR
10919 characters from each CR-LF pair.
10920 (xbasename): Support file names with several possible slash-type
10921 characters, as given by DIR_SEPS[] in nonposix.h.
10923 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10925 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10926 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10927 [!_POSIX_VERSION]: Define for traditional Unix systems.
10928 (real_output_file::real_output_file): Remove the MSVC-specific
10929 call to popen, use instead POPEN_WT, appropriately defined on
10930 nonposix.h. #include nonposix.h.
10931 (real_output_file::~real_output_file): Remove the MSVC-specific
10932 call to pclose, a suitable macro is now defined on nonposix.h.
10933 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10934 and WEXITSTATUS instead of assuming traditional Unix
10935 interpretation of the status returned by pclose.
10937 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10938 call to popen, use POPEN_RT instead (appropriately defined on
10939 nonposix.h). #include nonposix.h.
10940 (ps_bbox_request): Open the PostScript file in binary mode.
10941 Close the file after processing it.
10942 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10945 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10946 A version of run_pipeline that doesn't use `fork'.
10947 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10948 (system_shell_name, system_shell_dash_c)
10949 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10950 the ugliness of testing DOS/Windows file names for equality, and
10951 support both stock shells and ports of Unix shells.
10953 * src/roff/groff/groff.cc: #include nonposix.h.
10954 (BSHELL): Definition moved to nonposix.h.
10955 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10956 instead of a literal "-c".
10957 (xbasename): Support file names with several possible slash-type
10958 characters, as given by DIR_SEPS[] in nonposix.h.
10959 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10960 of literal strings.
10962 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10963 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10965 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10968 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10970 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10973 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10975 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10976 P_tmpdir is defined, use it instead of the literal "/tmp".
10977 (remove_tmp_files, add_tmp_file): New functions.
10978 (xtmpfile): Record temporary files and register an atexit function
10979 to delete them explicitly, instead of relying on the OS to do
10980 that, which doesn't work on non-Unix systems.
10982 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10983 (search_path::search_path): Use PATH_SEP instead of a literal
10985 (search_path::command_line_dir): Ditto.
10986 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10987 to support non-Posix systems.
10989 * src/libs/libbib/search.cc: #include nonposix.h.
10990 (search_list::add_file): Open the file in binary mode.
10992 * src/libs/libbib/linear.cc: #include nonposix.h.
10993 (file_buffer::load): Remove \r characters preceding \n from the
10996 * src/libs/libbib/index.cc: #include nonposix.h.
10997 (make_index_search_item): Open index_filename in O_BINARY mode.
10998 (index_search_item_iterator::get_tag): Ditto. Remove \r
10999 characters before \n characters.
11000 (index_search_item::check_files): Open files in binary mode.
11001 (index_search_item::munge_filename): Support DOS-style file names
11002 with backslashes and drive letters, use IS_ABSOLUTE.
11004 * src/devices/grops/ps.cc: #include nonposix.h.
11005 (main) [SET_BINARY]: Switch stdout to binary mode.
11007 * src/devices/grolj4/lj4.cc: #include nonposix.h.
11008 (main) [SET_BINARY]: Switch stdout to binary mode.
11010 * src/devices/grolbp/lbp.cc: #include nonposix.h
11011 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11013 * src/devices/grodvi/dvi.cc: #include nonposix.h.
11014 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11016 (main) [SET_BINARY]: Switch stdout to binary mode.
11017 [_MSC_VER]: Remove an explicit call to _setmode.
11019 * src/include/nonposix.h: New file.
11021 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11022 operation when building with DJGPP.
11023 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11024 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11027 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11029 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11030 etc. can include a semi-colon on DOS/Windows.
11031 (depend.temp): Use depend1.temp instead of depend.temp1, to
11032 prevent files from overerwiting each other on 8+3 filesystems.
11034 * gendef.sh (t): Change definition to work with DOS/Windows.
11036 doc/groff.texinfo: Apart of some typo corrections, I also changed
11037 some index entris, to make them more non-ambiguous, and also put
11038 @ignore around some parts that are not yet written, to allow the
11039 Info output be readable.
11041 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
11043 Replaced specific checks for function declarations with a generic
11044 routine taken from GNU bfd.
11046 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11047 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11048 * configure.in: Use it.
11049 * src/devices/grolbp/lbp.cc, src/include/lib.h,
11050 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11051 src/roff/groff/groff.cc: Use it.
11052 * Makefile.in, configure: Updated.
11054 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
11056 * src/devides/grolbp/lbp.h: Removed unused variables.
11058 2000-05-31 Keith Thompson <kst@sdsc.edu>
11060 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11063 2000-05-31 Werner LEMBERG <wl@gnu.org>
11065 * aclocal.m4 (GROFF_SRAND): New function to test the return value
11066 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11067 * configure.in: Use it.
11068 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11069 * configure, Makefile.in: Updated.
11071 * configure.in: Add test for strncasecmp().
11072 * src/include/lib.h: Use it.
11074 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
11076 * src/preproc/grn/Makefile.sub: Add MLIB.
11078 2000-05-29 Nix <nix@esperi.demon.co.uk>
11080 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11082 2000-05-29 Werner LEMBERG <wl@gnu.org>
11084 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11086 * PROBLEMS: Small update.
11088 * src/devices/grolbp/lbp.cc: Various small fixes.
11090 2000-05-28 Keith Thompson <kst@sdsc.edu>
11092 * src/roff/nroff/nroff.sh: Fix main loop syntax.
11094 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11096 2000-05-25 Werner LEMBERG <wl@gnu.org>
11098 * man/roff.man: Removed unused macro.
11100 2000-05-24 Werner LEMBERG <wl@gnu.org>
11102 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
11103 This is needed e.g. if you do
11104 `make distclean; ./configure; make dist'.
11106 Version 1.16 released
11107 =====================
11109 2000-05-23 Werner LEMBERG <wl@gnu.org>
11111 Adding font CWI (constant width italic) to devdvi.
11113 * font/devdvi/CWI: New file.
11114 * font/devdvi/generate/Makefile: Add generating rule.
11115 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11116 tmac/tmac.dvi: Use it.
11117 * NEWS: Announce it.
11119 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11120 * font/devlj4/generate/Makefile: Cosmetic changes only.
11122 * man/groff.man: Removed most of the redundant description of
11123 special characters (which is in groff_char.man). Added font
11124 translation CB->CR for devdvi. Other minor fixes.
11126 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11127 (registered) symbols.
11129 2000-05-22 Werner LEMBERG <wl@gnu.org>
11131 * doc/Makefile: Added rule for creating info files.
11133 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
11135 * font/devdvi/generate/Makefile: Fixed dependencies.
11137 * font/devps/*: Regenerated. Heavy changes for Bookman and
11138 NewCentury Schoolbook!
11139 * font/devps/generate/afmname: Will now run with GNU awk.
11140 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11141 * font/devps/generate/Makefile: Cosmetic changes only.
11143 2000-05-21 Werner LEMBERG <wl@gnu.org>
11145 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11146 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
11147 `.SS' now produces a heading with a smaller size than `.SH'.
11148 Completely formatted.
11149 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11151 * man/groff.man: Improved table appearance. Use of `eo' request
11152 to reduce number of doubled backslashes in macro definitions.
11153 Replacing `\e' with `\(rs'. Other minor fixes.
11155 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11156 to have correct line number.
11158 * INSTALL: Small improvement.
11160 2000-05-20 Bernd Warken <bwarken@mayn.de>
11162 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11165 2000-05-19 Bernd Warken <bwarken@mayn.de>
11167 * man/groff.man: Complete update (with a lot of corrections by WL).
11169 2000-05-18 Werner LEMBERG <wl@gnu.org>
11171 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11173 * font/*/*: Implement it.
11174 * man/groff_char.man, NEWS: Document it.
11176 * src/include/unix.h: Removed. It isn't used.
11178 * doc/groff.texinfo: Slight improvements.
11180 2000-05-17 Werner LEMBERG <wl@gnu.org>
11182 * README, win32-diffs: Small fixes and improvements.
11184 2000-05-16 Werner LEMBERG <wl@gnu.org>
11186 * FDL: New file (the Free Documentation License version 1.1).
11188 * doc/groff.texinfo: Added many start-up values for gtroff.
11189 Some structural improvements of the source code.
11191 2000-05-15 Werner LEMBERG <wl@gnu.org>
11193 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11194 * src/roff/troff/troff.man: Added info about troffrc-end.
11196 2000-05-14 Werner LEMBERG <wl@gnu.org>
11198 * Makefile.in (EXTRADIRS): Fix typos.
11199 (dist): Handle deletion of old .tar.gz file correctly.
11200 (DISTDIRS): Include all tty output devices.
11202 * doc/groff.texinfo: Adding more cross references; countless other
11205 2000-05-13 Werner LEMBERG <wl@gnu.org>
11207 * MORE.STUFF: Added Robert Marks's utilities.
11209 2000-05-12 Werner LEMBERG <wl@gnu.org>
11211 Added win32 port contributed by Blake McBride
11212 <blake@florida-software.com>.
11214 * README.WIN32, win32-diffs: New files.
11217 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11218 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11219 (change): Removed unused variables.
11221 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11222 (savebounds): Changed return value from `int' to `void'.
11223 * src/preproc/grn/hdb.cc: Ditto.
11225 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11226 final backslash in comment to avoid compiler warning.
11228 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11230 * doc/groff.texinfo: More fixes.
11232 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11234 * tmac/tmac.doc: Documentation fix.
11236 2000-05-11 Werner LEMBERG <wl@gnu.org>
11238 * doc/groff.texinfo: Reading the source code shows up a lot of
11239 omissions and incorrect data... More conversion to @Deffn macros.
11241 2000-05-10 Werner LEMBERG <wl@gnu.org>
11243 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11246 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11248 2000-05-09 Werner LEMBERG <wl@gnu.org>
11250 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11253 * doc/groff.texinfo: Extended history section. More conversion to
11254 @Deffn macros. More .tr documentation.
11256 2000-05-07 Werner LEMBERG <wl@gnu.org>
11258 * doc/groff.texinfo: Completed tab section. Added info about
11261 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11263 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11265 2000-05-05 Werner LEMBERG <wl@gnu.org>
11267 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11269 * NEWS: Document it.
11271 * man/troff.man: Minor optical improvements.
11273 2000-05-03 Werner LEMBERG <wl@gnu.org>
11275 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11277 * font/*/*: Implement it.
11278 * man/groff_char.man, NEWS: Document it.
11280 2000-05-02 Werner LEMBERG <wl@gnu.org>
11282 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11284 * NEWS: Document the three new man pages.
11286 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11287 * configure: Updated.
11289 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11291 2000-05-01 Werner LEMBERG <wl@gnu.org>
11293 Added grap support to grog.
11295 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11296 * src/roff/grog/grog.man: Document it.
11298 * doc/groff.texinfo, NEWS: Add info about grap support.
11300 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11301 (with slight fixes by me).
11303 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11304 * tmac/Makefile.sub: Add groff_tmac.man.
11305 * man/roff.man: New file giving overview of roff system.
11306 * man/troff.man: A short reference of troff.
11307 * man/Makefile.sub: Add roff.man and troff.man.
11309 2000-04-30 Werner LEMBERG <wl@gnu.org>
11311 Added grap support to groff.
11313 * src/roff/groff/groff.cc: Implement it.
11314 * src/roff/groff/groff.man: Document it.
11316 * src/devices/grotty/grotty.man: Add cp1047 device.
11317 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11319 * src/roff/groff/groff.man: Ditto.
11320 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11321 * doc/groff.texinfo: Ditto.
11323 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11326 2000-04-29 Werner LEMBERG <wl@gnu.org>
11328 * man/groff_char.man: Add `pc' glyph.
11329 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11330 * tmac/tmac.tty: Add `pc' glyph.
11331 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11332 we use cp1047 output device.
11334 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11335 there are still hardcoded latin1->unicode values in utf8's font
11337 * configure: Updated.
11338 * NEWS: Minor clarification. Updated.
11340 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11343 2000-04-28 Werner LEMBERG <wl@gnu.org>
11345 Adding EBCDIC code page 1047.
11347 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11348 font/devcp1047/DESC.proto: New files.
11350 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11351 either ascii/latin1 or cp1047.
11352 * Makefile.in: Use it.
11353 * configure: Updated.
11355 Replacing and/or adding `md' (mathdot) glyph with `pc'
11356 (periodcentered) in all text fonts.
11358 * font/*/*: Change it.
11360 2000-04-27 Werner LEMBERG <wl@gnu.org>
11362 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11364 * configure.in: Add check for strings.h.
11365 * src/include/driver.h: Use HAVE_STRINGS_H.
11366 * src/devices/grolbp/lpb.cc: Remove string.h.
11368 * src/include/groff-getopt.h: New file. It will be used instead of
11369 getopt.h (to be included in lib.h) to avoid endless problems with
11370 picky C++ compilers.
11371 * src/include/lib.h: Use groff-getopt.h.
11372 * src/include/Makefile.sub: Updated.
11374 * configure: Updated.
11375 * Makefile.in: Updated.
11377 * NEWS: Mention EBCDIC support.
11379 2000-04-26 Werner LEMBERG <wl@gnu.org>
11381 * TODO: Some additions.
11383 2000-04-25 Werner LEMBERG <wl@gnu.org>
11385 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11388 2000-04-23 Werner LEMBERG <wl@gnu.org>
11390 * src/roff/troff/troff.man: Minor fixes.
11392 2000-04-22 Werner LEMBERG <wl@gnu.org>
11394 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11395 `.T' string register and the incompatible definition of the `.T'
11396 number register (compared to Unix troff).
11398 * man/groff_char.man: Add some missing characters.
11399 * font/devutf8/NOTES: Update.
11401 2000-04-21 Werner LEMBERG <wl@gnu.org>
11403 * src/include/htmlindicate.h, src/include/lib.h,
11404 src/include/posix.h: Fix copyright.
11406 * src/include/Makefile.sub: Update.
11408 2000-04-20 Werner LEMBERG <wl@gnu.org>
11410 * src/roff/troff/input.cc (input_char_description): Removing
11411 superfluous space char.
11413 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11415 * doc/groff.texinfo: Document EBCDIC.
11417 2000-04-19 Werner LEMBERG <wl@gnu.org>
11419 Introducing `shc' as the glyph name for the soft hyphen character.
11421 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11422 font/devlatin1/R.proto: Use it.
11426 2000-04-18 Werner LEMBERG <wl@gnu.org>
11428 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11429 dependency on ASCII order.
11431 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11433 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11434 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11436 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11437 to increase portability.
11439 2000-04-15 Werner LEMBERG <wl@gnu.org>
11441 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11442 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11443 the generic `\n' if under OS/390 Unix.
11445 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11447 * configure: Regenerated.
11449 2000-04-14 Werner LEMBERG <wl@gnu.org>
11451 * doc/groff.texinfo: More conversions to @Deffn.
11453 2000-04-12 Werner LEMBERG <wl@gnu.org>
11455 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11458 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11460 2000-04-10 Werner LEMBERG <wl@gnu.org>
11462 * doc/groff.texinfo: More conversions to @Deffn.
11464 2000-04-08 Werner LEMBERG <wl@gnu.org>
11466 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11467 Updated to latest version (glibc 2.1.3).
11469 2000-04-07 Werner LEMBERG <wl@gnu.org>
11471 * doc/Makefile (clean): Include more index files.
11472 Add rule texinfo->dvi.
11474 2000-04-05 Werner LEMBERG <wl@gnu.org>
11476 * doc/groff.texinfo: Added new index `op' for operators. More
11477 info on end of sentence characters. More use of @Deffn.
11479 2000-03-30 Werner LEMBERG <wl@gnu.org>
11481 * */*.man: Adding a note that a whitespace can be inserted between
11482 a command line option and its parameter -- we are using GNU getopt.
11484 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11486 2000-03-28 Werner LEMBERG <wl@gnu.org>
11488 Correct anachronism of calling the man macro file with `-man'
11489 instead of `-m man' etc.
11491 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11492 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11493 load tmac.<package>.
11495 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11499 * doc/groff.texinfo: Updated.
11501 * tmac/groff_man.man: Copyright added.
11503 2000-03-27 Werner LEMBERG <wl@gnu.org>
11505 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11506 typeset the request resp. escape name with a tt font -- due to a
11507 bug in texinfo.tex it is necessary to use the `-e' switch with
11510 Improving info about usage of groff units.
11514 2000-03-20 Werner LEMBERG <wl@gnu.org>
11516 * doc/groff.texinfo: Added section about man macro package
11517 (I've basically taken groff_man.man). Introducing new indices `ma'
11518 for macros/strings and `gl' for glyph names. Other minor fixes.
11520 * tmac/groff_man.man: Fixed some typos.
11522 2000-03-19 Werner LEMBERG <wl@gnu.org>
11524 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11527 * doc/texinfo.tex: New file.
11529 2000-03-18 Werner LEMBERG <wl@gnu.org>
11531 * doc/groff.texinfo: Improved section on number registers. Other
11534 2000-03-16 Werner LEMBERG <wl@gnu.org>
11536 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11539 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11540 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11541 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11542 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11544 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11546 * src/roff/grog/grog.man: Updated copyright date.
11548 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11550 * configure.in: Added test for strdup.
11552 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11555 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11559 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11561 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11563 2000-03-11 Werner LEMBERG <wl@gnu.org>
11565 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11567 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11568 * src/include/lib.h: Remove some spaces.
11570 2000-03-10 Werner LEMBERG <wl@gnu.org>
11572 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11573 initializers from arguments (some compilers don't like this).
11575 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11577 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11578 used by pic and eqn to tell grohtml where the graphic regions start
11580 * src/libs/libgroff/Makefile.sub: Use it.
11581 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11582 graphic_start() and graphic_end() from htmlindicate.cc.
11584 2000-03-09 Werner LEMBERG <wl@gnu.org>
11586 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11587 * tmac/groff_man.man: More fixes.
11589 2000-03-08 Werner LEMBERG <wl@gnu.org>
11591 * doc/Makefile: Added texput.log to the `clean' target.
11592 * doc/groff.texinfo: Added info about delimiters for escapes.
11594 2000-03-08 Bernd Warken <bwarken@mayn.de>
11596 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11597 other graphic formats.
11599 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11601 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11602 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11603 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11606 2000-03-07 Werner LEMBERG <wl@gnu.org>
11608 * doc/groff.texinfo: Spelling fixes.
11610 2000-03-06 Werner LEMBERG <wl@gnu.org>
11612 * tmac/groff_man.man: Completely revised to cover everything in
11615 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11616 Other minor fixings.
11617 * src/roff/troff/env.cc (environment_copy): Improve error message and
11619 * src/roff/troff/TODO: Updated.
11621 * doc/Makefile: Bug fixes -- this is still provisional, though...
11623 * tmac/eqnrc: Small fixes.
11625 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11627 Adding a request `evc' to copy environments.
11629 * src/roff/troff/env.cc (environment::copy, environment_copy):
11631 * src/roff/troff/env.h: Add prototype.
11633 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11635 Adding strsep() -- Solaris 8 doesn't have it.
11637 * configure.in: Test it.
11638 * src/devices/grolbp/lbp.cc: Add code.
11640 2000-03-05 Werner LEMBERG <wl@gnu.org>
11642 * src/roff/troff/div.cc (macro_diversion::output,
11643 top_level_diversion::output): Fixing an incompatibility with
11644 original troff: \x'0' updates the .a register also. Thanks to
11645 <Andries.Brouwer@cwi.nl> for pointing this out.
11646 * doc/groff.texinfo: Document it.
11648 * Makefile.in: Create Makefile.dep if necessary before calling the
11649 submake process to avoid warning about nonexistent file.
11651 * NEWS, PROJECTS: Updated.
11653 2000-03-04 Werner LEMBERG <wl@gnu.org>
11655 * tmac/troffrc: Add tmac.lbp.
11657 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11659 * tmac/tmac.lbp: New file.
11660 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11663 2000-03-03 Werner LEMBERG <wl@gnu.org>
11665 * Makefile.in: Fixing $(subdir).
11667 * README, NEWS: Small fixes.
11669 * test-groff: Adding path to grolbp.
11671 * configure.in: The (new) file src/xditview/Imakefile.in will be
11672 also configured -- it is now possible to build gxditview in a
11673 directory different from $srcdir.
11675 2000-03-02 Blake McBride <blake@florida-software.com>
11677 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11679 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11681 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11683 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11686 2000-02-29 Werner LEMBERG <wl@gnu.org>
11688 Adding GNU getopt to the groff distribution.
11690 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11692 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11693 * aclocal.a4: Remove GROFF_GETOPT function.
11694 * configure.in, Makefile.in, PROBLEMS: Update.
11695 * src/include/lib.h: Replace getopt tests with getopt.h.
11696 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11698 * doc/groff.texinfo: Further checking/updating. Adding more index
11701 * man/groff_out.man: Fix nroff mode activation (for emacs).
11702 * man/groff_font.man: Add missing ligature.
11704 2000-02-28 Werner LEMBERG <wl@gnu.org>
11706 * doc/groff.texinfo: Further checking/updating. Adding more index
11709 * src/devices/grolbp/grolbp.man: Added a comment line at the
11710 beginning of the file (similar to shell scripts) which indicates
11711 that `tbl' should be used as a preprocessor.
11713 2000-02-27 Blake McBride <blake@florida-software.com>
11715 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11716 Windows NT 4.0). Uses _MSC_VER define where necessary.
11718 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11719 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11720 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11721 src/include/lib.h, src/libs/libgroff/errarg.cc,
11722 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11723 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11724 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11725 src/roff/troff/div.cc, src/roff/troff/env.cc,
11726 src/roff/troff/input.cc, src/roff/troff/node.cc,
11727 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11728 if_to_a() to avoid name clashes.
11729 * src/include/posix.h: Don't use unistd.h.
11730 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11731 clause for integrating non-Unix xtmpfile() code.
11732 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11733 structure; use "rt" for popen() in pipe_source(); add getpid()
11735 * src/roff/troff/node.cc: Use special versions of popen() in
11736 real_output_file() and pclose() in ~real_output_file().
11738 2000-02-27 Werner LEMBERG <wl@gnu.org>
11740 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11741 LBP-8 series laser printers). This code has been contributed by
11742 Francisco Andrés Verdú <pandres@dragonet.es>.
11744 * src/devices/grolbp/*: The grolbp output device.
11745 * font/devlpb/*: The font description files.
11746 * Makefile.in: Add grolpb and devlbp subdirectories.
11748 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11749 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11752 * doc/groff.texinfo: Further checking/updating. Adding more index
11757 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11759 * man/groff_font.man: Adding info about obsolete DESC keywords.
11760 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11763 2000-02-26 Werner LEMBERG <wl@gnu.org>
11765 * src/preproc/grn/grn.man: Added info about the gremlin file format
11766 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11768 2000-02-25 Werner LEMBERG <wl@gnu.org>
11770 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11771 friends to be non-integer.
11773 * src/preproc/grn/grn.man: Document it.
11775 * doc/groff.texinfo: Further checking/updating. Adding more index
11778 2000-02-24 Werner LEMBERG <wl@gnu.org>
11780 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11781 line thicknesses to be integer multiples of this value.
11783 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11784 corresponding code doesn't work (yet).
11786 * doc/groff.texinfo: Further checking/updating. Adding more index
11789 2000-02-23 Werner LEMBERG <wl@gnu.org>
11791 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11792 specify line thickness instead of base units. The new default
11793 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11794 thick lines respectively.
11796 Removed unused variable `prevval'.
11798 * src/preproc/grn/grn.man: Updated.
11800 2000-02-22 Werner LEMBERG <wl@gnu.org>
11802 * src/preproc/grn/main.cc: Slight formatting.
11804 * src/roff/groff/groff.man: Formatting fix.
11805 * src/preproc/grn/grn.man: Ditto.
11807 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11809 * doc/groff.texinfo: Further checking/updating.
11811 2000-02-21 Werner LEMBERG <wl@gnu.org>
11813 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11815 * test-groff: Added grn subdir to path.
11817 * doc/groff.texinfo: Some restructing and other small improvements.
11819 * src/roff/groff/groff.cc (help): Fixed info string.
11821 2000-02-20 Werner LEMBERG <wl@gnu.org>
11823 * doc/meref.me: Fix description of .GS request.
11825 * src/roff/troff/troff.man: Fixing typo.
11827 Adding the `grn' preprocessor for gremlin graphic files.
11829 * src/preproc/grn/*: This is the Berkeley distribution written by
11830 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11831 Senderowicz and Werner Lemberg.
11833 * doc/grnexampl.{me,g}: A sample for grn.
11835 * Makefile.in: Added subdirectory entry for grn.
11837 * src/roff/groff/groff.cc: Added support for grn. It can be now
11838 called with the switch `-g'.
11840 * src/roff/groff/groff.man: Updated.
11842 * src/roff/grog/grog.{man,pl,sh}: Updated.
11846 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11848 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11849 parametrically polymorphic.
11851 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11852 and the alterations to xtmpfile.
11853 xtmpfile can be requested to return the filename created
11854 and asked not to unlink the temp file. The default behaviour
11855 if parameters are absent is exactly the same as before.
11857 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11859 A new request `length' is available which returns the length of a
11860 string in a number register:
11862 * src/roff/troff/input.cc (length_macro): Implement it.
11863 * src/roff/troff/input.cc (init_input_requests): Register it.
11865 2000-02-11 Werner LEMBERG <wl@gnu.org>
11867 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11868 of the `substring' request.
11870 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11873 * src/roff/troff/TODO, NEWS: Updated.
11875 2000-02-09 Werner LEMBERG <wl@gnu.org>
11877 * src/roff/groff/groff.man: Added an example.
11879 2000-02-06 Werner LEMBERG <wl@gnu.org>
11881 I've considerably modified the directory structure of the
11882 distribution to get a more vertical layout. For example, the number
11883 of top level directories has been reduced from 42 to 6.
11885 As a consequence, many changes, especially to the makefiles, were
11888 * The makefile variables `top_builddir' and `top_srcdir' have been
11889 introduced. Virtually all relative paths have been replaced with
11890 absolute ones using these two variables.
11892 * Dependencies (in the files `Makefile.dep') are no longer part of
11893 the distribution. Instead, they are created during a `make install'
11894 in the build directory.
11896 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11897 make `top_srcdir' and `top_builddir' absolute.
11899 Some other changes:
11901 * Man pages now depend on the files `VERSION' and `REVISION'.
11903 * The added shell script `mkinstalldirs' will replace `mkdir' in
11906 * VERSION: Version number increased to 1.16.
11908 2000-02-04 Werner LEMBERG <wl@gnu.org>
11910 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11912 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11913 (after an update of the mm stuff).
11915 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11917 2000-02-03 Werner LEMBERG <wl@gnu.org>
11919 The .psbb request will now also accept Mac PS images (i.e. using LF
11920 as the EOL character).
11922 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11923 (with slight modifications).
11924 * troff/input.cc (do_ps_file): Use it.
11926 * test-groff: Add grohtml and grolj4 output devices to PATH.
11928 2000-01-30 Werner LEMBERG <wl@gnu.org>
11930 * NEWS, MORE.STUFF: Updated.
11932 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11934 Add the `srand' command to pic.
11936 * pic/lex.cc, pic/pic.y: Implement it.
11937 * pic/pic.man: Document it.
11938 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11940 2000-01-30 Werner LEMBERG <wl@gnu.org>
11942 Add a new request `.psbb'. This does exactly what the external
11943 program psbb did. It scans a PostScript image file for a
11944 %%BoundingBox comment and extracts the bounding box values (in
11945 PostScript units) which are then stored in the four new (read-only)
11946 number registers `llx', `lly', `urx', and `ury'.
11948 This will allow the usage of the .PSPIC macro without worrying
11949 about unsafe behaviour of groff, i.e., it will work without the
11950 `-U' switch of groff.
11952 * troff/input.cc: Implement it.
11953 * tmac/tmac.pspic: Use it.
11954 * troff/troff.man, grops/grops.man, NEWS: Document it.
11955 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11957 This is bloody C code simply adapted from psbb.c! Any improvements
11960 2000-01-29 Werner LEMBERG <wl@gnu.org>
11962 * man/groff_font.man: Minor clarifications.
11966 2000-01-28 Werner LEMBERG <wl@gnu.org>
11968 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11970 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11972 * man/groff_font.man: Brought up to date regarding tcommand
11974 * libgroff/font.cc: Handle everything after `--' as a comment
11976 * devps/*: Added comment delimiter inside devps font files.
11978 2000-01-28 Werner LEMBERG <wl@gnu.org>
11980 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11981 \fC...\fP (which now works as expected).
11983 * troff/troff.man: Fix typo.
11985 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11987 Completed the pass_filenames implementation in troff.
11989 * libdriver/input.cc: Will read the new `F' tcommand.
11990 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11991 * troff/input.cc: Use it.
11993 2000-01-26 Werner LEMBERG <wl@gnu.org>
11995 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11996 font will now be updated even if an invalid font is selected.
11998 2000-01-24 Werner LEMBERG <wl@gnu.org>
12000 * doc/homepage.ms: Updated for new tmac.arkup.
12002 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12004 * tmac/tmac.arkup: Cleanup.
12006 Added `\&' to .HTML macro to `leave vertical mode', so to say.
12008 Removed obsolete .LINK macro completely.
12010 The macros .URL, .FTP, and .MAILTO now accept a third argument which
12011 will be immediately appended to the second argument (to be used with
12012 punctuation, for example).
12014 Disabled .CDFTP macro temporarily for security reasons.
12016 * tmac/groff_markup.man: Complete revision for latest changes in
12017 tmac.arkup -- note that it does not yet format correctly with
12020 2000-01-23 Bruno Haible <haible@clisp.cons.org>
12022 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12023 * devutf8/R.proto: Add mappings for wp, lh, rh.
12024 * devutf8/NOTES: Updated.
12026 2000-01-23 Werner LEMBERG <wl@gnu.org>
12028 * doc/groff.texinfo: Updated version/copyright info.
12030 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
12032 Added support for two new directives in device descriptions:
12033 `pass_filenames' (to pass the input file name to the output device)
12034 and `use_charnames_in_special' (to support e.g. accented characters
12035 in the `X' request).
12037 * include/font.h, troff/charinfo.h: Declare it.
12039 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12041 * devhtml/DESC: Use it.
12043 * troff/input.cc: New function encoded_char.
12045 * troff/token.h: Add test for `specialness'.
12047 2000-01-21 Werner LEMBERG <wl@gnu.org>
12049 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12050 mistake from the list of files to be installed.
12052 2000-01-18 Werner LEMBERG <wl@gnu.org>
12054 * README: Added info how to apply patches.
12056 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
12058 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
12060 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
12062 * troff/input.cc: Add support for troffrc-end.
12064 * tbl/main.cc: Altered to issue table-start and table-end special
12065 characters if using the html device.
12067 * devhtml/*: Modified font files to incorporate html encoding of
12070 * tmac/groff_markup.man: New file documenting tmac.arkup.
12072 * tmac/troffrc-end: New file. This is invoked after all user
12073 specified macros. Currently used by the html device to include
12074 tmac.html. Thus no need for users to specify -mhtml anymore.
12076 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12077 (MAN7): Add groff_markup.man.
12079 * tmac/tmac.an, tmac/tmac.html: Small html updates.
12081 * tmac/troffrc: tmac.arkup will now be called for the html device.
12083 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12084 extra device specific information about fonts.
12086 * doc/homepage.ms: New file. It is an example how an HTML home page
12087 could look like with grohtml.
12089 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
12091 2000-01-12 Bruno Haible <haible@clisp.cons.org>
12093 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
12096 * devutf8/NOTES: Updated.
12098 2000-01-08 Bruno Haible <haible@clisp.cons.org>
12100 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12101 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12102 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12103 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12104 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12105 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12106 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12107 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12110 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12112 2000-01-12 Fabrizio Polacco <fab@prosa.it>
12114 grolj4: Paper size will be searched case-insensitively.
12116 * include/lib.h: Add check for strcasecmp().
12117 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12118 * configure.in: Check for strcasecmp().
12120 2000-01-11 Werner LEMBERG <wl@gnu.org>
12122 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12125 2000-01-10 Werner LEMBERG <wl@gnu.org>
12127 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12130 Add a new read-only register, `.Y', which contains the groff
12133 * troff/input.cc (init_input_requests): Define it.
12134 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12135 * doc/groff.texinfo, troff/troff.man: Document it.
12137 * libgroff/Makefile.sub (version.cc): Add definition of
12138 `Version_string[]', consisting of `<major>.<minor>.<revision>'
12139 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12140 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12141 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12142 troff/input.cc, pfbtops/pfbtops.c: Use it.
12144 2000-01-10 Fabrizio Polacco <fab@prosa.it>
12146 Add a revision scheme to the groff package.
12148 * REVISION: New file.
12149 * libgroff/Makefile.sub (version.cc): Use it to define
12150 `revision_string[]'.
12151 * grops/psrm.cc: Use revision_string (converted to an unsigned
12152 integer) in constructor of resource_manager.
12154 2000-01-10 Bruno Haible <haible@clisp.cons.org>
12156 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12158 * Makefile.in (DEVDIRS): Add devutf8.
12159 * grotty/tty.cc: Include device.h.
12160 (glyph): Change type of `code' to `unsigned int'.
12161 (tty_printer): New field is_utf8. Constructor takes device argument.
12162 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12163 (tty_printer::add_char): Change type of first arg to `unsigned int'.
12164 (tty_printer::put_char): New function.
12165 (tty_printer::end_page): Use put_char() instead of ::putchar().
12166 (make_printer): Pass device to tty_printer constructor.
12167 * nroff.sh: Determine default device by calling 'locale'. As a
12168 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12169 Recognize UTF-8 locales.
12170 * tmac/eqnrc: Recognize utf8 like latin1.
12171 * tmac/troffrc: Device utf8 needs tmac.tty.
12173 2000-01-07 Werner LEMBERG <wl@gnu.org>
12175 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12177 2000-01-07 Paul Eggert <eggert@twinsun.com>
12179 Add a new predefined writeable number register, `year',
12180 which contains the current year.
12182 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12183 * tmac/tmac.s: Use it.
12184 * troff/input.cc (init_registers): Initialize it.
12186 2000-01-06 Werner LEMBERG <wl@gnu.org>
12188 * PROBLEMS: Fixed typo.
12190 2000-01-04 Paul Eggert <eggert@twinsun.com>
12192 * PROBLEMS: Add Y2k advice for the yr number register.
12194 2000-01-03 Paul Eggert <eggert@twinsun.com>
12196 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12198 2000-01-02 Werner LEMBERG <wl@gnu.org>
12200 * tmac/tmac.arkup: Slight modification of macros to provide better
12201 appearance for non-HTML formats.
12203 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12205 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12206 does not automatically translate to malloc(n) on all OSes
12207 (e.g., SunOS) so do it explicitly. Also, check the returned
12210 2000-01-01 Werner LEMBERG <wl@gnu.org>
12212 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12214 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12215 expects this variable
12217 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12219 * doc/Makefile: Added instructions to create HTML and text
12220 versions of some files.
12222 1999-12-31 Werner LEMBERG <wl@gnu.org>
12224 * Updated INSTALL.gen.
12226 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12227 better resp. correctly with non-HTML devices.
12229 Version 1.15 released
12230 =====================
12232 1999-12-28 Werner LEMBERG <wl@gnu.org>
12234 * NEWS, VERSION: Changed to 1.15
12236 1999-12-27 Paul Eggert <eggert@twinsun.com>
12238 * nroff/nroff.man: -S is safer, not safe.
12240 * groff/groff.cc (main): Use `safer', not `safe', in variable
12241 names. This does not change the behavior.
12243 * troff/input.cc (main): Likewise.
12245 * nroff/nroff.sh: Likewise.
12247 * troff/input.cc (prepend_string): New function.
12248 (main): Prepend -msafer, so that we check macro libraries for
12251 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12253 Version 1.14 released
12254 =====================
12256 1999-12-26 Werner LEMBERG <wl@gnu.org>
12258 * NEWS, VERSION: Changed to 1.14.
12260 1999-12-24 Werner LEMBERG <wl@gnu.org>
12262 * refer/refer.cc: Fixing the last fix.
12264 Version 1.13 released
12265 =====================
12267 1999-12-23 Werner LEMBERG <wl@gnu.org>
12269 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12274 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12276 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12277 document conventions, the version number must be a real.
12279 Version 1.12.1 released
12280 =======================
12282 1999-12-22 Werner LEMBERG <wl@gnu.org>
12284 * VERSION: Changed to 1.12.1.
12286 1999-12-22 Alan Rooks <arooks@istar.ca>
12288 * refer/refer.cc (do_file): Slight modification to satisfy the
12289 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12292 1999-12-20 Werner LEMBERG <wl@gnu.org>
12294 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12297 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12298 list of unsafe requests.
12300 * pic/pic.man: Fixed a typo.
12302 * man/groff_out.man: Fixed a typo.
12304 1999-12-18 Werner LEMBERG <wl@gnu.org>
12306 * Makefile.in: Doc fixes.
12308 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12310 * groff/groff.cc: Missing `U' option added to getopt().
12312 * troff/troff.man: Missing `U' option added to synopsis.
12314 Version 1.12 released
12315 =====================
12317 1999-12-14 Werner LEMBERG <wl@gnu.org>
12319 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12322 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12323 with the more appropriate terms `safer' and `unsafe'.
12325 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12326 sys_nerr and sys_errlist[].
12328 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12330 * pic/pic.y, pic/pic.cc: Added check for fmod().
12332 1999-12-13 Werner LEMBERG <wl@gnu.org>
12334 * VERSION: Changed to 1.12.
12336 Here some patches from various sources; most of them taken from
12337 the Debian distribution.
12339 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12340 tmac/Makefile.sub: New files copied directly from the NetBSD
12341 distribution. Probably, some additional adaptation later on is
12344 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12345 of unsafe requests.
12347 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12348 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12349 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12350 (`-S') is now the default.
12352 * README, NEWS: Updated.
12354 1999-12-09 Werner LEMBERG <wl@gnu.org>
12356 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12358 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12360 1999-12-06 Werner LEMBERG <wl@gnu.org>
12362 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12363 grief than relief today. Additionally, it is against the GNU
12366 * configure: Recreated.
12368 1999-12-05 Werner LEMBERG <wl@gnu.org>
12370 * configure.in: Added GROFF_LIBM.
12372 * configure: Recreated.
12374 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12377 * Makefile.in: Added definition of $(LIBM).
12379 * Makefile.comm (LIBM): Removed.
12381 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12383 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12385 * doc/Makefile: Added rule for generation pic.html.
12387 (clean): Files produced by grohtml will be removed also.
12389 * doc/pic.ms: Small fix.
12391 * tmac/tmac.html: Fixed suppression of headers.
12393 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12395 * tmac/tmac.html: Fixing horizontal arrows.
12397 Turning off hyphenation.
12399 * tmac/tmac.an: Improved support for grohtml; better indentation,
12400 no footers/headers.
12402 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12404 * tmac/tmac.arkup: Added CDFTP macro
12406 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12409 * tmac/troffrc: Some additions for HTML stuff.
12411 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12413 * tmac/tmac.html: Small changes.
12415 1999-09-26 Werner LEMBERG <wl@gnu.org>
12417 * doc/groff.texinfo: Minor fixes.
12419 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12421 * devhtml/TR: Changed spacewidth to 3.
12423 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12425 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12427 * tmac/tmac.arkup: New file.
12429 * grohtml/ChangeLog: New file.
12431 1999-09-16 Werner LEMBERG <wl@gnu.org>
12433 * doc/groff.texinfo (Common Features): Added Copying chapter.
12434 Changed format to @smallbook.
12436 1999-09-15 Werner LEMBERG <wl@gnu.org>
12438 * NEWS: Added info about groff.texinfo.
12440 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12443 1999-09-14 Werner LEMBERG <wl@gnu.org>
12445 * groff/groff.man: More updates.
12447 1999-09-13 Werner LEMBERG <wl@gnu.org>
12449 * doc/groff.texinfo: New file. This manual is still very
12450 rudimentary. It has been originally contributed by Trent
12451 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12454 * INSTALL: Added information about the `doc' subdir
12456 * troff/troff.man: Minor fixes.
12458 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12461 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12463 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12464 also, otherwise it is included itself in another call of `make
12467 * groff/groff.cc (synopsis): Removed superfluous space.
12469 * PROJECTS, PROBLEMS, NEWS: Updated.
12471 * VERSION: Updated to 1.12beta.
12473 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12475 * README: Updated: Included documentation about CVS repository,
12476 mailing lists, and daily snapshots.
12478 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12480 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12482 * tmac/tmac.an: If the tag didn't fit into the space that the
12483 macro `TP' specifies, the rest of the tag went into the space for
12486 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12488 * grolj4/lj4.cc: Added duplex printing (option `-d').
12490 * grolj4/grolj4.man: Document duplex printing.
12492 1999-09-12 Werner LEMBERG <wl@gnu.org>
12494 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12495 non-GNUish sed programs.
12497 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12500 * configure.in (LIBS): Added `-lc'
12502 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12504 * pic/tex.cc (solid_arc): Casting M_PI to double.
12506 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12508 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12509 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12510 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12512 * groff/groff_man.man: New file. This manual page was originally
12513 written for the Debian GNU/Linux system by Susan G. Kleinmann
12516 * eqn/list.cc (list_box::compute_metrics,
12517 list_box::compute_sublist_width): Removed variable declaration to
12518 avoid shadowing warnings.
12520 * grops/psrm.cc (resource_manager::process_file): Ditto.
12522 * tfmtodit/tfmtodit.cc (main): Ditto.
12524 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12525 to avoid shadowing warnings.
12527 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12528 shadowing loop variable.
12530 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12532 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12534 New grohtml frontend to convert groff input to html.
12536 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12538 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12540 * tmac/eqnrc: Added html device.
12542 * tmac/tmac.html: New file.
12544 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12545 (troff_output::start_picture, troff_output::finish_picture),
12546 tbl/main.cc (process_input_file):
12547 Surrounded output with `graphics_start' and `graphics_end' so that
12548 the html driver can identify non-text portions.
12550 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12551 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12552 grotty/tty.ps (tty_printer::set_char): Additional parameter
12555 * include/printer.h: Class printer: New function
12556 set_char_and_width; new variables (is_char_named, is_named_set,
12557 named_command, named_char_s, named_char_n) to hold information
12558 about named characters -- needed by the html driver.
12560 * libdriver/printer.cc (printer::set_ascii_char,
12561 printer::set_special_char): Use set_char_and_width.
12563 * devhtml/*: New device files for html driver.
12565 * grohtml/*: New driver grohtml.
12567 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12569 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12572 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12574 * libgroff/string.cc (search): Small fix to test against NULL
12577 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12579 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12580 \b'abc') were stacked in reverse order when processed in a
12583 * troff/node.h: Added `*last' to struct `node' to make the above
12586 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12587 The default scale for the 'f' and 't' graphics functions were 'm'
12588 rather than 'u' (i.e., no scaling).
12590 1999-09-11 Peter Miller <peterm@jna.com.au>
12592 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12593 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12594 defining include paths.
12596 * soelim/soelim.cc (include_path_append): New function.
12598 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12600 * tbl/main.cc (process_options): Unix (at least Documenter's
12601 Workbench) tbl allows arbitrary non-alpha characters between
12604 1999-09-11 Paul Eggert <eggert@twinsun.com>
12606 Y2k fixes. Don't assume that the current year precedes 2000.
12608 * doc/meref.me: Add \n(y2, \n(y4.
12610 * tmac/doc-common (Yr): New number register.
12611 (Dd): Don't assume current year precedes 2000.
12613 * tmac/tmac.e (td): Likewise.
12614 (y2, y4): New number registers.
12616 * pic/pic.man: Update reference for pic paper to May, 1991
12619 1999-09-11 Werner LEMBERG <wl@gnu.org>
12621 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12622 Removed quotation marks which prevented correct expansion of
12625 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12627 1999-09-10 Werner LEMBERG <wl@gnu.org>
12629 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12632 * Removed configure.old.
12634 1999-08-31 Werner LEMBERG <wl@gnu.org>
12636 * VERSION: Updated to 1.11.1
12638 1999-05-27 Werner LEMBERG <wl@gnu.org>
12640 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12642 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12643 added quotations around $(tmac_wrap) to avoid syntax error if
12646 * configure: Newly generated using autoconf 2.13.
12648 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12650 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12652 * README, PROJECTS, NEWS, INSTALL, VERSION,
12653 doc/Makefile. doc/pic.ms, groff/groff.man:
12654 Prepare for 1.11 release. No code changes.
12655 Documentation for pic added (doc/pic.ms).
12657 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12659 * Version 1.10 released.
12661 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12663 * afmtodit/afmtodit.pl: Avoid comment on first line.
12665 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12667 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12668 * configure.in: Call it.
12670 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12671 (distfiles): Doesn't depend on config.log or config.cache.
12673 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12675 * grog/grog.sh: Use print "" rather than print in END rule.
12677 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12679 * tbl/main.cc (process_data): Don't give error for excess data
12680 entries that are comments.
12682 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12684 * tbl/main.cc (process_data): Fix case where new for-scope rules
12685 silently change meaning of code.
12687 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12689 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12690 of non-zero hyphenation codes.
12692 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12694 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12696 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12698 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12700 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12702 * tmac/tmac.andoc: Make it work in compatibility mode.
12704 * refer/token.h (token_info::is_range_sep): New function.
12705 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12706 * refer/ref.cc (reference::output): More sophisticated check for
12709 * devps/prologue.ps (MANUAL): New procedure.
12710 * grops/ps.cc (main): New -m option.
12711 (usage): Include -m.
12712 (ps_printer::~ps_printer): Implement -m.
12714 * aclocal.m4 (GROFF_G): New macro.
12715 * configure.in: Call it.
12716 * Makefile.in (g): Provided by configure.
12718 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12720 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12723 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12724 (tmac_m, tmac_s): Deleted.
12725 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12726 tmac_s_prefix): New variables.
12727 (MDEFINES): Change accordingly.
12728 * Makefile.comm (.man.n): Use new TMAC_* variables.
12729 * configure.in (GROFF_TMAC): Call.
12730 * aclocal.m4 (GROFF_TMAC): Define.
12731 * tmac/Makefile.sub (stamp_wrap): New target.
12732 (install_data, uninstall_sub): Handle macro wrapping.
12734 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12736 * tbl/main.cc (main): Ignore -T option.
12738 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12740 * devlj4/generate/special.map: Add definition of \(nb.
12742 * tmac/tmac.dvi: Add definition of \(nb.
12744 * troff/dictionary.c (dictionary::dictionary): association::v gets
12745 initialized by association::association.
12747 * tmac/Makefile.sub: Avoid using temporary files when installing.
12749 * troff/env.cc (environment::set_font): Make bad font number a
12752 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12754 * Makefile.in (datadir): Use share rather than lib.
12756 * groff/groff.cc (basename): Rename to xbasename.
12758 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12760 * Makefile (CCLIBS): Don't use.
12761 * Makefile.ccpg: Likewise.
12763 * acgroff.m4: Rename to...
12764 * aclocal.m4: Modify extensively for autoconf 2.
12765 * configure.in: Likewise.
12766 * Makefile.in: Likewise.
12768 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12770 (xstrsignal): Check for definition of NSIG. Conditionalize
12771 on SYS_SIGLIST_DECLARED. Make return type const.
12773 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12775 * troff/input.cc (interpolate_macro): Rephrase missing space
12778 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12780 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12781 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12782 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12783 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12784 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12785 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12786 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12787 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12788 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12789 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12790 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12793 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12795 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12797 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12799 (macro_iterator::macro_iterator): Add additional argument.
12801 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12803 * troff/div.cc (vertical_size::vertical_size): In place of integer
12804 specifying line spacing use cunits specifying post vertical
12806 (macro_diversion::output, top_level_diversion::output): Likewise.
12807 * troff/div.h: Change declarations accordingly.
12808 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12810 (pending_output_line::pending_output_line,
12811 pending_output_line::output, environment::output,
12812 environment::output_line, environment::output_title,
12813 environment::hyphenate_line): In place of
12814 integer specifying line spacing use cunits specifying post vertical
12816 (environment::environment): Add post_vertical_spacing and
12817 prev_post_vertical_spacing arguments.
12818 (environment::get_post_vertical_spacing): New function.
12819 (environment::total_post_vertical_spacing): New function.
12820 (environment::post_vertical_spacing): New function.
12821 (init_env_requests): Initialize pvs request and .pvs register.
12822 * troff/env.h: Change declarations.
12824 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12826 * tmac/tmac.pspic: Immediately remove the temporary file.
12828 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12830 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12831 height is specified.
12833 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12835 * tbl/table.c (struct vertical rule, class table_entry): Use int
12836 not short for start_row and end_row.
12838 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12840 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12842 (diverted_space_node::reread, process_input_stack): Call
12843 trapping_blank_line() rather than blank_line().
12844 (init_input_requests): Bind "blm" to blank_line_macro().
12846 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12848 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12850 * troff/env.cc (environment::possibly_break_line): Require that
12851 width total excluding width of final space node be greater than
12852 the target text length.
12854 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12856 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12858 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12860 * troff/node.cc (charinfo_node): New class.
12861 (glyph_node, composite_node): Derive from charinfo_node. Change
12862 member functions accordingly.
12864 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12866 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12868 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12870 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12872 * devps/generate/textmap (notsubset): Add.
12874 * tmac/tmac.a4: New file.
12876 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12878 * pic/main.cc (had_parse_error): New variable.
12879 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12881 (main): Return 1 if had_parse_error is true.
12883 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12885 * grolj4/lj4.cc (main): Avoid use of strtoul.
12887 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12889 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12890 iso_8859_1 or $LESSCHARSET is latin1.
12892 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12894 * hpftodit: New directory.
12895 * Makefile.in (CCPROGDIRS): Add hpftodit.
12896 * devlj4/generate: New directory.
12898 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12900 * configure.in: Don't use AC_VFORK.
12901 * groff/pipeline.c (run_pipeline): Use fork() always.
12903 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12905 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12907 * Makefile.in (CCPROGDIRS): Add grolj4.
12908 (DEVDIRS): Add devlj4.
12909 * grolj4, devlj4: New directories.
12910 * tmac/troffrc: Handle lj4.
12911 * tmac/tmac.lj4: New file.
12913 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12915 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12917 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12919 * troff/input.cc (do_if_request): At end of second string, switch
12920 environments before getting next token.
12922 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12924 * devps/psstrip.sed: Split rule that strips whitespace on either
12925 side of delimiters.
12927 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12929 * troff/node.h (font_family::make_definition): Add return value to
12930 declaration. * troff/symbol.h (symbol::operator==,
12931 symbol::operator!=): Likewise.
12933 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12935 * groff/groff.cc (main, help, synopsis): Handle -S.
12936 (possible_command::insert_arg): New function.
12938 * tmac/tmac.safer: New file.
12939 * tmac/msafer.man: New file.
12940 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12942 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12944 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12945 * pic/pic.y (placeless_element): Avoid unsafe operations if
12946 `safer_flag' is set.
12947 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12949 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12951 * eqn/lex.cc (get_token): Put call to add_context() in block to
12952 work around Sun C++ 4.0 bug.
12954 * include/stringclass.h (operator +): Use ?: instead of `if' to
12955 work around Sun C++ 4.0 bug.
12957 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12959 * tbl/main.cc (process_format): Accept - as a synonym for the _
12962 * libbib/index.cc (minus_one): Don't declare as const.
12964 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12966 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12968 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12970 * troff/input.cc (write_macro_request): New function.
12971 (init_input_requests): Bind write_macro_request to writem.
12973 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12975 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12978 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12980 * tmac/tmac.s (@TS): Renamed from TS.
12981 (TS): Call LP then TS again.
12982 (cov*ab-init): Alias @TS to TS.
12984 * tmac/tmac.s: Allow QP or RS to initialize.
12986 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12987 Move initializations of PS and LL here.
12988 (par@init): Don't initialize HY. Avoid changing environment 0.
12989 (par*env-init): Don't all par@reset.
12991 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12993 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12995 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12997 * Makefile.in (MDEFINES): Add LDFLAGS.
12998 (LDFLAGS): Add definition line.
13000 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
13002 * troff/input.cc (get_optional_char): Split off error check into...
13003 (check_missing_character): New function.
13004 * troff/token.h: Declare it.
13005 * troff/env.cc (margin_character): Don't call get_optional_char.
13006 Only call tok.next() after making the node.
13008 * include/lib.h (getopt): Make 2nd argument char *const *.
13010 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
13012 * nroff/conftest.sh: Deleted.
13014 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
13016 * pic/make-dos-dist: Deleted.
13018 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
13020 * devps/psstrip.sed: Strip comments before stripping trailing
13023 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
13025 * Version 1.09 released.
13027 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
13029 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13031 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
13033 * libgroff/font.cc (font::load_desc): Fix typo in error message.
13035 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
13037 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13038 about returning without a value.
13040 * troff/charinfo.h (charinfo::get_special_translation): Cast
13041 TRANSLATE_NONE to int.
13043 * refer/token.cc (lookup_token, store_token): Remove bogus loop
13044 test. Fix test so that it works with n unsigned.
13046 * pic/pic.y (defaults_table): Fully bracket initializer.
13047 * pic/lex.cc (lookup_keyword): Likewise.
13048 * eqn/lex.cc (token_table, def_table): Likewise.
13049 * eqn/box.cc (param_table): Likewise.
13050 * troff/input.cc (warning_table): Likewise.
13051 * libgroff/font.cc (table): Likewise.
13052 * grops/ps.cc (ps_printer::special): Likewise.
13053 * grops/psrm.cc (resource_manager::process_file): Likewise.
13054 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13055 * refer/command.cc (command_table): Likewise.
13056 * addftinfo/addftinfo.cc (param_table): Likewise.
13058 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13059 about temp's being unused.
13060 (unused): New function.
13062 * groff/pipeline.cc: Declare c_fatal.
13064 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13067 * libbib/index.cc (index_search_item::load): Prevent compiler
13068 warnings about fd_closer's being unused.
13069 (unused): New function.
13071 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
13073 * troff/input.cc (copy_mode_error): Make `prefix' static.
13076 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13078 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13079 HAVE_CC_OSFCN_H and modify accordingly.
13081 * troff/input.cc (init_charset_table): radicalex overlaps
13084 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13085 udodo!hans@relay.NL.net).
13086 * groff/configure.in: Call it.
13088 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13089 * groff/configure.in: Call it.
13090 * include/lib.h: Conditionalize declaration of pclose.
13092 * troff/div.cc (last_page_number): New global variable.
13093 (top_level_diversion::begin_page): Exit if we just printed the
13095 * troff/div.h (last_page_number): Declare it.
13096 * troff/input.cc (parse_output_page_list): Set last_page_number.
13098 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13099 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13100 tmac/tmac.X: Likewise.
13101 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13102 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13104 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
13106 * tmac/doc-ditroff (hK): Remove groff specific code which
13107 prevented page-breaks between separate manual entries. If this is
13108 the first page, don't set the page number to 1.
13110 * acgroff.m4 (GROFF_POSIX): New macro.
13111 * configure.in: Use it.
13113 * troff/node.cc (class real_output_file,
13114 real_output_file::real_output_file,
13115 real_output_file::~real_output_file): Conditionalize use of
13116 popen/pclose on POPEN_MISSING.
13117 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13118 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13119 (pipe_source): Similarily.
13121 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13123 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13124 presence of declarations by trying to compile example with
13125 conflicting declarations. (gcc only gives a warning for missing
13128 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
13130 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13131 (from Ulrich Lauther).
13133 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
13135 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13137 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
13139 * indxbib/indxbib.cc (write_hash_table): Add code for case where
13140 pointers and ints have different sizes.
13142 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
13144 * tmac/tmac.s (par*env-init): Call par@reset.
13146 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
13148 * tmac/tmac.s (@IP): Switch to a new environment when diverting
13150 (par*push-tag-env, par*pop-tag-env): New macros.
13152 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
13154 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13155 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
13157 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13158 comment. Include <time.h>.
13160 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
13162 * grops/ps.cc (is_small_h, is_small_v): Deleted.
13163 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13166 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
13168 * troff/input.cc (read_request): Only print a prompt if reading
13169 from the terminal. Also clearerr on EOF if reading from the
13170 terminal. Declare isatty.
13172 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
13174 * refer/label.y: Rename map_t to map_func and extractor_t to
13177 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13179 * include/assert.h: Don't use volatile.
13180 * libgroff/assert.cc: Likewise.
13182 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13184 * troff/input.cc (abort_request): Look at character in tok before
13185 calling get_copy().
13187 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13189 * troff/troff.h (NO_RETURN): Deleted.
13190 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13191 * troff/input.cc (exit_troff): Likewise
13193 * Makefile.in: Remove `Making ...' messages since GNU make now
13196 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13198 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13200 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13201 to constant 1 inch.
13203 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13205 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13207 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13209 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13210 MARK_REG if there was no left delimiter.
13212 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13214 * pic/troff.cc (troff_output::text): Set line thickness to
13215 relative before outputting text.
13217 * tmac/tmac.e (@k): Don't zero ?T.
13220 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13222 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13224 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13226 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13229 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13231 * troff/input.cc (ignoring): New variable.
13232 (ignore): Set ignoring during call to do_define_macro.
13233 (do_define_macro): Clear ignoring before interpolating terminating
13235 (copy_mode_error): New function.
13236 (get_char_for_escape_name, read_long_escape_name,
13237 interpolate_arg): Use copy_mode_error.
13238 (warning_table): Add WARN_IG.
13239 * troff/troff.h (WARN_IG): Declare.
13240 (WARN_TOTAL): Change accordingly.
13242 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13243 * groff/groff.cc (strsignal): Delete declaration.
13245 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13247 * troff/div.cc (page_offset): Use 'm' as default scaling.
13249 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13251 * nroff/nroff.sh: Ignore -u.
13253 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13255 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13257 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13259 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13261 (B2): With -Tascii, leave additional vertical space before
13262 and after. Ensure that the left and right indent is restored to
13263 what it was even if the point size changes. Don't call
13264 par@finish. Change the indent, line length and title length
13265 directly. With -Tascii, make the width of the box 1n less.
13266 (B1): Remember 1n at the current point size. Don't call
13267 par@reset. Change the indent, line length and title length
13268 directly. Ensure that the temporary indent is preserved.
13269 (par*box-mark-top): Turn off no spacing mode.
13271 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13273 * Makefile.in (dist): Use .gz suffix.
13275 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13277 * troff/input.cc (main): Add return 0.
13278 * pic/main.cc (main): Use return instead of exit.
13279 * tbl/main.cc (main): Likewise.
13280 * eqn/main.cc (main): Likewise.
13281 * grops/ps.cc (main): Likewise.
13282 * grotty/tty.cc (main): Likewise.
13283 * groff/groff.cc (main): Likewise.
13284 * grodvi/dvi.cc (main): Likewise.
13285 * refer/refer.cc (main): Likewise.
13286 * indxbib/indxbib.cc (main): Likewise.
13287 * lkbib/lkbib.cc (main): Likewise.
13288 * soelim/soelim.cc (main): Likewise.
13289 * addftinfo/addftinfo.cc (main): Likewise.
13290 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13291 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13293 * troff/token.h (process_input_stack): Don't declare as static.
13294 * troff/input.cc: Likewise.
13296 * troff/node.c (invalidate_fontno): Make it a static member of
13297 class font_family. Change callers.
13298 * troff/node.c: Change declaration.
13300 * tbl/main.cc (struct input_entry_format): Add explicit public
13302 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13303 struct double_hline_stuff): Likewise.
13304 * tbl/table.h (struct entry_format): Likewise.
13305 * pic/object.h (struct saved_state): Likewise.
13307 * include/stringclass.h: Add forward declarations of friend
13308 functions that are later declared as inline. Don't include inline
13309 specifier in friend declaration.
13311 * libgroff/lib.h: Declare popen and pclose.
13312 * acgroff.m4 (GROFF_POPEN): New macro.
13313 * configure.in: Call it.
13315 * include/lib.h (PI): New constant. Undef first if necessary.
13316 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13317 * grops/ps.cc (degrees, radians): Likewise.
13318 * libgroff/font.cc (font::get_skew): Likewise.
13320 * grops/ps.cc (is_ascii): New function.
13321 (ps_output::put_string): Use is_ascii. Use csprint rather than
13323 (ps_printer::define_encoding): Use csspace.
13324 * libgroff/strtol.c (ISASCII): New macro.
13325 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13326 Use ISASCII rather than isascii.
13327 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13328 * libgroff/cset.cc: Likewise.
13329 * libdriver/input.cc: Include cset.h.
13330 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13333 * refer/refer.cc (main): Use %ld rather than %d for longs.
13335 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13338 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13340 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13342 * troff/input.cc (hyphenation_code): Skip white space between
13345 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13347 * tbl/table.h (table::entry_list_tailp): New member.
13348 (table::table): Initialize it.
13349 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13352 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13354 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13355 with negative horizontal positions. Remove casts of glyph::hpos to
13357 (USHRT_MAX): Delete definition.
13358 (SHRT_MAX, SHRT_MIN): New definitions.
13359 (glyph::hpos): Change type to short.
13360 (tty_printer::end_page): Output multiple backspaces if necessary.
13361 Remove casts of glyph::hpos to int.
13363 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13365 * tmac/tmac.s (@RT): New definition.
13367 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13369 * refer/refer.cc (do_file): Make sure current_filename is set when
13372 * pic/common.cc (common_output::dot_line): Handle zero length
13375 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13377 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13378 (par@init): Initialize \n[HY].
13380 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13382 * troff/dictionary.cc (dictionary::remove): Continue when
13385 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13387 * Makefile.com (.y.cc): Avoid ending up with two versions of
13390 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13392 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13393 (\(,C): Likewise. Also fix typo.
13395 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13397 * lib.h: Delete extraneous semi-colon.
13399 * Add pso request: `so' from a pipe.
13400 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13401 (file_iterator::close): New function.
13402 (file_iterator::~file_iterator, file_iterator::next_file): Use
13403 file_iterator::close.
13404 (file_iterator::backtrace): Say `process' rather than `file' when
13405 the stream is popened.
13406 (pipe_source): New function.
13407 (init_input_requests): Bind ".pso" to pipe_source.
13409 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13411 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13413 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13414 digits in lower case.
13416 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13418 * Version 1.08 released.
13420 * Makefile.in (dist): Insert || true after ln -s commands that
13423 * mm: Update to mm 1.16.
13425 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13426 * configure.in: Call GROFF_CSH_HACK. Substitute for
13428 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13430 * nroff/Makefile.sub (nroff): New target.
13431 (install_data): Install nroff.
13432 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13433 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13435 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13437 * eqn/Makefile.sub (neqn): Add chmod +x.
13439 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13441 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13443 * troff/input.cc (string_iterator::string_iterator()): Initialize
13446 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13448 * troff/div.cc (macro_diversion::space,
13449 top_level_diversion::space): Don't set high_water_mark.
13450 (macro_diversion::output, top_level_diversion::output): Don't
13451 include post line space in high water mark.
13453 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13455 * eqn/eqn.y: Don't define YYDEBUG.
13456 * pic/pic.y: Likewise.
13458 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13460 * tmac/tmac.e ([3): Add space after comma following editors.
13461 Change double spaces to single spaces.
13462 ([4): Change double spaces to single spaces.
13464 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13465 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13466 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13467 after %!PS-Adobe- (for Newsprint).
13469 * troff/div.cc (top_level_diversion::begin_page): When
13470 before_first_page is 1, set page_number to 1.
13472 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13474 * eqn/box.cc (box::top_level): Protect equation with \&.
13476 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13478 * groff/groff.cc (possible_command::set_name): Delete old name.
13480 * groff/groff.cc (possible_command::~possible_command): Use
13483 * troff/node.cc (troff_output_file::begun_page): New member.
13484 (troff_output_file::troff_output_file): Initialize it.
13485 (troff_output_file::really_begin_page): Only output V command if a
13486 page has been begun.
13488 * pic/pic.y (placeless_element): Delete argument to PRINT after
13491 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13493 * Make wrapman work.
13494 * troff/div.h (class top_level_diversion): Replace
13495 first_page_begun by before_first_page (with opposite sense).
13496 * Change first_page_begun to before_first_page inverting sense.
13497 * troff/div.cc (class nl_reg): New class.
13498 (init_div_requests): Use class nl_reg for \n(nl.
13499 (top_level_diversion::begin_page): Don't call
13500 output_file::begin_page if before_first_page is 2;
13501 reset before_first_page afterwards. If have_next_page_number is
13502 false, then always increment page_number.
13503 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13504 Restore compatibility mode after loading, and then disable
13505 compatibility mode in TH.
13507 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13509 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13511 * troff/node.h (output_file::trailer): Declare.
13512 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13513 * troff/node.cc (output_file::trailer): New function.
13514 (troff_output_file::~troff_output_file): Move most code into...
13515 (troff_output_file::trailer): New function.
13516 (class troff_output_file): Delete page_length member. Declare
13518 (troff_output_file::really_begin_page): Use current page length
13519 for final V command.
13521 * tbl/main.cc (struct options): New decimal_point_char member.
13522 (options::options): Initialize this.
13523 (process_options): Implement decimalpoint option.
13524 (process_data): Pass decimal_point_char option to table::table.
13525 * tbl/table.h (class table): New decimal_point_char member.
13526 (table::table): Add additional argument.
13527 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13528 second argument specifying decimal point character. Use this
13530 (table::table): Initialize decimal_point_char.
13531 (table::add_entry): Change call to find_dot.
13533 * troff/input.cc (get_copy, token::next): Implement \V.
13534 (interpolate_environment_variable): New function.
13536 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13538 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13539 * pic/pic.y: Likewise.
13541 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13543 * refer/ref.cc (reference::insert_field, reference::delete_field):
13545 * troff/number.cc (parse_term): Likewise.
13547 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13548 * configure.in: Use GROFF_PROG_YACC.
13550 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13552 * Makefile.in (OPTIMIZE): New define.
13553 (DEBUG): Empty by default.
13554 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13556 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13557 (GROFF_ARRAY_DELETE): Likewise.
13558 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13560 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13562 * devps/psstrip.sed: Use different delimiter on last line (so that
13563 it works with BSD 4.4 sed.)
13565 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13567 * devps/psstrip.sed: Delete comments.
13569 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13570 optind, opterr, optarg.
13571 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13574 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13576 * Makefile.in (check): Dummy target.
13578 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13580 * Version 1.07 released.
13582 * Integrate mm 1.11.
13584 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13585 where start_col was meant.
13587 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13589 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13591 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13593 * troff/input.cc (token::next): Make \z\o'...' and similar things
13596 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13598 (environment): Add margin_character_flags member.
13599 * env.cc (environment::environment(symbol),
13600 environment::environment(const environment *): Initialize
13601 margin_character_flags.
13602 (margin_character): Rewrite.
13603 (environment::output_line): Add a margin character if
13604 margin_character_flags is non-zero. Turn off the
13605 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13606 zero, use margin_character_node without copying and then set
13607 margin_character_node to 0.
13609 * devps/DESC.in: Change minimum size to 1000.
13611 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13613 * troff/symbol.h (symbol::hash): Change return type to unsigned
13615 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13618 * test-groff: Use -r rather than -x.
13620 * grops/psfig.diff: Include in distribution again.
13622 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13624 * Makefile.in (dist): Use gzip.
13626 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13628 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13629 unistd.h as well as in stdlib.h.
13630 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13631 defined; otherwise include <sys/types.h> and <unistd.h> if
13632 UNISTD_H_DECLARES_GETOPT is defined.
13634 * configure.in: use builtin(include, ... rather than include(...
13635 * configure: Regenerate with autoconf 1.3.
13637 * libdriver/print.cc (printer::adjust_arc_center): Use new
13638 algorithm suggested by Andy Fyfe.
13640 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13641 * include/printer.h: Declare this.
13642 * grops/ps.cc (ps_printer::draw): Use it.
13643 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13645 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13647 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13649 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13651 * eqn/main.cc (main): Handle "eqn -".
13653 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13655 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13657 * mm: Integrate version 1.08.
13659 * pic/troff.cc (troff_output::finish_picture): Set
13660 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13661 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13662 if it's not defined. Check whether the register is non-zero rather
13663 than whether it's not defined.
13664 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13666 * indxbib/indxbib.cc: Move all signal handling into...
13667 * indxbib/signal.c: New file.
13668 * configure.in: Call AC_RETSIGTYPE.
13670 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13671 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13672 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13674 * troff/input.cc (token::token, token::operator=): Work round SGI
13676 * pic/object.cc (position::position): Likewise.
13678 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13680 * pic/pic.h: Move declaration of hypot().
13682 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13684 * pic/pic.h: Declare hypot().
13686 * pic/pic.h: Define M_PI if necessary.
13688 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13690 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13693 * devps/prologue.ps (RE): Handle the possibility that the old font
13694 doesn't have a FontName entry.
13696 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13698 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13699 (@C): Use @fam not fam.
13701 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13703 * lookbib/lookbib.cc (main): Change type of start to const char *.
13704 * lkbib/lkbib.cc (main): Likewise.
13706 * eqn/lex.cc (definition::definition): Don't use member
13707 initializer syntax for members of anonymous unions.
13709 * troff/input.cc (input_stack::backtrace): Change type of to const
13712 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13714 * include/stringclass.h (class string): Declare inline friend
13715 functions as inline in class declaration.
13716 * troff/hvunits.h (class hunits, class vunits): Likewise.
13717 * include/refid.h (class reference_id): Likewise
13718 * troff/troff.h (points_to_units(units), scale(units, double)):
13719 Delete declarations.
13720 * libdriver/input.cc (get_char): Delete declaration.
13721 * include/lib.h: Change 2nd argument of getopt from const char **
13723 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13724 char **' before assigning to a `const char **'.
13725 * tbl/table.cc: Delete extra declarations of prints().
13727 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13729 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13730 char **' before assigning to a `const char **'.
13732 * libgroff/errarg.cc (errarg::errarg): Don't use member
13733 initializer syntax for members of anonymous unions.
13735 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13737 * mm: Integrate version 1.07.
13739 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13741 * troff/input.c (translate2): Rename to
13742 (translate_no_transparent).
13743 (init_input_requests): Rename tr2 to trnt.
13745 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13747 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13748 (charinfo::set_translation, charinfo::set_special_translation):
13749 Add second argument that specifies value for
13750 transparent_translate.
13751 (charinfo::get_translation, charinfo::get_special_translation):
13752 Add optional second argument that specifies whether translation is
13753 being used for transparent throughput.
13754 * troff/input.cc (charinfo::set_translation,
13755 charinfo::set_special_translation): Handle second argument.
13756 (charinfo::charinfo): Initialize transparent_translate.
13757 (translate): Split main part off into
13758 (do_translate): New function. Pass argument saying whether
13759 translation applies to transparent throughput.
13760 (translate2): New request.
13761 (init_input_requests): Bind translate2 to `tr2'.
13763 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13765 * tbl/table.h (class table): Add `nokeep' flag.
13766 * tbl/main.cc (process_options): Handle `nokeep' option.
13767 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13768 table::do_bottom): Don't output keep/release macro definitions or
13769 calls when `nokeep' option has been specified.
13771 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13773 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13775 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13777 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13778 block_entry::divert, alphabetic_block_entry::divert): Add extra
13779 argument giving column separation.
13780 (table::compute_widths): Pass column separation to
13781 table_entry::divert().
13782 (block_entry::do_divert): If an entry spans multiple columns and a
13783 minimumum width has been specified for each column, then set the
13784 line length to the sum of the widths (plus possibly the column
13787 * troff/input.cc (set_escape_char): Don't set the escape_char
13788 until after calling has_arg().
13790 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13792 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13795 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13796 in case where r > nrows - 1.
13798 * tbl/table.cc (BODY_HEIGHT): Deleted.
13799 (LINE_SEP): New definition.
13800 (table::print_single_hline, table::print_double_hline,
13801 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13802 table::do_row, table::do_top): Use LINE_SEP space before a line
13803 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13805 * tbl/table.cc (text_entry::print_contents): New function.
13806 (text_string_name, right_text_string_name): Deleted.
13807 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13808 (simple_text_entry::do_width, numeric_text_entry::do_width,
13809 alphabetic_text_entry::do_width): Don't store the contents of the
13811 (left_text_entry::simple_print, right_text_entry::simple_print,
13812 center_text_entry::simple_print,
13813 alphabetic_text_entry::simple_print,
13814 numeric_text_entry::simple_print): Print the entry directly
13815 instead of using the stored string.
13817 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13819 * devps/Makefile: Strip PostScript files.
13820 * devps/prologue: Rename to...
13821 * devps/prologue.ps.
13822 * devps/psstrip.sed: New file.
13823 * devps/download: Use .pfa rather than .ps for installed versions
13826 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13828 * troff/env.cc (input_trap): Give a warning if the argument is out
13831 * troff/env.cc (adjust): Treat negative argument as missing. Round
13832 argument > 5 down to 5.
13834 * troff/env.cc (center, right_justify): Make negative argument zero.
13836 * troff/div.cc (page_offset, vertical_position_traps): Treat
13837 invalid argument as missing.
13838 * troff/env.cc (line_spacing, line_length, title_length, indent,
13839 underline, hyphen_line_max_request, control_char,
13840 no_break_control_char, widow_control_request, adjust, input_trap,
13841 point_size): Likewise.
13842 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13843 constant_space): Likewise.
13844 * troff/input.cc (compatible, shift, warn_request,
13845 set_escape_char): Likewise.
13847 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13848 * tbl/table.cc (table::table): Likewise.
13850 * Makefile.dev (install_dev): depends on $(DEVFILES).
13852 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13854 * devX75, devX75-12, devX100, devX100-12: New directories.
13855 * Makefile.in: Add these to DEVDIRS.
13857 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13858 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13859 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13860 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13862 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13863 (uninstall): New target.
13864 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13865 uninstall_prog, uninstall_dev): New targets.
13867 * troff/div.cc (return_request): Treat an invalid argument as
13870 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13872 * tmac/tmac.e ((f): Set up the environment even when there's a
13873 current diversion. Transperently throughput a call to @N.
13876 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13878 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13879 up to vertical resolution.
13881 * tbl/table.cc (table::do_row): Change row number after printing
13884 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13886 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13888 * Rename CHANGES to NEWS.
13890 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13892 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13894 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13896 * man.ultrix: Removed.
13898 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13900 * Makefile.comm (extraclean): Delete files whose names begin with
13903 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13906 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13908 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13909 * troff/div.cc (page_length, need_space, space_request): Treat
13910 invalid optional argument as missing.
13911 * troff/env.cc (number_lines): If the first argument is present
13912 but not a number, turn on line numbering, don't change the next
13913 line number and parse the remaining arguments.
13915 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13917 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13919 * eqn/box.h: Change declaration accordingly.
13920 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13921 the specified size was bad but don't give an error. Check for
13923 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13924 * eqn/lex (do_size): Likewise.
13926 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13928 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13929 compatible headers.
13931 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13933 * tbl/table.cc (table::init_output): Improve error message when
13934 table won't fit on one page.
13936 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13938 * pic/troff.cc (troff_output::start_picture): Generate line
13939 containing a horizontal motion equal to the width of the picture.
13941 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13942 using GROFF_COMMAND_PREFIX environment variable.
13944 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13946 * mdate.sh: Use $NF rather than $(NF).
13948 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13950 * pic/main.cc (main): Use %1 not %c in argument to warning.
13952 * eqn/main.cc (main): Output code to check that geqn was given the
13955 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13957 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13958 `ln -s ../Makefile .; make; rm -f Makefile'.
13960 * troff/hyphen: Rename to...
13962 * troff/input.cc (main): Delete -H option. Don't call
13963 read_hyphen_file().
13964 * troff/env.cc: Include searchpath.h and macropath.h.
13965 (exception_dictionary): Deleted.
13967 (read_hyphen_file): Deleted.
13968 (hyphenation_language): New struct.
13969 (class trie, class hyphen_trie): Move declarations up.
13970 (trie_node::~trie_node): Deleted.
13971 (trie::delete_trie_node): New function.
13972 (trie::do_delete): New pure virtual function.
13973 (hyphen_trie::do_delete): New function.
13974 (trie::~trie): New function.
13975 (hyphen_trie::~hyphen_trie): New function.
13976 (trie::clear): No need to chcek that tp is not 0.
13977 (current_language, language_dictionary): New variables.
13978 (hyphen_word): Give an error if no current language. Use
13979 exceptions dictionary in current language.
13980 (hyphen_trie::read_patterns_file): Find file using macro_path.
13981 Allow comments (starting with %) in patterns file. Don't make it
13982 a fatal error if the file can't be found.
13983 (hyphenate): Return if no current language. Get the exceptions
13984 dictionary and the hyphenation patterns from the current language.
13985 (set_hyphenation_language): New variable.
13986 (hyphenation_patterns_file): New function.
13987 (hyphenation_language_reg): New class.
13988 (hyphenation_language_reg::get_string): New function.
13989 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13990 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13992 * groff/groff.cc (main, help, synopsis): Delete -H option.
13993 * include/Makefile.sub: Don't define HYPHENFILE.
13994 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13995 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13996 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13997 hyphenation patterns.
13999 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
14001 * eqn/neqn.sh: New file.
14002 * eqn/Makefile.sub: Handle neqn.sh.
14004 * eqn/eqn.h: Declare `nroff' variable.
14005 * eqn/box.cc (param_table): Add `nroff' param.
14006 (nroff): Define it.
14007 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14009 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14011 * troff/troff.h (WARN_FONT): New warning.
14012 (WARN_TOTAL): Change accordingly.
14013 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14014 (warning_table): Add WARN_FONT.
14015 * troff/node.cc (mount_font_no_translate): Pass argument to
14016 font::load_font. If this is non-zero, give a warning.
14017 Don't give an error message when accessing a font that has already
14018 been found to be invalid.
14019 * include/font.h (font::load, font::load_font): Add additional
14020 optional argument which suppresses error message if the font is
14022 * libgroff/font.cc (font::load_font): Handle additional argument.
14023 (font::load): Add additional argument. If this is non-null, set it
14024 to 1 and don't give error message.
14026 * include/printer.h (printer::end_page): Add argument giving
14028 * libdriver/input.cc (do_file): Pass this.
14029 * grops/ps.cc (ps_printer::end_page): Add argument.
14030 * grodvi/dvi.cc (dvi_printer::end_page,
14031 draw_dvi_printer::end_page): Add argument.
14032 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14033 columns_per_page members. New member nlines.
14034 (DEFAULT_LINES_PER_PAGE): Deleted.
14035 (tty_printer::tty_printer): Don't compute lines_per_page from
14036 font::paperlength. Don't compute columns_per_page from
14038 (tty_printer::add_char): Don't check horizontal position against
14039 columns_per_page. Grow glyphs vector if neccessary.
14040 (tty_printer::end_page): Add argument giving page_length in units.
14041 Discard lines past end of page.
14043 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
14045 * tmac/tmac.tty-char: Fix definition of \(/l.
14047 * tmac/tmac.X: Define \(en.
14049 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
14051 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14052 lpq, then use lp rather than lpr.
14054 * tmac/tmac.s (par@reset): Don't call `ad'.
14055 (par*env-init): Call `ad'.
14057 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
14059 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14062 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14063 * indxbib/indxbib.cc: Likewise.
14065 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
14067 * libgroff/putenv.c: New file.
14068 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14069 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14070 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14071 stdlib.h with AC_HAVE_HEADERS.
14073 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
14075 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14078 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
14080 * eqn/box.cc (gsize): Make it an int.
14081 (set_gsize): Parse argument handling increment or decrement.
14082 (box::top_level): Convert gsize to a string.
14084 * troff/input.cc (exit_troff): Make buf unsigned char [].
14085 Call to make_temp_iterator casts buf to char*.
14087 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14089 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14090 * Makefile.cpg (depend.temp): Likewise.
14092 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14094 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14096 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
14098 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14100 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
14102 * Version 1.06 released.
14104 * Integrate mm 1.04.
14106 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
14108 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14110 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
14112 * afmtodit/afmtodit.pl: Add -n option that disables generation of
14114 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14115 afmtodit. Regenerate.
14117 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14118 @f back past the current position.
14120 * tmac/tmac.e: Change calls to @R so that comments are not part of
14123 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
14125 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14127 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14128 check that we can link a call to a function declared in <stdio.h>.
14129 (GROFF_UNISTD_H): New macro.
14130 * configure.in: Call it.
14131 * Makefile.in: Document it.
14132 * include/posix.h: New file.
14133 * troff/troff.h: Don't include <osfcn.h>
14134 * troff/input.cc: Include posix.h.
14135 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14137 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14138 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14140 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14141 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14142 * libbib/search.cc (O_RDONLY): Delete definition.
14143 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14144 Don't include <osfcn.h>.
14146 * acgroff.m4 (GROFF_TIME_T): New macro.
14147 * configure.in: Call it.
14148 * Makefile.in: Document it.
14150 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14151 * configure.in: Call it.
14152 * Makefile.in: Document -DTRADITIONAL_CPP.
14153 * include/ptable.h: Don't include generic.h.
14154 (name2): Define it.
14156 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14157 Afterwards remove [T1 and [T2.
14158 (ref*spec!0, ref*spec!2): Use T1 rather than T.
14159 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14160 (ref*add-T2): Renamed from ref*add-T.
14161 (ref*add-T1): New macro.
14163 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
14165 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14167 * libbib/index.cc: Include <fcntl.h>.
14168 (O_RDONLY): Define if necessary.
14169 (make_index_search_item, index_search_item_iterator::get_tag,
14170 index_search_item::check_files): Use O_RDONLY.
14171 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14172 (O_RDONLY): Define if necessary.
14173 (search_list::add_file): Use O_RDONLY.
14174 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14176 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14179 * libbib/index.cc (S_ISREG): Define it if necessary.
14180 (index_search_item::load): Use S_ISREG.
14182 * include/driver.h: Include <errno.h>.
14184 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14186 * eqn/box.cc (body_height): Increase default value to 85.
14187 (body_depth): Increase default value to 35.
14189 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14191 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14192 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14193 protected from expansion with \E.
14195 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14197 * Makefile (Makefile): New target.
14199 * Makefile.sub (configure, distfiles): New targets.
14201 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14204 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14206 * eqn/box.cc (param_table): Add body_height and body_depth.
14208 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14210 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14212 * psbb/Makefile.sub: Don't link with libgroff.a.
14214 * acgroff.m4 (GROFF_PUTENV): New macro.
14215 * configure.in: Call GROFF_PUTENV.
14216 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14217 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14220 * troff/env.cc (distribute_space): Rename force_forward argument
14221 to force_reverse. Reverse the list if force_reverse is true.
14223 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14225 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14227 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14228 height or depth to be negative. Guard against SUP_RAISE quantity
14231 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14233 * devps/generate/textmap: Add `an' (arrowhorizex).
14234 * tmac/tmac.ps: \(an overlaps horizontally.
14235 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14237 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14238 * devps/textmap: Add arrowvertex.
14239 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14240 updownarrow delimiters.
14241 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14243 * tbl/table.cc (simple_entry::position_vertically,
14244 block_entry::position_vertically): For a centered entry, perform
14245 the motion in two stages.
14247 * refer/refer.cc (split_punct): Don't call lookup_token if there
14250 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14252 * troff/input.cc (token::next): Delete token_node after copying
14255 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14258 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14260 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14262 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14264 * grops/ps.cc (usage): -b option takes an argument.
14266 * devps/prologue (PLG): New procedure.
14267 * grops/ps.cc (main, usage): New -g option.
14268 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14271 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14273 * include/cset.h: Include <limits.h> if we have it.
14275 * libgroff/illegal.cc: New file.
14276 * include/lib.h (illegal_input_char): Use table.
14277 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14278 * pic/lex.cc (ARG1): Renumber to 14.
14279 * eqn/lex.cc (ARG1): Likewise.
14281 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14282 (eg 1.05.90) correctly.
14284 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14286 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14287 Rename $r and $R registers to $v and $V.
14288 ($r, $R): Initialize to 0.
14289 (@v, @V): New macros.
14293 * troff/input.cc (main, usage): Add -R option that says not to
14295 * eqn/main.cc (main, usage): Rename -n to -R.
14297 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14299 * devps/DESC.in: Leave font positions 5-9 blank.
14300 * devdvi/DESC.in: Likewise.
14302 * grog/grog.pl: Handle `.PS <file' correctly.
14304 * troff/input.cc (input_stack::push): Improve error message when
14305 input stack limit exceeded.
14307 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14309 * refer/refer.cc (main): Fix typo in handling of `a' option.
14311 * refer/refer.cc (do_bib): In state START after a newline remain
14314 * groff/groff.sh: Deleted.
14315 * groff/Makefile.sub: Delete handling of groff.sh.
14317 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14318 to determine whether to use \X'ps:...'.
14319 * tmac/troffrc: Set 0p register to 0.
14320 * tmac/tmac.ps: Set 0p register to 1.
14322 * groff/groff.cc: Support -X option. Give warning for -TXps and
14323 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14324 * tmac/troffrc: Support -r.X=1.
14326 * pic/troff.cc (troff_output::dot): Don't test
14327 zero_length_line_flag.
14329 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14331 * include/lib.h: Declare getopt() and friends unless
14332 STDLIB_H_DECLARES_GETOPT is defined.
14334 * doc/chars.tr: Delete.
14335 * man/groff_char.man: New file.
14337 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14339 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14340 user has changed register format.
14342 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14344 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14345 `postpro' command in DESC file. Get spooler command from `print'
14346 command in DESC file. Execute spooler command with /bin/sh.
14348 * groff/groff.cc: Split Unix-specific parts into...
14349 * groff/pipeline.c: New file.
14352 * COPYING: New file.
14353 * all files: Update copyright notices.
14355 * Rearrange files. Redo Makefiles. Use autoconf.
14357 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14359 * troff/input.c (charinfo_to_node_list): Interpret character
14360 definition with escape_char of `\'.
14362 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14364 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14365 Define INT_DIGITS as big enough for 64-bit integer.
14366 * lib/strtol.c: Don't include lib.h.
14367 * lib/lib.h: Delete ifdef __cplusplus stuff.
14369 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14371 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14372 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14373 get DESC from current directory.
14375 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14377 * tbl/main.c (main): Always reset the line number when reading
14380 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14381 table::define_bottom_macro, table::do_row, table::do_top): Round
14382 vertical spacing up to vertical resolution.
14384 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14386 * ps/ps.h (enum resource_type): Avoid comma at end of
14388 * dvi/dvi.c (class dvi_printer): Likewise.
14389 * dvi/tfmtodit.c (gf::load): Likewise.
14390 * refer/label.y (struct expression): Likewise.
14391 * refer/refer.c (class label_processing_state): Likewise.
14392 * refer/indxbib.c (do_file): Likewise.
14393 * troff/troff.c (enum warning_type): Likewise.
14394 * tbl/main.c (process_data): Likewise.
14395 * troff/charinfo.h (class charinfo):
14397 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14399 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14401 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14403 * groff.c: Move to new groff subdirectory.
14404 * groff/Makefile: New file.
14405 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14407 * man/mdate.sh: Use ls -L if supported.
14409 * Consolidate all header files produced by gendef into lib/defs.h.
14410 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14411 Don't include path.h.
14412 * lib/Makefile (path.h): Don't generate.
14413 * troff/input.c: Include defs.h. Don't include config.h.
14414 * troff/Makefile (config.h): Don't generate.
14415 * refer/index.h: Don't include suffix.h.
14416 * refer/index.c: Include defs.h.
14417 * refer/indxbib.c: Include defs.h.
14418 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14420 * refer/Makefile (suffix.h, path.h): Don't generate.
14421 * groff.c: Don't include config.h. Include defs.h.
14422 * Makefile (config.h): Don't generate.
14423 (lib/defs.h): Generate.
14424 (topclean): Remove lib/defs.h.
14426 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14428 * lib/malloc.c, lib/getpagesize.h: Deleted.
14429 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14431 * lib/Makefile: Delete malloc-related stuff.
14432 * lib/new.c: Workaround COOKIE_BUG if necessary.
14434 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14435 needed header files directly.
14436 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14437 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14439 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14441 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14443 * lib/font (font::load_desc, font::load): Don't split argument of
14445 (font::handle_unknown_font_command): Change type.
14446 * ps/ps.c (ps_font::handle_unknown_font_command,
14447 handle_unknown_desc_command): Change type.
14448 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14450 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14452 * lib/font.h (font::handle_unknown_font_command): Add file and
14454 * lib/font.c (font::handle_unknown_font_command):
14455 * ps/ps.c (ps_font::handle_unknown_font_command):
14456 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14457 lineno arguments. Use _with_file_and_line functions for error
14460 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14462 * lib/font.c (font::set_unknown_desc_command_handler): New
14464 (font::load_desc): For unknown commands, call
14465 unknown_desc_command_handler if not null.
14466 * lib/font.h (class font): Declare them.
14467 (FONT_COMMAND_HANDLER): New typedef.
14468 * ps/ps.c (handle_unknown_desc_command): New function.
14469 (main): Set bflag if we had a -b option. Call
14470 font::set_unknown_desc_command_handler.
14471 (broken.h): Don't include.
14472 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14474 * ps/devps/Makefile: Add `broken' command to DESC file using
14475 BROKEN_SPOOLER_FLAGS.
14477 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14479 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14481 * macros/tmac.e (@R, @S): New macros.
14482 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14483 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14484 Declare $H, $[0-9], .. macros with @S.
14485 Declare |0, |1, |2, |3 strings with @S.
14487 * macros/tmac.e (@S): Rename to @U.
14489 * macros/tmac.e (@z): Define @b and bp as empty instead of
14492 * macros/tmac.e (@m): Deleted.
14493 (@h): Don't call @m.
14494 (@z): Don't set @m trap.
14496 * macros/tmac.e ($h, $f): Define |z as empty string.
14498 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14501 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14503 ()f): Likewise for * register.
14505 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14506 argument is missing, don't change $R. Call sr with three
14507 arguments when initializing.
14509 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14511 * macros/tmac.e (sr): New macro.
14512 Initialize $r and $R using sr.
14514 * macros/tmac.e (,): Delete \*(#[.
14516 * troff/env.c (set_tabs): Read the tab type even if the position
14517 is bad. Allow the position of the first tab stop to be negative.
14519 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14521 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14523 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14524 rather than -DPATHCONF_MISSING.
14525 * Makefile: Get rid of PATHCONF_MISSING.
14527 * refer/map.c: New file.
14528 * refer/index.c: Interface to mmap through map.c. Rename map_size
14530 * refer/Makefile: Handle map.c.
14531 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14533 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14535 * Makefile: RANLIB should be `true' if there is no ranlib.
14536 * lib/Makefile (libgroff.a): Simplify.
14537 * driver/Makefile (libdriver.a): Simplify.
14539 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14540 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14543 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14545 * troff/env.c (compare_ranges): Declare as extern "C".
14547 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14549 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14551 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14553 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14554 but conditionalize use of \X based on \*(.T.
14555 (grops_output::*): Deleted.
14556 * pic/output.h: Delete declaration of make_grops_output.
14557 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14558 by default. -n sets it to 0.
14559 (usage): Corresponding changes.
14560 * groff.c (main): Don't pass -x or -p to pic.
14561 * groff.sh: Likewise.
14563 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14566 * ps/devps/afmtodit: Change calculation of asc_boundary and
14567 desc_boundary. Make these bounds inclusive.
14568 * ps/devps: Regenerate font files.
14570 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14572 * macros/tmac.latin1: New file.
14573 * macros/tmac.tty-char: Use tmac.latin1.
14574 (tmac.tty-tr): Deleted.
14575 * macros/Makefile: Install tmac.latin1.
14576 * macros/tmac.dvi: Use tmac.latin1.
14577 * macros/troffrc: Translate \[char160] onto no-break space here.
14578 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14580 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14582 * macros/tmac.Xps: Use `do' request.
14584 * macros/tmac.ps: Use `do' request.
14586 * macros/tmac.e (@C): Use `do' request.
14588 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14589 * macros/Makefile: Install tmac.X*.
14591 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14592 * tty/Makefile: Don't install tmac.tty*.
14593 * macros/Makefile: Install tmac.tty*.
14595 * dvi/tmac.dvi: Move to macros.
14596 * dvi/Makefile: Don't install tmac.dvi.
14597 * macros/Makefile: Install tmac.dvi.
14599 * ps/tmac.ps*: Move to macros.
14600 * ps/Makefile: Don't install tmac.ps*.
14601 * macros/Makefile: Install tmac.ps*.
14603 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14605 * macros/eqnrc: Set draw_lines parameter based on device.
14606 * groff.c: Don't pass -D flag to eqn.
14607 * groff.sh: Likewise.
14608 * eqn/main.c: Warn about use of -D.
14610 * troff/input.c (process_startup_file): New function.
14611 (main): Call process_startup_file().
14612 * macros/troffrc: New file.
14613 * macros/Makefile: Install troffrc.
14614 * groff.c (main): Don't pass extra -m option to troff. For a
14615 pseudo device pass the name of the pseudo device to troff using
14617 * groff.sh: Likewise.
14618 * groff.c (possible_command::prepend_arg): Deleted.
14620 * troff/input.c (do_request): New function.
14621 (init_input_requests): Bind "do" to do_request.
14623 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14624 load eqnrc from macro directory.
14625 * macros/eqnrc: New file.
14626 * macros/Makefile: Install eqnrc.
14627 * ps/devps/eqnchar: Deleted.
14628 * ps/devps/Makefile: Don't install eqnchar.
14629 * dvi/devdvi/eqnchar: Deleted.
14630 * dvi/devdvi/Makefile: Don't install eqnchar.
14631 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14634 * lib/device.[ch]: New files.
14635 * lib/font.h (font::set_device_name, font::get_device_name):
14637 * lib/fontfile.c: Use device.h.
14638 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14639 * troff/input.c: Delete definition of `device'.
14640 (main): Don't initialize device.
14641 * troff/troff.h: Include device.h rather than declaring device.
14642 * troff/Makefile: No need to handle DEVICE.
14643 * driver/input.c: Include device.h. Don't use
14644 font::{set,get}_device_name.
14645 * groff.c, Makefile: Rename device.h to config.h.
14646 * groff.c: Use library device variable.
14647 * eqn/main.c: Use library device variable.
14648 * eqn/Makefile: No need to handle DEVICE.
14650 * lib/searchpath.[ch]: New files.
14651 * lib/Makefile: Handle searchpath.[ch].
14652 * troff/input.c (open_file, init_dirs): Deleted.
14653 (macro_dirs): Deleted.
14654 (open_mac_file, macro_source): Use class search_path.
14655 (add_string, struct string_list): Move definition.
14656 (main): Change -M option to use macro_path. Delete call to
14658 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14659 Rewrite to use class search_path.
14660 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14661 * lib/Makefile: fontfile.c depends on searchpath.h.
14662 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14664 * lib/macropath.[ch]: New files.
14665 * troff/Makefile: No need to handle MACROPATH.
14667 * troff/input.c: Delete DUMP code.
14668 * lib/fontfile.c, lib/font.h: Delete
14669 font::forget_command_line_font_dirs.
14671 * troff/input.c (push_token): New function.
14672 (handle_first_page_transition): Use push_token().
14673 (process_input_stack): Change handling of a space at the beginning
14676 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14678 * troff/input.c (font_dirs): Delete unused variable.
14680 * eqn/lex.c (do_set): Correct error messages.
14682 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14684 * troff/input.c (do_define_string): Allow the string name to be
14685 followed immediately by a tab.
14686 (define_character): Likewise.
14688 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14690 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14693 * troff/input.c (input_iterator::is_file): New virtual function.
14694 (file_iterator::is_file): New function.
14695 (input_stack::end_file): New function.
14696 (input_stack::next_file): Handle the situation where there is no
14697 file on the input stack correctly. Avoid making two passes over
14699 (next_file): Make the filename optional; in this case call
14700 input_stack::end_file().
14702 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14704 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14705 produce a real _ charater when the current font is CW and _
14708 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14709 expression to work around gcc 2.2 bug.
14711 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14713 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14715 * troff/env.c (environment::add_padding): New function.
14716 (environment::add_char): Use add_padding().
14717 (environment::space): Likewise.
14718 (environment::wrap_up_field): Add some padding if there is none
14719 and there's no current tab.
14720 * troff/env.h: Declare environment::add_padding.
14722 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14724 * pic/pic.y: undef fmod and rand before declaring them.
14726 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14728 * troff/input.c (main): If the DESC file specifies a font name of
14729 0, then leave the corresponding font position empty.
14731 * nroff.sh: New file.
14732 * Makefile (install.nobin): Install nroff.sh.
14734 * tty/devlatin1/R.proto: Add ao as synonym for de.
14735 * tty/tmac.tty-char: Define ao as o.
14737 * tty/dev{ascii,latin1}/R.proto: Add aq.
14738 * tty/tmac.tty-char: Delete definition of aq.
14740 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14742 * troff/input.c (init_charset_table): Don't translate 0240.
14743 * ps/tmac.ps: Translate char160 to space.
14744 * dvi/tmac.dvi: Likewise.
14745 * tty/tmac.tty: Likewise.
14747 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14749 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14751 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14752 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14755 * tty/tmac.tty-char: Add \(ah.
14757 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14758 No need to define \(FM and \(!/. Conditionalize all character
14761 * ps/devps/lgreekmap: Add +h, +f, +p.
14763 * ps/tmac.psnew: New file.
14764 * ps/Makefile: Install tmac.psnew.
14766 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14767 character definitions in compatible mode.
14769 * troff/input.c (remove_character): New function.
14770 (init_input_requests): Bind remove_character to "rchar".
14772 * ps/tmac.psold: New file.
14773 * ps/Makefile: Install tmac.psold.
14774 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14775 characters into tmac.psold. Make these definitions unconditional.
14777 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14779 * ps/tmac.ps: Don't define \('c and \('C.
14781 * ps/devps/textmap: Move Greek characters to...
14782 * ps/devps/symbolchars:
14784 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14786 * ps/devps/text.enc: Add quotesingle.
14787 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14788 * tty/tmac.tty-char: Likewise.
14789 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14790 * dvi/devdvi/texi.map: Add Fn.
14791 * dvi/devdvi/msam.map: Add lz.
14792 * dvi/tmac.dvi: Handle Bq, bq, aq.
14794 * pic/lex.c (get_token): Recognize 'th.
14795 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14797 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14799 * ps/devps/textmap: Move di, mu, +- to...
14800 * ps/devps/symbolchars:
14802 * macros/tmac.s (@XS): Don't call par@reset or fi.
14803 (XA): Call LP. Turn off adjustment. Reduce line length.
14805 * macros/tmac.s: Initially alias XS to LP.
14806 (XS): Rename to @XS.
14807 (cov*ab-init): Alias XS to @XS.
14809 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14811 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14812 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14813 (token::is_size, token::changes_env): Deleted.
14814 * troff/number.c (parse_term): No need to process \s explicitly.
14815 Call tok.next() only after scale indicator has been processed.
14816 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14818 (token::next): Handle \s, \f, \S, \H immediately rather than
14819 returning them as tokens.
14820 (token::operator==, token::description, token::add_to_node_list,
14821 token::process): Remove handling of deleted tokens.
14823 * troff/env.c (environment::add_char): When adding padding
14824 indicator character, call start_line() if necessary.
14826 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14828 * ps/devps/afmtodit: Don't output 0 kerns.
14830 * ps/devps/afmtodit: Remove directory from name of encoding in
14831 font description file.
14833 * ps/devps/afmtodit: Improve error messages.
14835 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14837 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14838 * ps/devps/FontMakefile: Deleted.
14839 * ps/devps/afmname: New file.
14841 * ps/devps/symbol.sed: New file.
14842 * ps/devps/symbol.diff: Deleted.
14843 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14844 Generate zapfdr.afm from zapfd.afm.
14846 * tty/tmac.tty (tty-char): Prefix definition with ".
14848 * macros/tmac.an (TP): Don't start a diversion if one has already
14851 * tty/tmac.tty-char: Add Latin-1 characters.
14853 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14855 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14857 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14858 Move declaration of struct horizontal_span.
14860 * tbl/table.c (table::table): Initialize span_list.
14861 (table::~table): Delete span_list.
14863 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14865 * ps/devps/Makefile: Avoid dependency on GNU make.
14867 * ps/tmac.ps: Check that character does not already exist before
14870 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14871 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14872 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14875 * tty/tmac.tty-char: New file.
14876 * tty/Makefile: Install tmac.tty-char.
14877 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14880 * tty/tmac.tty: Fix definition of \(34.
14882 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14883 bracket-drawing characters onto |. Add *o.
14885 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14886 only if current_field.
14888 * troff/dictionary.c (dictionary::lookup): Free old_table after
14891 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14893 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14894 whose glyphs are identical to glyphs of some Roman character.
14896 * tty/devlatin1/R.proto (bu): Deleted.
14897 * tty/devascii/R.proto (bu): Deleted.
14898 * tty/tmac.tty: Add definition of \(bu.
14900 * eqn/main.c (do_file): Pass FILE as argument.
14901 (main): Automatically load eqnchar. New options -F and -n.
14902 Pass do_file an opened FILE.
14903 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14904 No need to include font.h.
14905 * groff.sh: Likewise. Don't need to use - for standard input.
14906 Prefix files with -- if first file starts with -.
14908 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14910 * troff/env.c (environment::possibly_break_line): Don't set line
14911 to 0 across call to output_line(). Don't call output_line() until
14912 after discarding nodes after break.
14914 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14916 * request.h (macro::empty): Declare it.
14917 * input.c (macro::empty): New method.
14918 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14921 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14923 * troff/env.c (environment::start_field): Decrement space_total
14924 when a space is frozen.
14926 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14928 * macros/tmac.an (R): Delete macro.
14930 * troff/input.c (get_copy, token::next): Support \# (like \" but
14931 newline is ignored).
14933 * troff/input.c (token::next): Fix error message in 'Y' case.
14935 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14937 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14940 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14942 * c++test.c: Include <osfcn.h>.
14944 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14947 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14949 * tbl/table.c (table::divide_span): Don't count column separation
14950 if expand was specified.
14952 * tbl/main.c (process_format): Don't ignore width specs in
14953 continued format. Give warning for changing equal widths or
14954 column separation in continued format.
14955 (process_data): Set column separation, minimum width, equal
14956 columns at end of table.
14958 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14960 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14961 node::add_discretionary_hyphen): Use soft_hyphen_char.
14962 (set_soft_hyphen_char): New function.
14963 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14965 * Makefile (c++tested): Give more helpful message if test fails.
14967 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14969 * troff/input.c (init_charset_table): Translate 0240 to
14970 an unbreakable space.
14972 * troff/token.h (token::hyphen_indicator): New function.
14973 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14975 * troff/input.c (translate): Allow translation to \%.
14976 * troff/node.c (node::add_char): Handle
14977 TRANSLATE_HYPHEN_INDICATOR.
14978 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14980 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14983 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14985 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14987 * groff.c (run_commands): If the last command gets a SIGPIPE send
14988 a SIGPIPE to all children than haven't yet terminated. When
14989 command terminates, set pid field to -1.
14991 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14993 * groff.c (main): Pass an appropriate -filename option to gxditview.
14995 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14997 * Makefile.bd (install): Remove existing program before copying.
14999 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15000 programs which have Unix counterparts to be installed with
15001 user-specified prefix.
15003 * troff/input.c (exit_troff): Don't check if exit_started.
15004 (exit_request): Don't call exit_troff if exit_started.
15006 * Makefile.bd (install.mm): Rename to install.dwbmm.
15008 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
15010 * driver/input.c (do_file): Add missing break for '#' case.
15012 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
15014 * troff/input.c (input_stack::clear): Clear past any boundaries and
15015 then add the boundaries back.
15017 * troff/input.c (exit_troff): Return immediately if already
15020 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
15022 (pg*end-page): If the text has ended and there are no more
15023 footnotes or keeps, exit.
15025 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15027 * troff/input.c (init_charset_table): Make \(rq transparent by
15030 * macros/tmac.an: Define lq and rq strings.
15032 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15034 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
15036 * troff/env.c (environment::final_break): New function.
15037 (environment::newline): Set prev_line_interrupted to 2 if
15039 * troff/env.h: Declare environment::final_break.
15040 * troff/input.c (exit_troff): Call environment::final_break()
15041 instead of environment::do_break().
15043 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15044 doesn't already exist.
15045 * macros/man.local: New file.
15046 * macros/tmac.an: Load man.local.
15047 * macros/man.ultrix: New file.
15049 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
15051 * troff/input.c (exit_groff): Rename to...
15052 (exit_troff): New function.
15054 * troff/div.c (exit_started, done_end_macro,
15055 seen_last_page_ejector): New global variables.
15056 (began_page_in_end_macro): New static variable.
15057 (exit_flag): Deleted.
15058 (top_level_diversion::top_level_diversion): Initialize
15060 (top_level_diversion): More elaborate test for whether
15061 cleanup_and_exit() should be called.
15062 Set began_page_in_end_macro if the end macro isn't yet finished.
15063 * troff/div.h (top_level_diversion::last_page_count): New data
15065 (top_level_diversion::set_last_page): New function.
15066 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15067 * troff/env.c (do_break): Zero prev_line_interrupted.
15068 * troff/input.c (exit_flag): Delete declaration.
15069 (LAST_PAGE_EJECTOR): New magic cookie.
15070 (token::next): Handle LAST_PAGE_EJECTOR.
15071 (exit_groff): Set exit_started and done_end_macro instead of
15072 exit_flag. Call top_level_diversion::set_last_page. Push a
15073 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
15074 another ejection after setting seen_last_page_ejector.
15076 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
15078 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15080 * macros/tmac.e (TH): Make sure there's room for the initial
15083 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15084 Set FVS in points rather than units.
15086 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
15088 * troff/div.c (top_level_diversion::add_trap): Don't consider the
15089 position of empty slots.
15091 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
15093 * ps/devps/S: Fix height and depth of parenrightex.
15094 * ps/devps/symbol.diff: Regenerate.
15096 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
15098 * tmac.e (u): Do underlining as in -mgs.
15100 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
15102 * tty/tty.c (tty_printer::end_page): If overstriking is
15103 suppressed, still turn overstruck horizontal and vertical lines
15106 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15109 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15111 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
15113 * Version 1.05 released.
15115 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
15117 * tty/tty.c: Instead of keeping an array of glyphs and then
15118 sorting it, keep a ordered linked list of glyphs for each line.
15120 * driver/driver.h: Include stddef.h.
15122 * tty/tty.c (compare_glyph):
15123 * refer/refer.c (rcompare):
15124 * troff/env.c (compare_ranges): Arguments of qsort comparison
15125 function should be const void *.
15127 * troff/number.c (parse_term):
15128 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15131 * refer/label.y (consider_authors): Don't access variables
15132 constructed under a condition outside that condition: put braces
15133 round for statement containing declaration; redeclare use of same
15136 * pic/pic.y (text_expr): Delete production that allows
15137 parenthesised text_expr.
15138 (expr): Allow a conditional_expr to appear in parentheses.
15139 (conditional_expr): Rename to any_expr.
15141 * mm: Install new version 1.01 from jh.
15143 * lib/font.c (font::get_width): Cache scaled widths.
15144 (font::font): Initialize widths_cache.
15145 (font::~font): Destroy widths_cache.
15146 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15148 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
15150 * c++test.c, c++test.ref: New files.
15151 * Makefile: Check that the C++ compiler works.
15153 * ps/tmac.pspic (PSPIC): Do a break.
15155 * ps/tmac.ps: Move definition of PSPIC into...
15156 * ps/tmac.pspic: New file.
15157 (PSPIC): Draw box around picture, but make it invisible to grops.
15158 * ps/tmac.ps: Load tmac.pspic.
15159 * ps/Makefile: Install tmac.pspic.
15161 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
15163 * lib/font.c (scale_round): If n is negative,
15164 subtract .5 before truncating floating point result.
15166 * lib/fontfile.c: Include <errno.h>.
15168 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
15170 * driver/input.c (get_char): Inline. Don't update current_lineno.
15171 Change callers to up date current_lineno if necessary.
15172 Use get_char() instead of getc(current_file).
15174 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
15176 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15178 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15180 * tty/tty.c (tmac.tty): Define \(rg as (R).
15182 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15184 * lib/lib.h: New define a_delete.
15185 * Use a_delete instead of delete when deleting an array of objects
15186 without destructors.
15188 * lib/lib.h: Rename adelete to ad_delete.
15189 * Change uses of adelete.
15191 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15193 * eqn/eqn.y: Include lib.h.
15195 * troff/node.c (grow_font_table): Delete old_font_table.
15197 * mm: Install new version from jh.
15199 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15201 * tbl/table.h (format_type): Make global instead of local to class
15202 entry_format. Prefix enumerators with FORMAT_.
15203 * tbl/table.c, tbl/main.c: Corresponding changes.
15204 * refer/token.h (token_type): Make global. Prefix enumerators
15206 * refer/token.[ch]: Corresponding changes.
15207 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15209 * troff/div.c (node::set_vertical_size): Don't name argument.
15211 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15213 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15214 * lib/lib.h: Define adelete accordingly.
15215 * pic/object.c (graphic_object::graphic_object):
15216 * tbl/main.c (format::~format):
15217 * tbl/table.c (table::~table):
15218 * refer/ref.c (reference::~reference, reference::merge,
15219 reference::insert_field, reference::delete_field): Use adelete.
15221 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15223 * tbl/table.h: Corresponding changes.
15225 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15226 Ensure total_angle is positive.
15228 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15230 * refer/ref.c (reference::merge, reference::insert_field,
15231 reference::delete_field): Avoid delete[0].
15233 * refer/token.c (init_special_chars): Move calls to cmupper
15234 outside calls to init_two_char_letter to work around bug in gcc
15237 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15239 * lib/new.c (operator new): Use __builtin_new for g++.
15241 * pic/object.c (graphic_object::~graphic_object): Don't use
15244 * pic/object.c (output::compute_scale): Initialize max_width and
15247 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15249 * troff/input.c (write_request): Call fflush.
15251 * troff/node.h (class composite_node): Move declaration to node.c
15252 * troff/input.c (charinfo_to_node): Rename to ...
15253 (charinfo_to_node_list): Return node list rather than composite
15255 * troff/node.c (make_composite_node): New function.
15256 (make_node, add_char): Call make_composite_node instead of
15258 (class composite_node): Add a tfont * member. Delete font_size
15260 (composite_node::composite_node, composite_node::copy,
15261 composite_node::size): Corresponding changes.
15262 (composite_node::tprint): Provide constant spacing, emboldening
15263 and track kerning as specified in tfont.
15264 (composite_node::width): Change width calculation accordingly.
15265 * troff/env.h (environment::composite): New member.
15266 (environment::is_composite, environment::set_composite): New
15268 * troff/env.c (environment::environment): Initialize composite.
15269 * troff/input.c (charinfo_to_node): Call
15270 environment::set_composite.
15271 * troff/node.c (make_composite_node, make_glyph_node): Use the
15272 plain version of the tfont if the environment is composite.
15274 * troff/node.c (font_info::get_space_width): Additional argument
15275 giving space_size. Handle constant space correctly. Scale by
15276 space_size unless constant spaced.
15277 (env_sentence_space_width): New function.
15278 * troff/node.h: Declare it.
15279 * troff/env.h (environment::get_space_size,
15280 environment::get_sentence_space_size,
15281 environment::get_narrow_space_width,
15282 environment::get_half_narrow_space_width): Make inline.
15283 (environment::get_space_width): Make inline. Just call
15285 * troff/env.c: Delete definitions for funtions made inline.
15286 (environment::space_newline, environment::space): Use
15287 env_sentence_space_width(). Don't scale by space_size.
15288 * troff/node.h: Move declarations of env*space_width() functions
15291 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15293 * macros/tmac.s (PS): Don't try to set negative indent.
15295 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15297 * pic/pic.y: Fix min function.
15299 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15301 * man/mdate.sh: Clear LANGUAGE.
15303 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15305 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15306 * pic/lex.c: New COMMAND keyword.
15307 * pic/pic.y (print_args, print_arg): New rules.
15308 (placeless_element): Use print_args for PRINT.
15309 New COMMAND element.
15311 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15313 * troff/input.c (terminal): Handle missing argument correctly.
15315 * pic/pic.y (text_expr): New rule.
15317 * pic/pic.y: Implement := operator.
15319 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15321 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15324 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15326 * ps/devps/dingbatsrmap: Include this in the distribution.
15328 * macros/tmac.doc: Replace with new version from 2nd Networking
15329 Release. Fix loading of doc-* files.
15330 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15331 * macros/tmac.doc.old: New file. Apply fixes that had been
15332 applied to old tmac.doc.
15333 * macros/tmac.andoc: Check that we're running under groff.
15334 * macros/Makefile: Rework.
15336 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15338 * tbl/table.h (format_type):
15339 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15340 typedef to make these types visible at file scope.
15341 * Makefile: Add NESTED_TYPES configuration option.
15343 * troff/div.c (mark): At the top level use the value of
15344 nl_reg_contents rather than the current vertical position.
15346 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15348 * tty/tty.c: Implement \D for horizontal or vertical lines.
15349 (tty_printer::set_char): Use vec_used+2 as serial number.
15350 Don't allow size of vector to exceed USHRT_MAX-2.
15351 Split off part into...
15352 (tty_printer::add_char): New function.
15353 (tty_printer::draw): New function.
15354 (compare_glyph): Handle equal serial numbers.
15355 (tty_printer::end_page): Handle overstruck characters from \D.
15356 (main, usage): Implement -d option.
15358 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15360 * tbl/main.c (process_format):
15361 * eqn/text.c (split_text):
15362 * troff/input.c (token::next): Use inner block for declarations
15363 with initializers in switch statement.
15365 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15367 * pic/common.c (common_output::dash_line): Cope with zero-length
15370 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15372 * Version 1.04 released.
15374 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15376 * macros/tmac.an (TH): Define a macro an-init to define variables
15377 based on command line arguments.
15378 (an-header): Call it.
15380 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15382 * Makefile (install.mm): Rename to install.dwbmm.
15384 * Makefile: Integrate mm.
15385 * mm: New directory.
15387 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15389 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15392 * pic/troff.c (troff_output::simple_spline,
15393 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15394 shadowing parameter.
15396 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15398 * lib/ptable.h: Add explicit casts when converting from unsigned
15401 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15402 * dvi/devdvi/Makefile: Install SA, SB.
15404 * refer/indxbib.c: Add declaration of mktemp.
15406 * refer/lookbib.c: Add declaration of isatty.
15408 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15410 * pic/lex.c (interpolate_macro_with_args): While collecting
15411 arguments, keep track of whether we're in a string.
15413 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15415 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15416 down with \v, so as to avoid problems with top of page trap
15417 setting no space mode.
15419 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15421 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15423 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15425 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15426 Improve error message.
15428 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15430 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15433 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15435 * groff.c (possible_command::execp): Always use _exit() after a
15438 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15439 NO_SYS_WAIT_H configuration options.
15440 * groff.c: Use these options. Use POSIX-style macros to extract
15441 fields from the status returned by wait().
15443 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15445 * tbl/table.c (table::compute_separation_factor): Allow the
15446 separation factor to drop to 0.
15448 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15450 * refer/search.c: Include <errno.h>.
15452 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15454 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15456 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15459 * pic/lex.c (input_stack::bol): Move definition out of class body.
15461 * pic/main.c: On MSDOS munge argv[0].
15463 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15465 * lib/ptable.c (hash_string): Use unsigned long rather than
15467 (next_ptable_size): Use unsigned rather than int. Give an error
15468 message if we've hit the largest table size.
15469 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15472 * pic/object.h (object_spec): Make flags unsigned long. Declare
15473 flags as const unisgned long rather than as enums.
15475 * pic/output.c: Deleted.
15477 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15479 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15480 Add additional argument.
15481 (line_entry::note_double_vrule_on_{left,right}): Set value of
15482 douvle_vrule_on_{right,left} flag according to argument.
15483 (simple_line_entry::simple_print,
15484 simple_line_entry::double_line_print): If adjacent to double vrule
15485 on a corner extend rather than shorten the rule by half the double
15488 * troff/number.c (parse_term): In checking for overflow, handle the
15489 case where the current horizontal position is negative.
15491 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15493 * pic/object.c (draw_arrow): Check for object having zero length.
15495 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15497 * eqn/main.c (do_file): Split off inline equation handling into...
15498 (inline_equation): New function. Search for starting delimiter
15500 (delim_search): New function. Don't recognize a delimiter that
15501 occurs in the name of an escape sequence, number register, string
15504 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15506 * eqn/delim.c (delim_box::compute_metrics): Don't call
15507 define_extensible_string if left is 0.
15508 (delim_box::output): Don't print the left delimiter if left is 0.
15509 (delim_box::debug_print): Check for left == 0 before calling printf.
15511 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15513 * troff/Makefile (majorminor.c): Include only digits in
15516 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15518 * refer/dirnamemax.c: new file.
15519 * refer/genlimits.c: Deleted.
15520 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15521 Don't check path length.
15522 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15523 * Makefile: Add PATHCONF_MISSING option.
15525 * refer/indxbib.c (get_cwd): New function.
15526 (main): Use get_cwd().
15527 * lib/getcwd.c: New file.
15528 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15529 GETCWD in SUBFLAGS.
15530 * lib/Makefile: Compile getcwd.o.
15532 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15535 * refer/indxbib.c (main): Check success of mktemp.
15537 * lib/tmpfile.c: New file.
15538 * lib/Makefile: Add tmpfile.c.
15539 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15540 * ps/ps.h: Delete declaration of mktemp().
15541 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15542 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15543 * driver/driver.h: No need now to include errno.h.
15545 * everywhere: Set errno to 0 before calling fopen().
15547 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15548 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15549 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15551 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15553 * troff/env.h (translate_space_to_dummy): Declare it.
15554 * troff/env.c (environment::space_newline, environment::space):
15555 If translate_space_to_dummy is set then make the width of spaces 0.
15556 * troff/input.c (translate): If the second character of a
15557 translation is a space, translate to unbreakable space. If the
15558 first character is a space, set or clear translate_space_to_dummy
15559 according to whether the second character is \&. Weird!
15561 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15563 * groff.c (run_commands): Don't use non-zero exit code because a
15564 command gets SIGPIPE.
15566 * groff.c, groff.sh: Use -mXps with -TXps.
15568 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15569 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15570 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15571 (ps_printer::special): New specials invis and endinvis.
15572 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15573 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15574 (ps_printer::end_page): Check that invis_count == 0.
15575 (ps_printer::invis_count): New member.
15576 (ps_printer::ps_printer): Initialize invis_count to 0.
15578 * troff/env.c (environment::hyphenate_line): Hyphenation
15579 indicator at beginning of word inhibits splitting after -, \(em
15582 * pic/pic.y (element): Allow another element to follow } without
15583 any intervening separator.
15585 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15587 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15589 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15591 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15592 declaration of wait() in header files.
15593 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15595 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15597 * lib/lib.h: Declare return type of strerror as char *.
15599 * man/Makefile: Add g flag to sed substitutions.
15600 * Makefile (shgroff, bindist): Likewise.
15602 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15604 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15605 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15608 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15610 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15613 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15615 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15618 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15620 * troff/input.c (define_number_reg): If currently undefined,
15621 don't define it if the argument is an invalid expression.
15623 * Makefile: Ignore return value of `if' commands without `else'
15626 * Makefile: Split up CPPDEFINES into a series of separate
15627 configuration options.
15629 * troff/input.c (init_registers): Use time_t instead of long
15630 unless LONG_FOR_TIME_T is defined. Use returned result rather
15631 than passing pointer.
15632 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15634 * lib/Makefile (fontpath.h): Use gendef.
15636 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15638 * troff/input.c (input_iterator::shift): Delete argument name.
15639 * troff/node.c (suppress_output_file::really_begin_page,
15640 suppress_output_file::really_transparent_char, node::ascii_print,
15641 node::tprint): Delete names of unused arguments.
15643 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15645 * refer/label.y (string): Pass $4 to command_error.
15647 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15649 * Version 1.03 released.
15651 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15653 * Makefile: Pass definition of SHELL in SUBFLAGS.
15655 * gendef: New file.
15656 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15657 ps/Makefile: Use gendef to construct header files that are
15658 constructed from the Makefile.
15660 * macros/Makefile: make all should build stripped version of tmac.e.
15662 * refer/Makefile (clean): Remove y.output.
15664 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15666 * ps/pfbtops.c (main): Add -v option which prints out a version
15668 * ps/Makefile (pfbtops): Link with libgroff.a.
15670 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15672 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15673 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15675 * refer/lkbib.c (main): Always terminate reference with blank
15677 * refer/lookbib.c (main): Likewise.
15679 * refer/linear.c (file_buffer::load): Check that the file is not a
15682 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15683 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15684 Delete second inclusion of <sys/param.h>.
15686 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15688 * troff/token.h (token::special): Deleted.
15690 * tbl/main.c (process_format): Rework so that opt->tab_char is
15691 recognized only when appropriate.
15693 * ps/Makefile (clean): Remove pfbtops.
15695 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15697 * lib/font.c (text_file::next): Don't return if we have got a
15700 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15702 * refer/refer.c (store_reference): Get hash code from old_table[i]
15703 when rehashing the table.
15705 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15707 * eqn/box.c (box::top_level): Save size and prev size using \R and
15708 restore it afterwards. Set the size to the size at the beginning
15710 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15711 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15713 * refer/Makefile (limits.h): Use ./genlimits.
15715 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15717 * refer/index.c: Delete declarations of stat() and fstat().
15719 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15721 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15723 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15725 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15727 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15729 * troff/input.c (token::get_char): Handle \e.
15731 * refer/linear.c: Delete declarations of fstat() and stat().
15733 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15735 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15736 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15738 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15740 * troff/input.c (do_define_macro): Improve error handling for end
15741 of file while defining macro.
15743 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15745 * eqn/box.h: Fix declaration of set_gsize.
15746 * eqn/box.c (set_gsize): Make argument const char *.
15747 (gsize): Declare as char *.
15748 * eqn/main.c (main): Don't convert gsize to int.
15749 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15751 * Version 1.02 released.
15753 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15755 * macros/tmac.andoc: New file.
15756 * macros/Makefile: Install tmac.andoc.
15758 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15759 operator new and delete on OP_DELETE_BROKEN not being defined.
15760 * Makefile: Mention OP_DELETE_BROKEN.
15762 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15764 * Makefile (bindist): Pass SUBFLAGS.
15766 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15768 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15770 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15773 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15775 * ps/ps.h, ps/psrm.c: Make comment_table and
15776 header_comment_table local to resource_manager::process_file.
15778 * groff.sh: With -TXps pass -printCommand option to gxditview.
15780 * groff.c (possible_command::print): Implement using
15781 append_arg_to_string.
15783 * xditview: Merge in new implementation with own ChangeLog.
15785 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15787 * groff.c (main): Implement PRINT_OPTION.
15788 (append_arg_to_string): New command.
15789 (device_table): Set PRINT_OPTION flag for Xps.
15791 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15793 * troff/groff.h: Rename to troff.h.
15795 * pic/lex.c (lookup_keyword, docmp): New functions.
15796 (get_token): Use new lookup_keyword.
15797 Don't include key.h.
15798 * pic/key.[ch], pic/pic.gperf: Deleted.
15799 * pic/Makefile: Remove gperf stuff.
15801 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15803 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15805 * troff/Makefile, troff/node.c: Move definition of
15806 STORE_WIDTH into node.c.
15808 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15810 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15812 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15813 dvi/devdvi/texb.map: Add lq and rq.
15814 dvi/devdvi: Regenerate fonts.
15815 * ps/devps/textmap: Add lq and rq.
15816 * ps/devps: Regenerate fonts.
15817 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15818 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15820 * pic/object.c (position_rectangle): When checking radius
15821 cope with possiblity that width or height is negative.
15822 (box_object::box_object): Have separate xrad and yrad with
15823 signs matching signs of dim components.
15824 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15825 (box_object::print): With rounded boxes use absolute values
15826 for dim and rad arguments.
15828 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15831 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15833 * various files: Add explicit destructors to keep Saber CC +d
15836 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15838 * eqn/box.c (box::top_level): Restore fonts correctly after
15839 font changes in line containing inline equation. Also
15840 restore previous font as well as current font.
15841 * eqn/pbox.h: Define necessary string and register names.
15843 * troff/input.c (token::next): Case 'R' calls do_register.
15844 (do_register): New function.
15846 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15848 * groff.c, groff.sh: Support Xps device. Allow each device
15849 to have a pseudo_name and a real_name.
15851 * groff.c (run_commands): Don't print `Broken pipe' messages.
15853 * ps/pfbtops.c: New file.
15854 * ps/Makefile: Add pfbtops.
15856 * troff/number.c (parse_term): Improved error message.
15858 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15860 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15862 * Makefile: Integrate refer.
15863 * refer: New directory.
15864 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15865 man/lkbib.man: New files.
15866 * man/Makefile: Support refer man pages.
15868 * lib/lib.h: Declare is_prime.
15869 * lib/prime.c: New file.
15871 * troff/input.c (macro_source): New function.
15872 (init_input_requests): Bind "mso" to macro_source.
15874 * troff/env.c (environment::possibly_break_line): Maintain
15875 pointer to pointer to node to be split in ndp so as to avoid
15876 using address of freed node.
15878 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15879 pointer to first node to be hyphenated in startp so as to
15880 avoid using address of freed node.
15882 * troff/env.c (class trie, class hyphen_trie): Make the
15883 elements of the trie be of type char not unsigned char.
15884 Declare arguments to be const char* instead of unsigned char *.
15886 * troff/env.c (hyphenate): Initialize hbuf[0].
15888 * troff/input.c (set_string): Declare p to be char * and cast
15889 *p to unsigned char when necessary.
15891 * troff/input.c (do_define_macro): Declare s to be const
15892 char*. Cast element to unisgned char when necessary, Declare
15893 d to be an int. Handle EOF better.
15895 * troff/Makefile, troff/input.c: Different scheme for passing
15896 definitions of MACROPATH, HYPHENFILE and DEVICE.
15898 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15900 * tty/devascii/R.proto: Delete entry for em.
15901 * tty/devlatin1/R.proto: Likewise.
15903 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15905 * troff/input.c (translate): Stop when we get a space. Treat eof
15908 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15910 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15912 * tbl/main.c (process_format): A font name following a `f'
15913 modifier that starts with a digit can be only one character long.
15914 Also deal with EOF on the second character of the font name.
15916 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15918 * troff/input.c (token::next): Turn \~ into an
15919 unbreakable_space_node.
15920 * troff/node.c (unbreakable_space_node): New class.
15921 * troff/node.h: Declare it.
15923 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15925 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15926 it's >= 0, before outputting it as a single byte.
15928 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15930 * lib/font.c: Make font_char_metric::code an int.
15931 (font::get_code): Change return type to int.
15932 (font::load): Allow code to be arbitrary integer.
15933 * lib/font.h (font::get_code): Change return type to int.
15934 (font::number_to_index): Change argument type to int.
15935 * troff/input.c (token::next): In case 'N', allow any value.
15936 Store value in token::val.
15937 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15938 (token::get_char, token::add_to_node_list, token::process): Get
15940 (charinfo::set_number): Change argument to int.
15941 (charinfo::get_number): Require that NUMBERED flag be set.
15942 (get_charinfo_by_number): Store numbered characters not between 0
15943 and 255 in a dictionary.
15944 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15946 (charinfo::number): Change type to int.
15947 (charinfo::set_number): Change type of set_number to int.
15948 * troff/node.c (troff_output_file::put_char_width,
15949 troff_output_file::put_char): Test whether character is numbered
15950 using charinfo::numbered().
15951 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15953 * lib/nametoindex.c: New implementation to cope with arbitrary
15956 * troff/input.c (token::operator==): Test val for
15957 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15960 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15961 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15963 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15965 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15968 * all Makefiles: rm targets of cp and >.
15970 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15973 * eqn/lex.c (def_table): Add dollar.
15975 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15977 * troff/input.c (do_width): Push back newline before closing delim
15980 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15982 * groff.c (possible_command::prepend_arg): New function.
15983 (main): Prepend device -m option.
15984 * groff.sh: Put device -m options before command-line options.
15986 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15988 * macros/tmac.an (IP): Quote argument to TP.
15990 * ps/ps.c (main): New option -b, which sets...
15991 (broken_flags): New variable.
15992 (ps_printer::~ps_printer): Incorporate the setup section in the
15993 prolog if (broken_flags & NO_SETUP_SECTION).
15994 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15995 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15996 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15997 ps_printer::print_needed_font_comment,
15998 ps_printer::print_supplied_font_comment,
15999 ps_printer::print_include_font_comments,
16000 ps_printer::lookup_doc_font, ps_printer::download_fonts,
16001 ps_printer::read_download_file, read_document_fonts, add_font,
16002 skip_line, parse_fonts_arg, document_font::document_font,
16003 document_font::~document_font, document_font::download,
16004 ps_output::include_file): Deleted.
16005 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16006 rather than %!PS-Adobe-2.0. Make calls to
16007 resource_manager::need_font for each font that we used. Replace
16008 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16009 print_supplied_font_comment, print_needed_font_comment by call to
16010 resource_manager::print_header_comments. Output %%Orientation
16011 comment. Output %%Requirements: numcopies comment if ncopies > 1.
16012 Don't output the prolog directly. Instead call
16013 resource_manager::output_prolog. Only define #copies when ncopies
16014 > 1. Delete calls to print_include_font_comments and
16015 download_fonts. Add call to resource_manager::document_setup.
16016 (ps_printer::do_file): Call resource_manager::import_file instead
16017 of including it ourselves.
16018 (ps_printer::do_import): Likewise. Also don't call
16019 merge_import_fonts. Push userdict on the dictionary stack before
16020 and pop it afterwards.
16021 Move declaration of ps_output into ps.h.
16022 * ps/psrm.c: New file implementing resource_manager class.
16023 * ps/ps.h: New file declaring ps_output and resource_manager
16025 * ps/devps/zapfdr.ps:
16026 * ps/devps/symbolsl.ps:
16027 * ps/devps/prologue: Use 3.0 conventions.
16028 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16029 Add default definition of BROKEN_SPOOLER_FLAGS.
16030 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
16031 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16033 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
16035 * etc/grog.pl: New file.
16036 * Makefile (GROG): New variable.
16037 Add GROG to SUBFLAGS.
16038 * etc/Makefile (GROG): New variable.
16039 (install.nobin): Install $(GROG) rather than grog.sh.
16041 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
16043 * eqn/special.c (special_box::compute_metrics): Make the input and
16044 output strings the same. Get the new height and depth from the
16045 predefined height and depth registers. Also make subscript kern
16046 and skew available.
16047 (special_box::compute_subscript_kern, special_box::compute_skew):
16050 * eqn/box.c (pointer_box::compute_skew,
16051 simple_box::compute_metrics, box::top_level)
16052 * eqn/text.c (prime_box::compute_metrics,
16053 prime_box::comput_subscript_kern)
16054 * eqn/limit.c (limit_box::compute_metrics):
16055 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16056 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16057 negative numbers in `nr' requests with a leading 0.
16059 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
16061 * eqn/special.c: New file.
16062 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
16063 Add new rule for simple.
16064 * eqn/lex.c (token_table): Add SPECIAL.
16065 * eqn/box.h: Declare make_special_box.
16066 * eqn/Makefile: Add special.[co].
16068 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
16070 * ps/devps/prologue: Possibly set packing to true while defining.
16071 Create grops dictionary here. Initialize local variables before
16072 defining procedures.
16073 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16074 the dictionary stack. Set strokeadjust and overprint to false if
16075 the relevant operators are defined.
16076 (PEND): New procedure.
16077 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16078 prologue. Do everything else in the setup section.
16079 (ps_printer::do_import): Just call PBEGIN and PEND around the
16080 picture. Also push userdict before, and pop it afterwards.
16082 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
16084 * troff/node.c (bracket_node::tprint): Brackets were being printed
16087 * macros/tmac.an (SH, SS): Set fill mode.
16089 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
16091 * troff/div.c (top_level_diversion::begin_page): Set
16092 high_water_mark to 0.
16094 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
16096 * man/mdate.sh: New file.
16097 * man/mdate.c: Deleted.
16098 * man/Makefile: Use mdate.sh instead of mdate.
16101 * eqn/lex.c (do_gsize): Supply missing argument to error message.
16103 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
16105 * man/mdate.c: New file.
16106 * man/*.man: Replace modification date by @MDATE@.
16107 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16108 (mdate): New target.
16110 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16111 Remove illegal input characters.
16113 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
16115 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16117 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
16119 * troff/div.c (begin_page): Change behaviour when
16120 !first_page_begun and !break_flag.
16122 * troff/input.c (do_name_test): Return 0 if argument is empty.
16124 * troff/input.c (read_long_escape_name): Require closing ] to be
16125 at same input level as opening [.
16127 * troff/input.c (read_increment_and_escape_name): New function.
16128 (get_copy, process_input_stack): Use this for \n.
16130 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
16132 * troff/div.c (top_level_diversion::begin_page): Ignore the
16133 current value of page_number if !first_page_begun.
16135 * groff.c (main): Fix declaration of buf.
16137 * troff/input.c (do_name_test): New function.
16138 (token::next): Implement \A.
16139 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16140 (token::description, token::add_to_node_list, token::process):
16141 Handle TOKEN_ESCAPE.
16142 * troff/token.h: New token TOKEN_ESCAPE.
16144 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
16146 * pic/main.c (do_picture): Allow space before and after filename
16147 following `<'. Check that the filename is not empty.
16149 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
16151 * Version 1.01 released.
16153 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16155 * dvi/tmac.dvi: ftr HR to H.
16157 * macros/tmac.e: Round up computation of $r.
16159 * xditview/tmac.X: Don't give up completely in compatibility mode.
16160 Use \n(.s instead of \n[.s].
16162 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16163 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16164 Add u to factors inside \s[...]. Rename frac to dvi-frac.
16165 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16166 short names in the char definitions.
16168 * ps/tmac.ps: Don't give up completely in compatibility mode.
16169 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16170 quote in front of \n(.s. Add u to factors inside \s[...].
16172 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
16174 * tty/tmac.tty: Call the nroff request.
16176 * macros/tmac.e ((x, )x): Better definitions that work properly
16178 (@0, @1): Helper macros for (x.
16180 * macros/tmac.e ($s, hl): Use \l rather than \D.
16182 * tty/tmac.tty: Make it work better in compatibility mode.
16183 (pchar): Rename to tty-char.
16185 * macros/tmac.e (@E): New macro.
16186 (r, i, b, rb, bi): Use @E.
16188 * macros/tmac.e (@F): Don't use (;...) syntax.
16190 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16191 it was modified for groff.
16193 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16195 * macros/tmac.e (<., .>): Removed.
16196 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16198 * macros/tmac.e: Remove check that groff is being used.
16200 * macros/tmac.e (@C): Change families only if using groff; turn
16201 compatibility mode off while changing familes. Save compatibility
16202 mode before changing families and restore it afterwards.
16204 * macros/tmac.e (@h): Remove test for offset + line length.
16206 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16207 (lo, th, ac): Define to call @S instead of using als.
16209 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16210 the ratio of the vertical spacing to the point size in units
16211 expressed as a percentage. Use these instead of $10r and $10R,
16212 Delete $10r and $10R.
16214 * lib/font.c (font::load): In default computation of space_width,
16215 divide by sizescale. Use scale_round.
16217 * macros/tmac.an (TP): Don't call `nf'.
16218 (an-do-tag): Don't call `fi'.
16220 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16222 * troff/input.c (process_input_stack): Handle the case where
16223 spaces at the beginning of an input line are followed by a
16226 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16228 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16229 * groff.sh: Use pic -x with the dvi device.
16231 * dvi/devdvi/FontMakefile (H): Don't use -s.
16233 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16234 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16235 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16238 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16240 * ps/psfig.diff: New file.
16241 * ps/tmac.psfig: New file.
16243 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16245 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16246 (]-): Don't call ref*do-tl.
16248 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16250 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16251 (fn@do-FS): Rename to fn*do-FS.
16253 * troff/input.c (transparent_translate): New function.
16254 (process_input_stack): Apply transparent_translate before calling
16255 diversion::transparent_output(unsigned char).
16257 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16259 * troff/input.c (do_define_macro): Define the macro before calling
16262 * xditview/Makefile: Add DEVICES variable. Change install target
16265 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16267 * groff.c (run_commands): Handle the possibility that there are
16268 child processes other than those forked by us.
16270 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16272 * lib/string.c (string::append): New function.
16273 * lib/stringclass.h: Declare it.
16275 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16277 * eqn/main.c (main): New option -N which sets
16278 no_newline_in_delim_flag.
16279 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16281 * groff.c (main): Pass -N on to eqn.
16282 (help, synopsis): Mention -N.
16283 * groff.sh: Implement -N.
16285 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16287 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16288 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16289 (XP): Allow as initializer.
16291 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16293 * troff/env.c (environment::wrap_up_field): If field_spaces are
16294 non-zero and we have a current_tab, subtract padding from
16295 tab_distance. If this makes tab_distance <= 0, use the next tab
16296 stop instead. If there isn't any next tab or it's a left tab,
16297 wrap up the current tab.
16298 (environment::start_field): Initialize tab_precedes_field.
16299 (environment::wrap_up_tab): If there's a current field, update
16300 pre_field_width, field_distance and tab_precedes_field.
16301 * troff/env.h (environment::tab_precedes_field): New member.
16303 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16305 * ps/ps.c (ps_printer::do_file): New function.
16306 (ps_printer::special): Bind to `file' special.
16307 (ps_printer::do_exec): Set ndefined_styles to 0.
16309 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16311 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16312 Avoid stripping first character from the start of unrecognized
16313 escapes. Use lex_error instead of error to report errors.
16314 * eqn/lex.c (get_token): Rework handling of escapes.
16315 (lex_error): Move declaration into...
16318 * xditview/xditview.c (main): Make -page option work.
16320 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16322 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16324 * macros/tmac.s (B2): Correct size of box.
16326 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16328 * macros/tmac.s (B2): Postpone drawing the box until in the
16329 top-level diversion.
16331 * tty/tmac.tty: Add font translations for C, CR, CW.
16333 * groff.c (synopsis, help): Document -i.
16334 * groff.sh: Implement -i.
16336 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16337 Simplify the construction of SN.
16339 * troff/number.c (parse_term): Give `|' a higher precedence.
16340 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16343 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16345 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16347 * lib/string.c (string::move): New function.
16348 * lib/stringclass.h: Declare it.
16350 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16352 * troff/env.c (distribute_space): Add optional argument
16354 (environment::wrap_up_field): Call distribute_space with
16355 `force_forward' argument of 1.
16357 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16359 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16360 Inline it. Move reallocation into...
16361 (string::grow1): New function.
16362 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16363 dependencies to include library header files.
16364 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16366 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16368 * macros/tmac.s (@NH): Use the same number registers than -ms does
16369 for the heading level counters. Use the same string that -ms does
16370 for the number for this heading.
16372 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16374 * lib/new.c (operator new): Cast result of malloc to char *.
16376 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16379 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16381 * groff.c (main): Support -i.
16383 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16385 * pic/pic.h: Include <osfcn.h>.
16387 * ps/ps.c: Add declaration of mktemp.
16389 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16390 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16391 argument as union wait *.
16392 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16393 argument to union wait *.
16395 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16397 * tty/tmac.tty: Add definition of \(co.
16399 * pic/object.c (make_arc): Only increase radius when radius
16400 strictly less than d.
16401 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16404 * troff/env.c (environment::environment(symbol),
16405 environment::environment(const environment *)): Initialize
16408 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16410 * tbl/main.c (main): Add exit(0).
16412 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16414 * pic/main.c (main):
16415 * eqn/main.c (main):
16416 * tbl/main.c (main):
16417 * etc/soelim.c (main):
16418 * driver/printer.c (printer::~printer):
16419 * troff/node.c (real_output_file::~real_output_file,
16420 real_output_file::flush): Check for errors on stdout.
16422 * most files: Add 1991 to copyright notice.
16424 * macros/tmac.s: Don't test \n(.x and \n(.y.
16426 * troff/input.c (token::next): Rename `escape_char' label to
16427 `handle_escape_char' and `normal_char' label to
16428 `handle_normal_char'.
16430 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16432 * groff.c (main, synopsis, help): Support -a option.
16433 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16434 to trflags while parsing options.
16436 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16438 * troff/number.c (parse_term): With `m', `M' and `n' scale
16439 indicators, convert scale factor to hunits before scaling.
16441 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16443 * lib/font.c (scale_round): Better test for overflow when n is
16446 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16448 * tbl/main.c (process_format): Add second argument of type
16449 options*. Change callers. Allow opt->tab_char as well as '\t'
16450 between format items.
16452 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16454 * macros/tmac.an (PD): With no arguments, make sure register PD is
16456 (TH): Call PD with no argument, instead of setting register PD
16459 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16461 * Version 1.00 released.
16463 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16465 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16467 * dvi/devdvi/DESC: Mount CW instead of CR.
16469 * dvi/tmac.dvi: Add definition of \(tm.
16471 * dvi/devdvi/texsy.map: Add lh, and rh.
16472 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16473 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16475 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16476 * dvi/devdvi/Makefile: Install H.
16477 * dvi/devdvi/H: New file.
16479 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16481 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16484 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16486 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16488 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16490 * macros/tmac.s (@EN): Handle the case where the equation is empty
16491 but the label is not.
16493 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16495 * troff/groff.h: New warning category WARN_SPACE.
16496 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16497 WARN_SPACE to warning_table.
16498 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16499 is longer than two characters and is not defined, but the first
16500 two characters do make a defined name.
16502 * PROBLEMS: New file.
16504 * CHANGES: New file.
16505 * README-0.6, README-1.00: Deleted.
16507 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16508 * xditview/devX75/Makefile: Make devX75-12.
16509 * xditview/devX100/Makefile: Make devX100-12.
16511 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16512 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16514 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16516 * README-0.7: Rename to README-1.00.
16518 * macros/tmac.pic: New file.
16519 * macros/Makefile (install.nobin): Install tmac.pic.
16521 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16523 * troff/env.c (hyphen_word): Correct the test for whether the
16524 token is a hyphen. Reset npos to 0.
16526 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16528 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16530 * macros/tmac.s (ds*common-end): Call par*reset.
16532 (par@reset-indent): Deleted.
16534 * macros/tmac.s (@IP): Divert the label.
16536 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16538 * xditview/draw.c (setGC): Use a line width of .1m rather than
16539 .04m by default; round rather than truncate value.
16541 * tbl/table.c (class empty_entry): New class.
16542 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16543 (table::add_entry): Represent empty entries by objects of type
16545 (table_entry::line_type): Return -1.
16546 (table::determine_row_type): Ignore entries with line_type 0.
16547 Treat type -1 as non-lines.
16549 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16551 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16552 macros/tmac.s: Rename \(-d to \(Sd.
16554 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16556 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16557 * xditview/libXdvi/DviChar.c: Likewise.
16558 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16560 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16562 * troff/div.c (top_level_diversion::begin_page): Call
16563 init_output() if the_output is 0.
16565 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16567 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16569 (get_copy): Turn \E into ESCAPE_E.
16570 (token::process, asciify): Handle ESCAPE_E.
16572 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16574 (DS): Implement `.DS R'.
16576 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16578 * macros/tmac.s (FS): New macro.
16580 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16582 * macros/tmac.s (cov*tl-init): Remove after first execution
16583 instead of aliasing to @nop. Call top of page macro explicitly
16584 instead of setting trap; call @init first. Set pg@top as top of
16586 (cov*auto-init): Deleted. Set cov*tl-init instead of
16587 cov*auto-init as top of page trap.
16588 (TL, LP): Do a break instead of calling cov*tl-init.
16589 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16590 @FE; in this case also give a warning and always start another
16591 page. No need to set pg@top here.
16592 (cov*tl-init): Rename to cov*first-page-init.
16594 * macros/tmac.s (RP): Do `.pn 0'.
16595 (cov*tl-init): With RP format don't do `.pn 0'.
16597 * macros/tmac.s (pg@cs-top): Set no space mode.
16599 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16600 (cov*ab-init): Alias TL, AU and AI to these.
16602 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16604 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16605 (@EN): Do nothing unless \n[dl] is > 0.
16607 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16609 * pic/object.c (ellipse_object::radius): New function.
16611 * VERSION: Change version to 0.7.
16613 * tbl/table.c (block_entry::do_divert): Declare return type as
16615 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16617 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16619 * troff/column.c: New file.
16620 * troff/Makefile: Corresponding changes.
16622 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16625 * troff/div.c (top_level_diversion::space): If the space causes
16626 the first-page transition and springs a trap, truncate the space
16629 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16631 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16634 * pic/troff.c (troff_output::line_thickness,
16635 troff_output::set_fill): Do a horizontal motion to compensate for
16636 the width of the \D escape sequence.
16638 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16640 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16643 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16646 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16647 Supply empty definition.
16648 (text_entry::simple_print, simple_text_entry::simple_print):
16649 Delete declarations.
16650 (table::add_entry): Represent empty entries by objects of type
16653 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16655 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16657 * tbl/table.c (left_text_entry::add_tab): New function.
16659 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16660 initialize like LP.
16662 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16664 * troff/env.c (environment::start_field): Give an error message if
16665 there is no next tab.
16667 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16669 * troff/env.c (hyphenate): Skip initial elements with zero
16672 * macros/tmac.s (par@init): Keep VS in points rather than units.
16674 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16676 * pic/main.c (main): Implement `-c' option.
16677 * pic/output.h: Declare make_tpic_output().
16678 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16680 (tpic_output): New class.
16681 (tpic_output::tpic_output, tpic_output::set_pen_size,
16682 tpic_output::command, make_tpic_output): New functions.
16684 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16686 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16687 if they're not already defined.
16688 * tbl/table.c (init_output): Don't test \n(.g.
16690 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16691 `d', `r' and `c' conditions even in compatibility mode.
16693 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16695 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16698 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16700 * troff/env.h (environment::prev_line_interrupted): New member.
16701 (environment::get_prev_line_interrupted): New function.
16702 * troff/env.c (environment::newline): Set prev_line_interrupted.
16703 (environment::environment(const environment *),
16704 environment::environment(symbol)): Initialize
16705 prev_line_interrupted.
16706 * troff/input.c (process_input_stack): Don't give special
16707 treatment to space and newline at the beginning of the line if the
16708 previous line was interrupted.
16710 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16712 * eqn/eqn.y: Disallow PRIME by itself.
16713 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16715 (def_table): Remove definition of '. Define prime to be `.
16717 * eqn/eqn.y: Split off part of rule `script' into a new rule
16720 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16722 * macros/tmac.s ({, }): New string aliases.
16724 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16726 * README-0.7: New file.
16728 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16730 * macros/tmac.s: New file.
16731 * man/groff_ms.man: New file.
16732 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16733 * Makefile.bd: Similarily.
16734 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16735 definition of TMAC_S.
16736 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16737 * macros/TODO: New file.
16739 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16741 * troff/env.c (right_justify): New function.
16742 (init_env_requests): Bind this to request "rj".
16743 (center_lines): Set right_justify_lines to 0. If we get a bad
16744 integer, center 1 line.
16745 (environment::environment(symbol), environment::environment(const
16746 environment *)): Initialize right_justify_lines.
16747 (environment::get_right_justify_lines): New function.
16748 (init_env_requests): Bind this to number_register ".rj".
16750 * troff/env.c (environment::choose_breakpoint): Implement
16751 hyphenation_margin and hyphenation_space.
16752 (environment::get_hyphenation_space,
16753 environment::get_hyphenation_margin): New functions.
16754 (init_env_requests): Bind these to .hys and .hym.
16755 (hyphenation_space_request, hyphenation_margin_request): New
16757 (init_env_requests): Bind these to hys and hym.
16758 (environment::environment(symbol), environment::environment(const
16759 environment *)): Initialize hyphenation_margin and
16761 * troff/env.h: Corresponding changes to class environment.
16763 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16765 * troff/div.c (blank_line): Always do a break.
16767 * eqn/box.c (do_text): Turn off escapes while appending text to
16770 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16772 * troff/input.c (while_break_request, while_continue_request): New
16774 (init_input_requests): Bind these to "break" and "continue".
16775 (while_depth, while_break_flag): New variables.
16776 (while_request): Update while_depth. Break out of loop if
16777 while_break_flag is set.
16779 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16781 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16784 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16786 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16788 * stringify: New file.
16789 * Makefile (groff.o): Use stringify.
16791 * xditview/tmac.X: Remove definition of \(rn.
16792 * xditview/libXdvi/DviChar.c: Remove radicalex from
16795 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16797 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16798 (alphabetic_block_entry::alphabetic_block_entry,
16799 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16801 (block_entry::divert): Split off body into ...
16802 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16803 from the line length; also update the span width to dl+2n, and the
16804 alphabetic span width to dl.
16806 * driver/input.c (do_file): While reading argument to D command,
16807 when expanding buffer, multiply szp by sizeof(int) rather than 2
16808 in the argument to memcpy.
16810 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16811 width of alphabetic columns.
16813 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16815 * troff/node.c (lookup_family): Supply second argument to lookup.
16817 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16818 search, return immediately if v is 0.
16820 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16821 (troff_output::start_picture): Set this reg.
16822 (troff_output::end_picture): Remove this reg
16823 * eqn/box.c (box::extra_space): Don't produce `\x's if
16824 EQN_NO_EXTRA_SPACE_REG is defined.
16826 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16827 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16830 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16832 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16835 * troff/div.c (top_level_diversion::top_level_diversion):
16836 Initialize page_number to 0.
16838 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16840 * groff/troff (environment::environment(const environment *)):
16841 Initialize name to e->name, rather than "anonymous".
16843 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16845 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16846 requested_page. Split middle part into ...
16847 (FindPage): New function.
16848 (SetValues): If we don't yet know the last page, and the requested
16849 page is greater than the current page, call FindPage.
16850 Update the font_map_string before doing this.
16852 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16853 Translate \(lh and \(rh into left and right double arrows.
16855 * troff/node.c (class hyphen_inhibitor_node): New class.
16856 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16857 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16858 hyphen_inhibitor_node::type,
16859 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16860 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16861 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16864 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16866 * troff/node.h (dummy_node::get_hyphenation_type,
16867 transparent_dummy_node::get_hyphenation_type): Declare them.
16868 * troff/node.c: (dummy_node::get_hyphenation_type,
16869 transparent_dummy_node::get_hyphenation_type): New functions.
16871 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16873 * xditview/libXdvi/draw.c: If M_PI not defined after including
16874 math.h, then define it.
16876 * xditview/Makefile: Add definition of AR. Pass it to the submake
16878 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16880 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16882 * troff/dictionary.h (object_dictionary::alias): Declare return
16884 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16885 if the old name was defined.
16886 * troff/input.c (alias_macro): Give a warning if the old name was
16888 * troff/reg.c (alias_reg): Likewise.
16890 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16892 * troff/input.c (token::next): Delete implementation of \R.
16894 * macros/Makefile: Strip comments from tmac.e while installing it.
16896 * troff/input.c: New variable `nroff_mode'.
16897 (troff_request, nroff_request): New functions.
16898 (init_input_requests): Bind `troff' and `nroff' to troff_request
16900 (do_if_request): Compute results of t and n conditions from
16903 * text/text.c (split_text): Fix typo in >=.
16905 * eqn/lex.c: Add definition of `==' to def_table.
16907 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16909 * pic/tex.c (tex_output::start_picture): Change the definitions of
16910 \graph and \graphtemp so that they work properly with Plain TeX.
16912 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16913 argument to `ar' is not less than the first.
16915 * pic/pic.y: Allow a comma between elements of the variable list
16916 in the argument to `reset'.
16918 * pic/object.c (arc_object::arc_object): Fix computation of
16921 * eqn/main.c (main): Add exit(0).
16923 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16925 * troff/div.c (begin_page): Test no_space_mode after doing the
16926 break, but still push the page ejector cookie before doing the
16927 break. Also set the next page number after doing the break.
16929 * xditview/xditview.c (NewFile): Don't set the title and icon name
16930 if this is the first file and its name is `-'.
16931 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16932 the X75 and X100 devices.
16933 (main): If a device has the XT_OPTION flag set and there's exactly
16934 one file argument, pass the driver -xrm and -title options to set
16935 the icon name and window title to the name of the file.
16937 * troff/env.c (environment_switch): If there was an argument but
16938 it wasn't a valid number or name, then pop an environment but
16939 don't give an error message on underflow.
16941 * troff/number.c (start_number): Correct spelling in error message.
16943 * troff/input.c (token::delimiter): Don't print an error message
16946 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16947 ParseDrawFunction if dw->display_enable is true.
16949 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16951 * pic/pic.y: Parse text positioning like normal attributes, so as
16952 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16953 positioning attribute.
16955 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16957 * tbl/main.c (process_data): When in state START while reading a
16958 text block, don't change to state MIDDLE if c is a newline.
16960 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16962 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16963 so as to avoid shadowing parameter.
16965 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16967 * tbl/table.c (trim_space): Deleted.
16968 (table::add_entry): Don't call trim_space.
16970 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16972 * VERSION: Change version to 0.6.
16974 * troff/number.c (parse_expr): Make == work.
16976 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16978 * man/grog.man: New file.
16979 * man/Makefile: Add grog.n to MAN1PAGES.
16980 * etc/grog.sh: New file.
16981 * etc/Makefile: Install grog.sh as grog.
16983 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16985 * troff/input.c (token::next): Implement \E.
16987 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16989 * xditview/tmac.X: Change font translations to match tmac.ps.
16991 * troff/input.c (non_empty_name_warning): Don't give a warning if
16992 `\{' terminates the name.
16994 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16996 * ps/devps/symbol.diff: New file.
16997 * ps/devps/FontMakefile: Mention symbol.diff.
16999 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
17001 * troff/node.c (font_position): Use get_long_name to read the
17004 * troff/env.c (environment_switch): If we get a number that's < 0
17005 or >= NENVIRONMENTS, treat it like a name.
17006 Change NENVIRONMENTS to 10.
17008 * troff/groff.h: Remove definition of FONTS_MAX.
17009 * troff/node.h (class font_family): Make map a pointer instead of
17010 an array. Add a map_size member. Make it a class. Make nm const
17011 and public. Make invalidate_fontno a friend.
17012 * troff/node.c: Define font_table_size. Make font_info a pointer
17013 rather than an array.
17014 (class troff_output_file): Allocate font_position dynamically. Add
17015 nfont_positions member.
17016 (troff_output_file::set_font): Grow font_position if necessary.
17017 (troff_output_file::~troff_output_file): Delete font_position.
17018 (troff_output_file::troff_output_file): Allocate font_position.
17019 (grow_font_table): New function.
17020 (troff_output_file::really_begin_page,
17021 troff_output_file:really_copy_page): Use nfont_positions rather
17023 (mount_font_no_translate, mount_style): Call grow_font_table if
17025 (font_family::font_family): Allocate map.
17026 (font_family::make_definite): Grow map if necessary. Use
17027 font_table_size instead of FONTS_MAX.
17028 (font_family::~font_family): New function.
17029 (invalidate_fontno): Use font_family::map_size.
17030 (get_fontno, env_space_width, env_half_narrow_space_width,
17031 env_narrow_space_width, symbol_fotno, is_good_fontno,
17032 get_bold_fontno, make_glyph_node): Use font_table_size rather than
17034 (next_available_font_position): Never return 0.
17036 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
17038 * ps/tmac.ps: Add font translations for compatibility with dpost.
17040 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
17042 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17043 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17044 Move definitions baseline_sep, shift_down, column_sep,
17045 matrix_side_sep into...
17046 * eqn/box.c: Add them to param_table.
17047 * eqn/pbox.h: Add declarations to pbox.h.
17049 * troff/input.c (set_string): Cast value to unsigned char *.
17051 * troff/token.h (process_input_stack): Declare it static before
17052 declaring it a friend.
17054 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
17056 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17058 * dvi/devdvi/EX: Regenerate.
17060 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17063 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
17065 * eqn/lex.c: In defaults_table, make definition of `dot' call
17066 `dot_def'. Don't explicitly make it roman. Similarily for other
17069 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17071 (for_input::get, for_input::peek): Use this.
17072 (do_for): Add by_is_multiplicative argument.
17073 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17074 Change semantic value of optional_by to be a double plus a flag
17075 saying whethet the by clause is multiplicative.
17077 * eqn/lex.c (get_delimited_text): Remember location of start of
17078 definition. Improve error handling when EOF is encountered.
17080 * lib/font.h: Rename handle_x_command to
17081 handle_unknown_font_command.
17082 * lib/font.c (font::load): Call handle_unknown_font_command for
17083 any unknown command in the font description file. Don't call
17084 handle_x_command. Include the name of the command in the argv.
17085 Improve message for unknown command after kernpairs or charset
17087 * ps/ps.c (ps_font::handle_x_command): Rename to
17088 handle_unknown_font_command. Remove message about `x download'
17089 command. Give error message for wrong number of arguments.
17090 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17091 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17092 handle_unknown_font_command. Give an error message for wrong
17093 number of arguments. Rename design_size to designsize.
17094 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17095 checksum', `designsize' instead of `design_size'.
17097 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
17099 * eqn/*.[chy]: Change underaccent to uaccent.
17101 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
17102 give it the same precedence as ACCENT.
17103 * eqn/other.c (make_underaccent_box): New function.
17104 * eqn/box.h: Declare it.
17105 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17108 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
17110 * pic/pic.y (reset_all): New function. Called in rule for RESET.
17111 (parse_init): Call reset_all.
17112 (define_variable): When defining scale reset only those
17113 pre-defined variables that are scaled.
17114 (defaults_table): Add `scale' as non-scaled value.
17116 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17117 together with the text; allow any number of positioning words;
17118 allow center as a positioning word.
17120 * pic/object.c (output::compute_scale): Get picture maximum height
17121 and width from variables called maxpswid and maxpsht.
17122 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17124 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
17126 * pic/object.c (object_spec::make_text): Multiply textht by number
17129 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17131 (do_sprintf): New function.
17132 (pic.gperf): Add sprintf token.
17133 (text, sprintf): New rules.
17135 * pic/pic.y: `rand()' with no arguments returns a random number
17136 in the range [0,1).
17138 * pic/pic.y: Allow a bare expression to be an attribute: change
17139 precedences to support this. Change optional_ordinal rule to
17140 optional_ordinal_last to avoid reduce/reduce conflict.
17141 * pic/object.c (object_spec::object_spec): Initialize direction.
17143 * pic/pic.y: Implement ^ operator meaning exponentiation.
17145 * troff/node.h: Add default argument to mount_font.
17146 * troff/node.c (font_position): Read an optional third argument
17147 giving the external_name.
17148 (mount_font): Add optional argument giving the external_name.
17149 (mount_font_not_translate): Have additional argument giving
17150 external name. Use this name to load the font. Pass both names
17151 to font_info::font_info.
17152 (font_info::font_info): Have additional argument giving
17154 (class tfont): New member external_name.
17155 (font_info::get_tfont): Use external name to construct tfont_spec.
17157 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
17159 * eqn/lex.c (init_table): Add argument giving device. Define
17160 name of device to be "1".
17161 (do_ifdef): Counts as true if the argument has been defined with
17163 * eqn/main.c (main): Call init_table with device argument. Make
17164 device local to main.
17165 * eqn/eqn.h: Change declaration of init_table. Remove declaration
17168 * pic/lex.c (get_delimited): Allow text to be delimited by
17169 matching {}s. Don't recognize ending delimiter within a string.
17171 * troff/input.c (get_delim_name): New function.
17172 (token::next): Implement \C.
17174 * lib/font.c (font::load): Grok ---. Add an alias for each
17175 character based on its code.
17176 (font::get_code_width): Deleted.
17177 * lib/font.h (class font): Declare font::number_to_index().
17178 Remove declaration of font::get_code_width.
17179 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17180 to indices of named characters.
17181 (font::number_to_index): New function.
17182 * troff/input.c (font::number_to_index): New function.
17183 (get_charinfo_by_number, charinfo::get_number,
17184 charinfo::set_number): New functions.
17185 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17186 (token::process, token::description, token::get_char,
17187 token::add_to_node_list, token::operator==): Handle
17188 TOKEN_NUMBERED_CHAR.
17189 * troff/charinfo.h: Declare get_charinfo_by_number,
17190 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17192 (charinfo::numbered): New function.
17193 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17194 * troff/env.h (class environment): Remove declaration of ...
17195 * troff/env.c (environment::make_numbered_char_node): Deleted.
17196 * troff/node.c (make_numbered_node): Deleted.
17197 (class numbered_glyph_node): Remove.
17198 (troff_output_file::put_char_width, troff_output_file::put_char):
17199 Handle numbered chars.
17200 (troff_output_file::numbered_char): Removed.
17201 (tfont::get_code_width): Removed.
17202 (make_glyph_node): Don't search special fonts for numbered
17204 * troff/node.h: Remove declaration of make_numbered_node.
17205 * driver/input.c (do_file): Handle N command.
17206 * driver/printer.h: Add declaration of ...
17207 * driver/printer.c (printer::set_numbered_char): New function.
17208 * dvi/tfmtodit.c (main): Generate unnamed entries.
17209 * ps/devps/afmtodit: Likewise.
17210 * xditview/xtotroff.c (MapFont): Likewise.
17211 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17213 * tbl/main.c (process_format): If multiple widths are specified
17214 for a column but all the widths are the same, don't give an error
17217 * tbl/table.c (table::do_row): If the current row is all lines and
17218 the stuff doesn't contains a line, mark the top of the row after
17219 printing stuff before the row. If the current row is not all
17220 lines and the stuff doesn't contain a line, don't unnecessarily
17221 mark the top of the row before printing the stuff.
17223 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17225 * troff/groff.h: Remove MAX_PATH.
17226 * troff/input.c (open_file): Dynamically allocate space for the
17228 (open_mac_file, process_macro_file): Corresponding changes.
17230 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17232 * troff/node.h (class output_file): Make copy_file pure. Add
17233 vspace method ifdef COLUMN. Add is_printing method.
17234 * troff/node.c: Add class printing_reg. Add class
17235 real_output_file. Derive other output_file classes from
17236 real_output_file; in these classes rename begin_page to
17237 really_begin_page, print_line to really_print_line, copy_file to
17238 really_copy_file, transparent_char to really_transparent_char.
17239 Move output_file::flush to real_output_file. Add printing member
17240 to class output_file.
17241 * troff/div.h: Remove printing member from top_level_diversion.
17242 Add vspace member function to class diversion ifdef COLUMN. Add
17243 some declarations ifdef COLUMN.
17244 * troff/div.c (top_level_diversion::copy_file,
17245 top_level_diversion::transparent_output,
17246 top_level_diversion::output): Don't test printing member before
17248 * troff/input.c: Handle initial variable_space_request ifdef
17250 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17251 but comment it out.
17253 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17255 * troff/div.c (diversion::need): Make any space forced. If we
17256 sprung a trap, set truncated_space to minus the distance to the
17257 trap and set needed_space to the amount that was needed.
17258 (top_level_diversion::space): A forced space turns no_space_mode
17260 (class constant_vunits_reg): New class.
17261 (init_div_requests): Implement number registers .trunc and .ne
17262 using constant_vunits_reg.
17263 (class truncated_space_reg): Deleted.
17265 * troff/div.h: Don't have a no_space_mode member in diversion.
17266 Instead have it in top_level_diversion.
17267 * troff/div.c (diversion::diversion): Don't initialize
17269 (top_level_diversion::top_level_diversion): Initialize
17271 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17272 (macro_diversion::output): Don't clear no_space_mode.
17274 * troff/input.c (diverted_space_node::reread): Don't call
17275 environment::do_break. In fill mode, act like a blank line.
17276 (diverted_copy_file_node::reread): Don't call
17277 environment::do_break.
17279 * troff/div.c (blank_line): New function.
17280 * troff/div.h: Declare it.
17281 * troff/input.c (process_input_stack): Call it.
17283 * troff/div.c (truncated_space_reg::get_string): New function.
17284 (init_div_requests): Bind to .trunc.
17285 (space_request, top_level_diversion::space,
17286 top_level_diversion::output, macro_diversion::space,
17287 macro_diversion::output): Update truncated_space.
17288 (macro_diversion::output): Redo calculations when trap sprung.
17289 (macro_diversion::output, macro_diversion::space): No need for
17292 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17293 after truncating post line spacing.
17295 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17297 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17298 defined as a procedure rather than as an operator.
17300 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17302 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17304 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17306 * troff/div.c (top_level_diversion::output): Merge
17307 output_file::print_line and output_file::end_of_line member
17309 * troff/div.h (class output_file):
17310 * troff/node.c (troff_output_file::print_line,
17311 troff_output_file::end_of_line, output_file::end_of_line,
17312 ascii_output_file::print_line, suppress_output_file::print_line):
17313 Corresponding changes.
17315 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17317 * troff/input.c (token::next): Don't give a warning for `\.'.
17319 * troff/env.c (environment::get_center_lines): New function.
17320 (init_env_requests): Bind number register .ce to it.
17321 * troff/env.h: Declare it.
17322 * tbl/table.c (table::init_output): Define reset macro to restore
17323 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17325 (table::print): If center option not given, then imply center
17326 option if SAVED_CENTER_REG > 0.
17328 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17330 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17331 Troff.ps from DOWNLOAD.
17333 * troff/Makefile: Change comment in DEFINES to avoid confusing
17336 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17337 code. Don't try to catch errors with stopped.
17338 (check_line_lengths): New function.
17339 * ps/devps/prologue (EXEC): Deleted.
17340 (EBEGIN, EEND): New procedures.
17342 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17344 * troff/input.c: Include request.h before node.h.
17345 * troff/node.c: Likewise.
17346 * troff/env.c: Likewise.
17347 * troff/div.c: Likewise.
17348 * troff/node.h (class special_node): Store argument as a macro
17349 rather than a char *.
17350 * troff/node.c (special_node::special_node, special_node::copy):
17352 (special_node::~special_node): Deleted.
17353 (special_node::tprint): Deleted.
17354 (special_node::tprint_start, special_node::tprint_end,
17355 special_node::tprint_char): New functions.
17356 (troff_output_file::special): Deleted.
17357 (troff_output_file::start_special, troff_output_file::end_special,
17358 troff_output_file::special_char): New functions.
17359 * troff/input.c (special_node::tprint): New function.
17360 (do_special): Use macro not char *.
17361 (do_transparent_macro): Deleted.
17362 (token::next): Don't call do_transparent_macro.
17364 * troff/input.c (token::next): Add 'Y' case.
17365 (do_transparent_macro): New function.
17366 * troff/node.c (troff_output_file::special): Handle newlines with
17367 argument using new continuation convention.
17368 * driver/input.c (get_string): Cope with continuation convention.
17369 (do_file): Don't call skip_line after calling get_string(1).
17370 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17371 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17373 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17376 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17378 * troff/input.c (asciify): By default, illegal input characters
17379 should return empty string.
17381 * troff/input.c (copy_file): Handle first page transition like title.
17382 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17384 * troff/input.c (token::next): Improve error message for EOF after
17386 (input_char_description): New function.
17387 (get_char_for_escape_name): Use input_char_description.
17388 (token::next): Warn about unrecognized escape sequences.
17389 (warning_table): Add WARN_ESCAPE.
17390 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17393 * troff/token.h: Remove declaration of process_input_stack.
17395 * troff/input.c: Remove declaration of init_hyphen_requests.
17396 * troff/request.h: Correct spelling in declaration of same.
17398 * troff/input.c (token::next): Check whether escape_char is 0.
17400 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17402 * groff.c (main, usage, help): Implement -P and -L options.
17403 * groff.sh: Likewise.
17405 * troff/input.c (token::next): Use some gotos to avoid code
17408 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17409 Avoid calling symbol::symbol if name empty.
17411 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17413 * troff/input.c (init_input_requests): Make \n(.x return the major
17414 version number and \n(.y return the minor version number.
17415 * troff/Makefile: Construct file majorminor.c defining
17416 major_version and minor_version automatically from ../VERSION.
17418 * troff/node.c (class glyph_node): Make operator new and operator
17420 (class ligature_node): Similarily.
17422 * troff/input.c (operator==(const macro &, const macro &)): New
17424 (non_interpreted_node::same): Use this.
17425 (string_iterator::string_iterator): Make macro& argument const.
17427 * troff/input.c (input_iterator::get): New function. Don't make
17428 asciify_macro or class non_interpreted_node friends of class
17430 (non_interpreted_node::interpret): Use input_iterator::get.
17431 (asciify_macro): Likewise.
17433 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17434 ~non_interpreted_node): Deleted.
17435 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17438 * troff/symbol.h: Make all symbol member functions const.
17440 * lib/strtol.c: New file.
17441 * lib/Makefile: Add strtol.c.
17442 * Makefile: Define STRTOL as strtol.o to include strtol in
17445 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17447 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17449 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17451 * troff/input.c (do_special): Use input_level.
17453 * troff/token.h (TOKEN_BACKSPACE): New token.
17454 (token::backspace): New function.
17455 * troff/input.c (token::description, token::next, token::process):
17456 Grok TOKEN_BACKSPACE.
17457 (do_special): Turn TOKEN_BACKSPACE back into \b.
17459 * troff/token.h (token::leader): New function.
17460 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17462 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17464 * troff/input.c (do_special): Use token::description in error
17467 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17469 * troff/input.c (decode_args): Combine quoted and
17470 quote_input_level variables. Make it a for (;;) loop.
17472 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17474 * troff/input.c (read_long_escape_name): The test for whether to
17475 expand buffer was off by 1.
17476 (read_string): Similarily.
17478 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17480 * troff/input.c: Use `const int' rather than `static const int'.
17482 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17483 (macro_diversion::copy_file): New function.
17484 * troff/node.h: New class diverted_copy_file_node.
17485 * troff/node.c: Implement it.
17486 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17487 first page transition by pushing a diverted_copy_file_node.
17488 * troff/input.c (token::next, process_input_stack): Don't handle
17491 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17493 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17494 whether space widths need adjusting.
17496 * troff/charinfo.h: Generalize translated_to_space to
17497 special_translation so as to allow translation to \&.
17498 * troff/input.c (translate): Allow translation to \&.
17499 (charinfo::*): Corresponding changes.
17500 * troff/node.c (make_node, node::add_char): Corresponding changes.
17501 * troff/node.h (dummy_node::dummy_node): Allow optional first
17504 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17505 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17507 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17508 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17509 (token::process): Grok that.
17510 * troff/input.c (copy_file): Handle first page transition like
17511 title by pushing a COPY_FILE_REQUEST cookie.
17512 (token::next, process_input_stack): Grok that.
17513 * troff/node.h (output_file::copy_file): Add x and y arguments.
17515 * troff/div.c (top_level_diversion::copy_file): Supply them.
17516 * troff/node.c (troff_output_file::copy_file): Add x and y
17517 arguments; moveto specified position. Invalidate font_position
17518 array after copying file.
17519 (output_file::copy_file): New function.
17520 (suppressed_output_file::copy_file, ascii_output::copy_file):
17522 * troff/input.c (transparent_file): New function.
17523 (init_input_requests): Bind to "trf".
17524 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17525 (process_input_stack): Likewise.
17527 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17529 * troff/node.c (init_node_requests): New number registers .kern
17530 pointing to global_kern_mode, and .lg pointing to
17531 global_ligature_mode.
17533 * troff/node.c (ligature): Don't change it if we get a bad
17536 * troff/input.c (do_define_string): Don't strip tabs.
17538 * troff/input.c (asciify_macro): Make the string_iterator auto.
17540 * troff/node.c (init_font_requests): Rename to...
17541 (init_node_requests):
17542 * troff/node.h: Change declaration.
17543 * troff/input.c (main): Change call.
17545 * troff/input.c (node::reread, diverted_space_node::reread): New
17547 (process_input_stack): Call reread rather than
17548 get_diverted_space_node.
17549 * troff/node.c (node::get_diverted_space_node,
17550 diverted_space_node::get_diverted_space_node): Removed.
17551 * troff/node.h: Declare reread methods instead of
17552 get_diverted_space_node methods. Make `n' member private.
17553 * troff/input.c: (token::diverted_space): Removed.
17554 * troff/token.h: Removed declaration.
17557 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17559 * eqn/script.c (script_box::compute_metrics): Don't let
17560 SUP_RAISE_FORMAT become negative.
17562 * tbl/table.c (table::do_row): Entries that don't end in the
17563 this row shouldn't make the row non-blank.
17565 * tbl/table.c (table::make_columns_equal): Only set the width of
17566 columns which are marked as equal.
17568 * tbl/main.c (process_data): Before issuing excess data error,
17569 if last character was a newline unget it; then get it again after
17570 the error. Also include the contents of the entry in the message.
17572 * groff.c: New file.
17573 * Makefile: Build groff from groff.c. Make it possible to use
17574 either groff.sh or groff.c as groff.
17575 * Makefile.bd: Similarily.
17577 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17579 * groff.sh: Don't delay expansion of $@ in assignment to files.
17580 Remove occurrences of \".
17582 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17584 * all Makefiles: Simplify and rearrange.
17586 * Makefile: Handle fmod like malloc.
17587 * lib/Makefile: Similarily.
17588 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17590 * Makefile: Rename OPTIMISE to OPTIMIZE.
17592 * groff.sh: Remove assignment to PATH.
17593 * Makefile: Remove SHPATH variable.
17594 * Makefile.bd: Similarily.
17596 * groff.sh: Add -V option to print the pipeline instead of
17599 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17601 * lib/font.c: Split off file searching into ...
17602 * lib/fontfile.c: New file.
17604 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17606 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17608 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17609 Also change misleading comment.
17610 (table::do_vspan): Change similarily misleading comment.
17611 * tbl/main.c (process_data): A format row with an explicit `s'
17612 uses up a data line, even if all the other columns are `_' or `='.
17614 * troff/input.c (token::description): Fix description of
17615 TOKEN_DUMMY and TOKEN_EMPTY.
17617 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17619 * groff.sh: Fix description of -Z in help message.
17621 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17623 * pic/object.c (object_spec::make_object): Allow negative and zero
17625 * pic/pic.y: Give linethick default value of -1.0.
17626 * pic/troff.c (troff_output::troff_output): Initialize
17627 last_line_thickness to BAD_THICKNESS.
17628 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17629 (troff_output::line_thickness): Canonicalize negative thicknesses
17630 to RELATIVE_THICKNESS.
17631 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17632 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17634 (tex_output::start_picture): Set pen_size to -2.0.
17636 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17637 0, then use 0 linewidth.
17638 (ps_printer::ps_printer): Initialize line_thickness to -1.
17640 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17642 * ps/devps/symbolchars: Remove `or'.
17643 * ps/tmac.ps: Implement \(or with .char.
17645 * ps/devps/symbolchars: Move most characters into textmap.
17646 * ps/devps/textmap: Add names for troff bracket characters. Remove
17649 * ps/devps/TSymbol.ps: Removed.
17650 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17651 * ps/tmac.ps: Do with .char what TSymbol did.
17652 * ps/devps/download: Remove TSymbol.
17654 * ps/devps/T: Removed.
17655 * ps/devps/Troff.ps: Removed.
17656 * ps/devps/Troff.afm: Removed.
17657 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17658 * ps/devps/download: Remove Troff.
17659 * ps/devps/FontMakefile: Remove T target.
17660 * ps/devps/DESC-A4: Remove T from font list.
17661 * ps/devps/DESC-letter: Likewise.
17663 * troff/input.c (macro_to_node): Rename to ...
17664 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17665 character's definition while processing it.
17666 * troff/node.c (node::add_char, make_node): Change calls to
17667 macro_to_node accordingly.
17669 * troff/input.c (token::next): Translate \_ to \(ul.
17671 * tty/devascii/R.proto: Add `|'.
17672 * tty/devlatin1/R.proto: Likewise.
17674 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17676 * man: Put the version number in all the man pages.
17678 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17680 * Makefile.bd: New file.
17681 * README.bd: New file.
17683 * VERSION: New file.
17684 * lib/version.c: Removed.
17685 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17688 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17689 environment variable.
17691 * all Makefiles: Split install target into install.bin for
17692 binaries, and install.nobin for everything else.
17693 * Makefile: Add bindist target.
17695 * man/afmtodit.man: New file.
17696 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17697 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17699 * ps/Makefile: Pass BINDIR to make install in devps.
17701 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17702 the space character.
17704 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17706 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17708 * ps/ps.c: Redo font downloading.
17709 * ps/devps/download: New file.
17710 * ps/devps/Makefile: Add download to DEVICEFILES.
17711 * ps/devps/afmtodit: Remove -d option.
17712 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17713 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17714 * ps/devps/zapfdr.ps: Likewise.
17715 * ps/devps/TSymbol.ps: Likewise.
17717 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17719 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17721 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17723 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17724 then strip the first line if it starts with %.
17725 * Makefile: Add a comment about this.
17727 * man/tfmtodit.man: New file.
17728 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17729 * dvi/Makefile: Install tfmtodit in BINDIR.
17731 * dvi/tfmtodit.c (usage): Mention -v option.
17733 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17735 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17736 * troff/node.c (troff_output_file::transparent_char): Don't call
17739 * eqn: Add check_tabs method to most box classes.
17740 * eqn/box.c (box::top_level): Call check_tabs.
17742 * eqn/script.c (script_box::output): Use \Z.
17743 * eqn/limit.c (limit_box::output): Use \Z.
17745 * eqn/box.c (box::top_level): Use itoa.
17747 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17749 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17750 * dvi/devdvi/Makefile: Don't make links to CW.
17752 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17754 * xditview/tmac.X: Likewise.
17756 * troff/node.c: Add font translation feature.
17757 (get_font_translation): New function.
17758 (symbol_fontno): Translate the font name.
17759 (mount_font_no_translate): Rename to mount_font to this.
17760 (mount_font): New function.
17761 (font_family::make_definite): Call mount_font_no_translate instead
17763 (mount_style): Translate the font name.
17764 (font_translate): New function.
17765 (init_font_requests): Bind "ftr" to font_translate.
17767 * ps/devps/prologue (SN): New procedure that rounds a position to
17768 the nearest (pixel + (.25,.25)).
17769 (DL): Use SN to round endpoints.
17771 * lib/version.c: Changed version to 0.5.
17773 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17775 * Makefile: Move definition of PAGE to the very beginning, so that
17776 people are less likely to miss it.
17778 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17780 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17782 * troff/env.c (environment::choose_breakpoint): Make `can't find
17783 breakpoint' error a warning of type WARN_BREAK. Change message to
17784 `can't break line'.
17785 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17787 * troff/input.c: Add WARN_BREAK to warning_table. Include
17788 WARN_BREAK in DEFAULT_WARNING_MASK.
17790 * tty/tmac.tty: Add definition of \(+-.
17792 * groff.sh: Remove `--' option to set command.
17794 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17796 * ps/devps/eqnchar: Better definition of cdot using md.
17797 * dvi/devdvi/eqnchar: Likewise.
17798 * xditview/devX100/eqnchar: Likewise.
17799 * xditview/devX75/eqnchar: Likewise.
17800 * eqn/lex.c: Add definition of cdot.
17802 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17804 * troff/input.c (get_optional_char): New function.
17805 * troff/input.c (set_page_character): Use get_optional_char(),
17806 rather than has_arg() and tok.get_char(1).
17807 * troff/env.c (tab_character, leader_character, hyphen_char,
17808 field_characters): Likewise.
17809 (margin_character): Likewise. Also always delete the
17810 margin_character_node.
17812 * troff/input.c (token::get_char): Use token::description.
17814 * troff/input.c (has_arg): Don't skip over tab and \}.
17815 * troff/number.c (start_number): Give a warning if the number
17816 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17818 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17820 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17822 (get_name, get_long_name): Use these. Rename `warn' argument to
17825 * troff/node.c (get_fontno): Test that the symbol is not null.
17827 * troff/input.c (token::description): New function.
17828 * troff/number.c (parse_term): Use token::description in `numeric
17829 expression expected' message.
17830 * troff/groff.h: Add WARN_MISSING.
17831 * troff/number.c (start_number): New function.
17832 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17833 get_incr_number): Use start_number().
17834 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17836 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17837 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17839 * troff/input.c (token::get_char): Use WARN_MISSING.
17840 * troff/input.c (token::delimiter): Use token::description.
17841 * troff/env.c (environment_switch): Back out Aug 3 change.
17842 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17844 * troff/token.h (token::tab): New function.
17845 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17846 * troff/reg.c (alter_format): Likewise.
17847 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17849 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17851 * troff (most files): Redo warnings. Divide warnings into various
17852 categories; warning() has an additional first argument indicating
17853 the category it falls into.
17854 * troff/input.c (main): -w now takes an argument. New option -W.
17855 (enable_warning, disable_warning): New functions.
17857 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17858 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17860 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17862 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17863 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17864 * xditview/devX75/eqnchar: Likewise.
17865 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17867 * eqn/other.c: When bar or over applies to a single character
17868 don't produce an overline_box or an underline_box. Instead produce
17869 an accent_box or an underaccent_box, with the accent a line
17870 whose width is accent_width. New classes underaccent_box,
17871 overline_char_box and underline_char_box.
17872 * eqn/box.h: Move overline_box, underline_box, accent_box class
17873 declarations into eqn/other.c. Add declarations of
17874 make_underline_box, make_overline_box, make_accent_box.
17875 * eqn/eqn.y: Call make_overline_box, make_underline_box
17876 make_accent_box instead of constructors.
17877 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17879 * eqn/other.c: Add accent_box::~accent_box.
17880 * eqn/box.h: Declare it.
17882 * groff.sh: With -Tps, use eqn -D.
17884 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17886 (underline_box::output): Similarily.
17887 (accent_box::output): Use \Z.
17889 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17892 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17894 * troff/div.c (top_level_diversion::transparent_output(unsigned
17895 char)): Use asciify.
17896 * troff/input.c (asciify): Don't make it static.
17897 * troff/token.h (asciify): Declare it.
17899 * troff/input.c (get_name, get_long_name, token::get_char,
17900 token::delimiter): Add an extra default argument which says
17901 whether a warning should be printed.
17902 * troff: Pass a non-zero argument to one of these rather than
17903 printing a warning directly.
17905 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17907 * troff: Consistently use symbol::is_null.
17909 * troff/dictionary.h: Move some inline functions into
17912 * troff/request.h: Move inline functions into input.c.
17913 (request_or_macro::invoke): Make it pure.
17915 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17916 * troff/input.c (init_input_requests): Use class constant_int_reg.
17917 (class compatible_reg): Deleted.
17918 * troff/div.c (init_div_requests): Use class constant_int_reg.
17919 (class last_post_line_extra_space_reg): Deleted.
17921 * troff/env.c (tab_character): Don't change the tab character if
17922 we get an invalid argument.
17923 (hyphen_char): Similarily.
17925 * troff/reg.c (alter_format): Check that nm is not null.
17927 * Makefile, groff.sh: Make it possible to customize the commands
17928 used for printing PostScript and dvi files. Also make it possible
17929 to customize the path used by groff.sh.
17931 * eqn/eqn.y: Make `left' right associative.
17933 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17935 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17938 * pic/pic.h: Removed definition of INT_MAX.
17940 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17943 * troff/input.c (token::next): Handle \R like \n.
17945 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17947 * ps/tmac.pc (PSPIC): Simplify.
17949 * troff/env.c (tab_stops::to_string):
17950 * pic/pic.y (object_type_name):
17951 * pic/troff.c (simple_output::line):
17952 * pic/tex.c (tex_output::spline):
17953 * pic/object.c (object_spec::make_object):
17954 * tbl/main.c (process_data): Add cases to switch statements to
17955 avoid cfront warnings. (Some of these are spurious, since the
17956 switch already has a default case.)
17958 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17959 `ps-'. Don't test systat; instead check number of arguments to
17962 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17964 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17966 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17967 Unlink the file as soon as we have opened it, so that we don't
17968 have to bother with signal handlers.
17969 (handler): Deleted.
17970 (fatal_error_exit): Deleted.
17971 (main): Don't call signal.
17973 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17975 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17977 * pic/pic.y: If there is a label, or an nth construction before
17978 the first `.' in the argument to `with', ignore it and generate a
17980 * pic/lex.c (lex_warning): New function.
17982 * tbl/table.c (table::init_output): In section keep and release
17983 macro, use 0 indent when diverting and the correct indent when
17986 * troff/input.c (interpolate_number_format): Do not interpolate
17987 anything if the number register is not defined.
17989 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17991 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17993 * ps/devps/prologue (PICTURE): Set components of graphics state to
17994 their default values.
17996 * ps/devps/text.enc: Add trademark
17997 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17998 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17999 * ps/devps/symbolchars: Add names for summation and product.
18001 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18002 suchthat. Add pp. Add upper-case letters.
18004 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18005 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18008 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18009 rA (right angle bracket) to ra. Introduce names for double-headed
18010 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18011 * ps/devps/textmap: Likewise for ps device.
18012 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18013 * tty/devascii/R.proto: Rename lA to la and rA to ra.
18014 * tty/devascii/R.proto: Likewise.
18015 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18017 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18019 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18021 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18024 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
18026 * troff/div.c (when_request): Use symbol::is_null rather than
18027 has_arg to determine whether we have an argument.
18028 (change_trap): Remove the trap if we get an invalid number. Give
18029 an error if we don't get at least the macro name.
18030 (diversion_trap): Remove trap if we get an invalid name or number.
18032 * troff/env.c (environment_switch): Pop if we get an invalid
18033 symbol or numeric expression.
18035 * troff/input.c (do_define_macro): If EOF is encoutered while
18036 defining the macro, do tok.next() before returning.
18038 * troff/token.h (has_arg): Move definition from here, to ...
18039 * troff/input.c (has_arg): ... here
18041 * troff/env.c (space_size): Do nothing if we get an invalid argument.
18042 * troff/input.c (shift): Likewise.
18044 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
18047 * pic/troff.c (troff_output::start_picture): Comment out calls to
18050 * eqn/main.c (do_file): Subtract 1 from current_lineno if
18051 interpret_lf_args succeeds.
18053 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18054 \\. This avoids problems with \$N.
18056 * groff.sh: Pass -C to preprocessors.
18058 * lib/lf.c (interpret_lf_args): Be more flexible.
18060 * tbl/main.c (main): Add -C option.
18061 (table_input::get): Do not recognize TE if followed by character
18062 other than a space or newline unless -C option given.
18063 (process_input_file): Likewise for lf, TS.
18064 (process_data): Likewise for lf in text blocks.
18066 * eqn/main.c (main): Add -C option.
18067 (do_file): Don't recognize EQ, EN or lf if followed by character
18068 other than space or newline unless -C option given.
18069 * eqn/lex.c (file_input::read_line): Similarily.
18070 * eqn/eqn.h: Declare compatible_flag.
18072 * etc/soelim.c (main): Add -C option.
18073 (interpret_lf_args): Use version in libgroff.
18076 * pic/main.c (main): Add -C option, which sets compatible_flag.
18077 (top_input::get), (top_input::peek): If -C option not given,
18078 do not recognize .PS/.PE/.PF/.lf if followed by a character
18079 other than space or newline.
18080 * pic/lex.c (file_input::read_line): Similarily.
18081 * pic/pic.h: Add declaration of compatible_flag.
18083 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
18085 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18087 * troff/node.c, troff/node.h: Add `asciify' methods to classes
18088 derived from node. New class space_char_hmotion_node.
18089 * troff/input.c (asciify_macro): New function.
18090 * troff/input.c (init_input_requests): New request `asciify' bound
18092 * macros/mm.diff: New file.
18093 * Makefile: In install.mm target use `patch' to apply
18096 * troff/input.c (macro::print_size): Just print the size in bytes.
18098 * troff/div.c (return_request): Correct the argument
18101 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
18103 * troff/node.h (class composite_node): Add sz member.
18104 * troff/node.c (composite_node::size): Return sz.
18105 * troff/input.c (macro_to_node): Use the initial size in the
18106 environment as the size of the composite_node.
18108 * troff/node.c (node::zero_width_tprint): Provide a reasonable
18111 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
18113 * troff/div.c (change_trap): If we get a bad number expression,
18116 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
18118 * lib/matherr.c (matherr): Define this only if math.h defines
18121 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
18123 * troff/div.c (macro_diversion::distance_to_next_trap): If there
18124 no diversion trap return vunits(INT_MAX - vresolution).
18126 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
18128 * troff/input.c (do_zero_width): New implementation that doesn't
18129 use a temporary environment. Use instead:
18130 (token::add_to_node_list): New function.
18131 * troff/env.c (environment::get_prev_char_height),
18132 (environment::get_prev_char_height),
18133 (environment::get_prev_char_skew): New functions.
18134 (environment::get_prev_char): New function.
18135 (environment::get_prev_char_width): Change to use get_prev_char.
18136 (init_env_request): Implement new registers .cht, .cdp, .csk.
18137 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18138 \Z being processed in a separate environment.
18140 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
18142 * tbl/table.c: Removed TABLE_BOTTOM_REG.
18144 * tbl/table.c (table::init_output): In the section release macro,
18145 give a warning message if the section won't fit on one page.
18147 * tbl/table.c (table::do_top): Emit table keep only if table is
18149 (table::do_bottom): Likewise for table release.
18150 (table::table), (table::add_vertical_rule): Remove reference to
18152 * tbl/table.h: Remove keep member.
18154 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18155 SECTION_RELEASE_MACRO, if there's not enough space before the next
18156 trap to output the diversion, call T# ourselves, set
18157 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18158 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
18159 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
18160 vertical position and return to it before turning traps on again.
18162 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
18164 * troff/node.c, troff/node.h: In classes derived from node,
18165 replace prev_char_width method by last_char_node method.
18166 * troff/env.c (environment::get_prev_char_width): Use
18167 node::last_char_node rather than node::get_prev_char_width.
18169 * Makefile: Added comment about -fno-inline on 68030-based
18172 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18173 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18174 expressions using sizeof to int.
18175 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18177 * macros/tmac.e (TS): Don't move @f back past the current
18180 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18182 * ps/ps.c (main): Buffer stderr.
18183 * dvi/dvi.c (main): Likewise.
18184 * tty/tty.c (main): Likewise.
18186 * ps/ps.c (ps_printer::do_import): Improve error handling.
18188 * troff/input.c (abort_request): Use asciify.
18190 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18191 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18192 type of first argument int rather than char. This works around a
18193 bug on the 68030 based Apollo using g++ 1.37.1.
18195 * tbl/table.h (class table): Add `keep' member.
18196 * tbl/table.c (table::table): Initialize `keep'.
18197 (table::add_vertical_rule): Set `keep' to 1.
18198 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18199 (table::do_bottom): Likewise for table release macro.
18200 (table::do_row): Emit section keep macro even if the row is 0.
18202 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18204 * macros/tmac.e (@C): Preserve the font family across the change
18207 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18209 * lib/font.c: Initialize font::hor and font::vert to 1.
18210 (font::load_desc): Check the values of font::hor and font::vert.
18212 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18213 be included in a C compilation.
18214 (iftoa): Use INT_DIGITS. Include lib.h.
18216 (as_string): Likewise.
18217 * tbl/table.c: Removed definition of INT_DIGITS.
18218 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18219 * troff/input.c (input_input_requests): Likewise.
18220 * ps/ps.c (make_encoding_name): Likewise.
18221 (ps_printer::set_style): Likewise.
18222 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18224 * tty/devascii/R.proto: Map fm onto '.
18225 * tty/devlatin1/R.proto: Likewise.
18227 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18229 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18230 argument to \w is at a different input level.
18232 * tbl/table.c (table::init_output): Define a new macro
18233 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18234 transparently outputs itself.
18235 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18237 (table::do_row): Likewise.
18239 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18240 TRANSPARENT_STRING_NAME.
18242 * tbl/table.c (table::init_output): In the table release macro
18243 print an error message and don't produce any output if after
18244 issuing the need request the table still will not fit. Also
18245 remove the diversion after bringing it back.
18247 * tbl/table.c (table::init_output): Define a new macro
18248 REPEATED_MARK_MACRO, like mk but if in a diversion also
18249 transparently outputs itself.
18250 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18251 is necessary because .TH might not call .T#.
18252 (table::do_top): Likewise TOP_REG.
18253 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18254 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18255 table header might contain just the two top rules.
18257 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18259 * troff/div.c: Implement new request `ptr' to print all traps.
18261 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18262 init_string_env_reg.
18263 * troff/env.c (class tab_reg): Deleted.
18265 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18267 * troff/div.c: New number register .pn returns the number of the
18268 next page as set by the pn request.
18270 * macros/tmac.an: Redid headers and footers. Number each manual
18271 entry starting from 1 unless \nC is > 0, like Sun. Added an
18272 optional 5th argument to .TH which specifies the manual name and
18273 appears in the center of the header. Understand the X, P and D
18274 registers like Sun.
18276 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18278 * troff/env.c (init_env_requests): New number register `.lt' to
18279 return the title length.
18281 * troff/node.h (class transparent_dummy_node): New class.
18282 * troff/node.c (class transparent_dummy_node): Provide member
18284 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18287 * troff/input.c (token::next): New escape sequence \).
18288 * troff/input.c (get_copy): Recognize \) in copy mode.
18290 * troff/input.c (input_stack::clear): New function.
18291 * troff/input.c (exit_request): Use input_stack::clear.
18293 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18294 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18296 * troff/env.c: Move set_page_character to input.c. Move
18297 page_character to input.c also.
18298 * troff/env.c (title): Split off the reading of the parts of the
18299 title into read_title_parts.
18300 * troff/input.c (read_title_parts): New function. Check the
18301 input_level when testing whether a token matches the delimiter.
18303 * troff/input.c (exit_request): New function.
18304 * troff/input.c (init_input_requests): Bind ex request to
18305 exit_request rather than exit_groff.
18307 * troff/input.c (exit_groff): Call tok.next() before
18308 process_input_stack().
18310 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18312 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18313 * troff/env.h: ditto.
18314 * troff/input.c: ditto.
18316 * troff/env.c (environment::is_empty): Test pending_lines.
18318 * troff/env.c (environment::have_pending_lines): Removed.
18320 * troff/input.c: Add request to flush pending lines from the
18323 * troff/env.c, troff/env.h: Add automatic widow control feature.
18325 * troff/input.c (exit_groff): Do process_input_stack() after
18326 do_break() but before setting exit_flag to 2.
18328 * troff/input.c: Remove FLUSH_PENDING_LINES and
18329 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18330 environment after END_TRAP token seen, but only if there aren't
18331 any more traps still unfinished.
18332 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18334 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18336 * troff/env.c: Rename the `retain_size' member of class
18337 pending_output_line to `no_fill'.
18339 * troff/env.c (title): When the line is output, make the
18340 retain_size argument !fill.
18342 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18343 * troff/node.c (space_node::get_breakpoints),
18344 (dbreak_node::get_breakpoints): Fill this in.
18345 * troff/env.c: Allow specification of maximum number of
18346 consecutive hyphenated lines.
18348 * troff/env.c (environment::is_empty): Add test for !current_tab.
18350 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18352 * troff/env.c (environment::hyphenate_line): Don't completely give
18353 up if the word is not to be hyphenated; continue so that breaks
18354 can be made at break_char_node's.
18356 * lib/lib.h: Only define INT_MAX if it's not already defined;
18357 undef INT_MIN if it's already defined.
18359 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18361 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18362 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18365 * macros/tmac.an (an-header): Set no-space mode.
18367 * macros/tmac.an (TH): Start a new page if necessary.
18369 * Started using ChangeLog at version 0.4.
18372 version-control: never