1 2005-03-17 Werner LEMBERG <wl@gnu.org>
3 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
5 * src/libs/libgroff/hypot.c: Renamed to...
6 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
8 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
10 * src/include/lib.h: Updated.
12 2005-03-16 Werner LEMBERG <wl@gnu.org>
14 Add workaround for broken hypot() on Interix.
16 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
18 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
19 (CSRCS): Add `hypot.c'.
21 * src/include/lib.h: Declare `groff_hypot'.
23 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
26 * src/preproc/pic/pic.h: Don't declare `hypot'.
28 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
30 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
32 * src/devices/grohtml/post-html.cpp
33 (html_printer::lookahead_for_tables): End .ce properly to avoid a
36 2005-03-15 Werner LEMBERG <wl@gnu.org>
38 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
40 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
42 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
44 2005-03-14 Werner LEMBERG <wl@gnu.org>
46 Add Cyrillic support to devutf8 and devhtml.
48 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
50 * tmac/unicode.tmac: New file.
52 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
54 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
58 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
60 * src/libs/libdriver/printer.cpp (check_for_output_error): New
61 function. It has been introduced to catch peculiar error contexts
62 on MS-Windows platforms.
64 2005-02-28 Werner LEMBERG <wl@gnu.org>
66 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
69 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
71 * configure: Regenerated.
75 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
77 Integrate `pdfmark' into normal groff build system;
78 install macro `pdfmark' packages, build and install `pdfroff',
79 and PDF format documentation.
81 * Makefile.comm: Add PDFDOCDIR.
83 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
84 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
85 (unstall_dirs): Add pdfdocdir.
87 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
88 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
89 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
90 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
91 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
92 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
94 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
95 use of GROFF_AWK_PREFS.
96 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
97 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
99 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
100 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
101 also by modified GROFF_HTML_PROGRAMS).
103 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
105 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
107 (html_text::done_para): Unset `start_space'.
108 (html_text::remove_para_align): Call `retrieve_para_space' for the
111 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
113 (html_printer::do_check_center): Emit vertical space if necessary.
115 * src/roff/troff/env.cpp (environment_switch): Preserve
116 `seen_space', `seen_eol', and `suppress_next_eol' while switching
119 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
122 2005-02-20 Werner LEMBERG <wl@gnu.org>
124 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
127 2005-02-17 Werner LEMBERG <wl@gnu.org>
129 * doc/pic.ms, man/groff.man: Fix typos.
131 * doc/groff.texinfo: Fix typos.
132 (\LEmacro): Get proper mathematical spacing.
134 2005-02-16 Werner LEMBERG <wl@gnu.org>
136 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
137 * configure: Regenerated with autoconf 2.59b.
139 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
141 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
142 html_printer::start_font): Fix handling of preformatted text.
144 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
146 These patches modify the indentation implementation to use `<p
147 style=margin-left: n%>'. Many thanks to Peter and Larry for
148 suggesting this solution. Grohtml only uses tables for `.IP' and
149 related tags when the first operand has a short width.
151 Similarly, they modify all vertical space code. By default, grohtml
152 sets up a style sheet which uses no vertical space between `table',
153 `pre', and `p' tags. It forces spaces when it needs them using
154 `style="margin-top: 1em"'.
156 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
157 (html_table::emit_table_header, html_table::emit_new_row):
159 (html_table::set_space): New function.
160 (html_indent::html_indent): Don't set `is_used'.
161 (html_indent::begin): Rewritten.
162 (html_indent::end): Remove code in function.
164 * src/devices/grohtml/html-table.h: Updated.
165 (html_table): Make `out' public.
167 * src/devices/grohtml/html-text.cpp (html_text::html_text):
168 Initialize `start_space' with FALSE.
169 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
170 (html_text::issue_tag): Add argument to handle space style.
171 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
172 (html_text::flush_text): Don't set `start_space'.
173 (html_text::push_para): Don't set `p->really_issued'.
174 (html_text::do_emittext): Updated.
175 (html_text::do_para): Add paremeter to handle space.
177 (html_text::retrieve_para_space): New function.
179 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
180 (tag_definition): Remove `really_issued'.
181 (html_text): Updated.
183 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
184 `current_column' and `row_space'.
186 (html_printer::emit_raw, html_printer::write_header,
187 html_printer::do_indent, html_printer::do_check_center,
188 html_printer::do_tab_ts): Handle vertical space.
189 (html_printer:do_tab_te, html_printer::do_end_para): Call
191 (html_printer::do_col): Rewritten.
192 (html_printer::flush_globs): Remove debugging code.
193 (html_printer::is_line_start): New function.
194 (html_printer::start_font): Use `is_line_start'.
195 (html_printer::writeHeadMetaStyle): New function.
196 (html_printer::do_file_components, html_printer::~html_printer):
197 Call `writeHeadMetaStyle'.
199 * tmac/www.tmac (www-handle-percent): New macro.
200 (MPIMG): Handle percent values for width and height parameters.
203 * tmac/groff_www.man: Updated.
205 2005-02-14 Werner LEMBERG <wl@gnu.org>
207 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
208 $psname and $italic_angle.
209 Immediately restart file input loops if `split' returns an empty
212 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
213 Werner LEMBERG <wl@gnu.org>
215 Update afmtodit to better support Unicode (Michail).
216 Update afmtodit to use Perl 5 syntax (Werner).
218 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
220 Decorate variables with `my' where necessary.
221 Use `defined' where necessary to avoid warnings.
222 Don't use `do' for subroutine calls.
223 Other minor syntax updates.
224 Check for both `uXXXX[X[X]]' and `uniXXXX'.
225 Handle glyph variants properly.
226 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
229 * src/utils/afmtodit/afmtodit.man: Updated.
231 2005-02-13 Werner LEMBERG <wl@gnu.org>
233 Make groff.texinfo work with texinfo 4.8.
235 * doc/groff.texinfo (@Var): Use @r and @slanted.
236 (@defdummy, @Def*): Use @c to avoid empty lines.
237 (\angles): Replaced with...
238 (\Langlemacro, \Ranglemacro): New TeX macros.
239 (@Langlemacro, @Ranglemacro): New variables defined with @set.
240 (@angles): Use @Langlemacro and @Ranglemacro.
241 (\LE): Replaced with...
242 (\LEmacro): New TeX macro.
243 (@LEmacro): New variable defined with @set.
245 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
246 variables defined with @set.
247 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
248 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
253 * doc/texinfo.tex: Update to texinfo version 4.8.
255 * README.CVS: Updated.
257 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
259 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
262 2005-02-05 Werner LEMBERG <wl@gnu.org>
264 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
265 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
268 2005-02-01 Werner LEMBERG <wl@gnu.org>
270 * src/roff/groff/groff.man: Add information about paper size.
272 2005-01-25 Werner LEMBERG <wl@gnu.org>
274 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
277 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
279 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
281 (Re): Emit a warning if called without `.Rs'.
282 (doc-finish-reference): Use parameter for decreasing
283 `doc-reference-count'.
284 (doc-print-reference): Pass specific count parameters to
285 `doc-finish-reference'.
287 2005-01-21 Werner LEMBERG <wl@gnu.org>
289 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
290 Reset pointers to zero after deallocation. This fixes a crash
291 if a driver is called with multiple input files. Reported by
292 Ken Chilton <ken@chiltonfamily.org>.
294 * src/devices/grops/grops.man: Add more info on DSC.
296 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
298 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
301 2005-01-17 Werner LEMBERG <wl@gnu.org>
303 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
304 against division by zero.
306 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
308 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
310 2004-12-19 Werner LEMBERG <wl@gnu.org>
312 * install-sh: New version; taken from texinfo CVS.
314 2004-12-17 Werner LEMBERG <wl@gnu.org>
316 * tmac/devtag.tmac: Protect against loading twice.
317 Protect agains compatibility mode.
318 * tmac/www.tmac: Protect against loading twice.
319 Load `devtag.tmac' before switching off compatibility mode.
320 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
322 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
324 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
325 * configure: Updated.
327 2004-12-15 Thomas Klausner <wiz@netbsd.org>
329 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
331 2004-12-15 Werner LEMBERG <wl@gnu.org>
333 Make `test-groff' work again -- previously, wrong paths have been
334 used. Additionally, it can now be called from anywhere.
336 * test-groff.in: Don't test for groff binary. This is no longer
337 necessary since the proper paths are determined by `configure'.
338 (EXEEXT): Removed. No longer used.
339 (srcdir, builddir): Use values provided by the configure script.
340 (XENVIRONMENT): Updated.
344 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
346 Make .tag and .taga work for all devices (but only grohtml actually
349 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
350 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
351 html_printer::handle_assertion): Don't use hard-coded string
353 (html_printer::lookahead_for_table): Reset `tbl' properly if
355 (html_printer::devtag): New function, handling `devtag'.
356 (html_printer::special): Don't handle `html-tag'.
358 * src/include/printer.h, src/libs/libdriver/printer.cpp
359 (printer::devtag): New virtual function.
361 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
364 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
365 src/roff/troff/node.cpp: s/html-tag/devtag/.
367 * src/roff/troff/input.cpp (tag, taga): Always call
370 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
371 macros instead of HTML-TAG*.
373 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
375 * tmac/www.tmac: Load devtag.tmac.
376 Replace HTML-TAG* macros with DEVTAG* macros.
377 (HTML, HTML-NS): Changed definitions.
379 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
381 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
383 2004-12-10 Werner LEMBERG <wl@gnu.org>
385 Import Mike's `gdiffmk' package.
387 * contrib/gdiffmk/*: New files.
388 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
391 2004-12-08 Werner LEMBERG <wl@gnu.org>
393 Import Keith's `pdfmark' package. Integration is very preliminary.
395 * contrib/pdfmark/*: New files.
396 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
399 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
401 Fix a bug with title handling in HTML.
403 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
404 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
406 (html_printer::handle_tag_within_title): New function.
407 (html_printer::do_title): Use it.
409 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
410 (cov*tl-au-print): Emit `.eo.tl' tag.
412 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
414 * man/groff_char.man: Minor imrovements.
416 2004-12-04 Werner LEMBERG <wl@gnu.org>
418 * src/preproc/eqn/eqn.man: Revised.
420 2004-11-25 Werner LEMBERG <wl@gnu.org>
422 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
426 Remove X_NOT_STDC_ENV conditional.
427 (Version_string, program_name): New global variables.
428 (groff_flag): Removed.
430 (usage): Take a stream as argument.
433 (main): Add `long_options' array for `--help' and `--version'.
434 Make `-g' a dummy option.
435 Handle `-v' and unknown options.
436 Remove unused `position' variable.
438 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
439 (XLIBS): Add LIBGROFF.
441 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
444 * src/devices/xditview/Dvi.c (default_font_map): Split into three
445 parts to avoid compiler warning.
446 (resources): Don't initialize with `default_font_map'.
447 (ClassInitialize): Initialize first element of `resources'.
449 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
452 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
453 src/utils/pfbtops/pfbtops.man: Revised, updated.
455 * configure.ac: Generate src/utils/xtotroff/Makefile.
456 * configure: Regenerated.
458 2004-11-24 Werner LEMBERG <wl@gnu.org>
460 First fixes to get produce HTML.
462 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
465 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
466 (HR, LI): Use `HTML</p>', not `HTML'.
468 * doc/webpage.ms: Minor updates.
470 2004-11-23 Larry Kollar <kollar@alltel.net>
472 Add option -S grohtml to determine the file split level.
474 * src/devices/grohtml/post-html.cpp (split_level): New global
476 (html_header::determine_header_level): Use split_level.
477 (main): Handle `-S' command line option.
480 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
482 * src/devices/grohtml/grohtml.man: Document it.
487 2004-11-23 Y T <doarhop@hotmail.com>
489 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
490 the volume and number refer entries.
492 2004-11-22 Werner LEMBERG <wl@gnu.org>
494 * src/devices/grohtml/html-table.cpp
495 (html_table::emit_table_header): Don't emit `cols' attribute which
496 doesn't exist in HTML 4.0 and is thus invalid.
498 * NEWS: More minor fixes and updates.
500 2004-11-18 Werner LEMBERG <wl@gnu.org>
502 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
503 (HTML</p>): Minor clean-up.
505 * tmac/groff_www.man: Updated.
507 * src/devices/grohtml/grohtml.man: Revised and updated.
511 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
513 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
515 (html_printer::do_links): Fix rules generation around automatic
518 * tmac/www.tmac (LK): Use HTML-TAG-NS.
520 No longer emit empty line for non-HTML devices.
522 2004-11-17 Werner LEMBERG <wl@gnu.org>
524 * doc/Makefile.in (prepare_examples, webpage.html): Handle
527 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
528 prepare_examples, webpage.html): Handle `groff.css'.
530 2004-11-15 Werner LEMBERG <wl@gnu.org>
532 * NEWS, README, doc/webpage.ms: Updated.
534 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
536 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
538 * src/include/printer.h (printer): Remove virtual function
540 Update all source files.
542 * src/devices/grohtml/post-html.cpp (html_printer): New member
543 function `round_width'.
545 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
547 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
548 column key letter suffix.
550 2004-10-14 Werner LEMBERG <wl@gnu.org>
552 * Makefile.in (check): Depend on `site.exp' and `docheck'.
553 (docheck): Run dejagnu's `runtest' if it exists.
554 (site.exp): Create dejagnu configuration file.
556 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
558 2004-10-13 Werner LEMBERG <wl@gnu.org>
560 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
561 src/devices/grohtml/post-html.cpp (make_val,
562 html_printer::handle_state_assertion): Fix compiler warnings.
564 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
565 (diversion::diversion): Fix order of initializers.
567 * src/roff/troff/div.h: Don't include `mtsm.h'.
569 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
570 (environment::environment): Fix order of initializers.
571 (environment::make_tag, environment::construct_format_state): Fix
574 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
575 (input_iterator::input_iterator, macro::macro): Fix order of
578 * src/roff/troff/mtsm.cpp: Include only necessary header files.
579 (state_set::add, state_set::val): Fix compiler warnings.
581 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
582 (bool_value_state, int_value_state, units_value_state,
583 string_value_state): Remove comma after last element which causes
584 an error with g++ 3.3.3.
586 * src/roff/troff/node.cpp: Include `stringclass.h'.
587 (hline_node::hline_node, vline_node::vline_node,
588 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
590 (zero_width_node::zero_width_node): Fix order of initializers.
592 * src/roff/troff/node.h: Don't include `mtsm.h'.
593 (hmotion_node): Fix compiler warnings.
595 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
597 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
599 * doc/groff.css: New file.
601 * doc/webpage.ms: Use `groff.css'.
604 * tmac/an-old.tmac (need_eo_h): New number register.
605 (TH): Emit `.eo.tl' tag after title.
606 (SH): Set `need_eo_h'.
607 (an-trap): Handle `need_eo_h'.
608 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
610 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
611 (TL): Always start diversion.
613 (@AI): Always call `par@reset'.
614 (@AB): Update code for -Thtml.
615 (cov*tl-au-print): Handle -Thtml.
616 (par@reset): Handle `need_eo_tl', `need_eo_h'.
619 (@SH): Set `need_eo_h' for -Thtml.
620 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
622 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
623 Set `need_eo_h' for -Thtml.
624 (@EQ, @EN): Don't handle -Thtml specially.
625 (par@load-init): Don't handle -Thtml specially.
627 * tmac/www.tmac (www:paraspace): New macro.
628 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
629 (HTML</p>, HTML-TAG-NEXT): New macros.
630 (HnE): Emit tag `.eo.h' instead of break.
631 (HR): s/HTML-NS/HTML/.
632 (www-end-nowhere): End diversion only if `www-html' not set.
634 (ULS, ULE): s|HTML|HTML</p>|.
635 (LI): Call `www:paraspace'.
638 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
640 * src/roff/troff/request.h (macro): Make `p' public.
641 New variable `is_a_diversion'.
642 New member function `is_diversion'.
645 * src/devices/grohtml/html.h (simple_output): New member function
648 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
649 computation of `total'.
650 (tabs::check_init): New function.
651 (html_table::emit_table_header): Emit style data.
652 (html_table::insert_column): Improved.
654 * src/devices/grohtml/html-table.h: Updated.
656 * src/devices/grohtml/html-text.cpp (html_text::html_text):
657 Initialize `start_space' with TRUE.
658 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
660 (html_text::flush_text): Set `start_space' flag.
661 (html_text::uses_indent, html_text::remove_para_space,
662 html_text::get_alignment): New functions.
663 (html_text::push_para): Updated.
664 (html_text::do_para): Check for empty argument.
665 Don't set `space_emitted'.
666 (html_text::do_space, html_text::emit_space): Updated.
668 * src/devices/grohtml/html-text.h (tag_definition): New variable
670 (html_text): New member function `uses_indent', `remove_para_space',
673 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
675 (simple_output:nl): Always emit `\n'.
677 * src/devices/grohtml/post-html.cpp: Include `string.h'.
678 (BASE_POINT_SIZE): Removed.
679 (base_point_size, head_info): New global variables.
680 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
682 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
684 (page::add_and_encode): Pass additional parameter for tag flag.
685 (assert_pos): New structure.
686 (assert_state): New class.
687 (html_printer): Remove `indentation', `prev_indent'.
688 Add variables `troff_indent', `device_indent', `temp_indent'.
689 Add variables `seen_indent', `next_indent', `seen_pageoffset',
690 `next_pageoffset', `seen_linelenght', `next_linelength',
691 `seen_center', `next_center', `seen_space', `seen_break', `as'.
692 Add member functions `do_check_center', `do_space', `do_head',
693 `get_troff_indent', `restore_troff_indent', `handle_assertion',
694 `handle_state_assertion', `do_end_para', `set_char_and_width'.
695 Change argument to `do_fill' to `char *'.
697 (html_printer::emit_raw): Call `shutdown_table'.
699 (html_printer::do_center): Simplified.
700 (html_printer::do_title): Improved.
701 (html_printer::write_header): Emit one more newline.
703 (html_printer::do_heading, html_printer::do_indent,
704 html_printer::do_eol, html_printer::do_tab_ts,
705 html_printer::do_tab, html_printer::do_tab0,
706 html_printer::calc_po_in, html_printer::next_horiz_pos,
707 html_printer::remove_courier_tabs,
708 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
710 (html_printer::do_linelength, html_printer::do_pageoffset,
711 html_printer::do_indentation, html_printer::do_tempindent,
712 html_printer::do_tab_te): Simplified.
713 (html_printer::do_pointsize): Check whether point size is really
714 associated a `.tl' tag.
715 (html_printer::do_break): Rewritten.
716 (html_printer::troff_tag): Improved.
717 (html_printer::flush_globs): Updated.
718 (html_printer::lookahead_for_tables): Handle `is_br'.
720 (html_printer::set_char): Check `sbuf_style.f'.
721 (html_printer::write_navigation): Use string comparison.
722 (html_printer::~html_printer): Emit `head_info'.
723 (html_printer::special): Rewritten.
724 (get_str, make_val): New functions.
725 (main): New option `s' to set the base point size.
727 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
729 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
731 * src/roff/troff/node.cpp: New extern `debug_state'.
732 Include `stringclass.h' and `mtsm.h'.
733 Implement new classes and class members from `node.h'.
734 (real_output_file): Make `fp' public.
735 (troff_output_file): New variables `cur_div_level' and `tag_list'.
737 (troff_output_file::really_print_line): Check whether we should push
738 the current troff state and use the state at the start of the
739 invocation of this diversion.
740 (troff_output_file::add_to_tag_list): New member function.
741 (node::add_char): Handle `glyph_comp_np'.
743 * src/roff/troff/node.h: Include `mtsm.h'.
744 (node): New variables `state', `push_state', `div_nest_level',
745 `is_special'. Update constructors, all descendants.
746 Pass additional argument to `add_char' member function.
747 New virtual member functions `is_tag', `debug_node',
748 `debug_node_list'. Update all descendants.
749 (tag_node): New class for handling tags.
750 (output_file): Add variable `state'.
752 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
754 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
755 providing a minimal troff state machine to emit meta tags for the
756 post-grohtml device driver.
758 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
761 2004-10-09 Werner LEMBERG <wl@gnu.org>
763 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
765 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
767 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
769 * src/roff/troff/div.h: Include `mtsm.h'.
770 (diversion): New variables `any_chars_added', `needs_push',
771 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
772 `saved_suppress_next_eol', `modified_tag'.
773 New virtual member function `is_diversion'. Update all descendants.
775 * src/roff/troff/div.cpp (diversion::diversion,
776 macro_diversion::macro_diversion): Updated.
777 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
779 (top_level_diversion::space): Handle `curenv->seen_space'.
780 (page_offset): Update tag handling.
781 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
783 * src/roff/troff/env.h (environment): Make `tabs' public.
784 Remove `ignore_next_eol', `emitted_node'.
785 Update `output_line', `output'.
786 New variables `seen_space', `seen_eol', `suppress_next_eol',
788 New member functions `construct_state', `make_tag',
789 `construct_format_state, `construct_new_line_state,
791 Remove `add_html_tag', `make_html_tag'.
793 * src/roff/troff/env.cpp: New externs `suppress_push',
794 `get_diversion_state', `global_diverted_space'.
795 (pending_output_line): New variable `was_centered'.
796 Update constructor and all callers.
797 (pending_output_line::output): Call `curenv->construct_format_state'.
798 (environment::environment, environment::copy): Updated.
799 (environment::output): Handle `was_centered'.
800 (environment::add_char): Handle construct and diversion state.
801 (environment::add_node): Handle construct state.
802 (environment::newline): Handle `was_centered'.
803 (environment::output_line): Updated.
804 (environment::possibly_break_line): Updated.
806 (environment::add_html_tag): Replaced with...
807 (environment::make_tag): New function.
808 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
809 (environment::dump_troff_state): New debugging function.
810 (environment::construct_state, environment::construct_format_state,
811 environment::construct_new_line_state): New functions.
812 (environment::do_break): Updated.
813 Handle `global_diverted_space'.
814 (environment::handle_tag): Update tag handling.
815 (point_size, fill, do_break_request): Don't call `add_html_tag'.
816 (no_fill): Don't call `add_html_tag'.
817 Set `suppress_next_eol'.
818 (center, right_justify, line_length, indent, temporary_indent,
822 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
823 (input_iterator): New variables `is_diversion', `diversion_state'.
825 (input_stack): New member functions `get_div_level',
826 `get_diversion_state', `check_end_diversion'.
827 New variables `div_level', `diversion_state'. Initialize them.
828 (suppress_push, global_diverted_space): New global variables.
829 (input_stack::finish_get, input_stack::finish_peek,
830 input_stack::remove_boundary, input_stack::end_file,
831 input_stack::clear, input_stack::pop_macro): Call
832 `check_end_diversion'.
833 (input_stack::push): Handle `div_level' and `diversion_state'.
834 (get_diversion_state): New function.
835 (diverted_space_node::reread): Handle `global_diverted_space'.
836 (macro::macro): Update constructors.
837 (macro::is_diversion): New function.
838 (macro::operator=): Set `is_a_diversion'.
839 (string_iterator): New member function `is_diversion'.
840 (string_iterator::string_iterator): Update constructors.
841 (string_iterator::fill): Set `div_nest_level'.
842 (macro_iterator): New member function `is_diversion'.
843 (do_if_request): Handle `suppress_push'.
844 (tag, taga): New functions.
845 (init_input_requests): Add `tag' and `taga' requests.
847 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
849 * src/include/font.h (font): New member function
850 `get_image_generator'.
851 New variables `unscaled_charwidths' and `image_generator'.
853 * src/libs/libgroff/font.cpp (font::get_width): Always return the
854 character's unscaled width if `font::unscaled_charwidths' is set.
855 (font::get_image_generator): New function.
856 (font::load_desc): Check the `unscaled_charwidths' and
857 `image_generator' keywords.
859 * src/libs/libgroff/fontfile.cpp: Initialize
860 `font::unscaled_charwidths' and `font::image_generator'.
862 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
864 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
866 * man/groff_font.man: Document `unscaled_charwidths' and
869 * src/preproc/html/pre-html.cpp: Include `device.h'.
870 (image_gen): New global variable.
871 (imageList::createPage): Use `image_gen'.
872 (main): Use `image_generator' keyword.
874 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
876 * tmac/html.tmac: Handle \[sqrtex].
878 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
880 * src/include/printer.h (printer): New virtual method `round_width'.
882 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
883 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
884 src/devices/grotty/tty.cpp (printer::round_width): New function
887 * src/devices/grohtml/post-html.cpp (printer::round_width): New
889 (html_printer::set_numbered_char): Use it.
891 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
893 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
895 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
897 * configure: Regenerated.
899 * Makefile.in (GHOSTSCRIPT): New variable.
900 (MDEFINES): Add GHOSTSCRIPT.
902 2004-10-03 Werner LEMBERG <wl@gnu.org>
904 * INSTALL.gen: Updated (taken from texinfo CVS).
906 2004-09-28 Werner LEMBERG <wl@gnu.org>
910 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
912 * tmac/groff_www.man: Revised and updated.
914 2004-09-26 Werner LEMBERG <wl@gnu.org>
916 Fix \$@ and \$* to handle any number of arguments.
918 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
921 * src/roff/troff/input.cpp (input_iterator::internal_level):
923 (input_stack): New member functions `increase_level' and
925 (input_stack::get_level): Don't use `internal_level'.
926 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
927 (end_quote_iterator): Completely removed.
928 (interpolate_arg): Build string for \$@ and \$* which is then
929 pushed onto the input stack.
931 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
933 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
936 2004-09-23 Werner LEMBERG <wl@gnu.org>
938 * tmac/an-old.tmac (ne): Using default scaling operator.
940 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
942 This change implements the following features:
945 New numeric register: Defines number of lines following LP, PP,
946 QP, IP or XP, which must be kept together, before any automatic
947 page break. If insufficient space remains on the current page, a
948 page break is forced before the new paragraph begins.
951 New numeric register: Sets number of lines of following paragraph
952 which must be kept with a heading, defined by NH or SH, before any
953 automatic page break. If insufficient space remains on the
954 current page, a page break is forced before the heading.
957 (Thanks to Joerg van den Hoff, for this idea).
959 New numeric register: Sets the first level of heading (set with
960 NH), which will keep the same point size as body text; e.g. if
961 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
962 point size specified by \n[PS], but .NH 2 and .NH 1 will have
963 progressively larger point sizes, determined by \n[PSINCR] (see
967 New numeric register: Sets the point size increment for each level
968 of heading, (set with NH), below the threshold level set by
969 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
970 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
971 and all other levels will remain at 10pt, (because \n[PS] = 10).
974 Existing macro now accepts a numeric argument, to make heading
975 size match that of NH with same argument value, when the
976 GROWPS/PSINCR feature is enabled.
979 New string, set by NH macro, replaces the existing (undocumented)
980 use of SN, to represent the assigned section number.
983 New string, set by NH macro, represents the assigned section
984 number, but omits the terminal period (periods at intermediate
985 levels are retained).
988 String set by NH macro, originally undocumented, now implemented
989 as an alias for SN-DOT (which reproduces original behaviour).
991 * tmac/s.tmac (PORPHANS): New register.
993 (HORPHANS, GROWPS, PSINCR): New registers.
994 (SH-NO-TAG, @SH): Use them.
997 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
999 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1000 of `Ds' and `De' macros.
1002 2004-09-10 Werner LEMBERG <wl@gnu.org>
1004 In tbl, handle \a as an interpreted leader character if in
1007 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1008 LEADER_CHAR): New macros.
1009 (compatible_flag): New declaration.
1011 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1012 LEADER_3, and LEADER_4 to `state'.
1013 (table_input::get): Handle `\a'.
1015 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1016 (LEADER_REG): New macro.
1017 (table::init_output): Define LEADER_REG string register if in
1020 * src/preproc/tbl/tbl.man: Document it.
1022 2004-08-18 Werner LEMBERG <wl@gnu.org>
1024 * tmac/doc.tmac (An): Fix error message.
1026 2004-08-06 Werner LEMBERG <wl@gnu.org>
1028 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1029 file can't be opened. UNIX tbl has the same behaviour.
1031 2004-08-05 Y T <doarhop@hotmail.com>
1033 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1034 (DBRead): If in compatibility mode, take into account the text
1035 when computing figure boundaries.
1037 2004-08-05 Werner LEMBERG <wl@gnu.org>
1039 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1040 from Tadziu Hoffmann.
1042 2004-08-03 Werner LEMBERG <wl@gnu.org>
1044 * doc/meref.me: Document `_M' register.
1046 2004-08-03 Martin Husemann <martin@duskware.de>
1048 Make hpftodit work correctly on big-endian systems.
1050 * src/utils/hpftodit/hpftodit.cpp (File): New method
1051 `get_uint32(char *)'.
1052 (entry): New member `orig_value'.
1053 (read_tags): Use new method.
1054 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1057 2004-08-01 Werner LEMBERG <wl@gnu.org>
1059 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1060 are already in X11's `macros.t' file.
1062 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1064 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1066 (read_and_output_pcltypeface): Handle strings with length <= 4.
1068 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1070 * tmac/s.tmac (pg@top): Don't save `PO' register.
1071 (pg*end-col, pg*end-page): Directly use `PO' register.
1073 2004-07-27 Werner LEMBERG <wl@gnu.org>
1075 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1077 * src/preproc/refer/refer.cpp (output_references): Check for
1079 * src/preproc/refer/refer.man: Improve documentation of
1080 `bibliography' command.
1082 2004-07-26 Werner LEMBERG <wl@gnu.org>
1084 Add requests `fcolor' and `gcolor'.
1086 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1088 (init_env_requests): Add `fcolor' and `gcolor'.
1090 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1092 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1093 Document new requests.
1095 2004-07-24 Werner LEMBERG <wl@gnu.org>
1097 Add support for fractional point sizes in ms macros. A value for
1098 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1099 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1101 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1102 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1104 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1106 2004-07-19 Werner LEMBERG <wl@gnu.org>
1108 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1110 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1111 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1113 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1115 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1116 * tmac/groff_mdoc.man: Updated.
1118 2004-07-05 Werner LEMBERG <wl@gnu.org>
1120 * doc/groff.texinfo: Further improve documentation of `hcode'.
1122 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1124 Improve appearance of arrows in pic.
1126 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1128 Use two line segments for drawing non-filled arrow head.
1129 (line_object::print, spline_object::print): Shorten line length to
1130 avoid arrow sticking.
1131 (arc_object::print): Take arrow direction into account.
1133 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1135 * tmac/groff_www.man: Update documentation of .MPIMG.
1137 2004-07-03 Werner LEMBERG <wl@gnu.org>
1139 * tmac/an-old.tmac (RI): Always start with font `R'.
1140 (RI, IR): Properly end with font `R'.
1142 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1144 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1145 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1146 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1147 Don't pass more than six arguments to .R, .I, .B, etc., for
1148 compatibility with traditional troff macros.
1150 2004-07-02 Werner LEMBERG <wl@gnu.org>
1152 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1153 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1155 (PUSH_COMP_MODE): New internal character constant.
1158 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1159 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1160 (token::next, macro::append): Handle PUSH_COMP_MODE.
1161 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1162 POP_GROFFCOMP after each of the decoded arguments to make them
1163 independent from the compatibility mode status.
1164 (comp_mode): Add `COMP_ENABLE'.
1165 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1166 (define_string, append_string, define_macro, define_indirect_macro,
1167 append_macro, append_indirect_macro): Handle `compatible_flag'.
1168 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1170 * man/groff_diff.man, doc/groff.texinfo: Updated.
1172 2004-07-01 Werner LEMBERG <wl@gnu.org>
1174 * doc/groff.texinfo: Improve documentation of `hcode'.
1175 Use @documentencoding and convert document to latin-1; to do that
1176 make latin characters active and assign proper macros (within a
1177 @tex...@end tex environment).
1178 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1179 * doc/Makefile.sub (groff): Ditto.
1181 2004-06-29 Werner LEMBERG <wl@gnu.org>
1183 Implement two new conditional operators `F <name>' and `S <name>'
1184 which check whether <name> is a valid font or style, respectively.
1186 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1187 (text_file::text_file): Updated.
1188 (text_file::error): Don't emit message if `silent' is set.
1189 (font::load_font): Add optional third argument (which is directly
1191 (font::load): Add optional second argument to check the header of
1192 a font only, without emitting warning or error messages.
1193 * src/include/font.h (font): Updated.
1195 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1197 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1198 fourth argument to check a font without mounting.
1199 (check_font, check_style): New functions.
1200 * src/roff/troff/node.h: Updated.
1202 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1205 2004-06-27 Werner LEMBERG <wl@gnu.org>
1207 Implement new string-valued register `.sty' to return the current
1210 * env.cpp (environment::get_style_name_string): New function.
1211 (init_env_requests): Add `.sty' register.
1212 * env.h (environment): Updated.
1213 * node.cpp (font_info): Make `get_style_name' a friend.
1214 (get_style_name): New function.
1217 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1220 2004-06-15 Werner LEMBERG <wl@gnu.org>
1222 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1225 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1227 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1228 and \n[mo] to avoid dependency on current date.
1230 2004-06-08 Werner LEMBERG <wl@gnu.org>
1232 * Makefile.sub (install_data): New target.
1234 2004-06-04 Werner LEMBERG <wl@gnu.org>
1236 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1238 2004-06-03 Werner LEMBERG <wl@gnu.org>
1240 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1242 (install_data): Add $(srcdir).
1244 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1247 2004-06-02 Werner LEMBERG <wl@gnu.org>
1249 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1250 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1251 Add test for Xmu library.
1252 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1253 GROFF_APPRESDIR_DEFAULT): New macros.
1255 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1256 and GROFF_APPRESDIR_DEFAULT.
1258 * configure: Regenerated.
1260 * Makefile.in (appresdir): New variable.
1261 (MDEFINES): Add appresdir.
1263 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1265 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1267 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1268 `$(srcdir)/eign', not `eign'.
1270 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1272 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1273 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1274 Protect (g)xditview with `\%' to avoid hyphenation.
1275 Other minor formatting.
1277 2004-06-01 Werner LEMBERG <wl@gnu.org>
1279 Integrate gxditview into groff's standard directory hierarchy.
1281 * src/xditview/*: Moved to ...
1282 * src/devices/xditview/*: Here.
1283 Moved DviChar.h and XFontName.h to src/include.
1284 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1285 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1286 Moved xtotroff.c to new directory src/utils/xtotroff.
1287 Provide proper Makefile.sub files (reusing the stuff from
1289 DESC renamed to DESC.in.
1290 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1291 Converted everything from K&R to ANSI C.
1292 Decorated with const where appropriate.
1293 Cast string constants with `String' and `char *' where appropriate.
1294 Made it compile with C++ (used as a C compiler).
1295 Removed other minor compiler warnings.
1297 * src/devices/xditview/device.c: Include config.h, string.h, and
1299 Don't declare `exit', `strtok', `strchr', and `getenv'.
1302 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1305 * src/devices/xditview/xditview.c: Include config.h.
1306 Include stdio.h earlier.
1307 Protect declaration of `popen' and `pclose' with
1308 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1309 Replace `caddr_t' with `XtPointer'.
1310 (MakePromptFunc): New typedef.
1311 (DoPrint): Use RETSIGTYPE.
1312 (promptfunction): Change type to MakePromptFunc.
1313 (MakePrompt): Use MakePromptFunc for third argument.
1316 * src/devices/xditview/ad2c: Add casts to `String'.
1318 * src/include/XFontName.h (XFontNameString): Don't use array
1320 Add prototypes for `XParseFontName', `XFormatFontName',
1321 `XCompareFontName', and `XCopyFontName'.
1323 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1326 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1327 Don't declare `XParseFontName' and `XFormatFontName'.
1329 (main): Remove `optind' and `optarg'.
1331 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1332 (to select programs which need X).
1333 Make XDEVIDIRS depend on `FORCE'.
1334 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1336 (MDEFINES): Updated.
1337 (LIBDIRS): Use XLIBDIRS.
1338 (CPROGDIRS): Use XPROGDIRS.
1339 (DEVDIRS): Remove font directories for gxditview.
1340 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1341 (EXTRADIRS): Remove src/xditview.
1343 * Makefile.sub (DISCLEANFILES): Updated.
1345 * Makefile.comm (LIBXUTIL): New variable.
1346 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1347 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1349 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1351 * aclocal.m4 (GROFF_X11): New function.
1353 * configure.ac: Call GROFF_X11.
1354 Don't create src/xditview/Imakefile.
1355 Don't emit notice how to build gxditview.
1357 * configure: Regenerated.
1359 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1361 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1363 * Makefile.in (CPPFLAGS): Define.
1364 (MDEFINES): Add CPPFLAGS.
1366 2004-05-27 Werner LEMBERG <wl@gnu.org>
1368 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1370 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1372 Fix problems with `friend name injections'.
1374 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1375 make_script_box), src/roff/troff/div.h (end_diversions),
1376 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1379 2004-05-25 Bernd Warken <bwarken@mayn.de>
1381 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1383 2004-05-25 Werner LEMBERG <wl@gnu.org>
1385 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1386 src/libs/libgroff/color.cpp: Include lib.h.
1388 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1390 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1391 through Forte 6u1, and for how to get GNU make on Solaris.
1393 2004-05-24 Werner LEMBERG <wl@gnu.org>
1395 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1398 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1400 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1403 2005-05-14 Werner LEMBERG <wl@gnu.org>
1405 * REVISION: Set to 2.
1407 * aclocal.m4 (GROFF_STDINT_H): Removed.
1408 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1410 * configure.ac: Updated.
1411 * configure, src/include/config.hin: Regenerated.
1413 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1414 inttypes.h conditionally.
1416 2003-05-13 Werner LEMBERG <wl@gnu.org>
1418 Version 1.19.1 released
1419 =======================
1421 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1423 * src/preproc/refer/label.y (same_author_last_name,
1424 same_author_name): Handle empty sort keys.
1426 2004-05-10 Werner LEMBERG <wl@gnu.org>
1428 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1431 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1432 doc-str-Lb-librt): Reset font.
1433 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1434 Provide `doc-str-Lb' to reset font.
1435 * tmac/groff_mdoc.man: Updated.
1437 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1439 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1440 snprintf versions which don't conform to ANSI C 99 (this is,
1441 counting the string's trailing null byte in the return value).
1443 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1445 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1446 that all implementations of sprintf handle null pointers correctly.
1448 2004-05-04 Werner LEMBERG <wl@gnu.org>
1450 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1451 Document `.U' register.
1453 * src/roff/troff/env.cpp (environment::mark_last_line)
1454 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1456 2004-05-04 Larry Kollar <kollar@alltel.net>
1458 New read-only register `.U'; it returns 1 in safer mode and 0
1461 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1464 2004-05-03 Werner LEMBERG <wl@gnu.org>
1466 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1468 2004-04-17 Werner LEMBERG <wl@gnu.org>
1470 * src/include/font.h (font): Use `int' for ch_index.
1471 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1472 font::compact): Updated.
1474 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1477 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1478 (hyphen_word): Fix compiler warnings.
1479 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1482 (get_delim_number, get_line_arg): Change second argument type to
1484 (macro_header::copy, token::next, do_define_string,
1485 do_define_character, substring_request, asciify_macro,
1486 unformat_macro, read_size, non_interpreted_node::interpret,
1487 while_request, main: Fix compiler warnings.
1488 (read_color_draw_node): Initialize `col'.
1490 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1491 `start_col' and `end_col' of type `int'.
1492 (vertical_rule): Make `col' of type `int'.
1494 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1497 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1499 (format_serial): Use them to remove dependency on ASCII.
1501 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1503 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1506 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1508 (glyph): Change type of `hpos' to `int'.
1510 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1511 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1513 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1515 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1517 2004-04-16 Werner LEMBERG <wl@gnu.org>
1519 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1520 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1521 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1522 `double' instead of `float' everywhere.
1523 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1525 (main): Add return value.
1526 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1528 Update all user functions.
1530 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1531 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1532 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1533 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1534 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1535 src/roff/troff/input.cpp, src/roff/troff/request.h,
1536 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1539 * src/utils/indxbib/signal.c: Include stdlib.h.
1541 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1543 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1544 before the first page.
1546 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1548 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1549 (doc-operating-system-*): Updated.
1550 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1551 (doc-str-Lb-*): Add more library names.
1553 2004-04-10 Art Haas <ahaas@airmail.net>
1555 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1558 2004-04-09 Art Haas <ahaas@airmail.net>
1560 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1562 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1564 * arch/misc/shdeps.sh: Generate better comment for sed script.
1566 2004-04-08 Art Haas <ahaas@airmail.net>
1568 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1569 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1570 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1571 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1572 (polyfill), src/preproc/grn/main.cpp (polyfill),
1573 src/preproc/refer/command.cpp (command_table),
1574 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1575 gcc 3.5 doesn't like).
1577 2004-04-08 Werner LEMBERG <wl@gnu.org>
1579 Removing many compiler warnings. groff should now compile with
1580 a C++ compiler used for C files also. [Simple variable renamings
1581 to avoid shadowing aren't logged in detail.]
1583 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1584 (draw_dvi_printer::draw) ['c']: Enclose in block.
1586 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1587 (page::add_line): Fix typos.
1588 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1590 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1591 Some local variable renamings.
1592 * src/devices/grolbp/lbp.h: Some local variable renamings.
1594 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1597 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1598 Remove redundant local variable declaration.
1599 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1600 Don't use `caddr_t' but `void *'.
1601 Enclose functions with `extern "C"' for C++.
1603 * src/libs/libdriver/input.cpp (remember_filename,
1604 remember_source_filename): Use cast for string constant.
1606 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1607 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1608 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1609 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1611 Enclose functions with `extern "C"' for C++.
1612 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1613 (needs_quoting): Return `int'.
1614 (quote_arg): Add proper casts to malloc and realloc.
1615 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1616 various MS Windows environments.
1617 (spawnvp_wrapper): Add proper cast to malloc.
1619 * src/preproc/eqn/box.h: Remove redundant declarations of
1620 `make_script_box', `make_mark_box' and `make_lineup_box'.
1621 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1622 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1625 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1626 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1627 (dx, dy): Renamed functions to...
1628 (deltax, deltay): This.
1629 * src/preproc/grn/main.cpp: Some local variable renamings.
1630 (deffont): Add `const'.
1631 (initpic, conv): Use cast for string constant.
1633 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1634 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1635 (char_buffer::run_output_filter): Second argument is unused.
1636 * src/preproc/html/pushback.cpp: Some local variable renamings.
1638 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1639 * src/preproc/pic/object.cpp: Some local variable renamings.
1641 * src/preproc/refer/label.y (lookup_label): Remove redundant
1642 declaration of local variable.
1644 * src/preproc/soelim.cpp: Remove redundant declaration of
1645 `interpret_lf_args'.
1647 * src/preproc/tbl/main.cpp: Some local variable renamings.
1649 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1650 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1651 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1652 Don't use C++-style comments.
1654 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1655 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1656 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1658 * src/roff/troff/div.h: Remove redundant declaration of
1660 * src/roff/troff/troff.h: Remove redundant declaration of
1662 * src/roff/troff/input.cpp: Remove redundant declaration of
1663 `handle_first_page_transition' and `process_input_stack'.
1665 * src/utils/hpftodit.cpp: Some local variable renamings.
1667 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1669 Don't define RETSIGTYPE.
1670 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1672 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1673 (error): Use `const' in argument.
1674 (main): Remove redundant declaration of `optind'.
1675 Move declaration of `Version_string' to top-level.
1677 * PROBLEMS: Document difficulties compiling signal.c if a C++
1678 compiler is used for C.
1680 2004-04-07 Werner LEMBERG <wl@gnu.org>
1682 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1684 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1686 Make scripts like nroff.sh and neqn.sh portable across various
1687 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1688 non-POSIX path separators. The idea is to extend those scripts to
1689 decide at run-time (of the script) which path separator to use.
1691 * arch/misc/Makefile.sub: New file.
1692 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1693 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1694 a proper definition of the variable `GROFF_RUNTIME'.
1696 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1697 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1698 (PROGDEPDIRS): New variable.
1700 (PROGDIRS): Add PROGDEPDIRS.
1702 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1703 Don't substitute @SEP@ and @BINDIR@.
1704 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1705 (PATH): Use GROFF_RUNTIME.
1707 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1708 Don't substitute @SEP@ and @BINDIR@.
1709 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1710 (PATH): Use GROFF_RUNTIME.
1712 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1714 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1715 Cygwin which doesn't handle stderr correctly.
1717 2004-03-08 Werner LEMBERG <wl@gnu.org>
1719 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1720 against empty argument. Problem reported by <cgd@broadcom.com>.
1722 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1724 * Makefile.in (SEP): Replaced with...
1725 (RT_SEP, SH_SEP): Separators for the target platform's native path
1726 separator and the build environment, respectively.
1727 (fontpath, tmacpath): Use RT_SEP.
1728 (MDEFINES): Updated.
1730 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1731 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1732 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1733 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1735 2004-03-05 Werner LEMBERG <wl@gnu.org>
1737 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1738 reduce alignment problems with newer printers which use built-in
1739 TrueType fonts (instead of the older Intellifonts). The ideal
1740 solution is to provide a second set of groff metric files, but this
1741 is extremely time-consuming to produce, given that HP's metric
1742 files are very rudimentary.
1744 2004-03-01 Werner LEMBERG <wl@gnu.org>
1746 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1747 s/operand/argument/ in error message.
1749 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1751 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1754 2004-03-01 Antti Kantee <pooka@netbsd.org>
1756 * tmac/s.tmac (XE): Fix error message.
1758 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1760 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1763 * src/roff/groff/pipeline.c: Declare strcasecmp.
1764 (run_pipeline) [_WIN32]: Use function name variants which don't
1766 Fix stream handling.
1768 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1770 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1771 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1772 for platforms which use the native Win32 runtime libraries.
1773 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1775 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1776 QUOTE_ARG_REALLOC_ERROR): Fix string.
1778 * src/preproc/html/pre-html.cpp: Remove declaration of
1780 Don't use __MINGW32__.
1781 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1782 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1783 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1784 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1785 calls to `set_redirection' and `WAIT'.
1786 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1787 Fix calls to `set_redirection' and `save_and_redirect'.
1788 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1789 to `set_redirection' and `save_and_redirect'.
1790 (usage): Fix message.
1791 (makeTempFiles, main): Use `DEBUG_FILE'.
1793 2004-02-21 Werner LEMBERG <wl@gnu.org>
1795 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1797 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1799 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1800 quoting for MSVC's spawn* and exec* functions.
1801 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1802 spawnvp with proper quoting for MSVC.
1804 * src/libs/libgroff/assert.cpp (program_name),
1805 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1806 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1808 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1810 * src/include/error.h (program_name): Declare as `extern "C"'.
1811 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1813 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1815 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1817 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1819 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1821 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1823 (sbasename) [__MSDOS__ || ...]: New function.
1824 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1826 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1827 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1829 Use STDOUT_FILENO instead of hardcoded file handle.
1830 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1832 2004-02-19 Werner LEMBERG <wl@gnu.org>
1834 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1835 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1837 2004-02-18 Werner LEMBERG <wl@gnu.org>
1839 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1840 new font and mapping files.
1842 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1843 Keith Marshall <keith.d.marshall@ntlworld.com>
1845 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1846 an input pipe. This is needed for the MSVC compiler to make troff's
1849 * src/roff/troff/div.cpp: Include nonposix.h.
1850 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1852 2004-02-17 Werner LEMBERG <wl@gnu.org>
1854 * font/devlj4/generate/special.awk: New script.
1855 * font/devlj4/generate/Makefile (S): Use special.awk.
1856 * font/devlj4/*: Regenerated, including the following new files:
1857 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1858 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1859 * NEWS: Document new lj4 fonts and revised hpftodit.
1861 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1863 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1865 2004-01-25 Werner LEMBERG <wl@gnu.org>
1867 * src/libs/libgroff/progname.cpp: Replaced with...
1868 * src/libs/libgroff/progname.c: New file.
1869 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1871 2004-01-17 Werner LEMBERG <wl@gnu.org>
1873 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1875 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1877 * font/devlj4/generate/wingdings.map,
1878 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1879 Use groff glyph names where possible.
1880 * src/devices/grolj4/lj4_font.man: Minor updates.
1882 2004-01-13 Werner LEMBERG <wl@gnu.org>
1884 * tmac/www.tmac (DC): Handle TTY devices.
1886 * doc/webpage.ms: Document viewCVS from ffii.org.
1887 * NEWS, README: Updated.
1889 * src/roff/groff/groff.man: Mention lj4_font man page.
1891 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1893 (FONTS): Add SYMBOL and WINGDINGS.
1894 (SYMBOL, WINGDINGS): New targets.
1896 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1898 * src/devices/grolj4/lj4_font.man: New man page.
1899 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1900 * src/devices/grolj4.man: Mention lj4_font man page.
1902 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1903 * src/utils/hpftodit/hpftodit.man: Document it.
1905 Remove details about fonts (which are now in lj4_font.man).
1907 * font/devlj4/generate/symbol.map,
1908 font/devlj4/generate/wingdings.map: New files.
1910 2004-01-12 Werner LEMBERG <wl@gnu.org>
1912 * README: Mention ffii's viewcvs access.
1914 2004-01-09 Werner LEMBERG <wl@gnu.org>
1916 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1918 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1920 Revert most of the change from 2004-01-03 to better control used
1923 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1924 (text_symbol_sets, special_symbol_sets): New arrays.
1925 (symbol_set_table): New global variable.
1926 (read_symbol_sets): Use search order given in the text_symbol_sets
1927 and special_symbol_sets arrays. If command line flag -a is not
1928 given, search both arrays.
1929 (output_charset): Require x_height_tag only for command line flag -i.
1931 2004-01-06 Werner LEMBERG <wl@gnu.org>
1933 Implement string-valued registers \n[.m] and \n[.M] to return the
1934 name of the current drawing and background color, respectively.
1936 * src/roff/troff/symbol.h: Moved to...
1937 * src/include/symbol.h: Here.
1938 Small fixes to make it work outside of the `troff' directory.
1939 * src/roff/troff/symbol.cpp: Moved to...
1940 * src/libs/libgroff/symbol.cpp: Here.
1941 Small fixes to make it work outside of the `troff' directory.
1943 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1944 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1947 * src/include/color.h: Include symbol.h.
1948 (color): Add new field `nm'.
1949 * src/libs/libgroff/color.cpp (color::color): Updated.
1951 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1952 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1953 src/roff/troff/reg.cpp: Don't include symbol.h.
1955 * src/roff/troff/env.cpp: Don't include symbol.h.
1956 (environment::get_glyph_color_string,
1957 environment_get_fill_color_string): New member functions.
1958 (init_env_requests): Handle `.m' and `.M' registers.
1959 * src/roff/troff/input.cpp: Don't include symbol.h.
1960 (default_symbol): Moved to symbol.cpp/symbol.h.
1961 (do_glyph_color, do_fill_color, define_color): Pass symbol name
1962 to color constructor.
1963 * src/roff/troff/env.h: Updated.
1965 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1966 Document new registers.
1968 2004-01-05 Werner LEMBERG <wl@gnu.org>
1970 * src/roff/troff/node.cpp (space_node::get_breakpoints,
1971 space_node::nbreaks): Protect against zero `next' field.
1973 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
1975 In hpftodit, use the symbol sets offered in the TFM.
1977 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1978 (symbol_set, text_symbol_sets, special_symbol_sets,
1979 symbol_set_table): Removed.
1980 (get_printcode): Removed.
1981 (read_symbol_sets): Initialize `symbol_set' field with
1983 Simplify code to just use the `kind' value.
1984 (output_charset): Improve output formatting.
1985 (dump_symbols): Simplified.
1987 2004-01-02 Werner LEMBERG <wl@gnu.org>
1989 * font/devlj4/generate/text.map: Add more MSL numbers.
1991 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
1993 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1994 (text_symbol_sets): Add more symbol sets.
1995 (debug_flag): New static variable (moved from `main').
1996 (get_printcode, show_symset): New functions.
1997 (main): Remove `debug_flag'.
1998 (output_charset): Use `show_symset'.
1999 (dump_symbols): Use `show_symset'.
2000 Print symsets for all glyphs.
2001 (read_map): Actually call `unicode_to_ucode_make' but this time
2004 2004-01-01 Werner LEMBERG <wl@gnu.org>
2006 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2007 Fix placement of comments.
2009 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2011 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2012 option `-d' is given.
2013 (output_charset): Improve warning messages to give more information.
2014 (dump_symbols): Make information more precise.
2016 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2017 appear as-is and shouldn't be decomposed.
2019 2003-12-31 Werner LEMBERG <wl@gnu.org>
2021 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2022 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2023 (FONTS): Add TrueType font families Arial and Times New Roman.
2024 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2025 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2028 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2030 * test-groff.in (SEP): Quote value.
2031 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2032 `tem' to `char*' to avoid deallocation of a pointer to a constant
2033 object which some compilers don't like.
2035 2003-12-31 Werner LEMBERG <wl@gnu.org>
2037 * font/devlj4/generate (text.map, special.map): Rewritten to work
2038 with the new hpftodit version.
2040 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2042 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2043 set and 8bit character code for all glyphs also.
2045 2003-12-30 Werner LEMBERG <wl@gnu.org>
2047 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2049 2003-12-29 Werner LEMBERG <wl@gnu.org>
2051 More fixes for MSVC compiler.
2053 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2056 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2057 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2058 (getpid) [_MSC_VER]: Remove.
2059 Include direct.h and process.h conditionally.
2061 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2062 parentheses for a_delete.
2064 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2066 * test-groff: Replaced with...
2067 * test-groff.in: This new template to handle path separator
2070 * configure.ac: Check for direct.h and process.h.
2071 Generate test-groff script.
2072 * configure, src/include/config.hin: Regenerated.
2074 2003-12-28 Werner LEMBERG <wl@gnu.org>
2076 Add integral extension glyph.
2077 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2079 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2081 * font/devps/generate/textmap: Provide entry for `integralex' to
2082 override (old) PUA value of the AGL.
2083 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2084 * font/devps/*: Regenerated.
2086 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2087 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2089 2003-12-27 Werner LEMBERG <wl@gnu.org>
2091 Add forgotten `coproduct' symbol (already available for DVI).
2093 * font/devhtml/R.proto, font/devps/generate/textmap,
2094 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2095 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2096 U+2210 (\[coproduct]).
2098 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2100 hpftodit has been extended to handle TrueType metric files and
2101 more glyphs. See hpftodit.man for more details.
2103 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2104 ctype.h, and unicode.h.
2105 s/msl/charcode/ everywhere since we now handle Unicode values also.
2106 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2107 Use it where appropriate.
2108 (MULTIPLIER): Replaced with...
2109 (multiplier): New global static variable.
2111 (tag_type): Add more TFM tags.
2112 (tag_name): New array.
2113 (ENUM_TYPE, FLOAT_TYPE): Removed.
2114 (BYTE_TYPE): New value assigned.
2115 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2116 (text_symbol_sets, special_symbol_sets): Extended to cover more
2118 (check_type): Add return value.
2119 (check_units): Add parameters to get ppi and upem values.
2120 Handle TrueType TFM data.
2121 (output_font_name): New function.
2122 (output_charset): Add parameter to handle TFM type.
2123 Handle TrueType TFMs also.
2124 (em_fract): New macro.
2125 (dump_tags): Be much more verbose and handle more tags.
2126 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2127 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2129 (read_map): Add parameter to handle TFM type.
2130 Handle both MSL and Unicode mappings.
2131 (main): Add two new command line options `-a' and `-q'.
2132 Updated to make use of new functions.
2135 * src/utils/hpftodit/hpuni.cpp: New file.
2137 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2140 2003-12-25 Werner LEMBERG <wl@gnu.org>
2142 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2144 2003-12-24 Werner LEMBERG <wl@gnu.org>
2146 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2147 by Michail Vidiassov <master@iaas.msu.ru>.
2149 2003-12-20 Werner LEMBERG <wl@gnu.org>
2151 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2153 Add missing latin-2 glyphs.
2154 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2156 * tmac/troffrc: Load `composite.tmac' earlier.
2158 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2159 u00{53,73}_0327, and u0049_0307.
2160 * tmac/X.tmac: Add u00{47,67}_0306.
2161 * tmac/tty-char.tmac: Use composite glyph names for readability.
2165 * src/include/unicode.h: Remove `extern' keywords.
2167 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2169 * tmac/latin5.tmac: New file.
2171 2003-12-19 Werner LEMBERG <wl@gnu.org>
2173 Add some glyphs needed for Turkish.
2175 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2178 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2179 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2180 u00{53,73}_0327, and u0049_0307.
2182 2003-12-18 Werner LEMBERG <wl@gnu.org>
2184 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2186 Remove trailing zeros.
2188 2003-12-17 Werner LEMBERG <wl@gnu.org>
2190 Make \? transparent to end-of-sentence recognition.
2192 * src/roff/troff/input.cc (non_interpreted_node): Add
2193 `ends_sentence' member function.
2195 2003-12-16 Werner LEMBERG <wl@gnu.org>
2197 * doc/groff.texinfo: Document `dt' request correctly.
2198 Other minor typographical improvements.
2200 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2202 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2204 2003-12-10 Richard Stallman <rms@gnu.org>
2206 * LICENSE: Better wording.
2208 2003-12-09 Werner LEMBERG <wl@gnu.org>
2210 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2211 * configure, NEWS: Updated.
2213 2003-12-08 Werner LEMBERG <wl@gnu.org>
2215 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2217 2003-12-07 Bernd Warken <bwarken@mayn.de>
2221 2003-12-07 Werner LEMBERG <wl@gnu.org>
2223 * INSTALL: Improved.
2225 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2227 Use path separator character of target platform for compiled-in
2230 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2231 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2232 * configure: Regenerated.
2233 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2235 2003-12-05 Werner LEMBERG <wl@gnu.org>
2237 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2238 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2240 2003-12-04 Bernd Warken <bwarken@mayn.de>
2242 * LICENSE: New file.
2244 2003-12-03 Werner LEMBERG <wl@gnu.org>
2246 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2247 ligatures present in AFM files since groff currently only
2248 understands some standard ligatures and nothing else.
2250 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2252 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2255 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2258 Don't use Unix wait flags.
2260 2003-12-02 Werner LEMBERG <wl@gnu.org>
2262 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2263 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2264 src/roff/troff/uniuni.cpp: Moved to...
2265 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2266 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2267 src/libs/libgroff/uniuni.cpp: Here.
2269 * src/include/Makefile.sub.old (HDRS),
2270 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2271 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2273 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2275 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2279 2003-12-01 Werner LEMBERG <wl@gnu.org>
2281 * groff.texinfo: Document special behaviour of `.vs 0'.
2282 Improve documentation of `cflags' request.
2285 2003-11-29 Werner LEMBERG <wl@gnu.org>
2287 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2288 * font/devlj4/CORONET: Regenerated.
2290 2003-11-24 Werner LEMBERG <wl@gnu.org>
2292 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2293 if processing hyphenation patterns in traditional mode.
2294 Improve error messages.
2296 2003-11-20 Werner LEMBERG <wl@gnu.org>
2298 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2299 troff_output_file::put_char): Fix type of local variable `c'.
2301 2003-11-19 Werner LEMBERG <wl@gnu.org>
2303 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2305 (i_to_a): Removed. libgroff already provides this function.
2306 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2308 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2310 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2313 2003-11-17 Werner LEMBERG <wl@gnu.org>
2315 * COPYING: Use correct version.
2317 2003-11-11 Werner LEMBERG <wl@gnu.org>
2319 LynxOS 4.0.0 doesn't declare vfprintf.
2321 * configure.ac: Check for vfprintf.
2322 * configure: Regenerated.
2323 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2324 * src/include/config.hin: Regenerated.
2326 2003-11-10 Werner LEMBERG <wl@gnu.org>
2328 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2330 * configure.ac: Check for vsnprintf.
2331 * configure: Regenerated.
2332 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2334 * src/include/config.hin: Regenerated.
2336 2003-11-09 Werner LEMBERG <wl@gnu.org>
2338 * aclocal.m4: Updated syntax to autoconf 2.59.
2339 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2340 Don't check for gsos2.
2341 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2342 working abs_top_srcdir and abs_top_builddir.
2344 * configure.ac: Updated syntax to autoconf 2.59.
2345 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2346 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2347 * configure: Regenerated.
2349 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2350 s/@groff_top_builddir@/@abs_top_builddir@/.
2352 * src/roff/groff/pipeline.c (xstrsignal):
2353 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2355 2003-11-07 Werner LEMBERG <wl@gnu.org>
2357 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2358 make start angle smaller than end angle to circumvent a bug in tpic
2359 handling of some versions of dvipdfm (and dvipdfmx).
2361 2003-10-30 Werner LEMBERG <wl@gnu.org>
2363 * src/devices/grops/grops.man: Improve section on creating EPS.
2365 2003-10-29 Werner LEMBERG <wl@gnu.org>
2367 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2370 2003-10-28 Werner LEMBERG <wl@gnu.org>
2372 * doc/groff.texinfo: Fix documentation of `.if'.
2374 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2376 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2377 the form `uniXXXX' also.
2379 2003-10-27 Werner LEMBERG <wl@gnu.org>
2381 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2382 contrib/pic2graph/pic2graph.sh: Implement secure management of
2384 Pass `-P-pletter' to groff to avoid data outside of the converted
2385 area -- some versions of `convert' (for example 5.3.8) don't check
2386 the bounding box of the image but always use a fixed image size
2387 (letter paper format).
2388 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2389 contrib/pic2graph/pic2graph.man: Updated.
2391 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2393 2003-10-26 Werner LEMBERG <wl@gnu.org>
2395 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2396 troff_output::simple_ellipse, troff_output::simple_arc,
2397 troff_output::simple_line, troff_output::simple_spline,
2398 troff_output::simple_polygon): Insert a space before arguments.
2399 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2400 latter doesn't produce a node, so the following `.sp -1' would do
2402 Don't emit `.sp -1' after \M. This also doesn't produce a token
2403 (and we don't have to care about compatibility mode).
2404 (troff_output::set_color, troff_output::reset_color): Don't emit
2405 `.sp -1' after \M and \m.
2407 * src/roff/troff/input.cpp (old_have_input): New global variable.
2408 (input_stack::get): Handle `old_have_input'.
2409 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2410 `trapping_blank_line' depending on `old_have_input', not
2413 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2415 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2416 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2417 default directory names for temporary files.
2418 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2420 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2421 [__MSDOS__] (run_pipeline): Honour environment variables.
2422 Don't use `tmpnam' but `tempnam' to work around messy
2425 * README.MinGW: New file.
2427 2003-10-16 Werner LEMBERG <wl@gnu.org>
2429 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2430 `(*t)->next' without testing validity of `*t'.
2431 (usage): Make it more readable.
2433 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2435 Make html device run under both MS-DOS and Win32.
2437 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2438 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2439 spawn or fork+exec has to be used, and whether parent must sleep
2440 until the child process terminates. Used in
2441 `char_buffer::run_output_filter'.
2442 (copyofstdoutfd): Removed.
2443 (char_buffer): Replace `write_file_html' and `write_file_troff'
2444 member functions with `emit_troff_output' and `run_output_filter'.
2445 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2447 (replaceFd): Replaced with...
2448 (set_redirection): New auxiliary function.
2449 (waitForChild): Replaced with...
2450 (save_and_redirect): New auxiliary function for.
2452 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2455 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2457 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2458 (GROFF_LIBC): New function.
2459 * configure.ac: Call GROFF_LIBC.
2461 * configure: Regenerated.
2463 * src/include/lib.h: Handle __MINGW32__.
2464 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2465 Add macro for `pipe'.
2468 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2471 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2474 2003-10-13 Werner LEMBERG <wl@gnu.org>
2476 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2479 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2482 2003-10-12 Werner LEMBERG <wl@gnu.org>
2484 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2485 src/roff/troff/input.cc (usage): Updated.
2487 * NEWS, doc/groff.texinfo: Updated.
2489 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2491 * src/libs/libgroff/searchpath.cpp
2492 (search_path::open_file_cautious): New function which also handles
2493 `-' as stdin and stdout depending on the access mode.
2494 * src/include/searchpath.h (search_path): Updated.
2496 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2497 * src/devices/grops/ps.h: Include `searchpath.h'.
2498 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2499 Open resource file with `include_search_path.open_file_cautious'.
2500 * src/devices/grops/grops.man: Document new `-I' switch.
2502 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2503 (main), src/devices/grolj4/lj4.cpp (main),
2504 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2506 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2508 (include_search_path): New global variable.
2509 (include_path_append): Removed.
2510 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2511 (do_file): Simplify, using new
2512 `include_search_path.open_file_cautious'.
2514 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2516 (main): Pass arguments to `-I' to both troff and devices.
2517 Improve handling of `-V'.
2518 * src/roff/groff/groff.man: Document changes to -I and -V.
2520 * src/roff/troff/input.cpp (include_search_path): New global
2522 (next_file, source, ps_bbox_request, transparent_file,
2523 process_input_file): Use new
2524 `include_search_path.open_file_cautious'.
2525 (main) Handle `-I' switch.
2526 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2527 Use new `include_search_path.open_file_cautious'.
2528 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2529 * src/roff/troff/troff.man: Document new `-I' switch.
2531 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2533 Support multiple calls of .Lb in LIBRARY section.
2535 * tmac/doc-common (doc-in-library-section): New register.
2536 (doc-section-library): New string.
2537 (Sh): Set `doc-in-library-section'.
2539 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2540 if in LIBRARY section.
2541 * tmac/doc.tmac (doc-save-global-vars): Updated.
2542 * NEWS, tmac/groff_mdoc.man: Updated.
2544 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2546 * tmac/doc-common (doc-default-operating-system): New variable.
2549 2003-09-08 Werner LEMBERG <wl@gnu.org>
2551 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2553 2003-08-31 Werner LEMBERG <wl@gnu.org>
2555 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2556 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2557 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2558 $(DEVFILES) are not empty.
2559 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2561 2003-08-26 Chuck Silvers <chuq@chuq.com>
2563 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2564 with parallel runs of `make'.
2566 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2568 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2569 insert SORT_SEP. With certain combinations of sort specifications,
2570 refer sorted entries in the wrong order. In particular, entries
2571 with a missing field should be be sorted before all entries that
2572 have that field, before refer looks to the next field.
2574 2003-08-23 Werner LEMBERG <wl@gnu.org>
2576 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2577 g++ linker is used. Reported by Mark J. Reed
2578 <mark.reed@turner.com>.
2580 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2582 Add key character `x' to tbl which makes tbl call a user-defined
2583 macro on a table cell.
2585 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2586 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2587 `set_modifier' after printing the compatibility request.
2588 (set_modifier): Print call to `m->macro' if not empty.
2589 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2591 (process_format): Implement cases `x' and `X'.
2592 * src/preproc/tbl/tbl.man, NEWS: Updated.
2594 2003-08-15 Werner LEMBERG <wl@gnu.org>
2596 * doc/groff.texinfo: Minor fixes.
2598 2003-08-09 Werner LEMBERG <wl@gnu.org>
2600 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2602 2003-08-07 Werner LEMBERG <wl@gnu.org>
2604 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2605 argument list to nothing if there is no file to match. Use `ls' as
2606 a protection, similar to autoconf.
2608 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2609 empty argument lists.
2611 * doc/groff.texinfo: Improve documentation how vertical spacing
2612 and line breaks interact.
2615 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2617 2003-08-03 Werner LEMBERG <wl@gnu.org>
2619 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2620 EPS (using eps2eps or similar programs to compute the bounding box).
2622 2003-07-24 Werner LEMBERG <wl@gnu.org>
2624 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2625 * doc/texinfo.tex: Updated from texinfo 4.6.
2626 * README.CVS: From now on we need texinfo 4.6.
2628 2003-07-23 Werner LEMBERG <wl@gnu.org>
2630 Add requests `dei1' and `ami1' for completeness.
2632 * src/roff/troff/input.cc (calling_mode): Remove
2633 CALLING_DISABLE_COMP.
2634 (comp_mode): New enumeration.
2635 (do_define_string, define_string, define_nocomp_string,
2636 append_string, append_nocomp_string): Updated.
2637 (do_define_macro): Add third parameter.
2638 (define_macro, define_nocomp_macro, define_indirect_macro,
2639 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2640 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2643 (init_input_requests): Add `dei1' and `ami1'.
2645 * tmac/trace.tmac: Handle de1 and am1.
2646 (de): Improve tracing message.
2647 (am): Add missing `do'.
2650 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2651 Document new requests.
2653 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2655 Add option -G to .MPIMG to insert a gap between text and the image.
2657 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2658 www-finish-left-ll): Updated.
2659 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2660 (MPIMG): Make option -L and -R optional.
2661 Implement option -G.
2663 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2665 * src/devices/grohtml/post-html.cpp
2666 (html_printer::do_file_components): Don't use `stdout' as lvalue
2667 since it can be a macro.
2669 2003-07-22 Werner LEMBERG <wl@gnu.org>
2671 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2672 the corresponding test in aclocal.m4.
2674 2003-07-21 Werner LEMBERG <wl@gnu.org>
2676 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2677 names but RGB values directly. Otherwise pnmtopng depends on
2678 an external file `rgb.txt' which maps colour names to values.
2680 2003-07-20 Werner LEMBERG <wl@gnu.org>
2682 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2683 * configure, src/include/config.hin: Regenerated.
2685 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2687 2003-07-19 Werner LEMBERG <wl@gnu.org>
2689 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2691 2003-07-18 Werner LEMBERG <wl@gnu.org>
2693 * *.man: Switch to non-compatibility mode temporarily if GNU
2694 syntax extensions are used in the particular man page.
2696 * PROBLEMS: Add solutions for SGR problems.
2698 2003-07-17 Werner LEMBERG <wl@gnu.org>
2700 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2701 used to change the drawing scheme.
2703 * src/devives/grotty/tty.cpp (bold_flag_option,
2704 underline_flag_option, italic_flag_option, reverse_flag_option,
2705 bold_underline_mode_option): New global variables.
2706 (update_options): New function.
2707 (tty_printer::special): Call update_options.
2708 (main): Don't set xxx_flag but xxx_flag_option, then call
2711 2003-07-14 Werner LEMBERG <wl@gnu.org>
2713 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2715 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2717 (hline_char, vline_char): New global variables.
2718 (tty_printer::tty_printer): Initialize them.
2719 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2720 horizontal and vertical lines.
2721 (crossings): New global array.
2722 (tty_printer::end_page): Use it to determine the proper crossing
2723 character for -Tutf8.
2725 2003-07-12 Werner LEMBERG <wl@gnu.org>
2727 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2728 (HTMLDOCFILES): Revert to `pic.html'.
2729 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2731 2003-07-11 Werner LEMBERG <wl@gnu.org>
2733 * doc/pic.ms: Improve documentation of absolute coordinates.
2734 Document absolute positioning of pictures.
2736 * NEWS: Add new pic capability.
2738 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2740 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2743 2003-07-07 Werner LEMBERG <wl@gnu.org>
2745 Implement support for dashed and dotted ellipses in pic. Based on
2746 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2748 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2749 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2750 functions. Ellipse arcs are approximated with circle arcs.
2751 * src/preproc/pic/common.h (common_output): Updated.
2752 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2754 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2756 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2758 2003-07-06 Werner LEMBERG <wl@gnu.org>
2760 Make grotty work on platforms which have unsigned char as the
2761 default for char. Based on a patch by Thomas Klausner
2764 * src/devices/grotty/tty.cpp (schar): New typedef.
2765 Updated calls to declare_ptable and implement_ptable.
2766 (glyph): Use schar for back_color_idx and fore_color_idx.
2767 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2768 (tty_printer::tty_color, tty_printer::tty_printer,
2769 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2771 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2773 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2774 * src/roff/nroff/nroff.man: Updated.
2776 2003-07-05 Werner LEMBERG <wl@gnu.org>
2778 * NEWS, tmac/groff_www.man: Updated.
2779 * doc/Makefile.sub: Updated.
2781 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2783 Implement support for multiple HTML output files.
2785 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2786 -j command line option.
2788 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2790 (file): New fields `new_output_file', `require_links',
2792 (file::file): Updated.
2793 (files::set_file_name, files::set_links_required,
2794 files::are_links_required, files::is_new_output_file,
2795 files::file_name, files::next_file_name): New functions.
2796 (header_desc): New fields `no_of_level_one_headings',
2798 (header_desc::header_desc): Updated.
2799 (header_desc::write_headings): Handle multiple files.
2800 (html_printer::write_header): Save file name in which header occurs.
2801 (html_printer::determine_header_level): Possibly split files on
2803 (html_printer::do_links, html_printer::troff_tag): Updated.
2804 (html_printer::insert_split_file, html_printer::do_job_name,
2805 html_printer::emit_link, html_printer::write_navigation,
2806 html_printer::do_file_components): New functions.
2807 (html_printer::~html_printer): Handle multiple files.
2808 (main): Handle command line option `-j'.
2810 * src/devices/grohtml/grohtml.man: Updated.
2812 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2815 * tmac/www.tmac (JOBNAME): New macro.
2816 * tmac/s.tmac (SH-NO-TAG): New macro.
2817 (@SH): Call SH-NO-TAG.
2820 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2822 * tmac/groff_mdoc.man: Improve documentation of punctuation
2825 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2827 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2829 2003-07-03 Werner LEMBERG <wl@gnu.org>
2831 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2833 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2835 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2836 after `/*' and `*/'.
2838 (Fn, Fo): Reduce indentation in synopsis.
2840 * tmac/doc-common (doc-check-depth): New macro.
2841 (doc-end-macro, Sh, Ss): Use it.
2842 (Cd): Fix behaviour in synopsis.
2843 (In): Make it parsed and callable.
2844 If not in the synopsis, represent the C header file enclosed in
2846 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2847 Use minus, not hyphen.
2849 * tmc/groff_mdoc.man: Updated.
2851 2003-07-01 Werner LEMBERG <wl@gnu.org>
2853 Integrated grap2graph, contributed by Eric S. Raymond.
2855 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2857 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2858 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2860 2003-07-01 Colin Watson <cjwatson@debian.org>
2862 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2863 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2865 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2867 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2869 2003-06-31 Werner LEMBERG <wl@gnu.org>
2871 * doc/Makefile.sub (CLEANADD): Remove all files created by
2872 running `make groff.{pdf,dvi}'.
2874 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2877 2003-06-30 Werner LEMBERG <wl@gnu.org>
2879 * Makefile.in (SHELL): Define as @SHELL@.
2880 (mkinstalldirs): Use $(SHELL).
2881 (MDEFINES): Add $(SHELL).
2882 * Makefile.comm (SHELL): Removed.
2884 2003-06-29 Werner LEMBERG <wl@gnu.org>
2886 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2887 The X11 documentation files use them.
2888 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2890 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2892 * tmac/e.tmac (@C): Handle .ad also.
2894 2003-06-12 Werner LEMBERG <wl@gnu.org>
2896 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2898 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2899 Assign `n' even here. It is possible to construct a node
2900 immediately following an escape character:
2908 2003-06-10 Werner LEMBERG <wl@gnu.org>
2910 * README.WIN32: Removed.
2911 * MANIFEST: Updated.
2913 2003-06-07 Werner LEMBERG <wl@gnu.org>
2915 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2917 2003-06-05 Werner LEMBERG <wl@gnu.org>
2919 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2920 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2922 2003-06-03 Werner LEMBERG <wl@gnu.org>
2924 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2925 is done by the calling function.
2927 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2929 * tmac/X.tmac: Fix definition of `em'.
2931 2003-05-22 Werner LEMBERG <wl@gnu.org>
2933 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2936 2003-05-18 Werner LEMBERG <wl@gnu.org>
2938 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2939 to make items work which consist only of a tag.
2941 2003-05-17 Werner LEMBERG <wl@gnu.org>
2943 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2944 aren't stretched in a tag (this can fail with unformatted boxes).
2945 Instead, insert a break and go back one line.
2947 2003-05-16 Werner LEMBERG <wl@gnu.org>
2949 * src/roff/troff/input.cc (return_macro_request): If called with
2950 argument pop macro twice. We need this to trace `return'.
2952 * tmac/trace.tmac: Handle `return'.
2955 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2958 2003-05-15 Larry Kollar <kollar@alltel.net>
2960 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2961 registers `FPS', `FVS', and `FPD'.
2963 2003-05-15 Werner LEMBERG <wl@gnu.org>
2965 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2968 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
2970 * tmac/groff_mdoc.man: Slight improvements.
2972 2003-05-03 Werner LEMBERG <wl@gnu.org>
2974 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2975 `doc-header-space' after header line if register `cR' is set.
2977 2003-05-02 Werner LEMBERG <wl@gnu.org>
2981 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
2983 * tmac/doc-common (Nd): Use \[em].
2985 2003-05-01 Werner LEMBERG <wl@gnu.org>
2987 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2988 doc-footer-space): Initialize to 0.5i.
2989 (doc-setup-page-layout): Don't set doc-header-space and
2992 2003-04-30 Werner LEMBERG <wl@gnu.org>
2994 * REVISION: Set to 1.
2996 * doc/pic.ms: Document possible problems with `figname'.
2998 2003-04-29 Werner LEMBERG <wl@gnu.org>
3000 Version 1.19 released
3001 =====================
3003 * VERSION: Set to 1.19.
3004 * REVISION: Set to 0.
3005 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3007 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3008 Define charset as `US-ASCII' in html output.
3010 * tmac/www.tmac (ULE): Add missing scaling indicator.
3012 * win32-diffs: Removed.
3014 2003-04-28 Werner LEMBERG <wl@gnu.org>
3016 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3018 Document how to insert discardable whitespace with `.ss'.
3020 2003-04-27 Werner LEMBERG <wl@gnu.org>
3022 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3023 work with plain TeX also.
3025 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3027 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3029 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3032 2003-04-24 Werner LEMBERG <wl@gnu.org>
3034 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3035 vbox with positive height and zero depth if in TeX mode.
3037 * NEWS: Document glyph name changes for grodvi and grolj4.
3039 2003-04-23 Werner LEMBERG <wl@gnu.org>
3041 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3042 * doc/pic.ms: Fixed.
3044 2003-04-21 Werner LEMBERG <wl@gnu.org>
3046 HP-UX 10.20 has `snprintf' but it isn't declared.
3048 * configure.ac: Add declaration test for snprintf.
3049 * configure: Regenerated.
3050 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3051 * src/include/config.hin: Regenerated.
3053 2003-04-19 Werner LEMBERG <wl@gnu.org>
3055 Add keyword `figname' to pic, specifying the name of the picture
3056 box in TeX mode. Based on a patch from William J Poser
3057 <wjposer@unagi.cis.upenn.edu>.
3059 * src/preproc/pic/pic.y: New token `FIGNAME'.
3060 (macro_name): New rule of type <str>.
3061 (placeless_element): Handle `FIGNAME'.
3062 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3063 * src/preproc/pic/main.cpp (graphname): New global variable.
3064 (do_picture): Initialize `graphname'.
3065 * src/preproc/pic/pic.h: Updated.
3066 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3069 (tex_output::text): Beautify output.
3070 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3071 `shaded' and `outlined' unconditionally.
3072 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3075 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3076 greater is necessary.
3078 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3080 Add option -r to soelim to avoid emission of `.lf' lines.
3081 Add option -t to produces TeX comment lines instead of `.lf' lines.
3083 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3086 (main): Handle `-r' and `-t'.
3087 (set_location): Handle `raw_flag' and `tex_flag'.
3088 * src/preproc/soelim/soelim.man, NEWS: Updated.
3090 2003-04-17 Werner LEMBERG <wl@gnu.org>
3092 * tmac/hyphenex.sh: Replaced with...
3093 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3096 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3097 if --quiet is used for the configure script.
3098 * configure: Regenerated.
3100 2003-04-16 Werner LEMBERG <wl@gnu.org>
3102 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3103 Add `const' to second argument.
3104 (html_printer::add_table_end): Add `const' to argument.
3105 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3106 `const' to arguments.
3107 * src/devices/grohtml/html-text.h: Updated.
3109 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3110 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3113 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3114 cast for integer constant.
3116 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3117 (writeNbytes): Add `const' to first argument.
3118 (writeString): Add `const' to argument.
3119 (char_buffer::can_see): Add `const' to third argument.
3120 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3121 `const' to argument.
3122 * src/preproc/html/pushback.h: Updated.
3124 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3125 (include_path_append): Add `const' to argument.
3128 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3130 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3131 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3133 (unicode_decompose_init::unicode_decompose_init): Updated.
3134 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3136 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3137 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3140 * tmac/hyphenex.sh: Make script more portable by using a here
3143 2003-04-15 Werner LEMBERG <wl@gnu.org>
3145 Renamed all `*.cc' files to `*.cpp'.
3146 Updated all configuration files, makefiles, and documentation.
3148 2003-04-14 Werner LEMBERG <wl@gnu.org>
3150 * tmac/hyphenex.sh: Slight improvements.
3152 2003-04-13 Werner LEMBERG <wl@gnu.org>
3154 * font/devascii/R.proto, font/devcp1037/R.proto,
3155 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3156 character slots with unnamed glyphs.
3158 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3159 (an-first): New global variable.
3160 (an-header): Emit vertical space between multiple man pages.
3162 2003-04-11 Werner LEMBERG <wl@gnu.org>
3164 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3167 2003-04-10 Werner LEMBERG <wl@gnu.org>
3169 * PROBLEMS: Revised.
3171 2003-04-10 Bernd Warken <bwarken@mayn.de>
3173 * doc/webpage.ms: Improved.
3175 2003-04-09 Werner LEMBERG <wl@gnu.org>
3177 Add register \n[.height] which returns the value of \H.
3178 Add register \n[.slant] which returns the value of \S.
3180 * src/roff/troff/env.cc (init_env_requests): Implement.
3181 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3184 2003-04-08 Werner LEMBERG <wl@gnu.org>
3186 * tmac/html.tmac: Move some of the data into html-end.tmac.
3187 Remove most of the character translations for eqn since html fonts
3188 now cover those characters.
3190 * tmac/html-end.tmac: New file.
3191 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3192 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3193 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3195 2003-04-07 Werner LEMBERG <wl@gnu.org>
3197 * man/groff_out.man: Document negative values of `N' if -Thtml is
3200 2003-04-06 Werner LEMBERG <wl@gnu.org>
3202 * Makefile.comm (depend.temp): Check location of YTABC.
3204 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3206 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3208 (groff_bin_path): Rename to GROFF_BIN_PATH.
3209 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3210 * doc/Makefile.in (TROFFBIN): New variable for troff
3212 (GROFFBIN): New variable for groff binary path.
3213 (groff_bin_path): Rename to GROFF_BIN_PATH.
3214 (TROFF): Use TROFFBIN.
3215 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3216 * doc/Makefile.sub (GROFFBIN): New variable for groff
3218 (groff_bin_path): Rename to GROFF_BIN_PATH.
3219 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3221 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3222 with INSTALL_SCRIPT.
3223 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3224 * Makefile.dev (all): Depend on DEVSCRIPTS.
3225 (install_dev): Likewise.
3226 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3228 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3229 (DEVGENSCRIPTS): New variable to hold generated scripts.
3231 2003-04-05 Werner LEMBERG <wl@gnu.org>
3233 * src/libs/libdriver/input.cc (IntArray::operator[],
3234 IntArray::get_data): Remove meaningless `const' in return value.
3236 * README.CVS: New file.
3238 2003-04-04 Werner LEMBERG <wl@gnu.org>
3240 Check for stdint.h in C++, not in C.
3242 * aclocal.m4 (GROFF_STDINT_H): New function,
3243 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3245 * configure, src/include/config.hin: Regenerated.
3246 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3249 Fix handling of in grohtml. To do this, troff emits `N'
3250 with a negative value, representing the width of the unbreakable
3251 space (only for -Thtml). grohtml then converts this back to
3252 and uses the value of N as its width.
3254 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3255 unbreakable_space_node::tprint): Emit `N-<width>'.
3256 * src/include/printer.h (printer::set_numbered_char): Make it
3258 Make members `font_table' and `nfonts' protected instead of private.
3259 * src/devices/grohtml/post-html.cc
3260 (html_printer::set_numbered_char): New member function.
3263 * src/libs/libgroff/maxfilename.cc:
3264 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3266 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3269 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3271 * man/roff.man: Small fixes.
3273 2003-04-03 Werner LEMBERG <wl@gnu.org>
3275 Make groff independent from locale's numeric settings.
3277 * configure.ac: Check for `setlocale'.
3278 * configure, src/include/config.hin: Regenerated.
3280 * src/include/lib.h: Handle HAVE_SETLOCALE.
3282 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3283 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3284 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3287 * doc/groff.texinfo: Change dir category to `Typesetting'.
3288 (Man font macros): Mention that there is no space between arguments
3291 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3292 (*printer::change_color, *printer::change_fill_color): Add missing
3295 2003-04-02 Werner LEMBERG <wl@gnu.org>
3297 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3298 html_table::is_gap): Compute table widths after converting border
3299 positions to avoid rounding errors.
3301 2003-04-01 Werner LEMBERG <wl@gnu.org>
3303 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3304 `space_emitted' properly.
3306 2003-03-31 Werner LEMBERG <wl@gnu.org>
3308 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3309 (html_table::set_linelength): Don't add 1.
3310 (html_table::add_indent): Don't subtract 1.
3312 * tmac/html.tmac: Set default page offset to zero.
3314 2003-03-30 Werner LEMBERG <wl@gnu.org>
3316 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3318 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3319 unbreakable_space_node::tprint): New functions.
3320 (troff_output_file): Make space_char_hmotion_mode::tprint and
3321 unbreakable_space_node::tprint to friends.
3322 * src/roff/troff/node.h: Updated.
3324 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3325 in the HTML standard).
3327 2003-03-29 Werner LEMBERG <wl@gnu.org>
3329 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3330 Otherwise, the following code
3339 produces `x a' instead of `xa'. This is a temporary fix, disabling
3340 font changes in diversions for -Thtml.
3342 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3344 (an-do-tag-html): Merge with ...
3345 (an-do-tag): This macro.
3346 Change code slightly to circumvent grohtml bug.
3347 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3349 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3350 html_table::is_gap): Round `width' properly.
3352 * tmac/html.tmac: Provide some default layout parameters for
3355 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3358 2003-03-28 Werner LEMBERG <wl@gnu.org>
3360 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3362 2003-03-27 Werner LEMBERG <wl@gnu.org>
3364 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3367 2003-03-20 Werner LEMBERG <wl@gnu.org>
3369 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3371 * doc/groff.texinfo: Updated.
3373 2003-03-19 Werner LEMBERG <wl@gnu.org>
3375 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3376 TOKEN_END_TRAP>: Reset `have_input'.
3378 2003-03-18 Werner LEMBERG <wl@gnu.org>
3380 * src/roff/groff/groff.man: Mention groff_trace man page.
3382 2003-03-16 Werner LEMBERG <wl@gnu.org>
3384 * Makefile.in (LIBEXT): New variable to indicate the file extension
3385 of library files. Computed heuristically from $(OBJEXT).
3386 (MDEFINES): Add $(LIBEXT).
3387 * Makefile.lib, Makefile.comm: Use it.
3389 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3390 overlong lines into smaller chunks.
3391 (get_binary): New function.
3393 * src/utils/pfbtops/pfbtops.man: Updated.
3395 2003-03-15 Colin Watson <cjwatson@debian.org>
3397 * src/roff/groff/groff.man: Minor syntax fix.
3399 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3401 * src/devices/grops/ps.cc (ps_printer::media_set,
3402 ps_printer::~ps_printer): Handle zero paper width and length.
3404 2003-03-13 Werner LEMBERG <wl@gnu.org>
3406 Add options -p and -l to grodvi.
3408 * src/devices/grodvi/dvi.cc: Include paper.h.
3409 (landscape_flag, user_paper_length, user_paper_width): New global
3411 (dvi_printer::begin_page): Emit `papersize' special.
3412 Set color after initialization of `cur_h' and `cur_v'.
3413 (main): Add options `-l' and `-p'.
3414 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3415 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3417 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3419 2003-03-12 Werner LEMBERG <wl@gnu.org>
3421 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3422 * man/groff_tmac.man: This man page.
3423 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3426 * tmac/X.tmac: Don't load pspic.tmac.
3428 2003-03-11 Werner LEMBERG <wl@gnu.org>
3430 Make variable `pr' local to libdriver/input.cc. Based on a patch
3431 by Bernd Warken <bwarken@mayn.de>.
3433 * src/include/driver.h (pr): Removed.
3435 * src/libs/libdriver/input.cc (pr): New global variable.
3436 (do_file): Deallocate `pr'.
3437 * src/libs/libdriver/printer.cc (pr): Removed.
3439 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3440 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3441 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3442 (main): Don't delete `pr'.
3444 2003-03-10 Werner LEMBERG <wl@gnu.org>
3446 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3447 * tmac/papersize.tmac: New file.
3448 * tmac/troffrc: Include `papersize.tmac'.
3449 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3450 * tmac/an-old.tmac: Set LT to LL by default.
3452 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3453 doc/groff.texinfo: Updated.
3455 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3456 bug which caused all odd iso papers to have wrong dimensions.
3458 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3459 (main) <'p'>: Set `user_paper_width' also.
3460 (ps_printer::media_width, ps_printer::media_height): Use values
3461 given with option `-p'.
3463 2003-03-09 Werner LEMBERG <wl@gnu.org>
3465 * src/include/nonposix.h: Provide default for SET_BINARY.
3467 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3468 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3471 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3472 (main): Treat \r\n as \n.
3474 2003-03-08 Werner LEMBERG <wl@gnu.org>
3476 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3477 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3479 2003-03-07 Werner LEMBERG <wl@gnu.org>
3481 Added support to access more than 256 glyphs in Type 1 fonts.
3483 * src/devices/grops/ps.cc (subencoding): New structure.
3484 (style): Add `sub' field.
3486 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3487 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3490 (ps_printer::set_char): Use `set_subencoding'.
3491 (make_subencoding_name): New function.
3492 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3493 (ps_printer::~ps_printer): Emit subencoding definitions.
3495 * src/devices/grops/psrm.cc (valid_input_table): New array to
3496 properly support EBCDIC.
3497 (white_space): Add `\f'.
3498 (ps_get_line): Change first argument to be of type `string &'.
3499 Updated all callers.
3500 This allows to get lines of arbitrary length.
3501 Use `valid_input_table'.
3502 Remove warning about non-conforming PS line length. This seems
3503 not to be of great importance -- for example, dvips don't emit
3505 (PS_LINE_MAX): Removed.
3506 (matches_comment): Change first argument to be of type `string &'.
3508 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3510 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3511 %AGL_to_unicode, %default_ligatures): New hash tables.
3512 Read all map entries.
3513 Add unencoded characters.
3514 Check for default ligatures if there are no `L' entries.
3515 Print all kern entries.
3516 Print all characters in charset.
3517 * src/utils/afmtodit/afmtodit.man: Updated.
3519 * font/devps/*: Regerated all fonts.
3521 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3522 of characters, just use `.trin'. Otherwise the mapping depends
3523 on the font encoding.
3524 * tmac/ps.tmac: Add `fi' and `fl'.
3525 Improve `Fi' and `Fl'.
3526 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3527 * tmac/Xps.tmac: Fix `em'.
3531 2003-03-04 Werner LEMBERG <wl@gnu.org>
3533 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3536 2003-03-03 Werner LEMBERG <wl@gnu.org>
3538 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3540 * font/devps/generate/textmap: Remove entry `similarequal'.
3541 * font/devps/symbolmap: Updated.
3543 2003-03-02 Werner LEMBERG <wl@gnu.org>
3545 * src/libs/libgroff/font.cc (font::load): Fix error message for
3548 * src/devices/grops/grops.man: Improve documentation of the -b
3551 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3552 `ascii' and `cp1047'.
3554 2003-03-01 Werner LEMBERG <wl@gnu.org>
3556 Document composite glyphs and the `composite' request.
3558 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3560 2003-02-28 Werner LEMBERG <wl@gnu.org>
3562 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3563 * font/devdvi/*EC: Updated.
3565 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3566 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3567 * tmac/troffrc: Load `composite.tmac'.
3568 * tmac/Makefile.sub (NORMALFILES): Updated.
3570 * doc/groff.texinfo (Input Encodings): New section.
3573 2003-02-27 Werner LEMBERG <wl@gnu.org>
3575 * doc/texinfo.tex: New version 2003-02-11.06.
3577 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3578 * tmac/groff_mdoc.man: Fix description of `Dt'.
3580 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3582 * font/devps/prologue.ps: Fix for included Postscript that does
3583 a setpagedevice -- which is now safely ignored.
3587 * src/devices/grops/ps.cc: Now sets the page size in the generated
3588 document. This is done in two ways: Via a %%-comment for gv and
3589 the like, and via a PageSize and setpagedevice for programs that
3590 understands Postscript proper, like ps2pdf.
3592 * src/devices/grops/ps.h: New broken-flag to avoid page size
3593 definition, if required.
3595 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3597 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3598 Not really necessary due to the fix in prologue.ps, but cleaner:
3599 Such information does not belong in an .eps file.
3601 * doc/Makefile.sub: See doc/Makefile.in.
3603 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3605 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3606 instead of P1 since the latter is broken in some versions of netpbm.
3607 * configure: Updated.
3609 2003-02-26 Larry Kollar <kollar@alltel.net>
3611 Make man pages more customizable.
3613 * tmac/an-old.tmac (FT): New register holding footer distance from
3615 (HF): New string holding the default heading font.
3616 (TH): Handle registers `IN' and `SN' set on the command line.
3618 (PT, BT): New strings to customize header and footer lines.
3619 (an-header, an-footer): Use them.
3621 * tmac/groff_man.man: Document changes.
3623 * doc/groff.texinfo: Document man changes.
3624 Document Ultrix extensions of man.
3626 2003-02-26 Werner LEMBERG <wl@gnu.org>
3628 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3629 `have_input' after changing back to old environment.
3631 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3632 function up to be defined before first call. This is necessary to
3633 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3635 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3636 the default font directory also. Based on a patch from James
3637 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3638 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3639 * src/utils/afmtodit/afmtodit.man: Document it.
3643 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3645 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3647 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3648 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3649 * configure.ac: Use it.
3650 * configure: Regenerated.
3651 * Makefile.in: Updated.
3653 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3654 (CLEANADD): Add www.tmac-sed.
3655 (pnmtops_nosetpage): Define default.
3656 (install_data): Handle www.tmac-sed and substitute
3657 @PNMTOPS_NOSETPAGE@.
3658 (stamp-sed): Add www.tmac.
3659 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3660 It now breaks URLs at suitable places.
3661 (www:substring_ok): New register set by...
3662 (www:@test_substring): New macro.
3663 (www:error): New alias to www-error.
3664 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3666 (URL): Use www:url_breaks.
3667 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3668 (CDS, CDE): New macros.
3670 2003-02-25 Werner LEMBERG <wl@gnu.org>
3672 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3675 2003-02-24 Werner LEMBERG <wl@gnu.org>
3677 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3678 can be negative also.
3680 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3682 (read_char_table): Avoid negative ascenders.
3683 (output_charset): Add cast.
3684 * font/devlj4/*: Regenerated.
3686 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3689 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3690 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3692 * font/devdvi/*: Regenerated.
3694 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3695 normal width, while the previously used characters (U+2329 and
3696 U+232A) are classified as wide due to canonical equivalence with the
3697 CJK punctuation characters U+3008 and U+3009.
3699 * font/devutf8/R.proto: Updated.
3700 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3702 * man/groff_char.man: Simplify handling of table traps by
3703 introducing `start block' and `end block' macros.
3704 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3705 (DL): Make it work with Unix troff also.
3706 Fix code values of `la' and `ra'.
3708 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3710 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3712 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3713 New destructor, fixing a major memory leak.
3715 2003-02-22 Werner LEMBERG <wl@gnu.org>
3717 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3718 to be in conformance with Unicode 3.0 and newer.
3720 * font/devlj4/generate/text.map: Add `Eu'.
3721 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3722 * font/devlj4/S: Regenerated.
3724 * man/groff_char.man: Completely rewritten.
3726 * doc/groff.texinfo: Fix description of request and macro arguments.
3728 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3732 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3733 Deallocate `columns' list.
3734 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3736 (text_glob::text_glob_html, text_glob::text_glob_special,
3737 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3738 text_glob::text_glob_tag): Avoid memory leaks.
3739 (text_glob::remember_table): Free memory before reassigning.
3741 2003-02-19 Werner LEMBERG <wl@gnu.org>
3743 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3744 alias `hbar'), the Planck constant over two pi.
3746 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3747 `+e' for position 34.
3748 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3749 `u2662' and `u2661'.
3750 * font/devdvi/{MI,S}: Regenerated.
3751 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3752 * font/devlbp/*: Add `hbar' alias.
3753 * font/devlj4/generate/special.map: Ditto.
3754 * font/devlj4/S: Regenerated.
3755 * font/devps/generate/symbolchars: Add `+e'.
3756 * font/devps/generate/textmap: Fix PS name for `-h'.
3758 * font/devps/symbolmap: Regenerated.
3760 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3762 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3764 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3767 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3769 * tmac/tty-char.tmac: Add `+e'.
3771 2003-02-17 Werner LEMBERG <wl@gnu.org>
3773 Another round trying to really fix problems with `have_input'.
3775 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3776 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3778 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3779 handling if both foreground and background colors are default.
3781 * doc/groff.texinfo (Debugging): Document .lf differences to
3784 2003-02-16 Werner LEMBERG <wl@gnu.org>
3786 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3787 null-bytes in created string.
3789 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3790 alias_macro, lookup_request): Improve warning messages.
3792 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3794 Free `last_image_filename'.
3796 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3798 (imageList::createPage, imageList::createImage): Use `free', not
3800 (imageItem::~imageItem): Free `imageName'.
3801 (addRegDef): Use `strsave', not `strdup'.
3802 (get_resolution): Free `pathp'.
3804 2003-02-15 Werner LEMBERG <wl@gnu.org>
3806 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3809 2003-02-14 Werner LEMBERG <wl@gnu.org>
3811 Add memory management for colors to deallocate unnamed colors
3814 * src/include/color.h (color): New members `free_list' and `next'.
3815 New member functions `new' and `delete'.
3817 * src/libs/libgroff/color.cc: Implement it.
3819 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3820 for array size of new operator.
3822 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3823 redundant comparison.
3825 * src/roff/troff/input.cc (word_space_node::reread,
3826 hmotion_node::reread): Avoid warning about unused parameter.
3827 (reset_output_registers): Remove redundant parameter.
3828 (define_color): Undo change 2003-02-12.
3830 * src/roff/troff/reg.h: Updated.
3832 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3833 output_file::put_filename, real_output_file::really_put_filename,
3834 ascii_output_file::really_print_line,
3835 break_char_node::get_hyphen_list): Avoid warning about unused
3837 (suppress_node::tprint): Updated.
3839 * configure.ac: Check declaration for rand() and srand().
3840 * configure: Regenerated.
3842 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3844 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3847 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3848 to avoid compiler warnings.
3850 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3853 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3855 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3857 Updated all callers.
3859 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3861 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3862 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3864 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3865 Parameter is unused.
3866 (html_printer::add_table_end): Define parameter conditionally.
3867 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3870 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3871 (lbp_printer::set_char): Last parameter is unused.
3873 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3875 2003-02-13 Werner LEMBERG <wl@gnu.org>
3877 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3878 Make \D'f ...' move horizontally again for backwards compatibility.
3879 Replace it with \D'Fg ...' where appropriate to avoid dependency
3880 on horizontal resolution.
3882 * src/roff/troff/input.cc (do_get_long_name): New function.
3883 (get_long_name): Call it.
3885 (read_draw_node): Handle `\D'Fx ...' by calling ...
3886 (read_color_draw_node): New function.
3888 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3890 Pass it to `do_get_long_name' which is used instead of
3893 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3894 unnecessary value guard.
3895 (parse_D_command) <'f'>: Add horizontal shift.
3897 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3898 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3899 (FILL_MAX): Removed.
3901 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3904 2003-02-12 Werner LEMBERG <wl@gnu.org>
3906 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3907 do_zero_width): Push `\n' if closing delimiter is missing.
3909 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3910 <'F'>: Make \F non-transparent at the beginning of line.
3911 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3912 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3915 (define_color): Free color in case of reassignment.
3917 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3918 @DefescListEnd): Use @Var, not @var.
3921 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3923 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3924 `shaded' and `outlined' arrays.
3925 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3926 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3928 (closed_object::set_fill_color): Ditto.
3929 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3931 (troff_output::reset_color): Use a_delete instead of free.
3932 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3934 2003-02-11 Werner LEMBERG <wl@gnu.org>
3936 * doc/groff.texinfo: Improve documentation of `ad'.
3937 Document that \D'f...' is dependent on the horizontal resolution.
3938 * man/groff_diff.man: Improve documentation of \D'f...'.
3940 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3941 compensating \h'...' for \D'f ...' since the latter no longer moves
3943 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3945 2003-02-10 Werner LEMBERG <wl@gnu.org>
3947 Improve error messages for `x F' (and `F') commands.
3949 * src/include/error.h: Add declaration for
3950 `current_source_filename'.
3951 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3952 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3953 parameter for source file string.
3954 Updated all callers.
3956 * src/libs/libdriver/input.cc: Add `current_source_filename'.
3957 (remember_source_filename): New function.
3958 (parse_x_command <'F'>, do_file <'F'>): Use it.
3960 2003-02-09 Werner LEMBERG <wl@gnu.org>
3962 Make grotty not emit warnings about unknown colors more than
3965 * src/devices/grotty/tty.cc: Include `ptable.h'.
3966 (TTY_MAX_COLORS): Removed.
3967 (DEFAULT_COLOR_IDX): Defined to -1.
3968 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3969 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3970 Change `tty_colors' to be a ptable.
3971 First arg of `put_color' is now `char'.
3972 New functions `make_rgb_string' and `tty_color'.
3973 (tty_printer::tty_printer): Use `tty_color'.
3974 (tty_printer::color_to_idx): Return value is now `char'.
3977 * src/include/color.h (color): Add `print_color' member function.
3978 * src/libs/libgroff/color.cc (color::print_color): Implement it.
3980 2003-02-08 Werner LEMBERG <wl@gnu.org>
3984 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3987 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3988 assume that value has been allocated with `new[]', thus use
3989 `a_delete' for deallocation.
3991 * src/libs/libdriver/input.cc (get_integer_arg,
3992 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3995 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3996 * src/libs/libgroff/nametoindex.cc
3997 (character_indexer::named_char_index): Use `new <type>[1]'.
3999 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4001 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4002 (split_text): Use `a_delete'.
4004 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4007 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4008 harmless memory leak.
4009 (hyphen_trie::read_patterns_file): Initialize `buf'.
4010 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4011 Initialize `current_fill_color'and `current_glyph_color'.
4012 * src/roff/troff/glyphuni.cc
4013 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4014 * src/roff/troff/uniuni.cc
4015 (unicode_decompose_init::unicode_decompose_init): Ditto.
4016 * src/roff/troff/uniglyph.cc
4017 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4019 2003-01-26 Werner LEMBERG <wl@gnu.org>
4021 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4022 `access' before calling `unlink'.
4023 (do_file): Handle __EMX__.
4025 * src/include/nonposix.h: Handle __EMX__.
4027 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4028 (fontpath,tmacpath): Use it.
4030 Sorted alphabetically.
4032 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4034 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4037 2003-01-27 Werner LEMBERG <wl@gnu.org>
4039 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4040 New files, copied from gnulib.
4041 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4042 * configure.ac: Updated.
4043 * configure: Regenerated.
4045 * src/include/config.hin: Regenerated.
4046 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4047 Don't define `strcasecmp' as `strcmp'.
4048 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4049 Dont define `strncasecmp' as `strncmp'.
4051 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4054 2003-01-26 Werner LEMBERG <wl@gnu.org>
4056 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4059 2003-01-25 Werner LEMBERG <wl@gnu.org>
4061 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4063 2003-01-24 Werner LEMBERG <wl@gnu.org>
4065 Add US-english hyphenation exceptions (converted from Barbara
4066 Beeton's hyphenation exception log reports which appear irregularly
4069 * tmac/hyphen.us: Updated to latest version.
4070 * tmac/README: Updated.
4071 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4072 * tmac/troffrc: Load `hyphenex.us'.
4073 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4074 * doc/groff.texinfo: Updated.
4076 2003-01-23 Werner LEMBERG <wl@gnu.org>
4078 Improve hyphenation slightly. This is a first step in redesigning
4079 the hyphenation algorithm to make it more flexible (e.g. allowing
4080 kerns and ligatures between the hyphenation character and the
4081 following character -- while not used normally in English, other
4082 languages like German would benefit).
4084 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4085 assertion instead of if-clause.
4086 Let `get_hyphen_list' return the number of involved characters in
4087 the hyphenation pattern instead of computing it directly (which
4088 often yields too small values).
4089 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4090 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4093 2003-01-22 Werner LEMBERG <wl@gnu.org>
4095 Fixing a bug which caused groff to hang if the hyphenation exception
4096 dictionary tried to grow.
4098 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4099 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4100 pointer to dictionary.
4102 2003-01-20 Werner LEMBERG <wl@gnu.org>
4104 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4105 negative left italic correction.
4106 * src/utils/afmtodit/afmtodit.man: Document it.
4108 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4109 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4110 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4114 2003-01-16 Werner LEMBERG <wl@gnu.org>
4118 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4120 * src/preproc/refer/refer.man: Mention REFER environment variable.
4122 2003-01-05 Werner LEMBERG <wl@gnu.org>
4124 Similar to \[is], the square root glyph (\[sr]) and the square root
4125 extension glyph (\[radicalex]) are now text symbols. The new
4126 mathematical versions are called \[sqrt] and \[sqrtex],
4129 * font/devX*/S: Regenerated.
4130 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4131 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4132 * font/devdvi/EX, font/devdvi/S: Regenerated.
4133 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4134 * font/devlj4/generate/special.map: Add `sqrt'.
4135 * font/devlj4/S: Regenerated.
4136 * font/devps/generate/textmap: Add `sqrt'.
4137 * font/devps/S, font/devps/symbolmap: Regenerated.
4139 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4140 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4141 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4142 overlap horizontally.
4144 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4145 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4148 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4149 and `sqrtex' are overlapping glyphs.
4151 2003-01-04 Werner LEMBERG <wl@gnu.org>
4153 * font/devdvi/generate/texsy.map: Add `is'.
4154 * font/devps/symbolmap: Regenerated.
4155 * font/devdvi/*TC, MI, S: Regenerated.
4157 * tmac/dvi.tmac: Remove `is'.
4159 2003-01-03 Werner LEMBERG <wl@gnu.org>
4161 `is' is now a text symbol (only relevant for dvi). The math variant
4162 can be accessed with `integral'.
4164 * font/devX*/S: Regenerated.
4165 * font/devdvi/generate/texex.map: Remove `is'.
4166 * font/devdvi/EX: Updated.
4167 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4168 * font/devlj4/generate/special.map: Ditto.
4169 * font/devlj4/S: Regenerated.
4170 * font/devps/generate/textmap: Add `integral'.
4171 * font/devps/S: Regenerated.
4173 * tmac/dvi.tmac: Define `is'.
4175 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4177 * src/preproc/tbl/main.cc (process_format): Fix error message.
4179 2003-01-02 Werner LEMBERG <wl@gnu.org>
4181 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4182 * font/devps/textmap: Fix entries for `ne' and `nc'.
4183 * font/devps/symbolmap: Regenerated.
4185 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4186 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4187 `38', `58', `78', `-+', `|=', `nc', `ne'.
4189 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4190 Use `schar' for `aq'.
4191 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4192 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4193 * tmac/tty.tmac: Add `ne'.
4195 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4196 for fallback glyphs.
4198 2002-12-29 Werner LEMBERG <wl@gnu.org>
4202 * font/devX*/*: Regenerated.
4203 * font/devdvi/generate/ec.map: Remove `eq'.
4204 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4205 Assign `|=' to position 39.
4206 * font/devdvi/*EC, S: Regenerated.
4207 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4208 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4209 Assign `|=' to position 549.
4210 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4212 Add `uni2243' for `|='.
4214 * tmac/ec.tmac: Add `eq'.
4215 * tmac/dvi.tmac: Add `=~'.
4216 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4219 2002-12-21 Werner LEMBERG <wl@gnu.org>
4221 * font/devdvi/generate/tc.map: Remove `**'.
4222 * font/devdvi/*TC: Regenerated.
4223 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4225 * font/devutf8/NOTES: Updated.
4227 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4228 Don't give default parameter to `set_macro'.
4229 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4230 instead of `set_macro'.
4231 (charinfo::setx_macro): Implement it.
4232 (charinfo::set_macro): Don't change `mode'.
4234 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4235 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4236 * tmac/dvi.tmac: Define `!=' with `.schar'.
4238 2002-12-20 Werner LEMBERG <wl@gnu.org>
4240 * font/devX*/S: Regenerated.
4241 * font/devdvi/generate/ec.map: Remove `pl'.
4242 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4243 * font/devdvi/*{TC,EC}: Regenerated.
4244 * font/devhtml/R.proto: Add `-+'.
4245 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4246 * font/devlbp/*: Remove `or'.
4247 * font/devlj4/generate/special.map: Remove `or'.
4248 * font/devlj4/S: Regenerated.
4249 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4250 `seveneighths', `threeeighths'.
4252 Replace `minusplus' with `uni2213'.
4253 * font/devps/symbolmap: Regenerated.
4254 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4257 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4259 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4260 Call glyph_color and fill_color even if tcommand_flag isn't set.
4261 (make_node, node::add_char): Check not ci->is_fallback but
4264 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4265 * tmac/ec.tmac: Add .rchar entry for `f/'.
4266 Don't remove `12', `14', `34'.
4267 Define `pl' to be always roman.
4268 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4269 Define `18', `38', `58', `78'.
4270 * tmac/tty.tmac: Add `-+'.
4271 * tmac/dvi.tmac: Define `f/'.
4272 (dvi-frac): Use `f/'.
4273 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4274 Define `18', `38', `58', `78'.
4276 2002-12-15 Colin Watson <cjwatson@debian.org>
4278 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4280 2002-12-10 Werner LEMBERG <wl@gnu.org>
4282 Add glyph `tno', a textual variant of `no'.
4284 * font/devX*/*: Regenerated.
4285 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4286 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4287 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4288 * font/devdvi/*: Regenerated.
4289 * font/devlbp/*: Add `tno'.
4290 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4291 * font/devlj4/*: Regenerated.
4292 * font/devps/generate/textmap: Replace `no' with `tno'.
4293 * font/devps/generate/symbolchars: Add `no'.
4294 * font/devps/*: Regenerated.
4296 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4298 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4299 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4303 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4304 Add definition for `sd'.
4305 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4307 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4309 2002-12-08 Werner LEMBERG <wl@gnu.org>
4311 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4312 mode to avoid rounding errors.
4313 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4315 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4316 src/roff/troff/troff.man: Improve documentation of -T.
4318 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4320 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4321 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4323 2002-12-06 Werner LEMBERG <wl@gnu.org>
4325 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4326 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4327 Scaling Euro.sansserif glyphs down to have the same height as
4329 Removed unnecessary points; added some extrema.
4331 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4334 2002-12-04 Werner LEMBERG <wl@gnu.org>
4336 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4337 and `Euro.symbol.bold.slanted'.
4338 Improve some glyph offsets and widths.
4339 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4341 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4343 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4346 * tmac/europs.tmac: Updated to new glyph indices.
4347 Use Euro.symbol for font familiy `A'.
4349 * doc/groff.texinfo: Minor improvements.
4351 2002-12-02 Werner LEMBERG <wl@gnu.org>
4353 * font/devdvi/generate.tc.map: s/%O/%0/.
4354 * font/devdvi/*TC: Regenerated.
4356 * src/roff/troff/div.cc (init_div_requests): Sorted.
4358 * tmac/dvi.tmac: Remove `Ye'.
4359 * tmac/ec.tmac: Remove `Ye'.
4360 Add .rchar entry for `de'.
4362 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4363 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4366 2002-11-30 Werner LEMBERG <wl@gnu.org>
4368 Add PS font for various Euro glyphs.
4370 * font/devps/generate/freeeuro.sfd: New master font file for
4372 * font/devps/generate/sfdtopfa.pe: New conversion script for
4374 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4375 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4376 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4378 * font/devps/EURO: Generated from `freeeuro.afm'.
4379 * font/devps/download: Add `freeuro.pfa'.
4380 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4383 * tmac/europs.tmac: New file.
4384 * tmac/ps.tmac: Include `europs.tmac'.
4385 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4387 2002-11-29 Werner LEMBERG <wl@gnu.org>
4389 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4390 * font/devdvi/S: Regenerated.
4391 * font/devhtml/R.proto: Fix `CR' and `ci'.
4393 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4395 * font/devps/symbolmap: Regenerated.
4396 * font/devutf8/R.proto: Fix `CR' and `ci'.
4398 * font/devutf8/NOTES: Updated.
4400 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4403 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4405 * tmac/dvi.tmac: Add `lh' and `rh'.
4406 * tmac/Xps.tmac: Fix `lh' and `rh'.
4407 * tmac/X.tmac: Add `OK'.
4408 * tmac/lj4.tmac: Ditto.
4410 2002-11-24 Werner LEMBERG <wl@gnu.org>
4412 * font/devX*/S: Regenerated.
4413 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4414 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4415 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4416 * font/devdvi/S: Regenerated.
4417 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4418 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4419 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4420 `bracketleftbt', `bracketrighttp', `bracketrightex',
4421 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4422 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4423 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4425 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4426 * font/devutf8/NOTES: Updated.
4427 * font/devlj4/generate/special.map: Add glyph `braceex'.
4428 * font/devlj4/S: Regenerated.
4430 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4432 2002-11-14 Werner LEMBERG <wl@gnu.org>
4434 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4437 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4439 * doc/texinfo.tex: New version from texinfo 4.3.
4440 * doc/groff.texinfo: Updated for texinfo 4.3.
4441 Use @tie{} where appropriate.
4442 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4443 * font/devdvi/generate/tc.map: Remove `rn'.
4444 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4445 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4447 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4448 font/devX75-12/*: Regenerated.
4450 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4451 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4452 Improve definition of `an'.
4453 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4455 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4456 * tmac/X.tmac: Add definition for `or'.
4457 * tmac/Xps.tmac: Undo change 2002-11-05.
4458 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4460 2002-11-11 Werner LEMBERG <wl@gnu.org>
4462 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4465 2002-11-10 Werner LEMBERG <wl@gnu.org>
4467 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4468 defines a glyph which is searched after the check for fonts declared
4469 with `.special' (and before the check for all mounted special
4470 fonts). `fschar' defines a glyph for a particular font which is
4471 searched after the check for fonts declared with `.fspecial' (and
4472 before the check for fonts declared with `.special'). `rfschar'
4473 removes glyphs defined with `fschar'.
4475 * src/roff/troff/token.h (char_mode): New enum.
4476 Declare do_define_character.
4477 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4479 (charinfo::is_fallback): Updated.
4480 (charinfo::is_special): New method.
4481 * src/roff/troff/input.cc (do_define_character): Add and use
4482 optional second parameter used as a prefix for font-specific glyph
4484 (define_character, define_fallback_character): Updated.
4485 (define_special_character): New function.
4486 (init_input_requests): Add `schar'.
4487 (charinfo::charinfo, charinfo::set_macro): Updated.
4488 * src/roff/troff/node.cc: Include `stringclass.h'.
4489 (make_glyph_node): Handle special glyphs defined with `.schar' and
4491 (define_font_special_character, remove_font_special_character): New
4493 (init_node_requests): Sorted.
4494 Add `fschar' and `rfschar'.
4495 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4496 Document new requests.
4498 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4499 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4501 2002-11-08 Werner LEMBERG <wl@gnu.org>
4503 Added new font `SC' (cmtex10) to devdvi.
4505 * devdvi/generate/Makefile (FONTS): Add `SC'.
4507 * devdvi/generate/textex.map: New map file for cmtex.
4509 * devdvi/Makefile.sub (DEVFILES): Updated.
4510 * tmac/dvi.tmac: Add fspecial entries for SC.
4511 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4512 found before `S' since the font position of `SC' is lower due to the
4513 gaps in DESC's `font' line.
4514 * tmac/ec.tmac: Add a `special' call.
4517 * font/devhtml/R.proto: Remove double entry for `ti'.
4518 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4519 * tmac/tty-char.tmac: Remove entry for `bq'.
4520 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4521 * tmac/ec.tmac: Don't remove `aq' glyph.
4522 * tmac/X.tmac: Fix entry for `em'.
4523 Add entries for `fo' and `fc'.
4524 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4526 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4527 documentation of `special' and `fspecial' requests.
4529 2002-11-05 Werner LEMBERG <wl@gnu.org>
4531 * font/devascii/R.proto, font/devcp1047/R.proto,
4532 font/devlatin1/R.proto: Remove entry for `.i'.
4533 * font/devdvi/generate/textt.map: Add entry for `ad'.
4534 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4535 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4536 We need this for getting kerning values to compose `/l' and `/L'.
4537 * font/devdvi: Regenerated font definition files for CM fonts.
4538 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4539 * font/devutf8/R.proto: Ditto.
4540 Remove double entry for `ti'.
4542 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4543 for (groff) ligatures, `la', and `ra'.
4544 Add "'C", "'c", `IJ', and `ij'.
4545 Remove double entry for `ti'.
4546 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4548 Add "'C", "'c", `IJ', and `ij'.
4549 Fix entries for (groff) ligatures, `la', and `ra'.
4551 * tmac/ps.tmac (ps-achar): New macro.
4552 Define "'c" and "'C".
4553 * tmac/tty.tmac: Add entry for `.i'.
4554 * tmac/X.tmac (X-achar): New macro.
4555 Define "'c", "'C", and `:Y'.
4556 Add entries for `IJ' and `ij'.
4557 * tmac/Xps.tmac (Xps-achar): New macro.
4558 Define "'c" and "'C".
4559 Add entries for `IJ' and `ij'.
4560 * tmac/lbp.tmac (lbp-achar): New macro.
4561 Add fallback characters for all groff ligatures and many other
4563 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4564 Add entries for `/l' and `/L'.
4565 Define "'c" and "'C".
4566 Add entries for `IJ' and `ij'.
4568 2002-11-02 Larry Kollar <kollar@alltel.net>
4570 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4572 2002-11-02 Werner LEMBERG <wl@gnu.org>
4574 Adding support for composite glyphs: \[xxx yyy ...] and the
4575 `composite' request.
4577 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4578 to Unicode-based glyph names.
4579 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4580 glyph names to groff glyph names.
4581 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4582 Unicode-based glyph names.
4583 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4584 for handling Unicode glyph names.
4585 * src/roff/troff/input.cc: Include unicode.h.
4586 (composite_glyph_name): New function.
4587 (token::next) <'['>: Handle Unicode glyph names and composite
4589 (composite_dictionary): New dictionary for the `composite' request.
4590 (composite_request): Implement `composite' request.
4591 (init_input_requests): Add `composite'.
4592 Alphabetically sorted.
4593 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4595 (init_env_requests): Alphabetically sorted.
4596 Removed `tas' and `tar' (already commented out).
4597 * src/roff/troff/Makefile.sub: Updated.
4599 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4601 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4604 2002-10-29 Werner LEMBERG <wl@gnu.org>
4606 Fix computation of .trunc register. Additionally, its value (and
4607 the value of the .ne register) is now always set before entering the
4610 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4611 `needed_space' before calling `space'.
4612 (top_level_diversion::space): Remove special code for 'sp before the
4614 Call `begin_page' with the discarded space as a parameter.
4615 (top_level_diversion::begin_page): Add optional parameter to set
4617 * src/roff/troff/div.h: Updated.
4619 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4622 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4623 (LP): Remove superfluous call to `br'.
4624 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4625 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4627 2002-10-26 Werner LEMBERG <wl@gnu.org>
4629 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4630 (doc-setup-header): Don't set page register `%'.
4631 * tmac/doc-nroff: Remove variable `C'.
4632 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4633 (doc-setup-header): Don't set page register `%'.
4635 * tmac/doc-common (doc-header): Call `ns'.
4636 (doc-paragraph): Protect .sp with .br so that it survives traps
4637 possibly set by the user.
4638 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4640 * tmac/doc*: Replace ' with . for consistency if no effect.
4642 2002-10-26 Werner LEMBERG <wl@gnu.org>
4644 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4645 so that it survives traps possibly set by the user.
4647 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4648 (troff_output_file::set_font): Call flush_tbuf if necessary.
4649 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4650 flush_tbuf and do_motion only if necessary.
4651 (troff_output_file::start_special,
4652 troff_output_file::put_char_width, troff_output_file::put_char,
4653 troff_output_file::draw): Updated.
4654 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4655 vmotion_node::tprint): Undo change 2002-10-23.
4657 2002-10-25 Werner LEMBERG <wl@gnu.org>
4659 * tmac/www.tmac (DC): Fix case of overlapping images.
4661 2002-10-23 Werner LEMBERG <wl@gnu.org>
4663 * src/roff/troff/node.cc (troff_output_file::fill_color,
4664 troff_output_file::glyph_color): Set current color before testing
4666 (troff_output_file::put_char_width, troff_output_file::put_char,
4667 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4669 (troff_output_file::file_color, troff_output_file::glyph_color):
4671 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4672 vmotion_node::tprint): Move first, then call fill_color.
4674 2002-10-20 Werner LEMBERG <wl@gnu.org>
4676 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4677 possible to use multiple main macro packages.
4679 2002-10-19 Werner LEMBERG <wl@gnu.org>
4681 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4682 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4683 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4685 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4686 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4688 2002-10-16 Werner LEMBERG <wl@gnu.org>
4690 * NEWS, doc/webpage.ms: Updated.
4692 2002-10-14 Werner LEMBERG <wl@gnu.org>
4694 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4695 troff_output_file::put_char, troff_output_file::fill_color,
4696 troff_output_file::glyph_color): Handle case where color pointer
4699 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4701 Add the new -r option to grotty. It is similar to the -i option
4702 except it tells grotty(1) to use the "reverse video" attribute to
4703 render italic fonts.
4705 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4706 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4707 (tty_printer::make_underline, tty_printer::put_color,
4708 tty_printer::end_page): Use it.
4709 (main): Add -r switch.
4711 * src/devices/grotty/grotty.man: Document it.
4713 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4715 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4716 cast to `unsigned char' to properly read patterns with 8bit
4719 2002-10-08 Werner LEMBERG <wl@gnu.org>
4721 * REVISION: Increased to 2.
4723 Version 1.18.1 released
4724 =======================
4726 2002-10-08 Werner LEMBERG <wl@gnu.org>
4728 * doc/webpage.ms, NEWS: Updated.
4730 2002-10-07 Werner LEMBERG <wl@gnu.org>
4732 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4733 suppress additional whitespace after the header.
4735 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4738 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4740 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4742 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4743 (Dt): Use it to improve language localization (especially Russian
4746 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4748 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4749 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4751 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4753 Call `picurve' for BSPLINE.
4754 (HGPrintElt): Handle BSPLINE.
4755 * src/preproc/grn/README: Document it.
4757 2002-10-03 Werner LEMBERG <wl@gnu.org>
4759 * src/roff/troff/node.cc (break_char_node::col): New variable.
4760 Updated constructor.
4761 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4763 (space_node::space_node): Remove assertion.
4764 (break_char_node::add_self): Pass color argument to space node.
4765 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4767 * src/roff/troff/env.cc (environment::do_break,
4768 environment::add_padding): Ditto.
4770 2002-10-02 Werner LEMBERG <wl@gnu.org>
4772 Redesigning color support in troff. Colors are no longer
4773 represented as separate nodes but are now part of glyph nodes and
4774 friends. This fixes the current formatting misbehaviour due to the
4775 changes introduced on 2002-09-20. Some extra code is necessary for
4776 proper grotty support: Without adding color variables to
4777 space-related nodes, the background color would be changed too late.
4779 * src/roff/troff/node.h, src/roff/troff/node.cc:
4780 s/current_pagecolor/current_fill_color/.
4781 s/current_glyphcolor/current_glyph_color/.
4782 (glyph_color_node, fill_color_node): Removed.
4783 (node::get_glyph_color, node::get_fill_color): New virtual member
4785 (space_node::col): New variable.
4786 Updated constructors of space_node and derived classes accordingly.
4787 (hmotion_node::col): New variable.
4788 Updated constructors of hmotion_node and space_char_hmotion_node
4790 (vmotion_node::col): New variable.
4791 Updated constructor accordingly.
4792 (draw_node::gcol, draw_node::fcol): New variables.
4793 Updated constructor accordingly.
4794 (special_node::gcol, special_node::fcol): New variables.
4795 Updated constructors accordingly.
4796 (troff_output_file::put_char, troff_output_file::put_charwidth,
4797 troff_output_file::draw): Set glyph and fill color.
4798 (troff_output_file::start_special): Set glyph and fill color.
4799 Always set current font.
4800 (troff_output_file::fill_color, troff_output_file::glyph_color):
4801 Don't call `do_motion'.
4802 (glyph_node::gcol, glyph_node::fcol): New variables.
4803 Updated constructors of glyph_node and ligature_node accordingly.
4804 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4806 (glyph_node::merge_glyph_node,
4807 kern_pair_node::add_discretionary_hyphen,
4808 node::add_discretionary_hyphen): Updated.
4809 (break_char_node::merge_self): Updated.
4810 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4811 vmotion_node::tprint): Handle color.
4812 (make_glyph_node, make_node, node::add_char): Updated.
4814 * src/roff/troff/env.cc (environment::space_newline,
4815 environment::space, environment::output_line, environment::do_break,
4816 environment::make_tab_node, environment::add_padding, title):
4818 (environment_switch, environment_copy): Don't add color nodes.
4820 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4822 (token::next): Updated.
4823 \m and \M now are as transparent as \s.
4824 (process_input_stack, token::add_to_node_list, token::process,
4825 read_draw_node): Updated.
4826 (charinfo_to_node_list): Don't add color nodes.
4828 * doc/groff.texinfo: Updated.
4830 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4832 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4835 2002-09-27 Colin Watson <cjwatson@debian.org>
4837 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4839 2002-09-23 Werner LEMBERG <wl@gnu.org>
4841 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4843 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4844 (linewidth_factor): New global variable.
4845 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4847 (long_options): Add -w/--linewidth option.
4849 (main): Handle -w option to set linewidth_factor.
4850 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4853 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4855 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4857 Fixed a bug in the line thickness setting code.
4859 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4861 (lbp_printer::set_line_thickness): Pass environment as second
4863 Implement it actually.
4864 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4865 and `set_line_thickness, depending on the current font size.
4867 2002-09-21 Werner LEMBERG <wl@gnu.org>
4869 Some Debian patches.
4871 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4872 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4875 2002-09-20 Werner LEMBERG <wl@gnu.org>
4877 * configure: Regenerated with autoconf 2.54.
4879 2002-09-20 Werner LEMBERG <wl@gnu.org>
4881 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4883 Rename cur_fill_color to fill_color.
4884 * src/roff/troff/env.cc: Updated.
4886 2002-09-20 Werner LEMBERG <wl@gnu.org>
4888 * src/roff/troff/env.cc (title): Copy color status after processing
4890 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4891 fill color nodes to reset colors properly.
4893 * tmac/www.tmac (DC): Fix color handling.
4895 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4896 * doc/groff.texinfo: Fixing documentation of `tl' request.
4897 * doc/webpage.ms: Updated.
4899 2002-09-19 Werner LEMBERG <wl@gnu.org>
4901 * src/roff/troff/env.cc (environent_switch, environment_copy):
4902 Emit glyph and fill color nodes to initialize colors properly.
4904 2002-09-17 Colin Watson <cjwatson@debian.org>
4906 * src/roff/troff/env.cc (environment::set_glyph_color,
4907 environment::set_fill_color): Fix typo which prevented \m[] work
4910 2002-09-17 Werner LEMBERG <wl@gnu.org>
4912 Add left and right italic correction to non-slanted PS fonts. This
4913 is an experimental feature to improve image rendering of grohtml.
4915 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4916 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4917 * font/devps/*: All non-slanted fonts regenerated.
4920 2002-09-16 Werner LEMBERG <wl@gnu.org>
4922 Add a site-specific font directory.
4924 * Makefile.in (localfontdir, legacyfontdir): New variables.
4925 (fontpath): Use them.
4926 (MDEFINES, uninstall_dirs): Updated.
4927 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4928 Remove `FONTPATH' and `MACROPATH'.
4930 * src/roff/troff/troff.man, NEWS: Updated.
4931 * doc/groff.texinfo (Font Directories): New section.
4934 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4935 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4936 src/preproc/grn/grn.man: Minor fixes.
4938 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4939 Remove unused variable.
4941 2002-09-11 Werner LEMBERG <wl@gnu.org>
4943 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4944 * man/groff_out.man: Fix documentation of 'N'.
4946 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4948 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4949 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4951 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4952 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4953 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4954 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4955 PRE_TAG>: Call `begin' with `FALSE'.
4957 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4959 * src/libs/libgroff/string.cc (string::extract): Fix position of
4960 terminating null byte.
4962 2002-09-08 Werner LEMBERG <wl@gnu.org>
4964 Add global option `nospaces' to tbl so that leading and trailing
4965 spaces in data items are ignored.
4967 * src/libs/libgroff/string.cc (string::remove_spaces): New member
4968 function to remove leading and trailing spaces.
4969 * src/include/stringclass.h: Updated.
4971 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4973 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4975 Fix typo in error messages.
4976 (process_data): Implement `nospaces' option.
4977 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4979 2002-09-07 Werner LEMBERG <wl@gnu.org>
4981 * src/include/config.hin: Add `HAVE_ISATTY'.
4982 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4984 * src/libs/libgroff/tmpname.cc: Include `time.h'.
4985 * src/libs/libdriver/input.cc (Char): Add `operator==' and
4986 `operator!=' for `char'.
4987 * doc/groff.texinfo: Replace @ifnottex block for top node with
4990 2002-09-06 Werner LEMBERG <wl@gnu.org>
4992 * doc/Makefile.in (.texinfo.html): Add -I switch.
4993 * doc/groff.texinfo: Add @ifnottex block for top node to make
4994 translation to HTML work.
4996 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
4998 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4999 (get_papersize, determine_vertical_offset): Removed.
5000 (char_buffer::do_image): Always specify letter size.
5002 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5005 2002-09-05 Werner LEMBERG <wl@gnu.org>
5007 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5008 default indentation.
5010 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
5012 * src/preproc/html/pre-html.cc (imageList::createPage): Use
5014 (generateImages): Clean up push-back buffer.
5016 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5018 * doc/groff.texinfo: Minor fixes.
5020 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5022 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5023 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5025 (determine_vertical_offset): Use LETTER_LENGTH.
5026 (createPage): Moved to ...
5027 (imageList::createPage): This.
5028 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5029 (imageList::getMaxX): New function.
5030 (createImage): Moved to ...
5031 (imageList::createImage): This.
5032 (imageList::createImages): New function.
5033 (generateImages): Read `maxx' directly.
5035 (scanArguments): Don't specify `gsPaper' for `-o'.
5036 (makeTempFiles): Call `xtmpfile' with the last argument set to
5039 2002-08-24 Werner LEMBERG <wl@gnu.org>
5041 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5042 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5043 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5044 * src/preproc/html/pushback.cc: Include nonposix.h.
5045 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5048 2002-08-23 Werner LEMBERG <wl@gnu.org>
5050 Use $(OBJEXT) for the object file extension.
5052 * Makefile.comm (.SUFFIXES): Add .obj.
5053 (.cc.obj, .c.obj): New implicit rules.
5054 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5055 (MDEFINES): Add EXEEXT and OBJEXT.
5056 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5058 2002-08-22 Werner LEMBERG <wl@gnu.org>
5060 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5062 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5064 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5066 (html_printer::update_min_max, html_printer::add_table_end): New
5068 (html_printer::lookahead_for_tables): Use them.
5069 Reset page offset correctly.
5070 (html_printer::~html_printer): Add creation of creator comment up.
5072 2002-08-20 Werner LEMBERG <wl@gnu.org>
5074 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5075 * man/groff_tmac.man: Fix typos.
5076 * man/groff_font.man: Minor reordering.
5077 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5079 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5081 Avoid endless loops while scanning for tables.
5083 * src/devices/grohtml/post-html.cc (list::insert): Set
5085 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5087 Return immediately if that argument is NULL.
5088 (html_printer::calc_nf): Don't test if `g' is NULL.
5089 (html_printer::lookahead_for_tables): Use
5090 `glyphs.move_right_get_data'.
5091 Don't test if `g' is NULL.
5093 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5095 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5097 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5099 (char_block::char_block): Allocate `buffer'.
5100 (char_buffer::add_string): Use it.
5102 2002-08-15 Werner LEMBERG <wl@gnu.org>
5104 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5105 src/devices/grodvi/grodvi.man: Document default line thickness.
5107 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5109 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5112 2002-08-14 Werner LEMBERG <wl@gnu.org>
5114 * doc/webpage.ms: Updated.
5116 2002-08-09 Werner LEMBERG <wl@gnu.org>
5118 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5121 2002-08-08 Aaron Campbell <aaron@monkey.org>
5123 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5126 2002-08-08 Werner LEMBERG <wl@gnu.org>
5128 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5131 Don't push back a space but a newline onto the stack.
5133 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5135 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5138 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5139 html_printer::start_font): Handle them.
5140 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5142 (html_text::do_bold): Don't reset italic and tt.
5143 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5144 * font/devhtml/DESC.proto: Add those fonts.
5145 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5147 2002-08-07 Werner LEMBERG <wl@gnu.org>
5149 * MORE.STUFF: Added gpresent.
5151 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5152 whitespace before printing the logging message.
5154 2002-07-31 Colin Watson <cjwatson@debian.org>
5156 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5157 Initialize `n' to zero. This fixes a segfault on ARM.
5159 2002-07-30 Werner LEMBERG <wl@gnu.org>
5161 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5163 2002-07-29 Werner LEMBERG <wl@gnu.org>
5165 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5168 2002-07-28 Colin Watson <cjwatson@debian.org>
5170 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5172 (html_printer::html_printer): Initialize `pointsize'.
5174 2002-07-26 Werner LEMBERG <wl@gnu.org>
5176 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5178 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5179 (gnu.eps): Add -rle switch to pnmtops.
5180 (distfiles): Add gnu.eps and gnu.png.
5182 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5184 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5187 2002-07-24 Werner LEMBERG <wl@gnu.org>
5189 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5190 ' \+' but ' *' for sed.
5191 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5193 2002-07-23 Werner LEMBERG <wl@gnu.org>
5195 * doc/groff.texinfo: Document `papersize' keyword.
5196 * NEWS, man/groff_font.man: Updated.
5198 2002-07-23 Colin Watson <cjwatson@debian.org>
5200 Extend papersize keyword to accept more than a single entry. The
5201 first valid will be used.
5203 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5204 (font::scan_papersize): Really skip final newline.
5205 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5207 2002-07-23 Werner LEMBERG <wl@gnu.org>
5209 * configure.ac: Test for isatty.
5210 * configure: Regenerated.
5211 * src/include/posix.h: Check HAVE_ISATTY.
5212 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5213 * src/utils/lookbib/lookbib.cc: Include posix.h.
5214 Don't declare isatty.
5216 2002-07-21 Werner LEMBERG <wl@gnu.org>
5218 * NEWS: Add `output' request.
5220 * REVISION: Increased to 1.
5222 Version 1.18.0 released
5223 =======================
5225 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5227 Allow internal glyph indices > 0xFF in grohtml for input characters.
5229 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5231 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5232 Updated all callers.
5233 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5234 (html_printer): Updated.
5236 2002-07-19 Werner LEMBERG <wl@gnu.org>
5238 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5239 * font/devutf8/R.proto: Adding some missing glyphs.
5240 * font/devutf8/NOTES: Updated.
5242 * tmac/dvi.tmac: Add more composite glyphs.
5243 * tmac/html.tmac: Updated.
5245 * man/groff_char.man: Add `sum' and `product' entities.
5249 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5251 Improved table, tab, and indenting support.
5253 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5254 string_iterator::suppress_newline_flag): Removed. Updated all
5255 function which have used it.
5257 * src/roff/troff/env.cc: Include `input.h'.
5258 (environment::add_node): Accept 0 as parameter.
5259 (environment::add_html_tag): Add `force' parameter.
5260 Updated all callers.
5261 (environment::add_html_tag_tabs): Ditto.
5262 For the moment, support left-aligned tabs only.
5263 (environment::make_html_tag): New function.
5264 (fill, no_fill): Set .br html tag additionally.
5265 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5266 (environment::add_html_tag_eol): Removed.
5267 (tab_stops::distance_to_next_tab): Add variant for handling
5269 (environment::distance_to_next_tab): Ditto.
5270 Updated all callers.
5271 (environment::handle_tab): Handle tabs for html.
5273 * src/roff/troff/env.h: Updated.
5275 * src/roff/troff/div.cc: Updated all callers of
5276 `environment::add_html_tag'.
5278 * src/devices/grohtml/html-table.cc,
5279 src/devices/grohtml/html-table.h: New files.
5281 * src/devices/grohtml/html-text.cc (html_text): New members
5282 `blank_para' and `start_space'.
5283 (html_text::issue_tag): Don't emit TABLE_TAG.
5284 Handle indentation for PRE_TAG and P_TAG.
5285 (html_text::end_tag): Updated.
5286 (html_text::table_is_void, html_text::issue_table_begin,
5287 html_text::issue_table_end): Removed.
5288 (html_text::do_push): Simplified.
5289 [DEBUGGING]: Small fix.
5290 (html_text::push_para): Add new parameter for indentation; updated
5293 (html_text::do_indent, html_text::do_table, html_text::done_table,
5294 html_text::is_in_table): Removed.
5295 (html_text::do_pre): Handle P_TAG also.
5296 (html_text::shutdown): Handle p->indent.
5297 (html_text::check_emit_text): Simplified.
5298 (html_text::do_emittext): Reset `blank_para'.
5299 (html_text::do_para): Add new parameter for indentation; updated
5301 (html_text::remove_indent): New function.
5302 (html_text::do_space): Handle verbatim text properly.
5303 (html_text::ever_emitted_text, html_text::starts_with_space,
5304 html_text::remove_para_align): New functions.
5305 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5307 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5310 * src/devices/grohtml/post-html.cc: Include html-table.h.
5311 (INDENTATION): Removed.
5312 (text_glob): Added many `is_<foo>' functions.
5313 Added table description `tab'.
5314 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5316 (list): Add `insert' and `move_to' member functions.
5317 (page): Add `insert_tag' member function.
5318 (page::dump_page) [DEBUG_TABLES]: Improved.
5319 (html_printer): Add `table' and `max_linelength' elements.
5320 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5321 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5322 `remove_tabs', `remove_courier_tabs'.
5323 (html_printer::emit_raw): Handle indentation.
5324 (html_printer::do_center, html_printer::write_header): Updated.
5325 (html_printer::is_courier_until_eol): Check for tag.
5326 (html_printer::do_linelength): Handle max_linelength.
5327 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5329 (html_printer::do_tempindent): Updated.
5330 (html_printer::do_indentedparagraph): Removed.
5331 (html_printer::do_indent): Simplified.
5332 (html_printer::do_eol): Use `ever_emitted_text'.
5333 (html_printer::do_flush, html_printer::do_links): Don't call
5335 (html_printer::do_break): Handle end_tempindent.
5336 (html_printer::troff_tag): Get argument.
5338 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5339 (html_printer::flush_page): Call `lookahead_for_tables'.
5340 Don't call `done_table'.
5341 (html_printer::add_to_sbuf): Always call do_indent.
5343 * src/devices/grohtml/Makefile.sub: Updated.
5345 * tmac/an-old.tmac (TP): Don't handle html device specially.
5346 (an-do-tag-html): New function which will be used instead of
5347 `an-do-tag' if html device is used.
5349 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5351 * tmac/s.tmac (@IP): Don't handle html device specially.
5352 (@IP-html): New function which will be used instead of `@IP' if
5353 html device is used.
5355 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5356 is a hack which will eventually vanish again.
5357 (PIMG): Handle `-C' option correctly if not html.
5360 2002-07-17 Werner LEMBERG <wl@gnu.org>
5362 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5364 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5366 * contrib/pic2graph/pic2graph.*: Use convert(1).
5367 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5369 2002-07-14 Bernd Warken <bwarken@mayn.de>
5371 * tmac/groff_trace.man: New file.
5372 * tmac/Makefile.sub: Updated.
5375 2002-07-13 Werner LEMBERG <wl@gnu.org>
5377 * src/roff/groff/groff.man: Add some cross references.
5379 2002-07-12 Werner LEMBERG <wl@gnu.org>
5381 * src/roff/troff/input.cc (substring_request): Add warnings for
5382 string indices out of range.
5384 2002-07-11 Werner LEMBERG <wl@gnu.org>
5386 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5387 * font/devdvi/*EC: Regenerated.
5389 2002-07-10 Bernd Warken <bwarken@mayn.de>
5391 * man/groff_char.man: Updated and extended.
5393 2002-07-10 Werner LEMBERG <wl@gnu.org>
5395 * src/roff/troff/input.cc (length_macro): Renamed to...
5396 (length_request): This.
5397 Move call of `tok.next()' to the very end, otherwise the register
5398 value hasn't been updated yet.
5399 (init_input_requests): Updated.
5401 2002-07-09 Werner LEMBERG <wl@gnu.org>
5403 * src/roff/troff/input.cc (substring_macro): Renamed to...
5404 (substring_request): This.
5405 (init_input_requests): Updated.
5406 * src/roff/troff/request.h: Updated.
5408 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5410 * src/roff/grog/grog.sh: Fix typo.
5412 2002-07-08 Werner LEMBERG <wl@gnu.org>
5414 * win32-diffs: Updated.
5416 Handle `papersize' keyword properly in DESC.
5418 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5420 Updated all callers.
5421 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5423 * src/include/paper.h: Updated.
5425 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5426 Other minor C syntax fixes.
5427 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5428 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5430 (lbp_printer::lbp_printer): Pass three arguments.
5431 Set paper dimensions properly.
5432 (make_printer, main): Updated.
5433 (handle_unknown_desc_command): Fix error messages.
5434 (main): Handle papersize keyword in DESC properly.
5436 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5438 (lbp_printer::lbp_printer): Pass an argument.
5439 Set paper_size properly.
5440 (handle_unknown_desc_command): Removed.
5441 (make_printer, main): Updated.
5442 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5444 * man/groff_font.man, NEWS: Updated.
5446 2002-07-07 Werner LEMBERG <wl@gnu.org>
5448 Integrated eqn2graph, contributed by Eric S. Raymond.
5450 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5452 * Makefile.in, NEWS: Updated.
5454 2002-06-04 Werner LEMBERG <wl@gnu.org>
5456 Changing the substring request to make it fit better with other
5457 string manipulation functions in other programming languages:
5458 Index 0 is now the first character in the string, and index -1
5459 indicates the last character. Since this request didn't work
5460 properly anyway in the last release, it doesn't harm too much to
5463 * src/roff/troff/input.cc (substring_macro): Use loops to get
5464 the real string length (ignoring COMPATIBLE_SAVE and
5465 COMPATIBLE_RESTORE) and offsets.
5466 Implement change described above.
5468 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5469 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5471 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5473 2002-06-03 Werner LEMBERG <wl@gnu.org>
5475 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5476 COMPATIBLE_RESTORE are completely ignored.
5478 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5480 (macro): `length' field renamed to `len'.
5481 Added new field `empty_macro' (1 if macro is empty), to be used
5482 instead of checking `len'.
5483 Updated all callers.
5484 (macro::empty): Updated.
5485 (macro::length, macro::set, macro::get): New functions.
5486 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5488 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5489 COMPATIBLE_RESTORE pairs.
5490 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5491 * src/roff/troff/request.h: Updated.
5493 * doc/groff.texinfo: Document .chop's behaviour better.
5495 2002-06-02 Werner LEMBERG <wl@gnu.org>
5497 * doc/pic.ms: Fix documentation for the addition of positions.
5499 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5501 2002-06-29 Werner LEMBERG <wl@gnu.org>
5503 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5505 * src/roff/troff/input.cc (have_string_arg): New global variable.
5506 (read_mode): New enumeration.
5507 (read_escape_name): Use it. Update all calls.
5508 (read_long_escape_name): Use it. Update all calls.
5509 Set have_string_arg if appropriate.
5510 (get_char_for_escape_name): Add parameter for handling space
5512 (interpolate_string_with_args, decode_string_args): New functions.
5513 (get_copy, token::next): Call it if necessary.
5514 (interpolate_string): Fix error message.
5516 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5519 2002-06-24 Bernd Warken <bwarken@mayn.de>
5521 * man/groff_tmac.man: Updated and extended.
5523 2002-06-24 Werner LEMBERG <wl@gnu.org>
5525 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5527 2002-06-23 Werner LEMBERG <wl@gnu.org>
5529 * doc/pic.ms: Improve documentation of composite block objects.
5531 2002-06-22 Werner LEMBERG <wl@gnu.org>
5533 * src/roff/troff/input.cc (init_registers): Add three registers
5534 `seconds', `minutes', and `hours' to hold the current time.
5536 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5539 2002-06-20 Werner LEMBERG <wl@gnu.org>
5541 Make \X accept both `\ ' and `\~', converting them to single space
5544 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5545 (token::unstretchable_space): New inline function.
5546 * src/roff/troff/input.cc (token::next, token::delimiter,
5547 token::description, token::add_to_node_list, token::process): Handle
5548 TOKEN_UNSTRETCHABLE_NODE.
5549 (encode_char): Handle tok.stretchable_space and
5550 tok.unstretchable_space.
5552 * NEWS, doc/groff.texinfo: Document it..
5554 2002-06-19 Werner LEMBERG <wl@gnu.org>
5556 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5558 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5559 keyword to enable/disable SGR output.
5560 (tty_printer::change_fill_color): New function.
5561 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5563 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5566 2002-06-18 Werner LEMBERG <wl@gnu.org>
5568 Add a `color' request and a `.color' register to control usage of
5571 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5572 (color_flag): This (which is the inverse).
5573 (activate_color): New function.
5574 (main, init_input_requests): Updated.
5575 * src/roff/troff/troff.h, src/roff/troff/node.cc
5576 (troff_output_file::fill_color, troff_output_file::glyph_color):
5579 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5580 Document the changes.
5582 2002-06-17 Colin Watson <cjwatson@debian.org>
5584 Circumvent bug in autoconf 2.53 regarding top_builddir.
5586 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5587 * Makefile.in, doc/Makefile.in:
5588 s/@top_builddir@/@groff_top_builddir@/.
5589 * configure: Regenerated (with autoconf 2.53).
5591 2002-06-17 Werner LEMBERG <wl@gnu.org>
5593 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5594 `paperwidth' and `paperlength' for the `papersize' keyword.
5596 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5598 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5600 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5602 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5603 html_printer::do_linelength, html_printer::do_pageoffset,
5604 html_printer::do_indentation, html_printer::do_tempindent,
5605 html_printer::do_break, html_printer::begin_page): Clear indented
5607 * tmac/html.tmac: Disable hyphenation.
5609 2002-06-15 Werner LEMBERG <wl@gnu.org>
5611 Don't produce HTML files if utility programs are missing.
5613 * Makefile.in (make_html, make_install_html): New variables.
5614 (MDEFINES): Updated.
5616 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5618 * configure.ac: Use it.
5619 * configure: Regenerated.
5621 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5622 (HTMLEXAMPLESFILES): This new variable.
5623 (EXAMPLESIMAGEFILES): Renamed to...
5624 (HTMLEXAMPLEIMAGEFILES): This.
5625 (CLEANADD): Add HTMLEXAMPLEFILES.
5626 (all): Use `make_html'.
5628 (install_data): Use `make_install_html'.
5629 Move html stuff to...
5630 (install_html): This new target.
5631 (uninstall_sub): Updated.
5633 2002-06-14 Bernd Warken <bwarken@mayn.de>
5635 * src/roff/grog/Makefile.sub (grog): Renamed to...
5637 (grog): New rule to always install grog.sh as grog.
5639 2002-06-08 Bernd Warken <bwarken@mayn.de>
5641 * src/roff/grog/grog.pl: Fix typo.
5643 2002-06-07 Werner LEMBERG <wl@gnu.org>
5645 * doc/groff.texinfo: Add more info on .tr arguments.
5647 2002-06-05 Werner LEMBERG <wl@gnu.org>
5649 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5651 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5652 * configure: Regenerated.
5654 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5656 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5658 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5660 2002-06-04 Werner LEMBERG <wl@gnu.org>
5662 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5663 is not initialized at the time we need it in case `--prefix' hasn't
5664 been set. Check for `ac_default_prefix' also.
5665 Test for `papersize' keyword also and generalize allowed whitespace.
5666 * configure: Regenerated.
5668 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5671 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5673 (src_version, src_revision): New variables to avoid overwriting
5674 from parent make process.
5675 (version.cc): Updated.
5677 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5678 (linebuf, linebufsize): New global variables.
5679 (sys_fatal): Use `fatal' to abort properly.
5680 (get_line): New function.
5681 (get_resolution): Use it.
5682 Improve error messages.
5683 (get_papersize): Check `papersize' also.
5685 Improve error messages.
5687 2002-06-03 Werner LEMBERG <wl@gnu.org>
5689 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5690 should be removed only if builddir is not srcdir.
5691 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5692 (clean): Depend on `mostlyclean'.
5693 (distclean): Depend on `clean'.
5694 (realclean, extraclean): Depend on `distclean'.
5695 (.y.cc, .y.o): Simplified. The output files are no longer written
5696 to srcdir but to builddir.
5697 * Makefile.in (MDEFINES): Add `version' and `revision'.
5698 (uninstall_dirs): Fix order of directories.
5699 * doc/Makefile.sub (version, revision): Removed.
5700 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5701 Added `HTMLDOCFILES'.
5702 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5703 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5704 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5707 * doc/texinfo.tex (\authortt): New macro.
5708 (\shortcontt): Define.
5709 (\titlepage): Set \tt to \authortt while defining \authorfont.
5710 (\appendixbox): New macro.
5711 (\chapmacro, \appendixentry): Use \appendixbox to get even
5712 indentation for letters.
5713 (\summarycontents): Set \tt.
5714 (\internalpagesize): Add two arguments for real paper width and
5715 height as needed by pdfTeX.
5716 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5718 (\tempdima, \tempdimb): New temporary dimensions.
5719 (\pagesizesyyy): Updated.
5721 2002-06-02 Werner LEMBERG <wl@gnu.org>
5723 Adding a new keyword `papersize' to the DESC file format (similar
5724 but not completely identical to grolbp's extension). grops now has
5725 a -p command line option to override `papersize'. Finally, grolbp
5726 has been adapted to the new syntax.
5728 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5729 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5731 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5732 (CCSRCS): Add `paper.cc'.
5734 * src/include/font.h (font): Add `papersize' element.
5735 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5736 (font::scan_papersize): New function.
5737 (font::load_desc): Use it for handling `papersize' keyword.
5738 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5740 * src/devices/grops/ps.cc: Include paper.h.
5741 (user_paper_length): New global variable.
5742 (ps_printer): Use paper length as initializer.
5743 (make_printer): Updated.
5744 (main): Handle new `-p' option.
5745 * src/devices/grops/grops.man: Updated.
5747 * src/devices/grolbp/lbp.cc: Include paper.h.
5748 s/papersizes/lbp_papersizes/.
5749 (set_papersize): Use new `papersizes' array.
5750 (handle_unknown_desc_command): Don't handle `papersize'.
5751 (main): Use `font::scan_papersize' for handling `-p' option.
5752 * src/devices/grolbp/grolbp.man: Updated.
5754 * man/groff_font.man: Document `papersize'.
5757 2002-05-30 Werner LEMBERG <wl@gnu.org>
5759 * src/devices/grops/TODO: Updated.
5760 * src/devices/grops/grops.man: More info on paper formats.
5761 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5763 2002-05-29 Werner LEMBERG <wl@gnu.org>
5765 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5766 to list only if srcdir != currdir.
5767 (distfiles): New target.
5769 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5770 (NOMAKEDIRS): New variable.
5773 2002-05-26 Werner LEMBERG <wl@gnu.org>
5775 Add .output request, similar to \! at top-level.
5777 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5778 (output_request): New function.
5779 (init_input_requests): Add it.
5781 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5784 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5785 (prepare_examples): Fix typo.
5786 * doc/groff.texinfo (@direntry): Fix it.
5788 2002-05-25 Werner LEMBERG <wl@gnu.org>
5790 Including the doc subdir into groff's Makefile system.
5792 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5793 * configure.ac: Use it.
5794 Generate `doc/Makefile'.
5795 * configure: Regenerated.
5797 * Makefile.in (infodir, INSTALL_INFO): New variables.
5798 (MDEFINES, uninstall_dirs): Updated.
5799 (OTHERDIRS): Add `doc'.
5800 * Makefile.comm (CLEANDIRADD): New variable.
5801 (mostlyclean): Use it.
5803 * doc/Makefile.sub, doc/Makefile.in: New files.
5804 * doc/Makefile: Removed.
5806 * NEWS, INSTALL: Updated.
5808 2002-05-24 Werner LEMBERG <wl@gnu.org>
5810 * doc/homepage.ms: Renamed to ...
5811 * doc/webpage.ms: This.
5814 2002-05-23 Werner LEMBERG <wl@gnu.org>
5816 Integrating the `mom' macro package, contributed by Peter Schaffter
5819 * contrib/mom/*: New subdirectory tree.
5820 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5821 be used for documentation files.
5822 (MDEFINES, uninstall_dirs): Use them.
5823 (OTHERDIRS): Add contrib/mom.
5824 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5826 * MANIFEST, NEWS: Updated.
5828 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5830 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5831 if at outer level; at start-up we are at outer level.
5833 * src/roff/troff/input.cc (do_suppress): Implement it.
5836 Add option -p to show progress information.
5837 pre-grohtml will now render only one page at a time, reducing the
5838 size of needed disk resources enormously.
5840 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5841 (imagePageName): New global variable.
5842 (psPageName, show_progress, currentPageNo): New global variables.
5843 (html_system): Close saved stderr and stdout handles.
5844 (write_end_image): Accept a parameter to control \O escape.
5845 (write_start_image): Adapted to new \O meaning.
5846 (char_buffer::write_upto_newline): Updated.
5847 (createAllPages): Replaced with...
5848 (createPage): This new function to create a single page for images.
5849 It uses `psselect' from the psutils package.
5850 (removeAllPages): Removed.
5851 (createImage): Updated.
5852 Handle progress display.
5853 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5854 (scanArguments): Add option -p.
5855 (makeTempFiles): Updated to create temp files for psPageName and
5857 (removeTempFiles): Removed.
5860 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5861 html_printer::write_header): Append `\0' to `buffer'.
5862 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5864 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5865 Handle `text_emitted'.
5866 (html_text::table_is_void): Slightly rewritten.
5867 (stop): New external symbol.
5868 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5869 (html_text::shutdown): Call `dump_stack'.
5870 (html_text::do_space): Rewritten.
5871 * src/devices/grohtml/grohtml.man: Document -p and the need of
5874 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5876 Call \O[0] if `ps4html' is active.
5877 * tmac/s.tmac (@EQ, @EN): Handle html better.
5879 * tmac/html.tmac: Don't use black for background colour.
5881 * src/roff/troff/node.cc: Include `div.h'.
5882 (troff_output_file::really_print_line): Don't use `is_on'.
5883 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5884 troff_output_file::check_charinfo,
5885 troff_output_file::put_char_width, troff_output_file::put_char,
5886 troff_output_file::determine_line_limits, troff_output_file::draw,
5887 real_output_file::begin_page, glyph_color_node::tprintf,
5888 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5890 (troff_output_file::really_on): Call `do_motion'.
5891 (suppress_node::tprint): Use `get_page_number' instead of `%'
5893 Call `reset_output_registers' conditionally on `is_on'.
5895 * doc/groff.texinfo: Document new syntax of \O.
5896 * NEWS, man/groff_diff.man: Updated.
5898 2002-05-22 Werner LEMBERG <wl@gnu.org>
5900 * MORE.STUFF: Add info about David Frey's deroff implementation.
5903 2002-05-16 Werner LEMBERG <wl@gnu.org>
5905 Pic's `with' attribute now accepts positions.
5907 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5908 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5910 (object_spec): Add rule for `WITH' and `position'.
5911 (relative_path): Give `corner' the precedence of `CHOP'.
5912 * src/preproc/pic/object.h (path): New members `pos' and
5914 * src/preproc/pic/object.cc: Updated initializers of `path'.
5915 (path::follow): Handle `is_position'.
5917 * doc/pic.ms: Completely updated grammar description.
5918 Many typographical improvements.
5920 2002-05-15 Werner LEMBERG <wl@gnu.org>
5922 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5923 code of x in range 0-127) also.
5924 * doc/groff.texinfo, man/groff_diff.man: Updated.
5926 Added keywords `north', `south', `east', and `west' for corners
5929 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5931 (yylex): Handle them.
5932 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5933 (corner): Handle them.
5935 2002-05-14 Werner LEMBERG <wl@gnu.org>
5937 * src/devices/grops/grops.man: Clarify handling of `download' file.
5939 2002-05-11 Werner LEMBERG <wl@gnu.org>
5941 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5942 Jeffrey Friedl <jfriedl@yahoo.com>.
5944 * src/roff/troff/input.cc (spread_limit, warn_scale,
5945 warn_scaling_indicator): New global variables.
5946 (warnscale_request, spreadwarn_requests): New functions.
5947 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5948 (init_input_requests): Updated.
5949 (error_type): Add `OUTPUT_WARNING'.
5950 (do_error): Handle it.
5951 (output_warning): New warning function which shows output location.
5952 * src/roff/troff/env.h (spread_limit): New external variable.
5953 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5955 (distribute_space): Emit warning if added space is larger than
5957 (environment::possibly_break_line): Emit warning if a line can't
5958 be adjusted on both sides.
5960 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5962 2002-05-08 Werner LEMBERG <wl@gnu.org>
5964 * src/roff/troff/node.cc (special_node::special_node): Use
5965 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
5966 \X''\% crashes, for example.
5968 * doc/groff.texinfo: Document \! and \? used at top-level.
5970 2002-05-06 Werner LEMBERG <wl@gnu.org>
5972 * src/preproc/pic/pic.man: Fix some keyword syntax.
5973 Other minor typographical fixes.
5975 * src/roff/groff/groff.man: Fix typos.
5977 2002-05-04 Werner LEMBERG <wl@gnu.org>
5979 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5980 (ShortOpt[]): This to avoid problems with refer.
5982 * doc/pic.ms: Fix typo.
5983 Fix pic grammar description.
5985 * tmac/an-old.tmac (ne): Use de1, not de.
5987 2002-05-03 Werner LEMBERG <wl@gnu.org>
5989 * doc/groff.texinfo: Finished separation of glyphs and characters.
5990 Don't use the string `Appendix' for appendix headers (both in
5991 the text and the table of contents).
5992 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5995 Use registers LL and LT (similar to -ms) for controlling the
5996 length of title and line, respectively, in the -man and -mdoc
5999 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6000 (doc-setup-page-layout): Use \n[LL] and \n[LT].
6001 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6003 (an-header, an-p-footer): Use \n[LT].
6004 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6005 doc/groff.texinfo: Document it.
6007 2002-05-02 Werner LEMBERG <wl@gnu.org>
6009 * doc/fdl.texi: New file.
6010 * doc/groff.texinfo: Include it.
6011 Define and use @copying.
6012 Starting with separating glyph, symbol, and character.
6014 2002-04-27 Werner LEMBERG <wl@gnu.org>
6016 * Makefile.in (EXEEXT): Set it.
6017 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6020 * src/include/nonposix.h: Define GS_NAME.
6021 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6023 Some preliminary changes for EMX support under OS/2.
6025 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6026 __EMX__ similar to __MSDOS__.
6027 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6029 2002-04-25 Werner LEMBERG <wl@gnu.org>
6031 * doc/groff.texinfo: Integrated groff_out.man.
6034 2002-04-23 Werner LEMBERG <wl@gnu.org>
6036 * man/groff_out.man: Minor fixes.
6038 2002-04-23 Werner LEMBERG <wl@gnu.org>
6040 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6041 correct page references.
6042 Fixed many index entries.
6044 2002-04-23 Bernd Warken <bwarken@mayn.de>
6046 * man/roff.man: Enlarged.
6048 2002-04-22 Werner LEMBERG <wl@gnu.org>
6050 * doc/groff.texinfo: More examples, other fixes.
6052 2002-04-20 Werner LEMBERG <wl@gnu.org>
6054 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6055 will now form a chain, e.g.
6064 This is for compatibility with plan 9's troff.
6066 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6070 * doc/groff.texinfo: Add documentation of remaining requests and
6073 2002-04-19 Werner LEMBERG <wl@gnu.org>
6075 * doc/groff.texinfo: Add documentation of remaining escapes.
6077 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6078 * font/devdvi/*TC: Regenerated.
6080 2002-04-18 Werner LEMBERG <wl@gnu.org>
6082 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6083 if not in compatibility mode, i.e., increment relative to the
6085 * doc/groff.texinfo: Updated accordingly.
6087 2002-04-17 Werner LEMBERG <wl@gnu.org>
6089 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6091 2002-04-16 Bernd Warken <bwarken@mayn.de>
6093 * src/roff/groff/groff.man: Improve documentation of -P option.
6096 2002-04-15 Werner LEMBERG <wl@gnu.org>
6098 Add new escape \F to switch font family.
6100 * src/roff/troff/input.cc (token::next): Handle \F.
6101 * src/roff/troff/env.cc (environment::set_family): Handle
6103 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6106 2002-04-14 Werner LEMBERG <wl@gnu.org>
6108 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6111 2002-04-13 Werner LEMBERG <wl@gnu.org>
6113 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6114 \m[] and \M[], respectively.
6116 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6117 (symbol::symbol): Handle NULL string and empty string differently.
6118 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6119 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6120 Add optional parameter.
6121 Updated calling functions.
6122 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6124 * src/roff/troff/env.cc (environment::set_font): Ditto.
6126 * src/preproc/pic/troff.cc (troff_output::set_fill,
6127 troff_output::reset_color: Updated.
6129 * tmac/www.tmac: Updated.
6131 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6132 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6135 * tmac/Xps.tmac: Remove some redundant code.
6137 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6138 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6139 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6142 2002-04-13 Bernd Warken <bwarken@mayn.de>
6144 * src/include/printer.h, src/libs/libdriver/printer.cc
6145 (printer::change_fill_color): New member function.
6146 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6148 2002-04-12 Werner LEMBERG <wl@gnu.org>
6150 * doc/groff.texinfo: Completed pass on gtroff reference.
6152 2002-04-11 Werner LEMBERG <wl@gnu.org>
6154 * doc/groff.texinfo: More fixes.
6156 2002-04-11 Bernd Warken <bwarken@mayn.de>
6158 * src/include/color.h: Decorate with `const'.
6161 * src/libs/libgroff.color.cc: Decorate with `const'.
6163 (color::color): Initialize members.
6164 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6165 command according to the documentation.
6167 * man/groff_out.man: Updated.
6170 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6172 * src/preproc/html/pre-html.cc (write_start_image): Remove
6174 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6176 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6177 \C'hy' caused an assertion failure.
6179 * src/roff/troff/env.cc (environment::environment): Initialize
6181 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6183 2002-04-10 Werner LEMBERG <wl@gnu.org>
6185 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6186 Document pvs request and .pvs register.
6188 2002-04-09 Werner LEMBERG <wl@gnu.org>
6190 * doc/groff.texinfo: Improve and fix documentation of diversions
6193 2002-04-08 Werner LEMBERG <wl@gnu.org>
6195 * doc/groff.texinfo: Fix documentation of drawing functions.
6198 2002-04-07 Werner LEMBERG <wl@gnu.org>
6200 * doc/groff.texinfo: Better documentation of double quotes as
6204 2002-04-06 Werner LEMBERG <wl@gnu.org>
6206 * man/groff_font.man: Document names of special characters better.
6207 * doc/groff.texinfo: Minor improvements.
6209 * tmac/lbp.tmac: Load latin1.tmac.
6210 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6212 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6214 2002-04-05 Werner LEMBERG <wl@gnu.org>
6216 * tmac/tty.tmac: Don't use shc request.
6217 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6220 * man/groff_diff.man: Minor fixes.
6222 * font/devlbp/*: Remove all `charXXX' entities.
6224 * src/libs/libgroff/font.cc (font::~font): Deallocate
6225 `special_device_coding'.
6226 (font::load): Use `new' for allocating `special_device_coding'.
6227 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6228 Removed unused member.
6230 2002-04-05 Werner LEMBERG <wl@gnu.org>
6232 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6233 (resource_manager::do_begin_binary,
6234 resource_manager::do_begin_data): Use it.
6236 * doc/texinfo.tex: Updated to version 4.2.
6238 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6239 (token::zero_width_break): New inline function.
6240 * src/roff/troff/input.cc (token::next): Use it.
6241 (token::description): Updated.
6242 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6243 (token::add_to_node_list, token::process): Use it.
6244 * NEWS, doc/groff.texinfo: Updated.
6246 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6247 * tmac/tty.tmac: Add missing backslash.
6249 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6251 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6252 `.ps' register instead of `.s' to handle fractional point sizes.
6253 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6254 limit_box::output): Ditto.
6255 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6256 size_box::output): Ditto.
6257 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6258 over_box::output): Ditto.
6259 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6260 script_box::output): Ditto.
6261 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6262 sqrt_box::output): Ditto.
6264 2002-04-03 Michael Selway <mas@ssl.co.uk>
6266 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6269 2002-04-03 Werner LEMBERG <wl@gnu.org>
6271 * doc/homepage.ms: Reduce title size.
6272 * doc/groff.texinfo: Fix documentation of .t register.
6273 Fix handling of colon.
6276 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6277 only if page length is positive to avoid a loop.
6279 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6282 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6284 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6285 s/__CYGWIN32__/__CYGWIN__/.
6287 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6289 * doc/gnu.xpm: New image contributed by Emily Mulley.
6290 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6291 (homepage.html): Be dependent on gnu.eps.
6292 * doc/homepage.ms: Updated to new image.
6294 * src/devices/grohtml/post-html.cc (html_printer): New member
6296 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6297 (html_printer::sbuf_continuation): Use it.
6299 2002-03-28 Werner LEMBERG <wl@gnu.org>
6301 * src/libs/libgroff/getopt.c: Updated to latest version.
6303 * tmac/README: More on hyphen.tex license.
6305 2002-03-26 Larry Kollar <kollar@alltel.net>
6307 * doc/groff.texinfo: Add documentation of most missing requests.
6309 2002-03-25 Werner LEMBERG <wl@gnu.org>
6311 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6312 of `+-', `mu', and `di', respectively.
6314 * font/devascii/R.proto, font/devutf8/R.proto,
6315 font/devlatin1/R.proto, font/devhtml/R.proto,
6316 font/devcp1047/R.proto, font/devlpb/*: Add them.
6317 * font/devps/generate/textmap: Ditto.
6318 * font/devps/*: Regenerated.
6319 * font/devlj4/generate/text.map: Add them.
6320 * font/devlj4/*: Regenerated.
6321 * font/devdvi/generate/tc.map: Use them.
6322 * font/devdvi/generate/texsy.map: Add them.
6323 * font/devdvi/*: Regenerated.
6324 * font/devX*/*: Regenerated.
6326 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6327 tmac/tty-char.tmac: Updated.
6329 * NEWS, man/groff_char.man: Updated.
6331 2002-03-24 Werner LEMBERG <wl@gnu.org>
6333 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6334 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6335 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6336 we use `.fchar' in dvi.tmac.
6337 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6338 * tmac/Xps.tmac: Simplify some char definitions.
6339 Add definition for \[f/].
6340 * man/groff_char.man: Updated for new X.tmac.
6342 * tmac/README: New file.
6344 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6346 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6347 internal .y.o rule took precendence over the .y.cc rule, compiling
6348 the yacc files with gcc instead of g++.
6350 2002-03-23 Werner LEMBERG <wl@gnu.org>
6352 * tmac/dvi.tmac: Add replacement font for `CB'.
6354 * tmac/doc.tmac: s/request/macro/ in messages.
6355 (doc-generic-macro): Improve error message.
6356 * tmac/groff_mdoc.man: Minor improvements.
6358 2002-03-22 Werner LEMBERG <wl@gnu.org>
6360 * doc/groff.texinfo: Document possible conflict between `tr' and
6363 2002-03-21 Werner LEMBERG <wl@gnu.org>
6365 Improve handling of hyphenation patterns. It is now possible to
6366 use most of TeX's pattern files unmodified. To make the process
6367 more flexible, a new request `hpfcode' has been added which
6368 provides a character code mapping for the `hpf' request. See
6369 comment before hpf_getc() for more details.
6371 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6373 (read_patterns_file): Additional parameter for exception dictionary.
6374 Extended to recognize \pattern, \hyphenation, and \endinput.
6375 (do_hyphenation_patterns_file): Updated.
6376 * src/roff/troff/env.h (hpf_code_table): New extern.
6378 * src/roff/troff/input.cc (hpf_code_table): New array.
6379 (init_hpf_code_table, hyphenation_patterns_file_code): New
6381 (hyphenation_code): Handle translation from `trin' correctly.
6382 (main, init_input_requests): Updated.
6383 (charinfo::set_translation): Handle hyphenation code also.
6385 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6388 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6389 char' is used for offsets in hyphenation exceptions.
6391 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6393 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6395 2002-03-20 Larry Kollar <kollar@alltel.net>
6397 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6400 2002-03-18 Werner LEMBERG <wl@gnu.org>
6402 * tmac/html.tmac: Fix serious typo.
6404 2002-03-17 Larry Kollar <kollar@alltel.net>
6406 * doc/groff.texinfo: Add documentation for `writec' request.
6408 2002-03-17 Werner LEMBERG <wl@gnu.org>
6410 Added request `hpfa' to append hyphenation patterns.
6412 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6414 (hyphenation_patterns_file): Renamed to...
6415 (do_hyphenation_patterns_file): This.
6416 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6418 (init_hyphen_requests): Updated.
6419 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6421 2002-03-16 Werner LEMBERG <wl@gnu.org>
6423 Added request `writec' in analogy to `tmc'.
6425 * src/roff/troff/input.cc (write_request): Renamed to...
6426 (do_write_request): This.
6427 Added one parameter.
6428 (write_request, write_request_continue): New functions.
6429 (init_input_requests): Updated.
6430 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6432 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6434 * NEWS: Document it.
6436 2002-03-15 Werner LEMBERG <wl@gnu.org>
6438 * man/groff.man: Add writem request.
6440 Add request `trin' (translate input) to make `.asciify' work
6441 correctly. This is necessary since `charXXX' entity names are no
6442 longer hardcoded in font definition files.
6444 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6445 `translate_input' members.
6446 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6447 charinfo::set_translation_input): New methods.
6448 (charinfo::set_translation): Add third argument.
6449 * src/roff/troff/input.cc (charinfo:set_translation): Set
6451 (do_translate): Add second argument.
6452 (translate_input): New function.
6453 (init_input_requests): Updated.
6454 * src/roff/troff/node.cc (glyph_node::asciify,
6455 composite_node::asciify): Use `get_asciify_code'.
6457 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6459 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6461 2002-03-14 Larry Kollar <kollar@alltel.net>
6463 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6465 2002-03-14 Werner LEMBERG <wl@gnu.org>
6467 Add a new request `sizes' similar to the `sizes' command in DESC
6470 * src/roff/troff/env.cc (override_sizes): New function.
6471 (init_env_requests): Use it.
6472 * src/roff/troff/token.h: Export `read_string'.
6473 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6475 2002-03-12 Werner LEMBERG <wl@gnu.org>
6477 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6479 2002-03-10 Werner LEMBERG <wl@gnu.org>
6481 * tmac/pspic.tmac: Add support for -Tdvi.
6482 * tmac/dvi.tmac: Include pspic.tmac.
6483 * src/devices/grodvi/grodvi.man: Document it.
6486 * font/devlj4/generate/Makefile: Fix URL of metric files.
6488 2002-03-09 Werner LEMBERG <wl@gnu.org>
6490 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6492 2002-03-09 Larry Kollar <kollar@alltel.net>
6494 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6496 2002-03-08 Werner LEMBERG <wl@gnu.org>
6498 * doc/groff.texinfo: Fixes for texinfo 4.1.
6500 2002-03-07 Werner LEMBERG <wl@gnu.org>
6502 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6504 Handle CYGWIN properly.
6506 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6508 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6509 * tmac/lbp.tmac: Add some font translations.
6511 2002-03-02 Werner LEMBERG <wl@gnu.org>
6513 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6514 font/devhtml/R.proto: Remove `charXXX' entries.
6515 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6518 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6519 * font/devlj4/*: Regenerated all font definition files.
6520 * tmac/lj4.tmac: Load latin1.tmac.
6522 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6523 from 2000-06-17: LJ4 metric files are *not* text files.
6525 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6526 register to test for EBCDIC.
6528 2002-03-01 Werner LEMBERG <wl@gnu.org>
6530 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6531 files (as grops already does).
6532 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6534 * src/devices/grops/grops.man: Document comment lines in encoding
6537 * tmac/cp1047.tmac: New file.
6538 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6539 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6540 * tmac/Makefile.sub (NORMALFILES): Updated.
6542 * tmac/ec.tmac: Don't load latin1.tmac again.
6544 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6545 font/devps/generate/dingbats.map,
6546 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6547 font/devps/generate/Makefile (symbolmap): Add header comment.
6548 * font/devps/generate/textmap: Ditto.
6549 Remove `charXXX' entries.
6550 * font/devps/symbolmap: Regenerated.
6551 * font/devps/*: Regenerated all font definition files.
6553 2002-02-28 Werner LEMBERG <wl@gnu.org>
6555 Add color support to grodvi (for drawing colors are currently
6556 translated to gray values).
6558 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6559 (dvi_printer): Add `cur_color' member.
6560 (dvi_printer::set_color): New function.
6561 (draw_dvi_printer): Remove `fill'.
6562 (draw_dvi_printer::fill_next): Pass environment as parameter.
6563 Update code for new color support translated to gray.
6564 (dvi_printer::set_char): Updated.
6565 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6566 changes crossing the page border.
6567 (dvi_printer::draw): Updated.
6568 Remove cases `f' and `F'.
6569 * tmac/dvi.tmac: Add color definitions.
6570 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6572 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6575 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6576 versions of autoconf.
6577 * configure: Updated.
6579 * doc/homepage.ms: Use `.blm'.
6580 * tmac/www.tmac (www-depth): New auxiliary variable.
6581 (www-pop-level): Don't issue HTML tag.
6582 (ULS, ULE, LI): Use absolute indentation.
6584 * src/devices/grops/ps.cc (ps_printer::begin_page,
6585 ps_printer::end_page): Switch forth and back to default color while
6586 starting a new page.
6588 2002-02-27 Werner LEMBERG <wl@gnu.org>
6590 Add EC and TC fonts to devdvi.
6592 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6593 * font/devdvi/generate/cork.map: Renamed to...
6594 * font/devdvi/generate/ec.map: This.
6595 Remove entry for `aq'.
6596 * font/devdvi/generate/tc.map: New file.
6597 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6600 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6601 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6602 * tmac/ec.tmac: New file.
6603 * tmac/Makefile.sub (NORMALFILES): Updated.
6604 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6605 * man/groff_char.man: Check `ECFONTS' register.
6607 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6609 2002-02-26 Werner LEMBERG <wl@gnu.org>
6611 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6612 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6613 * font/devdvi/*: Updated.
6614 * tmac/dvi.tmac: Formatting.
6616 Add font `HBI' for the dvi output.
6617 Add support for font families `T' and `H'.
6619 * font/devdvi/HBI: New file.
6620 * font/devdvi/B: Renamed to ...
6621 * font/devdvi/TB: This.
6622 * font/devdvi/BI: Renamed to ...
6623 * font/devdvi/TBI: This.
6624 * font/devdvi/I: Renamed to ...
6625 * font/devdvi/TI: This.
6626 * font/devdvi/R: Renamed to ...
6627 * font/devdvi/TR: This.
6628 * font/devdvi/H: Renamed to ...
6629 * font/devdvi/HR: This.
6630 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6631 * font/devdvi/generate/Makefile (HBI): New rule.
6633 (R, I, B, BI, H): Renamed to ...
6634 (TR, TI, TB, TBI, HR): This, respectively.
6636 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6637 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6638 Add `styles' and `family' keywords.
6639 * tmac/dvi.tmac: Alias `H' to `HR'.
6640 Add some fspecial requests for italic fonts.
6641 Add TR and TI as special.
6642 Add support for `_' with font CWI.
6644 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6645 operator `:'. Until now, the expression `0:1' would return 2
6648 2002-02-25 Werner LEMBERG <wl@gnu.org>
6650 * man/groff_char.man: Added some missing PS glyph names (from the
6652 * font/devps/generate/textmap, font/devps/symbolmap: Add
6655 * doc/groff.texinfo: Minor additions and fixes.
6656 * man/groff_diff.man: Remove documentation of fp request. This
6657 is already covered in the original troff manual.
6658 Updated to be consistent with other doc files.
6661 2002-02-24 Werner LEMBERG <wl@gnu.org>
6663 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6665 Define new variable OTHERDEVDIRS (containing `font/devlj4
6666 font/devlbp' if not EBCDIC).
6667 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6668 (OTHERDEVDIRS): New variable.
6669 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6670 * configure: Regenerated.
6672 * NEWS, src/devices/grotty/grotty.man: Updated.
6674 2002-02-23 Werner LEMBERG <wl@gnu.org>
6676 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6677 get_line_arg): Honour input level.
6679 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6681 * font/*/*: Implement it in all font files.
6682 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6683 * font/devps/symbolmap: Updated.
6684 * font/devlj4/generate/text.map: Updated.
6685 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6686 * font/devdvi/generate/texmi.map: Updated.
6688 * font/devutf8/R.proto: Remove all `charXXX' entries.
6689 * font/devutf8/NOTES: Updated.
6691 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6694 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6696 * NEWS, man/groff_char.man: Updated.
6698 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6700 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6702 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6704 * src/roff/grog/grog.pl: Fix computation of $refer.
6706 2002-02-19 Werner LEMBERG <wl@gnu.org>
6708 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6709 `snprintf' and `vsnprintf'.
6711 * src/include/htmlindicate.h: Renamed to...
6712 * src/include/htmlhint.h: This.
6713 * src/include/Makefile.sub: Updated.
6714 * src/preproc/eqn/main.cc: Updated.
6716 2002-02-18 Werner LEMBERG <wl@gnu.org>
6718 * man/roff.man, man/groff_out.man, man/groff.man,
6719 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6720 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6722 * win32-diffs: Updated.
6724 2002-02-17 Werner LEMBERG <wl@gnu.org>
6726 * doc/Makefile (clean): Add *.eps.
6727 (MEMACROS): Removed.
6728 (TFLAG): New variable.
6731 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6733 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6735 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6737 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6739 * src/roff/troff/troff.man: Fix order of parameter description.
6743 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6745 Simplify image handling for grohtml.
6748 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6750 (html_text::dump_stack): Don't emit newline while debugging.
6751 (html_text::do_push) [DEBUGGING]: Print more info.
6752 (html_text::check_emit_text): Fix handling of <p>.
6753 * src/devices/grohtml/html.h: Updated.
6754 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6755 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6756 send its data to stderr also.
6758 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6759 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6760 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6762 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6764 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6765 is_inline_image): Removed.
6766 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6767 (graphic_start, graphic_end): Removed.
6768 * src/include/htmlindicate.h: Updated.
6769 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6770 (macroset_template): New global variable.
6771 (makeFileName): Use `macroset_template'.
6772 (write_end_image): Don't take a parameter.
6774 (write_start_image: Don't emit newline.
6775 (char_buffer::write_upto_newline): Updated.
6776 (char_buffer::skip_to_newline): Renamed to ...
6777 (char_buffer::skip_until_newline): This.
6779 (char_buffer::write_file_troff, char_buffer::write_file_html):
6781 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6782 (removeAllPages): Remove `DEBUGGING' conditionals.
6783 (addRegDef, dump_args): New functions.
6784 (char_buffer::do_html, char_buffer::do_image): Handle
6785 `www-image-template' command line variable.
6786 Add more debugging code.
6787 (addps4html): Removed.
6788 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6790 * src/preproc/eqn/main.cc: Include `ctype.h'.
6791 (suppress_html): Removed.
6793 (inline_equation): Use `html_begin_suppress' and
6794 `html_end_suppress'.
6795 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6796 (troff_output::start_picture, troff_output::finish_picture):
6798 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6799 (process_input_file): Updated.
6801 * src/roff/troff/div.cc (page_number): Set page number only if the
6802 `ps4html' register isn't defined.
6803 * src/roff/troff/input.cc (image_no): New external variable.
6804 (do_suppress): Use it.
6805 * src/roff/troff/node.h (suppress_node::image_id): New member.
6806 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6807 (suppress_node::suppress_node): Initialize `image_id' member.
6808 (suppress_node::same): Handle `image_id' also.
6809 (suppress_node::copy): Updated.
6810 (last_image_id): New global variable.
6811 (suppress_node::tprint): Use it.
6813 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6815 * tmac/pspic.mac (PSPIC): Fix html support.
6816 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6817 * tmac/www.tmac (www-image-template): Set up.
6818 (HTMLINDEX): Renamed to...
6820 (BODYCOLOR): Renamed to...
6822 (BACKGROUND): Renamed to...
6824 (URL): Change order of parameters for consistency.
6825 (MAILTO): Renamed to...
6827 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6828 (IMG, PIMG, MPIMG): This.
6829 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6831 (LINKS): Renamed to...
6833 (LINE): Renamed to...
6835 (NO-AUTO-RULE): Renamed to...
6837 (HTML-TL): Renamed to...
6839 (UL-BEGIN, UL-END): Renamed to...
6841 (DROPCAP): Renamed to...
6843 (TS, TE, EQ, EN): Provide default definitions.
6844 (www-make-unique-name): Updated.
6845 (HTML-IMAGE-INLINE): Fix typo.
6846 * tmac/groff_www.man: Updated.
6848 * doc/Makefile (homepage.html): Add option -r to grohtml.
6849 Use shortened image name.
6850 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6851 * doc/homepage.ms: Updated and extended.
6853 2002-02-14 Werner LEMBERG <wl@gnu.org>
6855 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6857 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6858 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6859 (tty_printer::put_color): Use it.
6860 (ttr_printer::end_page): Simplify.
6862 2002-02-13 Werner LEMBERG <wl@gnu.org>
6864 * tmac/groff_tmac.man: Moved to...
6865 * man/groff_tmac.man: This place.
6866 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6868 2002-02-12 Werner LEMBERG <wl@gnu.org>
6870 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6871 $(COMPILE.c) to not include groff's assert.h.
6873 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6875 * NEWS, src/drivers/grotty/grotty.man: Document it.
6877 2002-02-11 Werner LEMBERG <wl@gnu.org>
6879 * src/libs/snprintf/snprintf.c: Updated to latest version
6882 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6883 test whether there is `.]' also.
6884 Don't check for spaces after `.['.
6885 * src/roff/grog/grog.sh: Do the same.
6887 2002-02-10 Werner LEMBERG <wl@gnu.org>
6891 * src/libs/libgroff/illegal.cc: Renamed to ...
6892 * src/libs/libgroff/invalid.cc: This.
6893 (illegal_char_table): Renamed to ...
6894 (invalid_char_table): This.
6895 * src/libs/libgroff/Makefile.sub: Updated.
6896 * win32-diffs: Updated.
6898 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6899 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6900 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6901 font::load), src/preproc/eqn/main.cc (read_line, main),
6902 src/preproc/eqn/lex.cc (file_input::read_line),
6903 src/preproc/pic/lex.cc (file_input::read_line,
6904 simple_file_input::get, simple_file_input::peek),
6905 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6906 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6907 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6908 do_bib), src/preproc/tbl/main.cc (table_input::get),
6909 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6910 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6911 do_zero_width, read_request, encode_char, ps_get_line,
6912 transparent_file, get_char_for_escape_name, transparent_translate,
6913 asciify, input_char_description, read_string, set_string),
6914 src/roff/troff/env.cc (environment::add_html_tag),
6915 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6917 * src/include/lib.h: Updated.
6919 * src/preproc/eqn/eqn.cc: Removed.
6923 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6925 2002-02-09 Werner LEMBERG <wl@gnu.org>
6927 * doc/gnu.xpm: New image.
6928 * doc/Makefile (DOCS): Add homepage.ps.
6929 Add rules for converting xpm->png and xpm->eps.
6930 Use `gnu.{xpm,eps}' as image names.
6931 * doc/homepage.ms: Updated.
6933 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6935 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6936 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6937 Remove calls to `B1' and `B2'
6938 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6939 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6940 auxiliary variables for MARGIN-PNG-IMAGE.
6941 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6942 auxiliary macros for MARGIN-PNG-IMAGE.
6943 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6945 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6946 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6947 (DROPCAP): New macro to produce dropcap characters.
6948 (www-do-image): Renamed back to...
6949 (HTML-DO-IMAGE): This.
6950 Updated all callers.
6952 * doc/Makefile (gnubw.eps): Updated.
6953 * doc/homepage.ms: Updated.
6955 2002-02-08 Werner LEMBERG <wl@gnu.org>
6957 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6958 Added `linethick' to table in section `Style Variables'.
6960 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
6962 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6964 2002-02-07 Werner LEMBERG <wl@gnu.org>
6966 Adding options -C (compatibility mode) and -c (grotty's old output
6969 * src/roff/nroff/nroff.sh: Implement it.
6971 * NEWS, src/roff/nroff/nroff.man: Updated.
6973 * PROBLEMS: Document bison 1.32 bug.
6975 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6977 * src/roff/troff/node.cc (make_tfont): Define it earlier.
6978 * src/roff/troff/div.h: Add prototype for `end_diversions'.
6979 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6980 * src/roff/troff/env.h: Add prototype for `title'.
6982 Adding EBCDIC support to grotty.
6984 * src/devices/grotty/tty.cc (CSI): New macro.
6985 (SGR_*, tty_printer::put_color): Use it.
6987 2002-02-06 Werner LEMBERG <wl@gnu.org>
6989 Implementing color support in grotty. The new switch -c activates
6990 the old drawing scheme, disabling color at the same time. The new
6991 switch `-i' selects italic instead of underlining (SGR only).
6993 * src/devices/grotty/tty.cc (putstring): New define instead of
6994 `fputs'. Updated all callers.
6995 (old_drawing_scheme): New global variable.
6996 (COLOR_CHANGE): New enum value.
6997 (SGR_*): New defines containing color handling escape sequences.
6998 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6999 (glyph): New members `back_color_idx' and `fore_color_idx'.
7000 (glyph::order): Add COLOR_CHANGE.
7001 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7002 `is_underline', `is_bold', `cu_flag', `tty_colors'.
7003 New methods `make_underline', `make_bold', `color_to_idx',
7004 `change_color', `put_color'.
7005 (cu_flag): Moved into `tty_printer' class.
7006 (tty_printer::tty_printer): Initialize colors.
7007 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7008 tty_printer::draw, tty_printer::end_page): Handle colors also.
7009 (main): Add options `-c' and `-i'.
7011 * NEWS, src/devices/grotty/grotty.man: Updated.
7013 * src/include/errarg.h (errarg): Add support for `unsigned int'.
7014 * src/libs/libgroff/errarg.c: Implement it.
7016 * src/include/printer.h (printer): Add `change_color' method
7017 (currently used by grotty only).
7018 * src/libs/libdriver/printer.cc: Implement it.
7019 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7020 call to `pr->change_color'.
7022 * src/roff/troff/node.cc (troff_output_file::fill_color,
7023 troff_output_file::glyph_color): Call `do_motion'.
7025 * tmac/tty.tmac: Add color definitions.
7027 * src/roff/groff/groff.man: Minor fixes.
7029 2002-02-05 Bernd Warken <bwarken@mayn.de>
7031 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7032 it. This is a preparation for future changes.
7034 2002-02-05 Werner LEMBERG <wl@gnu.org>
7036 * src/roff/troff/input.cc (process_input_stack): Fix the case
7037 where leading spaces are followed by \f or \s; previously, an
7038 incorrect space width has been used.
7040 * doc/roff.man (quoted_char): Fix argument.
7041 (comment): Define string.
7043 2002-02-04 Larry Kollar <kollar@alltel.net>
7045 * doc/groff.texinfo: More fixes.
7047 2002-02-04 Werner LEMBERG <wl@gnu.org>
7049 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7050 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7051 `restore_compatibility' before `output_string' -- the LINE_STRING
7052 register now already contains proper switches from and to
7055 * man/groff_char.man: Add Euro symbol.
7056 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7057 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7058 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7061 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7063 (.texinfo.html): Add support for texinfo->html.
7065 2002-02-03 Werner LEMBERG <wl@gnu.org>
7067 Added three new requests `ds1', `as1', and `ami'. The former two
7068 are equivalent to `ds' and `as' with the difference that
7069 compatibility mode is saved on entry, switched off during string
7070 expansion, and restored on exit. The latter is the pendant to `dei'
7073 (do_define_string): Use `define_mode' and `calling mode'.
7074 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7075 end of string, respectively.
7076 (define_string, append_string): Use `calling_mode'.
7077 (define_nocomp_string, append_nocomp_string,
7078 define_string_indirect): New functions.
7079 (init_input_requests): Updated.
7080 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7082 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7083 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7084 mm macro package accesses this string register directly.
7085 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7087 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7090 2002-02-02 Larry Kollar <kollar@alltel.net>
7092 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7094 2002-01-31 Werner LEMBERG <wl@gnu.org>
7096 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7098 2002-01-31 Bernd Warken <bwarken@mayn.de>
7100 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7101 * man/groff_out.man: Revised and updated.
7103 2002-01-30 Bernd Warken <bwarken@mayn.de>
7105 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7106 out the unused `{' and `}' commands. Undefined by default.
7107 (IntArray): Make `data' private.
7108 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7109 new methods instead.
7110 (skip_line_D, skip_to_end_of_line): New functions.
7111 (get_D_fixed_args): Use `skip_line_D'.
7112 Changed to handle dummy odd arguments by ...
7113 (get_D_fixed_args_odd_dummy): This new function.
7114 (get_D_variable_args): Split some code into ...
7115 (get_possibly_integer_args): This new function.
7116 (send_draw): Use more `const'.
7117 (delete_current_env): New function.
7118 (position_to_end_of_args): Use `size_t'.
7120 (send_draw): Updated.
7121 (parse_D_command): Handle `c', `C', and `t' better.
7125 2002-01-29 Werner LEMBERG <wl@gnu.org>
7128 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7129 @Def...ListEnd which replaces @Def...x. This is necessary to get
7130 proper HTML output -- see the comment in the file for more
7134 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7136 Fixes to make color changes of 2002-01-21 work with grohtml.
7138 * src/devices/grohtml/post-html.cc (style): Updated.
7139 (html_printer): Remove unused methods.
7140 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7141 html_printer::special): Updated.
7142 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7143 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7144 Added some debugging code.
7145 (html_text::start_tag): Updated.
7146 (html_text::do_push): New method.
7147 (html_text::push_para): Call it.
7148 Add method for handling color.
7149 (html_text::do_color): Updated.
7150 (html_text::shutdown): Handle color.
7151 * src/devices/grohtml/html-text.h (tag_definition): New member
7155 2002-01-28 Werner LEMBERG <wl@gnu.org>
7157 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7159 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7161 Add two switches -a and -g to control the antialiasing bits for
7162 text and graphics, respectively.
7164 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7166 * src/devices/grohtml/grohtml.man: Document them.
7167 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7169 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7170 (setupAntiAlias): New function.
7171 (createAllPages): Updated.
7172 (scanArguments): Handle `-a' and `-g'.
7173 (main): Call `setupAntiAlias'.
7176 2002-01-27 Werner LEMBERG <wl@gnu.org>
7178 * doc/groff.texinfo (Def*): Call index function after deffn.
7180 * tmac/html.tmac: Call `nroff' request.
7182 2002-01-26 Larry Kollar <kollar@alltel.net>
7184 * tmac/groff_ms.man: Add some omissions.
7186 2002-01-25 Larry Kollar <kollar@alltel.net>
7188 * tmac/groff_ms.man: Typographical improvements.
7190 2002-01-25 Werner LEMBERG <wl@gnu.org>
7192 * doc/groff.texinfo: Updated version and copyright.
7193 * src/devices/grops/grops.man: Updated.
7195 * tmac/groff_tmac.man: Fix `ig' macro.
7197 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7199 Use `.ne' unconditionally everywhere.
7200 (TS): Only insert some vertical space. Doing a page break is no
7201 longer necessary due to the redefinition of the `ne' request.
7203 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7204 warning for unknown subcommands but parse and pass them to the
7207 2002-01-24 Werner LEMBERG <wl@gnu.org>
7209 * tmac/groff_www.man, NEWS: Fix typos.
7211 2002-01-21 Werner LEMBERG <wl@gnu.org>
7213 Complete revision of color support:
7215 Adapt programs to the new libdriver/input.cc.
7217 Color spaces are no longer converted to RGB but transferred as-is
7218 in the troff intermediate output format.
7220 Handle default color gracefully. troff now supports a `default'
7221 color (which can't be changed).
7223 grops will now use the proper color space functions if available.
7227 Note that currently grohtml doesn't handle colors properly. This
7230 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7231 (ui_to_a): New function.
7232 * src/include/lib.h: Updated.
7234 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7235 (color): Simplified; removed all `double' members and methods.
7236 A new array `components' now holds the color parameters.
7237 (color::is_default, color::get_components): New methods.
7238 (color::operator==, color:operator!=): New.
7239 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7240 to make access to the `components' array more comprehensible.
7241 * src/libs/libgroff/color.cc: Implement new color support.
7242 (atoh): Small fixes.
7243 (color::read_encoding): Simplified for new troff intermediate color
7245 (default_color): New global variable.
7247 * src/roff/troff/input.cc (default_symbol): New global variable.
7248 (lookup_color): Use it.
7249 (default_black): Removed.
7250 (do_glyph_color, do_fill_color): Simplified.
7251 (define_color): Handle default color.
7253 (do_if_request): Handle default color.
7254 * src/roff/troff/env.cc (environment::environment): Initialize
7255 colors with `default_color'.
7256 * src/roff/troff/node.cc (troff_output_file::put): Add method
7258 (troff_output_file::hex): Removed.
7259 (troff_output_file::fill_color, troff_output_file::glyph_color):
7260 Updated to include/color.h and libdriver/input.cc.
7262 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7263 fill color properly (identically to the outline color). \D'f...'
7264 doesn't work any more.
7265 All function calls to it updated.
7267 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7269 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7272 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7273 (ps_printer::sbuf_color): Make a real member instead of pointer.
7274 (ps_printer::fill_color, ps_printer::output_color): Removed.
7275 (ps_printer::ps_printer): Updated.
7276 (ps_printer::set_char): Ditto.
7277 (ps_printer::set_color): Use various color schemes.
7278 Use `put_color' method.
7279 (ps_printer::flush_sbuf): Don't set color.
7280 (ps_printer::fill_path): Take `environment' as parameter.
7281 Simplify color handling.
7282 (ps_printer::set_line_thickness): Renamed to ...
7283 (ps_printer::set_line_thickness_and_color): This (and updated).
7284 (ps_printer::set_color): Change second parameter from `complete'
7285 to `fill' which better describes what it does.
7286 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7287 and text in the right order.
7289 Remove branches for `f' and `F'; this is handled by
7291 * src/devices/grops/ps.h: Updated.
7292 * font/devps/prologue (FL): Redefined.
7293 ({F,C}r,k,g: New color functions (with and without filling).
7295 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7296 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7297 doc/groff.texinfo, NEWS: Updated.
7299 2002-01-20 Bernd Warken <bwarken@mayn.de>
7301 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7302 in this file for what has been changed.
7304 2002-01-19 Werner LEMBERG <wl@gnu.org>
7306 * test-groff: Fix GROFF_FONT_PATH.
7307 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7308 is read before .TH or .Dd is parsed.
7310 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7312 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7313 quadrant boundaries.
7315 2002-01-18 Werner LEMBERG <wl@gnu.org>
7317 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7320 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7322 * tmac/doc.common: Initialize %I register for the %I macro to
7323 avoid (harmless) warning.
7324 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7325 when in the SYNOPSIS section.
7327 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7329 * src/preproc/pic/lex.cc (get_token): Fix typo.
7331 2002-01-17 Werner LEMBERG <wl@gnu.org>
7333 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7335 2002-01-17 Larry Kollar <kollar@alltel.net>
7337 * tmac/groff_ms.man: Completely rewritten.
7339 2002-01-16 Werner LEMBERG <wl@gnu.org>
7341 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7343 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7345 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7347 (ps_printer::draw): Ditto.
7349 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7351 * tmac/groff_mdoc.man: Minor fixes.
7353 2002-01-13 Werner LEMBERG <wl@gnu.org>
7355 * man/groff_out.man: Some fixes.
7357 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7359 * doc/pic.ms: Fix typos.
7361 2002-01-12 Werner LEMBERG <wl@gnu.org>
7363 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7365 2002-01-10 Werner LEMBERG <wl@gnu.org>
7367 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7371 2002-01-09 Bernd Warken <bwarken@mayn.de>
7373 * man/groff_out.man: Revised.
7374 * man/roff.man: Minor fixes.
7375 * src/roff/troff/troff.man: Some reordering.
7377 2002-01-09 Werner LEMBERG <wl@gnu.org>
7379 * tmac/an-old.tmac: Add dummy macros for equation support.
7381 2002-01-07 Werner LEMBERG <wl@gnu.org>
7383 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7385 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7387 * tmac/groff_man.man: Small improvements.
7389 2002-01-07 Bernd Warken <bwarken@mayn.de>
7391 * man/groff_diff.man: Revised.
7393 2002-01-06 Werner LEMBERG <wl@gnu.org>
7395 * tmac/www.tmac: Remove extraneous backslash.
7397 2002-01-06 Bernd Warken <bwarken@mayn.de>
7399 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7401 2002-01-05 Werner LEMBERG <wl@gnu.org>
7403 Integrated groffer, contributed by Bernd Warken.
7405 * contrib/groffer/*: New.
7406 * Makefile.in, NEWS: Updated.
7408 2002-01-04 Werner LEMBERG <wl@gnu.org>
7410 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7411 registers defined in macro packages.
7412 Revising the ms part.
7414 2002-01-04 Larry Kollar <kollar@alltel.net>
7416 * doc/groff.texinfo: Add documentation for ms macros.
7418 2002-01-02 Werner LEMBERG <wl@gnu.org>
7420 First step in adding PS support for the Euro symbol. `eu' is the
7421 official Euro logo, `Eu' is a font-specific glyph variant.
7423 * font/devps/text.enc: Add `Euro' at position 9.
7424 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7425 * font/devps/symbolmap: Regenerated.
7429 2002-01-02 Bernd Warken <bwarken@mayn.de>
7431 * man/roff.man: Revised.
7433 2002-01-01 Bernd Warken <bwarken@mayn.de>
7435 * src/roff/groff/groff.man: Completely rewritten.
7437 2001-12-31 Werner LEMBERG <wl@gnu.org>
7439 * doc/Makefile: Updated.
7441 2001-12-30 Werner LEMBERG <wl@gnu.org>
7443 * tmac/www.tmac: Make all names of internal macros/registers/strings
7444 lowercase, and prepend `www-'.
7445 Other minor changes.
7446 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7448 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7450 Implement option `-b' in grohtml to set the HTML background colour.
7452 * src/devices/grohtml/post-html.cc (default_background): New global
7454 (html_printer::html_printer): Initialize `background' to
7455 `default_background'.
7456 (main): Implement option `-b'.
7458 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7460 * src/devices/grohtml/grohtml.man: Updated.
7461 * doc/Makefile (.ms.html): Use `-b'.
7462 * tmac/html.tmac: Don't set background color.
7464 Add new grohtml tag `.html-tl'.
7466 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7468 (title_desc::title_desc): Updated.
7469 (html_printer::troff_tag): Handle `.html-tl'.
7470 (html_printer::write_title): Use `with_h1'.
7471 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7472 (HTML-TL): New macro.
7474 Add support for unordered lists in HTML.
7476 * tmac/www.tmac (www-level): New auxiliary register.
7477 (www-level1, www-level2, www-level3): New auxiliary strings.
7478 (www-push-level, www-pop-level): New auxiliary macros
7479 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7483 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7484 (DEFAULT_VERTICAL_OFFSET): Removed.
7485 (IMAGE_BOARDER_PIXELS): Set to 0.
7486 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7487 (vertical_offset): Initialize with 0.
7488 (gsPaper): New global variable.
7489 (get_resolution): Scan for and return unsigned int.
7490 (get_papersize): New function to get paper length from devps/DESC.
7491 (determine_vertical_offset): New function.
7492 (createAllPages): Produce gray-level images and use proper page
7494 (createImage): Use `-quiet' option of pnmcrop.
7495 (addZ): Fix passing of `-Z'.
7496 (scanArguments): Fix handling of `-o'.
7497 (main): Call `determine_vertical_offset'.
7498 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7501 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7502 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7503 glyph descenders properly.
7505 * doc/homepage.ms: Include `gnubw.eps'.
7506 * doc/Makefile (gnubw.eps): New rule.
7507 (homepage.html): Depend on `gnubw.eps'.
7509 2001-12-25 Werner LEMBERG <wl@gnu.org>
7511 * src/roff/troff/input.cc (default_black): Fix return value.
7513 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7515 * tmac/doc-common (Dt): Change output of architecture strings.
7516 Do some syntax cleanup.
7517 * tmac/groff_mdoc.man: Updated.
7519 2001-12-23 Werner LEMBERG <wl@gnu.org>
7521 Adding an `itc' request (input line trap accepting \c).
7523 * src/roff/troff/env.h (environment): New member
7524 `continued_input_trap'.
7525 Make `do_input_trap' a friend function instead of `input_trap'.
7526 * src/roff/troff/env.cc (environment::environment,
7527 environment::copy): Updated.
7528 (environment::newline): Implement it.
7529 (do_input_trap): New function.
7530 (input_trap): Call `do_input_trap'.
7531 (input_trap_continued): New function.
7532 (init_env_requests): Updated.
7533 * src/roff/troff/TODO: Updated.
7535 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7538 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7540 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7542 * tmac/doc-common, tmac/doc-syms: Small updates.
7544 2001-12-22 Colin Watson <cjwatson@debian.org>
7546 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7548 2001-12-22 Bernd Warken <bwarken@mayn.de>
7550 * MANIFEST: New file.
7552 2001-12-22 Werner LEMBERG <wl@gnu.org>
7554 * src/preproc/grn/grn.man: Updated.
7556 2001-12-22 Solar Designer <solar@openwall.com>
7558 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7561 2001-12-19 Werner LEMBERG <wl@gnu.org>
7563 Implement a fallback character request `.fchar'.
7565 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7566 (is_fallback): New inline function.
7567 * src/roff/troff/input.cc (do_define_character): New function.
7568 (define_character): Call `do_define_character'.
7569 (define_fallback_character): New function.
7570 (init_input_requests): Add `fchar'.
7571 (charinfo::charinfo): Updated.
7572 (charinfo::set_macro): New argument to set `fallback' flag.
7573 * src/roff/troff/node.cc (make_glyph_node, make_node,
7574 node::add_char): Check `fallback' flag.
7575 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7577 2001-12-16 Werner LEMBERG <wl@gnu.org>
7579 * groff.texinfo: Document exact search algorithm for glyphs.
7581 2001-12-15 Werner LEMBERG <wl@gnu.org>
7583 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7584 the left side of $(MANPAGES) rule to make it always non-empty.
7586 2001-12-14 Werner LEMBERG <wl@gnu.org>
7588 * src/roff/troff/input.cc (default_black): Define default color
7589 `black' if not yet defined.
7591 2001-12-13 Werner LEMBERG <wl@gnu.org>
7593 Implement new string-valued register `.fn' to return the current
7594 real (internal) font name.
7596 * env.cc (environment::get_font_name_string): New function.
7597 (init_env_requests): Add `.fn' register.
7598 * env.h (environment): Updated.
7599 * node.cc (font_info): Make `get_font_name' a friend.
7600 (get_font_name): New function.
7603 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7605 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7607 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7609 2001-12-12 Werner LEMBERG <wl@gnu.org>
7611 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7613 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7615 * man/groff_diff.man: Adding documentation for \O.
7617 2001-12-10 Werner LEMBERG <wl@gnu.org>
7619 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7620 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7622 2001-12-09 Werner LEMBERG <wl@gnu.org>
7624 * man/roff.man: Revised.
7625 * src/roff/groff/groff.man: Replace man page references with a
7626 pointer to roff.man.
7628 2001-12-09 Bernd Warken <bwarken@mayn.de>
7630 * man/roff.man: Completely rewritten.
7632 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7634 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7636 2001-12-05 Werner LEMBERG <wl@gnu.org>
7638 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7640 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7641 order of initializers.
7644 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7646 * doc/groff.texinfo: Fix documentation of \O.
7648 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7649 html_text::do_table, html_text::do_emittext, html_text::do_para):
7650 Use `const' for first argument.
7651 (html_text::do_table): Use cast.
7652 * src/devices/grohtml/html-text.h: Updated.
7653 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7654 method for `const string &s'.
7655 * src/devices/grohtml/html.h: Updated.
7656 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7657 (ANCHOR_TEMPLATE): Modified.
7658 (manufacture_headings): New global variable to handle `-h' option.
7659 (is_subsection): Removed.
7660 (char_buffer::add_string): Add `const' to first argument.
7661 Protect against invalid string argument.
7662 Add method for `const string &s'.
7663 (text_glob): Completely redesigned.
7664 (page): Use `const' for strings and remove string length variable.
7665 (page::add_html): Removed.
7666 (page::add_end_encode): New member function.
7667 (to_unicode): Moved upwards.
7668 (title_desc, header_desc): Updated.
7669 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7671 (html_printer::is_bold, html_printer::make_bold): New member
7673 (html_printer::end_of_line): Updated.
7674 (generate_img_src, html_printer::do_auto_image,
7675 html_printer::do_title, html_printer::write_header,
7676 html_printer::determine_header_level, html_printer::do_heading,
7677 html_printer::do_linelength, html_printer::do_pageoffset,
7678 html_printer::do_indentation, html_printer::do_tempindent,
7679 html_printer::do_indentedparagraph, html_printer::do_break,
7680 html_printer::flush_sbuf, get_html_translation,
7681 html_printer::begin_page, html_printer::special): Rewritten to get
7682 rid of static string length limit.
7683 (html_printer::troff_tag): Added `.no-auto-rule'.
7684 (html_printer::flush_globs): Small fix.
7685 (html_printer::determine_space): Don't compute `space_width'.
7686 (html_printer::translate_to_html): Renamed to ...
7687 (html_printer::emit_html): This (with updates).
7688 (html_printer::write_header): Implement `-h' option.
7689 (html_printer::draw): Remove commented-out code. Handle `F'
7691 (html_printer::add_char_to_sbuf): Removed.
7692 (html_printer::add_to_sbuf): Rewritten.
7693 (html_printer::sbuf_continuation): Fixed.
7694 (html_printer::seen_backwards_escape, reverse,
7695 html_printer::remove_last_char_from_sbuf): Removed.
7696 (char_translate_to_html, str_translate_to_html): Removed.
7697 (html_printer::overstrike): New function member.
7698 (html_printer::set_char): Use it.
7699 (html_printer::do_body): New function member.
7700 (html_printer::~html_printer): Use it.
7701 (main): Handle `-h' option.
7703 * src/devices/grohtml/grohtml.man: Document -h switch.
7705 * src/preproc/html/pre-html.cc: Include searchpath.h
7706 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7707 (get_resolution): New function.
7708 (checkImageDir): Use `0777' permissions in mkdir()
7709 (write_start_image): Rewritten to use `\O[5...]'.
7710 (createImage, generateImages): Updated.
7711 (main): Handle `F' and `h' options.
7712 Use `get_resolution'.
7714 * src/roff/troff/input.cc (begin, end, image): Removed.
7715 (do_suppress): Take parameter.
7716 Handle modified syntax of `\O'.
7717 (token::next): Updated.
7718 (init_markup_requests): Removed.
7721 * src/roff/troff/div.h: Add declaration for begin_page().
7723 * tmac/color-html.tmac: Removed. Contents moved to...
7724 * tmac/html.tmac: Here. Set background color.
7725 * tmac/color.tmac: Removed. Contents moved to...
7726 * tmac/ps.tmac: Here.
7727 * tmac/www.tmac: Remove the title command when generating images
7729 (NO_AUTO_RULE): New macro.
7730 (HTML_DO_IMAGE): Use revised `\O' escapes.
7731 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7733 2001-12-02 Werner LEMBERG <wl@gnu.org>
7735 * tmac/groff_mdoc.man: Fix typo.
7737 2001-12-01 Colin Watson <cjwatson@debian.org>
7739 * man/roff.man: Fix typo.
7741 2001-11-29 Werner LEMBERG <wl@gnu.org>
7743 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7746 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7747 more than one argument to \D'f ...'.
7749 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7751 2001-11-28 Werner LEMBERG <wl@gnu.org>
7753 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7756 * tmac/groff_man.man: Minor cosmetic fix.
7758 2001-11-27 Werner LEMBERG <wl@gnu.org>
7760 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7761 tmac/groff_www.man: s/mwww/www/.
7763 2001-11-26 Werner LEMBERG <wl@gnu.org>
7765 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7766 * configure: Regenerated.
7767 * win32-diffs: Updated.
7769 * tmac/groff_mwww.tmac: Renamed to ...
7770 * tmac/groff_www.tmac: This.
7771 * tmac/mwww.tmac: Removed.
7772 * NEWS, tmac/Makefile.sub: Updated.
7774 2001-11-21 Werner LEMBERG <wl@gnu.org>
7776 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7777 Fix explanation of `\D' and `rt'.
7779 2001-11-20 Werner LEMBERG <wl@gnu.org>
7781 * tmac/an-old.tmac (an-header): Set header length equal to page
7783 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7787 2001-11-19 Werner LEMBERG <wl@gnu.org>
7789 * NEWS, man/Makefile.sub: Updated.
7791 2001-11-19 Bernd Warken <bwarken@mayn.de>
7793 * man/ditroff.man: New file.
7795 2001-11-17 Werner LEMBERG <wl@gnu.org>
7797 * man/groff_differences.man: Renamed to ...
7798 * man/groff_diff.man: This. Updated.
7799 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7801 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7802 * src/preproc/html/pushback.cc: This. Updated.
7803 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7804 * src/preproc/html/pushback.h: This.
7805 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7808 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7809 * src/libs/libgroff/htmlhint.cc: This.
7810 * src/libs/libgroff/Makefile.sub: Updated.
7812 * tmac/an-old.tmac (an-end): Fix page length.
7814 2001-11-16 Werner LEMBERG <wl@gnu.org>
7816 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7817 * man/Makefile.sub: Include groff_differences.man.
7818 * VERSION: Set to 1.18.
7819 * REVISION: Set to 0.
7821 2001-11-16 Bernd Warken <bwarken@mayn.de>
7823 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7824 the second dot (or ending macro name) to end a macro.
7825 * doc/groff.texinfo: Doc fix.
7827 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7829 * tmac/doc-common (doc-header): Handle very long document titles
7832 2001-11-16 Werner LEMBERG <wl@gnu.org>
7834 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7836 2001-11-15 Werner LEMBERG <wl@gnu.org>
7838 * src/roff/troff/troff.man: Revised and split into troff.man and...
7839 * man/groff_differences.man: New file.
7842 2001-11-13 Werner LEMBERG <wl@gnu.org>
7844 * tmac/an-old.tmac (TS, TE): New macros for table support.
7846 2001-11-12 Werner LEMBERG <wl@gnu.org>
7848 * src/include/lib.h: Provide a fix for emx to not include
7851 2001-10-27 Werner LEMBERG <wl@gnu.org>
7853 * src/roff/troff/input.cc (substring_macro): Fix computation of
7856 2001-10-20 Werner LEMBERG <wl@gnu.org>
7858 Undo change from 2001-08-28.
7860 * src/roff/troff/input.cc (have_input): New global variable.
7861 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7862 in compatibility mode.
7863 (process_input_stack): Use it.
7865 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7867 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7868 being handled as end-of-sentence characters,
7870 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7872 * src/roff/troff/input.cc (file_iterator): New members
7873 `suppress_newline_flag' and `seen_escape'.
7874 (file_iterator::next_file): Updated.
7875 (file_iterator::fill): Use it.
7876 (string_iterator): New member `suppress_newline_flag'.
7877 (string_iterator::fill): Set it.
7878 (get_color_element): Use MAX_COLOR_VAL.
7879 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7880 (no_fill): Don't set `env->ignore_next_eol'.
7881 (environment::newline): Handle `eol' tag properly.
7883 (environment::add_html_tag): Set `env->ignore_next_eol'.
7885 * src/roff/troff/env.h (environment): Updated.
7887 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7889 (html_printer::outstanding_eol): New member function.
7890 (html_printer::do_title): Use new functions.
7891 (html_printer::troff_tag): Test `id_eol_ce'.
7893 2001-10-10 Werner LEMBERG <wl@gnu.org>
7895 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7896 files work with -C also.
7898 2001-10-05 Werner LEMBERG <wl@gnu.org>
7900 * doc/pic.ms: Minor fix.
7901 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7902 as a valid command line switch.
7903 * src/devices/grohtml/post-html.cc (main): Ditto.
7905 * src/devices/grohtml/grohtml.man: Updated.
7906 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7908 2001-10-04 Werner LEMBERG <wl@gnu.org>
7910 Implementing color support in troff, pic, grops, and grohtml. These
7911 changes are based on a major patch provided by Gaius Mulley
7914 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7915 definitions with both hex values and fractions.
7917 New escapes: \m and \M for drawing and background color,
7918 respectively. This corresponds to the troff output commands `m'
7921 groff and troff accept command line switch `-c' to disable color
7922 output (which is automatically disabled in compatibility mode).
7924 New scaling indicator `f' for fractions (1f = 65536u).
7926 New conditional operator `m' to test for defined colors with `if'
7929 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7930 (or `outlined'), and `shaded' added to pic.
7932 * src/include/color.h: New file.
7933 * src/include/driver.h: Include it.
7934 * src/include/printer.h: Include color.h.
7935 (environment): New members `col' and `fill'.
7936 (printer): Remove `adjust_arc_center' member function.
7937 * src/include/Makefile.sub: Updated.
7939 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7941 Handle `m' and `DF' troff commands.
7942 * src/libs/libgroff/color.cc: New file.
7943 * src/libs/libgroff/Makefile.sub: Updated.
7945 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7947 (createImage): Fix computation of `y2'.
7949 (buffer::write_file_html): Remove calls to `stop'.
7951 * src/preproc/pic/common.h (common_output): New abstract function
7952 members `set_color', `reset_color', `get_last_filled', and
7953 `get_outline_color'.
7954 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7955 (object_spec): Add members `shaded' and `outlined'.
7956 * src/preproc/pic/output.h (output): `command' is now abstract.
7957 New function members `set_color', `reset_color', `get_last_filled',
7958 and `get_outline_color'.
7959 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7960 `outline[d]', and `shaded'.
7961 * src/preproc/pic/object.cc (output::command): Removed.
7962 (output::set_location): Moved to output.h.
7963 (graphic_object): Add protected members `outline_color' and
7965 Add member functions `set_outline_color', `get_outline_color', and
7967 (closed_object): Add member function `set_fill_color'.
7968 Add member `color_fill'.
7969 (graphic_object::print_text): Use `out->set_color' and
7971 (box_object::print, ellipse_object::print, circle_object::print,
7972 line_object::print, spline_object::print, arc_object::print): Ditto.
7973 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7974 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7975 `SHADED', making them `%left'.
7976 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7977 * src/preproc/pic/tex.cc (tex_output): New dummy function members
7978 `set_color', `reset_color', `get_last_filled', and
7979 `get_outline_color'.
7980 * src/preproc/pic/troff.cc (simple_output): New abstract function
7981 members `set_color', `reset_color', and `get_last_filled'.
7982 (simple_output::polygon, simple_output::circle,
7983 simple_output::ellipse): Use `get_last_filled'.
7984 (troff_output): New members `last_filled' and `last_outlined'.
7985 New function members `set_color', `reset_color', `get_last_filled',
7986 and `get_outline_color'.
7987 (troff_output::finish_picture): Use `reset_color'.
7988 (troff_output::set_fill): Test `last_filled'.
7989 * src/preproc/pic/pic.man: Updated.
7991 * src/roff/groff/groff.cc (main): Implement `-c' option.
7992 (synopsis, help): Updated.
7993 src/roff/groff/groff.man: Updated.
7995 * src/roff/troff/troff.h: Include color.h.
7996 (warning_type): Add WARN_COLOR.
7997 * src/roff/troff/env.h (environment): New members
7998 `{cur,prev}_{glyph,fill}_color'.
7999 New member functions `get_{prev_,}{glyph,fill}_color'.
8000 * src/roff/troff/env.cc: Initialize and implement them.
8001 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8002 Replace `NULL' with `0' everywhere for consistency.
8003 (lookup_color, default_black, do_glyph_color, do_fill_color,
8004 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8005 define_color): New functions.
8006 (token::next): Implement \M and \m escapes.
8007 (do_if_request): Implement `m' operator.
8009 (main): Implement `-c' option.
8010 (init_markup_requests): Add `defcolor' request.
8011 (warning_table): Add `color' warning.
8012 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8014 * src/roff/troff/node.cc (troff_output_file): New members
8015 `current_{page,glyph}color'. New member functions `put_hex',
8016 `glyph_color', and `fill_color'.
8017 (glyph_color_node::*, fill_color_node::*): Implement it.
8018 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8019 (parse_term): Add support for `f'.
8020 * src/roff/troff/troff.man: Updated.
8022 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8024 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8025 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8027 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8028 (tag_definition): Use `void *' for arg1.
8029 (html_text): New member functions `do_color' and `done_color'.
8030 Use `void *' for second parameter of `push_para' member function.
8031 New `push_para' member function with a single parameter.
8032 Use `char *' for parameter of `issue_table_begin' member funtion.
8033 New `issue_color_begin' member function.
8034 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8036 (html_text::issue_color_begin): New function.
8037 (html_text::issue_table_begin): Use `char *' for parameter.
8038 (html_text::start_tag, html_text::shutdown,
8039 html_text::check_emit_text): Updated.
8040 (html_text::push_para): Use `void *' for second parameter.
8041 Add same function with only one parameter.
8042 (html_text::do_*): Updated.
8043 (html_text::do_color, html_text::done_color): New functions.
8044 * src/devices/grohtml/post-html.cc (style): New member `col'.
8045 Mew member `style' with 6 parameters.
8046 (style::style, style::operator==): Updated.
8047 (html_printer::do_font): Use it.
8048 (html_printer::draw): Add dummy entry for `F'.
8049 (html_printer::set_char): Updated.
8050 * src/devices/grohtml/grohtml.man: Updated.
8052 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8053 trailing zeroes removed.
8054 (ps_printer): New members `sbuf_color', `fill_color', and
8056 Removed member `fill'.
8057 New member function `set_color'.
8058 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8059 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8060 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8062 * tmac/color-html.tmac, tmac/color.tmac: New files.
8063 * tmac/troffrc: Include them.
8064 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8065 * tmac/Makefile.sub: Updated.
8067 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8068 man/groff.man: Updated.
8069 * font/devps/prologue.ps: Define FC and CO functions.
8071 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8073 Fix incorrect cropping of images and incorrect handling of special
8074 characters. Fix handling of file names in \O.
8076 * src/include/geometry.h: New file.
8077 * src/libs/libgroff/geometry.cc: New file.
8078 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8080 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8082 (do_suppress): Updated.
8083 * src/roff/troff/node.cc: Include geometry.h.
8084 (troff_output_file::flush_tbuf): Fixed parameters to
8085 `check_output_limits'.
8086 (troff_output_file::check_charinfo): Ditto.
8087 (troff_output_file::determine_line_limits): Add support for `Da'
8090 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8091 Add new parameter `is_special' to decode special characters from
8093 (html_printer::do_title, html_printer::do_heading,
8094 html_printer::do_indentedparagraph,
8095 html_printer::translate_to_html, html_printer::special): Updated.
8097 2001-10-03 Werner LEMBERG <wl@gnu.org>
8099 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8100 Fix entry for config.h.
8101 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8102 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8103 * src/preproc/eqn/eqn.man: Document -d command line option.
8105 2001-09-27 Werner LEMBERG <wl@gnu.org>
8107 * man/groff.man: Use
8115 instead of the old code (`.ad .hy' after the table) to suppress
8116 incorrect hyphenation for grohtml output.
8118 2001-09-22 Werner LEMBERG <wl@gnu.org>
8120 * man/groff_font.man, man/groff_out.man: Minor fixes.
8122 2001-09-20 Werner LEMBERG <wl@gnu.org>
8124 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8125 Arnold Robbins <arnold@skeeve.com>).
8127 2001-09-09 Werner LEMBERG <wl@gnu.org>
8129 * configure: Regenerated with autoconf 2.52.
8131 * doc/groff.texinfo: Complete revision of indices.
8133 2001-09-07 Werner LEMBERG <wl@gnu.org>
8135 * doc/Makefile (clean): Updated to delete all indices.
8137 2001-09-05 Werner LEMBERG <wl@gnu.org>
8139 * src/roff/troff/troff.man: Remove superfluous line.
8141 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8142 given on the command line (or rather, if only the default warnings
8145 2001-09-03 Werner LEMBERG <wl@gnu.org>
8147 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8148 use .ne for TTY devices.
8150 2001-08-31 Werner LEMBERG <wl@gnu.org>
8152 * src/roff/troff/token.h, src/roff/troff/input.cc:
8153 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8155 2001-08-28 Werner LEMBERG <wl@gnu.org>
8157 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8158 * src/roff/troff/input.cc (token::next): Return
8159 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8161 (token::description): Updated.
8162 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8163 (token::add_to_node_list, token::process): Ignore
8164 TOKEN_TRANSPARENT_ESCAPE.
8166 2001-08-27 Werner LEMBERG <wl@gnu.org>
8168 * tmac/an-old.tmac: Fix `S' string.
8170 2001-08-26 Werner LEMBERG <wl@gnu.org>
8172 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8174 2001-08-25 Werner LEMBERG <wl@gnu.org>
8176 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8178 Many other minor fixes.
8180 * configure.ac: Add message at end to inform how to compile
8182 * configure: Regenerated.
8184 2001-08-24 Werner LEMBERG <wl@gnu.org>
8186 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8187 Updated to latest version of libc.
8189 2001-08-23 Werner LEMBERG <wl@gnu.org>
8191 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8192 Autoconf 2.50 and newer can handle this.
8193 * configure: Regenerated.
8195 2001-08-21 Werner LEMBERG <wl@gnu.org>
8197 * doc/pic.ms: Fix typo.
8198 * src/preproc/tbl/tbl.man: Document case of global options.
8200 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8202 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8203 handling of `CR' font.
8205 2001-08-20 Werner LEMBERG <wl@gnu.org>
8207 Use a config.h file.
8209 * src/include/lib.h: Include config.h.
8210 * All C files: Ditto (if necessary).
8211 * All C++ source and header files: Include lib.h first (if
8214 * src/include/config.hin: New file (autogenerated by autoheader).
8215 * stamp-h.in: New file.
8216 * configure.ac: Updated.
8217 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8218 (GROFF_ARRAY_DELETE): Simplified.
8219 * Makefile.sub (DISTCLEANFILES): Updated.
8220 Added targets for remaking config.status, config.hin, config.h,
8221 stamp-h.in, and stamp-h.
8222 * configure: Regenerated.
8224 2001-08-19 Werner LEMBERG <wl@gnu.org>
8228 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8230 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8231 (do_sprintf): Use snprintf().
8233 2001-08-18 Werner LEMBERG <wl@gnu.org>
8235 * src/libs/snprintf/*: Added an snprintf module written by Mark
8237 * src/libs/libgroff/Makefile.sub: Updated.
8238 * configure.ac: Add test for snprintf().
8239 * Makefile.in: Updated.
8240 * configure: Regenerated.
8242 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8245 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8247 * tmac/doc.tmac (Ex): New implementation.
8248 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8250 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8252 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8254 * tmac/groff_tmac.man: Updated.
8256 2001-08-13 Werner LEMBERG <wl@gnu.org>
8258 * src/preproc/tbl/tbl.man: Minor documentation update.
8260 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8262 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8263 * configure.ac: Add declaration test for gettimeofday().
8264 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8265 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8266 * configure: Regenerated.
8268 2001-08-11 Werner LEMBERG <wl@gnu.org>
8270 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8271 * configure.ac: Add declaration test for strcasecmp().
8272 * Makefile.in: Updated.
8273 * configure: Regenerated.
8274 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8275 this is necessary because groff's mkstemp.cc is C++.
8276 Add declaration conditionally for strcasecmp().
8278 2001-08-10 Werner LEMBERG <wl@gnu.org>
8280 Integrated pic2graph, contributed by Eric S. Raymond.
8282 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8284 * Makefile.in, NEWS: Updated.
8286 * src/preproc/tbl/tbl.man: Revised.
8288 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8290 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8292 2001-08-09 Werner LEMBERG <wl@gnu.org>
8294 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8297 2001-08-08 Paul Eggert <eggert@twinsun.com>
8299 * Makefile.sub (configure): Depend on configure.ac, not
8301 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8303 2001-08-07 Werner LEMBERG <wl@gnu.org>
8305 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8308 2001-08-06 Werner LEMBERG <wl@gnu.org>
8310 * src/roff/troff/troff.man: Improve documentation of -E option.
8312 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8314 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8317 2001-07-27 Werner LEMBERG <wl@gnu.org>
8319 * src/preproc/refer/refer.cc: Undo last change.
8320 * src/devices/grohtml/post-html.cc: Ditto.
8322 2001-07-26 Werner LEMBERG <wl@gnu.org>
8324 * src/preproc/refer/refer.cc: Include `lib.h'.
8325 * src/devices/grohtml/post-html.cc: Ditto.
8327 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8329 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8330 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8331 * Makefile.in: Comment updated.
8332 * configure: Regenerated.
8334 2001-07-25 Werner LEMBERG <wl@gnu.org>
8336 * src/preproc/pic/pic.cc: Removed.
8337 * src/preproc/pic/pic_tab.h: Removed.
8338 * src/preproc/refer/label.cc: Removed.
8340 * doc/Makefile (.ms.html): Don't use a file name extension in
8341 argument to grohtml's -I option.
8342 * Makefile.in (dist): Remove CVS directories.
8343 Call `distfiles' target.
8345 * src/devices/grohtml/grohtml.man: Add information about valid
8346 versions of pnmtopng.
8347 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8348 name instead of number.
8350 2001-07-24 Werner LEMBERG <wl@gnu.org>
8352 * doc/groff.texinfo: Minor fixes.
8354 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8356 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8359 2001-07-20 Werner LEMBERG <wl@gnu.org>
8361 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8362 * src/libs/libgroff/mkstemp.cc: New file.
8363 * src/libs/libgroff/mksdir.cc: New file.
8364 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8365 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8366 * src/libs/libgroff/Makefile.sub: Updated.
8367 * src/include/lib.h: Add mksdir() prototype.
8368 * src/include/posix.h: Define S_IXUSR if not yet defined.
8370 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8371 (createAllPages): Use mksdir() instead of current code.
8372 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8373 (main): [!HAVE_MKSTEMP]: Removed.
8375 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8376 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8378 * configure.ac: Add tests for stdint.h, sys/time.h, and
8380 Call new GROFF_xxx macros.
8381 * configure: Regenerated.
8382 * Makefile.in: Comments updated.
8384 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8386 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8387 instead of current code.
8388 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8389 * src/roff/groff/groff.cc (possible_command::insert_args): New
8391 (main): Use it for predriver handling instead of insert_arg().
8393 2001-07-19 Werner LEMBERG <wl@gnu.org>
8395 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8398 * src/include/posix.h: Define S_IWUSR if not yet defined.
8400 2001-07-18 Werner LEMBERG <wl@gnu.org>
8404 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8406 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8407 Some other minor fixes.
8408 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8410 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8412 Replace call to `troff' with `groff -Z' to make it aware of
8415 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8416 (troff_command, command_prefix): Removed.
8417 (alterDeviceTo): Use groff.
8418 (addZ): New function.
8419 (char_buffer::do_html): Use it.
8420 (scanArguments): Use TROFF_COMMAND.
8421 (findPrefix): Removed.
8423 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8425 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8427 * doc/pic.ms: Documentation fixes.
8429 2001-07-17 Werner LEMBERG <wl@gnu.org>
8431 Replace atexit() with global destructor.
8433 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8434 (xtmpfile_list_init): New global structure to deallocate
8435 xtmpfile_list on exit. Its destructor inherits most code from
8437 (remove_tmp_files): Deleted.
8438 (add_tmp_file): Simplified.
8440 2001-07-16 Werner LEMBERG <wl@gnu.org>
8442 Replace strdup() with strsave().
8444 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8445 (set_papersize): Use strsave() and a_delete.
8446 (main): Use strsave().
8447 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8448 removeAllPages): Use strsave() and a_delete.
8450 * configure.ac: Remove test for strdup.
8451 * Makefile.in: Comment updated.
8452 * configure: Regenerated.
8454 2001-07-15 Werner LEMBERG <wl@gnu.org>
8456 * win32-diffs: Updated.
8458 2001-07-14 Werner LEMBERG <wl@gnu.org>
8460 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8461 removing the old one.
8462 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8464 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8466 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8468 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8470 Merge -xwidth into -width. Add -xwidth functionality to -column
8473 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8475 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8476 string immediately following a leading dot starts with a valid mdoc
8478 Add similar code to the -column branch.
8479 (doc-Bl-usage): Updated.
8480 * groff_mdoc.man: s/-xwidth/-width/.
8482 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8484 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8485 running into centered or non-formatted text.
8487 2001-07-11 Werner LEMBERG <wl@gnu.org>
8489 Introduce short and long prefixes to have the selection at run-time
8490 whether there is a 8+3 limit for names of temporary files.
8492 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8493 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8494 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8496 (temp_init): New global structure to initialize above three
8498 (xtmptemplate): Use two parameters for long and short prefix.
8499 Simplify code use above three variables.
8500 (xtmpfile): Use long and short prefixes as parameters.
8501 * src/include/lib.h: Updated.
8503 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8505 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8506 (createAllPages, makeTempFiles): Updated.
8508 2001-07-09 Werner LEMBERG <wl@gnu.org>
8510 * REVISION: Increased to 3.
8512 Version 1.17.2 released
8513 =======================
8515 2001-07-07 Werner LEMBERG <wl@gnu.org>
8517 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8520 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8522 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8524 * tmac/groff_mdoc.man: Fix synopsis.
8526 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8528 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8529 Restore `doc-Pa-font'.
8531 2001-07-04 Werner LEMBERG <wl@gnu.org>
8533 * src/utils/indxbib/dirnamemax.c: Moved to ...
8534 * src/libs/libgroff/maxfilename.cc: Here.
8535 s/dir_name_max/file_name_max/.
8537 * src/include/lib.h: Add file_name_max.
8538 * src/utils/indxbib/indxbib.cc: Updated.
8539 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8542 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8544 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8546 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8547 REGION_TEMPLATE): New macros.
8548 (createAllPages, makeTempFiles): Use them.
8549 Include `nonposix.h'.
8550 (html_system): New function.
8551 (createAllPages, createImage): Use it.
8554 * tmac/www.tmac: Fix typos.
8556 2001-07-03 Werner LEMBERG <wl@gnu.org>
8558 * tmac/www.tmac: Disable hyphenation in normal text only if output
8560 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8561 * tmac/groff_mwww.man, NEWS: Updated.
8563 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8565 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8568 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8570 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8571 doc-display-ps-stack): Implement font and font size stack for
8574 2001-07-02 Werner LEMBERG <wl@gnu.org>
8576 * REVISION: Increased to 2.
8577 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8579 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8580 beginning of a line.
8581 * src/groff/grog/grog.sh: Ditto.
8583 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8585 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8588 2001-06-27 Werner LEMBERG <wl@gnu.org>
8590 Fix problems with preprocessor string for `man' program.
8592 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8593 Updated/added copyright.
8594 Moved Emacs's local variable to identify nroff mode to the end of
8595 the file; add local variable if missing.
8597 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8599 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8600 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8601 * configure: Regenerated.
8603 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8605 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8606 * configure: Regenerated.
8608 2001-06-24 Werner LEMBERG <wl@gnu.org>
8610 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8612 * doc/pic.ms: Fix typos.
8614 Version 1.17.1 released
8615 =======================
8617 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8619 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8620 * configure: Updated.
8622 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8624 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8626 * src/roff/troff/dic.cc (blank_line): Add html tag.
8628 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8630 * src/roff/troff/input.cc (do_suppress): Fix typo.
8632 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8634 Added two new options (-D and -I) to specify image names and a
8635 subdirectory to place the images in.
8637 Change syntax from \\Ox to \\O[x].
8639 * src/devices/grohtml/post-html.cc (main): Add options.
8641 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8642 Use `NULL' instead of `0' for null string pointers.
8643 (MAX_RETRIES): New macro.
8644 (lengthOfintToStr, intToStr, make_message): New functions.
8645 (makeFileName): Make function static.
8646 Implement -D and -I options.
8647 (checkImageDir): New function.
8648 (write_end_image, write_start_image): Use new syntax of \O.
8649 (createAllPages, removeAllPages): Implement -D and -I options. Use
8651 (createImage): Use make_message().
8652 (addps4html): Add guard for malloc().
8653 (usage, scanArguments): Updated.
8654 (makeTempFiles): Use mkstemp().
8655 (removeTempFiles): Use unlink().
8656 (findPrefix): Add guard for malloc().
8658 * src/roff/troff/input.cc (get_delim_file_name): New function to
8660 (do_suppress): Updated to parse new syntax.
8661 * src/devices/grohtml/grohtml.man: Updated.
8662 * tmac/www.tmac: Updated to new syntax.
8666 2001-06-15 Werner LEMBERG <wl@gnu.org>
8668 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8670 * src/devices/grohtml/grohtml.man: Minor improvements.
8672 2001-06-14 Werner LEMBERG <wl@gnu.org>
8674 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8676 2001-06-11 Werner LEMBERG <wl@gnu.org>
8678 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8679 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8681 * src/preproc/grn/grn.man: Add proper '\" string.
8683 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8685 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8687 2001-06-08 Werner LEMBERG <wl@gnu.org>
8689 Updated to autoconf 2.50.
8691 * configure.in: Renamed to...
8692 * configure.ac: This.
8693 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8694 (GROFF_OS390): Updated.
8695 * configure: Regenerated.
8697 2001-05-18 Werner LEMBERG <wl@gnu.org>
8699 * src/roff/troff/env.c, src/roff/troff/env.h,
8700 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8703 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8705 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8707 2001-05-16 Werner LEMBERG <wl@gnu.org>
8709 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8710 less than or equal zero; set it to 1 then.
8711 * src/roff/troff/node.h (node::node): Initialize `last'.
8713 2001-05-08 Werner LEMBERG <wl@gnu.org>
8715 * tmac/an-old.tmac: Make predefined strings work in compatibility
8717 Add troff version guard.
8718 * tmac/doc.tmac: Simplify version guard.
8720 2001-05-07 Werner LEMBERG <wl@gnu.org>
8722 The .ns and .rs requests are now honoured not only in the top-level
8723 but in all diversions (similar to UNIX troff).
8725 This change is based on a patch from Tadziu Hoffmann
8726 <hoffmann@usm.uni-muenchen.de>.
8728 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8729 (top_level_diversion): Remove `no_space_mode' member.
8730 * src/roff/troff/div.cc (diversion::diversion,
8731 top_level_diversion::top_level_diversion): Updated.
8732 (macro_diversion::output): Reset `no_space_mode'.
8733 (no_space, restore_spacing): Use `curdiv' unconditionally.
8734 (space_request, blank_line): Check `curdiv->no_space_mode'.
8735 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8736 `curdiv' unconditionally.
8737 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8740 2001-05-06 Werner LEMBERG <wl@gnu.org>
8742 Added two new requests `de1' and `am1' which are similar to `de' and
8743 `am' with the difference that compatibility mode is saved on entry,
8744 switched off during macro execution, and restored on exit.
8746 * src/roff/troff/input.h: Added two new special characters
8747 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8748 * src/roff/troff/input.cc (input_iterator): Added two member
8749 functions `save_compatible_flag' and `get_compatible_flag'.
8750 (input_stack): Ditto.
8751 (string_iterator): Ditto. Also add private member
8752 `saved_compatible_flag'.
8753 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8754 (calling_mode): New enumeration.
8755 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8756 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8757 (define_macro, define_indirect_macro, append_macro, ignore): Use
8759 (define_nocomp_macro, append_nocomp_macro): New functions.
8760 (init_input_requests): Updated.
8761 (do_request): Rename local variable `saved_compatible_flag' to
8762 `old_compatible_flag'.
8763 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8765 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8766 public and trap-invoked macros. As a consequence, the man macros
8767 work in compatibility mode also.
8769 2001-05-06 Solar Designer <solar@openwall.com>
8771 * Makefile.in: Use $(mandir).
8773 2001-05-06 Alexios Zavras <zvr@pobox.com>
8775 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8777 2001-05-05 Werner LEMBERG <wl@gnu.org>
8779 Added `.ns' number register: Returns 1 in no-space mode (if in
8780 top-level diversion), 0 otherwise.
8782 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8783 (init_div_requests): Updated.
8784 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8787 2001-05-04 Werner LEMBERG <wl@gnu.org>
8789 * src/roff/nroff/nroff.man: Improved documentation (especially
8792 2001-05-02 Werner LEMBERG <wl@gnu.org>
8794 Added `brp' request: This is \p as a request.
8796 * src/roff/troff/env.cc (environment::do_break): Add parameter
8798 (do_break_request): New function (was `break_request').
8799 (break_request): Calls `do_break_request'.
8800 (break_spread_request): New; calls `do_break_request'.
8801 (init_env_requests): Updated.
8802 * src/roff/troff/env.h: Updated.
8803 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8805 * REVISION: Increased to 1.
8806 * win32-diffs: Updated.
8808 2001-05-01 Werner LEMBERG <wl@gnu.org>
8810 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8811 * tmac/troffrc-end: Make it really work in compatibility mode.
8813 2001-04-27 Werner LEMBERG <wl@gnu.org>
8815 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8818 2001-04-22 Werner LEMBERG <wl@gnu.org>
8820 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8821 latest versions from glibc CVS archive.
8823 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8824 <c.zeelenberg@hccnet.nl>.
8826 2001-04-21 Werner LEMBERG <wl@gnu.org>
8828 * configure.in: Move check for mkstemp() to...
8829 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8830 * configure: Regenerated.
8832 * src/include/groff-getopt.h: Don't use variable names in
8835 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8836 * src/devices/grohtml/Makefile.sub,
8837 src/devices/grohtml/post-html.cc: Updated.
8839 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8841 * configure.in: Add special check for mkstemp().
8842 * src/libs/libgroff/tmpfile.cc: Use it.
8843 * src/utils/indxbib/indxbib.cc: Ditto.
8844 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8845 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8848 2001-04-20 Bruce Lilly <blilly@erols.com>
8850 `Version_string' as C++ object was not visible to linker from C
8852 Add `const' to `Version_string'.
8854 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8855 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8856 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8857 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8858 (scanArguments), src/preproc/refer/refer.cc (main),
8859 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8860 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8861 (main), src/devices/grohtml/post-html.cc (main),
8862 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8863 (main), src/utils/hpftodit/hpftodit.cc (main),
8864 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8865 (main), src/utils/lkbib/lkbib.cc (main),
8866 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8868 * src/roff/groff/pipeline.c: Add _UWIN.
8869 * src/include/nonposix.h: Ditto.
8871 2001-04-20 Werner LEMBERG <wl@gnu.org>
8873 * src/include/lib.h: Use HAVE_STRERROR.
8874 * src/roff/groff/pipeline.c: Ditto.
8875 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8876 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8877 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8878 * win32-diffs: Updated.
8879 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8881 2001-04-19 Werner LEMBERG <wl@gnu.org>
8883 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8884 instead of hardwired `"troff"'.
8885 (char_buffer::read_file): Remove unused variables.
8886 (char_buffer::write_file_troff): Ditto.
8887 (char_buffer::write_file_html): Ditto.
8888 (generateImages): Ditto.
8890 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8892 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8894 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8895 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8896 index_search_item::search1): Ditto.
8897 * src/roff/troff/node.h (width_list): Reorder members.
8898 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8899 (lookup_warning): Ditto.
8900 (prepend_string): Commented out.
8901 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8902 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8903 * src/preproc/tbl/main.cc (process_format): Ditto.
8904 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8906 * src/preproc/pic/pic.cc: Updated.
8907 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8908 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8909 * src/preproc/refer/command.cc (execute_command): Ditto.
8910 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8911 * src/preproc/refer/token.cc (lookup_token): Ditto.
8912 * src/preproc/soelim/soelim.cc: Ditto.
8913 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8914 (isHexDigit): Commented out.
8915 (pushBackBuffer::isString): Remove unused variable.
8916 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8918 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8919 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8921 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8922 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8923 lookup_paper_size): Ditto.
8924 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8925 (text_glob, element_list): Reorder members.
8926 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8928 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8929 return value to `void'.
8930 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8932 * src/devices/grohtml/html.h (simple_output::check_newline,
8933 simple_output::space_or_newline, simple_output::enable_newlines):
8935 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8937 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8938 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8939 output_ligatures, output_charset, read_map): Ditto.
8940 * src/utils/lookbib/lookbib.cc (main): Ditto.
8941 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8942 (do_file): Fix typo (`=' -> `==').
8943 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8944 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8946 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8948 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8949 Fix usage of GROFF_BIN_PATH.
8950 * src/roff/nroff/nroff.man: Updated.
8952 2001-04-18 Werner LEMBERG <wl@gnu.org>
8954 * NEWS: Fixing typos.
8957 Version 1.17 released
8958 =====================
8960 2001-04-17 Werner LEMBERG <wl@gnu.org>
8962 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8963 directory, not in $(srcdir).
8965 2001-04-16 Werner LEMBERG <wl@gnu.org>
8967 * doc/groff.texinfo: More info on conditionals.
8969 2001-04-15 Werner LEMBERG <wl@gnu.org>
8971 * doc/groff.texinfo: Added some info about groff internals.
8973 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8974 about missing special character only if the name is non-null.
8976 2001-04-14 Werner LEMBERG <wl@gnu.org>
8978 Removing the grohtml-old device driver which is now obsolete.
8980 * src/devices/grohtml-old/*: Removed.
8981 * font/devhtml-old/*: Removed.
8982 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8984 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8985 * test-groff (PATH): Updated.
8986 * tmac/Makefile.sub (NORMALFILES): Updated.
8987 * tmac/an-old.tmac: Remove special code for html-old device.
8988 Replace `html-or-html-old' register with `an-html'.
8989 * tmac/eqnrc: Updated.
8990 * tmac/html-old.tmac: Removed.
8991 * tmac/troffrc, tmac/troffrc-end: Updated.
8992 * tmac/www.tmac: Remove special code for html-old device.
8993 Replace `html-or-html-old' register with `www-html'.
8995 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8996 src/libs/libgroff/htmlindicate.cc (graphic_end),
8997 include/htmlindicate.h, src/preproc/grn/*.cc,
8998 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8999 single argument for consistency with rest of source code.
9001 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9003 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
9005 * src/roff/troff/troff.man: Fixing typos.
9007 2001-04-13 Werner LEMBERG <wl@gnu.org>
9009 * doc/pic.ms: Fixing many font switches.
9010 * doc/groff.texinfo: Fixes, additions.
9011 * MORE.STUFF: Updated.
9013 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
9015 * src/devices/grohtml/grohtml.man: Updated manual page regarding
9017 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9019 (removeTempFiles): New function to tidy up temporary files.
9020 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9021 Many fixes to do with the new inline suppress node and image regions
9023 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9024 (generate_img_src): New function.
9025 (html_printer::do_auto_image): Utilizes it.
9026 (do_heading, do_title): Include inline images within their contents.
9027 (html_printer::begin_page): Tidied up comments that are issued to
9028 the html output file.
9029 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9031 (text_glob::is_br): New method used by do_heading.
9032 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9033 equivalent diversion.
9034 * src/include/html-strings.h: Altered image tags to reflect the
9036 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9038 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9039 it is already inside a pic image. Only emit tags if the argument
9040 `-Tps:html' is present.
9041 * src/preproc/tbl/main.cc: Changes to reflect additional
9042 `html_end_suppress' parameter.
9043 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9044 emitted since the last eol tag was written.
9045 * src/roff/troff/env.h: New boolean `emitted_node'.
9046 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9047 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9048 * src/roff/troff/node.cc (check_charinfo): New method.
9049 (troff_output_file::determine_line_limits): Alterations to limit
9051 * tmac/www.tmac: Changes to reflect new suppress nodes.
9053 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9055 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9056 Escape the html_glyph in the buffer.
9057 (str_translate_to_html): Output the unescaped escaped_char.
9058 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9059 `frame=void', not `frame=none'. Add `border=0'.
9061 2001-04-12 Werner LEMBERG <wl@gnu.org>
9063 * PROBLEMS: Add some words on how to avoid wrapper macros.
9065 2001-04-11 Blake McBride <blake@florida-software.com>
9067 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9069 2001-04-11 Werner LEMBERG <wl@gnu.org>
9071 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9072 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9073 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9074 * Makefile.sub (DISTCLEANFILES): Here.
9076 * libs/libgroff/new.cc: Include `nonposix.h'.
9077 * win32-diffs: Updated.
9079 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9081 Added skeleton macro for defunct macros.
9083 Updated documentation.
9085 When inside displays, an empty input line warning should be
9086 suppressed. If another macro call is put inside a display,
9087 all subsequent empty lines found in that display caused a
9088 warning to be emitted.
9090 * tmac/doc.tmac (doc-defunct-macro): New macro.
9091 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9092 (doc-restore-global-vars): Fixed typo.
9093 (doc-empty-line): Check the `doc-display-depth' register to
9094 determine whether we are inside display or not.
9096 * tmac/doc-common: Removed `Or' and `Sf' registers.
9097 Moved obsolete `Ds' macro to doc.tmac.
9099 * tmac/groff_mdoc.man: Bump document date.
9100 Document `.Vt' under ``Variable Types''.
9101 Removed documentation for obsolete `.Or' macro.
9103 2001-04-10 Werner LEMBERG <wl@gnu.org>
9106 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9108 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9110 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9111 (usage): Add stream argument. Don't exit.
9112 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9113 Write --version output to stdout, not stderr.
9114 (usage): Add stream argument. Don't exit.
9115 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9116 (usage): Add stream argument. Don't exit.
9117 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9119 (usage): Add stream argument. Don't exit.
9120 (main): Write --help output to stdout, not stderr.
9121 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9122 (usage): Add stream argument. Don't exit.
9123 * src/devices/grops/ps.cc (main): Accept --help and --version.
9124 (usage): Add stream argument. Don't exit.
9125 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9126 (usage): Add stream argument. Don't exit.
9127 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9128 (main): Accept --help and --version.
9129 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9130 (main): Accept --help and --version.
9131 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9132 (scanArguments): Accept --help and --version.
9133 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9134 (main): Accept --help and --version.
9135 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9136 (usage): Add stream argument. Don't exit.
9137 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9139 (main): Accept --help and --version.
9140 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9141 (main): Accept --help and --version.
9142 * src/roff/groff/groff.cc (main): Accept --help and --version.
9143 (synopsis): Add stream argument.
9144 (help): Write --help output to stdout, not stderr.
9145 (usage): Add stream argument. Don't exit.
9146 * src/roff/grog/grog.pl: Accept --help and --version.
9148 * src/roff/grog/grog.sh: Accept --help and --version.
9149 * src/roff/nroff/nroff.sh: Accept --help and --version.
9150 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9151 (usage): Add stream argument. Don't exit.
9152 (main): Accept --help and --version.
9153 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9154 (usage): New function with stream argument, doesn't exit.
9155 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9156 (usage): New function with stream argument, doesn't exit.
9157 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9158 (usage): Add stream argument. Don't exit.
9159 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9160 (main): Accept --help and --version.
9161 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9163 (main): Accept --help and --version.
9164 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9165 (main): Accept --help and --version.
9166 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9167 (usage): Add stream argument. Don't exit.
9169 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9171 Fix indentation in SYNOPSIS.
9173 Updated to include changes of latest BSD mdoc version (basically,
9174 the only change is that `.Fn' and `.Fc' put a final semicolon after
9175 a function declaration in the SYNOPSIS section).
9177 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9178 (doc-in-synopsis-section): New variable. Updated all related
9180 (doc-indent-synopsis-active): New register.
9181 (Nd, Fn, Fo): Use it.
9182 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9183 `.Cd' with long argument line produces indented wrapped lines.
9184 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9185 undesirable line break to be output.
9186 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9188 (Fn, Fc): Add final `;' to output.
9189 (doc-save-global-vars, doc-restore-global-vars): Updated.
9190 * tmac/doc-common: Remove `Ex' register.
9192 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9195 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9197 * tmac/doc.tmac (Cd): Simplify code.
9198 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9200 2001-04-06 Werner LEMBERG <wl@gnu.org>
9202 Implement continuous underlining for nroff mode. To do that, a new
9203 request in the ditroff language has been added: `x u N' (N is 0
9206 \X and \Y are now transparent to end-of-sentence recognition.
9208 * src/include/printer.h (printer): Add `type' parameter to `special'
9210 * src/libs/libdriver/printer.cc (printer::special): Updated.
9211 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9213 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9214 specials of type `p'.
9215 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9216 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9217 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9218 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9219 (glyph::order): New method.
9220 (tty_printer::add_char): Use it.
9221 (tty_printer::special): New method.
9222 (tty_printer::end_page): Implement it.
9224 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9225 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9226 to set `no_init_string'.
9227 (special_node::tprint_start): Use it.
9228 (special_node::same, special_node::copy): Updated.
9229 (special_node::ends_sentence): New method.
9230 (troff_output_file::start_special): Add parameter to include
9231 inititialization of special conditionally.
9233 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9234 * src/roff/troff/env.cc (do_underline_special): New function.
9235 (environment::set_font): Use it.
9236 (do_underline): Use it. This was `underline()'.
9237 (underline): Call `do_underline()'.
9238 (continuous_underline): New function which calls `do_underline()'.
9239 (environment::newline): Use `do_underline_special()'.
9240 (init_env_requests): Updated.
9242 * NEWS, man/troff_out.man: Updated.
9244 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9246 * font/devutf8/R.proto: Fix code of 'shc'.
9248 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9250 Many fixes. Diag lists can now be nested also; additionally,
9251 `-compact' and `-offset' are supported.
9253 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9254 (doc-list-have-indent-stackXXX): A new register stack.
9255 (doc-have-diag-list): Removed.
9256 (Bl): Use `doc-list-have-indent-stackXXX'.
9258 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9259 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9260 (doc-set-vertical-and-indent): Ditto.
9261 (doc-next-list-depth): Removed.
9262 (doc-increment-list-stack): Updated.
9263 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9264 `doc-next-list-depth'.
9265 (doc-end-list, doc-end-column-list): Don't use
9266 `doc-increment-list-stack'.
9267 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9268 (doc-save-global-vars, doc-restore-global-vars): Updated.
9269 * tmac/doc-common: Updated.
9270 * tmac/groff_mdoc.man: Updated.
9273 2001-04-02 Werner LEMBERG <wl@gnu.org>
9275 * src/devices/grotty/grotty.man: Fix grammatical error.
9277 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9279 Remove .Ld from mdoc package; replace it with special handling of
9282 * tmac/doc-common: Remove `Ld' register.
9283 Uncomment `doc-volume-ds-*' strings.
9284 Remove `doc-operating-system-default'.
9286 * tmac/doc-syms (Ld): Removed.
9287 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9291 * tmac/groff_mdoc.man: Many fixes and updates.
9293 2001-03-29 Werner LEMBERG <wl@gnu.org>
9295 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9296 Bond <tkb@tkb.mpl.com>.
9297 * tmac/www.tmac: Save compatibility mode.
9299 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9301 * tmac/groff_mdoc.man: Many fixes.
9303 2001-03-28 Werner LEMBERG <wl@gnu.org>
9305 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9308 2001-03-27 Werner LEMBERG <wl@gnu.org>
9310 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9311 diversion. This fixes overlong tags.
9313 2001-03-26 Werner LEMBERG <wl@gnu.org>
9315 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9316 * tmac/doc-syms: Fix error messages.
9317 * tmac/an-old.tmac: Remove incorrect double backslashes.
9319 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9321 * tmac/Makefile.sub: Strip mdoc.local also
9322 * tmac/strip.sed: Fixed.
9324 2001-03-24 Werner LEMBERG <wl@gnu.org>
9326 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9327 selecting the font size.
9328 * tmac/groff_mdoc.man, NEWS: Document it.
9330 2001-03-23 Werner LEMBERG <wl@gnu.org>
9332 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9334 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9335 argument to restore previous font family.
9336 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9338 * doc/groff.texinfo: More fixes and additions (mainly for font
9339 manipulating commands).
9341 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9342 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9343 * tmac/Makefile.sub, NEWS: Updated.
9345 2001-03-23 Werner LEMBERG <wl@gnu.org>
9347 Replaced mdoc implementation. The new version is `state of the
9348 art', using almost all new features of groff 1.17 -- it won't run
9349 with older versions.
9351 * tmac/doc.tmac: Completely rewritten.
9352 * tmac/doc-common: Ditto.
9353 * tmac/doc-nroff: Ditto.
9354 * tmac/doc-ditroff: Ditto.
9355 * tmac/doc-syms: Ditto.
9356 * tmac/mdoc.local: New file.
9357 * tmac/groff_mdoc.samples.man: Replaced with ...
9358 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9359 * tmac/strip.sed: Updated.
9360 * tmac/Makefile.sub: Updated.
9363 * tmac/groff_man.man: Add `man.local' to the FILES section.
9365 2001-03-22 Werner LEMBERG <wl@gnu.org>
9367 * doc/groff.texinfo: Added many @noindent.
9368 Replaced @end_Example -> @endExample.
9369 Added info whether registers are r/o.
9370 Many other additions and fixes.
9372 2001-03-21 Werner LEMBERG <wl@gnu.org>
9374 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9375 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9376 Improved @Def* macros: Now the exact syntax of request, register,
9377 and escapes is shown.
9378 Added macros for parentheses and brackets to be used in @Def*.
9379 Many fixes and improvements of the documentation.
9381 2001-03-20 Werner LEMBERG <wl@gnu.org>
9383 * doc/groff.texinfo: Added new index: `st' (for strings).
9384 Added macros @Defstr(x).
9385 Added macro @Example (adding @group).
9386 Other minor improvements.
9388 2001-03-19 Werner LEMBERG <wl@gnu.org>
9390 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9391 `rq' for requests. `fn' is no longer used.
9392 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9395 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9396 number with name of man page.
9398 2001-03-19 Larry Kollar <kollar@alltel.net>
9400 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9403 2001-03-19 Werner LEMBERG <wl@gnu.org>
9405 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9406 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9407 * src/devices/grohtml/grohtml.man: Fixing typos.
9409 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9411 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9412 * tmac/groff_mwww.man: Remove .LINE macro
9413 * tmac/www.tmac (LINE): Add `.ti'.
9415 * src/devices/grohtml/post-html.cc (html_printer): New member
9417 (html_printer::emit_raw): Use it.
9418 (html_printer::do_linelength): Ditto.
9419 (html_printer::do_pageoffset): Ditto.
9420 (html_printer::do_indentation): Ditto.
9421 (html_printer::do_tempindent): Ditto.
9422 (html_printer::do_break): Ditto.
9423 (html_printer::begin_page): Ditto.
9424 (html_printer::do_indentedparagraph): New function.
9425 (html_printer::troff_tag): Handle `.ip'.
9426 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9427 Add `<td width=...>' handling.
9428 (html_text::do_table): Add parameter.
9429 (html_text::do_indent): Updated.
9430 * src/devices/groohtml/html-text.h: Updated.
9432 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9434 Introduced simple html tables to implement indentation.
9436 * src/devices/grohtml/html.h (word, word_list): New structures.
9437 (simple_output): Use it.
9438 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9439 (html_printer): Improve indentation handling.
9440 (html_printer::emit_raw): Set `in_table' element. Handle
9442 (html_printer::write_header): Move conditional downwards.
9443 Don't allow whitespace in tags.
9444 (html_printer::do_linelength): Handle line length and indentation
9446 (html_printer::do_pageoffset): Handle indentation conditionally.
9447 (html_printer::do_indentation): Ditto.
9448 (html_printer::do_tempindent): New function member.
9449 (html_printer::do_fill): Take care of indentation.
9450 (html_printer::do_flush): Finish table.
9451 (html_printer::do_links): Ditto.
9452 (html_printer::do_break): New function for handling `.br' and `.ti'.
9453 (html_printer::troff_tag): Use it.
9455 (html_printer::flush_globs): Fix.
9456 (html_printer::flush_page): Finish table.
9457 (html_printer::html_printer): Fix error message. Set up
9459 (html_printer::add_to_sbuf): Remove special handling of character
9461 (to_unicode): Remove `stop()'.
9462 (html_printer::write_title): Cleanup.
9463 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9464 (html_printer::~html_printer): Flush text and end the line.
9466 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9467 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9469 (html_text::start_tag): Disable newlines.
9470 (html_text::table_is_void): New function.
9471 (html_text::issue_table_begin): Ditto.
9472 (html_text::issue_table_end): Ditto.
9473 (html_text::push_para): Better table handling.
9474 (html_text::do_indent): New function.
9475 (html_text::do_table): Ditto.
9476 (html_text::done_table): Ditto.
9477 (html_text::do_tt): Handle PRE_TAG.
9478 (html_text::is_in_table): New function.
9479 (html_text::check_emit_text): Handle tables.
9480 (html_text::do_emittext): Use `nl()'.
9481 (html_text::do_para): Handle table.
9482 (html_text::remove_def): New function.
9483 * src/devices/grohtml/output.cc (word, word_list): Implement
9485 (simple_output::end_line): Flush last word.
9486 (simple_output::simple_comment): Ditto.
9487 (simple_output::begin_comment): Recoded.
9488 (simple_output::end_comment): Ditto.
9489 (simple_output::comment_arg): Removed.
9490 (simple_output::check_newline): Improve test and flush last word.
9491 (simple_output::space_or_newline): Improved.
9492 (simple_output::write_newline): Replaced with...
9493 (simple_output::nl): This.
9494 (simple_output::put_raw_char): Flush last word.
9495 (simple_output::check_space): Removed.
9496 (simple_output::put_translated_string): Ditto.
9497 (simple_output::put_string): Simplified.
9498 (simple_output::put_number): Updated.
9499 (simple_output::put_float): Ditto.
9500 (simple_output::put_symbol): Removed.
9501 (simple_output::enable_newlines): Add `check_newline()'.
9502 (simple_output::flush_last_word): New function.
9504 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9505 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9507 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9508 * tmac/an-old.tmac (TP): Ditto.
9510 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9512 * mdate.sh: Make it POSIX compliant.
9514 2001-03-09 Werner LEMBERG <wl@gnu.org>
9516 Added the `return' request to end a macro immediately. It simply
9517 pops iterators from the input stack until a macro iterator is found.
9519 * src/roff/troff/input.cc (input_iterator::is_macro,
9520 macro_iterator::is_macro): New member.
9521 (input_return_boundary): New class to signal an immediate return
9523 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9525 (input_stack::clear): Use it.
9526 (input_stack::pop_macro): New function.
9527 (while_request): Use `is_return_boundary()'.
9528 (return_macro_request): New function.
9529 (init_input_requests): Use it.
9531 * src/roff/troff/TODO: Updated.
9532 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9534 2001-03-08 Werner LEMBERG <wl@gnu.org>
9536 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9539 2001-03-07 Werner LEMBERG <wl@gnu.org>
9541 Make `\B' more rigid.
9543 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9545 (get_number_rigidly): New function.
9546 * src/roff/troff/input.cc (do_expr_test): Use it.
9547 * src/roff/troff/token.h: Updated.
9549 * src/roff/troff/request.h: Fix typo (init_html_request ->
9550 init_markup_request).
9552 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9554 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9555 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9556 are now `.begin', `.end', `.image'.
9558 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9559 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9560 Use add_char_to_sbuf().
9561 (to_unicode): New function.
9562 (char_translate_to_html): Changing type of `ch' parameter.
9564 (html_printer::~html_printer): Comment out doctype string.
9565 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9566 instead of `.html-end'.
9567 (write_start_image): Use `.begin' and `.image' instead of
9568 `.html-begin' and `.html-image'.
9569 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9570 (html_begin): Renamed to ...
9572 (html_end): Renamed to ...
9574 (html_image): Renamed to ...
9576 (init_html_requests): Renamed to ...
9577 (init_markup_requests): This.
9578 * tmac/www.tmac: Updated.
9580 2001-02-28 Bram <bram@avontuur.org>
9582 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9585 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9587 * doc/meref.me: Fixing some typos.
9589 2001-02-16 Werner LEMBERG <wl@gnu.org>
9591 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9592 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9593 * src/roff/troff/node.h: Updated.
9595 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9597 * tmac/groff_tmac.man: Fix typo.
9599 2001-02-16 Werner LEMBERG <wl@gnu.org>
9601 Fixing a bug which prevented proper end-of-sentence recognition
9602 between an `unformatted' box and the following text. As a
9603 consequence, vertical line distances are no longer preserved in
9604 boxes after a call to `.unformat' -- because boxes aren't
9605 line-oriented (contrary to diversions), this doesn't make sense
9608 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9610 (vertical_size_node::set_unformat_flag): New method.
9611 * src/roff/troff/node.hh: Updated.
9612 * src/roff/troff/input.cc (word_space_node::reread,
9613 hmotion_node::reread): Reset `unformat' flag after usage.
9614 (unformat_macro): Append only if `set_unformat_flag()' returns
9616 * src/roff/troff/troff.man: Updated.
9618 2001-02-15 Werner LEMBERG <wl@gnu.org>
9620 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9621 documentation of `asciify' and `unformat' requests.
9623 2001-02-13 Werner LEMBERG <wl@gnu.org>
9625 Redesigned the `unformat' request. It is no longer connected with
9626 `asciify' but rather uses new `reread()' methods if the `unformat'
9627 flag is set. Additionally, the handling of space characters after
9628 unformatting has been fixed so that they retain their width.
9630 * src/roff/troff/node.h (width_list): New structure to store
9631 original widths of spaces.
9632 (node): Added `unformat' member.
9633 Replaced `num_spaces' variable with `orig_width' list.
9634 * src/roff/troff/node.cc (*node::asciify,
9635 asciify_reverse_node_list): Removed `unformat_only' flag and related
9637 (word_space_node::asciify, word_space_node::word_space_node): Use
9639 (word_space_node::~word_space_node): New destructor.
9640 (word_space_node::copy): Updated to handle `orig_width'.
9641 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9642 (*node::merge_space): Update `orig_width' list if necessary.
9643 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9644 * src/roff/troff/enc.cc (environment::space_newline): Use
9646 (environment::space): Added method to handle space width and
9647 sentence space width as parameters. Use `width_list'.
9648 (environment::make_tab_node): Updated.
9649 * src/roff/troff/env.h: Updated.
9650 * src/roff/troff/input.cc (word_space_node::reread,
9651 unbreakable_space_node::reread, hmotion_node::reread): New methods
9652 to handle nodes specially if `unformat' flag is set.
9653 (do_asciify_macro): Renamed back to ...
9654 (asciify_macro): This.
9655 (unformat_macro): New implementation to simply set the `unformat'
9658 * MORE.STUFF: Added more info about deroff.
9660 2001-02-08 Werner LEMBERG <wl@gnu.org>
9662 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9663 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9664 and `add_self()' methods to avoid hyphenation. For example, the
9665 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9666 soft hyphen after `foo'. Now the hyphen list is correctly
9667 `foo<ignore><ignore>bar'.
9669 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9671 * tmac/groff_tmac.man: Fix `BIR' macro.
9673 2001-02-04 Werner LEMBERG <wl@gnu.org>
9675 A new escape sequence `\:', inserting a zero-width break point.
9677 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9678 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9680 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9682 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9683 and `asciify()' methods.
9684 * src/roff/troff/node.cc (space_node::space_node): Updated.
9685 (space_node::asciify): Handle `was_escape_colon'.
9686 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9688 Handle `\~' similar to other comparable requests.
9690 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9692 (token::next): Move creation of an unbreakable_space_node to...
9693 (token::add_to_node_list): Here.
9695 Fix a bug which sometimes prevented hyphenation of words connected
9696 with `\~' or `\ ' (and other escape sequences handled as
9697 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9698 (after a call to the `unformat' request).
9700 * src/roff/troff/env.h (environment::possibly_break_line,
9701 environment::hyphenate_line): Introducing `start_here' parameter.
9702 * src/roff/troff/env.cc (environment::space_newline,
9703 environment::space): Use it.
9704 (environment::possibly_break_line, environment::hyphenate_line):
9706 * src/roff/troff/input.cc (process_input_stack): Use it.
9707 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9708 space_char_hmotion_node, overstrike_node): Add
9709 `get_hyphenation_type()' method.
9710 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9711 if `unformat_only' is active.
9713 2001-01-30 Werner LEMBERG <wl@gnu.org>
9715 Implemented new read-only number register `.linetabs' which
9716 returns 1 if in line-tabs mode, 0 otherwise.
9718 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9719 * src/roff/troff/env.cc (get_line_tabs): New function.
9720 (init_env_requests): Use it.
9721 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9723 * VERSION, REVISION: Changing to 1.17.0.
9725 2001-01-28 Werner LEMBERG <wl@gnu.org>
9727 Fixed a bug which prevented hyphenation of words which are finished
9730 * src/roff/troff/token.h (token): Add enum type
9731 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9732 * src/roff/troff/input.cc (token::next, token::description,
9733 get_line_arg, token::add_to_node_list, token::process): Use it.
9735 2001-01-27 Werner LEMBERG <wl@gnu.org>
9737 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9738 * src/roff/troff/div.cc (do_divert): Use it.
9740 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9742 2001-01-25 Werner LEMBERG <wl@gnu.org>
9744 Adding the `linetabs' request. If set, tab distances are not
9745 computed relative to the input line but relative to the output line.
9747 * src/roff/troff/env.h (environment): New member `line_tabs'.
9748 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9749 (environment::environment, environment::copy): Updated.
9750 (environment::distance_to_next_tab): Use `line_tabs'.
9751 (init_env_requests): Register request.
9752 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9755 2001-01-24 Werner LEMBERG <wl@gnu.org>
9757 Introducing a new read-only register `.int' which is set to a
9758 positive value if the last output line is interrupted (i.e., if it
9761 * src/roff/troff/env.cc (init_env_requests): Add it.
9762 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9764 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9766 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9767 * src/preproc/html/pre-html.cc (findPrefix): New function which
9768 generates the troff executable name via the system prefix.
9769 * src/preproc/eqn/main.cc: Modified warning message.
9771 2001-01-23 Werner LEMBERG <wl@gnu.org>
9773 troff's `box' and `boxa' requests didn't preserve temporary
9776 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9777 `saved_target_text_length' members.
9778 * src/roff/troff/div.cc (do_divert): Use them.
9780 Tabs (but not yet leaders and fields) are now handled correctly by
9783 * node.h (hmotion_node): Add field `was_tab'.
9784 * env.cc (environment::make_tab_node): Set it.
9785 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9787 Added new request `unformat' which will, contrary to `asciify',
9788 preserve font information after unformatting (i.e., only nodes
9789 dealing with horizontal space are converted back to input
9792 * input.cc (asciify_macro): Renamed to ...
9793 (do_asciify_macro): this, having a new parameter `unformat_only'.
9794 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9795 (init_input_requests): Added `unformat'.
9796 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9797 parameter to control asciification process.
9798 * node.h (*_node::asciify): Ditto.
9799 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9801 2001-01-20 Werner LEMBERG <wl@gnu.org>
9803 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9805 2001-01-18 Werner LEMBERG <wl@gnu.org>
9807 * tmac/ps.tmac: Remove call of psold.tmac.
9808 * tmac/psold.tmac: Comment updated.
9809 * tmac/psnew.tmac: Removed since no longer needed.
9810 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9812 * font/devutf8/R.proto: Adding `shc' glyph.
9813 * font/devutf8/NOTES: Updated.
9815 * test-groff: Updated.
9817 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9819 First cut of the new html device driver. Changes to pre-html and
9820 the new grohtml are too numerous to be documented here.
9822 Stuff related to `html' has been renamed to `html-old' and `html2'
9823 stuff has been renamed to `html' (including directories). The new
9824 html device driver is therefore invoked as `-Thtml'.
9826 Added new `\O' escape to suppress output (needed by html driver).
9828 Added functions and code to pass info about input-level commands
9829 (`.in', `.fl', etc.) to html driver.
9831 Three new functions (.html-begin, .html-end, and .html-image) for
9832 better html handling: `html-begin' will execute the remaining line
9833 if at the outermost nesting level, increasing an internal counter.
9834 `html-end' does the same but decreases the internal counter.
9835 `html_image' puts its arguments into a special node (suppress_node)
9836 to define an image region.
9838 The `output' request has been removed.
9840 * tmac/html-tags.tmac: Removed.
9841 * tmac/arkup.tmac: Updated and renamed to ...
9842 * tmac/www.tmac: New file.
9843 * tmac/markup.tmac Updated and renamed to ...
9844 * tmac/mwww.tmac: New file.
9845 * tmac/Makefile.sub: Updated.
9846 * tmac/an-old.tmac: Updated.
9847 * tmac/eqnrc: Updated.
9848 * tmac/groff_man.man
9849 * tmac/groff_markup.man: Updated and renamed to ...
9850 * tmac/groff_mwww.man: New file.
9851 * tmac/groff_tmac.man: Updated.
9852 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9853 * tmac/html.tmac: Updated and renamed from html2.tmac.
9854 * tmac/pspic.tmac: Updated html support.
9855 * tmac/s.tmac: Added html output support.
9856 * tmac/troffrc, tmac/troffrc-end: Updated.
9858 * Makefile.in, doc/Makefile: Updated.
9859 * doc/groff.texinfo: Added info about new `\O' escape.
9860 * doc/homepage.ms: Use `MAILTO' macro.
9862 * font/devhtml/DESC.proto: Add `C' font.
9863 * font/devhtml/Makefile.sub: Updated.
9864 * font/devhtml/R.proto: Minor fixes.
9865 * font/devhtml-old/Makefile.sub: Updated.
9867 * src/devices/grohtml-old/Makefile.sub: Updated.
9869 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9871 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9872 graphic_start): Add `inline' parameter. Update.
9873 (html_end_suppress, graphic_end): Update.
9875 * src/include/html-strings.h: New file.
9876 * src/include/htmlindicate.h: Comments updated.
9877 * src/include/printer.h: Updated.
9879 * src/preproc/eqn/main.cc (do_file, main): Updated.
9880 * src/preproc/pic/troff.cc (troff_output::start_picture,
9881 troff_output::finish_picture): Updated.
9882 * src/preproc/tbl/main.cc (process_input_file): Updated.
9884 * src/roff/groff/groff.cc (main): Updated.
9885 Pass device arguments to predrivers also.
9886 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9887 * src/roff/troff/env.h (environment): Updated.
9888 New elements `need_eol' and `ignore_next_eol' (for html output).
9889 * src/roff/troff/env.cc (environment::environment): Add initializers
9890 for `need_eol' and `ignore_next_eol'.
9891 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9893 (point_size, fill, no_fill, center, right_justify, line_length,
9894 indent, temporary_indent, break_request, handle_tab): Use
9896 (set_tabs): Use `add_html_tag_tabs()'.
9897 (environment::add_html_tag): Updated.
9898 (environment::do_break): Updated.
9899 * src/roff/troff/div.cc (space_request, flush_output): Use
9900 `environment::add_html_tag()'.
9901 * src/roff/troff/input.cc: Updated.
9902 New variable `html_level' to indicate nested `html-begin' requests.
9903 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9904 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9905 `force_tprint()' method.
9906 (token::next): Handle `\O'.
9907 (do_suppress): Implement it.
9908 (html_begin, html_end, html_image): New functions.
9909 (init_output_requests): Renamed to ...
9910 (init_html_requests): this.
9912 (macro::append_str, macro::append_unsigned, macro::append_int): New
9914 New variable `output_low_mark_miny' to limit minimal value of y.
9915 (reset_output_registers): Use it.
9916 (output_request): Removed.
9917 (get_output_registers): New function.
9918 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9919 (*_node): Added `force_tprint()' if necessary.
9920 (special_node): New elements `tf' and `get_tfont()'.
9921 (suppress_node): New class.
9922 * src/roff/troff/node.cc:
9923 New global variables `image_no' and `suppress_start_page'.
9924 (real_output_file): New method `is_on()'.
9925 (troff_output_file): New method `start_special(tfont)'.
9926 (troff_output_file::really_print_line): Use `tprint' conditionally.
9927 (real_output_file::print_line): Updated.
9928 (real_output_file::on): Updated.
9929 (*_node): Added `force_tprint()'.
9930 (special_node::special_node): Initializer updated.
9931 (special_node::same, special_node::copy, special_node::tprint_start):
9933 (get_reg_int, get_reg_str): New functions.
9934 (suppress_node::*): New methods.
9935 New global variables last_position, last_image_filename;
9936 (min): New inline function.
9937 * src/roff/troff/reg.h, src/roff/troff/request.h,
9938 src/roff/troff/troff.h: Updated.
9940 2001-01-13 Werner LEMBERG <wl@gnu.org>
9942 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9943 documentation of `asciify' request.
9945 2001-01-12 Werner LEMBERG <wl@gnu.org>
9947 * src/roff/troff/input.cc: Move definition of special characters
9948 like `ESCAPE_TILDE' to ...
9949 * src/roff/troff/input.h: New file.
9950 * src/roff/troff/Makefile.sub (HDRS): Add it.
9952 Extending the .asciify request to `unformat' space characters also.
9954 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9955 to count input space characters.
9956 Update constructors to take care of it.
9957 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9958 `ESCAPE_SPACE' instead of normal space.
9959 (word_space_node::asciify): New method.
9960 (unbreakable_space_node::asciify): New method.
9961 (word_space_node::merge_space): New method.
9962 * src/roff/troff/env.cc (environment::space_newline,
9963 environment::space): Add code to initialize `num_spaces' (using the
9964 constructor of `word_space_node').
9965 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9968 2001-01-09 Werner LEMBERG <wl@gnu.org>
9970 * man/groff_char.man: Use table header traps only conditionally.
9972 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
9974 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9976 2001-01-08 Werner LEMBERG <wl@gnu.org>
9978 Introducing the `box' and `boxa' requests which are similar to
9979 `di' resp. `da' but omitting a partially filled line (which is
9980 restored after ending the diversion).
9982 * src/roff/troff/div.h (diversion): Add elements to save partially
9984 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9985 partially filled line.
9986 (divert, divert_append): Updated.
9987 (box, box_append): New functions.
9988 (init_div_requests): Use them.
9989 * src/roff/troff/env.h (environment): do_divert() is now a friend.
9990 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9992 * doc/groff.texinfo: Fix documentation of `lf' request.
9994 2000-12-25 Werner LEMBERG <wl@gnu.org>
9996 * src/roff/troff/troff.man, NEWS: Document `writem' request.
9998 2000-12-21 Werner LEMBERG <wl@gnu.org>
10000 Ignore `ss' request if in compatibility mode.
10002 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10003 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10004 * src/roff/troff/env.cc (space_size): Use it.
10006 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10007 `ss' request in nroff mode.
10009 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10012 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
10014 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10016 2000-12-13 Werner LEMBERG <wl@gnu.org>
10018 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10019 * src/preproc/eqn/neqn.man: Small fixes and additions.
10021 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
10023 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10026 * src/preproc/eqn/neqn.man: New file.
10028 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10031 * tmac/e.tmac: Add `T&' macro.
10032 Fix `indent cannot be negative' warning.
10033 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10035 2000-12-07 Werner LEMBERG <wl@gnu.org>
10037 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10039 2000-12-06 Werner LEMBERG <wl@gnu.org>
10041 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10044 * MORE.STUFF: Added info about deroff for djgpp.
10046 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10047 documentation of -rcR switch.
10049 2000-12-03 Werner LEMBERG <wl@gnu.org>
10051 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10052 if -rcR=1 (which is now the default in nroff mode), a single, very
10053 long page is created instead of multiple pages: All `ne' and `wh'
10054 requests are put into conditionals; a new macro `an-end' is added to
10055 be called with `em'.
10057 Some other minor cleanups.
10059 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10061 2000-12-02 Werner LEMBERG <wl@gnu.org>
10063 Fixing a bug which prevented hyphenation in words followed
10064 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10066 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10067 Adding possibly_break_line().
10068 * src/roff/troff/env.h (environment): Make possibly_break_line()
10071 Make `\~' usable in .tr request.
10073 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10074 (token): Add stretchable_space().
10075 * src/roff/troff/input.cc (token::next, token::delimiter,
10076 token::description, process_input_stack, do_translate,
10077 add_to_node_list, token::process): Use it.
10078 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10079 for adjusting the space.
10080 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10081 for stretchable space.
10082 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10083 (make_node): Add code for stretchable space.
10084 * src/roff/troff/env.cc (environment::add_char): Use it.
10085 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10086 (get_copy, token::next, transparent_translate, asciify): Use it.
10088 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10089 doc/groff.texinfo: Updated.
10090 * man/groff.man: Small reorderings.
10092 2000-11-23 Werner LEMBERG <wl@gnu.org>
10095 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10097 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10098 `safer_macro_path' to -M option.
10099 * src/roff/troff/troff.man: Fixes.
10101 2000-11-22 Werner LEMBERG <wl@gnu.org>
10103 Use safer path (except for config files) if -U isn't specified. Add
10104 a special macro path (without home and current directory) for config
10105 files. Add home directory to unsafe path for consistency. Don't
10106 include the home directory in the font path.
10108 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10110 * src/include/macropath.h: Add `config_macrp_path'.
10111 * src/libs/libgroff/fontfile.cc: Fix font path.
10112 * src/roff/troff/input.cc (process_startup_file): Use
10113 `config_macro_path'.
10114 (main): Select unsafe path if -U is given.
10116 * src/preproc/eqn/main.cc (main): Fixing search path for
10117 configuration file.
10118 * src/preproc/eqn/eqn.man: Updated.
10120 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10123 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10124 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10125 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10126 src/devices/grotty/grotty.man: Updated.
10128 * Makefile.in: Fix comments.
10130 2000-11-17 Werner LEMBERG <wl@gnu.org>
10132 * tmac/safer.tmac: Empty file added (again) for compatibility
10134 * tmac/Makefile.sub: Updated.
10136 2000-11-16 Werner LEMBERG <wl@gnu.org>
10138 * src/devices/grodvi/dvi.cc (main),
10139 src/devices/grohtml2/post-html.cc (main),
10140 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10141 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10142 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10143 (main), src/preproc/html2/pre-html.cc (main),
10144 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10145 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10146 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10147 (main), src/utils/hpftodit/hpftodit.cc (main),
10148 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10149 (main), src/utils/lookbib/lookbib.cc (main),
10150 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10151 (main): Use stdout for -v.
10152 * src/roff/groff/groff.cc (run_commands),
10153 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10154 to make direct printing to stdout possible.
10155 * src/roff/groff/pipeline.h: Updated.
10157 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10158 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10159 * src/utils/afmtodit/afmtodit.man: Updated.
10161 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10162 (version): New function.
10164 * src/utils/addftinfo/addftinfo.man: Updated.
10166 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10167 Fixing copyright dates.
10169 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10172 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10175 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10177 2000-11-15 Werner LEMBERG <wl@gnu.org>
10179 In all programs, make -v return immediately with exit status 0 to
10180 be compliant with the GNU standard.
10182 * src/devices/grodvi/dvi.cc (main),
10183 src/devices/grohtml2/post-html.cc (main),
10184 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10185 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10186 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10187 (main), src/preproc/html2/pre-html.cc (main),
10188 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10189 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10190 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10191 (main): Implement it.
10194 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10195 and postprocessors to the -v option.
10197 * src/roff/grog/grog.pl: Implement -v.
10198 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10199 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10201 * src/roff/nroff/nroff.sh: Implement -v.
10202 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10203 * src/roff/nroff/nroff.man: Updated.
10205 * src/preproc/eqn/main.cc (main): Fix comment typo.
10207 * MORE.STUFF: Added info about djgpp port of grap.
10209 2000-11-14 Werner LEMBERG <wl@gnu.org>
10211 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10212 mode (or rather, implemented non-compatibility mode).
10213 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10215 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10216 replacing it -- we don't find gxditview otherwise.
10217 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10219 * src/preproc/pic/depend: Removed. Unnecessary.
10221 Implemented dummy keyword `solid' in pic for compatibility with
10224 * lex.cc (lookup_keyword): Added `solid'.
10225 * pic.y: Added SOLID with dummy rule.
10226 * pic.cc, pic_tab.h: Regenerated.
10227 * doc/pic.ms: Updated.
10229 2000-11-13 Werner LEMBERG <wl@gnu.org>
10231 For security reasons, don't use the current directory but the home
10232 directory while searching and scanning troffrc and troffrc-end.
10233 Similarly, replace the current directory with the home directory
10236 * Makefile.in (fontpath, tmacpath): Remove current directory.
10238 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10239 two parameters `add_home' and `add_current'.
10240 (search_path::~search_path, search_path::command_line_dir,
10241 search_path::open_file): Remove tests for `dirs' being zero.
10242 * src/include/searchpath.h: Adjust.
10243 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10244 `safer_macro_path'.
10245 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10247 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10248 * src/roff/troff/input.cc: Use `mac_path', initialized with
10250 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10251 * src/roff/troff/env.cc: Use `mac_path'.
10253 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10255 * NEWS, man/roff.man, src/roff/troff/troff.man,
10256 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10259 2000-11-12 Werner LEMBERG <wl@gnu.org>
10261 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10263 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10264 * configure.in: Fix typo in comment.
10265 * configure: Regenerated.
10267 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10270 2000-11-08 Werner LEMBERG <wl@gnu.org>
10272 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10274 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10275 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10278 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10279 * tmac/Makefile.sub (install_data): Create
10280 $(systemtmacdir) and $(localtmacdir).
10281 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10282 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10283 NEWS, doc/groff.texinfo: Updated and minor fixes.
10285 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10286 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10287 $(systemtmacdir) since the wrapper files are platform-dependent.
10289 2000-11-01 Werner LEMBERG <wl@gnu.org>
10291 * doc/groff.texinfo: Fix typo.
10293 2000-10-26 Werner LEMBERG <wl@gnu.org>
10295 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10296 tmac.doc.old -> doc-old.tmac
10297 tmac.an.old -> an-old.tmac
10299 * tmac/tmac.*: Moved to ...
10300 * tmac/*.tmac: this.
10301 * tmac/man.local: Fix comment.
10302 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10303 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10304 Added some `FILES' sections. More use of @...@ directives. Other
10306 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10307 * doc/homepage.ms, doc/groff.texinfo: Updated.
10308 * man/groff.man, man/roff.man: Updated.
10309 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10310 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10311 src/devices/grotty/grotty.man: Updated.
10312 * src/preproc/pic/pic.man: Updated.
10313 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10314 instead of -mdoc.old.
10315 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10316 * src/roff/nroff/nroff.man: Updated.
10319 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10321 * tmac/mm.diff: Removed -- it has no use now since the mm package
10324 * tmac/*: Removed trailing spaces.
10326 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10327 the tmac subdirectory also).
10329 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10330 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10331 stuff since it is no longer needed.
10333 * README, PROBLEMS: Updated.
10335 2000-10-25 Werner LEMBERG <wl@gnu.org>
10337 Invert current behaviour: Search first FOOBAR.tmac, then
10340 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10341 (open_mac_file, macro_source): Implement it.
10342 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10343 doc/groff.texinfo, NEWS: Document it.
10345 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10346 Small documentation improvements.
10348 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10349 subdirectory also).
10351 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10353 2000-10-24 Werner LEMBERG <wl@gnu.org>
10355 Add local tmac directory (groff/site-tmac).
10357 * Makefile.in: Add $(localtmacdir).
10358 (uninstall_dirs): Add $(localtmacdir).
10359 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10360 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10361 in $(localtmacdir). Create $(localtmacdir).
10362 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10363 Updated and minor fixes.
10365 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10367 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10369 2000-10-23 Werner LEMBERG <wl@gnu.org>
10371 Move hyphen.us to tmac directory.
10373 * src/roff/troff/hyphen.us: Removed.
10374 * src/tmac/hyphen.us: Added.
10375 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10377 Change installation structure for data files from .../groff/... to
10378 .../groff/<version><revision>/... to be conform with other GNU
10381 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10382 doc/Makefile: Implement it.
10383 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10384 * configure: Updated.
10385 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10386 * NEWS: Document it.
10387 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10388 @MACRODIR@ instead of hard-coded directories.
10390 2000-10-22 Werner LEMBERG <wl@gnu.org>
10392 Implement $GROFF_BIN_PATH environment variable (which defaults to
10393 $bindir) used for child programs of groff and similar wrappers.
10395 * gendefs.sh: Improve documentation.
10396 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10397 src/preproc/eqn/Makefile.sub (neqn),
10398 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10399 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10401 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10402 $GROFF_PATH__ (the latter for communication with troff).
10403 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10405 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10406 doc/groff.texinfo: Document it.
10408 * doc/groff.texinfo: Improve documentation of troff's -a option.
10410 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10412 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10413 non-intrusive eol marker.
10414 (troff_output_file::determine_line_limits): New function.
10415 (troff_output_file::draw): Use it.
10416 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10417 output_pending_lines() instead of output_line().
10418 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10419 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10420 createImage): Small fixes.
10422 2000-10-14 Werner LEMBERG <wl@gnu.org>
10424 Replace tmac.safer with a real secure solution.
10426 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10427 system_request, pipe_output): Disable requests if in safer mode.
10428 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10429 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10430 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10431 doc/groff.texinfo, src/roff/groff/groff.man,
10432 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10434 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10435 (resource_manager::output_prolog): Replace setenv() with putenv().
10437 2000-10-09 Werner LEMBERG <wl@gnu.org>
10439 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10440 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10441 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10442 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10443 compilation errors with some compilers. It seems that this code
10444 is no longer necessary -- if yes, it is easy to add some #ifdef's
10445 for that particular old-fashioned compiler.
10447 * MORE.STUFF: Added info about Meta-tbl.
10449 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10451 2000-10-07 Werner LEMBERG <wl@gnu.org>
10453 Adding a new escape sequence \B'...': If the string between
10454 the delimiters is a valid numeric expression, return the character
10455 `1', and `0' otherwise. This is an analogon to \A.
10457 * src/roff/troff/input.cc (do_expr_test): Implement it.
10458 (token::next): Use it.
10459 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10461 * tmac/tmac.trace: Made independent from escape character.
10463 2000-10-06 Werner LEMBERG <wl@gnu.org>
10465 Adding a new request .dei: define indirect. The first and second
10466 parameter of .dei are taken from string registers instead directly;
10467 this very special request is needed to make tmac.trace independent
10468 from the escape character (which might even be disabled).
10470 * src/roff/troff/input.cc (do_define_macro): Implement it.
10471 (define_macro_indirect): New function.
10472 (init_input_requests): Use it.
10474 Adding two requests .ecs and .ecr: Save and restore the escape
10475 character. These two requests are needed to make tmac.trace
10476 independent from the escape character (which might even be
10479 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10481 (init_input_requests): Use it.
10483 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10485 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10487 Adding a new option -P and new environment variable GROPS_PROLOGUE
10488 to grops, selecting a different prologue file (minor modifications
10491 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10492 src/devices/grops/ps.cc (main): Implement it.
10493 * src/devices/grops/grops.man, NEWS: Document it.
10495 2000-09-22 Werner LEMBERG <wl@gnu.org>
10497 * INSTALL: Add info about selecting paper format.
10499 2000-09-21 Werner LEMBERG <wl@gnu.org>
10501 * src/roff/troff/input.cc (main): Fixing compiler warning.
10502 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10503 strings.h from the former to the latter.
10504 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10505 stuff from the former to the latter.
10507 2000-09-11 Werner LEMBERG <wl@gnu.org>
10509 Implementing two new requests .tm1 and .tmc: The former is similar
10510 to .tm but can output leading spaces; its syntax is similar to
10511 defining a string, i.e., a `"' can be used to mark the beginning of
10512 the string to be written to stderr: `.tm1 " test'. The latter is
10513 similar to .tm1 but doesn't write out a final newline character.
10515 * src/roff/troff/input.cc (terminal1, terminal_continue,
10516 do_terminal): New functions.
10517 (init_input_requests): Use them.
10518 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10520 2000-09-09 Werner LEMBERG <wl@gnu.org>
10522 * tmac/groff_mdoc.samples.man: Small fixes.
10524 2000-09-08 Werner LEMBERG <wl@gnu.org>
10526 * tmac/groff_mdoc.man: Fixing typo.
10528 2000-09-02 Werner LEMBERG <wl@gnu.org>
10530 Implementing a .nop request which does nothing.
10532 * src/roff/troff/input.cc (nop_request): New function.
10533 (init_input_requests): Use it.
10534 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10536 2000-09-01 Werner LEMBERG <wl@gnu.org>
10538 * doc/groff.texinfo: Added some comments.
10540 2000-08-30 Werner LEMBERG <wl@gnu.org>
10542 * src/roff/troff/TODO: Updated.
10544 2000-08-25 Werner LEMBERG <wl@gnu.org>
10546 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10548 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10550 * font/devps/generate/Makefile (SHELL): Define explicitly to
10551 "/bin/sh", for non-Unix platforms.
10552 (extraclean): Use a more portable "" quoting instead of a
10553 backslash (which doesn't work on DOS/Windows).
10555 * font/devlj4/generate/Makefile (extraclean): Ditto.
10557 * font/devdvi/generate/Makefile (extraclean): Ditto.
10559 2000-08-25 Werner LEMBERG <wl@gnu.org>
10561 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10562 src/roff/troff/troff.man: Document Eli's latest changes.
10564 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10566 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10567 macro file names of the form NAME.tmac as well as tmac.NAME.
10569 2000-08-25 Werner LEMBERG <wl@gnu.org>
10571 * src/include/posix.h: Remove definition of FILENAME_MAX.
10573 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10574 `sys_fatal' and `stop' function().
10576 * test-groff: Updated.
10578 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10580 Added the new troff command .output <arg> to suppress output (while
10581 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10582 registers (for passing the output dimensions to the output device).
10584 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10586 * src/roff/troff/node.h, src/roff/troff/node.cc
10587 (troff_output_file::really_print_line,
10588 ascii_output_file::really_print_line,
10589 supress_output_file::really_print_line): Use `width' parameter.
10590 (troff_output_file::really_on, troff_output_file::really_off,
10591 output_file::on, output_file::off, real_output_file::on,
10592 real_output_file::off, real_output_file::really_on,
10593 real_output_file::really_off): New functions.
10594 (real_output_file:public output_file): New variable `output_on'.
10595 (real_output_file::begin_page, real_output_file::copy_file,
10596 real_output_file::transparent_char, real_output_file::print_line):
10598 (real_output_file::print_line): Use check_output_limits.
10599 * src/roff/troff/reg.h, src/roff/troff/request.h,
10600 src/roff/troff/input.cc (assign_registers): New function to remove
10602 (do_ps_file): Use it.
10603 (check_output_limits, reset_output_registers, output_request,
10604 init_output_requests): New functions.
10605 (init_input_requests): Updated.
10607 Added new grohtml2 device and html2 preprocessor (coding
10608 not yet finished) which will eventually replace grohtml.
10610 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10612 * src/include/htmlindicate.h, src/include/htmlindicate
10613 (html_begin_suppress, html_end_suppress): New functions.
10614 * src/preproc/tbl/main.cc: Use it.
10615 * src/roff/groff/groff.cc: Add support for html2 device (which will
10616 automatically invoke the html2 preprocessor).
10617 * src/roff/troff/input.cc (is_html2): New variable.
10618 * src/roff/troff/troff.h, src/roff/troff/env.h,
10619 src/roff/troff/env.cc (environment::add_html_tag): New function
10621 (environment::do_break): Use it.
10622 * font/devhtml2/*: New files.
10623 * src/devices/grohtml2: New device.
10624 * src/preproc/html2: New preprocessor.
10625 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10627 2000-08-23 Werner LEMBERG <wl@gnu.org>
10629 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10631 2000-08-22 Werner LEMBERG <wl@gnu.org>
10633 * src/include/lib.h: Provide a fix for IRIX to not include
10636 2000-08-18 Werner LEMBERG <wl@gnu.org>
10638 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10639 since some non-GNU sed programs can't handle null regexps.
10640 * configure, src/preproc/eqn/Makefile.sub,
10641 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10643 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10644 bug (string.h and strings.h are both needed according to latest
10647 * MORE.STUFF: Added info about unroff and troffcvt.
10649 2000-08-08 Werner LEMBERG <wl@gnu.org>
10651 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10654 * tmac/tmac.man.old: Remove unused number register.
10656 * tmac.doc: Minor documentation fix.
10658 2000-08-07 Paul Eggert <eggert@twinsun.com>
10660 * src/roff/groff/pipeline.c (is_system_shell):
10661 Fix typo: "monocased_shell" no longer exists.
10663 2000-08-07 Paul Eggert <eggert@twinsun.com>
10665 Remove FILENAME_MAX limits.
10667 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10668 that the argument length is less than FILENAME_MAX.
10669 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10670 Use struct hack to allocate and free file name.
10671 (struct xtmpfile_list): fname is now part of the structure,
10672 not a pointer to another string.
10674 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10676 * src/include/posix.h: Add a default value for FILENAME_MAX.
10678 2000-08-06 Paul Eggert <eggert@twinsun.com>
10680 Add support for new BSD-style man pages (with ".Dd" instead of
10681 ".TH"), so that "groff -man" understands both styles, even
10682 when running "groff -man" on a host whose system man page
10683 macros don't support ".Dd".
10685 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10686 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10687 in case the system man macros don't define Dd or TH.
10689 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10690 * tmac/tmac.an: New one-line file.
10691 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10693 2000-08-06 Werner LEMBERG <wl@gnu.org>
10695 * src/roff/troff/troff.man: Fixing typos.
10697 Version 1.16.1 released
10698 =======================
10700 2000-07-31 Werner LEMBERG <wl@gnu.org>
10702 Preparing release 1.16.1.
10704 * REVISION: Revision number set to 1.
10705 * MORE.STUFF: Added info about port to DOS.
10706 * NEWS, win32-diffs: Updated.
10708 * src/include/nonposix.h: Remove first line -- this file is used
10711 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10714 2000-07-30 Werner LEMBERG <wl@gnu.org>
10716 * doc/texinfo.tex: Update to latest version.
10718 2000-06-28 Paul Eggert <eggert@twinsun.com>
10720 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10721 commands that fail. Don't assume that "export a=b" is valid shell
10722 syntax. This is needed for Solaris 2.5.1.
10724 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10725 comment about missing Solaris headers.
10727 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10729 2000-06-25 Werner LEMBERG <wl@gnu.org>
10731 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10734 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10736 * win32-diffs: Updated.
10737 * README.WIN32: Added CRs to make all Windows editors happy.
10739 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10740 src/roff/groff/pipeline.c).
10742 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10744 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10745 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10747 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10749 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10750 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10752 (main): Support non-Posix systems with several different styles of
10753 slash characters in file names.
10755 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10756 (main) [SET_BINARY]: Switch stdin into binary mode.
10758 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10759 (main): Support file names with several possible slash-type
10760 characters, as given by DIR_SEPS[] in nonposix.h.
10761 (main) [__MSDOS__]: If renaming the temporary index file fails
10762 because it has more than one dot in its trunk, replace the dot
10763 with an underscore and try again.
10764 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10766 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10768 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10769 (File::File): Open the input file in binary mode. Strip CR
10770 characters from each CR-LF pair.
10771 (xbasename): Support file names with several possible slash-type
10772 characters, as given by DIR_SEPS[] in nonposix.h.
10774 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10776 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10777 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10778 [!_POSIX_VERSION]: Define for traditional Unix systems.
10779 (real_output_file::real_output_file): Remove the MSVC-specific
10780 call to popen, use instead POPEN_WT, appropriately defined on
10781 nonposix.h. #include nonposix.h.
10782 (real_output_file::~real_output_file): Remove the MSVC-specific
10783 call to pclose, a suitable macro is now defined on nonposix.h.
10784 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10785 and WEXITSTATUS instead of assuming traditional Unix
10786 interpretation of the status returned by pclose.
10788 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10789 call to popen, use POPEN_RT instead (appropriately defined on
10790 nonposix.h). #include nonposix.h.
10791 (ps_bbox_request): Open the PostScript file in binary mode.
10792 Close the file after processing it.
10793 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10796 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10797 A version of run_pipeline that doesn't use `fork'.
10798 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10799 (system_shell_name, system_shell_dash_c)
10800 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10801 the ugliness of testing DOS/Windows file names for equality, and
10802 support both stock shells and ports of Unix shells.
10804 * src/roff/groff/groff.cc: #include nonposix.h.
10805 (BSHELL): Definition moved to nonposix.h.
10806 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10807 instead of a literal "-c".
10808 (xbasename): Support file names with several possible slash-type
10809 characters, as given by DIR_SEPS[] in nonposix.h.
10810 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10811 of literal strings.
10813 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10814 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10816 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10819 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10821 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10824 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10826 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10827 P_tmpdir is defined, use it instead of the literal "/tmp".
10828 (remove_tmp_files, add_tmp_file): New functions.
10829 (xtmpfile): Record temporary files and register an atexit function
10830 to delete them explicitly, instead of relying on the OS to do
10831 that, which doesn't work on non-Unix systems.
10833 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10834 (search_path::search_path): Use PATH_SEP instead of a literal
10836 (search_path::command_line_dir): Ditto.
10837 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10838 to support non-Posix systems.
10840 * src/libs/libbib/search.cc: #include nonposix.h.
10841 (search_list::add_file): Open the file in binary mode.
10843 * src/libs/libbib/linear.cc: #include nonposix.h.
10844 (file_buffer::load): Remove \r characters preceding \n from the
10847 * src/libs/libbib/index.cc: #include nonposix.h.
10848 (make_index_search_item): Open index_filename in O_BINARY mode.
10849 (index_search_item_iterator::get_tag): Ditto. Remove \r
10850 characters before \n characters.
10851 (index_search_item::check_files): Open files in binary mode.
10852 (index_search_item::munge_filename): Support DOS-style file names
10853 with backslashes and drive letters, use IS_ABSOLUTE.
10855 * src/devices/grops/ps.cc: #include nonposix.h.
10856 (main) [SET_BINARY]: Switch stdout to binary mode.
10858 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10859 (main) [SET_BINARY]: Switch stdout to binary mode.
10861 * src/devices/grolbp/lbp.cc: #include nonposix.h
10862 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10864 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10865 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10867 (main) [SET_BINARY]: Switch stdout to binary mode.
10868 [_MSC_VER]: Remove an explicit call to _setmode.
10870 * src/include/nonposix.h: New file.
10872 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10873 operation when building with DJGPP.
10874 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10875 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10878 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10880 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10881 etc. can include a semi-colon on DOS/Windows.
10882 (depend.temp): Use depend1.temp instead of depend.temp1, to
10883 prevent files from overerwiting each other on 8+3 filesystems.
10885 * gendef.sh (t): Change definition to work with DOS/Windows.
10887 doc/groff.texinfo: Apart of some typo corrections, I also changed
10888 some index entris, to make them more non-ambiguous, and also put
10889 @ignore around some parts that are not yet written, to allow the
10890 Info output be readable.
10892 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10894 Replaced specific checks for function declarations with a generic
10895 routine taken from GNU bfd.
10897 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10898 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10899 * configure.in: Use it.
10900 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10901 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10902 src/roff/groff/groff.cc: Use it.
10903 * Makefile.in, configure: Updated.
10905 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10907 * src/devides/grolbp/lbp.h: Removed unused variables.
10909 2000-05-31 Keith Thompson <kst@sdsc.edu>
10911 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10914 2000-05-31 Werner LEMBERG <wl@gnu.org>
10916 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10917 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10918 * configure.in: Use it.
10919 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10920 * configure, Makefile.in: Updated.
10922 * configure.in: Add test for strncasecmp().
10923 * src/include/lib.h: Use it.
10925 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10927 * src/preproc/grn/Makefile.sub: Add MLIB.
10929 2000-05-29 Nix <nix@esperi.demon.co.uk>
10931 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10933 2000-05-29 Werner LEMBERG <wl@gnu.org>
10935 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10937 * PROBLEMS: Small update.
10939 * src/devices/grolbp/lbp.cc: Various small fixes.
10941 2000-05-28 Keith Thompson <kst@sdsc.edu>
10943 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10945 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10947 2000-05-25 Werner LEMBERG <wl@gnu.org>
10949 * man/roff.man: Removed unused macro.
10951 2000-05-24 Werner LEMBERG <wl@gnu.org>
10953 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
10954 This is needed e.g. if you do
10955 `make distclean; ./configure; make dist'.
10957 Version 1.16 released
10958 =====================
10960 2000-05-23 Werner LEMBERG <wl@gnu.org>
10962 Adding font CWI (constant width italic) to devdvi.
10964 * font/devdvi/CWI: New file.
10965 * font/devdvi/generate/Makefile: Add generating rule.
10966 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10967 tmac/tmac.dvi: Use it.
10968 * NEWS: Announce it.
10970 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10971 * font/devlj4/generate/Makefile: Cosmetic changes only.
10973 * man/groff.man: Removed most of the redundant description of
10974 special characters (which is in groff_char.man). Added font
10975 translation CB->CR for devdvi. Other minor fixes.
10977 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10978 (registered) symbols.
10980 2000-05-22 Werner LEMBERG <wl@gnu.org>
10982 * doc/Makefile: Added rule for creating info files.
10984 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
10986 * font/devdvi/generate/Makefile: Fixed dependencies.
10988 * font/devps/*: Regenerated. Heavy changes for Bookman and
10989 NewCentury Schoolbook!
10990 * font/devps/generate/afmname: Will now run with GNU awk.
10991 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10992 * font/devps/generate/Makefile: Cosmetic changes only.
10994 2000-05-21 Werner LEMBERG <wl@gnu.org>
10996 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10997 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
10998 `.SS' now produces a heading with a smaller size than `.SH'.
10999 Completely formatted.
11000 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11002 * man/groff.man: Improved table appearance. Use of `eo' request
11003 to reduce number of doubled backslashes in macro definitions.
11004 Replacing `\e' with `\(rs'. Other minor fixes.
11006 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11007 to have correct line number.
11009 * INSTALL: Small improvement.
11011 2000-05-20 Bernd Warken <bwarken@mayn.de>
11013 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11016 2000-05-19 Bernd Warken <bwarken@mayn.de>
11018 * man/groff.man: Complete update (with a lot of corrections by WL).
11020 2000-05-18 Werner LEMBERG <wl@gnu.org>
11022 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11024 * font/*/*: Implement it.
11025 * man/groff_char.man, NEWS: Document it.
11027 * src/include/unix.h: Removed. It isn't used.
11029 * doc/groff.texinfo: Slight improvements.
11031 2000-05-17 Werner LEMBERG <wl@gnu.org>
11033 * README, win32-diffs: Small fixes and improvements.
11035 2000-05-16 Werner LEMBERG <wl@gnu.org>
11037 * FDL: New file (the Free Documentation License version 1.1).
11039 * doc/groff.texinfo: Added many start-up values for gtroff.
11040 Some structural improvements of the source code.
11042 2000-05-15 Werner LEMBERG <wl@gnu.org>
11044 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11045 * src/roff/troff/troff.man: Added info about troffrc-end.
11047 2000-05-14 Werner LEMBERG <wl@gnu.org>
11049 * Makefile.in (EXTRADIRS): Fix typos.
11050 (dist): Handle deletion of old .tar.gz file correctly.
11051 (DISTDIRS): Include all tty output devices.
11053 * doc/groff.texinfo: Adding more cross references; countless other
11056 2000-05-13 Werner LEMBERG <wl@gnu.org>
11058 * MORE.STUFF: Added Robert Marks's utilities.
11060 2000-05-12 Werner LEMBERG <wl@gnu.org>
11062 Added win32 port contributed by Blake McBride
11063 <blake@florida-software.com>.
11065 * README.WIN32, win32-diffs: New files.
11068 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11069 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11070 (change): Removed unused variables.
11072 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11073 (savebounds): Changed return value from `int' to `void'.
11074 * src/preproc/grn/hdb.cc: Ditto.
11076 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11077 final backslash in comment to avoid compiler warning.
11079 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11081 * doc/groff.texinfo: More fixes.
11083 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11085 * tmac/tmac.doc: Documentation fix.
11087 2000-05-11 Werner LEMBERG <wl@gnu.org>
11089 * doc/groff.texinfo: Reading the source code shows up a lot of
11090 omissions and incorrect data... More conversion to @Deffn macros.
11092 2000-05-10 Werner LEMBERG <wl@gnu.org>
11094 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11097 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11099 2000-05-09 Werner LEMBERG <wl@gnu.org>
11101 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11104 * doc/groff.texinfo: Extended history section. More conversion to
11105 @Deffn macros. More .tr documentation.
11107 2000-05-07 Werner LEMBERG <wl@gnu.org>
11109 * doc/groff.texinfo: Completed tab section. Added info about
11112 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11114 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11116 2000-05-05 Werner LEMBERG <wl@gnu.org>
11118 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11120 * NEWS: Document it.
11122 * man/troff.man: Minor optical improvements.
11124 2000-05-03 Werner LEMBERG <wl@gnu.org>
11126 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11128 * font/*/*: Implement it.
11129 * man/groff_char.man, NEWS: Document it.
11131 2000-05-02 Werner LEMBERG <wl@gnu.org>
11133 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11135 * NEWS: Document the three new man pages.
11137 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11138 * configure: Updated.
11140 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11142 2000-05-01 Werner LEMBERG <wl@gnu.org>
11144 Added grap support to grog.
11146 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11147 * src/roff/grog/grog.man: Document it.
11149 * doc/groff.texinfo, NEWS: Add info about grap support.
11151 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11152 (with slight fixes by me).
11154 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11155 * tmac/Makefile.sub: Add groff_tmac.man.
11156 * man/roff.man: New file giving overview of roff system.
11157 * man/troff.man: A short reference of troff.
11158 * man/Makefile.sub: Add roff.man and troff.man.
11160 2000-04-30 Werner LEMBERG <wl@gnu.org>
11162 Added grap support to groff.
11164 * src/roff/groff/groff.cc: Implement it.
11165 * src/roff/groff/groff.man: Document it.
11167 * src/devices/grotty/grotty.man: Add cp1047 device.
11168 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11170 * src/roff/groff/groff.man: Ditto.
11171 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11172 * doc/groff.texinfo: Ditto.
11174 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11177 2000-04-29 Werner LEMBERG <wl@gnu.org>
11179 * man/groff_char.man: Add `pc' glyph.
11180 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11181 * tmac/tmac.tty: Add `pc' glyph.
11182 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11183 we use cp1047 output device.
11185 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11186 there are still hardcoded latin1->unicode values in utf8's font
11188 * configure: Updated.
11189 * NEWS: Minor clarification. Updated.
11191 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11194 2000-04-28 Werner LEMBERG <wl@gnu.org>
11196 Adding EBCDIC code page 1047.
11198 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11199 font/devcp1047/DESC.proto: New files.
11201 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11202 either ascii/latin1 or cp1047.
11203 * Makefile.in: Use it.
11204 * configure: Updated.
11206 Replacing and/or adding `md' (mathdot) glyph with `pc'
11207 (periodcentered) in all text fonts.
11209 * font/*/*: Change it.
11211 2000-04-27 Werner LEMBERG <wl@gnu.org>
11213 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11215 * configure.in: Add check for strings.h.
11216 * src/include/driver.h: Use HAVE_STRINGS_H.
11217 * src/devices/grolbp/lpb.cc: Remove string.h.
11219 * src/include/groff-getopt.h: New file. It will be used instead of
11220 getopt.h (to be included in lib.h) to avoid endless problems with
11221 picky C++ compilers.
11222 * src/include/lib.h: Use groff-getopt.h.
11223 * src/include/Makefile.sub: Updated.
11225 * configure: Updated.
11226 * Makefile.in: Updated.
11228 * NEWS: Mention EBCDIC support.
11230 2000-04-26 Werner LEMBERG <wl@gnu.org>
11232 * TODO: Some additions.
11234 2000-04-25 Werner LEMBERG <wl@gnu.org>
11236 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11239 2000-04-23 Werner LEMBERG <wl@gnu.org>
11241 * src/roff/troff/troff.man: Minor fixes.
11243 2000-04-22 Werner LEMBERG <wl@gnu.org>
11245 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11246 `.T' string register and the incompatible definition of the `.T'
11247 number register (compared to Unix troff).
11249 * man/groff_char.man: Add some missing characters.
11250 * font/devutf8/NOTES: Update.
11252 2000-04-21 Werner LEMBERG <wl@gnu.org>
11254 * src/include/htmlindicate.h, src/include/lib.h,
11255 src/include/posix.h: Fix copyright.
11257 * src/include/Makefile.sub: Update.
11259 2000-04-20 Werner LEMBERG <wl@gnu.org>
11261 * src/roff/troff/input.cc (input_char_description): Removing
11262 superfluous space char.
11264 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11266 * doc/groff.texinfo: Document EBCDIC.
11268 2000-04-19 Werner LEMBERG <wl@gnu.org>
11270 Introducing `shc' as the glyph name for the soft hyphen character.
11272 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11273 font/devlatin1/R.proto: Use it.
11277 2000-04-18 Werner LEMBERG <wl@gnu.org>
11279 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11280 dependency on ASCII order.
11282 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11284 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11285 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11287 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11288 to increase portability.
11290 2000-04-15 Werner LEMBERG <wl@gnu.org>
11292 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11293 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11294 the generic `\n' if under OS/390 Unix.
11296 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11298 * configure: Regenerated.
11300 2000-04-14 Werner LEMBERG <wl@gnu.org>
11302 * doc/groff.texinfo: More conversions to @Deffn.
11304 2000-04-12 Werner LEMBERG <wl@gnu.org>
11306 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11309 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11311 2000-04-10 Werner LEMBERG <wl@gnu.org>
11313 * doc/groff.texinfo: More conversions to @Deffn.
11315 2000-04-08 Werner LEMBERG <wl@gnu.org>
11317 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11318 Updated to latest version (glibc 2.1.3).
11320 2000-04-07 Werner LEMBERG <wl@gnu.org>
11322 * doc/Makefile (clean): Include more index files.
11323 Add rule texinfo->dvi.
11325 2000-04-05 Werner LEMBERG <wl@gnu.org>
11327 * doc/groff.texinfo: Added new index `op' for operators. More
11328 info on end of sentence characters. More use of @Deffn.
11330 2000-03-30 Werner LEMBERG <wl@gnu.org>
11332 * */*.man: Adding a note that a whitespace can be inserted between
11333 a command line option and its parameter -- we are using GNU getopt.
11335 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11337 2000-03-28 Werner LEMBERG <wl@gnu.org>
11339 Correct anachronism of calling the man macro file with `-man'
11340 instead of `-m man' etc.
11342 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11343 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11344 load tmac.<package>.
11346 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11350 * doc/groff.texinfo: Updated.
11352 * tmac/groff_man.man: Copyright added.
11354 2000-03-27 Werner LEMBERG <wl@gnu.org>
11356 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11357 typeset the request resp. escape name with a tt font -- due to a
11358 bug in texinfo.tex it is necessary to use the `-e' switch with
11361 Improving info about usage of groff units.
11365 2000-03-20 Werner LEMBERG <wl@gnu.org>
11367 * doc/groff.texinfo: Added section about man macro package
11368 (I've basically taken groff_man.man). Introducing new indices `ma'
11369 for macros/strings and `gl' for glyph names. Other minor fixes.
11371 * tmac/groff_man.man: Fixed some typos.
11373 2000-03-19 Werner LEMBERG <wl@gnu.org>
11375 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11378 * doc/texinfo.tex: New file.
11380 2000-03-18 Werner LEMBERG <wl@gnu.org>
11382 * doc/groff.texinfo: Improved section on number registers. Other
11385 2000-03-16 Werner LEMBERG <wl@gnu.org>
11387 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11390 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11391 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11392 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11393 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11395 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11397 * src/roff/grog/grog.man: Updated copyright date.
11399 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11401 * configure.in: Added test for strdup.
11403 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11406 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11410 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11412 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11414 2000-03-11 Werner LEMBERG <wl@gnu.org>
11416 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11418 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11419 * src/include/lib.h: Remove some spaces.
11421 2000-03-10 Werner LEMBERG <wl@gnu.org>
11423 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11424 initializers from arguments (some compilers don't like this).
11426 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11428 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11429 used by pic and eqn to tell grohtml where the graphic regions start
11431 * src/libs/libgroff/Makefile.sub: Use it.
11432 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11433 graphic_start() and graphic_end() from htmlindicate.cc.
11435 2000-03-09 Werner LEMBERG <wl@gnu.org>
11437 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11438 * tmac/groff_man.man: More fixes.
11440 2000-03-08 Werner LEMBERG <wl@gnu.org>
11442 * doc/Makefile: Added texput.log to the `clean' target.
11443 * doc/groff.texinfo: Added info about delimiters for escapes.
11445 2000-03-08 Bernd Warken <bwarken@mayn.de>
11447 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11448 other graphic formats.
11450 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11452 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11453 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11454 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11457 2000-03-07 Werner LEMBERG <wl@gnu.org>
11459 * doc/groff.texinfo: Spelling fixes.
11461 2000-03-06 Werner LEMBERG <wl@gnu.org>
11463 * tmac/groff_man.man: Completely revised to cover everything in
11466 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11467 Other minor fixings.
11468 * src/roff/troff/env.cc (environment_copy): Improve error message and
11470 * src/roff/troff/TODO: Updated.
11472 * doc/Makefile: Bug fixes -- this is still provisional, though...
11474 * tmac/eqnrc: Small fixes.
11476 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11478 Adding a request `evc' to copy environments.
11480 * src/roff/troff/env.cc (environment::copy, environment_copy):
11482 * src/roff/troff/env.h: Add prototype.
11484 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11486 Adding strsep() -- Solaris 8 doesn't have it.
11488 * configure.in: Test it.
11489 * src/devices/grolbp/lbp.cc: Add code.
11491 2000-03-05 Werner LEMBERG <wl@gnu.org>
11493 * src/roff/troff/div.cc (macro_diversion::output,
11494 top_level_diversion::output): Fixing an incompatibility with
11495 original troff: \x'0' updates the .a register also. Thanks to
11496 <Andries.Brouwer@cwi.nl> for pointing this out.
11497 * doc/groff.texinfo: Document it.
11499 * Makefile.in: Create Makefile.dep if necessary before calling the
11500 submake process to avoid warning about nonexistent file.
11502 * NEWS, PROJECTS: Updated.
11504 2000-03-04 Werner LEMBERG <wl@gnu.org>
11506 * tmac/troffrc: Add tmac.lbp.
11508 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11510 * tmac/tmac.lbp: New file.
11511 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11514 2000-03-03 Werner LEMBERG <wl@gnu.org>
11516 * Makefile.in: Fixing $(subdir).
11518 * README, NEWS: Small fixes.
11520 * test-groff: Adding path to grolbp.
11522 * configure.in: The (new) file src/xditview/Imakefile.in will be
11523 also configured -- it is now possible to build gxditview in a
11524 directory different from $srcdir.
11526 2000-03-02 Blake McBride <blake@florida-software.com>
11528 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11530 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11532 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11534 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11537 2000-02-29 Werner LEMBERG <wl@gnu.org>
11539 Adding GNU getopt to the groff distribution.
11541 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11543 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11544 * aclocal.a4: Remove GROFF_GETOPT function.
11545 * configure.in, Makefile.in, PROBLEMS: Update.
11546 * src/include/lib.h: Replace getopt tests with getopt.h.
11547 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11549 * doc/groff.texinfo: Further checking/updating. Adding more index
11552 * man/groff_out.man: Fix nroff mode activation (for emacs).
11553 * man/groff_font.man: Add missing ligature.
11555 2000-02-28 Werner LEMBERG <wl@gnu.org>
11557 * doc/groff.texinfo: Further checking/updating. Adding more index
11560 * src/devices/grolbp/grolbp.man: Added a comment line at the
11561 beginning of the file (similar to shell scripts) which indicates
11562 that `tbl' should be used as a preprocessor.
11564 2000-02-27 Blake McBride <blake@florida-software.com>
11566 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11567 Windows NT 4.0). Uses _MSC_VER define where necessary.
11569 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11570 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11571 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11572 src/include/lib.h, src/libs/libgroff/errarg.cc,
11573 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11574 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11575 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11576 src/roff/troff/div.cc, src/roff/troff/env.cc,
11577 src/roff/troff/input.cc, src/roff/troff/node.cc,
11578 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11579 if_to_a() to avoid name clashes.
11580 * src/include/posix.h: Don't use unistd.h.
11581 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11582 clause for integrating non-Unix xtmpfile() code.
11583 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11584 structure; use "rt" for popen() in pipe_source(); add getpid()
11586 * src/roff/troff/node.cc: Use special versions of popen() in
11587 real_output_file() and pclose() in ~real_output_file().
11589 2000-02-27 Werner LEMBERG <wl@gnu.org>
11591 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11592 LBP-8 series laser printers). This code has been contributed by
11593 Francisco Andrés Verdú <pandres@dragonet.es>.
11595 * src/devices/grolbp/*: The grolbp output device.
11596 * font/devlpb/*: The font description files.
11597 * Makefile.in: Add grolpb and devlbp subdirectories.
11599 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11600 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11603 * doc/groff.texinfo: Further checking/updating. Adding more index
11608 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11610 * man/groff_font.man: Adding info about obsolete DESC keywords.
11611 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11614 2000-02-26 Werner LEMBERG <wl@gnu.org>
11616 * src/preproc/grn/grn.man: Added info about the gremlin file format
11617 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11619 2000-02-25 Werner LEMBERG <wl@gnu.org>
11621 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11622 friends to be non-integer.
11624 * src/preproc/grn/grn.man: Document it.
11626 * doc/groff.texinfo: Further checking/updating. Adding more index
11629 2000-02-24 Werner LEMBERG <wl@gnu.org>
11631 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11632 line thicknesses to be integer multiples of this value.
11634 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11635 corresponding code doesn't work (yet).
11637 * doc/groff.texinfo: Further checking/updating. Adding more index
11640 2000-02-23 Werner LEMBERG <wl@gnu.org>
11642 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11643 specify line thickness instead of base units. The new default
11644 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11645 thick lines respectively.
11647 Removed unused variable `prevval'.
11649 * src/preproc/grn/grn.man: Updated.
11651 2000-02-22 Werner LEMBERG <wl@gnu.org>
11653 * src/preproc/grn/main.cc: Slight formatting.
11655 * src/roff/groff/groff.man: Formatting fix.
11656 * src/preproc/grn/grn.man: Ditto.
11658 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11660 * doc/groff.texinfo: Further checking/updating.
11662 2000-02-21 Werner LEMBERG <wl@gnu.org>
11664 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11666 * test-groff: Added grn subdir to path.
11668 * doc/groff.texinfo: Some restructing and other small improvements.
11670 * src/roff/groff/groff.cc (help): Fixed info string.
11672 2000-02-20 Werner LEMBERG <wl@gnu.org>
11674 * doc/meref.me: Fix description of .GS request.
11676 * src/roff/troff/troff.man: Fixing typo.
11678 Adding the `grn' preprocessor for gremlin graphic files.
11680 * src/preproc/grn/*: This is the Berkeley distribution written by
11681 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11682 Senderowicz and Werner Lemberg.
11684 * doc/grnexampl.{me,g}: A sample for grn.
11686 * Makefile.in: Added subdirectory entry for grn.
11688 * src/roff/groff/groff.cc: Added support for grn. It can be now
11689 called with the switch `-g'.
11691 * src/roff/groff/groff.man: Updated.
11693 * src/roff/grog/grog.{man,pl,sh}: Updated.
11697 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11699 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11700 parametrically polymorphic.
11702 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11703 and the alterations to xtmpfile.
11704 xtmpfile can be requested to return the filename created
11705 and asked not to unlink the temp file. The default behaviour
11706 if parameters are absent is exactly the same as before.
11708 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11710 A new request `length' is available which returns the length of a
11711 string in a number register:
11713 * src/roff/troff/input.cc (length_macro): Implement it.
11714 * src/roff/troff/input.cc (init_input_requests): Register it.
11716 2000-02-11 Werner LEMBERG <wl@gnu.org>
11718 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11719 of the `substring' request.
11721 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11724 * src/roff/troff/TODO, NEWS: Updated.
11726 2000-02-09 Werner LEMBERG <wl@gnu.org>
11728 * src/roff/groff/groff.man: Added an example.
11730 2000-02-06 Werner LEMBERG <wl@gnu.org>
11732 I've considerably modified the directory structure of the
11733 distribution to get a more vertical layout. For example, the number
11734 of top level directories has been reduced from 42 to 6.
11736 As a consequence, many changes, especially to the makefiles, were
11739 * The makefile variables `top_builddir' and `top_srcdir' have been
11740 introduced. Virtually all relative paths have been replaced with
11741 absolute ones using these two variables.
11743 * Dependencies (in the files `Makefile.dep') are no longer part of
11744 the distribution. Instead, they are created during a `make install'
11745 in the build directory.
11747 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11748 make `top_srcdir' and `top_builddir' absolute.
11750 Some other changes:
11752 * Man pages now depend on the files `VERSION' and `REVISION'.
11754 * The added shell script `mkinstalldirs' will replace `mkdir' in
11757 * VERSION: Version number increased to 1.16.
11759 2000-02-04 Werner LEMBERG <wl@gnu.org>
11761 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11763 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11764 (after an update of the mm stuff).
11766 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11768 2000-02-03 Werner LEMBERG <wl@gnu.org>
11770 The .psbb request will now also accept Mac PS images (i.e. using LF
11771 as the EOL character).
11773 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11774 (with slight modifications).
11775 * troff/input.cc (do_ps_file): Use it.
11777 * test-groff: Add grohtml and grolj4 output devices to PATH.
11779 2000-01-30 Werner LEMBERG <wl@gnu.org>
11781 * NEWS, MORE.STUFF: Updated.
11783 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11785 Add the `srand' command to pic.
11787 * pic/lex.cc, pic/pic.y: Implement it.
11788 * pic/pic.man: Document it.
11789 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11791 2000-01-30 Werner LEMBERG <wl@gnu.org>
11793 Add a new request `.psbb'. This does exactly what the external
11794 program psbb did. It scans a PostScript image file for a
11795 %%BoundingBox comment and extracts the bounding box values (in
11796 PostScript units) which are then stored in the four new (read-only)
11797 number registers `llx', `lly', `urx', and `ury'.
11799 This will allow the usage of the .PSPIC macro without worrying
11800 about unsafe behaviour of groff, i.e., it will work without the
11801 `-U' switch of groff.
11803 * troff/input.cc: Implement it.
11804 * tmac/tmac.pspic: Use it.
11805 * troff/troff.man, grops/grops.man, NEWS: Document it.
11806 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11808 This is bloody C code simply adapted from psbb.c! Any improvements
11811 2000-01-29 Werner LEMBERG <wl@gnu.org>
11813 * man/groff_font.man: Minor clarifications.
11817 2000-01-28 Werner LEMBERG <wl@gnu.org>
11819 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11821 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11823 * man/groff_font.man: Brought up to date regarding tcommand
11825 * libgroff/font.cc: Handle everything after `--' as a comment
11827 * devps/*: Added comment delimiter inside devps font files.
11829 2000-01-28 Werner LEMBERG <wl@gnu.org>
11831 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11832 \fC...\fP (which now works as expected).
11834 * troff/troff.man: Fix typo.
11836 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11838 Completed the pass_filenames implementation in troff.
11840 * libdriver/input.cc: Will read the new `F' tcommand.
11841 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11842 * troff/input.cc: Use it.
11844 2000-01-26 Werner LEMBERG <wl@gnu.org>
11846 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11847 font will now be updated even if an invalid font is selected.
11849 2000-01-24 Werner LEMBERG <wl@gnu.org>
11851 * doc/homepage.ms: Updated for new tmac.arkup.
11853 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11855 * tmac/tmac.arkup: Cleanup.
11857 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11859 Removed obsolete .LINK macro completely.
11861 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11862 will be immediately appended to the second argument (to be used with
11863 punctuation, for example).
11865 Disabled .CDFTP macro temporarily for security reasons.
11867 * tmac/groff_markup.man: Complete revision for latest changes in
11868 tmac.arkup -- note that it does not yet format correctly with
11871 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11873 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11874 * devutf8/R.proto: Add mappings for wp, lh, rh.
11875 * devutf8/NOTES: Updated.
11877 2000-01-23 Werner LEMBERG <wl@gnu.org>
11879 * doc/groff.texinfo: Updated version/copyright info.
11881 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11883 Added support for two new directives in device descriptions:
11884 `pass_filenames' (to pass the input file name to the output device)
11885 and `use_charnames_in_special' (to support e.g. accented characters
11886 in the `X' request).
11888 * include/font.h, troff/charinfo.h: Declare it.
11890 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11892 * devhtml/DESC: Use it.
11894 * troff/input.cc: New function encoded_char.
11896 * troff/token.h: Add test for `specialness'.
11898 2000-01-21 Werner LEMBERG <wl@gnu.org>
11900 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11901 mistake from the list of files to be installed.
11903 2000-01-18 Werner LEMBERG <wl@gnu.org>
11905 * README: Added info how to apply patches.
11907 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11909 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11911 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11913 * troff/input.cc: Add support for troffrc-end.
11915 * tbl/main.cc: Altered to issue table-start and table-end special
11916 characters if using the html device.
11918 * devhtml/*: Modified font files to incorporate html encoding of
11921 * tmac/groff_markup.man: New file documenting tmac.arkup.
11923 * tmac/troffrc-end: New file. This is invoked after all user
11924 specified macros. Currently used by the html device to include
11925 tmac.html. Thus no need for users to specify -mhtml anymore.
11927 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11928 (MAN7): Add groff_markup.man.
11930 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11932 * tmac/troffrc: tmac.arkup will now be called for the html device.
11934 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11935 extra device specific information about fonts.
11937 * doc/homepage.ms: New file. It is an example how an HTML home page
11938 could look like with grohtml.
11940 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11942 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11944 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11947 * devutf8/NOTES: Updated.
11949 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11951 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11952 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11953 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11954 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11955 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11956 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11957 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11958 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11961 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11963 2000-01-12 Fabrizio Polacco <fab@prosa.it>
11965 grolj4: Paper size will be searched case-insensitively.
11967 * include/lib.h: Add check for strcasecmp().
11968 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11969 * configure.in: Check for strcasecmp().
11971 2000-01-11 Werner LEMBERG <wl@gnu.org>
11973 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11976 2000-01-10 Werner LEMBERG <wl@gnu.org>
11978 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11981 Add a new read-only register, `.Y', which contains the groff
11984 * troff/input.cc (init_input_requests): Define it.
11985 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11986 * doc/groff.texinfo, troff/troff.man: Document it.
11988 * libgroff/Makefile.sub (version.cc): Add definition of
11989 `Version_string[]', consisting of `<major>.<minor>.<revision>'
11990 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11991 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11992 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11993 troff/input.cc, pfbtops/pfbtops.c: Use it.
11995 2000-01-10 Fabrizio Polacco <fab@prosa.it>
11997 Add a revision scheme to the groff package.
11999 * REVISION: New file.
12000 * libgroff/Makefile.sub (version.cc): Use it to define
12001 `revision_string[]'.
12002 * grops/psrm.cc: Use revision_string (converted to an unsigned
12003 integer) in constructor of resource_manager.
12005 2000-01-10 Bruno Haible <haible@clisp.cons.org>
12007 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12009 * Makefile.in (DEVDIRS): Add devutf8.
12010 * grotty/tty.cc: Include device.h.
12011 (glyph): Change type of `code' to `unsigned int'.
12012 (tty_printer): New field is_utf8. Constructor takes device argument.
12013 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12014 (tty_printer::add_char): Change type of first arg to `unsigned int'.
12015 (tty_printer::put_char): New function.
12016 (tty_printer::end_page): Use put_char() instead of ::putchar().
12017 (make_printer): Pass device to tty_printer constructor.
12018 * nroff.sh: Determine default device by calling 'locale'. As a
12019 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12020 Recognize UTF-8 locales.
12021 * tmac/eqnrc: Recognize utf8 like latin1.
12022 * tmac/troffrc: Device utf8 needs tmac.tty.
12024 2000-01-07 Werner LEMBERG <wl@gnu.org>
12026 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12028 2000-01-07 Paul Eggert <eggert@twinsun.com>
12030 Add a new predefined writeable number register, `year',
12031 which contains the current year.
12033 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12034 * tmac/tmac.s: Use it.
12035 * troff/input.cc (init_registers): Initialize it.
12037 2000-01-06 Werner LEMBERG <wl@gnu.org>
12039 * PROBLEMS: Fixed typo.
12041 2000-01-04 Paul Eggert <eggert@twinsun.com>
12043 * PROBLEMS: Add Y2k advice for the yr number register.
12045 2000-01-03 Paul Eggert <eggert@twinsun.com>
12047 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12049 2000-01-02 Werner LEMBERG <wl@gnu.org>
12051 * tmac/tmac.arkup: Slight modification of macros to provide better
12052 appearance for non-HTML formats.
12054 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12056 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12057 does not automatically translate to malloc(n) on all OSes
12058 (e.g., SunOS) so do it explicitly. Also, check the returned
12061 2000-01-01 Werner LEMBERG <wl@gnu.org>
12063 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12065 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12066 expects this variable
12068 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12070 * doc/Makefile: Added instructions to create HTML and text
12071 versions of some files.
12073 1999-12-31 Werner LEMBERG <wl@gnu.org>
12075 * Updated INSTALL.gen.
12077 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12078 better resp. correctly with non-HTML devices.
12080 Version 1.15 released
12081 =====================
12083 1999-12-28 Werner LEMBERG <wl@gnu.org>
12085 * NEWS, VERSION: Changed to 1.15
12087 1999-12-27 Paul Eggert <eggert@twinsun.com>
12089 * nroff/nroff.man: -S is safer, not safe.
12091 * groff/groff.cc (main): Use `safer', not `safe', in variable
12092 names. This does not change the behavior.
12094 * troff/input.cc (main): Likewise.
12096 * nroff/nroff.sh: Likewise.
12098 * troff/input.cc (prepend_string): New function.
12099 (main): Prepend -msafer, so that we check macro libraries for
12102 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12104 Version 1.14 released
12105 =====================
12107 1999-12-26 Werner LEMBERG <wl@gnu.org>
12109 * NEWS, VERSION: Changed to 1.14.
12111 1999-12-24 Werner LEMBERG <wl@gnu.org>
12113 * refer/refer.cc: Fixing the last fix.
12115 Version 1.13 released
12116 =====================
12118 1999-12-23 Werner LEMBERG <wl@gnu.org>
12120 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12125 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12127 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12128 document conventions, the version number must be a real.
12130 Version 1.12.1 released
12131 =======================
12133 1999-12-22 Werner LEMBERG <wl@gnu.org>
12135 * VERSION: Changed to 1.12.1.
12137 1999-12-22 Alan Rooks <arooks@istar.ca>
12139 * refer/refer.cc (do_file): Slight modification to satisfy the
12140 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12143 1999-12-20 Werner LEMBERG <wl@gnu.org>
12145 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12148 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12149 list of unsafe requests.
12151 * pic/pic.man: Fixed a typo.
12153 * man/groff_out.man: Fixed a typo.
12155 1999-12-18 Werner LEMBERG <wl@gnu.org>
12157 * Makefile.in: Doc fixes.
12159 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12161 * groff/groff.cc: Missing `U' option added to getopt().
12163 * troff/troff.man: Missing `U' option added to synopsis.
12165 Version 1.12 released
12166 =====================
12168 1999-12-14 Werner LEMBERG <wl@gnu.org>
12170 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12173 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12174 with the more appropriate terms `safer' and `unsafe'.
12176 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12177 sys_nerr and sys_errlist[].
12179 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12181 * pic/pic.y, pic/pic.cc: Added check for fmod().
12183 1999-12-13 Werner LEMBERG <wl@gnu.org>
12185 * VERSION: Changed to 1.12.
12187 Here some patches from various sources; most of them taken from
12188 the Debian distribution.
12190 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12191 tmac/Makefile.sub: New files copied directly from the NetBSD
12192 distribution. Probably, some additional adaptation later on is
12195 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12196 of unsafe requests.
12198 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12199 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12200 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12201 (`-S') is now the default.
12203 * README, NEWS: Updated.
12205 1999-12-09 Werner LEMBERG <wl@gnu.org>
12207 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12209 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12211 1999-12-06 Werner LEMBERG <wl@gnu.org>
12213 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12214 grief than relief today. Additionally, it is against the GNU
12217 * configure: Recreated.
12219 1999-12-05 Werner LEMBERG <wl@gnu.org>
12221 * configure.in: Added GROFF_LIBM.
12223 * configure: Recreated.
12225 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12228 * Makefile.in: Added definition of $(LIBM).
12230 * Makefile.comm (LIBM): Removed.
12232 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12234 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12236 * doc/Makefile: Added rule for generation pic.html.
12238 (clean): Files produced by grohtml will be removed also.
12240 * doc/pic.ms: Small fix.
12242 * tmac/tmac.html: Fixed suppression of headers.
12244 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12246 * tmac/tmac.html: Fixing horizontal arrows.
12248 Turning off hyphenation.
12250 * tmac/tmac.an: Improved support for grohtml; better indentation,
12251 no footers/headers.
12253 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12255 * tmac/tmac.arkup: Added CDFTP macro
12257 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12260 * tmac/troffrc: Some additions for HTML stuff.
12262 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12264 * tmac/tmac.html: Small changes.
12266 1999-09-26 Werner LEMBERG <wl@gnu.org>
12268 * doc/groff.texinfo: Minor fixes.
12270 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12272 * devhtml/TR: Changed spacewidth to 3.
12274 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12276 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12278 * tmac/tmac.arkup: New file.
12280 * grohtml/ChangeLog: New file.
12282 1999-09-16 Werner LEMBERG <wl@gnu.org>
12284 * doc/groff.texinfo (Common Features): Added Copying chapter.
12285 Changed format to @smallbook.
12287 1999-09-15 Werner LEMBERG <wl@gnu.org>
12289 * NEWS: Added info about groff.texinfo.
12291 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12294 1999-09-14 Werner LEMBERG <wl@gnu.org>
12296 * groff/groff.man: More updates.
12298 1999-09-13 Werner LEMBERG <wl@gnu.org>
12300 * doc/groff.texinfo: New file. This manual is still very
12301 rudimentary. It has been originally contributed by Trent
12302 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12305 * INSTALL: Added information about the `doc' subdir
12307 * troff/troff.man: Minor fixes.
12309 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12312 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12314 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12315 also, otherwise it is included itself in another call of `make
12318 * groff/groff.cc (synopsis): Removed superfluous space.
12320 * PROJECTS, PROBLEMS, NEWS: Updated.
12322 * VERSION: Updated to 1.12beta.
12324 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12326 * README: Updated: Included documentation about CVS repository,
12327 mailing lists, and daily snapshots.
12329 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12331 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12333 * tmac/tmac.an: If the tag didn't fit into the space that the
12334 macro `TP' specifies, the rest of the tag went into the space for
12337 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12339 * grolj4/lj4.cc: Added duplex printing (option `-d').
12341 * grolj4/grolj4.man: Document duplex printing.
12343 1999-09-12 Werner LEMBERG <wl@gnu.org>
12345 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12346 non-GNUish sed programs.
12348 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12351 * configure.in (LIBS): Added `-lc'
12353 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12355 * pic/tex.cc (solid_arc): Casting M_PI to double.
12357 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12359 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12360 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12361 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12363 * groff/groff_man.man: New file. This manual page was originally
12364 written for the Debian GNU/Linux system by Susan G. Kleinmann
12367 * eqn/list.cc (list_box::compute_metrics,
12368 list_box::compute_sublist_width): Removed variable declaration to
12369 avoid shadowing warnings.
12371 * grops/psrm.cc (resource_manager::process_file): Ditto.
12373 * tfmtodit/tfmtodit.cc (main): Ditto.
12375 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12376 to avoid shadowing warnings.
12378 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12379 shadowing loop variable.
12381 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12383 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12385 New grohtml frontend to convert groff input to html.
12387 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12389 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12391 * tmac/eqnrc: Added html device.
12393 * tmac/tmac.html: New file.
12395 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12396 (troff_output::start_picture, troff_output::finish_picture),
12397 tbl/main.cc (process_input_file):
12398 Surrounded output with `graphics_start' and `graphics_end' so that
12399 the html driver can identify non-text portions.
12401 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12402 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12403 grotty/tty.ps (tty_printer::set_char): Additional parameter
12406 * include/printer.h: Class printer: New function
12407 set_char_and_width; new variables (is_char_named, is_named_set,
12408 named_command, named_char_s, named_char_n) to hold information
12409 about named characters -- needed by the html driver.
12411 * libdriver/printer.cc (printer::set_ascii_char,
12412 printer::set_special_char): Use set_char_and_width.
12414 * devhtml/*: New device files for html driver.
12416 * grohtml/*: New driver grohtml.
12418 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12420 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12423 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12425 * libgroff/string.cc (search): Small fix to test against NULL
12428 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12430 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12431 \b'abc') were stacked in reverse order when processed in a
12434 * troff/node.h: Added `*last' to struct `node' to make the above
12437 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12438 The default scale for the 'f' and 't' graphics functions were 'm'
12439 rather than 'u' (i.e., no scaling).
12441 1999-09-11 Peter Miller <peterm@jna.com.au>
12443 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12444 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12445 defining include paths.
12447 * soelim/soelim.cc (include_path_append): New function.
12449 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12451 * tbl/main.cc (process_options): Unix (at least Documenter's
12452 Workbench) tbl allows arbitrary non-alpha characters between
12455 1999-09-11 Paul Eggert <eggert@twinsun.com>
12457 Y2k fixes. Don't assume that the current year precedes 2000.
12459 * doc/meref.me: Add \n(y2, \n(y4.
12461 * tmac/doc-common (Yr): New number register.
12462 (Dd): Don't assume current year precedes 2000.
12464 * tmac/tmac.e (td): Likewise.
12465 (y2, y4): New number registers.
12467 * pic/pic.man: Update reference for pic paper to May, 1991
12470 1999-09-11 Werner LEMBERG <wl@gnu.org>
12472 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12473 Removed quotation marks which prevented correct expansion of
12476 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12478 1999-09-10 Werner LEMBERG <wl@gnu.org>
12480 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12483 * Removed configure.old.
12485 1999-08-31 Werner LEMBERG <wl@gnu.org>
12487 * VERSION: Updated to 1.11.1
12489 1999-05-27 Werner LEMBERG <wl@gnu.org>
12491 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12493 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12494 added quotations around $(tmac_wrap) to avoid syntax error if
12497 * configure: Newly generated using autoconf 2.13.
12499 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12501 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12503 * README, PROJECTS, NEWS, INSTALL, VERSION,
12504 doc/Makefile. doc/pic.ms, groff/groff.man:
12505 Prepare for 1.11 release. No code changes.
12506 Documentation for pic added (doc/pic.ms).
12508 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12510 * Version 1.10 released.
12512 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12514 * afmtodit/afmtodit.pl: Avoid comment on first line.
12516 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12518 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12519 * configure.in: Call it.
12521 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12522 (distfiles): Doesn't depend on config.log or config.cache.
12524 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12526 * grog/grog.sh: Use print "" rather than print in END rule.
12528 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12530 * tbl/main.cc (process_data): Don't give error for excess data
12531 entries that are comments.
12533 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12535 * tbl/main.cc (process_data): Fix case where new for-scope rules
12536 silently change meaning of code.
12538 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12540 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12541 of non-zero hyphenation codes.
12543 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12545 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12547 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12549 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12551 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12553 * tmac/tmac.andoc: Make it work in compatibility mode.
12555 * refer/token.h (token_info::is_range_sep): New function.
12556 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12557 * refer/ref.cc (reference::output): More sophisticated check for
12560 * devps/prologue.ps (MANUAL): New procedure.
12561 * grops/ps.cc (main): New -m option.
12562 (usage): Include -m.
12563 (ps_printer::~ps_printer): Implement -m.
12565 * aclocal.m4 (GROFF_G): New macro.
12566 * configure.in: Call it.
12567 * Makefile.in (g): Provided by configure.
12569 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12571 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12574 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12575 (tmac_m, tmac_s): Deleted.
12576 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12577 tmac_s_prefix): New variables.
12578 (MDEFINES): Change accordingly.
12579 * Makefile.comm (.man.n): Use new TMAC_* variables.
12580 * configure.in (GROFF_TMAC): Call.
12581 * aclocal.m4 (GROFF_TMAC): Define.
12582 * tmac/Makefile.sub (stamp_wrap): New target.
12583 (install_data, uninstall_sub): Handle macro wrapping.
12585 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12587 * tbl/main.cc (main): Ignore -T option.
12589 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12591 * devlj4/generate/special.map: Add definition of \(nb.
12593 * tmac/tmac.dvi: Add definition of \(nb.
12595 * troff/dictionary.c (dictionary::dictionary): association::v gets
12596 initialized by association::association.
12598 * tmac/Makefile.sub: Avoid using temporary files when installing.
12600 * troff/env.cc (environment::set_font): Make bad font number a
12603 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12605 * Makefile.in (datadir): Use share rather than lib.
12607 * groff/groff.cc (basename): Rename to xbasename.
12609 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12611 * Makefile (CCLIBS): Don't use.
12612 * Makefile.ccpg: Likewise.
12614 * acgroff.m4: Rename to...
12615 * aclocal.m4: Modify extensively for autoconf 2.
12616 * configure.in: Likewise.
12617 * Makefile.in: Likewise.
12619 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12621 (xstrsignal): Check for definition of NSIG. Conditionalize
12622 on SYS_SIGLIST_DECLARED. Make return type const.
12624 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12626 * troff/input.cc (interpolate_macro): Rephrase missing space
12629 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12631 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12632 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12633 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12634 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12635 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12636 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12637 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12638 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12639 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12640 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12641 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12644 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12646 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12648 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12650 (macro_iterator::macro_iterator): Add additional argument.
12652 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12654 * troff/div.cc (vertical_size::vertical_size): In place of integer
12655 specifying line spacing use cunits specifying post vertical
12657 (macro_diversion::output, top_level_diversion::output): Likewise.
12658 * troff/div.h: Change declarations accordingly.
12659 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12661 (pending_output_line::pending_output_line,
12662 pending_output_line::output, environment::output,
12663 environment::output_line, environment::output_title,
12664 environment::hyphenate_line): In place of
12665 integer specifying line spacing use cunits specifying post vertical
12667 (environment::environment): Add post_vertical_spacing and
12668 prev_post_vertical_spacing arguments.
12669 (environment::get_post_vertical_spacing): New function.
12670 (environment::total_post_vertical_spacing): New function.
12671 (environment::post_vertical_spacing): New function.
12672 (init_env_requests): Initialize pvs request and .pvs register.
12673 * troff/env.h: Change declarations.
12675 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12677 * tmac/tmac.pspic: Immediately remove the temporary file.
12679 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12681 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12682 height is specified.
12684 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12686 * tbl/table.c (struct vertical rule, class table_entry): Use int
12687 not short for start_row and end_row.
12689 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12691 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12693 (diverted_space_node::reread, process_input_stack): Call
12694 trapping_blank_line() rather than blank_line().
12695 (init_input_requests): Bind "blm" to blank_line_macro().
12697 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12699 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12701 * troff/env.cc (environment::possibly_break_line): Require that
12702 width total excluding width of final space node be greater than
12703 the target text length.
12705 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12707 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12709 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12711 * troff/node.cc (charinfo_node): New class.
12712 (glyph_node, composite_node): Derive from charinfo_node. Change
12713 member functions accordingly.
12715 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12717 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12719 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12721 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12723 * devps/generate/textmap (notsubset): Add.
12725 * tmac/tmac.a4: New file.
12727 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12729 * pic/main.cc (had_parse_error): New variable.
12730 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12732 (main): Return 1 if had_parse_error is true.
12734 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12736 * grolj4/lj4.cc (main): Avoid use of strtoul.
12738 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12740 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12741 iso_8859_1 or $LESSCHARSET is latin1.
12743 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12745 * hpftodit: New directory.
12746 * Makefile.in (CCPROGDIRS): Add hpftodit.
12747 * devlj4/generate: New directory.
12749 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12751 * configure.in: Don't use AC_VFORK.
12752 * groff/pipeline.c (run_pipeline): Use fork() always.
12754 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12756 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12758 * Makefile.in (CCPROGDIRS): Add grolj4.
12759 (DEVDIRS): Add devlj4.
12760 * grolj4, devlj4: New directories.
12761 * tmac/troffrc: Handle lj4.
12762 * tmac/tmac.lj4: New file.
12764 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12766 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12768 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12770 * troff/input.cc (do_if_request): At end of second string, switch
12771 environments before getting next token.
12773 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12775 * devps/psstrip.sed: Split rule that strips whitespace on either
12776 side of delimiters.
12778 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12780 * troff/node.h (font_family::make_definition): Add return value to
12781 declaration. * troff/symbol.h (symbol::operator==,
12782 symbol::operator!=): Likewise.
12784 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12786 * groff/groff.cc (main, help, synopsis): Handle -S.
12787 (possible_command::insert_arg): New function.
12789 * tmac/tmac.safer: New file.
12790 * tmac/msafer.man: New file.
12791 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12793 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12795 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12796 * pic/pic.y (placeless_element): Avoid unsafe operations if
12797 `safer_flag' is set.
12798 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12800 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12802 * eqn/lex.cc (get_token): Put call to add_context() in block to
12803 work around Sun C++ 4.0 bug.
12805 * include/stringclass.h (operator +): Use ?: instead of `if' to
12806 work around Sun C++ 4.0 bug.
12808 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12810 * tbl/main.cc (process_format): Accept - as a synonym for the _
12813 * libbib/index.cc (minus_one): Don't declare as const.
12815 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12817 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12819 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12821 * troff/input.cc (write_macro_request): New function.
12822 (init_input_requests): Bind write_macro_request to writem.
12824 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12826 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12829 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12831 * tmac/tmac.s (@TS): Renamed from TS.
12832 (TS): Call LP then TS again.
12833 (cov*ab-init): Alias @TS to TS.
12835 * tmac/tmac.s: Allow QP or RS to initialize.
12837 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12838 Move initializations of PS and LL here.
12839 (par@init): Don't initialize HY. Avoid changing environment 0.
12840 (par*env-init): Don't all par@reset.
12842 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12844 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12846 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12848 * Makefile.in (MDEFINES): Add LDFLAGS.
12849 (LDFLAGS): Add definition line.
12851 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12853 * troff/input.cc (get_optional_char): Split off error check into...
12854 (check_missing_character): New function.
12855 * troff/token.h: Declare it.
12856 * troff/env.cc (margin_character): Don't call get_optional_char.
12857 Only call tok.next() after making the node.
12859 * include/lib.h (getopt): Make 2nd argument char *const *.
12861 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12863 * nroff/conftest.sh: Deleted.
12865 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12867 * pic/make-dos-dist: Deleted.
12869 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12871 * devps/psstrip.sed: Strip comments before stripping trailing
12874 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12876 * Version 1.09 released.
12878 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12880 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12882 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12884 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12886 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12888 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12889 about returning without a value.
12891 * troff/charinfo.h (charinfo::get_special_translation): Cast
12892 TRANSLATE_NONE to int.
12894 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12895 test. Fix test so that it works with n unsigned.
12897 * pic/pic.y (defaults_table): Fully bracket initializer.
12898 * pic/lex.cc (lookup_keyword): Likewise.
12899 * eqn/lex.cc (token_table, def_table): Likewise.
12900 * eqn/box.cc (param_table): Likewise.
12901 * troff/input.cc (warning_table): Likewise.
12902 * libgroff/font.cc (table): Likewise.
12903 * grops/ps.cc (ps_printer::special): Likewise.
12904 * grops/psrm.cc (resource_manager::process_file): Likewise.
12905 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12906 * refer/command.cc (command_table): Likewise.
12907 * addftinfo/addftinfo.cc (param_table): Likewise.
12909 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12910 about temp's being unused.
12911 (unused): New function.
12913 * groff/pipeline.cc: Declare c_fatal.
12915 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12918 * libbib/index.cc (index_search_item::load): Prevent compiler
12919 warnings about fd_closer's being unused.
12920 (unused): New function.
12922 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12924 * troff/input.cc (copy_mode_error): Make `prefix' static.
12927 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12929 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12930 HAVE_CC_OSFCN_H and modify accordingly.
12932 * troff/input.cc (init_charset_table): radicalex overlaps
12935 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12936 udodo!hans@relay.NL.net).
12937 * groff/configure.in: Call it.
12939 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12940 * groff/configure.in: Call it.
12941 * include/lib.h: Conditionalize declaration of pclose.
12943 * troff/div.cc (last_page_number): New global variable.
12944 (top_level_diversion::begin_page): Exit if we just printed the
12946 * troff/div.h (last_page_number): Declare it.
12947 * troff/input.cc (parse_output_page_list): Set last_page_number.
12949 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12950 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12951 tmac/tmac.X: Likewise.
12952 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12953 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12955 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
12957 * tmac/doc-ditroff (hK): Remove groff specific code which
12958 prevented page-breaks between separate manual entries. If this is
12959 the first page, don't set the page number to 1.
12961 * acgroff.m4 (GROFF_POSIX): New macro.
12962 * configure.in: Use it.
12964 * troff/node.cc (class real_output_file,
12965 real_output_file::real_output_file,
12966 real_output_file::~real_output_file): Conditionalize use of
12967 popen/pclose on POPEN_MISSING.
12968 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12969 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12970 (pipe_source): Similarily.
12972 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12974 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12975 presence of declarations by trying to compile example with
12976 conflicting declarations. (gcc only gives a warning for missing
12979 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
12981 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12982 (from Ulrich Lauther).
12984 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
12986 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12988 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
12990 * indxbib/indxbib.cc (write_hash_table): Add code for case where
12991 pointers and ints have different sizes.
12993 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
12995 * tmac/tmac.s (par*env-init): Call par@reset.
12997 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
12999 * tmac/tmac.s (@IP): Switch to a new environment when diverting
13001 (par*push-tag-env, par*pop-tag-env): New macros.
13003 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
13005 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13006 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
13008 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13009 comment. Include <time.h>.
13011 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
13013 * grops/ps.cc (is_small_h, is_small_v): Deleted.
13014 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13017 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
13019 * troff/input.cc (read_request): Only print a prompt if reading
13020 from the terminal. Also clearerr on EOF if reading from the
13021 terminal. Declare isatty.
13023 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
13025 * refer/label.y: Rename map_t to map_func and extractor_t to
13028 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13030 * include/assert.h: Don't use volatile.
13031 * libgroff/assert.cc: Likewise.
13033 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13035 * troff/input.cc (abort_request): Look at character in tok before
13036 calling get_copy().
13038 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13040 * troff/troff.h (NO_RETURN): Deleted.
13041 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13042 * troff/input.cc (exit_troff): Likewise
13044 * Makefile.in: Remove `Making ...' messages since GNU make now
13047 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13049 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13051 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13052 to constant 1 inch.
13054 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13056 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13058 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13060 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13061 MARK_REG if there was no left delimiter.
13063 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13065 * pic/troff.cc (troff_output::text): Set line thickness to
13066 relative before outputting text.
13068 * tmac/tmac.e (@k): Don't zero ?T.
13071 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13073 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13075 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13077 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13080 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13082 * troff/input.cc (ignoring): New variable.
13083 (ignore): Set ignoring during call to do_define_macro.
13084 (do_define_macro): Clear ignoring before interpolating terminating
13086 (copy_mode_error): New function.
13087 (get_char_for_escape_name, read_long_escape_name,
13088 interpolate_arg): Use copy_mode_error.
13089 (warning_table): Add WARN_IG.
13090 * troff/troff.h (WARN_IG): Declare.
13091 (WARN_TOTAL): Change accordingly.
13093 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13094 * groff/groff.cc (strsignal): Delete declaration.
13096 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13098 * troff/div.cc (page_offset): Use 'm' as default scaling.
13100 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13102 * nroff/nroff.sh: Ignore -u.
13104 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13106 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13108 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13110 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13112 (B2): With -Tascii, leave additional vertical space before
13113 and after. Ensure that the left and right indent is restored to
13114 what it was even if the point size changes. Don't call
13115 par@finish. Change the indent, line length and title length
13116 directly. With -Tascii, make the width of the box 1n less.
13117 (B1): Remember 1n at the current point size. Don't call
13118 par@reset. Change the indent, line length and title length
13119 directly. Ensure that the temporary indent is preserved.
13120 (par*box-mark-top): Turn off no spacing mode.
13122 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13124 * Makefile.in (dist): Use .gz suffix.
13126 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13128 * troff/input.cc (main): Add return 0.
13129 * pic/main.cc (main): Use return instead of exit.
13130 * tbl/main.cc (main): Likewise.
13131 * eqn/main.cc (main): Likewise.
13132 * grops/ps.cc (main): Likewise.
13133 * grotty/tty.cc (main): Likewise.
13134 * groff/groff.cc (main): Likewise.
13135 * grodvi/dvi.cc (main): Likewise.
13136 * refer/refer.cc (main): Likewise.
13137 * indxbib/indxbib.cc (main): Likewise.
13138 * lkbib/lkbib.cc (main): Likewise.
13139 * soelim/soelim.cc (main): Likewise.
13140 * addftinfo/addftinfo.cc (main): Likewise.
13141 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13142 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13144 * troff/token.h (process_input_stack): Don't declare as static.
13145 * troff/input.cc: Likewise.
13147 * troff/node.c (invalidate_fontno): Make it a static member of
13148 class font_family. Change callers.
13149 * troff/node.c: Change declaration.
13151 * tbl/main.cc (struct input_entry_format): Add explicit public
13153 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13154 struct double_hline_stuff): Likewise.
13155 * tbl/table.h (struct entry_format): Likewise.
13156 * pic/object.h (struct saved_state): Likewise.
13158 * include/stringclass.h: Add forward declarations of friend
13159 functions that are later declared as inline. Don't include inline
13160 specifier in friend declaration.
13162 * libgroff/lib.h: Declare popen and pclose.
13163 * acgroff.m4 (GROFF_POPEN): New macro.
13164 * configure.in: Call it.
13166 * include/lib.h (PI): New constant. Undef first if necessary.
13167 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13168 * grops/ps.cc (degrees, radians): Likewise.
13169 * libgroff/font.cc (font::get_skew): Likewise.
13171 * grops/ps.cc (is_ascii): New function.
13172 (ps_output::put_string): Use is_ascii. Use csprint rather than
13174 (ps_printer::define_encoding): Use csspace.
13175 * libgroff/strtol.c (ISASCII): New macro.
13176 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13177 Use ISASCII rather than isascii.
13178 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13179 * libgroff/cset.cc: Likewise.
13180 * libdriver/input.cc: Include cset.h.
13181 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13184 * refer/refer.cc (main): Use %ld rather than %d for longs.
13186 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13189 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13191 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13193 * troff/input.cc (hyphenation_code): Skip white space between
13196 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13198 * tbl/table.h (table::entry_list_tailp): New member.
13199 (table::table): Initialize it.
13200 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13203 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13205 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13206 with negative horizontal positions. Remove casts of glyph::hpos to
13208 (USHRT_MAX): Delete definition.
13209 (SHRT_MAX, SHRT_MIN): New definitions.
13210 (glyph::hpos): Change type to short.
13211 (tty_printer::end_page): Output multiple backspaces if necessary.
13212 Remove casts of glyph::hpos to int.
13214 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13216 * tmac/tmac.s (@RT): New definition.
13218 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13220 * refer/refer.cc (do_file): Make sure current_filename is set when
13223 * pic/common.cc (common_output::dot_line): Handle zero length
13226 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13228 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13229 (par@init): Initialize \n[HY].
13231 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13233 * troff/dictionary.cc (dictionary::remove): Continue when
13236 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13238 * Makefile.com (.y.cc): Avoid ending up with two versions of
13241 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13243 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13244 (\(,C): Likewise. Also fix typo.
13246 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13248 * lib.h: Delete extraneous semi-colon.
13250 * Add pso request: `so' from a pipe.
13251 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13252 (file_iterator::close): New function.
13253 (file_iterator::~file_iterator, file_iterator::next_file): Use
13254 file_iterator::close.
13255 (file_iterator::backtrace): Say `process' rather than `file' when
13256 the stream is popened.
13257 (pipe_source): New function.
13258 (init_input_requests): Bind ".pso" to pipe_source.
13260 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13262 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13264 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13265 digits in lower case.
13267 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13269 * Version 1.08 released.
13271 * Makefile.in (dist): Insert || true after ln -s commands that
13274 * mm: Update to mm 1.16.
13276 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13277 * configure.in: Call GROFF_CSH_HACK. Substitute for
13279 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13281 * nroff/Makefile.sub (nroff): New target.
13282 (install_data): Install nroff.
13283 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13284 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13286 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13288 * eqn/Makefile.sub (neqn): Add chmod +x.
13290 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13292 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13294 * troff/input.cc (string_iterator::string_iterator()): Initialize
13297 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13299 * troff/div.cc (macro_diversion::space,
13300 top_level_diversion::space): Don't set high_water_mark.
13301 (macro_diversion::output, top_level_diversion::output): Don't
13302 include post line space in high water mark.
13304 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13306 * eqn/eqn.y: Don't define YYDEBUG.
13307 * pic/pic.y: Likewise.
13309 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13311 * tmac/tmac.e ([3): Add space after comma following editors.
13312 Change double spaces to single spaces.
13313 ([4): Change double spaces to single spaces.
13315 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13316 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13317 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13318 after %!PS-Adobe- (for Newsprint).
13320 * troff/div.cc (top_level_diversion::begin_page): When
13321 before_first_page is 1, set page_number to 1.
13323 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13325 * eqn/box.cc (box::top_level): Protect equation with \&.
13327 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13329 * groff/groff.cc (possible_command::set_name): Delete old name.
13331 * groff/groff.cc (possible_command::~possible_command): Use
13334 * troff/node.cc (troff_output_file::begun_page): New member.
13335 (troff_output_file::troff_output_file): Initialize it.
13336 (troff_output_file::really_begin_page): Only output V command if a
13337 page has been begun.
13339 * pic/pic.y (placeless_element): Delete argument to PRINT after
13342 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13344 * Make wrapman work.
13345 * troff/div.h (class top_level_diversion): Replace
13346 first_page_begun by before_first_page (with opposite sense).
13347 * Change first_page_begun to before_first_page inverting sense.
13348 * troff/div.cc (class nl_reg): New class.
13349 (init_div_requests): Use class nl_reg for \n(nl.
13350 (top_level_diversion::begin_page): Don't call
13351 output_file::begin_page if before_first_page is 2;
13352 reset before_first_page afterwards. If have_next_page_number is
13353 false, then always increment page_number.
13354 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13355 Restore compatibility mode after loading, and then disable
13356 compatibility mode in TH.
13358 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13360 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13362 * troff/node.h (output_file::trailer): Declare.
13363 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13364 * troff/node.cc (output_file::trailer): New function.
13365 (troff_output_file::~troff_output_file): Move most code into...
13366 (troff_output_file::trailer): New function.
13367 (class troff_output_file): Delete page_length member. Declare
13369 (troff_output_file::really_begin_page): Use current page length
13370 for final V command.
13372 * tbl/main.cc (struct options): New decimal_point_char member.
13373 (options::options): Initialize this.
13374 (process_options): Implement decimalpoint option.
13375 (process_data): Pass decimal_point_char option to table::table.
13376 * tbl/table.h (class table): New decimal_point_char member.
13377 (table::table): Add additional argument.
13378 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13379 second argument specifying decimal point character. Use this
13381 (table::table): Initialize decimal_point_char.
13382 (table::add_entry): Change call to find_dot.
13384 * troff/input.cc (get_copy, token::next): Implement \V.
13385 (interpolate_environment_variable): New function.
13387 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13389 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13390 * pic/pic.y: Likewise.
13392 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13394 * refer/ref.cc (reference::insert_field, reference::delete_field):
13396 * troff/number.cc (parse_term): Likewise.
13398 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13399 * configure.in: Use GROFF_PROG_YACC.
13401 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13403 * Makefile.in (OPTIMIZE): New define.
13404 (DEBUG): Empty by default.
13405 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13407 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13408 (GROFF_ARRAY_DELETE): Likewise.
13409 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13411 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13413 * devps/psstrip.sed: Use different delimiter on last line (so that
13414 it works with BSD 4.4 sed.)
13416 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13418 * devps/psstrip.sed: Delete comments.
13420 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13421 optind, opterr, optarg.
13422 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13425 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13427 * Makefile.in (check): Dummy target.
13429 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13431 * Version 1.07 released.
13433 * Integrate mm 1.11.
13435 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13436 where start_col was meant.
13438 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13440 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13442 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13444 * troff/input.cc (token::next): Make \z\o'...' and similar things
13447 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13449 (environment): Add margin_character_flags member.
13450 * env.cc (environment::environment(symbol),
13451 environment::environment(const environment *): Initialize
13452 margin_character_flags.
13453 (margin_character): Rewrite.
13454 (environment::output_line): Add a margin character if
13455 margin_character_flags is non-zero. Turn off the
13456 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13457 zero, use margin_character_node without copying and then set
13458 margin_character_node to 0.
13460 * devps/DESC.in: Change minimum size to 1000.
13462 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13464 * troff/symbol.h (symbol::hash): Change return type to unsigned
13466 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13469 * test-groff: Use -r rather than -x.
13471 * grops/psfig.diff: Include in distribution again.
13473 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13475 * Makefile.in (dist): Use gzip.
13477 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13479 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13480 unistd.h as well as in stdlib.h.
13481 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13482 defined; otherwise include <sys/types.h> and <unistd.h> if
13483 UNISTD_H_DECLARES_GETOPT is defined.
13485 * configure.in: use builtin(include, ... rather than include(...
13486 * configure: Regenerate with autoconf 1.3.
13488 * libdriver/print.cc (printer::adjust_arc_center): Use new
13489 algorithm suggested by Andy Fyfe.
13491 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13492 * include/printer.h: Declare this.
13493 * grops/ps.cc (ps_printer::draw): Use it.
13494 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13496 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13498 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13500 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13502 * eqn/main.cc (main): Handle "eqn -".
13504 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13506 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13508 * mm: Integrate version 1.08.
13510 * pic/troff.cc (troff_output::finish_picture): Set
13511 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13512 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13513 if it's not defined. Check whether the register is non-zero rather
13514 than whether it's not defined.
13515 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13517 * indxbib/indxbib.cc: Move all signal handling into...
13518 * indxbib/signal.c: New file.
13519 * configure.in: Call AC_RETSIGTYPE.
13521 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13522 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13523 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13525 * troff/input.cc (token::token, token::operator=): Work round SGI
13527 * pic/object.cc (position::position): Likewise.
13529 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13531 * pic/pic.h: Move declaration of hypot().
13533 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13535 * pic/pic.h: Declare hypot().
13537 * pic/pic.h: Define M_PI if necessary.
13539 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13541 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13544 * devps/prologue.ps (RE): Handle the possibility that the old font
13545 doesn't have a FontName entry.
13547 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13549 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13550 (@C): Use @fam not fam.
13552 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13554 * lookbib/lookbib.cc (main): Change type of start to const char *.
13555 * lkbib/lkbib.cc (main): Likewise.
13557 * eqn/lex.cc (definition::definition): Don't use member
13558 initializer syntax for members of anonymous unions.
13560 * troff/input.cc (input_stack::backtrace): Change type of to const
13563 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13565 * include/stringclass.h (class string): Declare inline friend
13566 functions as inline in class declaration.
13567 * troff/hvunits.h (class hunits, class vunits): Likewise.
13568 * include/refid.h (class reference_id): Likewise
13569 * troff/troff.h (points_to_units(units), scale(units, double)):
13570 Delete declarations.
13571 * libdriver/input.cc (get_char): Delete declaration.
13572 * include/lib.h: Change 2nd argument of getopt from const char **
13574 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13575 char **' before assigning to a `const char **'.
13576 * tbl/table.cc: Delete extra declarations of prints().
13578 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13580 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13581 char **' before assigning to a `const char **'.
13583 * libgroff/errarg.cc (errarg::errarg): Don't use member
13584 initializer syntax for members of anonymous unions.
13586 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13588 * mm: Integrate version 1.07.
13590 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13592 * troff/input.c (translate2): Rename to
13593 (translate_no_transparent).
13594 (init_input_requests): Rename tr2 to trnt.
13596 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13598 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13599 (charinfo::set_translation, charinfo::set_special_translation):
13600 Add second argument that specifies value for
13601 transparent_translate.
13602 (charinfo::get_translation, charinfo::get_special_translation):
13603 Add optional second argument that specifies whether translation is
13604 being used for transparent throughput.
13605 * troff/input.cc (charinfo::set_translation,
13606 charinfo::set_special_translation): Handle second argument.
13607 (charinfo::charinfo): Initialize transparent_translate.
13608 (translate): Split main part off into
13609 (do_translate): New function. Pass argument saying whether
13610 translation applies to transparent throughput.
13611 (translate2): New request.
13612 (init_input_requests): Bind translate2 to `tr2'.
13614 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13616 * tbl/table.h (class table): Add `nokeep' flag.
13617 * tbl/main.cc (process_options): Handle `nokeep' option.
13618 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13619 table::do_bottom): Don't output keep/release macro definitions or
13620 calls when `nokeep' option has been specified.
13622 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13624 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13626 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13628 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13629 block_entry::divert, alphabetic_block_entry::divert): Add extra
13630 argument giving column separation.
13631 (table::compute_widths): Pass column separation to
13632 table_entry::divert().
13633 (block_entry::do_divert): If an entry spans multiple columns and a
13634 minimumum width has been specified for each column, then set the
13635 line length to the sum of the widths (plus possibly the column
13638 * troff/input.cc (set_escape_char): Don't set the escape_char
13639 until after calling has_arg().
13641 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13643 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13646 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13647 in case where r > nrows - 1.
13649 * tbl/table.cc (BODY_HEIGHT): Deleted.
13650 (LINE_SEP): New definition.
13651 (table::print_single_hline, table::print_double_hline,
13652 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13653 table::do_row, table::do_top): Use LINE_SEP space before a line
13654 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13656 * tbl/table.cc (text_entry::print_contents): New function.
13657 (text_string_name, right_text_string_name): Deleted.
13658 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13659 (simple_text_entry::do_width, numeric_text_entry::do_width,
13660 alphabetic_text_entry::do_width): Don't store the contents of the
13662 (left_text_entry::simple_print, right_text_entry::simple_print,
13663 center_text_entry::simple_print,
13664 alphabetic_text_entry::simple_print,
13665 numeric_text_entry::simple_print): Print the entry directly
13666 instead of using the stored string.
13668 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13670 * devps/Makefile: Strip PostScript files.
13671 * devps/prologue: Rename to...
13672 * devps/prologue.ps.
13673 * devps/psstrip.sed: New file.
13674 * devps/download: Use .pfa rather than .ps for installed versions
13677 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13679 * troff/env.cc (input_trap): Give a warning if the argument is out
13682 * troff/env.cc (adjust): Treat negative argument as missing. Round
13683 argument > 5 down to 5.
13685 * troff/env.cc (center, right_justify): Make negative argument zero.
13687 * troff/div.cc (page_offset, vertical_position_traps): Treat
13688 invalid argument as missing.
13689 * troff/env.cc (line_spacing, line_length, title_length, indent,
13690 underline, hyphen_line_max_request, control_char,
13691 no_break_control_char, widow_control_request, adjust, input_trap,
13692 point_size): Likewise.
13693 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13694 constant_space): Likewise.
13695 * troff/input.cc (compatible, shift, warn_request,
13696 set_escape_char): Likewise.
13698 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13699 * tbl/table.cc (table::table): Likewise.
13701 * Makefile.dev (install_dev): depends on $(DEVFILES).
13703 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13705 * devX75, devX75-12, devX100, devX100-12: New directories.
13706 * Makefile.in: Add these to DEVDIRS.
13708 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13709 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13710 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13711 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13713 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13714 (uninstall): New target.
13715 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13716 uninstall_prog, uninstall_dev): New targets.
13718 * troff/div.cc (return_request): Treat an invalid argument as
13721 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13723 * tmac/tmac.e ((f): Set up the environment even when there's a
13724 current diversion. Transperently throughput a call to @N.
13727 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13729 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13730 up to vertical resolution.
13732 * tbl/table.cc (table::do_row): Change row number after printing
13735 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13737 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13739 * Rename CHANGES to NEWS.
13741 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13743 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13745 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13747 * man.ultrix: Removed.
13749 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13751 * Makefile.comm (extraclean): Delete files whose names begin with
13754 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13757 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13759 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13760 * troff/div.cc (page_length, need_space, space_request): Treat
13761 invalid optional argument as missing.
13762 * troff/env.cc (number_lines): If the first argument is present
13763 but not a number, turn on line numbering, don't change the next
13764 line number and parse the remaining arguments.
13766 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13768 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13770 * eqn/box.h: Change declaration accordingly.
13771 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13772 the specified size was bad but don't give an error. Check for
13774 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13775 * eqn/lex (do_size): Likewise.
13777 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13779 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13780 compatible headers.
13782 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13784 * tbl/table.cc (table::init_output): Improve error message when
13785 table won't fit on one page.
13787 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13789 * pic/troff.cc (troff_output::start_picture): Generate line
13790 containing a horizontal motion equal to the width of the picture.
13792 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13793 using GROFF_COMMAND_PREFIX environment variable.
13795 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13797 * mdate.sh: Use $NF rather than $(NF).
13799 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13801 * pic/main.cc (main): Use %1 not %c in argument to warning.
13803 * eqn/main.cc (main): Output code to check that geqn was given the
13806 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13808 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13809 `ln -s ../Makefile .; make; rm -f Makefile'.
13811 * troff/hyphen: Rename to...
13813 * troff/input.cc (main): Delete -H option. Don't call
13814 read_hyphen_file().
13815 * troff/env.cc: Include searchpath.h and macropath.h.
13816 (exception_dictionary): Deleted.
13818 (read_hyphen_file): Deleted.
13819 (hyphenation_language): New struct.
13820 (class trie, class hyphen_trie): Move declarations up.
13821 (trie_node::~trie_node): Deleted.
13822 (trie::delete_trie_node): New function.
13823 (trie::do_delete): New pure virtual function.
13824 (hyphen_trie::do_delete): New function.
13825 (trie::~trie): New function.
13826 (hyphen_trie::~hyphen_trie): New function.
13827 (trie::clear): No need to chcek that tp is not 0.
13828 (current_language, language_dictionary): New variables.
13829 (hyphen_word): Give an error if no current language. Use
13830 exceptions dictionary in current language.
13831 (hyphen_trie::read_patterns_file): Find file using macro_path.
13832 Allow comments (starting with %) in patterns file. Don't make it
13833 a fatal error if the file can't be found.
13834 (hyphenate): Return if no current language. Get the exceptions
13835 dictionary and the hyphenation patterns from the current language.
13836 (set_hyphenation_language): New variable.
13837 (hyphenation_patterns_file): New function.
13838 (hyphenation_language_reg): New class.
13839 (hyphenation_language_reg::get_string): New function.
13840 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13841 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13843 * groff/groff.cc (main, help, synopsis): Delete -H option.
13844 * include/Makefile.sub: Don't define HYPHENFILE.
13845 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13846 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13847 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13848 hyphenation patterns.
13850 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13852 * eqn/neqn.sh: New file.
13853 * eqn/Makefile.sub: Handle neqn.sh.
13855 * eqn/eqn.h: Declare `nroff' variable.
13856 * eqn/box.cc (param_table): Add `nroff' param.
13857 (nroff): Define it.
13858 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13860 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13862 * troff/troff.h (WARN_FONT): New warning.
13863 (WARN_TOTAL): Change accordingly.
13864 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13865 (warning_table): Add WARN_FONT.
13866 * troff/node.cc (mount_font_no_translate): Pass argument to
13867 font::load_font. If this is non-zero, give a warning.
13868 Don't give an error message when accessing a font that has already
13869 been found to be invalid.
13870 * include/font.h (font::load, font::load_font): Add additional
13871 optional argument which suppresses error message if the font is
13873 * libgroff/font.cc (font::load_font): Handle additional argument.
13874 (font::load): Add additional argument. If this is non-null, set it
13875 to 1 and don't give error message.
13877 * include/printer.h (printer::end_page): Add argument giving
13879 * libdriver/input.cc (do_file): Pass this.
13880 * grops/ps.cc (ps_printer::end_page): Add argument.
13881 * grodvi/dvi.cc (dvi_printer::end_page,
13882 draw_dvi_printer::end_page): Add argument.
13883 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13884 columns_per_page members. New member nlines.
13885 (DEFAULT_LINES_PER_PAGE): Deleted.
13886 (tty_printer::tty_printer): Don't compute lines_per_page from
13887 font::paperlength. Don't compute columns_per_page from
13889 (tty_printer::add_char): Don't check horizontal position against
13890 columns_per_page. Grow glyphs vector if neccessary.
13891 (tty_printer::end_page): Add argument giving page_length in units.
13892 Discard lines past end of page.
13894 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13896 * tmac/tmac.tty-char: Fix definition of \(/l.
13898 * tmac/tmac.X: Define \(en.
13900 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13902 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13903 lpq, then use lp rather than lpr.
13905 * tmac/tmac.s (par@reset): Don't call `ad'.
13906 (par*env-init): Call `ad'.
13908 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13910 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13913 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13914 * indxbib/indxbib.cc: Likewise.
13916 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13918 * libgroff/putenv.c: New file.
13919 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13920 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13921 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13922 stdlib.h with AC_HAVE_HEADERS.
13924 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13926 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13929 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13931 * eqn/box.cc (gsize): Make it an int.
13932 (set_gsize): Parse argument handling increment or decrement.
13933 (box::top_level): Convert gsize to a string.
13935 * troff/input.cc (exit_troff): Make buf unsigned char [].
13936 Call to make_temp_iterator casts buf to char*.
13938 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13940 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13941 * Makefile.cpg (depend.temp): Likewise.
13943 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13945 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13947 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13949 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13951 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
13953 * Version 1.06 released.
13955 * Integrate mm 1.04.
13957 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
13959 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13961 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
13963 * afmtodit/afmtodit.pl: Add -n option that disables generation of
13965 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13966 afmtodit. Regenerate.
13968 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13969 @f back past the current position.
13971 * tmac/tmac.e: Change calls to @R so that comments are not part of
13974 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
13976 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13978 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13979 check that we can link a call to a function declared in <stdio.h>.
13980 (GROFF_UNISTD_H): New macro.
13981 * configure.in: Call it.
13982 * Makefile.in: Document it.
13983 * include/posix.h: New file.
13984 * troff/troff.h: Don't include <osfcn.h>
13985 * troff/input.cc: Include posix.h.
13986 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13988 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13989 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13991 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13992 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13993 * libbib/search.cc (O_RDONLY): Delete definition.
13994 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13995 Don't include <osfcn.h>.
13997 * acgroff.m4 (GROFF_TIME_T): New macro.
13998 * configure.in: Call it.
13999 * Makefile.in: Document it.
14001 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14002 * configure.in: Call it.
14003 * Makefile.in: Document -DTRADITIONAL_CPP.
14004 * include/ptable.h: Don't include generic.h.
14005 (name2): Define it.
14007 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14008 Afterwards remove [T1 and [T2.
14009 (ref*spec!0, ref*spec!2): Use T1 rather than T.
14010 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14011 (ref*add-T2): Renamed from ref*add-T.
14012 (ref*add-T1): New macro.
14014 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
14016 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14018 * libbib/index.cc: Include <fcntl.h>.
14019 (O_RDONLY): Define if necessary.
14020 (make_index_search_item, index_search_item_iterator::get_tag,
14021 index_search_item::check_files): Use O_RDONLY.
14022 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14023 (O_RDONLY): Define if necessary.
14024 (search_list::add_file): Use O_RDONLY.
14025 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14027 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14030 * libbib/index.cc (S_ISREG): Define it if necessary.
14031 (index_search_item::load): Use S_ISREG.
14033 * include/driver.h: Include <errno.h>.
14035 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14037 * eqn/box.cc (body_height): Increase default value to 85.
14038 (body_depth): Increase default value to 35.
14040 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14042 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14043 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14044 protected from expansion with \E.
14046 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14048 * Makefile (Makefile): New target.
14050 * Makefile.sub (configure, distfiles): New targets.
14052 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14055 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14057 * eqn/box.cc (param_table): Add body_height and body_depth.
14059 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14061 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14063 * psbb/Makefile.sub: Don't link with libgroff.a.
14065 * acgroff.m4 (GROFF_PUTENV): New macro.
14066 * configure.in: Call GROFF_PUTENV.
14067 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14068 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14071 * troff/env.cc (distribute_space): Rename force_forward argument
14072 to force_reverse. Reverse the list if force_reverse is true.
14074 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14076 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14078 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14079 height or depth to be negative. Guard against SUP_RAISE quantity
14082 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14084 * devps/generate/textmap: Add `an' (arrowhorizex).
14085 * tmac/tmac.ps: \(an overlaps horizontally.
14086 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14088 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14089 * devps/textmap: Add arrowvertex.
14090 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14091 updownarrow delimiters.
14092 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14094 * tbl/table.cc (simple_entry::position_vertically,
14095 block_entry::position_vertically): For a centered entry, perform
14096 the motion in two stages.
14098 * refer/refer.cc (split_punct): Don't call lookup_token if there
14101 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14103 * troff/input.cc (token::next): Delete token_node after copying
14106 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14109 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14111 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14113 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14115 * grops/ps.cc (usage): -b option takes an argument.
14117 * devps/prologue (PLG): New procedure.
14118 * grops/ps.cc (main, usage): New -g option.
14119 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14122 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14124 * include/cset.h: Include <limits.h> if we have it.
14126 * libgroff/illegal.cc: New file.
14127 * include/lib.h (illegal_input_char): Use table.
14128 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14129 * pic/lex.cc (ARG1): Renumber to 14.
14130 * eqn/lex.cc (ARG1): Likewise.
14132 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14133 (eg 1.05.90) correctly.
14135 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14137 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14138 Rename $r and $R registers to $v and $V.
14139 ($r, $R): Initialize to 0.
14140 (@v, @V): New macros.
14144 * troff/input.cc (main, usage): Add -R option that says not to
14146 * eqn/main.cc (main, usage): Rename -n to -R.
14148 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14150 * devps/DESC.in: Leave font positions 5-9 blank.
14151 * devdvi/DESC.in: Likewise.
14153 * grog/grog.pl: Handle `.PS <file' correctly.
14155 * troff/input.cc (input_stack::push): Improve error message when
14156 input stack limit exceeded.
14158 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14160 * refer/refer.cc (main): Fix typo in handling of `a' option.
14162 * refer/refer.cc (do_bib): In state START after a newline remain
14165 * groff/groff.sh: Deleted.
14166 * groff/Makefile.sub: Delete handling of groff.sh.
14168 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14169 to determine whether to use \X'ps:...'.
14170 * tmac/troffrc: Set 0p register to 0.
14171 * tmac/tmac.ps: Set 0p register to 1.
14173 * groff/groff.cc: Support -X option. Give warning for -TXps and
14174 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14175 * tmac/troffrc: Support -r.X=1.
14177 * pic/troff.cc (troff_output::dot): Don't test
14178 zero_length_line_flag.
14180 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14182 * include/lib.h: Declare getopt() and friends unless
14183 STDLIB_H_DECLARES_GETOPT is defined.
14185 * doc/chars.tr: Delete.
14186 * man/groff_char.man: New file.
14188 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14190 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14191 user has changed register format.
14193 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14195 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14196 `postpro' command in DESC file. Get spooler command from `print'
14197 command in DESC file. Execute spooler command with /bin/sh.
14199 * groff/groff.cc: Split Unix-specific parts into...
14200 * groff/pipeline.c: New file.
14203 * COPYING: New file.
14204 * all files: Update copyright notices.
14206 * Rearrange files. Redo Makefiles. Use autoconf.
14208 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14210 * troff/input.c (charinfo_to_node_list): Interpret character
14211 definition with escape_char of `\'.
14213 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14215 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14216 Define INT_DIGITS as big enough for 64-bit integer.
14217 * lib/strtol.c: Don't include lib.h.
14218 * lib/lib.h: Delete ifdef __cplusplus stuff.
14220 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14222 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14223 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14224 get DESC from current directory.
14226 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14228 * tbl/main.c (main): Always reset the line number when reading
14231 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14232 table::define_bottom_macro, table::do_row, table::do_top): Round
14233 vertical spacing up to vertical resolution.
14235 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14237 * ps/ps.h (enum resource_type): Avoid comma at end of
14239 * dvi/dvi.c (class dvi_printer): Likewise.
14240 * dvi/tfmtodit.c (gf::load): Likewise.
14241 * refer/label.y (struct expression): Likewise.
14242 * refer/refer.c (class label_processing_state): Likewise.
14243 * refer/indxbib.c (do_file): Likewise.
14244 * troff/troff.c (enum warning_type): Likewise.
14245 * tbl/main.c (process_data): Likewise.
14246 * troff/charinfo.h (class charinfo):
14248 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14250 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14252 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14254 * groff.c: Move to new groff subdirectory.
14255 * groff/Makefile: New file.
14256 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14258 * man/mdate.sh: Use ls -L if supported.
14260 * Consolidate all header files produced by gendef into lib/defs.h.
14261 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14262 Don't include path.h.
14263 * lib/Makefile (path.h): Don't generate.
14264 * troff/input.c: Include defs.h. Don't include config.h.
14265 * troff/Makefile (config.h): Don't generate.
14266 * refer/index.h: Don't include suffix.h.
14267 * refer/index.c: Include defs.h.
14268 * refer/indxbib.c: Include defs.h.
14269 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14271 * refer/Makefile (suffix.h, path.h): Don't generate.
14272 * groff.c: Don't include config.h. Include defs.h.
14273 * Makefile (config.h): Don't generate.
14274 (lib/defs.h): Generate.
14275 (topclean): Remove lib/defs.h.
14277 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14279 * lib/malloc.c, lib/getpagesize.h: Deleted.
14280 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14282 * lib/Makefile: Delete malloc-related stuff.
14283 * lib/new.c: Workaround COOKIE_BUG if necessary.
14285 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14286 needed header files directly.
14287 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14288 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14290 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14292 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14294 * lib/font (font::load_desc, font::load): Don't split argument of
14296 (font::handle_unknown_font_command): Change type.
14297 * ps/ps.c (ps_font::handle_unknown_font_command,
14298 handle_unknown_desc_command): Change type.
14299 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14301 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14303 * lib/font.h (font::handle_unknown_font_command): Add file and
14305 * lib/font.c (font::handle_unknown_font_command):
14306 * ps/ps.c (ps_font::handle_unknown_font_command):
14307 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14308 lineno arguments. Use _with_file_and_line functions for error
14311 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14313 * lib/font.c (font::set_unknown_desc_command_handler): New
14315 (font::load_desc): For unknown commands, call
14316 unknown_desc_command_handler if not null.
14317 * lib/font.h (class font): Declare them.
14318 (FONT_COMMAND_HANDLER): New typedef.
14319 * ps/ps.c (handle_unknown_desc_command): New function.
14320 (main): Set bflag if we had a -b option. Call
14321 font::set_unknown_desc_command_handler.
14322 (broken.h): Don't include.
14323 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14325 * ps/devps/Makefile: Add `broken' command to DESC file using
14326 BROKEN_SPOOLER_FLAGS.
14328 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14330 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14332 * macros/tmac.e (@R, @S): New macros.
14333 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14334 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14335 Declare $H, $[0-9], .. macros with @S.
14336 Declare |0, |1, |2, |3 strings with @S.
14338 * macros/tmac.e (@S): Rename to @U.
14340 * macros/tmac.e (@z): Define @b and bp as empty instead of
14343 * macros/tmac.e (@m): Deleted.
14344 (@h): Don't call @m.
14345 (@z): Don't set @m trap.
14347 * macros/tmac.e ($h, $f): Define |z as empty string.
14349 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14352 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14354 ()f): Likewise for * register.
14356 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14357 argument is missing, don't change $R. Call sr with three
14358 arguments when initializing.
14360 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14362 * macros/tmac.e (sr): New macro.
14363 Initialize $r and $R using sr.
14365 * macros/tmac.e (,): Delete \*(#[.
14367 * troff/env.c (set_tabs): Read the tab type even if the position
14368 is bad. Allow the position of the first tab stop to be negative.
14370 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14372 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14374 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14375 rather than -DPATHCONF_MISSING.
14376 * Makefile: Get rid of PATHCONF_MISSING.
14378 * refer/map.c: New file.
14379 * refer/index.c: Interface to mmap through map.c. Rename map_size
14381 * refer/Makefile: Handle map.c.
14382 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14384 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14386 * Makefile: RANLIB should be `true' if there is no ranlib.
14387 * lib/Makefile (libgroff.a): Simplify.
14388 * driver/Makefile (libdriver.a): Simplify.
14390 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14391 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14394 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14396 * troff/env.c (compare_ranges): Declare as extern "C".
14398 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14400 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14402 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14404 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14405 but conditionalize use of \X based on \*(.T.
14406 (grops_output::*): Deleted.
14407 * pic/output.h: Delete declaration of make_grops_output.
14408 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14409 by default. -n sets it to 0.
14410 (usage): Corresponding changes.
14411 * groff.c (main): Don't pass -x or -p to pic.
14412 * groff.sh: Likewise.
14414 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14417 * ps/devps/afmtodit: Change calculation of asc_boundary and
14418 desc_boundary. Make these bounds inclusive.
14419 * ps/devps: Regenerate font files.
14421 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14423 * macros/tmac.latin1: New file.
14424 * macros/tmac.tty-char: Use tmac.latin1.
14425 (tmac.tty-tr): Deleted.
14426 * macros/Makefile: Install tmac.latin1.
14427 * macros/tmac.dvi: Use tmac.latin1.
14428 * macros/troffrc: Translate \[char160] onto no-break space here.
14429 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14431 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14433 * macros/tmac.Xps: Use `do' request.
14435 * macros/tmac.ps: Use `do' request.
14437 * macros/tmac.e (@C): Use `do' request.
14439 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14440 * macros/Makefile: Install tmac.X*.
14442 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14443 * tty/Makefile: Don't install tmac.tty*.
14444 * macros/Makefile: Install tmac.tty*.
14446 * dvi/tmac.dvi: Move to macros.
14447 * dvi/Makefile: Don't install tmac.dvi.
14448 * macros/Makefile: Install tmac.dvi.
14450 * ps/tmac.ps*: Move to macros.
14451 * ps/Makefile: Don't install tmac.ps*.
14452 * macros/Makefile: Install tmac.ps*.
14454 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14456 * macros/eqnrc: Set draw_lines parameter based on device.
14457 * groff.c: Don't pass -D flag to eqn.
14458 * groff.sh: Likewise.
14459 * eqn/main.c: Warn about use of -D.
14461 * troff/input.c (process_startup_file): New function.
14462 (main): Call process_startup_file().
14463 * macros/troffrc: New file.
14464 * macros/Makefile: Install troffrc.
14465 * groff.c (main): Don't pass extra -m option to troff. For a
14466 pseudo device pass the name of the pseudo device to troff using
14468 * groff.sh: Likewise.
14469 * groff.c (possible_command::prepend_arg): Deleted.
14471 * troff/input.c (do_request): New function.
14472 (init_input_requests): Bind "do" to do_request.
14474 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14475 load eqnrc from macro directory.
14476 * macros/eqnrc: New file.
14477 * macros/Makefile: Install eqnrc.
14478 * ps/devps/eqnchar: Deleted.
14479 * ps/devps/Makefile: Don't install eqnchar.
14480 * dvi/devdvi/eqnchar: Deleted.
14481 * dvi/devdvi/Makefile: Don't install eqnchar.
14482 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14485 * lib/device.[ch]: New files.
14486 * lib/font.h (font::set_device_name, font::get_device_name):
14488 * lib/fontfile.c: Use device.h.
14489 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14490 * troff/input.c: Delete definition of `device'.
14491 (main): Don't initialize device.
14492 * troff/troff.h: Include device.h rather than declaring device.
14493 * troff/Makefile: No need to handle DEVICE.
14494 * driver/input.c: Include device.h. Don't use
14495 font::{set,get}_device_name.
14496 * groff.c, Makefile: Rename device.h to config.h.
14497 * groff.c: Use library device variable.
14498 * eqn/main.c: Use library device variable.
14499 * eqn/Makefile: No need to handle DEVICE.
14501 * lib/searchpath.[ch]: New files.
14502 * lib/Makefile: Handle searchpath.[ch].
14503 * troff/input.c (open_file, init_dirs): Deleted.
14504 (macro_dirs): Deleted.
14505 (open_mac_file, macro_source): Use class search_path.
14506 (add_string, struct string_list): Move definition.
14507 (main): Change -M option to use macro_path. Delete call to
14509 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14510 Rewrite to use class search_path.
14511 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14512 * lib/Makefile: fontfile.c depends on searchpath.h.
14513 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14515 * lib/macropath.[ch]: New files.
14516 * troff/Makefile: No need to handle MACROPATH.
14518 * troff/input.c: Delete DUMP code.
14519 * lib/fontfile.c, lib/font.h: Delete
14520 font::forget_command_line_font_dirs.
14522 * troff/input.c (push_token): New function.
14523 (handle_first_page_transition): Use push_token().
14524 (process_input_stack): Change handling of a space at the beginning
14527 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14529 * troff/input.c (font_dirs): Delete unused variable.
14531 * eqn/lex.c (do_set): Correct error messages.
14533 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14535 * troff/input.c (do_define_string): Allow the string name to be
14536 followed immediately by a tab.
14537 (define_character): Likewise.
14539 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14541 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14544 * troff/input.c (input_iterator::is_file): New virtual function.
14545 (file_iterator::is_file): New function.
14546 (input_stack::end_file): New function.
14547 (input_stack::next_file): Handle the situation where there is no
14548 file on the input stack correctly. Avoid making two passes over
14550 (next_file): Make the filename optional; in this case call
14551 input_stack::end_file().
14553 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14555 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14556 produce a real _ charater when the current font is CW and _
14559 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14560 expression to work around gcc 2.2 bug.
14562 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14564 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14566 * troff/env.c (environment::add_padding): New function.
14567 (environment::add_char): Use add_padding().
14568 (environment::space): Likewise.
14569 (environment::wrap_up_field): Add some padding if there is none
14570 and there's no current tab.
14571 * troff/env.h: Declare environment::add_padding.
14573 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14575 * pic/pic.y: undef fmod and rand before declaring them.
14577 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14579 * troff/input.c (main): If the DESC file specifies a font name of
14580 0, then leave the corresponding font position empty.
14582 * nroff.sh: New file.
14583 * Makefile (install.nobin): Install nroff.sh.
14585 * tty/devlatin1/R.proto: Add ao as synonym for de.
14586 * tty/tmac.tty-char: Define ao as o.
14588 * tty/dev{ascii,latin1}/R.proto: Add aq.
14589 * tty/tmac.tty-char: Delete definition of aq.
14591 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14593 * troff/input.c (init_charset_table): Don't translate 0240.
14594 * ps/tmac.ps: Translate char160 to space.
14595 * dvi/tmac.dvi: Likewise.
14596 * tty/tmac.tty: Likewise.
14598 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14600 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14602 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14603 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14606 * tty/tmac.tty-char: Add \(ah.
14608 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14609 No need to define \(FM and \(!/. Conditionalize all character
14612 * ps/devps/lgreekmap: Add +h, +f, +p.
14614 * ps/tmac.psnew: New file.
14615 * ps/Makefile: Install tmac.psnew.
14617 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14618 character definitions in compatible mode.
14620 * troff/input.c (remove_character): New function.
14621 (init_input_requests): Bind remove_character to "rchar".
14623 * ps/tmac.psold: New file.
14624 * ps/Makefile: Install tmac.psold.
14625 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14626 characters into tmac.psold. Make these definitions unconditional.
14628 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14630 * ps/tmac.ps: Don't define \('c and \('C.
14632 * ps/devps/textmap: Move Greek characters to...
14633 * ps/devps/symbolchars:
14635 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14637 * ps/devps/text.enc: Add quotesingle.
14638 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14639 * tty/tmac.tty-char: Likewise.
14640 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14641 * dvi/devdvi/texi.map: Add Fn.
14642 * dvi/devdvi/msam.map: Add lz.
14643 * dvi/tmac.dvi: Handle Bq, bq, aq.
14645 * pic/lex.c (get_token): Recognize 'th.
14646 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14648 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14650 * ps/devps/textmap: Move di, mu, +- to...
14651 * ps/devps/symbolchars:
14653 * macros/tmac.s (@XS): Don't call par@reset or fi.
14654 (XA): Call LP. Turn off adjustment. Reduce line length.
14656 * macros/tmac.s: Initially alias XS to LP.
14657 (XS): Rename to @XS.
14658 (cov*ab-init): Alias XS to @XS.
14660 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14662 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14663 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14664 (token::is_size, token::changes_env): Deleted.
14665 * troff/number.c (parse_term): No need to process \s explicitly.
14666 Call tok.next() only after scale indicator has been processed.
14667 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14669 (token::next): Handle \s, \f, \S, \H immediately rather than
14670 returning them as tokens.
14671 (token::operator==, token::description, token::add_to_node_list,
14672 token::process): Remove handling of deleted tokens.
14674 * troff/env.c (environment::add_char): When adding padding
14675 indicator character, call start_line() if necessary.
14677 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14679 * ps/devps/afmtodit: Don't output 0 kerns.
14681 * ps/devps/afmtodit: Remove directory from name of encoding in
14682 font description file.
14684 * ps/devps/afmtodit: Improve error messages.
14686 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14688 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14689 * ps/devps/FontMakefile: Deleted.
14690 * ps/devps/afmname: New file.
14692 * ps/devps/symbol.sed: New file.
14693 * ps/devps/symbol.diff: Deleted.
14694 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14695 Generate zapfdr.afm from zapfd.afm.
14697 * tty/tmac.tty (tty-char): Prefix definition with ".
14699 * macros/tmac.an (TP): Don't start a diversion if one has already
14702 * tty/tmac.tty-char: Add Latin-1 characters.
14704 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14706 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14708 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14709 Move declaration of struct horizontal_span.
14711 * tbl/table.c (table::table): Initialize span_list.
14712 (table::~table): Delete span_list.
14714 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14716 * ps/devps/Makefile: Avoid dependency on GNU make.
14718 * ps/tmac.ps: Check that character does not already exist before
14721 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14722 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14723 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14726 * tty/tmac.tty-char: New file.
14727 * tty/Makefile: Install tmac.tty-char.
14728 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14731 * tty/tmac.tty: Fix definition of \(34.
14733 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14734 bracket-drawing characters onto |. Add *o.
14736 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14737 only if current_field.
14739 * troff/dictionary.c (dictionary::lookup): Free old_table after
14742 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14744 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14745 whose glyphs are identical to glyphs of some Roman character.
14747 * tty/devlatin1/R.proto (bu): Deleted.
14748 * tty/devascii/R.proto (bu): Deleted.
14749 * tty/tmac.tty: Add definition of \(bu.
14751 * eqn/main.c (do_file): Pass FILE as argument.
14752 (main): Automatically load eqnchar. New options -F and -n.
14753 Pass do_file an opened FILE.
14754 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14755 No need to include font.h.
14756 * groff.sh: Likewise. Don't need to use - for standard input.
14757 Prefix files with -- if first file starts with -.
14759 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14761 * troff/env.c (environment::possibly_break_line): Don't set line
14762 to 0 across call to output_line(). Don't call output_line() until
14763 after discarding nodes after break.
14765 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14767 * request.h (macro::empty): Declare it.
14768 * input.c (macro::empty): New method.
14769 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14772 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14774 * troff/env.c (environment::start_field): Decrement space_total
14775 when a space is frozen.
14777 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14779 * macros/tmac.an (R): Delete macro.
14781 * troff/input.c (get_copy, token::next): Support \# (like \" but
14782 newline is ignored).
14784 * troff/input.c (token::next): Fix error message in 'Y' case.
14786 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14788 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14791 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14793 * c++test.c: Include <osfcn.h>.
14795 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14798 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14800 * tbl/table.c (table::divide_span): Don't count column separation
14801 if expand was specified.
14803 * tbl/main.c (process_format): Don't ignore width specs in
14804 continued format. Give warning for changing equal widths or
14805 column separation in continued format.
14806 (process_data): Set column separation, minimum width, equal
14807 columns at end of table.
14809 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14811 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14812 node::add_discretionary_hyphen): Use soft_hyphen_char.
14813 (set_soft_hyphen_char): New function.
14814 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14816 * Makefile (c++tested): Give more helpful message if test fails.
14818 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14820 * troff/input.c (init_charset_table): Translate 0240 to
14821 an unbreakable space.
14823 * troff/token.h (token::hyphen_indicator): New function.
14824 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14826 * troff/input.c (translate): Allow translation to \%.
14827 * troff/node.c (node::add_char): Handle
14828 TRANSLATE_HYPHEN_INDICATOR.
14829 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14831 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14834 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14836 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14838 * groff.c (run_commands): If the last command gets a SIGPIPE send
14839 a SIGPIPE to all children than haven't yet terminated. When
14840 command terminates, set pid field to -1.
14842 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14844 * groff.c (main): Pass an appropriate -filename option to gxditview.
14846 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14848 * Makefile.bd (install): Remove existing program before copying.
14850 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14851 programs which have Unix counterparts to be installed with
14852 user-specified prefix.
14854 * troff/input.c (exit_troff): Don't check if exit_started.
14855 (exit_request): Don't call exit_troff if exit_started.
14857 * Makefile.bd (install.mm): Rename to install.dwbmm.
14859 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14861 * driver/input.c (do_file): Add missing break for '#' case.
14863 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14865 * troff/input.c (input_stack::clear): Clear past any boundaries and
14866 then add the boundaries back.
14868 * troff/input.c (exit_troff): Return immediately if already
14871 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14873 (pg*end-page): If the text has ended and there are no more
14874 footnotes or keeps, exit.
14876 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14878 * troff/input.c (init_charset_table): Make \(rq transparent by
14881 * macros/tmac.an: Define lq and rq strings.
14883 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14885 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14887 * troff/env.c (environment::final_break): New function.
14888 (environment::newline): Set prev_line_interrupted to 2 if
14890 * troff/env.h: Declare environment::final_break.
14891 * troff/input.c (exit_troff): Call environment::final_break()
14892 instead of environment::do_break().
14894 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14895 doesn't already exist.
14896 * macros/man.local: New file.
14897 * macros/tmac.an: Load man.local.
14898 * macros/man.ultrix: New file.
14900 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14902 * troff/input.c (exit_groff): Rename to...
14903 (exit_troff): New function.
14905 * troff/div.c (exit_started, done_end_macro,
14906 seen_last_page_ejector): New global variables.
14907 (began_page_in_end_macro): New static variable.
14908 (exit_flag): Deleted.
14909 (top_level_diversion::top_level_diversion): Initialize
14911 (top_level_diversion): More elaborate test for whether
14912 cleanup_and_exit() should be called.
14913 Set began_page_in_end_macro if the end macro isn't yet finished.
14914 * troff/div.h (top_level_diversion::last_page_count): New data
14916 (top_level_diversion::set_last_page): New function.
14917 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14918 * troff/env.c (do_break): Zero prev_line_interrupted.
14919 * troff/input.c (exit_flag): Delete declaration.
14920 (LAST_PAGE_EJECTOR): New magic cookie.
14921 (token::next): Handle LAST_PAGE_EJECTOR.
14922 (exit_groff): Set exit_started and done_end_macro instead of
14923 exit_flag. Call top_level_diversion::set_last_page. Push a
14924 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14925 another ejection after setting seen_last_page_ejector.
14927 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14929 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14931 * macros/tmac.e (TH): Make sure there's room for the initial
14934 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14935 Set FVS in points rather than units.
14937 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14939 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14940 position of empty slots.
14942 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14944 * ps/devps/S: Fix height and depth of parenrightex.
14945 * ps/devps/symbol.diff: Regenerate.
14947 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14949 * tmac.e (u): Do underlining as in -mgs.
14951 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
14953 * tty/tty.c (tty_printer::end_page): If overstriking is
14954 suppressed, still turn overstruck horizontal and vertical lines
14957 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14960 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14962 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
14964 * Version 1.05 released.
14966 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
14968 * tty/tty.c: Instead of keeping an array of glyphs and then
14969 sorting it, keep a ordered linked list of glyphs for each line.
14971 * driver/driver.h: Include stddef.h.
14973 * tty/tty.c (compare_glyph):
14974 * refer/refer.c (rcompare):
14975 * troff/env.c (compare_ranges): Arguments of qsort comparison
14976 function should be const void *.
14978 * troff/number.c (parse_term):
14979 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14982 * refer/label.y (consider_authors): Don't access variables
14983 constructed under a condition outside that condition: put braces
14984 round for statement containing declaration; redeclare use of same
14987 * pic/pic.y (text_expr): Delete production that allows
14988 parenthesised text_expr.
14989 (expr): Allow a conditional_expr to appear in parentheses.
14990 (conditional_expr): Rename to any_expr.
14992 * mm: Install new version 1.01 from jh.
14994 * lib/font.c (font::get_width): Cache scaled widths.
14995 (font::font): Initialize widths_cache.
14996 (font::~font): Destroy widths_cache.
14997 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14999 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
15001 * c++test.c, c++test.ref: New files.
15002 * Makefile: Check that the C++ compiler works.
15004 * ps/tmac.pspic (PSPIC): Do a break.
15006 * ps/tmac.ps: Move definition of PSPIC into...
15007 * ps/tmac.pspic: New file.
15008 (PSPIC): Draw box around picture, but make it invisible to grops.
15009 * ps/tmac.ps: Load tmac.pspic.
15010 * ps/Makefile: Install tmac.pspic.
15012 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
15014 * lib/font.c (scale_round): If n is negative,
15015 subtract .5 before truncating floating point result.
15017 * lib/fontfile.c: Include <errno.h>.
15019 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
15021 * driver/input.c (get_char): Inline. Don't update current_lineno.
15022 Change callers to up date current_lineno if necessary.
15023 Use get_char() instead of getc(current_file).
15025 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
15027 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15029 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15031 * tty/tty.c (tmac.tty): Define \(rg as (R).
15033 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15035 * lib/lib.h: New define a_delete.
15036 * Use a_delete instead of delete when deleting an array of objects
15037 without destructors.
15039 * lib/lib.h: Rename adelete to ad_delete.
15040 * Change uses of adelete.
15042 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15044 * eqn/eqn.y: Include lib.h.
15046 * troff/node.c (grow_font_table): Delete old_font_table.
15048 * mm: Install new version from jh.
15050 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15052 * tbl/table.h (format_type): Make global instead of local to class
15053 entry_format. Prefix enumerators with FORMAT_.
15054 * tbl/table.c, tbl/main.c: Corresponding changes.
15055 * refer/token.h (token_type): Make global. Prefix enumerators
15057 * refer/token.[ch]: Corresponding changes.
15058 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15060 * troff/div.c (node::set_vertical_size): Don't name argument.
15062 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15064 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15065 * lib/lib.h: Define adelete accordingly.
15066 * pic/object.c (graphic_object::graphic_object):
15067 * tbl/main.c (format::~format):
15068 * tbl/table.c (table::~table):
15069 * refer/ref.c (reference::~reference, reference::merge,
15070 reference::insert_field, reference::delete_field): Use adelete.
15072 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15074 * tbl/table.h: Corresponding changes.
15076 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15077 Ensure total_angle is positive.
15079 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15081 * refer/ref.c (reference::merge, reference::insert_field,
15082 reference::delete_field): Avoid delete[0].
15084 * refer/token.c (init_special_chars): Move calls to cmupper
15085 outside calls to init_two_char_letter to work around bug in gcc
15088 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15090 * lib/new.c (operator new): Use __builtin_new for g++.
15092 * pic/object.c (graphic_object::~graphic_object): Don't use
15095 * pic/object.c (output::compute_scale): Initialize max_width and
15098 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15100 * troff/input.c (write_request): Call fflush.
15102 * troff/node.h (class composite_node): Move declaration to node.c
15103 * troff/input.c (charinfo_to_node): Rename to ...
15104 (charinfo_to_node_list): Return node list rather than composite
15106 * troff/node.c (make_composite_node): New function.
15107 (make_node, add_char): Call make_composite_node instead of
15109 (class composite_node): Add a tfont * member. Delete font_size
15111 (composite_node::composite_node, composite_node::copy,
15112 composite_node::size): Corresponding changes.
15113 (composite_node::tprint): Provide constant spacing, emboldening
15114 and track kerning as specified in tfont.
15115 (composite_node::width): Change width calculation accordingly.
15116 * troff/env.h (environment::composite): New member.
15117 (environment::is_composite, environment::set_composite): New
15119 * troff/env.c (environment::environment): Initialize composite.
15120 * troff/input.c (charinfo_to_node): Call
15121 environment::set_composite.
15122 * troff/node.c (make_composite_node, make_glyph_node): Use the
15123 plain version of the tfont if the environment is composite.
15125 * troff/node.c (font_info::get_space_width): Additional argument
15126 giving space_size. Handle constant space correctly. Scale by
15127 space_size unless constant spaced.
15128 (env_sentence_space_width): New function.
15129 * troff/node.h: Declare it.
15130 * troff/env.h (environment::get_space_size,
15131 environment::get_sentence_space_size,
15132 environment::get_narrow_space_width,
15133 environment::get_half_narrow_space_width): Make inline.
15134 (environment::get_space_width): Make inline. Just call
15136 * troff/env.c: Delete definitions for funtions made inline.
15137 (environment::space_newline, environment::space): Use
15138 env_sentence_space_width(). Don't scale by space_size.
15139 * troff/node.h: Move declarations of env*space_width() functions
15142 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15144 * macros/tmac.s (PS): Don't try to set negative indent.
15146 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15148 * pic/pic.y: Fix min function.
15150 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15152 * man/mdate.sh: Clear LANGUAGE.
15154 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15156 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15157 * pic/lex.c: New COMMAND keyword.
15158 * pic/pic.y (print_args, print_arg): New rules.
15159 (placeless_element): Use print_args for PRINT.
15160 New COMMAND element.
15162 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15164 * troff/input.c (terminal): Handle missing argument correctly.
15166 * pic/pic.y (text_expr): New rule.
15168 * pic/pic.y: Implement := operator.
15170 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15172 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15175 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15177 * ps/devps/dingbatsrmap: Include this in the distribution.
15179 * macros/tmac.doc: Replace with new version from 2nd Networking
15180 Release. Fix loading of doc-* files.
15181 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15182 * macros/tmac.doc.old: New file. Apply fixes that had been
15183 applied to old tmac.doc.
15184 * macros/tmac.andoc: Check that we're running under groff.
15185 * macros/Makefile: Rework.
15187 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15189 * tbl/table.h (format_type):
15190 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15191 typedef to make these types visible at file scope.
15192 * Makefile: Add NESTED_TYPES configuration option.
15194 * troff/div.c (mark): At the top level use the value of
15195 nl_reg_contents rather than the current vertical position.
15197 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15199 * tty/tty.c: Implement \D for horizontal or vertical lines.
15200 (tty_printer::set_char): Use vec_used+2 as serial number.
15201 Don't allow size of vector to exceed USHRT_MAX-2.
15202 Split off part into...
15203 (tty_printer::add_char): New function.
15204 (tty_printer::draw): New function.
15205 (compare_glyph): Handle equal serial numbers.
15206 (tty_printer::end_page): Handle overstruck characters from \D.
15207 (main, usage): Implement -d option.
15209 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15211 * tbl/main.c (process_format):
15212 * eqn/text.c (split_text):
15213 * troff/input.c (token::next): Use inner block for declarations
15214 with initializers in switch statement.
15216 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15218 * pic/common.c (common_output::dash_line): Cope with zero-length
15221 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15223 * Version 1.04 released.
15225 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15227 * macros/tmac.an (TH): Define a macro an-init to define variables
15228 based on command line arguments.
15229 (an-header): Call it.
15231 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15233 * Makefile (install.mm): Rename to install.dwbmm.
15235 * Makefile: Integrate mm.
15236 * mm: New directory.
15238 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15240 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15243 * pic/troff.c (troff_output::simple_spline,
15244 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15245 shadowing parameter.
15247 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15249 * lib/ptable.h: Add explicit casts when converting from unsigned
15252 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15253 * dvi/devdvi/Makefile: Install SA, SB.
15255 * refer/indxbib.c: Add declaration of mktemp.
15257 * refer/lookbib.c: Add declaration of isatty.
15259 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15261 * pic/lex.c (interpolate_macro_with_args): While collecting
15262 arguments, keep track of whether we're in a string.
15264 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15266 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15267 down with \v, so as to avoid problems with top of page trap
15268 setting no space mode.
15270 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15272 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15274 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15276 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15277 Improve error message.
15279 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15281 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15284 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15286 * groff.c (possible_command::execp): Always use _exit() after a
15289 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15290 NO_SYS_WAIT_H configuration options.
15291 * groff.c: Use these options. Use POSIX-style macros to extract
15292 fields from the status returned by wait().
15294 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15296 * tbl/table.c (table::compute_separation_factor): Allow the
15297 separation factor to drop to 0.
15299 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15301 * refer/search.c: Include <errno.h>.
15303 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15305 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15307 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15310 * pic/lex.c (input_stack::bol): Move definition out of class body.
15312 * pic/main.c: On MSDOS munge argv[0].
15314 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15316 * lib/ptable.c (hash_string): Use unsigned long rather than
15318 (next_ptable_size): Use unsigned rather than int. Give an error
15319 message if we've hit the largest table size.
15320 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15323 * pic/object.h (object_spec): Make flags unsigned long. Declare
15324 flags as const unisgned long rather than as enums.
15326 * pic/output.c: Deleted.
15328 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15330 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15331 Add additional argument.
15332 (line_entry::note_double_vrule_on_{left,right}): Set value of
15333 douvle_vrule_on_{right,left} flag according to argument.
15334 (simple_line_entry::simple_print,
15335 simple_line_entry::double_line_print): If adjacent to double vrule
15336 on a corner extend rather than shorten the rule by half the double
15339 * troff/number.c (parse_term): In checking for overflow, handle the
15340 case where the current horizontal position is negative.
15342 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15344 * pic/object.c (draw_arrow): Check for object having zero length.
15346 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15348 * eqn/main.c (do_file): Split off inline equation handling into...
15349 (inline_equation): New function. Search for starting delimiter
15351 (delim_search): New function. Don't recognize a delimiter that
15352 occurs in the name of an escape sequence, number register, string
15355 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15357 * eqn/delim.c (delim_box::compute_metrics): Don't call
15358 define_extensible_string if left is 0.
15359 (delim_box::output): Don't print the left delimiter if left is 0.
15360 (delim_box::debug_print): Check for left == 0 before calling printf.
15362 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15364 * troff/Makefile (majorminor.c): Include only digits in
15367 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15369 * refer/dirnamemax.c: new file.
15370 * refer/genlimits.c: Deleted.
15371 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15372 Don't check path length.
15373 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15374 * Makefile: Add PATHCONF_MISSING option.
15376 * refer/indxbib.c (get_cwd): New function.
15377 (main): Use get_cwd().
15378 * lib/getcwd.c: New file.
15379 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15380 GETCWD in SUBFLAGS.
15381 * lib/Makefile: Compile getcwd.o.
15383 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15386 * refer/indxbib.c (main): Check success of mktemp.
15388 * lib/tmpfile.c: New file.
15389 * lib/Makefile: Add tmpfile.c.
15390 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15391 * ps/ps.h: Delete declaration of mktemp().
15392 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15393 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15394 * driver/driver.h: No need now to include errno.h.
15396 * everywhere: Set errno to 0 before calling fopen().
15398 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15399 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15400 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15402 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15404 * troff/env.h (translate_space_to_dummy): Declare it.
15405 * troff/env.c (environment::space_newline, environment::space):
15406 If translate_space_to_dummy is set then make the width of spaces 0.
15407 * troff/input.c (translate): If the second character of a
15408 translation is a space, translate to unbreakable space. If the
15409 first character is a space, set or clear translate_space_to_dummy
15410 according to whether the second character is \&. Weird!
15412 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15414 * groff.c (run_commands): Don't use non-zero exit code because a
15415 command gets SIGPIPE.
15417 * groff.c, groff.sh: Use -mXps with -TXps.
15419 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15420 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15421 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15422 (ps_printer::special): New specials invis and endinvis.
15423 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15424 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15425 (ps_printer::end_page): Check that invis_count == 0.
15426 (ps_printer::invis_count): New member.
15427 (ps_printer::ps_printer): Initialize invis_count to 0.
15429 * troff/env.c (environment::hyphenate_line): Hyphenation
15430 indicator at beginning of word inhibits splitting after -, \(em
15433 * pic/pic.y (element): Allow another element to follow } without
15434 any intervening separator.
15436 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15438 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15440 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15442 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15443 declaration of wait() in header files.
15444 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15446 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15448 * lib/lib.h: Declare return type of strerror as char *.
15450 * man/Makefile: Add g flag to sed substitutions.
15451 * Makefile (shgroff, bindist): Likewise.
15453 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15455 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15456 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15459 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15461 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15464 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15466 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15469 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15471 * troff/input.c (define_number_reg): If currently undefined,
15472 don't define it if the argument is an invalid expression.
15474 * Makefile: Ignore return value of `if' commands without `else'
15477 * Makefile: Split up CPPDEFINES into a series of separate
15478 configuration options.
15480 * troff/input.c (init_registers): Use time_t instead of long
15481 unless LONG_FOR_TIME_T is defined. Use returned result rather
15482 than passing pointer.
15483 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15485 * lib/Makefile (fontpath.h): Use gendef.
15487 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15489 * troff/input.c (input_iterator::shift): Delete argument name.
15490 * troff/node.c (suppress_output_file::really_begin_page,
15491 suppress_output_file::really_transparent_char, node::ascii_print,
15492 node::tprint): Delete names of unused arguments.
15494 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15496 * refer/label.y (string): Pass $4 to command_error.
15498 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15500 * Version 1.03 released.
15502 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15504 * Makefile: Pass definition of SHELL in SUBFLAGS.
15506 * gendef: New file.
15507 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15508 ps/Makefile: Use gendef to construct header files that are
15509 constructed from the Makefile.
15511 * macros/Makefile: make all should build stripped version of tmac.e.
15513 * refer/Makefile (clean): Remove y.output.
15515 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15517 * ps/pfbtops.c (main): Add -v option which prints out a version
15519 * ps/Makefile (pfbtops): Link with libgroff.a.
15521 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15523 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15524 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15526 * refer/lkbib.c (main): Always terminate reference with blank
15528 * refer/lookbib.c (main): Likewise.
15530 * refer/linear.c (file_buffer::load): Check that the file is not a
15533 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15534 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15535 Delete second inclusion of <sys/param.h>.
15537 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15539 * troff/token.h (token::special): Deleted.
15541 * tbl/main.c (process_format): Rework so that opt->tab_char is
15542 recognized only when appropriate.
15544 * ps/Makefile (clean): Remove pfbtops.
15546 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15548 * lib/font.c (text_file::next): Don't return if we have got a
15551 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15553 * refer/refer.c (store_reference): Get hash code from old_table[i]
15554 when rehashing the table.
15556 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15558 * eqn/box.c (box::top_level): Save size and prev size using \R and
15559 restore it afterwards. Set the size to the size at the beginning
15561 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15562 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15564 * refer/Makefile (limits.h): Use ./genlimits.
15566 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15568 * refer/index.c: Delete declarations of stat() and fstat().
15570 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15572 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15574 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15576 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15578 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15580 * troff/input.c (token::get_char): Handle \e.
15582 * refer/linear.c: Delete declarations of fstat() and stat().
15584 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15586 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15587 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15589 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15591 * troff/input.c (do_define_macro): Improve error handling for end
15592 of file while defining macro.
15594 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15596 * eqn/box.h: Fix declaration of set_gsize.
15597 * eqn/box.c (set_gsize): Make argument const char *.
15598 (gsize): Declare as char *.
15599 * eqn/main.c (main): Don't convert gsize to int.
15600 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15602 * Version 1.02 released.
15604 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15606 * macros/tmac.andoc: New file.
15607 * macros/Makefile: Install tmac.andoc.
15609 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15610 operator new and delete on OP_DELETE_BROKEN not being defined.
15611 * Makefile: Mention OP_DELETE_BROKEN.
15613 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15615 * Makefile (bindist): Pass SUBFLAGS.
15617 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15619 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15621 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15624 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15626 * ps/ps.h, ps/psrm.c: Make comment_table and
15627 header_comment_table local to resource_manager::process_file.
15629 * groff.sh: With -TXps pass -printCommand option to gxditview.
15631 * groff.c (possible_command::print): Implement using
15632 append_arg_to_string.
15634 * xditview: Merge in new implementation with own ChangeLog.
15636 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15638 * groff.c (main): Implement PRINT_OPTION.
15639 (append_arg_to_string): New command.
15640 (device_table): Set PRINT_OPTION flag for Xps.
15642 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15644 * troff/groff.h: Rename to troff.h.
15646 * pic/lex.c (lookup_keyword, docmp): New functions.
15647 (get_token): Use new lookup_keyword.
15648 Don't include key.h.
15649 * pic/key.[ch], pic/pic.gperf: Deleted.
15650 * pic/Makefile: Remove gperf stuff.
15652 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15654 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15656 * troff/Makefile, troff/node.c: Move definition of
15657 STORE_WIDTH into node.c.
15659 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15661 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15663 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15664 dvi/devdvi/texb.map: Add lq and rq.
15665 dvi/devdvi: Regenerate fonts.
15666 * ps/devps/textmap: Add lq and rq.
15667 * ps/devps: Regenerate fonts.
15668 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15669 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15671 * pic/object.c (position_rectangle): When checking radius
15672 cope with possiblity that width or height is negative.
15673 (box_object::box_object): Have separate xrad and yrad with
15674 signs matching signs of dim components.
15675 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15676 (box_object::print): With rounded boxes use absolute values
15677 for dim and rad arguments.
15679 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15682 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15684 * various files: Add explicit destructors to keep Saber CC +d
15687 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15689 * eqn/box.c (box::top_level): Restore fonts correctly after
15690 font changes in line containing inline equation. Also
15691 restore previous font as well as current font.
15692 * eqn/pbox.h: Define necessary string and register names.
15694 * troff/input.c (token::next): Case 'R' calls do_register.
15695 (do_register): New function.
15697 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15699 * groff.c, groff.sh: Support Xps device. Allow each device
15700 to have a pseudo_name and a real_name.
15702 * groff.c (run_commands): Don't print `Broken pipe' messages.
15704 * ps/pfbtops.c: New file.
15705 * ps/Makefile: Add pfbtops.
15707 * troff/number.c (parse_term): Improved error message.
15709 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15711 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15713 * Makefile: Integrate refer.
15714 * refer: New directory.
15715 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15716 man/lkbib.man: New files.
15717 * man/Makefile: Support refer man pages.
15719 * lib/lib.h: Declare is_prime.
15720 * lib/prime.c: New file.
15722 * troff/input.c (macro_source): New function.
15723 (init_input_requests): Bind "mso" to macro_source.
15725 * troff/env.c (environment::possibly_break_line): Maintain
15726 pointer to pointer to node to be split in ndp so as to avoid
15727 using address of freed node.
15729 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15730 pointer to first node to be hyphenated in startp so as to
15731 avoid using address of freed node.
15733 * troff/env.c (class trie, class hyphen_trie): Make the
15734 elements of the trie be of type char not unsigned char.
15735 Declare arguments to be const char* instead of unsigned char *.
15737 * troff/env.c (hyphenate): Initialize hbuf[0].
15739 * troff/input.c (set_string): Declare p to be char * and cast
15740 *p to unsigned char when necessary.
15742 * troff/input.c (do_define_macro): Declare s to be const
15743 char*. Cast element to unisgned char when necessary, Declare
15744 d to be an int. Handle EOF better.
15746 * troff/Makefile, troff/input.c: Different scheme for passing
15747 definitions of MACROPATH, HYPHENFILE and DEVICE.
15749 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15751 * tty/devascii/R.proto: Delete entry for em.
15752 * tty/devlatin1/R.proto: Likewise.
15754 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15756 * troff/input.c (translate): Stop when we get a space. Treat eof
15759 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15761 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15763 * tbl/main.c (process_format): A font name following a `f'
15764 modifier that starts with a digit can be only one character long.
15765 Also deal with EOF on the second character of the font name.
15767 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15769 * troff/input.c (token::next): Turn \~ into an
15770 unbreakable_space_node.
15771 * troff/node.c (unbreakable_space_node): New class.
15772 * troff/node.h: Declare it.
15774 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15776 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15777 it's >= 0, before outputting it as a single byte.
15779 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15781 * lib/font.c: Make font_char_metric::code an int.
15782 (font::get_code): Change return type to int.
15783 (font::load): Allow code to be arbitrary integer.
15784 * lib/font.h (font::get_code): Change return type to int.
15785 (font::number_to_index): Change argument type to int.
15786 * troff/input.c (token::next): In case 'N', allow any value.
15787 Store value in token::val.
15788 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15789 (token::get_char, token::add_to_node_list, token::process): Get
15791 (charinfo::set_number): Change argument to int.
15792 (charinfo::get_number): Require that NUMBERED flag be set.
15793 (get_charinfo_by_number): Store numbered characters not between 0
15794 and 255 in a dictionary.
15795 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15797 (charinfo::number): Change type to int.
15798 (charinfo::set_number): Change type of set_number to int.
15799 * troff/node.c (troff_output_file::put_char_width,
15800 troff_output_file::put_char): Test whether character is numbered
15801 using charinfo::numbered().
15802 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15804 * lib/nametoindex.c: New implementation to cope with arbitrary
15807 * troff/input.c (token::operator==): Test val for
15808 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15811 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15812 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15814 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15816 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15819 * all Makefiles: rm targets of cp and >.
15821 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15824 * eqn/lex.c (def_table): Add dollar.
15826 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15828 * troff/input.c (do_width): Push back newline before closing delim
15831 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15833 * groff.c (possible_command::prepend_arg): New function.
15834 (main): Prepend device -m option.
15835 * groff.sh: Put device -m options before command-line options.
15837 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15839 * macros/tmac.an (IP): Quote argument to TP.
15841 * ps/ps.c (main): New option -b, which sets...
15842 (broken_flags): New variable.
15843 (ps_printer::~ps_printer): Incorporate the setup section in the
15844 prolog if (broken_flags & NO_SETUP_SECTION).
15845 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15846 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15847 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15848 ps_printer::print_needed_font_comment,
15849 ps_printer::print_supplied_font_comment,
15850 ps_printer::print_include_font_comments,
15851 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15852 ps_printer::read_download_file, read_document_fonts, add_font,
15853 skip_line, parse_fonts_arg, document_font::document_font,
15854 document_font::~document_font, document_font::download,
15855 ps_output::include_file): Deleted.
15856 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15857 rather than %!PS-Adobe-2.0. Make calls to
15858 resource_manager::need_font for each font that we used. Replace
15859 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15860 print_supplied_font_comment, print_needed_font_comment by call to
15861 resource_manager::print_header_comments. Output %%Orientation
15862 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15863 Don't output the prolog directly. Instead call
15864 resource_manager::output_prolog. Only define #copies when ncopies
15865 > 1. Delete calls to print_include_font_comments and
15866 download_fonts. Add call to resource_manager::document_setup.
15867 (ps_printer::do_file): Call resource_manager::import_file instead
15868 of including it ourselves.
15869 (ps_printer::do_import): Likewise. Also don't call
15870 merge_import_fonts. Push userdict on the dictionary stack before
15871 and pop it afterwards.
15872 Move declaration of ps_output into ps.h.
15873 * ps/psrm.c: New file implementing resource_manager class.
15874 * ps/ps.h: New file declaring ps_output and resource_manager
15876 * ps/devps/zapfdr.ps:
15877 * ps/devps/symbolsl.ps:
15878 * ps/devps/prologue: Use 3.0 conventions.
15879 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15880 Add default definition of BROKEN_SPOOLER_FLAGS.
15881 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15882 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15884 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15886 * etc/grog.pl: New file.
15887 * Makefile (GROG): New variable.
15888 Add GROG to SUBFLAGS.
15889 * etc/Makefile (GROG): New variable.
15890 (install.nobin): Install $(GROG) rather than grog.sh.
15892 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15894 * eqn/special.c (special_box::compute_metrics): Make the input and
15895 output strings the same. Get the new height and depth from the
15896 predefined height and depth registers. Also make subscript kern
15897 and skew available.
15898 (special_box::compute_subscript_kern, special_box::compute_skew):
15901 * eqn/box.c (pointer_box::compute_skew,
15902 simple_box::compute_metrics, box::top_level)
15903 * eqn/text.c (prime_box::compute_metrics,
15904 prime_box::comput_subscript_kern)
15905 * eqn/limit.c (limit_box::compute_metrics):
15906 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15907 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15908 negative numbers in `nr' requests with a leading 0.
15910 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15912 * eqn/special.c: New file.
15913 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15914 Add new rule for simple.
15915 * eqn/lex.c (token_table): Add SPECIAL.
15916 * eqn/box.h: Declare make_special_box.
15917 * eqn/Makefile: Add special.[co].
15919 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15921 * ps/devps/prologue: Possibly set packing to true while defining.
15922 Create grops dictionary here. Initialize local variables before
15923 defining procedures.
15924 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15925 the dictionary stack. Set strokeadjust and overprint to false if
15926 the relevant operators are defined.
15927 (PEND): New procedure.
15928 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15929 prologue. Do everything else in the setup section.
15930 (ps_printer::do_import): Just call PBEGIN and PEND around the
15931 picture. Also push userdict before, and pop it afterwards.
15933 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15935 * troff/node.c (bracket_node::tprint): Brackets were being printed
15938 * macros/tmac.an (SH, SS): Set fill mode.
15940 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15942 * troff/div.c (top_level_diversion::begin_page): Set
15943 high_water_mark to 0.
15945 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15947 * man/mdate.sh: New file.
15948 * man/mdate.c: Deleted.
15949 * man/Makefile: Use mdate.sh instead of mdate.
15952 * eqn/lex.c (do_gsize): Supply missing argument to error message.
15954 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
15956 * man/mdate.c: New file.
15957 * man/*.man: Replace modification date by @MDATE@.
15958 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15959 (mdate): New target.
15961 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15962 Remove illegal input characters.
15964 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
15966 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15968 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
15970 * troff/div.c (begin_page): Change behaviour when
15971 !first_page_begun and !break_flag.
15973 * troff/input.c (do_name_test): Return 0 if argument is empty.
15975 * troff/input.c (read_long_escape_name): Require closing ] to be
15976 at same input level as opening [.
15978 * troff/input.c (read_increment_and_escape_name): New function.
15979 (get_copy, process_input_stack): Use this for \n.
15981 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
15983 * troff/div.c (top_level_diversion::begin_page): Ignore the
15984 current value of page_number if !first_page_begun.
15986 * groff.c (main): Fix declaration of buf.
15988 * troff/input.c (do_name_test): New function.
15989 (token::next): Implement \A.
15990 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15991 (token::description, token::add_to_node_list, token::process):
15992 Handle TOKEN_ESCAPE.
15993 * troff/token.h: New token TOKEN_ESCAPE.
15995 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
15997 * pic/main.c (do_picture): Allow space before and after filename
15998 following `<'. Check that the filename is not empty.
16000 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
16002 * Version 1.01 released.
16004 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16006 * dvi/tmac.dvi: ftr HR to H.
16008 * macros/tmac.e: Round up computation of $r.
16010 * xditview/tmac.X: Don't give up completely in compatibility mode.
16011 Use \n(.s instead of \n[.s].
16013 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16014 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16015 Add u to factors inside \s[...]. Rename frac to dvi-frac.
16016 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16017 short names in the char definitions.
16019 * ps/tmac.ps: Don't give up completely in compatibility mode.
16020 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16021 quote in front of \n(.s. Add u to factors inside \s[...].
16023 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
16025 * tty/tmac.tty: Call the nroff request.
16027 * macros/tmac.e ((x, )x): Better definitions that work properly
16029 (@0, @1): Helper macros for (x.
16031 * macros/tmac.e ($s, hl): Use \l rather than \D.
16033 * tty/tmac.tty: Make it work better in compatibility mode.
16034 (pchar): Rename to tty-char.
16036 * macros/tmac.e (@E): New macro.
16037 (r, i, b, rb, bi): Use @E.
16039 * macros/tmac.e (@F): Don't use (;...) syntax.
16041 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16042 it was modified for groff.
16044 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16046 * macros/tmac.e (<., .>): Removed.
16047 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16049 * macros/tmac.e: Remove check that groff is being used.
16051 * macros/tmac.e (@C): Change families only if using groff; turn
16052 compatibility mode off while changing familes. Save compatibility
16053 mode before changing families and restore it afterwards.
16055 * macros/tmac.e (@h): Remove test for offset + line length.
16057 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16058 (lo, th, ac): Define to call @S instead of using als.
16060 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16061 the ratio of the vertical spacing to the point size in units
16062 expressed as a percentage. Use these instead of $10r and $10R,
16063 Delete $10r and $10R.
16065 * lib/font.c (font::load): In default computation of space_width,
16066 divide by sizescale. Use scale_round.
16068 * macros/tmac.an (TP): Don't call `nf'.
16069 (an-do-tag): Don't call `fi'.
16071 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16073 * troff/input.c (process_input_stack): Handle the case where
16074 spaces at the beginning of an input line are followed by a
16077 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16079 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16080 * groff.sh: Use pic -x with the dvi device.
16082 * dvi/devdvi/FontMakefile (H): Don't use -s.
16084 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16085 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16086 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16089 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16091 * ps/psfig.diff: New file.
16092 * ps/tmac.psfig: New file.
16094 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16096 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16097 (]-): Don't call ref*do-tl.
16099 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16101 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16102 (fn@do-FS): Rename to fn*do-FS.
16104 * troff/input.c (transparent_translate): New function.
16105 (process_input_stack): Apply transparent_translate before calling
16106 diversion::transparent_output(unsigned char).
16108 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16110 * troff/input.c (do_define_macro): Define the macro before calling
16113 * xditview/Makefile: Add DEVICES variable. Change install target
16116 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16118 * groff.c (run_commands): Handle the possibility that there are
16119 child processes other than those forked by us.
16121 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16123 * lib/string.c (string::append): New function.
16124 * lib/stringclass.h: Declare it.
16126 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16128 * eqn/main.c (main): New option -N which sets
16129 no_newline_in_delim_flag.
16130 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16132 * groff.c (main): Pass -N on to eqn.
16133 (help, synopsis): Mention -N.
16134 * groff.sh: Implement -N.
16136 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16138 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16139 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16140 (XP): Allow as initializer.
16142 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16144 * troff/env.c (environment::wrap_up_field): If field_spaces are
16145 non-zero and we have a current_tab, subtract padding from
16146 tab_distance. If this makes tab_distance <= 0, use the next tab
16147 stop instead. If there isn't any next tab or it's a left tab,
16148 wrap up the current tab.
16149 (environment::start_field): Initialize tab_precedes_field.
16150 (environment::wrap_up_tab): If there's a current field, update
16151 pre_field_width, field_distance and tab_precedes_field.
16152 * troff/env.h (environment::tab_precedes_field): New member.
16154 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16156 * ps/ps.c (ps_printer::do_file): New function.
16157 (ps_printer::special): Bind to `file' special.
16158 (ps_printer::do_exec): Set ndefined_styles to 0.
16160 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16162 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16163 Avoid stripping first character from the start of unrecognized
16164 escapes. Use lex_error instead of error to report errors.
16165 * eqn/lex.c (get_token): Rework handling of escapes.
16166 (lex_error): Move declaration into...
16169 * xditview/xditview.c (main): Make -page option work.
16171 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16173 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16175 * macros/tmac.s (B2): Correct size of box.
16177 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16179 * macros/tmac.s (B2): Postpone drawing the box until in the
16180 top-level diversion.
16182 * tty/tmac.tty: Add font translations for C, CR, CW.
16184 * groff.c (synopsis, help): Document -i.
16185 * groff.sh: Implement -i.
16187 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16188 Simplify the construction of SN.
16190 * troff/number.c (parse_term): Give `|' a higher precedence.
16191 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16194 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16196 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16198 * lib/string.c (string::move): New function.
16199 * lib/stringclass.h: Declare it.
16201 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16203 * troff/env.c (distribute_space): Add optional argument
16205 (environment::wrap_up_field): Call distribute_space with
16206 `force_forward' argument of 1.
16208 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16210 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16211 Inline it. Move reallocation into...
16212 (string::grow1): New function.
16213 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16214 dependencies to include library header files.
16215 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16217 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16219 * macros/tmac.s (@NH): Use the same number registers than -ms does
16220 for the heading level counters. Use the same string that -ms does
16221 for the number for this heading.
16223 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16225 * lib/new.c (operator new): Cast result of malloc to char *.
16227 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16230 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16232 * groff.c (main): Support -i.
16234 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16236 * pic/pic.h: Include <osfcn.h>.
16238 * ps/ps.c: Add declaration of mktemp.
16240 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16241 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16242 argument as union wait *.
16243 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16244 argument to union wait *.
16246 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16248 * tty/tmac.tty: Add definition of \(co.
16250 * pic/object.c (make_arc): Only increase radius when radius
16251 strictly less than d.
16252 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16255 * troff/env.c (environment::environment(symbol),
16256 environment::environment(const environment *)): Initialize
16259 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16261 * tbl/main.c (main): Add exit(0).
16263 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16265 * pic/main.c (main):
16266 * eqn/main.c (main):
16267 * tbl/main.c (main):
16268 * etc/soelim.c (main):
16269 * driver/printer.c (printer::~printer):
16270 * troff/node.c (real_output_file::~real_output_file,
16271 real_output_file::flush): Check for errors on stdout.
16273 * most files: Add 1991 to copyright notice.
16275 * macros/tmac.s: Don't test \n(.x and \n(.y.
16277 * troff/input.c (token::next): Rename `escape_char' label to
16278 `handle_escape_char' and `normal_char' label to
16279 `handle_normal_char'.
16281 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16283 * groff.c (main, synopsis, help): Support -a option.
16284 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16285 to trflags while parsing options.
16287 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16289 * troff/number.c (parse_term): With `m', `M' and `n' scale
16290 indicators, convert scale factor to hunits before scaling.
16292 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16294 * lib/font.c (scale_round): Better test for overflow when n is
16297 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16299 * tbl/main.c (process_format): Add second argument of type
16300 options*. Change callers. Allow opt->tab_char as well as '\t'
16301 between format items.
16303 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16305 * macros/tmac.an (PD): With no arguments, make sure register PD is
16307 (TH): Call PD with no argument, instead of setting register PD
16310 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16312 * Version 1.00 released.
16314 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16316 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16318 * dvi/devdvi/DESC: Mount CW instead of CR.
16320 * dvi/tmac.dvi: Add definition of \(tm.
16322 * dvi/devdvi/texsy.map: Add lh, and rh.
16323 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16324 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16326 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16327 * dvi/devdvi/Makefile: Install H.
16328 * dvi/devdvi/H: New file.
16330 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16332 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16335 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16337 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16339 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16341 * macros/tmac.s (@EN): Handle the case where the equation is empty
16342 but the label is not.
16344 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16346 * troff/groff.h: New warning category WARN_SPACE.
16347 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16348 WARN_SPACE to warning_table.
16349 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16350 is longer than two characters and is not defined, but the first
16351 two characters do make a defined name.
16353 * PROBLEMS: New file.
16355 * CHANGES: New file.
16356 * README-0.6, README-1.00: Deleted.
16358 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16359 * xditview/devX75/Makefile: Make devX75-12.
16360 * xditview/devX100/Makefile: Make devX100-12.
16362 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16363 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16365 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16367 * README-0.7: Rename to README-1.00.
16369 * macros/tmac.pic: New file.
16370 * macros/Makefile (install.nobin): Install tmac.pic.
16372 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16374 * troff/env.c (hyphen_word): Correct the test for whether the
16375 token is a hyphen. Reset npos to 0.
16377 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16379 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16381 * macros/tmac.s (ds*common-end): Call par*reset.
16383 (par@reset-indent): Deleted.
16385 * macros/tmac.s (@IP): Divert the label.
16387 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16389 * xditview/draw.c (setGC): Use a line width of .1m rather than
16390 .04m by default; round rather than truncate value.
16392 * tbl/table.c (class empty_entry): New class.
16393 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16394 (table::add_entry): Represent empty entries by objects of type
16396 (table_entry::line_type): Return -1.
16397 (table::determine_row_type): Ignore entries with line_type 0.
16398 Treat type -1 as non-lines.
16400 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16402 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16403 macros/tmac.s: Rename \(-d to \(Sd.
16405 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16407 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16408 * xditview/libXdvi/DviChar.c: Likewise.
16409 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16411 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16413 * troff/div.c (top_level_diversion::begin_page): Call
16414 init_output() if the_output is 0.
16416 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16418 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16420 (get_copy): Turn \E into ESCAPE_E.
16421 (token::process, asciify): Handle ESCAPE_E.
16423 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16425 (DS): Implement `.DS R'.
16427 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16429 * macros/tmac.s (FS): New macro.
16431 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16433 * macros/tmac.s (cov*tl-init): Remove after first execution
16434 instead of aliasing to @nop. Call top of page macro explicitly
16435 instead of setting trap; call @init first. Set pg@top as top of
16437 (cov*auto-init): Deleted. Set cov*tl-init instead of
16438 cov*auto-init as top of page trap.
16439 (TL, LP): Do a break instead of calling cov*tl-init.
16440 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16441 @FE; in this case also give a warning and always start another
16442 page. No need to set pg@top here.
16443 (cov*tl-init): Rename to cov*first-page-init.
16445 * macros/tmac.s (RP): Do `.pn 0'.
16446 (cov*tl-init): With RP format don't do `.pn 0'.
16448 * macros/tmac.s (pg@cs-top): Set no space mode.
16450 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16451 (cov*ab-init): Alias TL, AU and AI to these.
16453 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16455 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16456 (@EN): Do nothing unless \n[dl] is > 0.
16458 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16460 * pic/object.c (ellipse_object::radius): New function.
16462 * VERSION: Change version to 0.7.
16464 * tbl/table.c (block_entry::do_divert): Declare return type as
16466 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16468 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16470 * troff/column.c: New file.
16471 * troff/Makefile: Corresponding changes.
16473 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16476 * troff/div.c (top_level_diversion::space): If the space causes
16477 the first-page transition and springs a trap, truncate the space
16480 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16482 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16485 * pic/troff.c (troff_output::line_thickness,
16486 troff_output::set_fill): Do a horizontal motion to compensate for
16487 the width of the \D escape sequence.
16489 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16491 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16494 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16497 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16498 Supply empty definition.
16499 (text_entry::simple_print, simple_text_entry::simple_print):
16500 Delete declarations.
16501 (table::add_entry): Represent empty entries by objects of type
16504 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16506 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16508 * tbl/table.c (left_text_entry::add_tab): New function.
16510 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16511 initialize like LP.
16513 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16515 * troff/env.c (environment::start_field): Give an error message if
16516 there is no next tab.
16518 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16520 * troff/env.c (hyphenate): Skip initial elements with zero
16523 * macros/tmac.s (par@init): Keep VS in points rather than units.
16525 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16527 * pic/main.c (main): Implement `-c' option.
16528 * pic/output.h: Declare make_tpic_output().
16529 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16531 (tpic_output): New class.
16532 (tpic_output::tpic_output, tpic_output::set_pen_size,
16533 tpic_output::command, make_tpic_output): New functions.
16535 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16537 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16538 if they're not already defined.
16539 * tbl/table.c (init_output): Don't test \n(.g.
16541 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16542 `d', `r' and `c' conditions even in compatibility mode.
16544 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16546 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16549 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16551 * troff/env.h (environment::prev_line_interrupted): New member.
16552 (environment::get_prev_line_interrupted): New function.
16553 * troff/env.c (environment::newline): Set prev_line_interrupted.
16554 (environment::environment(const environment *),
16555 environment::environment(symbol)): Initialize
16556 prev_line_interrupted.
16557 * troff/input.c (process_input_stack): Don't give special
16558 treatment to space and newline at the beginning of the line if the
16559 previous line was interrupted.
16561 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16563 * eqn/eqn.y: Disallow PRIME by itself.
16564 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16566 (def_table): Remove definition of '. Define prime to be `.
16568 * eqn/eqn.y: Split off part of rule `script' into a new rule
16571 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16573 * macros/tmac.s ({, }): New string aliases.
16575 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16577 * README-0.7: New file.
16579 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16581 * macros/tmac.s: New file.
16582 * man/groff_ms.man: New file.
16583 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16584 * Makefile.bd: Similarily.
16585 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16586 definition of TMAC_S.
16587 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16588 * macros/TODO: New file.
16590 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16592 * troff/env.c (right_justify): New function.
16593 (init_env_requests): Bind this to request "rj".
16594 (center_lines): Set right_justify_lines to 0. If we get a bad
16595 integer, center 1 line.
16596 (environment::environment(symbol), environment::environment(const
16597 environment *)): Initialize right_justify_lines.
16598 (environment::get_right_justify_lines): New function.
16599 (init_env_requests): Bind this to number_register ".rj".
16601 * troff/env.c (environment::choose_breakpoint): Implement
16602 hyphenation_margin and hyphenation_space.
16603 (environment::get_hyphenation_space,
16604 environment::get_hyphenation_margin): New functions.
16605 (init_env_requests): Bind these to .hys and .hym.
16606 (hyphenation_space_request, hyphenation_margin_request): New
16608 (init_env_requests): Bind these to hys and hym.
16609 (environment::environment(symbol), environment::environment(const
16610 environment *)): Initialize hyphenation_margin and
16612 * troff/env.h: Corresponding changes to class environment.
16614 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16616 * troff/div.c (blank_line): Always do a break.
16618 * eqn/box.c (do_text): Turn off escapes while appending text to
16621 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16623 * troff/input.c (while_break_request, while_continue_request): New
16625 (init_input_requests): Bind these to "break" and "continue".
16626 (while_depth, while_break_flag): New variables.
16627 (while_request): Update while_depth. Break out of loop if
16628 while_break_flag is set.
16630 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16632 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16635 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16637 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16639 * stringify: New file.
16640 * Makefile (groff.o): Use stringify.
16642 * xditview/tmac.X: Remove definition of \(rn.
16643 * xditview/libXdvi/DviChar.c: Remove radicalex from
16646 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16648 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16649 (alphabetic_block_entry::alphabetic_block_entry,
16650 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16652 (block_entry::divert): Split off body into ...
16653 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16654 from the line length; also update the span width to dl+2n, and the
16655 alphabetic span width to dl.
16657 * driver/input.c (do_file): While reading argument to D command,
16658 when expanding buffer, multiply szp by sizeof(int) rather than 2
16659 in the argument to memcpy.
16661 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16662 width of alphabetic columns.
16664 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16666 * troff/node.c (lookup_family): Supply second argument to lookup.
16668 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16669 search, return immediately if v is 0.
16671 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16672 (troff_output::start_picture): Set this reg.
16673 (troff_output::end_picture): Remove this reg
16674 * eqn/box.c (box::extra_space): Don't produce `\x's if
16675 EQN_NO_EXTRA_SPACE_REG is defined.
16677 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16678 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16681 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16683 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16686 * troff/div.c (top_level_diversion::top_level_diversion):
16687 Initialize page_number to 0.
16689 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16691 * groff/troff (environment::environment(const environment *)):
16692 Initialize name to e->name, rather than "anonymous".
16694 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16696 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16697 requested_page. Split middle part into ...
16698 (FindPage): New function.
16699 (SetValues): If we don't yet know the last page, and the requested
16700 page is greater than the current page, call FindPage.
16701 Update the font_map_string before doing this.
16703 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16704 Translate \(lh and \(rh into left and right double arrows.
16706 * troff/node.c (class hyphen_inhibitor_node): New class.
16707 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16708 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16709 hyphen_inhibitor_node::type,
16710 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16711 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16712 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16715 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16717 * troff/node.h (dummy_node::get_hyphenation_type,
16718 transparent_dummy_node::get_hyphenation_type): Declare them.
16719 * troff/node.c: (dummy_node::get_hyphenation_type,
16720 transparent_dummy_node::get_hyphenation_type): New functions.
16722 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16724 * xditview/libXdvi/draw.c: If M_PI not defined after including
16725 math.h, then define it.
16727 * xditview/Makefile: Add definition of AR. Pass it to the submake
16729 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16731 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16733 * troff/dictionary.h (object_dictionary::alias): Declare return
16735 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16736 if the old name was defined.
16737 * troff/input.c (alias_macro): Give a warning if the old name was
16739 * troff/reg.c (alias_reg): Likewise.
16741 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16743 * troff/input.c (token::next): Delete implementation of \R.
16745 * macros/Makefile: Strip comments from tmac.e while installing it.
16747 * troff/input.c: New variable `nroff_mode'.
16748 (troff_request, nroff_request): New functions.
16749 (init_input_requests): Bind `troff' and `nroff' to troff_request
16751 (do_if_request): Compute results of t and n conditions from
16754 * text/text.c (split_text): Fix typo in >=.
16756 * eqn/lex.c: Add definition of `==' to def_table.
16758 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16760 * pic/tex.c (tex_output::start_picture): Change the definitions of
16761 \graph and \graphtemp so that they work properly with Plain TeX.
16763 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16764 argument to `ar' is not less than the first.
16766 * pic/pic.y: Allow a comma between elements of the variable list
16767 in the argument to `reset'.
16769 * pic/object.c (arc_object::arc_object): Fix computation of
16772 * eqn/main.c (main): Add exit(0).
16774 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16776 * troff/div.c (begin_page): Test no_space_mode after doing the
16777 break, but still push the page ejector cookie before doing the
16778 break. Also set the next page number after doing the break.
16780 * xditview/xditview.c (NewFile): Don't set the title and icon name
16781 if this is the first file and its name is `-'.
16782 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16783 the X75 and X100 devices.
16784 (main): If a device has the XT_OPTION flag set and there's exactly
16785 one file argument, pass the driver -xrm and -title options to set
16786 the icon name and window title to the name of the file.
16788 * troff/env.c (environment_switch): If there was an argument but
16789 it wasn't a valid number or name, then pop an environment but
16790 don't give an error message on underflow.
16792 * troff/number.c (start_number): Correct spelling in error message.
16794 * troff/input.c (token::delimiter): Don't print an error message
16797 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16798 ParseDrawFunction if dw->display_enable is true.
16800 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16802 * pic/pic.y: Parse text positioning like normal attributes, so as
16803 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16804 positioning attribute.
16806 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16808 * tbl/main.c (process_data): When in state START while reading a
16809 text block, don't change to state MIDDLE if c is a newline.
16811 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16813 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16814 so as to avoid shadowing parameter.
16816 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16818 * tbl/table.c (trim_space): Deleted.
16819 (table::add_entry): Don't call trim_space.
16821 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16823 * VERSION: Change version to 0.6.
16825 * troff/number.c (parse_expr): Make == work.
16827 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16829 * man/grog.man: New file.
16830 * man/Makefile: Add grog.n to MAN1PAGES.
16831 * etc/grog.sh: New file.
16832 * etc/Makefile: Install grog.sh as grog.
16834 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16836 * troff/input.c (token::next): Implement \E.
16838 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16840 * xditview/tmac.X: Change font translations to match tmac.ps.
16842 * troff/input.c (non_empty_name_warning): Don't give a warning if
16843 `\{' terminates the name.
16845 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16847 * ps/devps/symbol.diff: New file.
16848 * ps/devps/FontMakefile: Mention symbol.diff.
16850 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16852 * troff/node.c (font_position): Use get_long_name to read the
16855 * troff/env.c (environment_switch): If we get a number that's < 0
16856 or >= NENVIRONMENTS, treat it like a name.
16857 Change NENVIRONMENTS to 10.
16859 * troff/groff.h: Remove definition of FONTS_MAX.
16860 * troff/node.h (class font_family): Make map a pointer instead of
16861 an array. Add a map_size member. Make it a class. Make nm const
16862 and public. Make invalidate_fontno a friend.
16863 * troff/node.c: Define font_table_size. Make font_info a pointer
16864 rather than an array.
16865 (class troff_output_file): Allocate font_position dynamically. Add
16866 nfont_positions member.
16867 (troff_output_file::set_font): Grow font_position if necessary.
16868 (troff_output_file::~troff_output_file): Delete font_position.
16869 (troff_output_file::troff_output_file): Allocate font_position.
16870 (grow_font_table): New function.
16871 (troff_output_file::really_begin_page,
16872 troff_output_file:really_copy_page): Use nfont_positions rather
16874 (mount_font_no_translate, mount_style): Call grow_font_table if
16876 (font_family::font_family): Allocate map.
16877 (font_family::make_definite): Grow map if necessary. Use
16878 font_table_size instead of FONTS_MAX.
16879 (font_family::~font_family): New function.
16880 (invalidate_fontno): Use font_family::map_size.
16881 (get_fontno, env_space_width, env_half_narrow_space_width,
16882 env_narrow_space_width, symbol_fotno, is_good_fontno,
16883 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16885 (next_available_font_position): Never return 0.
16887 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16889 * ps/tmac.ps: Add font translations for compatibility with dpost.
16891 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16893 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16894 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16895 Move definitions baseline_sep, shift_down, column_sep,
16896 matrix_side_sep into...
16897 * eqn/box.c: Add them to param_table.
16898 * eqn/pbox.h: Add declarations to pbox.h.
16900 * troff/input.c (set_string): Cast value to unsigned char *.
16902 * troff/token.h (process_input_stack): Declare it static before
16903 declaring it a friend.
16905 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16907 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16909 * dvi/devdvi/EX: Regenerate.
16911 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16914 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16916 * eqn/lex.c: In defaults_table, make definition of `dot' call
16917 `dot_def'. Don't explicitly make it roman. Similarily for other
16920 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16922 (for_input::get, for_input::peek): Use this.
16923 (do_for): Add by_is_multiplicative argument.
16924 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16925 Change semantic value of optional_by to be a double plus a flag
16926 saying whethet the by clause is multiplicative.
16928 * eqn/lex.c (get_delimited_text): Remember location of start of
16929 definition. Improve error handling when EOF is encountered.
16931 * lib/font.h: Rename handle_x_command to
16932 handle_unknown_font_command.
16933 * lib/font.c (font::load): Call handle_unknown_font_command for
16934 any unknown command in the font description file. Don't call
16935 handle_x_command. Include the name of the command in the argv.
16936 Improve message for unknown command after kernpairs or charset
16938 * ps/ps.c (ps_font::handle_x_command): Rename to
16939 handle_unknown_font_command. Remove message about `x download'
16940 command. Give error message for wrong number of arguments.
16941 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16942 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16943 handle_unknown_font_command. Give an error message for wrong
16944 number of arguments. Rename design_size to designsize.
16945 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16946 checksum', `designsize' instead of `design_size'.
16948 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16950 * eqn/*.[chy]: Change underaccent to uaccent.
16952 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
16953 give it the same precedence as ACCENT.
16954 * eqn/other.c (make_underaccent_box): New function.
16955 * eqn/box.h: Declare it.
16956 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16959 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
16961 * pic/pic.y (reset_all): New function. Called in rule for RESET.
16962 (parse_init): Call reset_all.
16963 (define_variable): When defining scale reset only those
16964 pre-defined variables that are scaled.
16965 (defaults_table): Add `scale' as non-scaled value.
16967 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16968 together with the text; allow any number of positioning words;
16969 allow center as a positioning word.
16971 * pic/object.c (output::compute_scale): Get picture maximum height
16972 and width from variables called maxpswid and maxpsht.
16973 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16975 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
16977 * pic/object.c (object_spec::make_text): Multiply textht by number
16980 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16982 (do_sprintf): New function.
16983 (pic.gperf): Add sprintf token.
16984 (text, sprintf): New rules.
16986 * pic/pic.y: `rand()' with no arguments returns a random number
16987 in the range [0,1).
16989 * pic/pic.y: Allow a bare expression to be an attribute: change
16990 precedences to support this. Change optional_ordinal rule to
16991 optional_ordinal_last to avoid reduce/reduce conflict.
16992 * pic/object.c (object_spec::object_spec): Initialize direction.
16994 * pic/pic.y: Implement ^ operator meaning exponentiation.
16996 * troff/node.h: Add default argument to mount_font.
16997 * troff/node.c (font_position): Read an optional third argument
16998 giving the external_name.
16999 (mount_font): Add optional argument giving the external_name.
17000 (mount_font_not_translate): Have additional argument giving
17001 external name. Use this name to load the font. Pass both names
17002 to font_info::font_info.
17003 (font_info::font_info): Have additional argument giving
17005 (class tfont): New member external_name.
17006 (font_info::get_tfont): Use external name to construct tfont_spec.
17008 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
17010 * eqn/lex.c (init_table): Add argument giving device. Define
17011 name of device to be "1".
17012 (do_ifdef): Counts as true if the argument has been defined with
17014 * eqn/main.c (main): Call init_table with device argument. Make
17015 device local to main.
17016 * eqn/eqn.h: Change declaration of init_table. Remove declaration
17019 * pic/lex.c (get_delimited): Allow text to be delimited by
17020 matching {}s. Don't recognize ending delimiter within a string.
17022 * troff/input.c (get_delim_name): New function.
17023 (token::next): Implement \C.
17025 * lib/font.c (font::load): Grok ---. Add an alias for each
17026 character based on its code.
17027 (font::get_code_width): Deleted.
17028 * lib/font.h (class font): Declare font::number_to_index().
17029 Remove declaration of font::get_code_width.
17030 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17031 to indices of named characters.
17032 (font::number_to_index): New function.
17033 * troff/input.c (font::number_to_index): New function.
17034 (get_charinfo_by_number, charinfo::get_number,
17035 charinfo::set_number): New functions.
17036 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17037 (token::process, token::description, token::get_char,
17038 token::add_to_node_list, token::operator==): Handle
17039 TOKEN_NUMBERED_CHAR.
17040 * troff/charinfo.h: Declare get_charinfo_by_number,
17041 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17043 (charinfo::numbered): New function.
17044 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17045 * troff/env.h (class environment): Remove declaration of ...
17046 * troff/env.c (environment::make_numbered_char_node): Deleted.
17047 * troff/node.c (make_numbered_node): Deleted.
17048 (class numbered_glyph_node): Remove.
17049 (troff_output_file::put_char_width, troff_output_file::put_char):
17050 Handle numbered chars.
17051 (troff_output_file::numbered_char): Removed.
17052 (tfont::get_code_width): Removed.
17053 (make_glyph_node): Don't search special fonts for numbered
17055 * troff/node.h: Remove declaration of make_numbered_node.
17056 * driver/input.c (do_file): Handle N command.
17057 * driver/printer.h: Add declaration of ...
17058 * driver/printer.c (printer::set_numbered_char): New function.
17059 * dvi/tfmtodit.c (main): Generate unnamed entries.
17060 * ps/devps/afmtodit: Likewise.
17061 * xditview/xtotroff.c (MapFont): Likewise.
17062 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17064 * tbl/main.c (process_format): If multiple widths are specified
17065 for a column but all the widths are the same, don't give an error
17068 * tbl/table.c (table::do_row): If the current row is all lines and
17069 the stuff doesn't contains a line, mark the top of the row after
17070 printing stuff before the row. If the current row is not all
17071 lines and the stuff doesn't contain a line, don't unnecessarily
17072 mark the top of the row before printing the stuff.
17074 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17076 * troff/groff.h: Remove MAX_PATH.
17077 * troff/input.c (open_file): Dynamically allocate space for the
17079 (open_mac_file, process_macro_file): Corresponding changes.
17081 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17083 * troff/node.h (class output_file): Make copy_file pure. Add
17084 vspace method ifdef COLUMN. Add is_printing method.
17085 * troff/node.c: Add class printing_reg. Add class
17086 real_output_file. Derive other output_file classes from
17087 real_output_file; in these classes rename begin_page to
17088 really_begin_page, print_line to really_print_line, copy_file to
17089 really_copy_file, transparent_char to really_transparent_char.
17090 Move output_file::flush to real_output_file. Add printing member
17091 to class output_file.
17092 * troff/div.h: Remove printing member from top_level_diversion.
17093 Add vspace member function to class diversion ifdef COLUMN. Add
17094 some declarations ifdef COLUMN.
17095 * troff/div.c (top_level_diversion::copy_file,
17096 top_level_diversion::transparent_output,
17097 top_level_diversion::output): Don't test printing member before
17099 * troff/input.c: Handle initial variable_space_request ifdef
17101 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17102 but comment it out.
17104 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17106 * troff/div.c (diversion::need): Make any space forced. If we
17107 sprung a trap, set truncated_space to minus the distance to the
17108 trap and set needed_space to the amount that was needed.
17109 (top_level_diversion::space): A forced space turns no_space_mode
17111 (class constant_vunits_reg): New class.
17112 (init_div_requests): Implement number registers .trunc and .ne
17113 using constant_vunits_reg.
17114 (class truncated_space_reg): Deleted.
17116 * troff/div.h: Don't have a no_space_mode member in diversion.
17117 Instead have it in top_level_diversion.
17118 * troff/div.c (diversion::diversion): Don't initialize
17120 (top_level_diversion::top_level_diversion): Initialize
17122 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17123 (macro_diversion::output): Don't clear no_space_mode.
17125 * troff/input.c (diverted_space_node::reread): Don't call
17126 environment::do_break. In fill mode, act like a blank line.
17127 (diverted_copy_file_node::reread): Don't call
17128 environment::do_break.
17130 * troff/div.c (blank_line): New function.
17131 * troff/div.h: Declare it.
17132 * troff/input.c (process_input_stack): Call it.
17134 * troff/div.c (truncated_space_reg::get_string): New function.
17135 (init_div_requests): Bind to .trunc.
17136 (space_request, top_level_diversion::space,
17137 top_level_diversion::output, macro_diversion::space,
17138 macro_diversion::output): Update truncated_space.
17139 (macro_diversion::output): Redo calculations when trap sprung.
17140 (macro_diversion::output, macro_diversion::space): No need for
17143 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17144 after truncating post line spacing.
17146 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17148 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17149 defined as a procedure rather than as an operator.
17151 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17153 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17155 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17157 * troff/div.c (top_level_diversion::output): Merge
17158 output_file::print_line and output_file::end_of_line member
17160 * troff/div.h (class output_file):
17161 * troff/node.c (troff_output_file::print_line,
17162 troff_output_file::end_of_line, output_file::end_of_line,
17163 ascii_output_file::print_line, suppress_output_file::print_line):
17164 Corresponding changes.
17166 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17168 * troff/input.c (token::next): Don't give a warning for `\.'.
17170 * troff/env.c (environment::get_center_lines): New function.
17171 (init_env_requests): Bind number register .ce to it.
17172 * troff/env.h: Declare it.
17173 * tbl/table.c (table::init_output): Define reset macro to restore
17174 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17176 (table::print): If center option not given, then imply center
17177 option if SAVED_CENTER_REG > 0.
17179 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17181 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17182 Troff.ps from DOWNLOAD.
17184 * troff/Makefile: Change comment in DEFINES to avoid confusing
17187 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17188 code. Don't try to catch errors with stopped.
17189 (check_line_lengths): New function.
17190 * ps/devps/prologue (EXEC): Deleted.
17191 (EBEGIN, EEND): New procedures.
17193 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17195 * troff/input.c: Include request.h before node.h.
17196 * troff/node.c: Likewise.
17197 * troff/env.c: Likewise.
17198 * troff/div.c: Likewise.
17199 * troff/node.h (class special_node): Store argument as a macro
17200 rather than a char *.
17201 * troff/node.c (special_node::special_node, special_node::copy):
17203 (special_node::~special_node): Deleted.
17204 (special_node::tprint): Deleted.
17205 (special_node::tprint_start, special_node::tprint_end,
17206 special_node::tprint_char): New functions.
17207 (troff_output_file::special): Deleted.
17208 (troff_output_file::start_special, troff_output_file::end_special,
17209 troff_output_file::special_char): New functions.
17210 * troff/input.c (special_node::tprint): New function.
17211 (do_special): Use macro not char *.
17212 (do_transparent_macro): Deleted.
17213 (token::next): Don't call do_transparent_macro.
17215 * troff/input.c (token::next): Add 'Y' case.
17216 (do_transparent_macro): New function.
17217 * troff/node.c (troff_output_file::special): Handle newlines with
17218 argument using new continuation convention.
17219 * driver/input.c (get_string): Cope with continuation convention.
17220 (do_file): Don't call skip_line after calling get_string(1).
17221 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17222 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17224 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17227 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17229 * troff/input.c (asciify): By default, illegal input characters
17230 should return empty string.
17232 * troff/input.c (copy_file): Handle first page transition like title.
17233 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17235 * troff/input.c (token::next): Improve error message for EOF after
17237 (input_char_description): New function.
17238 (get_char_for_escape_name): Use input_char_description.
17239 (token::next): Warn about unrecognized escape sequences.
17240 (warning_table): Add WARN_ESCAPE.
17241 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17244 * troff/token.h: Remove declaration of process_input_stack.
17246 * troff/input.c: Remove declaration of init_hyphen_requests.
17247 * troff/request.h: Correct spelling in declaration of same.
17249 * troff/input.c (token::next): Check whether escape_char is 0.
17251 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17253 * groff.c (main, usage, help): Implement -P and -L options.
17254 * groff.sh: Likewise.
17256 * troff/input.c (token::next): Use some gotos to avoid code
17259 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17260 Avoid calling symbol::symbol if name empty.
17262 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17264 * troff/input.c (init_input_requests): Make \n(.x return the major
17265 version number and \n(.y return the minor version number.
17266 * troff/Makefile: Construct file majorminor.c defining
17267 major_version and minor_version automatically from ../VERSION.
17269 * troff/node.c (class glyph_node): Make operator new and operator
17271 (class ligature_node): Similarily.
17273 * troff/input.c (operator==(const macro &, const macro &)): New
17275 (non_interpreted_node::same): Use this.
17276 (string_iterator::string_iterator): Make macro& argument const.
17278 * troff/input.c (input_iterator::get): New function. Don't make
17279 asciify_macro or class non_interpreted_node friends of class
17281 (non_interpreted_node::interpret): Use input_iterator::get.
17282 (asciify_macro): Likewise.
17284 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17285 ~non_interpreted_node): Deleted.
17286 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17289 * troff/symbol.h: Make all symbol member functions const.
17291 * lib/strtol.c: New file.
17292 * lib/Makefile: Add strtol.c.
17293 * Makefile: Define STRTOL as strtol.o to include strtol in
17296 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17298 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17300 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17302 * troff/input.c (do_special): Use input_level.
17304 * troff/token.h (TOKEN_BACKSPACE): New token.
17305 (token::backspace): New function.
17306 * troff/input.c (token::description, token::next, token::process):
17307 Grok TOKEN_BACKSPACE.
17308 (do_special): Turn TOKEN_BACKSPACE back into \b.
17310 * troff/token.h (token::leader): New function.
17311 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17313 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17315 * troff/input.c (do_special): Use token::description in error
17318 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17320 * troff/input.c (decode_args): Combine quoted and
17321 quote_input_level variables. Make it a for (;;) loop.
17323 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17325 * troff/input.c (read_long_escape_name): The test for whether to
17326 expand buffer was off by 1.
17327 (read_string): Similarily.
17329 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17331 * troff/input.c: Use `const int' rather than `static const int'.
17333 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17334 (macro_diversion::copy_file): New function.
17335 * troff/node.h: New class diverted_copy_file_node.
17336 * troff/node.c: Implement it.
17337 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17338 first page transition by pushing a diverted_copy_file_node.
17339 * troff/input.c (token::next, process_input_stack): Don't handle
17342 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17344 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17345 whether space widths need adjusting.
17347 * troff/charinfo.h: Generalize translated_to_space to
17348 special_translation so as to allow translation to \&.
17349 * troff/input.c (translate): Allow translation to \&.
17350 (charinfo::*): Corresponding changes.
17351 * troff/node.c (make_node, node::add_char): Corresponding changes.
17352 * troff/node.h (dummy_node::dummy_node): Allow optional first
17355 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17356 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17358 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17359 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17360 (token::process): Grok that.
17361 * troff/input.c (copy_file): Handle first page transition like
17362 title by pushing a COPY_FILE_REQUEST cookie.
17363 (token::next, process_input_stack): Grok that.
17364 * troff/node.h (output_file::copy_file): Add x and y arguments.
17366 * troff/div.c (top_level_diversion::copy_file): Supply them.
17367 * troff/node.c (troff_output_file::copy_file): Add x and y
17368 arguments; moveto specified position. Invalidate font_position
17369 array after copying file.
17370 (output_file::copy_file): New function.
17371 (suppressed_output_file::copy_file, ascii_output::copy_file):
17373 * troff/input.c (transparent_file): New function.
17374 (init_input_requests): Bind to "trf".
17375 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17376 (process_input_stack): Likewise.
17378 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17380 * troff/node.c (init_node_requests): New number registers .kern
17381 pointing to global_kern_mode, and .lg pointing to
17382 global_ligature_mode.
17384 * troff/node.c (ligature): Don't change it if we get a bad
17387 * troff/input.c (do_define_string): Don't strip tabs.
17389 * troff/input.c (asciify_macro): Make the string_iterator auto.
17391 * troff/node.c (init_font_requests): Rename to...
17392 (init_node_requests):
17393 * troff/node.h: Change declaration.
17394 * troff/input.c (main): Change call.
17396 * troff/input.c (node::reread, diverted_space_node::reread): New
17398 (process_input_stack): Call reread rather than
17399 get_diverted_space_node.
17400 * troff/node.c (node::get_diverted_space_node,
17401 diverted_space_node::get_diverted_space_node): Removed.
17402 * troff/node.h: Declare reread methods instead of
17403 get_diverted_space_node methods. Make `n' member private.
17404 * troff/input.c: (token::diverted_space): Removed.
17405 * troff/token.h: Removed declaration.
17408 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17410 * eqn/script.c (script_box::compute_metrics): Don't let
17411 SUP_RAISE_FORMAT become negative.
17413 * tbl/table.c (table::do_row): Entries that don't end in the
17414 this row shouldn't make the row non-blank.
17416 * tbl/table.c (table::make_columns_equal): Only set the width of
17417 columns which are marked as equal.
17419 * tbl/main.c (process_data): Before issuing excess data error,
17420 if last character was a newline unget it; then get it again after
17421 the error. Also include the contents of the entry in the message.
17423 * groff.c: New file.
17424 * Makefile: Build groff from groff.c. Make it possible to use
17425 either groff.sh or groff.c as groff.
17426 * Makefile.bd: Similarily.
17428 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17430 * groff.sh: Don't delay expansion of $@ in assignment to files.
17431 Remove occurrences of \".
17433 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17435 * all Makefiles: Simplify and rearrange.
17437 * Makefile: Handle fmod like malloc.
17438 * lib/Makefile: Similarily.
17439 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17441 * Makefile: Rename OPTIMISE to OPTIMIZE.
17443 * groff.sh: Remove assignment to PATH.
17444 * Makefile: Remove SHPATH variable.
17445 * Makefile.bd: Similarily.
17447 * groff.sh: Add -V option to print the pipeline instead of
17450 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17452 * lib/font.c: Split off file searching into ...
17453 * lib/fontfile.c: New file.
17455 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17457 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17459 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17460 Also change misleading comment.
17461 (table::do_vspan): Change similarily misleading comment.
17462 * tbl/main.c (process_data): A format row with an explicit `s'
17463 uses up a data line, even if all the other columns are `_' or `='.
17465 * troff/input.c (token::description): Fix description of
17466 TOKEN_DUMMY and TOKEN_EMPTY.
17468 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17470 * groff.sh: Fix description of -Z in help message.
17472 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17474 * pic/object.c (object_spec::make_object): Allow negative and zero
17476 * pic/pic.y: Give linethick default value of -1.0.
17477 * pic/troff.c (troff_output::troff_output): Initialize
17478 last_line_thickness to BAD_THICKNESS.
17479 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17480 (troff_output::line_thickness): Canonicalize negative thicknesses
17481 to RELATIVE_THICKNESS.
17482 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17483 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17485 (tex_output::start_picture): Set pen_size to -2.0.
17487 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17488 0, then use 0 linewidth.
17489 (ps_printer::ps_printer): Initialize line_thickness to -1.
17491 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17493 * ps/devps/symbolchars: Remove `or'.
17494 * ps/tmac.ps: Implement \(or with .char.
17496 * ps/devps/symbolchars: Move most characters into textmap.
17497 * ps/devps/textmap: Add names for troff bracket characters. Remove
17500 * ps/devps/TSymbol.ps: Removed.
17501 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17502 * ps/tmac.ps: Do with .char what TSymbol did.
17503 * ps/devps/download: Remove TSymbol.
17505 * ps/devps/T: Removed.
17506 * ps/devps/Troff.ps: Removed.
17507 * ps/devps/Troff.afm: Removed.
17508 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17509 * ps/devps/download: Remove Troff.
17510 * ps/devps/FontMakefile: Remove T target.
17511 * ps/devps/DESC-A4: Remove T from font list.
17512 * ps/devps/DESC-letter: Likewise.
17514 * troff/input.c (macro_to_node): Rename to ...
17515 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17516 character's definition while processing it.
17517 * troff/node.c (node::add_char, make_node): Change calls to
17518 macro_to_node accordingly.
17520 * troff/input.c (token::next): Translate \_ to \(ul.
17522 * tty/devascii/R.proto: Add `|'.
17523 * tty/devlatin1/R.proto: Likewise.
17525 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17527 * man: Put the version number in all the man pages.
17529 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17531 * Makefile.bd: New file.
17532 * README.bd: New file.
17534 * VERSION: New file.
17535 * lib/version.c: Removed.
17536 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17539 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17540 environment variable.
17542 * all Makefiles: Split install target into install.bin for
17543 binaries, and install.nobin for everything else.
17544 * Makefile: Add bindist target.
17546 * man/afmtodit.man: New file.
17547 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17548 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17550 * ps/Makefile: Pass BINDIR to make install in devps.
17552 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17553 the space character.
17555 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17557 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17559 * ps/ps.c: Redo font downloading.
17560 * ps/devps/download: New file.
17561 * ps/devps/Makefile: Add download to DEVICEFILES.
17562 * ps/devps/afmtodit: Remove -d option.
17563 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17564 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17565 * ps/devps/zapfdr.ps: Likewise.
17566 * ps/devps/TSymbol.ps: Likewise.
17568 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17570 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17572 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17574 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17575 then strip the first line if it starts with %.
17576 * Makefile: Add a comment about this.
17578 * man/tfmtodit.man: New file.
17579 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17580 * dvi/Makefile: Install tfmtodit in BINDIR.
17582 * dvi/tfmtodit.c (usage): Mention -v option.
17584 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17586 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17587 * troff/node.c (troff_output_file::transparent_char): Don't call
17590 * eqn: Add check_tabs method to most box classes.
17591 * eqn/box.c (box::top_level): Call check_tabs.
17593 * eqn/script.c (script_box::output): Use \Z.
17594 * eqn/limit.c (limit_box::output): Use \Z.
17596 * eqn/box.c (box::top_level): Use itoa.
17598 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17600 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17601 * dvi/devdvi/Makefile: Don't make links to CW.
17603 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17605 * xditview/tmac.X: Likewise.
17607 * troff/node.c: Add font translation feature.
17608 (get_font_translation): New function.
17609 (symbol_fontno): Translate the font name.
17610 (mount_font_no_translate): Rename to mount_font to this.
17611 (mount_font): New function.
17612 (font_family::make_definite): Call mount_font_no_translate instead
17614 (mount_style): Translate the font name.
17615 (font_translate): New function.
17616 (init_font_requests): Bind "ftr" to font_translate.
17618 * ps/devps/prologue (SN): New procedure that rounds a position to
17619 the nearest (pixel + (.25,.25)).
17620 (DL): Use SN to round endpoints.
17622 * lib/version.c: Changed version to 0.5.
17624 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17626 * Makefile: Move definition of PAGE to the very beginning, so that
17627 people are less likely to miss it.
17629 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17631 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17633 * troff/env.c (environment::choose_breakpoint): Make `can't find
17634 breakpoint' error a warning of type WARN_BREAK. Change message to
17635 `can't break line'.
17636 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17638 * troff/input.c: Add WARN_BREAK to warning_table. Include
17639 WARN_BREAK in DEFAULT_WARNING_MASK.
17641 * tty/tmac.tty: Add definition of \(+-.
17643 * groff.sh: Remove `--' option to set command.
17645 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17647 * ps/devps/eqnchar: Better definition of cdot using md.
17648 * dvi/devdvi/eqnchar: Likewise.
17649 * xditview/devX100/eqnchar: Likewise.
17650 * xditview/devX75/eqnchar: Likewise.
17651 * eqn/lex.c: Add definition of cdot.
17653 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17655 * troff/input.c (get_optional_char): New function.
17656 * troff/input.c (set_page_character): Use get_optional_char(),
17657 rather than has_arg() and tok.get_char(1).
17658 * troff/env.c (tab_character, leader_character, hyphen_char,
17659 field_characters): Likewise.
17660 (margin_character): Likewise. Also always delete the
17661 margin_character_node.
17663 * troff/input.c (token::get_char): Use token::description.
17665 * troff/input.c (has_arg): Don't skip over tab and \}.
17666 * troff/number.c (start_number): Give a warning if the number
17667 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17669 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17671 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17673 (get_name, get_long_name): Use these. Rename `warn' argument to
17676 * troff/node.c (get_fontno): Test that the symbol is not null.
17678 * troff/input.c (token::description): New function.
17679 * troff/number.c (parse_term): Use token::description in `numeric
17680 expression expected' message.
17681 * troff/groff.h: Add WARN_MISSING.
17682 * troff/number.c (start_number): New function.
17683 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17684 get_incr_number): Use start_number().
17685 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17687 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17688 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17690 * troff/input.c (token::get_char): Use WARN_MISSING.
17691 * troff/input.c (token::delimiter): Use token::description.
17692 * troff/env.c (environment_switch): Back out Aug 3 change.
17693 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17695 * troff/token.h (token::tab): New function.
17696 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17697 * troff/reg.c (alter_format): Likewise.
17698 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17700 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17702 * troff (most files): Redo warnings. Divide warnings into various
17703 categories; warning() has an additional first argument indicating
17704 the category it falls into.
17705 * troff/input.c (main): -w now takes an argument. New option -W.
17706 (enable_warning, disable_warning): New functions.
17708 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17709 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17711 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17713 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17714 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17715 * xditview/devX75/eqnchar: Likewise.
17716 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17718 * eqn/other.c: When bar or over applies to a single character
17719 don't produce an overline_box or an underline_box. Instead produce
17720 an accent_box or an underaccent_box, with the accent a line
17721 whose width is accent_width. New classes underaccent_box,
17722 overline_char_box and underline_char_box.
17723 * eqn/box.h: Move overline_box, underline_box, accent_box class
17724 declarations into eqn/other.c. Add declarations of
17725 make_underline_box, make_overline_box, make_accent_box.
17726 * eqn/eqn.y: Call make_overline_box, make_underline_box
17727 make_accent_box instead of constructors.
17728 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17730 * eqn/other.c: Add accent_box::~accent_box.
17731 * eqn/box.h: Declare it.
17733 * groff.sh: With -Tps, use eqn -D.
17735 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17737 (underline_box::output): Similarily.
17738 (accent_box::output): Use \Z.
17740 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17743 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17745 * troff/div.c (top_level_diversion::transparent_output(unsigned
17746 char)): Use asciify.
17747 * troff/input.c (asciify): Don't make it static.
17748 * troff/token.h (asciify): Declare it.
17750 * troff/input.c (get_name, get_long_name, token::get_char,
17751 token::delimiter): Add an extra default argument which says
17752 whether a warning should be printed.
17753 * troff: Pass a non-zero argument to one of these rather than
17754 printing a warning directly.
17756 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17758 * troff: Consistently use symbol::is_null.
17760 * troff/dictionary.h: Move some inline functions into
17763 * troff/request.h: Move inline functions into input.c.
17764 (request_or_macro::invoke): Make it pure.
17766 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17767 * troff/input.c (init_input_requests): Use class constant_int_reg.
17768 (class compatible_reg): Deleted.
17769 * troff/div.c (init_div_requests): Use class constant_int_reg.
17770 (class last_post_line_extra_space_reg): Deleted.
17772 * troff/env.c (tab_character): Don't change the tab character if
17773 we get an invalid argument.
17774 (hyphen_char): Similarily.
17776 * troff/reg.c (alter_format): Check that nm is not null.
17778 * Makefile, groff.sh: Make it possible to customize the commands
17779 used for printing PostScript and dvi files. Also make it possible
17780 to customize the path used by groff.sh.
17782 * eqn/eqn.y: Make `left' right associative.
17784 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17786 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17789 * pic/pic.h: Removed definition of INT_MAX.
17791 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17794 * troff/input.c (token::next): Handle \R like \n.
17796 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17798 * ps/tmac.pc (PSPIC): Simplify.
17800 * troff/env.c (tab_stops::to_string):
17801 * pic/pic.y (object_type_name):
17802 * pic/troff.c (simple_output::line):
17803 * pic/tex.c (tex_output::spline):
17804 * pic/object.c (object_spec::make_object):
17805 * tbl/main.c (process_data): Add cases to switch statements to
17806 avoid cfront warnings. (Some of these are spurious, since the
17807 switch already has a default case.)
17809 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17810 `ps-'. Don't test systat; instead check number of arguments to
17813 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17815 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17817 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17818 Unlink the file as soon as we have opened it, so that we don't
17819 have to bother with signal handlers.
17820 (handler): Deleted.
17821 (fatal_error_exit): Deleted.
17822 (main): Don't call signal.
17824 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17826 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17828 * pic/pic.y: If there is a label, or an nth construction before
17829 the first `.' in the argument to `with', ignore it and generate a
17831 * pic/lex.c (lex_warning): New function.
17833 * tbl/table.c (table::init_output): In section keep and release
17834 macro, use 0 indent when diverting and the correct indent when
17837 * troff/input.c (interpolate_number_format): Do not interpolate
17838 anything if the number register is not defined.
17840 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17842 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17844 * ps/devps/prologue (PICTURE): Set components of graphics state to
17845 their default values.
17847 * ps/devps/text.enc: Add trademark
17848 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17849 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17850 * ps/devps/symbolchars: Add names for summation and product.
17852 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17853 suchthat. Add pp. Add upper-case letters.
17855 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17856 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17859 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17860 rA (right angle bracket) to ra. Introduce names for double-headed
17861 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17862 * ps/devps/textmap: Likewise for ps device.
17863 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17864 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17865 * tty/devascii/R.proto: Likewise.
17866 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17868 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17870 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17872 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17875 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17877 * troff/div.c (when_request): Use symbol::is_null rather than
17878 has_arg to determine whether we have an argument.
17879 (change_trap): Remove the trap if we get an invalid number. Give
17880 an error if we don't get at least the macro name.
17881 (diversion_trap): Remove trap if we get an invalid name or number.
17883 * troff/env.c (environment_switch): Pop if we get an invalid
17884 symbol or numeric expression.
17886 * troff/input.c (do_define_macro): If EOF is encoutered while
17887 defining the macro, do tok.next() before returning.
17889 * troff/token.h (has_arg): Move definition from here, to ...
17890 * troff/input.c (has_arg): ... here
17892 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17893 * troff/input.c (shift): Likewise.
17895 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17898 * pic/troff.c (troff_output::start_picture): Comment out calls to
17901 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17902 interpret_lf_args succeeds.
17904 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17905 \\. This avoids problems with \$N.
17907 * groff.sh: Pass -C to preprocessors.
17909 * lib/lf.c (interpret_lf_args): Be more flexible.
17911 * tbl/main.c (main): Add -C option.
17912 (table_input::get): Do not recognize TE if followed by character
17913 other than a space or newline unless -C option given.
17914 (process_input_file): Likewise for lf, TS.
17915 (process_data): Likewise for lf in text blocks.
17917 * eqn/main.c (main): Add -C option.
17918 (do_file): Don't recognize EQ, EN or lf if followed by character
17919 other than space or newline unless -C option given.
17920 * eqn/lex.c (file_input::read_line): Similarily.
17921 * eqn/eqn.h: Declare compatible_flag.
17923 * etc/soelim.c (main): Add -C option.
17924 (interpret_lf_args): Use version in libgroff.
17927 * pic/main.c (main): Add -C option, which sets compatible_flag.
17928 (top_input::get), (top_input::peek): If -C option not given,
17929 do not recognize .PS/.PE/.PF/.lf if followed by a character
17930 other than space or newline.
17931 * pic/lex.c (file_input::read_line): Similarily.
17932 * pic/pic.h: Add declaration of compatible_flag.
17934 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17936 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17938 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17939 derived from node. New class space_char_hmotion_node.
17940 * troff/input.c (asciify_macro): New function.
17941 * troff/input.c (init_input_requests): New request `asciify' bound
17943 * macros/mm.diff: New file.
17944 * Makefile: In install.mm target use `patch' to apply
17947 * troff/input.c (macro::print_size): Just print the size in bytes.
17949 * troff/div.c (return_request): Correct the argument
17952 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
17954 * troff/node.h (class composite_node): Add sz member.
17955 * troff/node.c (composite_node::size): Return sz.
17956 * troff/input.c (macro_to_node): Use the initial size in the
17957 environment as the size of the composite_node.
17959 * troff/node.c (node::zero_width_tprint): Provide a reasonable
17962 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
17964 * troff/div.c (change_trap): If we get a bad number expression,
17967 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
17969 * lib/matherr.c (matherr): Define this only if math.h defines
17972 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
17974 * troff/div.c (macro_diversion::distance_to_next_trap): If there
17975 no diversion trap return vunits(INT_MAX - vresolution).
17977 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
17979 * troff/input.c (do_zero_width): New implementation that doesn't
17980 use a temporary environment. Use instead:
17981 (token::add_to_node_list): New function.
17982 * troff/env.c (environment::get_prev_char_height),
17983 (environment::get_prev_char_height),
17984 (environment::get_prev_char_skew): New functions.
17985 (environment::get_prev_char): New function.
17986 (environment::get_prev_char_width): Change to use get_prev_char.
17987 (init_env_request): Implement new registers .cht, .cdp, .csk.
17988 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17989 \Z being processed in a separate environment.
17991 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
17993 * tbl/table.c: Removed TABLE_BOTTOM_REG.
17995 * tbl/table.c (table::init_output): In the section release macro,
17996 give a warning message if the section won't fit on one page.
17998 * tbl/table.c (table::do_top): Emit table keep only if table is
18000 (table::do_bottom): Likewise for table release.
18001 (table::table), (table::add_vertical_rule): Remove reference to
18003 * tbl/table.h: Remove keep member.
18005 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18006 SECTION_RELEASE_MACRO, if there's not enough space before the next
18007 trap to output the diversion, call T# ourselves, set
18008 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18009 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
18010 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
18011 vertical position and return to it before turning traps on again.
18013 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
18015 * troff/node.c, troff/node.h: In classes derived from node,
18016 replace prev_char_width method by last_char_node method.
18017 * troff/env.c (environment::get_prev_char_width): Use
18018 node::last_char_node rather than node::get_prev_char_width.
18020 * Makefile: Added comment about -fno-inline on 68030-based
18023 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18024 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18025 expressions using sizeof to int.
18026 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18028 * macros/tmac.e (TS): Don't move @f back past the current
18031 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18033 * ps/ps.c (main): Buffer stderr.
18034 * dvi/dvi.c (main): Likewise.
18035 * tty/tty.c (main): Likewise.
18037 * ps/ps.c (ps_printer::do_import): Improve error handling.
18039 * troff/input.c (abort_request): Use asciify.
18041 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18042 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18043 type of first argument int rather than char. This works around a
18044 bug on the 68030 based Apollo using g++ 1.37.1.
18046 * tbl/table.h (class table): Add `keep' member.
18047 * tbl/table.c (table::table): Initialize `keep'.
18048 (table::add_vertical_rule): Set `keep' to 1.
18049 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18050 (table::do_bottom): Likewise for table release macro.
18051 (table::do_row): Emit section keep macro even if the row is 0.
18053 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18055 * macros/tmac.e (@C): Preserve the font family across the change
18058 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18060 * lib/font.c: Initialize font::hor and font::vert to 1.
18061 (font::load_desc): Check the values of font::hor and font::vert.
18063 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18064 be included in a C compilation.
18065 (iftoa): Use INT_DIGITS. Include lib.h.
18067 (as_string): Likewise.
18068 * tbl/table.c: Removed definition of INT_DIGITS.
18069 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18070 * troff/input.c (input_input_requests): Likewise.
18071 * ps/ps.c (make_encoding_name): Likewise.
18072 (ps_printer::set_style): Likewise.
18073 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18075 * tty/devascii/R.proto: Map fm onto '.
18076 * tty/devlatin1/R.proto: Likewise.
18078 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18080 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18081 argument to \w is at a different input level.
18083 * tbl/table.c (table::init_output): Define a new macro
18084 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18085 transparently outputs itself.
18086 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18088 (table::do_row): Likewise.
18090 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18091 TRANSPARENT_STRING_NAME.
18093 * tbl/table.c (table::init_output): In the table release macro
18094 print an error message and don't produce any output if after
18095 issuing the need request the table still will not fit. Also
18096 remove the diversion after bringing it back.
18098 * tbl/table.c (table::init_output): Define a new macro
18099 REPEATED_MARK_MACRO, like mk but if in a diversion also
18100 transparently outputs itself.
18101 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18102 is necessary because .TH might not call .T#.
18103 (table::do_top): Likewise TOP_REG.
18104 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18105 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18106 table header might contain just the two top rules.
18108 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18110 * troff/div.c: Implement new request `ptr' to print all traps.
18112 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18113 init_string_env_reg.
18114 * troff/env.c (class tab_reg): Deleted.
18116 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18118 * troff/div.c: New number register .pn returns the number of the
18119 next page as set by the pn request.
18121 * macros/tmac.an: Redid headers and footers. Number each manual
18122 entry starting from 1 unless \nC is > 0, like Sun. Added an
18123 optional 5th argument to .TH which specifies the manual name and
18124 appears in the center of the header. Understand the X, P and D
18125 registers like Sun.
18127 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18129 * troff/env.c (init_env_requests): New number register `.lt' to
18130 return the title length.
18132 * troff/node.h (class transparent_dummy_node): New class.
18133 * troff/node.c (class transparent_dummy_node): Provide member
18135 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18138 * troff/input.c (token::next): New escape sequence \).
18139 * troff/input.c (get_copy): Recognize \) in copy mode.
18141 * troff/input.c (input_stack::clear): New function.
18142 * troff/input.c (exit_request): Use input_stack::clear.
18144 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18145 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18147 * troff/env.c: Move set_page_character to input.c. Move
18148 page_character to input.c also.
18149 * troff/env.c (title): Split off the reading of the parts of the
18150 title into read_title_parts.
18151 * troff/input.c (read_title_parts): New function. Check the
18152 input_level when testing whether a token matches the delimiter.
18154 * troff/input.c (exit_request): New function.
18155 * troff/input.c (init_input_requests): Bind ex request to
18156 exit_request rather than exit_groff.
18158 * troff/input.c (exit_groff): Call tok.next() before
18159 process_input_stack().
18161 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18163 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18164 * troff/env.h: ditto.
18165 * troff/input.c: ditto.
18167 * troff/env.c (environment::is_empty): Test pending_lines.
18169 * troff/env.c (environment::have_pending_lines): Removed.
18171 * troff/input.c: Add request to flush pending lines from the
18174 * troff/env.c, troff/env.h: Add automatic widow control feature.
18176 * troff/input.c (exit_groff): Do process_input_stack() after
18177 do_break() but before setting exit_flag to 2.
18179 * troff/input.c: Remove FLUSH_PENDING_LINES and
18180 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18181 environment after END_TRAP token seen, but only if there aren't
18182 any more traps still unfinished.
18183 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18185 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18187 * troff/env.c: Rename the `retain_size' member of class
18188 pending_output_line to `no_fill'.
18190 * troff/env.c (title): When the line is output, make the
18191 retain_size argument !fill.
18193 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18194 * troff/node.c (space_node::get_breakpoints),
18195 (dbreak_node::get_breakpoints): Fill this in.
18196 * troff/env.c: Allow specification of maximum number of
18197 consecutive hyphenated lines.
18199 * troff/env.c (environment::is_empty): Add test for !current_tab.
18201 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18203 * troff/env.c (environment::hyphenate_line): Don't completely give
18204 up if the word is not to be hyphenated; continue so that breaks
18205 can be made at break_char_node's.
18207 * lib/lib.h: Only define INT_MAX if it's not already defined;
18208 undef INT_MIN if it's already defined.
18210 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18212 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18213 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18216 * macros/tmac.an (an-header): Set no-space mode.
18218 * macros/tmac.an (TH): Start a new page if necessary.
18220 * Started using ChangeLog at version 0.4.
18223 version-control: never