1 2005-09-04 Werner LEMBERG <wl@gnu.org>
3 * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
5 * doc/webpage.ms: Updated.
7 2005-09-04 Jörgen Grahn <jgrahn@algonet.se>
9 * tmac/groff_ms.man: Document `PO' better.
11 2005-09-03 Werner LEMBERG <wl@gnu.org>
13 * NEWS: Document grotty changes.
15 2005-09-01 Keith Marshall <keith.d.marshall@ntlworld.com>
17 Backward compatibility support for `man' program.
19 * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
20 assignment, prior `.ll' request and then package defaults, in this
21 specified order of decreasing priority.
23 * tmac/groff_man.man, doc/groff.texinfo: Document altered `LL'
24 register initialization priorities.
26 2005-08-29 Gary W. Swearingen <garys@opusnet.com>
28 * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
29 section should look like.
31 2005-08-29 Werner LEMBERG <wl@gnu.org>
33 * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
36 2005-08-27 Bernd Warken
38 * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
41 2005-08-11 Bernd Warken
43 * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
45 2005-08-09 Bernd Warken
47 * tmac/www.tmac (URL, MTO): Use bold series if color support is
50 2005-08-02 Bernd Warken
52 * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
53 as argument to $(INSTALL_INFO). The latter isn't portable.
54 Remove $(HTMLEXAMPLEFILES) too.
56 * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
58 Suppress warning messages and return always true.
60 * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
62 2005-07-02 Bernd Warken
64 * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
65 * man/groff_out.man: More markup and minor improvements.
66 * src/roff/groff/groff.man: Minor improvements.
68 2005-06-28 Werner LEMBERG <wl@gnu.org>
70 * ChangeLog: Split off older entries into...
71 * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
74 2005-06-26 Bernd Warken
76 * src/devices/xditview/gxditview.man: More minor fixes.
78 2005-06-24 Werner LEMBERG <wl@gnu.org>
80 * src/preproc/pic/troff.cpp (troff_output::set_fill,
81 troff_output::set_color, troff_output::reset_color): Use .bcolor and
82 .fcolor instead of \m and \M, respectively.
84 2005-06-23 Bernd Warken
86 * src/devices/xditview/gxditview.man: More minor fixes.
87 * README: Formatting issues.
88 Mention some problems with Debian.
90 2005-06-23 Bernd Warken
92 * src/devices/xditview/gxditview.man: Revised and improved.
94 2005-06-22 Werner LEMBERG <wl@gnu.org>
96 Another round in fixing getopt problems. Hopefully the last one!
97 This time we use the getopt stuff from gnulib and define a prefix
98 unconditionally so that there are no collisions with any other
99 getopt implementations. This is a slight waste of space in case
100 we already use a GNU getopt implementation, but on
101 the other hand it really simplifies life.
103 * src/include/getopt.h: Use gnulib version.
105 * src/include/getopt_int.h: Use gnulib version.
107 * src/include/groff-getopt.h: Removed. Obsolete now.
109 * src/include/lib.h: Regarding getopt, don't handle any platform
110 specially; just include getopt.h.
111 (__GETOPT_PREFIX): Define (before getopt.h).
113 * src/include/Makefile.sub (HDRS): Updated.
115 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
118 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
121 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
122 (__GETOPT_PREFIX): Define (before getopt.h).
124 2005-06-21 Werner LEMBERG <wl@gnu.org>
126 * src/include/lib.h: Provide a fix for Mac OS X to not include
129 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
131 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
132 `bind' to define a procedure which contains `showpage' means that an
133 invocation of `showpage' may execute wrongly (the exact effect
134 depending on the interpreter). Not usually a problem except under
135 transformations, such as combining pages.
136 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
137 of /PEND means that stack underflow will occur if the stack is
138 deliberately non-empty before document inclusion. If included
139 files are found to be generally badly behaved, we could replace the
140 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
141 never found this necessary).
143 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
145 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
146 earlier to get correct error message.
148 2005-06-16 Bernd Warken
149 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
151 2005-06-15 Werner LEMBERG <wl@gnu.org>
153 Another try to update getopt files. This time we add a dummy
154 gettext.h file to satisfy the dependency.
156 * src/include/getopt.h, src/libs/libgroff/getopt.c,
157 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
159 * src/include/getopt_int.h: New file (from GNU libc CVS).
161 * src/include/gettext.h: Dummy file which just defines a gettext()
164 * src/include/groff-getopt.h: Updated.
166 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
169 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
170 `const' keywords in return value.
172 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
173 Remove redundant variable `old'.
174 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
176 * src/preproc/tbl/main.cpp (process_table): Remove redundant
180 Fix more friend name injection problems since modern C++ compilers
181 fail otherwise. We simply provide (global) declarations for all
182 functions declared as friends. This is not really necessary but
185 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
186 peek_char, and get_location.
188 * src/preproc/refer/ref.h: Provide declarations for
189 compare_reference, same_reference, same_year, same_date,
190 same_author_last_name, and same_author_name.
192 * src/roff/troff/div.h: Provide declarations for do_divert and
195 * src/roff/troff/env.h: Provide declarations for title_length,
196 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
197 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
198 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
199 margin_character, no_number, number_lines, leader_character,
200 tab_character, hyphenate_request, no_hyphenate,
201 hyphen_line_max_request, hyphenation_space_request,
202 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
203 line_tabs_request, widow_control_request, and do_divert.
205 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
207 * src/roff/troff/node.cpp: Provide declarations for class
209 Provide declaration for make_tfont.
211 2005-05-29 Werner LEMBERG <wl@gnu.org>
213 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
215 2005-05-28 Werner LEMBERG <wl@gnu.org>
217 * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
220 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
221 redundant semicolons.
223 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
224 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
225 Define `MLIB'. Some compilers need this for linking with libgroff.
227 2005-05-27 Werner LEMBERG <wl@gnu.org>
229 * MANIFEST, README, doc/webpage.ms: Updated.
231 2005-05-26 Werner LEMBERG <wl@gnu.org>
233 * All affected files: Update postal address of FSF.
235 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
238 * README: More fixes.
240 * README.CVS: Removed. Its contents is now part of the README file.
242 2005-05-21 Werner LEMBERG <wl@gnu.org>
244 * README: Updated. Based on a patch from Bernd Warken.
246 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
248 Miscellaneous script portability enhancements.
250 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
251 generated conftest.sh script, conforming to portability
252 recommendation in autoconf docs.
253 * configure: Likewise, for code generated by GROFF_CSH_HACK.
254 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
255 to portability recommendation in autoconf docs.
256 * contrib/gdiffmk/gdiffmk.sh: Likewise.
257 * contrib/gdiffmk/tests/runtests.in: Likewise.
258 * contrib/grap2graph/grap2graph.sh: Likewise.
259 * contrib/groffer/groffer.sh: Likewise.
260 * contrib/mm/mmroff.pl: Likewise.
261 * contrib/mom/momdoc/appendices.html: Likewise.
262 * contrib/pic2graph/pic2graph.sh: Likewise.
263 * font/devps/generate/afmname: Likewise.
264 * src/devices/xditview/ad2c: Likewise.
265 * src/preproc/eqn/neqn.sh: Likewise.
266 * src/roff/grog/grog.pl: Likewise.
267 * src/roff/grog/grog.sh: Likewise.
268 * src/roff/nroff/nroff.sh: Likewise.
269 * PROBLEMS: Likewise, in embedded script examples.
271 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
273 Improve portability of `pdfroff' shell script.
275 * arch/misc/shdeps.sh: Add space in shebang, conforming to
276 portability guidelines in `autoconf' docs.
277 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
278 initialization code. Used by contrib/pdfmark/pdfroff.sh's
279 `searchpath' function.
281 2005-05-14 Werner LEMBERG <wl@gnu.org>
283 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
284 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
285 needed for newer ImageMagick versions.
287 2005-05-07 Werner LEMBERG <wl@gnu.org>
289 * src/preproc/refer/refer.man: Many small typographic fixes.
291 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
293 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
294 Use `char *' cast for a_delete.
296 2005-05-03 Werner LEMBERG <wl@gnu.org>
298 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
299 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
301 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
303 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
304 `a_delete' for `const char *'.
306 2005-05-03 Werner LEMBERG <wl@gnu.org>
308 * src/devices/grohtml/post-html.cpp,
309 src/devices/grohtml/html-table.cpp,
310 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
311 Replace malloc/free with new/delete/a_delete.
313 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
314 are prohibited with ANSI C++.
315 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
316 function has a variable number of arguments).
318 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
319 Simplify function and update all callers.
321 2005-05-02 Werner LEMBERG <wl@gnu.org>
323 Undo getopt changes from 2005-04-30. We don't want a dependency
326 * src/include/getopt_int.h: Removed.
328 * src/include/getopt.h, src/include/groff-getopt.h,
329 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
330 src/libs/libgroff/getopt1.c: Revert to previous version.
333 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
335 * src/include/posix.h (F_OK): Define conditionally.
337 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
338 different variable name in second `for' loop to avoid MSVC compiler
341 2005-04-30 Werner LEMBERG <wl@gnu.org>
343 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
345 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
346 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
347 * configure, src/include/config.hin: Regenerated.
354 * src/include/getopt.h, src/libs/libgroff/getopt.c,
355 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
357 * src/include/getopt_int.h: New file (from GNU libc CVS).
359 * src/include/groff-getopt.h: Updated.
361 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
364 * font/devutf8/NOTES: Updated.
366 2005-04-28 Werner LEMBERG <wl@gnu.org>
368 Bug fix for Win32 relocatable code. Based on a patch from Keith
371 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
374 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
375 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
377 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
379 Correct `gnu.eps' handling for build from distribution tarball, with
380 separate source and build directories.
382 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
383 grnexmpl.g, groff.css and gnu.eps from source to build directory;
384 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
385 (prepare_examples): Make it depend on examples.stamp.
386 (CLEANADD): Add examples.stamp.
388 2005-04-27 Werner LEMBERG <wl@gnu.org>
392 position: '(' position ')'
396 * src/preproc/pic/pic.y (position, position_not_place): Handle
397 additional parentheses.
399 * doc/pic.ms: Updated.
401 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
403 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
405 2005-04-18 Werner LEMBERG <wl@gnu.org>
407 * src/roff/groff/pipeline.c: Don't include ctype.h.
409 2005-04-13 Werner LEMBERG <wl@gnu.org>
411 * src/roff/nroff/nroff.man: Document option `-M'.
413 2005-04-13 Bruce Lilly <blilly@erols.com>
415 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
417 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
418 Werner LEMBERG <wl@gnu.org>
420 Add binary relocation support for Windows platforms.
422 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
424 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
426 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
427 (search_path::search_path, search_path::open_file_cautious): Use
430 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
431 src/include/Makefile.sub (HDRS): Updated.
433 2005-04-01 Werner LEMBERG <wl@gnu.org>
435 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
438 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
440 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
441 lib.h already does it.
443 * src/libs/libgroff/maxpathname.cpp: New file, defining
446 * src/include/lib.h: Add prototype for path_name_max.
448 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
450 * src/include/nonposix.h (PATH_EXT): New macro.
452 2005-03-28 Werner LEMBERG <wl@gnu.org>
454 Add support for double- and zero-width characters in grotty.
456 * src/devices/grotty/tty.cpp (glyph): Add width.
457 (tty_printer::make_underline, tty_printer::make_bold,
458 tty_printer::add_character): Add parameter to pass character width.
460 (tty_printer::end_page): Increase hpos by actual character width.
462 * font/devutf8/R.proto: Specify zero width for non-spacing
465 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
467 * Makefile.comm (extraclean): Remove more junk files.
469 2005-03-25 Werner LEMBERG <wl@gnu.org>
471 * configure.ac: Undo change from 2005-03-24.
472 * configure: Regenerated.
474 2005-03-24 Werner LEMBERG <wl@gnu.org>
476 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
477 (dist): Search Makefile while descending into $(EXTRADIRS).
479 * doc/Makefile.in (.PHONY): Add.
480 (clean): Don't remove *.png and *.eps.
482 (realclean): Remove *.png and *.eps.
483 (extraclean): Depend on distclean.
485 * configure.ac: Add copyright.
486 Handle contrib/pdfmark/Makefile.
488 * configure: Regenerated.
490 2005-03-18 Larry Kollar <kollar@alltel.net>
492 Add numbered and definition lists to www.tmac.
494 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
495 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
496 auxiliary string registers.
497 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
498 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
499 (www-level): Removed.
500 (www-level1, www-level2, www-level3): Initialize to empty.
501 (www-level0, www-level4, www-level5, www-level6, www-level7,
502 www-level8, www-level9): New string registers.
503 (www-push-li, www-pop-li): New macros.
504 (www-push-level, www-pop-level): Renamed to...
505 (www-push-ul-level, www-pop-ul-level): This.
507 (www-push-ol-level, www-pop-ol-level): New macros.
509 (OLS, OLE, DLS, DLE): New user macros.
510 (LI): Removed. It is aliased to one of...
511 (www-li-ul, www-li-ol, www-li-dl): New macros.
513 * tmac/groff_www.man: Document new macros.
517 2005-03-18 Werner LEMBERG <wl@gnu.org>
519 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
520 doc-operating-system-NetBSD-2.0.2): New strings.
522 * tmac/groff_mdoc.man: Updated.
524 2005-03-17 Werner LEMBERG <wl@gnu.org>
526 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
528 2005-03-17 Werner LEMBERG <wl@gnu.org>
530 * src/libs/libgroff/hypot.c: Renamed to...
531 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
533 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
535 * src/include/lib.h: Updated.
537 2005-03-16 Werner LEMBERG <wl@gnu.org>
539 Add workaround for broken hypot() on Interix.
541 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
543 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
544 (CSRCS): Add `hypot.c'.
546 * src/include/lib.h: Declare `groff_hypot'.
548 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
551 * src/preproc/pic/pic.h: Don't declare `hypot'.
553 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
555 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
557 * src/devices/grohtml/post-html.cpp
558 (html_printer::lookahead_for_tables): End .ce properly to avoid a
561 2005-03-15 Werner LEMBERG <wl@gnu.org>
563 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
565 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
567 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
569 2005-03-14 Werner LEMBERG <wl@gnu.org>
571 Add Cyrillic support to devutf8 and devhtml.
573 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
575 * tmac/unicode.tmac: New file.
577 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
579 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
583 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
585 * src/libs/libdriver/printer.cpp (check_for_output_error): New
586 function. It has been introduced to catch peculiar error contexts
587 on MS-Windows platforms.
589 2005-02-28 Werner LEMBERG <wl@gnu.org>
591 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
594 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
596 * configure: Regenerated.
600 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
602 Integrate `pdfmark' into normal groff build system;
603 install macro `pdfmark' packages, build and install `pdfroff',
604 and PDF format documentation.
606 * Makefile.comm: Add PDFDOCDIR.
608 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
609 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
610 (unstall_dirs): Add pdfdocdir.
612 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
613 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
614 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
615 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
616 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
617 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
619 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
620 use of GROFF_AWK_PREFS.
621 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
622 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
624 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
625 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
626 also by modified GROFF_HTML_PROGRAMS).
628 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
630 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
632 (html_text::done_para): Unset `start_space'.
633 (html_text::remove_para_align): Call `retrieve_para_space' for the
636 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
638 (html_printer::do_check_center): Emit vertical space if necessary.
640 * src/roff/troff/env.cpp (environment_switch): Preserve
641 `seen_space', `seen_eol', and `suppress_next_eol' while switching
644 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
647 2005-02-20 Werner LEMBERG <wl@gnu.org>
649 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
652 2005-02-17 Werner LEMBERG <wl@gnu.org>
654 * doc/pic.ms, man/groff.man: Fix typos.
656 * doc/groff.texinfo: Fix typos.
657 (\LEmacro): Get proper mathematical spacing.
659 2005-02-16 Werner LEMBERG <wl@gnu.org>
661 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
662 * configure: Regenerated with autoconf 2.59b.
664 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
666 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
667 html_printer::start_font): Fix handling of preformatted text.
669 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
671 These patches modify the indentation implementation to use `<p
672 style=margin-left: n%>'. Many thanks to Peter and Larry for
673 suggesting this solution. Grohtml only uses tables for `.IP' and
674 related tags when the first operand has a short width.
676 Similarly, they modify all vertical space code. By default, grohtml
677 sets up a style sheet which uses no vertical space between `table',
678 `pre', and `p' tags. It forces spaces when it needs them using
679 `style="margin-top: 1em"'.
681 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
682 (html_table::emit_table_header, html_table::emit_new_row):
684 (html_table::set_space): New function.
685 (html_indent::html_indent): Don't set `is_used'.
686 (html_indent::begin): Rewritten.
687 (html_indent::end): Remove code in function.
689 * src/devices/grohtml/html-table.h: Updated.
690 (html_table): Make `out' public.
692 * src/devices/grohtml/html-text.cpp (html_text::html_text):
693 Initialize `start_space' with FALSE.
694 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
695 (html_text::issue_tag): Add argument to handle space style.
696 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
697 (html_text::flush_text): Don't set `start_space'.
698 (html_text::push_para): Don't set `p->really_issued'.
699 (html_text::do_emittext): Updated.
700 (html_text::do_para): Add paremeter to handle space.
702 (html_text::retrieve_para_space): New function.
704 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
705 (tag_definition): Remove `really_issued'.
706 (html_text): Updated.
708 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
709 `current_column' and `row_space'.
711 (html_printer::emit_raw, html_printer::write_header,
712 html_printer::do_indent, html_printer::do_check_center,
713 html_printer::do_tab_ts): Handle vertical space.
714 (html_printer:do_tab_te, html_printer::do_end_para): Call
716 (html_printer::do_col): Rewritten.
717 (html_printer::flush_globs): Remove debugging code.
718 (html_printer::is_line_start): New function.
719 (html_printer::start_font): Use `is_line_start'.
720 (html_printer::writeHeadMetaStyle): New function.
721 (html_printer::do_file_components, html_printer::~html_printer):
722 Call `writeHeadMetaStyle'.
724 * tmac/www.tmac (www-handle-percent): New macro.
725 (MPIMG): Handle percent values for width and height parameters.
728 * tmac/groff_www.man: Updated.
730 2005-02-14 Werner LEMBERG <wl@gnu.org>
732 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
733 $psname and $italic_angle.
734 Immediately restart file input loops if `split' returns an empty
737 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
738 Werner LEMBERG <wl@gnu.org>
740 Update afmtodit to better support Unicode (Michail).
741 Update afmtodit to use Perl 5 syntax (Werner).
743 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
745 Decorate variables with `my' where necessary.
746 Use `defined' where necessary to avoid warnings.
747 Don't use `do' for subroutine calls.
748 Other minor syntax updates.
749 Check for both `uXXXX[X[X]]' and `uniXXXX'.
750 Handle glyph variants properly.
751 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
754 * src/utils/afmtodit/afmtodit.man: Updated.
756 2005-02-13 Werner LEMBERG <wl@gnu.org>
758 Make groff.texinfo work with texinfo 4.8.
760 * doc/groff.texinfo (@Var): Use @r and @slanted.
761 (@defdummy, @Def*): Use @c to avoid empty lines.
762 (\angles): Replaced with...
763 (\Langlemacro, \Ranglemacro): New TeX macros.
764 (@Langlemacro, @Ranglemacro): New variables defined with @set.
765 (@angles): Use @Langlemacro and @Ranglemacro.
766 (\LE): Replaced with...
767 (\LEmacro): New TeX macro.
768 (@LEmacro): New variable defined with @set.
770 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
771 variables defined with @set.
772 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
773 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
778 * doc/texinfo.tex: Update to texinfo version 4.8.
780 * README.CVS: Updated.
782 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
784 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
787 2005-02-05 Werner LEMBERG <wl@gnu.org>
789 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
790 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
793 2005-02-01 Werner LEMBERG <wl@gnu.org>
795 * src/roff/groff/groff.man: Add information about paper size.
797 2005-01-25 Werner LEMBERG <wl@gnu.org>
799 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
802 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
804 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
806 (Re): Emit a warning if called without `.Rs'.
807 (doc-finish-reference): Use parameter for decreasing
808 `doc-reference-count'.
809 (doc-print-reference): Pass specific count parameters to
810 `doc-finish-reference'.
812 2005-01-21 Werner LEMBERG <wl@gnu.org>
814 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
815 Reset pointers to zero after deallocation. This fixes a crash
816 if a driver is called with multiple input files. Reported by
817 Ken Chilton <ken@chiltonfamily.org>.
819 * src/devices/grops/grops.man: Add more info on DSC.
821 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
823 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
826 2005-01-17 Werner LEMBERG <wl@gnu.org>
828 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
829 against division by zero.
831 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
833 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
835 2004-12-19 Werner LEMBERG <wl@gnu.org>
837 * install-sh: New version; taken from texinfo CVS.
839 2004-12-17 Werner LEMBERG <wl@gnu.org>
841 * tmac/devtag.tmac: Protect against loading twice.
842 Protect agains compatibility mode.
843 * tmac/www.tmac: Protect against loading twice.
844 Load `devtag.tmac' before switching off compatibility mode.
845 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
847 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
849 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
850 * configure: Updated.
852 2004-12-15 Thomas Klausner <wiz@netbsd.org>
854 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
856 2004-12-15 Werner LEMBERG <wl@gnu.org>
858 Make `test-groff' work again -- previously, wrong paths have been
859 used. Additionally, it can now be called from anywhere.
861 * test-groff.in: Don't test for groff binary. This is no longer
862 necessary since the proper paths are determined by `configure'.
863 (EXEEXT): Removed. No longer used.
864 (srcdir, builddir): Use values provided by the configure script.
865 (XENVIRONMENT): Updated.
869 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
871 Make .tag and .taga work for all devices (but only grohtml actually
874 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
875 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
876 html_printer::handle_assertion): Don't use hard-coded string
878 (html_printer::lookahead_for_table): Reset `tbl' properly if
880 (html_printer::devtag): New function, handling `devtag'.
881 (html_printer::special): Don't handle `html-tag'.
883 * src/include/printer.h, src/libs/libdriver/printer.cpp
884 (printer::devtag): New virtual function.
886 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
889 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
890 src/roff/troff/node.cpp: s/html-tag/devtag/.
892 * src/roff/troff/input.cpp (tag, taga): Always call
895 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
896 macros instead of HTML-TAG*.
898 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
900 * tmac/www.tmac: Load devtag.tmac.
901 Replace HTML-TAG* macros with DEVTAG* macros.
902 (HTML, HTML-NS): Changed definitions.
904 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
906 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
908 2004-12-10 Werner LEMBERG <wl@gnu.org>
910 Import Mike's `gdiffmk' package.
912 * contrib/gdiffmk/*: New files.
913 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
916 2004-12-08 Werner LEMBERG <wl@gnu.org>
918 Import Keith's `pdfmark' package. Integration is very preliminary.
920 * contrib/pdfmark/*: New files.
921 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
924 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
926 Fix a bug with title handling in HTML.
928 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
929 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
931 (html_printer::handle_tag_within_title): New function.
932 (html_printer::do_title): Use it.
934 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
935 (cov*tl-au-print): Emit `.eo.tl' tag.
937 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
939 * man/groff_char.man: Minor imrovements.
941 2004-12-04 Werner LEMBERG <wl@gnu.org>
943 * src/preproc/eqn/eqn.man: Revised.
945 2004-11-25 Werner LEMBERG <wl@gnu.org>
947 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
951 Remove X_NOT_STDC_ENV conditional.
952 (Version_string, program_name): New global variables.
953 (groff_flag): Removed.
955 (usage): Take a stream as argument.
958 (main): Add `long_options' array for `--help' and `--version'.
959 Make `-g' a dummy option.
960 Handle `-v' and unknown options.
961 Remove unused `position' variable.
963 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
964 (XLIBS): Add LIBGROFF.
966 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
969 * src/devices/xditview/Dvi.c (default_font_map): Split into three
970 parts to avoid compiler warning.
971 (resources): Don't initialize with `default_font_map'.
972 (ClassInitialize): Initialize first element of `resources'.
974 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
977 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
978 src/utils/pfbtops/pfbtops.man: Revised, updated.
980 * configure.ac: Generate src/utils/xtotroff/Makefile.
981 * configure: Regenerated.
983 2004-11-24 Werner LEMBERG <wl@gnu.org>
985 First fixes to get produce HTML.
987 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
990 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
991 (HR, LI): Use `HTML</p>', not `HTML'.
993 * doc/webpage.ms: Minor updates.
995 2004-11-23 Larry Kollar <kollar@alltel.net>
997 Add option -S grohtml to determine the file split level.
999 * src/devices/grohtml/post-html.cpp (split_level): New global
1001 (html_header::determine_header_level): Use split_level.
1002 (main): Handle `-S' command line option.
1005 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
1007 * src/devices/grohtml/grohtml.man: Document it.
1010 * NEWS: Document it.
1012 2004-11-23 Y T <doarhop@hotmail.com>
1014 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
1015 the volume and number refer entries.
1017 2004-11-22 Werner LEMBERG <wl@gnu.org>
1019 * src/devices/grohtml/html-table.cpp
1020 (html_table::emit_table_header): Don't emit `cols' attribute which
1021 doesn't exist in HTML 4.0 and is thus invalid.
1023 * NEWS: More minor fixes and updates.
1025 2004-11-18 Werner LEMBERG <wl@gnu.org>
1027 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
1028 (HTML</p>): Minor clean-up.
1030 * tmac/groff_www.man: Updated.
1032 * src/devices/grohtml/grohtml.man: Revised and updated.
1036 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
1038 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
1039 Fix space insertion.
1040 (html_printer::do_links): Fix rules generation around automatic
1043 * tmac/www.tmac (LK): Use HTML-TAG-NS.
1045 No longer emit empty line for non-HTML devices.
1047 2004-11-17 Werner LEMBERG <wl@gnu.org>
1049 * doc/Makefile.in (prepare_examples, webpage.html): Handle
1052 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
1053 prepare_examples, webpage.html): Handle `groff.css'.
1055 2004-11-15 Werner LEMBERG <wl@gnu.org>
1057 * NEWS, README, doc/webpage.ms: Updated.
1059 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
1061 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
1063 * src/include/printer.h (printer): Remove virtual function
1065 Update all source files.
1067 * src/devices/grohtml/post-html.cpp (html_printer): New member
1068 function `round_width'.
1070 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1072 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
1073 column key letter suffix.
1075 2004-10-14 Werner LEMBERG <wl@gnu.org>
1077 * Makefile.in (check): Depend on `site.exp' and `docheck'.
1078 (docheck): Run dejagnu's `runtest' if it exists.
1079 (site.exp): Create dejagnu configuration file.
1081 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
1083 2004-10-13 Werner LEMBERG <wl@gnu.org>
1085 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
1086 src/devices/grohtml/post-html.cpp (make_val,
1087 html_printer::handle_state_assertion): Fix compiler warnings.
1089 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
1090 (diversion::diversion): Fix order of initializers.
1092 * src/roff/troff/div.h: Don't include `mtsm.h'.
1094 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
1095 (environment::environment): Fix order of initializers.
1096 (environment::make_tag, environment::construct_format_state): Fix
1099 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
1100 (input_iterator::input_iterator, macro::macro): Fix order of
1103 * src/roff/troff/mtsm.cpp: Include only necessary header files.
1104 (state_set::add, state_set::val): Fix compiler warnings.
1106 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
1107 (bool_value_state, int_value_state, units_value_state,
1108 string_value_state): Remove comma after last element which causes
1109 an error with g++ 3.3.3.
1111 * src/roff/troff/node.cpp: Include `stringclass.h'.
1112 (hline_node::hline_node, vline_node::vline_node,
1113 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
1115 (zero_width_node::zero_width_node): Fix order of initializers.
1117 * src/roff/troff/node.h: Don't include `mtsm.h'.
1118 (hmotion_node): Fix compiler warnings.
1120 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
1122 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
1124 * doc/groff.css: New file.
1126 * doc/webpage.ms: Use `groff.css'.
1129 * tmac/an-old.tmac (need_eo_h): New number register.
1130 (TH): Emit `.eo.tl' tag after title.
1131 (SH): Set `need_eo_h'.
1132 (an-trap): Handle `need_eo_h'.
1133 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
1135 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
1136 (TL): Always start diversion.
1138 (@AI): Always call `par@reset'.
1139 (@AB): Update code for -Thtml.
1140 (cov*tl-au-print): Handle -Thtml.
1141 (par@reset): Handle `need_eo_tl', `need_eo_h'.
1143 (@IT-html): Removed.
1144 (@SH): Set `need_eo_h' for -Thtml.
1145 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
1147 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
1148 Set `need_eo_h' for -Thtml.
1149 (@EQ, @EN): Don't handle -Thtml specially.
1150 (par@load-init): Don't handle -Thtml specially.
1152 * tmac/www.tmac (www:paraspace): New macro.
1153 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
1154 (HTML</p>, HTML-TAG-NEXT): New macros.
1155 (HnE): Emit tag `.eo.h' instead of break.
1156 (HR): s/HTML-NS/HTML/.
1157 (www-end-nowhere): End diversion only if `www-html' not set.
1159 (ULS, ULE): s|HTML|HTML</p>|.
1160 (LI): Call `www:paraspace'.
1163 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
1165 * src/roff/troff/request.h (macro): Make `p' public.
1166 New variable `is_a_diversion'.
1167 New member function `is_diversion'.
1170 * src/devices/grohtml/html.h (simple_output): New member function
1173 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
1174 computation of `total'.
1175 (tabs::check_init): New function.
1176 (html_table::emit_table_header): Emit style data.
1177 (html_table::insert_column): Improved.
1179 * src/devices/grohtml/html-table.h: Updated.
1181 * src/devices/grohtml/html-text.cpp (html_text::html_text):
1182 Initialize `start_space' with TRUE.
1183 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
1185 (html_text::flush_text): Set `start_space' flag.
1186 (html_text::uses_indent, html_text::remove_para_space,
1187 html_text::get_alignment): New functions.
1188 (html_text::push_para): Updated.
1189 (html_text::do_para): Check for empty argument.
1190 Don't set `space_emitted'.
1191 (html_text::do_space, html_text::emit_space): Updated.
1193 * src/devices/grohtml/html-text.h (tag_definition): New variable
1195 (html_text): New member function `uses_indent', `remove_para_space',
1198 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
1200 (simple_output:nl): Always emit `\n'.
1202 * src/devices/grohtml/post-html.cpp: Include `string.h'.
1203 (BASE_POINT_SIZE): Removed.
1204 (base_point_size, head_info): New global variables.
1205 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
1207 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
1209 (page::add_and_encode): Pass additional parameter for tag flag.
1210 (assert_pos): New structure.
1211 (assert_state): New class.
1212 (html_printer): Remove `indentation', `prev_indent'.
1213 Add variables `troff_indent', `device_indent', `temp_indent'.
1214 Add variables `seen_indent', `next_indent', `seen_pageoffset',
1215 `next_pageoffset', `seen_linelenght', `next_linelength',
1216 `seen_center', `next_center', `seen_space', `seen_break', `as'.
1217 Add member functions `do_check_center', `do_space', `do_head',
1218 `get_troff_indent', `restore_troff_indent', `handle_assertion',
1219 `handle_state_assertion', `do_end_para', `set_char_and_width'.
1220 Change argument to `do_fill' to `char *'.
1222 (html_printer::emit_raw): Call `shutdown_table'.
1224 (html_printer::do_center): Simplified.
1225 (html_printer::do_title): Improved.
1226 (html_printer::write_header): Emit one more newline.
1228 (html_printer::do_heading, html_printer::do_indent,
1229 html_printer::do_eol, html_printer::do_tab_ts,
1230 html_printer::do_tab, html_printer::do_tab0,
1231 html_printer::calc_po_in, html_printer::next_horiz_pos,
1232 html_printer::remove_courier_tabs,
1233 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1235 (html_printer::do_linelength, html_printer::do_pageoffset,
1236 html_printer::do_indentation, html_printer::do_tempindent,
1237 html_printer::do_tab_te): Simplified.
1238 (html_printer::do_pointsize): Check whether point size is really
1239 associated a `.tl' tag.
1240 (html_printer::do_break): Rewritten.
1241 (html_printer::troff_tag): Improved.
1242 (html_printer::flush_globs): Updated.
1243 (html_printer::lookahead_for_tables): Handle `is_br'.
1245 (html_printer::set_char): Check `sbuf_style.f'.
1246 (html_printer::write_navigation): Use string comparison.
1247 (html_printer::~html_printer): Emit `head_info'.
1248 (html_printer::special): Rewritten.
1249 (get_str, make_val): New functions.
1250 (main): New option `s' to set the base point size.
1252 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1254 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
1256 * src/roff/troff/node.cpp: New extern `debug_state'.
1257 Include `stringclass.h' and `mtsm.h'.
1258 Implement new classes and class members from `node.h'.
1259 (real_output_file): Make `fp' public.
1260 (troff_output_file): New variables `cur_div_level' and `tag_list'.
1261 Update constructors.
1262 (troff_output_file::really_print_line): Check whether we should push
1263 the current troff state and use the state at the start of the
1264 invocation of this diversion.
1265 (troff_output_file::add_to_tag_list): New member function.
1266 (node::add_char): Handle `glyph_comp_np'.
1268 * src/roff/troff/node.h: Include `mtsm.h'.
1269 (node): New variables `state', `push_state', `div_nest_level',
1270 `is_special'. Update constructors, all descendants.
1271 Pass additional argument to `add_char' member function.
1272 New virtual member functions `is_tag', `debug_node',
1273 `debug_node_list'. Update all descendants.
1274 (tag_node): New class for handling tags.
1275 (output_file): Add variable `state'.
1277 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
1279 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1280 providing a minimal troff state machine to emit meta tags for the
1281 post-grohtml device driver.
1283 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1286 2004-10-09 Werner LEMBERG <wl@gnu.org>
1288 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1290 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
1292 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1294 * src/roff/troff/div.h: Include `mtsm.h'.
1295 (diversion): New variables `any_chars_added', `needs_push',
1296 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1297 `saved_suppress_next_eol', `modified_tag'.
1298 New virtual member function `is_diversion'. Update all descendants.
1300 * src/roff/troff/div.cpp (diversion::diversion,
1301 macro_diversion::macro_diversion): Updated.
1302 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1303 `suppress_next_eol'.
1304 (top_level_diversion::space): Handle `curenv->seen_space'.
1305 (page_offset): Update tag handling.
1306 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1308 * src/roff/troff/env.h (environment): Make `tabs' public.
1309 Remove `ignore_next_eol', `emitted_node'.
1310 Update `output_line', `output'.
1311 New variables `seen_space', `seen_eol', `suppress_next_eol',
1313 New member functions `construct_state', `make_tag',
1314 `construct_format_state, `construct_new_line_state,
1316 Remove `add_html_tag', `make_html_tag'.
1318 * src/roff/troff/env.cpp: New externs `suppress_push',
1319 `get_diversion_state', `global_diverted_space'.
1320 (pending_output_line): New variable `was_centered'.
1321 Update constructor and all callers.
1322 (pending_output_line::output): Call `curenv->construct_format_state'.
1323 (environment::environment, environment::copy): Updated.
1324 (environment::output): Handle `was_centered'.
1325 (environment::add_char): Handle construct and diversion state.
1326 (environment::add_node): Handle construct state.
1327 (environment::newline): Handle `was_centered'.
1328 (environment::output_line): Updated.
1329 (environment::possibly_break_line): Updated.
1330 Update tag handling.
1331 (environment::add_html_tag): Replaced with...
1332 (environment::make_tag): New function.
1333 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1334 (environment::dump_troff_state): New debugging function.
1335 (environment::construct_state, environment::construct_format_state,
1336 environment::construct_new_line_state): New functions.
1337 (environment::do_break): Updated.
1338 Handle `global_diverted_space'.
1339 (environment::handle_tag): Update tag handling.
1340 (point_size, fill, do_break_request): Don't call `add_html_tag'.
1341 (no_fill): Don't call `add_html_tag'.
1342 Set `suppress_next_eol'.
1343 (center, right_justify, line_length, indent, temporary_indent,
1345 Update tag handling.
1347 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1348 (input_iterator): New variables `is_diversion', `diversion_state'.
1349 Update constructors.
1350 (input_stack): New member functions `get_div_level',
1351 `get_diversion_state', `check_end_diversion'.
1352 New variables `div_level', `diversion_state'. Initialize them.
1353 (suppress_push, global_diverted_space): New global variables.
1354 (input_stack::finish_get, input_stack::finish_peek,
1355 input_stack::remove_boundary, input_stack::end_file,
1356 input_stack::clear, input_stack::pop_macro): Call
1357 `check_end_diversion'.
1358 (input_stack::push): Handle `div_level' and `diversion_state'.
1359 (get_diversion_state): New function.
1360 (diverted_space_node::reread): Handle `global_diverted_space'.
1361 (macro::macro): Update constructors.
1362 (macro::is_diversion): New function.
1363 (macro::operator=): Set `is_a_diversion'.
1364 (string_iterator): New member function `is_diversion'.
1365 (string_iterator::string_iterator): Update constructors.
1366 (string_iterator::fill): Set `div_nest_level'.
1367 (macro_iterator): New member function `is_diversion'.
1368 (do_if_request): Handle `suppress_push'.
1369 (tag, taga): New functions.
1370 (init_input_requests): Add `tag' and `taga' requests.
1372 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
1374 * src/include/font.h (font): New member function
1375 `get_image_generator'.
1376 New variables `unscaled_charwidths' and `image_generator'.
1378 * src/libs/libgroff/font.cpp (font::get_width): Always return the
1379 character's unscaled width if `font::unscaled_charwidths' is set.
1380 (font::get_image_generator): New function.
1381 (font::load_desc): Check the `unscaled_charwidths' and
1382 `image_generator' keywords.
1384 * src/libs/libgroff/fontfile.cpp: Initialize
1385 `font::unscaled_charwidths' and `font::image_generator'.
1387 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1389 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1391 * man/groff_font.man: Document `unscaled_charwidths' and
1394 * src/preproc/html/pre-html.cpp: Include `device.h'.
1395 (image_gen): New global variable.
1396 (imageList::createPage): Use `image_gen'.
1397 (main): Use `image_generator' keyword.
1399 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1401 * tmac/html.tmac: Handle \[sqrtex].
1403 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1405 * src/include/printer.h (printer): New virtual method `round_width'.
1407 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1408 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1409 src/devices/grotty/tty.cpp (printer::round_width): New function
1412 * src/devices/grohtml/post-html.cpp (printer::round_width): New
1414 (html_printer::set_numbered_char): Use it.
1416 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
1418 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1420 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1422 * configure: Regenerated.
1424 * Makefile.in (GHOSTSCRIPT): New variable.
1425 (MDEFINES): Add GHOSTSCRIPT.
1427 2004-10-03 Werner LEMBERG <wl@gnu.org>
1429 * INSTALL.gen: Updated (taken from texinfo CVS).
1431 2004-09-28 Werner LEMBERG <wl@gnu.org>
1435 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1437 * tmac/groff_www.man: Revised and updated.
1439 2004-09-26 Werner LEMBERG <wl@gnu.org>
1441 Fix \$@ and \$* to handle any number of arguments.
1443 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1446 * src/roff/troff/input.cpp (input_iterator::internal_level):
1448 (input_stack): New member functions `increase_level' and
1450 (input_stack::get_level): Don't use `internal_level'.
1451 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1452 (end_quote_iterator): Completely removed.
1453 (interpolate_arg): Build string for \$@ and \$* which is then
1454 pushed onto the input stack.
1456 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
1458 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1461 2004-09-23 Werner LEMBERG <wl@gnu.org>
1463 * tmac/an-old.tmac (ne): Using default scaling operator.
1465 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1467 This change implements the following features:
1470 New numeric register: Defines number of lines following LP, PP,
1471 QP, IP or XP, which must be kept together, before any automatic
1472 page break. If insufficient space remains on the current page, a
1473 page break is forced before the new paragraph begins.
1476 New numeric register: Sets number of lines of following paragraph
1477 which must be kept with a heading, defined by NH or SH, before any
1478 automatic page break. If insufficient space remains on the
1479 current page, a page break is forced before the heading.
1482 (Thanks to Joerg van den Hoff, for this idea).
1484 New numeric register: Sets the first level of heading (set with
1485 NH), which will keep the same point size as body text; e.g. if
1486 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1487 point size specified by \n[PS], but .NH 2 and .NH 1 will have
1488 progressively larger point sizes, determined by \n[PSINCR] (see
1492 New numeric register: Sets the point size increment for each level
1493 of heading, (set with NH), below the threshold level set by
1494 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1495 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1496 and all other levels will remain at 10pt, (because \n[PS] = 10).
1499 Existing macro now accepts a numeric argument, to make heading
1500 size match that of NH with same argument value, when the
1501 GROWPS/PSINCR feature is enabled.
1504 New string, set by NH macro, replaces the existing (undocumented)
1505 use of SN, to represent the assigned section number.
1508 New string, set by NH macro, represents the assigned section
1509 number, but omits the terminal period (periods at intermediate
1510 levels are retained).
1513 String set by NH macro, originally undocumented, now implemented
1514 as an alias for SN-DOT (which reproduces original behaviour).
1516 * tmac/s.tmac (PORPHANS): New register.
1517 (par*start): Use it.
1518 (HORPHANS, GROWPS, PSINCR): New registers.
1519 (SH-NO-TAG, @SH): Use them.
1522 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1524 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1525 of `Ds' and `De' macros.
1527 2004-09-10 Werner LEMBERG <wl@gnu.org>
1529 In tbl, handle \a as an interpreted leader character if in
1532 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1533 LEADER_CHAR): New macros.
1534 (compatible_flag): New declaration.
1536 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1537 LEADER_3, and LEADER_4 to `state'.
1538 (table_input::get): Handle `\a'.
1540 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1541 (LEADER_REG): New macro.
1542 (table::init_output): Define LEADER_REG string register if in
1545 * src/preproc/tbl/tbl.man: Document it.
1547 2004-08-18 Werner LEMBERG <wl@gnu.org>
1549 * tmac/doc.tmac (An): Fix error message.
1551 2004-08-06 Werner LEMBERG <wl@gnu.org>
1553 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1554 file can't be opened. UNIX tbl has the same behaviour.
1556 2004-08-05 Y T <doarhop@hotmail.com>
1558 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1559 (DBRead): If in compatibility mode, take into account the text
1560 when computing figure boundaries.
1562 2004-08-05 Werner LEMBERG <wl@gnu.org>
1564 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1565 from Tadziu Hoffmann.
1567 2004-08-03 Werner LEMBERG <wl@gnu.org>
1569 * doc/meref.me: Document `_M' register.
1571 2004-08-03 Martin Husemann <martin@duskware.de>
1573 Make hpftodit work correctly on big-endian systems.
1575 * src/utils/hpftodit/hpftodit.cpp (File): New method
1576 `get_uint32(char *)'.
1577 (entry): New member `orig_value'.
1578 (read_tags): Use new method.
1579 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1582 2004-08-01 Werner LEMBERG <wl@gnu.org>
1584 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1585 are already in X11's `macros.t' file.
1587 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1589 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1591 (read_and_output_pcltypeface): Handle strings with length <= 4.
1593 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1595 * tmac/s.tmac (pg@top): Don't save `PO' register.
1596 (pg*end-col, pg*end-page): Directly use `PO' register.
1598 2004-07-27 Werner LEMBERG <wl@gnu.org>
1600 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1602 * src/preproc/refer/refer.cpp (output_references): Check for
1604 * src/preproc/refer/refer.man: Improve documentation of
1605 `bibliography' command.
1607 2004-07-26 Werner LEMBERG <wl@gnu.org>
1609 Add requests `fcolor' and `gcolor'.
1611 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1613 (init_env_requests): Add `fcolor' and `gcolor'.
1615 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1617 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1618 Document new requests.
1620 2004-07-24 Werner LEMBERG <wl@gnu.org>
1622 Add support for fractional point sizes in ms macros. A value for
1623 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1624 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1626 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1627 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1629 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1631 2004-07-19 Werner LEMBERG <wl@gnu.org>
1633 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1635 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1636 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1638 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1640 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1641 * tmac/groff_mdoc.man: Updated.
1643 2004-07-05 Werner LEMBERG <wl@gnu.org>
1645 * doc/groff.texinfo: Further improve documentation of `hcode'.
1647 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1649 Improve appearance of arrows in pic.
1651 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1653 Use two line segments for drawing non-filled arrow head.
1654 (line_object::print, spline_object::print): Shorten line length to
1655 avoid arrow sticking.
1656 (arc_object::print): Take arrow direction into account.
1658 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1660 * tmac/groff_www.man: Update documentation of .MPIMG.
1662 2004-07-03 Werner LEMBERG <wl@gnu.org>
1664 * tmac/an-old.tmac (RI): Always start with font `R'.
1665 (RI, IR): Properly end with font `R'.
1667 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1669 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1670 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1671 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1672 Don't pass more than six arguments to .R, .I, .B, etc., for
1673 compatibility with traditional troff macros.
1675 2004-07-02 Werner LEMBERG <wl@gnu.org>
1677 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1678 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1680 (PUSH_COMP_MODE): New internal character constant.
1683 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1684 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1685 (token::next, macro::append): Handle PUSH_COMP_MODE.
1686 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1687 POP_GROFFCOMP after each of the decoded arguments to make them
1688 independent from the compatibility mode status.
1689 (comp_mode): Add `COMP_ENABLE'.
1690 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1691 (define_string, append_string, define_macro, define_indirect_macro,
1692 append_macro, append_indirect_macro): Handle `compatible_flag'.
1693 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1695 * man/groff_diff.man, doc/groff.texinfo: Updated.
1697 2004-07-01 Werner LEMBERG <wl@gnu.org>
1699 * doc/groff.texinfo: Improve documentation of `hcode'.
1700 Use @documentencoding and convert document to latin-1; to do that
1701 make latin characters active and assign proper macros (within a
1702 @tex...@end tex environment).
1703 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1704 * doc/Makefile.sub (groff): Ditto.
1706 2004-06-29 Werner LEMBERG <wl@gnu.org>
1708 Implement two new conditional operators `F <name>' and `S <name>'
1709 which check whether <name> is a valid font or style, respectively.
1711 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1712 (text_file::text_file): Updated.
1713 (text_file::error): Don't emit message if `silent' is set.
1714 (font::load_font): Add optional third argument (which is directly
1716 (font::load): Add optional second argument to check the header of
1717 a font only, without emitting warning or error messages.
1718 * src/include/font.h (font): Updated.
1720 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1722 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1723 fourth argument to check a font without mounting.
1724 (check_font, check_style): New functions.
1725 * src/roff/troff/node.h: Updated.
1727 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1730 2004-06-27 Werner LEMBERG <wl@gnu.org>
1732 Implement new string-valued register `.sty' to return the current
1735 * env.cpp (environment::get_style_name_string): New function.
1736 (init_env_requests): Add `.sty' register.
1737 * env.h (environment): Updated.
1738 * node.cpp (font_info): Make `get_style_name' a friend.
1739 (get_style_name): New function.
1742 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1745 2004-06-15 Werner LEMBERG <wl@gnu.org>
1747 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1750 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1752 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1753 and \n[mo] to avoid dependency on current date.
1755 2004-06-08 Werner LEMBERG <wl@gnu.org>
1757 * Makefile.sub (install_data): New target.
1759 2004-06-04 Werner LEMBERG <wl@gnu.org>
1761 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1763 2004-06-03 Werner LEMBERG <wl@gnu.org>
1765 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1767 (install_data): Add $(srcdir).
1769 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1772 2004-06-02 Werner LEMBERG <wl@gnu.org>
1774 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1775 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1776 Add test for Xmu library.
1777 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1778 GROFF_APPRESDIR_DEFAULT): New macros.
1780 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1781 and GROFF_APPRESDIR_DEFAULT.
1783 * configure: Regenerated.
1785 * Makefile.in (appresdir): New variable.
1786 (MDEFINES): Add appresdir.
1788 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1790 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1792 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1793 `$(srcdir)/eign', not `eign'.
1795 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1797 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1798 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1799 Protect (g)xditview with `\%' to avoid hyphenation.
1800 Other minor formatting.
1802 2004-06-01 Werner LEMBERG <wl@gnu.org>
1804 Integrate gxditview into groff's standard directory hierarchy.
1806 * src/xditview/*: Moved to ...
1807 * src/devices/xditview/*: Here.
1808 Moved DviChar.h and XFontName.h to src/include.
1809 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1810 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1811 Moved xtotroff.c to new directory src/utils/xtotroff.
1812 Provide proper Makefile.sub files (reusing the stuff from
1814 DESC renamed to DESC.in.
1815 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1816 Converted everything from K&R to ANSI C.
1817 Decorated with const where appropriate.
1818 Cast string constants with `String' and `char *' where appropriate.
1819 Made it compile with C++ (used as a C compiler).
1820 Removed other minor compiler warnings.
1822 * src/devices/xditview/device.c: Include config.h, string.h, and
1824 Don't declare `exit', `strtok', `strchr', and `getenv'.
1827 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1830 * src/devices/xditview/xditview.c: Include config.h.
1831 Include stdio.h earlier.
1832 Protect declaration of `popen' and `pclose' with
1833 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1834 Replace `caddr_t' with `XtPointer'.
1835 (MakePromptFunc): New typedef.
1836 (DoPrint): Use RETSIGTYPE.
1837 (promptfunction): Change type to MakePromptFunc.
1838 (MakePrompt): Use MakePromptFunc for third argument.
1841 * src/devices/xditview/ad2c: Add casts to `String'.
1843 * src/include/XFontName.h (XFontNameString): Don't use array
1845 Add prototypes for `XParseFontName', `XFormatFontName',
1846 `XCompareFontName', and `XCopyFontName'.
1848 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1851 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1852 Don't declare `XParseFontName' and `XFormatFontName'.
1854 (main): Remove `optind' and `optarg'.
1856 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1857 (to select programs which need X).
1858 Make XDEVIDIRS depend on `FORCE'.
1859 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1861 (MDEFINES): Updated.
1862 (LIBDIRS): Use XLIBDIRS.
1863 (CPROGDIRS): Use XPROGDIRS.
1864 (DEVDIRS): Remove font directories for gxditview.
1865 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1866 (EXTRADIRS): Remove src/xditview.
1868 * Makefile.sub (DISCLEANFILES): Updated.
1870 * Makefile.comm (LIBXUTIL): New variable.
1871 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1872 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1874 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1876 * aclocal.m4 (GROFF_X11): New function.
1878 * configure.ac: Call GROFF_X11.
1879 Don't create src/xditview/Imakefile.
1880 Don't emit notice how to build gxditview.
1882 * configure: Regenerated.
1884 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1886 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1888 * Makefile.in (CPPFLAGS): Define.
1889 (MDEFINES): Add CPPFLAGS.
1891 2004-05-27 Werner LEMBERG <wl@gnu.org>
1893 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1895 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1897 Fix problems with `friend name injections'.
1899 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1900 make_script_box), src/roff/troff/div.h (end_diversions),
1901 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1904 2004-05-25 Bernd Warken <bwarken@mayn.de>
1906 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1908 2004-05-25 Werner LEMBERG <wl@gnu.org>
1910 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1911 src/libs/libgroff/color.cpp: Include lib.h.
1913 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1915 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1916 through Forte 6u1, and for how to get GNU make on Solaris.
1918 2004-05-24 Werner LEMBERG <wl@gnu.org>
1920 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1923 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1925 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1928 2004-05-14 Werner LEMBERG <wl@gnu.org>
1930 * REVISION: Set to 2.
1932 * aclocal.m4 (GROFF_STDINT_H): Removed.
1933 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1935 * configure.ac: Updated.
1936 * configure, src/include/config.hin: Regenerated.
1938 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1939 inttypes.h conditionally.
1941 2004-05-13 Werner LEMBERG <wl@gnu.org>
1943 Version 1.19.1 released
1944 =======================
1946 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1948 * src/preproc/refer/label.y (same_author_last_name,
1949 same_author_name): Handle empty sort keys.
1951 2004-05-10 Werner LEMBERG <wl@gnu.org>
1953 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1956 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1957 doc-str-Lb-librt): Reset font.
1958 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1959 Provide `doc-str-Lb' to reset font.
1960 * tmac/groff_mdoc.man: Updated.
1962 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1964 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1965 snprintf versions which don't conform to ANSI C 99 (this is,
1966 counting the string's trailing null byte in the return value).
1968 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1970 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1971 that all implementations of sprintf handle null pointers correctly.
1973 2004-05-04 Werner LEMBERG <wl@gnu.org>
1975 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1976 Document `.U' register.
1978 * src/roff/troff/env.cpp (environment::mark_last_line)
1979 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1981 2004-05-04 Larry Kollar <kollar@alltel.net>
1983 New read-only register `.U'; it returns 1 in safer mode and 0
1986 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1989 2004-05-03 Werner LEMBERG <wl@gnu.org>
1991 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1993 2004-04-17 Werner LEMBERG <wl@gnu.org>
1995 * src/include/font.h (font): Use `int' for ch_index.
1996 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1997 font::compact): Updated.
1999 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
2002 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
2003 (hyphen_word): Fix compiler warnings.
2004 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
2007 (get_delim_number, get_line_arg): Change second argument type to
2009 (macro_header::copy, token::next, do_define_string,
2010 do_define_character, substring_request, asciify_macro,
2011 unformat_macro, read_size, non_interpreted_node::interpret,
2012 while_request, main: Fix compiler warnings.
2013 (read_color_draw_node): Initialize `col'.
2015 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
2016 `start_col' and `end_col' of type `int'.
2017 (vertical_rule): Make `col' of type `int'.
2019 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
2022 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
2024 (format_serial): Use them to remove dependency on ASCII.
2026 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
2028 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2031 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
2033 (glyph): Change type of `hpos' to `int'.
2035 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
2036 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
2038 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
2040 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
2042 2004-04-16 Werner LEMBERG <wl@gnu.org>
2044 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
2045 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
2046 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
2047 `double' instead of `float' everywhere.
2048 * src/preproc/grn/main.cpp: Use `double' instead of `float'
2050 (main): Add return value.
2051 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
2053 Update all user functions.
2055 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
2056 src/preproc/eqn/box.h, src/preproc/pic/object.h,
2057 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
2058 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
2059 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
2060 src/roff/troff/input.cpp, src/roff/troff/request.h,
2061 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
2064 * src/utils/indxbib/signal.c: Include stdlib.h.
2066 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2068 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
2069 before the first page.
2071 2004-04-14 Thomas Klausner <wiz@netbsd.org>
2073 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
2074 (doc-operating-system-*): Updated.
2075 * tmac/doc-syms (doc-str-St-*): Various small fixes.
2076 (doc-str-Lb-*): Add more library names.
2078 2004-04-10 Art Haas <ahaas@airmail.net>
2080 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
2083 2004-04-09 Art Haas <ahaas@airmail.net>
2085 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
2087 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
2089 * arch/misc/shdeps.sh: Generate better comment for sed script.
2091 2004-04-08 Art Haas <ahaas@airmail.net>
2093 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2094 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
2095 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
2096 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
2097 (polyfill), src/preproc/grn/main.cpp (polyfill),
2098 src/preproc/refer/command.cpp (command_table),
2099 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
2100 gcc 3.5 doesn't like).
2102 2004-04-08 Werner LEMBERG <wl@gnu.org>
2104 Removing many compiler warnings. groff should now compile with
2105 a C++ compiler used for C files also. [Simple variable renamings
2106 to avoid shadowing aren't logged in detail.]
2108 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
2109 (draw_dvi_printer::draw) ['c']: Enclose in block.
2111 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
2112 (page::add_line): Fix typos.
2113 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
2115 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
2116 Some local variable renamings.
2117 * src/devices/grolbp/lbp.h: Some local variable renamings.
2119 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
2122 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
2123 Remove redundant local variable declaration.
2124 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
2125 Don't use `caddr_t' but `void *'.
2126 Enclose functions with `extern "C"' for C++.
2128 * src/libs/libdriver/input.cpp (remember_filename,
2129 remember_source_filename): Use cast for string constant.
2131 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
2132 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
2133 src/libs/libgroff/geometry.cpp: Some local variable renamings.
2134 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
2136 Enclose functions with `extern "C"' for C++.
2137 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
2138 (needs_quoting): Return `int'.
2139 (quote_arg): Add proper casts to malloc and realloc.
2140 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
2141 various MS Windows environments.
2142 (spawnvp_wrapper): Add proper cast to malloc.
2144 * src/preproc/eqn/box.h: Remove redundant declarations of
2145 `make_script_box', `make_mark_box' and `make_lineup_box'.
2146 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
2147 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
2150 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
2151 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
2152 (dx, dy): Renamed functions to...
2153 (deltax, deltay): This.
2154 * src/preproc/grn/main.cpp: Some local variable renamings.
2155 (deffont): Add `const'.
2156 (initpic, conv): Use cast for string constant.
2158 * src/preproc/html/pre-html.cpp: Some local variable renamings.
2159 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
2160 (char_buffer::run_output_filter): Second argument is unused.
2161 * src/preproc/html/pushback.cpp: Some local variable renamings.
2163 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
2164 * src/preproc/pic/object.cpp: Some local variable renamings.
2166 * src/preproc/refer/label.y (lookup_label): Remove redundant
2167 declaration of local variable.
2169 * src/preproc/soelim.cpp: Remove redundant declaration of
2170 `interpret_lf_args'.
2172 * src/preproc/tbl/main.cpp: Some local variable renamings.
2174 * src/roff/groff/groff.cpp (main): Use cast for string constant.
2175 * src/roff/groff/pipeline.c: Enclose declarations of `error',
2176 `c_fatal', and `i_to_a' with `extern "C"' for C++.
2177 Don't use C++-style comments.
2179 * src/roff/troff/env.h: Remove redundant declaration of `title'.
2180 * src/roff/troff/node.h, src/roff/troff/env.cpp,
2181 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
2183 * src/roff/troff/div.h: Remove redundant declaration of
2185 * src/roff/troff/troff.h: Remove redundant declaration of
2187 * src/roff/troff/input.cpp: Remove redundant declaration of
2188 `handle_first_page_transition' and `process_input_stack'.
2190 * src/utils/hpftodit.cpp: Some local variable renamings.
2192 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
2194 Don't define RETSIGTYPE.
2195 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
2197 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
2198 (error): Use `const' in argument.
2199 (main): Remove redundant declaration of `optind'.
2200 Move declaration of `Version_string' to top-level.
2202 * PROBLEMS: Document difficulties compiling signal.c if a C++
2203 compiler is used for C.
2205 2004-04-07 Werner LEMBERG <wl@gnu.org>
2207 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
2209 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
2211 Make scripts like nroff.sh and neqn.sh portable across various
2212 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
2213 non-POSIX path separators. The idea is to extend those scripts to
2214 decide at run-time (of the script) which path separator to use.
2216 * arch/misc/Makefile.sub: New file.
2217 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
2218 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
2219 a proper definition of the variable `GROFF_RUNTIME'.
2221 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
2222 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
2223 (PROGDEPDIRS): New variable.
2225 (PROGDIRS): Add PROGDEPDIRS.
2227 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2228 Don't substitute @SEP@ and @BINDIR@.
2229 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2230 (PATH): Use GROFF_RUNTIME.
2232 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2233 Don't substitute @SEP@ and @BINDIR@.
2234 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2235 (PATH): Use GROFF_RUNTIME.
2237 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2239 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2240 Cygwin which doesn't handle stderr correctly.
2242 2004-03-08 Werner LEMBERG <wl@gnu.org>
2244 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2245 against empty argument. Problem reported by <cgd@broadcom.com>.
2247 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2249 * Makefile.in (SEP): Replaced with...
2250 (RT_SEP, SH_SEP): Separators for the target platform's native path
2251 separator and the build environment, respectively.
2252 (fontpath, tmacpath): Use RT_SEP.
2253 (MDEFINES): Updated.
2255 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2256 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2257 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2258 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2260 2004-03-05 Werner LEMBERG <wl@gnu.org>
2262 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
2263 reduce alignment problems with newer printers which use built-in
2264 TrueType fonts (instead of the older Intellifonts). The ideal
2265 solution is to provide a second set of groff metric files, but this
2266 is extremely time-consuming to produce, given that HP's metric
2267 files are very rudimentary.
2269 2004-03-01 Werner LEMBERG <wl@gnu.org>
2271 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2272 s/operand/argument/ in error message.
2274 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2276 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2279 2004-03-01 Antti Kantee <pooka@netbsd.org>
2281 * tmac/s.tmac (XE): Fix error message.
2283 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
2285 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2288 * src/roff/groff/pipeline.c: Declare strcasecmp.
2289 (run_pipeline) [_WIN32]: Use function name variants which don't
2291 Fix stream handling.
2293 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
2295 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2296 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2297 for platforms which use the native Win32 runtime libraries.
2298 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2300 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2301 QUOTE_ARG_REALLOC_ERROR): Fix string.
2303 * src/preproc/html/pre-html.cpp: Remove declaration of
2305 Don't use __MINGW32__.
2306 s/DEBUG_FILE/DEBUG_FILE_DIR/.
2307 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2308 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2309 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2310 calls to `set_redirection' and `WAIT'.
2311 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2312 Fix calls to `set_redirection' and `save_and_redirect'.
2313 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2314 to `set_redirection' and `save_and_redirect'.
2315 (usage): Fix message.
2316 (makeTempFiles, main): Use `DEBUG_FILE'.
2318 2004-02-21 Werner LEMBERG <wl@gnu.org>
2320 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2322 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
2324 * src/libs/libgroff/quotearg.c: New file, providing proper argument
2325 quoting for MSVC's spawn* and exec* functions.
2326 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2327 spawnvp with proper quoting for MSVC.
2329 * src/libs/libgroff/assert.cpp (program_name),
2330 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2331 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2333 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2335 * src/include/error.h (program_name): Declare as `extern "C"'.
2336 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2338 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
2340 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2342 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2344 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
2346 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2348 (sbasename) [__MSDOS__ || ...]: New function.
2349 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2351 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2352 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2354 Use STDOUT_FILENO instead of hardcoded file handle.
2355 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2357 2004-02-19 Werner LEMBERG <wl@gnu.org>
2359 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2360 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2362 2004-02-18 Werner LEMBERG <wl@gnu.org>
2364 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2365 new font and mapping files.
2367 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
2368 Keith Marshall <keith.d.marshall@ntlworld.com>
2370 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2371 an input pipe. This is needed for the MSVC compiler to make troff's
2374 * src/roff/troff/div.cpp: Include nonposix.h.
2375 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2377 2004-02-17 Werner LEMBERG <wl@gnu.org>
2379 * font/devlj4/generate/special.awk: New script.
2380 * font/devlj4/generate/Makefile (S): Use special.awk.
2381 * font/devlj4/*: Regenerated, including the following new files:
2382 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2383 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2384 * NEWS: Document new lj4 fonts and revised hpftodit.
2386 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
2388 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2390 2004-01-25 Werner LEMBERG <wl@gnu.org>
2392 * src/libs/libgroff/progname.cpp: Replaced with...
2393 * src/libs/libgroff/progname.c: New file.
2394 * src/libs/libgroff/Makefile.sub: Updated accordingly.
2396 2004-01-17 Werner LEMBERG <wl@gnu.org>
2398 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2400 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
2402 * font/devlj4/generate/wingdings.map,
2403 font/devlj4/generate/symbol.map: Include unnamed glyphs.
2404 Use groff glyph names where possible.
2405 * src/devices/grolj4/lj4_font.man: Minor updates.
2407 2004-01-13 Werner LEMBERG <wl@gnu.org>
2409 * tmac/www.tmac (DC): Handle TTY devices.
2411 * doc/webpage.ms: Document viewCVS from ffii.org.
2412 * NEWS, README: Updated.
2414 * src/roff/groff/groff.man: Mention lj4_font man page.
2416 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2418 (FONTS): Add SYMBOL and WINGDINGS.
2419 (SYMBOL, WINGDINGS): New targets.
2421 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
2423 * src/devices/grolj4/lj4_font.man: New man page.
2424 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2425 * src/devices/grolj4.man: Mention lj4_font man page.
2427 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2428 * src/utils/hpftodit/hpftodit.man: Document it.
2430 Remove details about fonts (which are now in lj4_font.man).
2432 * font/devlj4/generate/symbol.map,
2433 font/devlj4/generate/wingdings.map: New files.
2435 2004-01-12 Werner LEMBERG <wl@gnu.org>
2437 * README: Mention ffii's viewcvs access.
2439 2004-01-09 Werner LEMBERG <wl@gnu.org>
2441 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2443 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
2445 Revert most of the change from 2004-01-03 to better control used
2448 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2449 (text_symbol_sets, special_symbol_sets): New arrays.
2450 (symbol_set_table): New global variable.
2451 (read_symbol_sets): Use search order given in the text_symbol_sets
2452 and special_symbol_sets arrays. If command line flag -a is not
2453 given, search both arrays.
2454 (output_charset): Require x_height_tag only for command line flag -i.
2456 2004-01-06 Werner LEMBERG <wl@gnu.org>
2458 Implement string-valued registers \n[.m] and \n[.M] to return the
2459 name of the current drawing and background color, respectively.
2461 * src/roff/troff/symbol.h: Moved to...
2462 * src/include/symbol.h: Here.
2463 Small fixes to make it work outside of the `troff' directory.
2464 * src/roff/troff/symbol.cpp: Moved to...
2465 * src/libs/libgroff/symbol.cpp: Here.
2466 Small fixes to make it work outside of the `troff' directory.
2468 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2469 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2472 * src/include/color.h: Include symbol.h.
2473 (color): Add new field `nm'.
2474 * src/libs/libgroff/color.cpp (color::color): Updated.
2476 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2477 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2478 src/roff/troff/reg.cpp: Don't include symbol.h.
2480 * src/roff/troff/env.cpp: Don't include symbol.h.
2481 (environment::get_glyph_color_string,
2482 environment_get_fill_color_string): New member functions.
2483 (init_env_requests): Handle `.m' and `.M' registers.
2484 * src/roff/troff/input.cpp: Don't include symbol.h.
2485 (default_symbol): Moved to symbol.cpp/symbol.h.
2486 (do_glyph_color, do_fill_color, define_color): Pass symbol name
2487 to color constructor.
2488 * src/roff/troff/env.h: Updated.
2490 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2491 Document new registers.
2493 2004-01-05 Werner LEMBERG <wl@gnu.org>
2495 * src/roff/troff/node.cpp (space_node::get_breakpoints,
2496 space_node::nbreaks): Protect against zero `next' field.
2498 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
2500 In hpftodit, use the symbol sets offered in the TFM.
2502 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2503 (symbol_set, text_symbol_sets, special_symbol_sets,
2504 symbol_set_table): Removed.
2505 (get_printcode): Removed.
2506 (read_symbol_sets): Initialize `symbol_set' field with
2508 Simplify code to just use the `kind' value.
2509 (output_charset): Improve output formatting.
2510 (dump_symbols): Simplified.
2512 2004-01-02 Werner LEMBERG <wl@gnu.org>
2514 * font/devlj4/generate/text.map: Add more MSL numbers.
2516 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
2518 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2519 (text_symbol_sets): Add more symbol sets.
2520 (debug_flag): New static variable (moved from `main').
2521 (get_printcode, show_symset): New functions.
2522 (main): Remove `debug_flag'.
2523 (output_charset): Use `show_symset'.
2524 (dump_symbols): Use `show_symset'.
2525 Print symsets for all glyphs.
2526 (read_map): Actually call `unicode_to_ucode_make' but this time
2529 2004-01-01 Werner LEMBERG <wl@gnu.org>
2531 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2532 Fix placement of comments.
2534 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2536 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2537 option `-d' is given.
2538 (output_charset): Improve warning messages to give more information.
2539 (dump_symbols): Make information more precise.
2541 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2542 appear as-is and shouldn't be decomposed.
2544 2003-12-31 Werner LEMBERG <wl@gnu.org>
2546 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2547 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2548 (FONTS): Add TrueType font families Arial and Times New Roman.
2549 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2550 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2553 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2555 * test-groff.in (SEP): Quote value.
2556 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2557 `tem' to `char*' to avoid deallocation of a pointer to a constant
2558 object which some compilers don't like.
2560 2003-12-31 Werner LEMBERG <wl@gnu.org>
2562 * font/devlj4/generate (text.map, special.map): Rewritten to work
2563 with the new hpftodit version.
2565 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2567 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2568 set and 8bit character code for all glyphs also.
2570 2003-12-30 Werner LEMBERG <wl@gnu.org>
2572 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2574 2003-12-29 Werner LEMBERG <wl@gnu.org>
2576 More fixes for MSVC compiler.
2578 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2581 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2582 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2583 (getpid) [_MSC_VER]: Remove.
2584 Include direct.h and process.h conditionally.
2586 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2587 parentheses for a_delete.
2589 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2591 * test-groff: Replaced with...
2592 * test-groff.in: This new template to handle path separator
2595 * configure.ac: Check for direct.h and process.h.
2596 Generate test-groff script.
2597 * configure, src/include/config.hin: Regenerated.
2599 2003-12-28 Werner LEMBERG <wl@gnu.org>
2601 Add integral extension glyph.
2602 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2604 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2606 * font/devps/generate/textmap: Provide entry for `integralex' to
2607 override (old) PUA value of the AGL.
2608 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2609 * font/devps/*: Regenerated.
2611 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2612 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2614 2003-12-27 Werner LEMBERG <wl@gnu.org>
2616 Add forgotten `coproduct' symbol (already available for DVI).
2618 * font/devhtml/R.proto, font/devps/generate/textmap,
2619 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2620 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2621 U+2210 (\[coproduct]).
2623 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2625 hpftodit has been extended to handle TrueType metric files and
2626 more glyphs. See hpftodit.man for more details.
2628 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2629 ctype.h, and unicode.h.
2630 s/msl/charcode/ everywhere since we now handle Unicode values also.
2631 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2632 Use it where appropriate.
2633 (MULTIPLIER): Replaced with...
2634 (multiplier): New global static variable.
2636 (tag_type): Add more TFM tags.
2637 (tag_name): New array.
2638 (ENUM_TYPE, FLOAT_TYPE): Removed.
2639 (BYTE_TYPE): New value assigned.
2640 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2641 (text_symbol_sets, special_symbol_sets): Extended to cover more
2643 (check_type): Add return value.
2644 (check_units): Add parameters to get ppi and upem values.
2645 Handle TrueType TFM data.
2646 (output_font_name): New function.
2647 (output_charset): Add parameter to handle TFM type.
2648 Handle TrueType TFMs also.
2649 (em_fract): New macro.
2650 (dump_tags): Be much more verbose and handle more tags.
2651 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2652 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2654 (read_map): Add parameter to handle TFM type.
2655 Handle both MSL and Unicode mappings.
2656 (main): Add two new command line options `-a' and `-q'.
2657 Updated to make use of new functions.
2660 * src/utils/hpftodit/hpuni.cpp: New file.
2662 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2665 2003-12-25 Werner LEMBERG <wl@gnu.org>
2667 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2669 2003-12-24 Werner LEMBERG <wl@gnu.org>
2671 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2672 by Michail Vidiassov <master@iaas.msu.ru>.
2674 2003-12-20 Werner LEMBERG <wl@gnu.org>
2676 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2678 Add missing latin-2 glyphs.
2679 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2681 * tmac/troffrc: Load `composite.tmac' earlier.
2683 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2684 u00{53,73}_0327, and u0049_0307.
2685 * tmac/X.tmac: Add u00{47,67}_0306.
2686 * tmac/tty-char.tmac: Use composite glyph names for readability.
2690 * src/include/unicode.h: Remove `extern' keywords.
2692 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2694 * tmac/latin5.tmac: New file.
2696 2003-12-19 Werner LEMBERG <wl@gnu.org>
2698 Add some glyphs needed for Turkish.
2700 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2703 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2704 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2705 u00{53,73}_0327, and u0049_0307.
2707 2003-12-18 Werner LEMBERG <wl@gnu.org>
2709 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2711 Remove trailing zeros.
2713 2003-12-17 Werner LEMBERG <wl@gnu.org>
2715 Make \? transparent to end-of-sentence recognition.
2717 * src/roff/troff/input.cc (non_interpreted_node): Add
2718 `ends_sentence' member function.
2720 2003-12-16 Werner LEMBERG <wl@gnu.org>
2722 * doc/groff.texinfo: Document `dt' request correctly.
2723 Other minor typographical improvements.
2725 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2727 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2729 2003-12-10 Richard Stallman <rms@gnu.org>
2731 * LICENSE: Better wording.
2733 2003-12-09 Werner LEMBERG <wl@gnu.org>
2735 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2736 * configure, NEWS: Updated.
2738 2003-12-08 Werner LEMBERG <wl@gnu.org>
2740 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2742 2003-12-07 Bernd Warken <bwarken@mayn.de>
2746 2003-12-07 Werner LEMBERG <wl@gnu.org>
2748 * INSTALL: Improved.
2750 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2752 Use path separator character of target platform for compiled-in
2755 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2756 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2757 * configure: Regenerated.
2758 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2760 2003-12-05 Werner LEMBERG <wl@gnu.org>
2762 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2763 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2765 2003-12-04 Bernd Warken <bwarken@mayn.de>
2767 * LICENSE: New file.
2769 2003-12-03 Werner LEMBERG <wl@gnu.org>
2771 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2772 ligatures present in AFM files since groff currently only
2773 understands some standard ligatures and nothing else.
2775 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2777 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2780 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2783 Don't use Unix wait flags.
2785 2003-12-02 Werner LEMBERG <wl@gnu.org>
2787 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2788 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2789 src/roff/troff/uniuni.cpp: Moved to...
2790 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2791 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2792 src/libs/libgroff/uniuni.cpp: Here.
2794 * src/include/Makefile.sub.old (HDRS),
2795 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2796 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2798 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2800 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2804 2003-12-01 Werner LEMBERG <wl@gnu.org>
2806 * groff.texinfo: Document special behaviour of `.vs 0'.
2807 Improve documentation of `cflags' request.
2810 2003-11-29 Werner LEMBERG <wl@gnu.org>
2812 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2813 * font/devlj4/CORONET: Regenerated.
2815 2003-11-24 Werner LEMBERG <wl@gnu.org>
2817 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2818 if processing hyphenation patterns in traditional mode.
2819 Improve error messages.
2821 2003-11-20 Werner LEMBERG <wl@gnu.org>
2823 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2824 troff_output_file::put_char): Fix type of local variable `c'.
2826 2003-11-19 Werner LEMBERG <wl@gnu.org>
2828 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2830 (i_to_a): Removed. libgroff already provides this function.
2831 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2833 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2835 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2838 2003-11-17 Werner LEMBERG <wl@gnu.org>
2840 * COPYING: Use correct version.
2842 2003-11-11 Werner LEMBERG <wl@gnu.org>
2844 LynxOS 4.0.0 doesn't declare vfprintf.
2846 * configure.ac: Check for vfprintf.
2847 * configure: Regenerated.
2848 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2849 * src/include/config.hin: Regenerated.
2851 2003-11-10 Werner LEMBERG <wl@gnu.org>
2853 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2855 * configure.ac: Check for vsnprintf.
2856 * configure: Regenerated.
2857 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2859 * src/include/config.hin: Regenerated.
2861 2003-11-09 Werner LEMBERG <wl@gnu.org>
2863 * aclocal.m4: Updated syntax to autoconf 2.59.
2864 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2865 Don't check for gsos2.
2866 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2867 working abs_top_srcdir and abs_top_builddir.
2869 * configure.ac: Updated syntax to autoconf 2.59.
2870 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2871 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2872 * configure: Regenerated.
2874 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2875 s/@groff_top_builddir@/@abs_top_builddir@/.
2877 * src/roff/groff/pipeline.c (xstrsignal):
2878 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2880 2003-11-07 Werner LEMBERG <wl@gnu.org>
2882 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2883 make start angle smaller than end angle to circumvent a bug in tpic
2884 handling of some versions of dvipdfm (and dvipdfmx).
2886 2003-10-30 Werner LEMBERG <wl@gnu.org>
2888 * src/devices/grops/grops.man: Improve section on creating EPS.
2890 2003-10-29 Werner LEMBERG <wl@gnu.org>
2892 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2895 2003-10-28 Werner LEMBERG <wl@gnu.org>
2897 * doc/groff.texinfo: Fix documentation of `.if'.
2899 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2901 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2902 the form `uniXXXX' also.
2904 2003-10-27 Werner LEMBERG <wl@gnu.org>
2906 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2907 contrib/pic2graph/pic2graph.sh: Implement secure management of
2909 Pass `-P-pletter' to groff to avoid data outside of the converted
2910 area -- some versions of `convert' (for example 5.3.8) don't check
2911 the bounding box of the image but always use a fixed image size
2912 (letter paper format).
2913 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2914 contrib/pic2graph/pic2graph.man: Updated.
2916 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2918 2003-10-26 Werner LEMBERG <wl@gnu.org>
2920 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2921 troff_output::simple_ellipse, troff_output::simple_arc,
2922 troff_output::simple_line, troff_output::simple_spline,
2923 troff_output::simple_polygon): Insert a space before arguments.
2924 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2925 latter doesn't produce a node, so the following `.sp -1' would do
2927 Don't emit `.sp -1' after \M. This also doesn't produce a token
2928 (and we don't have to care about compatibility mode).
2929 (troff_output::set_color, troff_output::reset_color): Don't emit
2930 `.sp -1' after \M and \m.
2932 * src/roff/troff/input.cpp (old_have_input): New global variable.
2933 (input_stack::get): Handle `old_have_input'.
2934 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2935 `trapping_blank_line' depending on `old_have_input', not
2938 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2940 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2941 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2942 default directory names for temporary files.
2943 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2945 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2946 [__MSDOS__] (run_pipeline): Honour environment variables.
2947 Don't use `tmpnam' but `tempnam' to work around messy
2950 * README.MinGW: New file.
2952 2003-10-16 Werner LEMBERG <wl@gnu.org>
2954 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2955 `(*t)->next' without testing validity of `*t'.
2956 (usage): Make it more readable.
2958 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2960 Make html device run under both MS-DOS and Win32.
2962 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2963 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2964 spawn or fork+exec has to be used, and whether parent must sleep
2965 until the child process terminates. Used in
2966 `char_buffer::run_output_filter'.
2967 (copyofstdoutfd): Removed.
2968 (char_buffer): Replace `write_file_html' and `write_file_troff'
2969 member functions with `emit_troff_output' and `run_output_filter'.
2970 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2972 (replaceFd): Replaced with...
2973 (set_redirection): New auxiliary function.
2974 (waitForChild): Replaced with...
2975 (save_and_redirect): New auxiliary function for.
2977 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2980 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2982 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2983 (GROFF_LIBC): New function.
2984 * configure.ac: Call GROFF_LIBC.
2986 * configure: Regenerated.
2988 * src/include/lib.h: Handle __MINGW32__.
2989 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2990 Add macro for `pipe'.
2993 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2996 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2999 2003-10-13 Werner LEMBERG <wl@gnu.org>
3001 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
3004 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
3007 2003-10-12 Werner LEMBERG <wl@gnu.org>
3009 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
3010 src/roff/troff/input.cc (usage): Updated.
3012 * NEWS, doc/groff.texinfo: Updated.
3014 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
3016 * src/libs/libgroff/searchpath.cpp
3017 (search_path::open_file_cautious): New function which also handles
3018 `-' as stdin and stdout depending on the access mode.
3019 * src/include/searchpath.h (search_path): Updated.
3021 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
3022 * src/devices/grops/ps.h: Include `searchpath.h'.
3023 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
3024 Open resource file with `include_search_path.open_file_cautious'.
3025 * src/devices/grops/grops.man: Document new `-I' switch.
3027 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
3028 (main), src/devices/grolj4/lj4.cpp (main),
3029 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
3031 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
3033 (include_search_path): New global variable.
3034 (include_path_append): Removed.
3035 (main): Use `include_search_path.command_line_dir' to handle `-I'.
3036 (do_file): Simplify, using new
3037 `include_search_path.open_file_cautious'.
3039 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
3041 (main): Pass arguments to `-I' to both troff and devices.
3042 Improve handling of `-V'.
3043 * src/roff/groff/groff.man: Document changes to -I and -V.
3045 * src/roff/troff/input.cpp (include_search_path): New global
3047 (next_file, source, ps_bbox_request, transparent_file,
3048 process_input_file): Use new
3049 `include_search_path.open_file_cautious'.
3050 (main) Handle `-I' switch.
3051 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
3052 Use new `include_search_path.open_file_cautious'.
3053 * src/roff/troff/node.h: New extern symbol `include_search_path'.
3054 * src/roff/troff/troff.man: Document new `-I' switch.
3056 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
3058 Support multiple calls of .Lb in LIBRARY section.
3060 * tmac/doc-common (doc-in-library-section): New register.
3061 (doc-section-library): New string.
3062 (Sh): Set `doc-in-library-section'.
3064 * tmac/doc-syms (Lb): Insert breaks before and after arguments
3065 if in LIBRARY section.
3066 * tmac/doc.tmac (doc-save-global-vars): Updated.
3067 * NEWS, tmac/groff_mdoc.man: Updated.
3069 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
3071 * tmac/doc-common (doc-default-operating-system): New variable.
3074 2003-09-08 Werner LEMBERG <wl@gnu.org>
3076 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
3078 2003-08-31 Werner LEMBERG <wl@gnu.org>
3080 * contrib/mom/Makefile.sub: Fix last change to make it really work.
3081 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
3082 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
3083 $(DEVFILES) are not empty.
3084 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
3086 2003-08-26 Chuck Silvers <chuq@chuq.com>
3088 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
3089 with parallel runs of `make'.
3091 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
3093 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
3094 insert SORT_SEP. With certain combinations of sort specifications,
3095 refer sorted entries in the wrong order. In particular, entries
3096 with a missing field should be be sorted before all entries that
3097 have that field, before refer looks to the next field.
3099 2003-08-23 Werner LEMBERG <wl@gnu.org>
3101 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
3102 g++ linker is used. Reported by Mark J. Reed
3103 <mark.reed@turner.com>.
3105 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3107 Add key character `x' to tbl which makes tbl call a user-defined
3108 macro on a table cell.
3110 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
3111 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
3112 `set_modifier' after printing the compatibility request.
3113 (set_modifier): Print call to `m->macro' if not empty.
3114 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
3116 (process_format): Implement cases `x' and `X'.
3117 * src/preproc/tbl/tbl.man, NEWS: Updated.
3119 2003-08-15 Werner LEMBERG <wl@gnu.org>
3121 * doc/groff.texinfo: Minor fixes.
3123 2003-08-09 Werner LEMBERG <wl@gnu.org>
3125 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
3127 2003-08-07 Werner LEMBERG <wl@gnu.org>
3129 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
3130 argument list to nothing if there is no file to match. Use `ls' as
3131 a protection, similar to autoconf.
3133 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
3134 empty argument lists.
3136 * doc/groff.texinfo: Improve documentation how vertical spacing
3137 and line breaks interact.
3140 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
3142 2003-08-03 Werner LEMBERG <wl@gnu.org>
3144 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
3145 EPS (using eps2eps or similar programs to compute the bounding box).
3147 2003-07-24 Werner LEMBERG <wl@gnu.org>
3149 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
3150 * doc/texinfo.tex: Updated from texinfo 4.6.
3151 * README.CVS: From now on we need texinfo 4.6.
3153 2003-07-23 Werner LEMBERG <wl@gnu.org>
3155 Add requests `dei1' and `ami1' for completeness.
3157 * src/roff/troff/input.cc (calling_mode): Remove
3158 CALLING_DISABLE_COMP.
3159 (comp_mode): New enumeration.
3160 (do_define_string, define_string, define_nocomp_string,
3161 append_string, append_nocomp_string): Updated.
3162 (do_define_macro): Add third parameter.
3163 (define_macro, define_nocomp_macro, define_indirect_macro,
3164 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
3165 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
3168 (init_input_requests): Add `dei1' and `ami1'.
3170 * tmac/trace.tmac: Handle de1 and am1.
3171 (de): Improve tracing message.
3172 (am): Add missing `do'.
3175 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3176 Document new requests.
3178 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3180 Add option -G to .MPIMG to insert a gap between text and the image.
3182 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
3183 www-finish-left-ll): Updated.
3184 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
3185 (MPIMG): Make option -L and -R optional.
3186 Implement option -G.
3188 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
3190 * src/devices/grohtml/post-html.cpp
3191 (html_printer::do_file_components): Don't use `stdout' as lvalue
3192 since it can be a macro.
3194 2003-07-22 Werner LEMBERG <wl@gnu.org>
3196 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
3197 the corresponding test in aclocal.m4.
3199 2003-07-21 Werner LEMBERG <wl@gnu.org>
3201 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
3202 names but RGB values directly. Otherwise pnmtopng depends on
3203 an external file `rgb.txt' which maps colour names to values.
3205 2003-07-20 Werner LEMBERG <wl@gnu.org>
3207 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
3208 * configure, src/include/config.hin: Regenerated.
3210 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
3212 2003-07-19 Werner LEMBERG <wl@gnu.org>
3214 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
3216 2003-07-18 Werner LEMBERG <wl@gnu.org>
3218 * *.man: Switch to non-compatibility mode temporarily if GNU
3219 syntax extensions are used in the particular man page.
3221 * PROBLEMS: Add solutions for SGR problems.
3223 2003-07-17 Werner LEMBERG <wl@gnu.org>
3225 Don't ignore grotty's command line options if \X'tty: sgr ...' is
3226 used to change the drawing scheme.
3228 * src/devives/grotty/tty.cpp (bold_flag_option,
3229 underline_flag_option, italic_flag_option, reverse_flag_option,
3230 bold_underline_mode_option): New global variables.
3231 (update_options): New function.
3232 (tty_printer::special): Call update_options.
3233 (main): Don't set xxx_flag but xxx_flag_option, then call
3236 2003-07-14 Werner LEMBERG <wl@gnu.org>
3238 Make grotty emit proper Unicode box drawing characters for -Tutf8.
3240 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3242 (hline_char, vline_char): New global variables.
3243 (tty_printer::tty_printer): Initialize them.
3244 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3245 horizontal and vertical lines.
3246 (crossings): New global array.
3247 (tty_printer::end_page): Use it to determine the proper crossing
3248 character for -Tutf8.
3250 2003-07-12 Werner LEMBERG <wl@gnu.org>
3252 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3253 (HTMLDOCFILES): Revert to `pic.html'.
3254 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3256 2003-07-11 Werner LEMBERG <wl@gnu.org>
3258 * doc/pic.ms: Improve documentation of absolute coordinates.
3259 Document absolute positioning of pictures.
3261 * NEWS: Add new pic capability.
3263 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
3265 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3268 2003-07-07 Werner LEMBERG <wl@gnu.org>
3270 Implement support for dashed and dotted ellipses in pic. Based on
3271 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3273 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3274 common_output::dashed_ellipse, common_output::dotted_ellipse): New
3275 functions. Ellipse arcs are approximated with circle arcs.
3276 * src/preproc/pic/common.h (common_output): Updated.
3277 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3279 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3281 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3283 2003-07-06 Werner LEMBERG <wl@gnu.org>
3285 Make grotty work on platforms which have unsigned char as the
3286 default for char. Based on a patch by Thomas Klausner
3289 * src/devices/grotty/tty.cpp (schar): New typedef.
3290 Updated calls to declare_ptable and implement_ptable.
3291 (glyph): Use schar for back_color_idx and fore_color_idx.
3292 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3293 (tty_printer::tty_color, tty_printer::tty_printer,
3294 tty_printer::color_to_idx, tty_printer::put_color): Updated.
3296 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
3298 * src/roff/nroff/nroff.sh: Add option -d for completeness.
3299 * src/roff/nroff/nroff.man: Updated.
3301 2003-07-05 Werner LEMBERG <wl@gnu.org>
3303 * NEWS, tmac/groff_www.man: Updated.
3304 * doc/Makefile.sub: Updated.
3306 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
3308 Implement support for multiple HTML output files.
3310 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3311 -j command line option.
3313 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3315 (file): New fields `new_output_file', `require_links',
3317 (file::file): Updated.
3318 (files::set_file_name, files::set_links_required,
3319 files::are_links_required, files::is_new_output_file,
3320 files::file_name, files::next_file_name): New functions.
3321 (header_desc): New fields `no_of_level_one_headings',
3323 (header_desc::header_desc): Updated.
3324 (header_desc::write_headings): Handle multiple files.
3325 (html_printer::write_header): Save file name in which header occurs.
3326 (html_printer::determine_header_level): Possibly split files on
3328 (html_printer::do_links, html_printer::troff_tag): Updated.
3329 (html_printer::insert_split_file, html_printer::do_job_name,
3330 html_printer::emit_link, html_printer::write_navigation,
3331 html_printer::do_file_components): New functions.
3332 (html_printer::~html_printer): Handle multiple files.
3333 (main): Handle command line option `-j'.
3335 * src/devices/grohtml/grohtml.man: Updated.
3337 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3340 * tmac/www.tmac (JOBNAME): New macro.
3341 * tmac/s.tmac (SH-NO-TAG): New macro.
3342 (@SH): Call SH-NO-TAG.
3345 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
3347 * tmac/groff_mdoc.man: Improve documentation of punctuation
3350 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
3352 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3354 2003-07-03 Werner LEMBERG <wl@gnu.org>
3356 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3358 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
3360 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3361 after `/*' and `*/'.
3363 (Fn, Fo): Reduce indentation in synopsis.
3365 * tmac/doc-common (doc-check-depth): New macro.
3366 (doc-end-macro, Sh, Ss): Use it.
3367 (Cd): Fix behaviour in synopsis.
3368 (In): Make it parsed and callable.
3369 If not in the synopsis, represent the C header file enclosed in
3371 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3372 Use minus, not hyphen.
3374 * tmc/groff_mdoc.man: Updated.
3376 2003-07-01 Werner LEMBERG <wl@gnu.org>
3378 Integrated grap2graph, contributed by Eric S. Raymond.
3380 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3382 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3383 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3385 2003-07-01 Colin Watson <cjwatson@debian.org>
3387 * src/xditview/*.c: Add prototypes, fix return types, add includes.
3388 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3390 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
3392 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3394 2003-06-31 Werner LEMBERG <wl@gnu.org>
3396 * doc/Makefile.sub (CLEANADD): Remove all files created by
3397 running `make groff.{pdf,dvi}'.
3399 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3402 2003-06-30 Werner LEMBERG <wl@gnu.org>
3404 * Makefile.in (SHELL): Define as @SHELL@.
3405 (mkinstalldirs): Use $(SHELL).
3406 (MDEFINES): Add $(SHELL).
3407 * Makefile.comm (SHELL): Removed.
3409 2003-06-29 Werner LEMBERG <wl@gnu.org>
3411 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3412 The X11 documentation files use them.
3413 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3415 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
3417 * tmac/e.tmac (@C): Handle .ad also.
3419 2003-06-12 Werner LEMBERG <wl@gnu.org>
3421 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3423 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3424 Assign `n' even here. It is possible to construct a node
3425 immediately following an escape character:
3433 2003-06-10 Werner LEMBERG <wl@gnu.org>
3435 * README.WIN32: Removed.
3436 * MANIFEST: Updated.
3438 2003-06-07 Werner LEMBERG <wl@gnu.org>
3440 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3442 2003-06-05 Werner LEMBERG <wl@gnu.org>
3444 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3445 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3447 2003-06-03 Werner LEMBERG <wl@gnu.org>
3449 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3450 is done by the calling function.
3452 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
3454 * tmac/X.tmac: Fix definition of `em'.
3456 2003-05-22 Werner LEMBERG <wl@gnu.org>
3458 * src/roff/troff/input.cc (return_macro_request): Fix detection of
3461 2003-05-18 Werner LEMBERG <wl@gnu.org>
3463 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3464 to make items work which consist only of a tag.
3466 2003-05-17 Werner LEMBERG <wl@gnu.org>
3468 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3469 aren't stretched in a tag (this can fail with unformatted boxes).
3470 Instead, insert a break and go back one line.
3472 2003-05-16 Werner LEMBERG <wl@gnu.org>
3474 * src/roff/troff/input.cc (return_macro_request): If called with
3475 argument pop macro twice. We need this to trace `return'.
3477 * tmac/trace.tmac: Handle `return'.
3480 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3483 2003-05-15 Larry Kollar <kollar@alltel.net>
3485 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3486 registers `FPS', `FVS', and `FPD'.
3488 2003-05-15 Werner LEMBERG <wl@gnu.org>
3490 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3493 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
3495 * tmac/groff_mdoc.man: Slight improvements.
3497 2003-05-03 Werner LEMBERG <wl@gnu.org>
3499 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3500 `doc-header-space' after header line if register `cR' is set.
3502 2003-05-02 Werner LEMBERG <wl@gnu.org>
3506 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
3508 * tmac/doc-common (Nd): Use \[em].
3510 2003-05-01 Werner LEMBERG <wl@gnu.org>
3512 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3513 doc-footer-space): Initialize to 0.5i.
3514 (doc-setup-page-layout): Don't set doc-header-space and
3517 2003-04-30 Werner LEMBERG <wl@gnu.org>
3519 * REVISION: Set to 1.
3521 * doc/pic.ms: Document possible problems with `figname'.
3523 2003-04-29 Werner LEMBERG <wl@gnu.org>
3525 Version 1.19 released
3526 =====================
3528 * VERSION: Set to 1.19.
3529 * REVISION: Set to 0.
3530 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3532 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3533 Define charset as `US-ASCII' in html output.
3535 * tmac/www.tmac (ULE): Add missing scaling indicator.
3537 * win32-diffs: Removed.
3539 2003-04-28 Werner LEMBERG <wl@gnu.org>
3541 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3543 Document how to insert discardable whitespace with `.ss'.
3545 2003-04-27 Werner LEMBERG <wl@gnu.org>
3547 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3548 work with plain TeX also.
3550 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3552 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3554 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3557 2003-04-24 Werner LEMBERG <wl@gnu.org>
3559 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3560 vbox with positive height and zero depth if in TeX mode.
3562 * NEWS: Document glyph name changes for grodvi and grolj4.
3564 2003-04-23 Werner LEMBERG <wl@gnu.org>
3566 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3567 * doc/pic.ms: Fixed.
3569 2003-04-21 Werner LEMBERG <wl@gnu.org>
3571 HP-UX 10.20 has `snprintf' but it isn't declared.
3573 * configure.ac: Add declaration test for snprintf.
3574 * configure: Regenerated.
3575 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3576 * src/include/config.hin: Regenerated.
3578 2003-04-19 Werner LEMBERG <wl@gnu.org>
3580 Add keyword `figname' to pic, specifying the name of the picture
3581 box in TeX mode. Based on a patch from William J Poser
3582 <wjposer@unagi.cis.upenn.edu>.
3584 * src/preproc/pic/pic.y: New token `FIGNAME'.
3585 (macro_name): New rule of type <str>.
3586 (placeless_element): Handle `FIGNAME'.
3587 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3588 * src/preproc/pic/main.cpp (graphname): New global variable.
3589 (do_picture): Initialize `graphname'.
3590 * src/preproc/pic/pic.h: Updated.
3591 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3594 (tex_output::text): Beautify output.
3595 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3596 `shaded' and `outlined' unconditionally.
3597 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3600 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3601 greater is necessary.
3603 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3605 Add option -r to soelim to avoid emission of `.lf' lines.
3606 Add option -t to produces TeX comment lines instead of `.lf' lines.
3608 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3611 (main): Handle `-r' and `-t'.
3612 (set_location): Handle `raw_flag' and `tex_flag'.
3613 * src/preproc/soelim/soelim.man, NEWS: Updated.
3615 2003-04-17 Werner LEMBERG <wl@gnu.org>
3617 * tmac/hyphenex.sh: Replaced with...
3618 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3621 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3622 if --quiet is used for the configure script.
3623 * configure: Regenerated.
3625 2003-04-16 Werner LEMBERG <wl@gnu.org>
3627 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3628 Add `const' to second argument.
3629 (html_printer::add_table_end): Add `const' to argument.
3630 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3631 `const' to arguments.
3632 * src/devices/grohtml/html-text.h: Updated.
3634 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3635 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3638 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3639 cast for integer constant.
3641 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3642 (writeNbytes): Add `const' to first argument.
3643 (writeString): Add `const' to argument.
3644 (char_buffer::can_see): Add `const' to third argument.
3645 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3646 `const' to argument.
3647 * src/preproc/html/pushback.h: Updated.
3649 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3650 (include_path_append): Add `const' to argument.
3653 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3655 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3656 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3658 (unicode_decompose_init::unicode_decompose_init): Updated.
3659 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3661 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3662 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3665 * tmac/hyphenex.sh: Make script more portable by using a here
3668 2003-04-15 Werner LEMBERG <wl@gnu.org>
3670 Renamed all `*.cc' files to `*.cpp'.
3671 Updated all configuration files, makefiles, and documentation.
3673 2003-04-14 Werner LEMBERG <wl@gnu.org>
3675 * tmac/hyphenex.sh: Slight improvements.
3677 2003-04-13 Werner LEMBERG <wl@gnu.org>
3679 * font/devascii/R.proto, font/devcp1037/R.proto,
3680 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3681 character slots with unnamed glyphs.
3683 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3684 (an-first): New global variable.
3685 (an-header): Emit vertical space between multiple man pages.
3687 2003-04-11 Werner LEMBERG <wl@gnu.org>
3689 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3692 2003-04-10 Werner LEMBERG <wl@gnu.org>
3694 * PROBLEMS: Revised.
3696 2003-04-10 Bernd Warken <bwarken@mayn.de>
3698 * doc/webpage.ms: Improved.
3700 2003-04-09 Werner LEMBERG <wl@gnu.org>
3702 Add register \n[.height] which returns the value of \H.
3703 Add register \n[.slant] which returns the value of \S.
3705 * src/roff/troff/env.cc (init_env_requests): Implement.
3706 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3709 2003-04-08 Werner LEMBERG <wl@gnu.org>
3711 * tmac/html.tmac: Move some of the data into html-end.tmac.
3712 Remove most of the character translations for eqn since html fonts
3713 now cover those characters.
3715 * tmac/html-end.tmac: New file.
3716 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3717 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3718 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3720 2003-04-07 Werner LEMBERG <wl@gnu.org>
3722 * man/groff_out.man: Document negative values of `N' if -Thtml is
3725 2003-04-06 Werner LEMBERG <wl@gnu.org>
3727 * Makefile.comm (depend.temp): Check location of YTABC.
3729 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3731 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3733 (groff_bin_path): Rename to GROFF_BIN_PATH.
3734 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3735 * doc/Makefile.in (TROFFBIN): New variable for troff
3737 (GROFFBIN): New variable for groff binary path.
3738 (groff_bin_path): Rename to GROFF_BIN_PATH.
3739 (TROFF): Use TROFFBIN.
3740 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3741 * doc/Makefile.sub (GROFFBIN): New variable for groff
3743 (groff_bin_path): Rename to GROFF_BIN_PATH.
3744 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3746 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3747 with INSTALL_SCRIPT.
3748 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3749 * Makefile.dev (all): Depend on DEVSCRIPTS.
3750 (install_dev): Likewise.
3751 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3753 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3754 (DEVGENSCRIPTS): New variable to hold generated scripts.
3756 2003-04-05 Werner LEMBERG <wl@gnu.org>
3758 * src/libs/libdriver/input.cc (IntArray::operator[],
3759 IntArray::get_data): Remove meaningless `const' in return value.
3761 * README.CVS: New file.
3763 2003-04-04 Werner LEMBERG <wl@gnu.org>
3765 Check for stdint.h in C++, not in C.
3767 * aclocal.m4 (GROFF_STDINT_H): New function,
3768 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3770 * configure, src/include/config.hin: Regenerated.
3771 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3774 Fix handling of in grohtml. To do this, troff emits `N'
3775 with a negative value, representing the width of the unbreakable
3776 space (only for -Thtml). grohtml then converts this back to
3777 and uses the value of N as its width.
3779 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3780 unbreakable_space_node::tprint): Emit `N-<width>'.
3781 * src/include/printer.h (printer::set_numbered_char): Make it
3783 Make members `font_table' and `nfonts' protected instead of private.
3784 * src/devices/grohtml/post-html.cc
3785 (html_printer::set_numbered_char): New member function.
3788 * src/libs/libgroff/maxfilename.cc:
3789 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3791 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3794 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3796 * man/roff.man: Small fixes.
3798 2003-04-03 Werner LEMBERG <wl@gnu.org>
3800 Make groff independent from locale's numeric settings.
3802 * configure.ac: Check for `setlocale'.
3803 * configure, src/include/config.hin: Regenerated.
3805 * src/include/lib.h: Handle HAVE_SETLOCALE.
3807 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3808 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3809 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3812 * doc/groff.texinfo: Change dir category to `Typesetting'.
3813 (Man font macros): Mention that there is no space between arguments
3816 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3817 (*printer::change_color, *printer::change_fill_color): Add missing
3820 2003-04-02 Werner LEMBERG <wl@gnu.org>
3822 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3823 html_table::is_gap): Compute table widths after converting border
3824 positions to avoid rounding errors.
3826 2003-04-01 Werner LEMBERG <wl@gnu.org>
3828 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3829 `space_emitted' properly.
3831 2003-03-31 Werner LEMBERG <wl@gnu.org>
3833 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3834 (html_table::set_linelength): Don't add 1.
3835 (html_table::add_indent): Don't subtract 1.
3837 * tmac/html.tmac: Set default page offset to zero.
3839 2003-03-30 Werner LEMBERG <wl@gnu.org>
3841 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3843 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3844 unbreakable_space_node::tprint): New functions.
3845 (troff_output_file): Make space_char_hmotion_mode::tprint and
3846 unbreakable_space_node::tprint to friends.
3847 * src/roff/troff/node.h: Updated.
3849 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3850 in the HTML standard).
3852 2003-03-29 Werner LEMBERG <wl@gnu.org>
3854 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3855 Otherwise, the following code
3864 produces `x a' instead of `xa'. This is a temporary fix, disabling
3865 font changes in diversions for -Thtml.
3867 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3869 (an-do-tag-html): Merge with ...
3870 (an-do-tag): This macro.
3871 Change code slightly to circumvent grohtml bug.
3872 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3874 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3875 html_table::is_gap): Round `width' properly.
3877 * tmac/html.tmac: Provide some default layout parameters for
3880 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3883 2003-03-28 Werner LEMBERG <wl@gnu.org>
3885 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3887 2003-03-27 Werner LEMBERG <wl@gnu.org>
3889 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3892 2003-03-20 Werner LEMBERG <wl@gnu.org>
3894 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3896 * doc/groff.texinfo: Updated.
3898 2003-03-19 Werner LEMBERG <wl@gnu.org>
3900 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3901 TOKEN_END_TRAP>: Reset `have_input'.
3903 2003-03-18 Werner LEMBERG <wl@gnu.org>
3905 * src/roff/groff/groff.man: Mention groff_trace man page.
3907 2003-03-16 Werner LEMBERG <wl@gnu.org>
3909 * Makefile.in (LIBEXT): New variable to indicate the file extension
3910 of library files. Computed heuristically from $(OBJEXT).
3911 (MDEFINES): Add $(LIBEXT).
3912 * Makefile.lib, Makefile.comm: Use it.
3914 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3915 overlong lines into smaller chunks.
3916 (get_binary): New function.
3918 * src/utils/pfbtops/pfbtops.man: Updated.
3920 2003-03-15 Colin Watson <cjwatson@debian.org>
3922 * src/roff/groff/groff.man: Minor syntax fix.
3924 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3926 * src/devices/grops/ps.cc (ps_printer::media_set,
3927 ps_printer::~ps_printer): Handle zero paper width and length.
3929 2003-03-13 Werner LEMBERG <wl@gnu.org>
3931 Add options -p and -l to grodvi.
3933 * src/devices/grodvi/dvi.cc: Include paper.h.
3934 (landscape_flag, user_paper_length, user_paper_width): New global
3936 (dvi_printer::begin_page): Emit `papersize' special.
3937 Set color after initialization of `cur_h' and `cur_v'.
3938 (main): Add options `-l' and `-p'.
3939 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3940 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3942 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3944 2003-03-12 Werner LEMBERG <wl@gnu.org>
3946 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3947 * man/groff_tmac.man: This man page.
3948 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3951 * tmac/X.tmac: Don't load pspic.tmac.
3953 2003-03-11 Werner LEMBERG <wl@gnu.org>
3955 Make variable `pr' local to libdriver/input.cc. Based on a patch
3956 by Bernd Warken <bwarken@mayn.de>.
3958 * src/include/driver.h (pr): Removed.
3960 * src/libs/libdriver/input.cc (pr): New global variable.
3961 (do_file): Deallocate `pr'.
3962 * src/libs/libdriver/printer.cc (pr): Removed.
3964 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3965 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3966 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3967 (main): Don't delete `pr'.
3969 2003-03-10 Werner LEMBERG <wl@gnu.org>
3971 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3972 * tmac/papersize.tmac: New file.
3973 * tmac/troffrc: Include `papersize.tmac'.
3974 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3975 * tmac/an-old.tmac: Set LT to LL by default.
3977 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3978 doc/groff.texinfo: Updated.
3980 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3981 bug which caused all odd iso papers to have wrong dimensions.
3983 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3984 (main) <'p'>: Set `user_paper_width' also.
3985 (ps_printer::media_width, ps_printer::media_height): Use values
3986 given with option `-p'.
3988 2003-03-09 Werner LEMBERG <wl@gnu.org>
3990 * src/include/nonposix.h: Provide default for SET_BINARY.
3992 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3993 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3996 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3997 (main): Treat \r\n as \n.
3999 2003-03-08 Werner LEMBERG <wl@gnu.org>
4001 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
4002 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
4004 2003-03-07 Werner LEMBERG <wl@gnu.org>
4006 Added support to access more than 256 glyphs in Type 1 fonts.
4008 * src/devices/grops/ps.cc (subencoding): New structure.
4009 (style): Add `sub' field.
4011 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
4012 Add `set_subencoding', `get_subfont' and `encode_subfont' member
4015 (ps_printer::set_char): Use `set_subencoding'.
4016 (make_subencoding_name): New function.
4017 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
4018 (ps_printer::~ps_printer): Emit subencoding definitions.
4020 * src/devices/grops/psrm.cc (valid_input_table): New array to
4021 properly support EBCDIC.
4022 (white_space): Add `\f'.
4023 (ps_get_line): Change first argument to be of type `string &'.
4024 Updated all callers.
4025 This allows to get lines of arbitrary length.
4026 Use `valid_input_table'.
4027 Remove warning about non-conforming PS line length. This seems
4028 not to be of great importance -- for example, dvips don't emit
4030 (PS_LINE_MAX): Removed.
4031 (matches_comment): Change first argument to be of type `string &'.
4033 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
4035 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
4036 %AGL_to_unicode, %default_ligatures): New hash tables.
4037 Read all map entries.
4038 Add unencoded characters.
4039 Check for default ligatures if there are no `L' entries.
4040 Print all kern entries.
4041 Print all characters in charset.
4042 * src/utils/afmtodit/afmtodit.man: Updated.
4044 * font/devps/*: Regerated all fonts.
4046 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
4047 of characters, just use `.trin'. Otherwise the mapping depends
4048 on the font encoding.
4049 * tmac/ps.tmac: Add `fi' and `fl'.
4050 Improve `Fi' and `Fl'.
4051 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
4052 * tmac/Xps.tmac: Fix `em'.
4056 2003-03-04 Werner LEMBERG <wl@gnu.org>
4058 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
4061 2003-03-03 Werner LEMBERG <wl@gnu.org>
4063 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
4065 * font/devps/generate/textmap: Remove entry `similarequal'.
4066 * font/devps/symbolmap: Updated.
4068 2003-03-02 Werner LEMBERG <wl@gnu.org>
4070 * src/libs/libgroff/font.cc (font::load): Fix error message for
4073 * src/devices/grops/grops.man: Improve documentation of the -b
4076 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
4077 `ascii' and `cp1047'.
4079 2003-03-01 Werner LEMBERG <wl@gnu.org>
4081 Document composite glyphs and the `composite' request.
4083 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
4085 2003-02-28 Werner LEMBERG <wl@gnu.org>
4087 * font/devdvi/generate/ec.map: Add some more Unicode entities.
4088 * font/devdvi/*EC: Updated.
4090 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
4091 * tmac/latin1 (latin1-tr): Undo any previous mapping.
4092 * tmac/troffrc: Load `composite.tmac'.
4093 * tmac/Makefile.sub (NORMALFILES): Updated.
4095 * doc/groff.texinfo (Input Encodings): New section.
4098 2003-02-27 Werner LEMBERG <wl@gnu.org>
4100 * doc/texinfo.tex: New version 2003-02-11.06.
4102 * tmac/doc-common (Dt): Don't emit warning for unknown section.
4103 * tmac/groff_mdoc.man: Fix description of `Dt'.
4105 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
4107 * font/devps/prologue.ps: Fix for included Postscript that does
4108 a setpagedevice -- which is now safely ignored.
4112 * src/devices/grops/ps.cc: Now sets the page size in the generated
4113 document. This is done in two ways: Via a %%-comment for gv and
4114 the like, and via a PageSize and setpagedevice for programs that
4115 understands Postscript proper, like ps2pdf.
4117 * src/devices/grops/ps.h: New broken-flag to avoid page size
4118 definition, if required.
4120 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
4122 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
4123 Not really necessary due to the fix in prologue.ps, but cleaner:
4124 Such information does not belong in an .eps file.
4126 * doc/Makefile.sub: See doc/Makefile.in.
4128 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
4130 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
4131 instead of P1 since the latter is broken in some versions of netpbm.
4132 * configure: Updated.
4134 2003-02-26 Larry Kollar <kollar@alltel.net>
4136 Make man pages more customizable.
4138 * tmac/an-old.tmac (FT): New register holding footer distance from
4140 (HF): New string holding the default heading font.
4141 (TH): Handle registers `IN' and `SN' set on the command line.
4143 (PT, BT): New strings to customize header and footer lines.
4144 (an-header, an-footer): Use them.
4146 * tmac/groff_man.man: Document changes.
4148 * doc/groff.texinfo: Document man changes.
4149 Document Ultrix extensions of man.
4151 2003-02-26 Werner LEMBERG <wl@gnu.org>
4153 * src/roff/troff/input.cc (do_width, do_if_request): Reset
4154 `have_input' after changing back to old environment.
4156 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
4157 function up to be defined before first call. This is necessary to
4158 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
4160 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
4161 the default font directory also. Based on a patch from James
4162 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
4163 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
4164 * src/utils/afmtodit/afmtodit.man: Document it.
4168 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
4170 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
4172 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
4173 (GROFF_PNMTOPS_NOSETPAGE): New macro.
4174 * configure.ac: Use it.
4175 * configure: Regenerated.
4176 * Makefile.in: Updated.
4178 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
4179 (CLEANADD): Add www.tmac-sed.
4180 (pnmtops_nosetpage): Define default.
4181 (install_data): Handle www.tmac-sed and substitute
4182 @PNMTOPS_NOSETPAGE@.
4183 (stamp-sed): Add www.tmac.
4184 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
4185 It now breaks URLs at suitable places.
4186 (www:substring_ok): New register set by...
4187 (www:@test_substring): New macro.
4188 (www:error): New alias to www-error.
4189 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
4191 (URL): Use www:url_breaks.
4192 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
4193 (CDS, CDE): New macros.
4195 2003-02-25 Werner LEMBERG <wl@gnu.org>
4197 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
4200 2003-02-24 Werner LEMBERG <wl@gnu.org>
4202 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
4203 can be negative also.
4205 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
4207 (read_char_table): Avoid negative ascenders.
4208 (output_charset): Add cast.
4209 * font/devlj4/*: Regenerated.
4211 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
4214 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
4215 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
4217 * font/devdvi/*: Regenerated.
4219 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
4220 normal width, while the previously used characters (U+2329 and
4221 U+232A) are classified as wide due to canonical equivalence with the
4222 CJK punctuation characters U+3008 and U+3009.
4224 * font/devutf8/R.proto: Updated.
4225 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4227 * man/groff_char.man: Simplify handling of table traps by
4228 introducing `start block' and `end block' macros.
4229 (Ns, Ne, 2s, 2e, Ds, De): New macros.
4230 (DL): Make it work with Unix troff also.
4231 Fix code values of `la' and `ra'.
4233 * tmac/dvi.tmac: Define `<>' for CW and CWI.
4235 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
4237 * src/devices/grohtml/post-html.cc (element_list::~element_list):
4238 New destructor, fixing a major memory leak.
4240 2003-02-22 Werner LEMBERG <wl@gnu.org>
4242 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4243 to be in conformance with Unicode 3.0 and newer.
4245 * font/devlj4/generate/text.map: Add `Eu'.
4246 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4247 * font/devlj4/S: Regenerated.
4249 * man/groff_char.man: Completely rewritten.
4251 * doc/groff.texinfo: Fix description of request and macro arguments.
4253 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
4257 * src/devices/grohtml/html-table.cc (html_table::~html_table):
4258 Deallocate `columns' list.
4259 * src/devices/grohtml/post-html.cc (char_block::~char_block):
4261 (text_glob::text_glob_html, text_glob::text_glob_special,
4262 text_glob::text_glob_line, text_glob::text_glob_auto_image,
4263 text_glob::text_glob_tag): Avoid memory leaks.
4264 (text_glob::remember_table): Free memory before reassigning.
4266 2003-02-19 Werner LEMBERG <wl@gnu.org>
4268 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4269 alias `hbar'), the Planck constant over two pi.
4271 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4272 `+e' for position 34.
4273 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4274 `u2662' and `u2661'.
4275 * font/devdvi/{MI,S}: Regenerated.
4276 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4277 * font/devlbp/*: Add `hbar' alias.
4278 * font/devlj4/generate/special.map: Ditto.
4279 * font/devlj4/S: Regenerated.
4280 * font/devps/generate/symbolchars: Add `+e'.
4281 * font/devps/generate/textmap: Fix PS name for `-h'.
4283 * font/devps/symbolmap: Regenerated.
4285 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4287 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4289 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4292 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4294 * tmac/tty-char.tmac: Add `+e'.
4296 2003-02-17 Werner LEMBERG <wl@gnu.org>
4298 Another round trying to really fix problems with `have_input'.
4300 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4301 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4303 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4304 handling if both foreground and background colors are default.
4306 * doc/groff.texinfo (Debugging): Document .lf differences to
4309 2003-02-16 Werner LEMBERG <wl@gnu.org>
4311 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4312 null-bytes in created string.
4314 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4315 alias_macro, lookup_request): Improve warning messages.
4317 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4319 Free `last_image_filename'.
4321 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4323 (imageList::createPage, imageList::createImage): Use `free', not
4325 (imageItem::~imageItem): Free `imageName'.
4326 (addRegDef): Use `strsave', not `strdup'.
4327 (get_resolution): Free `pathp'.
4329 2003-02-15 Werner LEMBERG <wl@gnu.org>
4331 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4334 2003-02-14 Werner LEMBERG <wl@gnu.org>
4336 Add memory management for colors to deallocate unnamed colors
4339 * src/include/color.h (color): New members `free_list' and `next'.
4340 New member functions `new' and `delete'.
4342 * src/libs/libgroff/color.cc: Implement it.
4344 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4345 for array size of new operator.
4347 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4348 redundant comparison.
4350 * src/roff/troff/input.cc (word_space_node::reread,
4351 hmotion_node::reread): Avoid warning about unused parameter.
4352 (reset_output_registers): Remove redundant parameter.
4353 (define_color): Undo change 2003-02-12.
4355 * src/roff/troff/reg.h: Updated.
4357 * src/roff/troff/node.cc (troff_output_file::really_print_line,
4358 output_file::put_filename, real_output_file::really_put_filename,
4359 ascii_output_file::really_print_line,
4360 break_char_node::get_hyphen_list): Avoid warning about unused
4362 (suppress_node::tprint): Updated.
4364 * configure.ac: Check declaration for rand() and srand().
4365 * configure: Regenerated.
4367 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4369 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4372 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4373 to avoid compiler warnings.
4375 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4378 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4380 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4382 Updated all callers.
4384 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4386 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4387 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4389 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4390 Parameter is unused.
4391 (html_printer::add_table_end): Define parameter conditionally.
4392 * src/devices/grohtml/output.cc (simple_output::special): Parameter
4395 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4396 (lbp_printer::set_char): Last parameter is unused.
4398 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4400 2003-02-13 Werner LEMBERG <wl@gnu.org>
4402 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4403 Make \D'f ...' move horizontally again for backwards compatibility.
4404 Replace it with \D'Fg ...' where appropriate to avoid dependency
4405 on horizontal resolution.
4407 * src/roff/troff/input.cc (do_get_long_name): New function.
4408 (get_long_name): Call it.
4410 (read_draw_node): Handle `\D'Fx ...' by calling ...
4411 (read_color_draw_node): New function.
4413 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4415 Pass it to `do_get_long_name' which is used instead of
4418 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4419 unnecessary value guard.
4420 (parse_D_command) <'f'>: Add horizontal shift.
4422 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4423 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4424 (FILL_MAX): Removed.
4426 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4429 2003-02-12 Werner LEMBERG <wl@gnu.org>
4431 * src/roff/troff/input.cc (do_name_test, do_expr_test,
4432 do_zero_width): Push `\n' if closing delimiter is missing.
4434 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4435 <'F'>: Make \F non-transparent at the beginning of line.
4436 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4437 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4440 (define_color): Free color in case of reassignment.
4442 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4443 @DefescListEnd): Use @Var, not @var.
4446 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4448 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4449 `shaded' and `outlined' arrays.
4450 (object_spec::object_spec): Initialize `shaded' and `outlined'.
4451 (graphic_object::set_fill_color, graphic_object::set_outline_color):
4453 (closed_object::set_fill_color): Ditto.
4454 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4456 (troff_output::reset_color): Use a_delete instead of free.
4457 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4459 2003-02-11 Werner LEMBERG <wl@gnu.org>
4461 * doc/groff.texinfo: Improve documentation of `ad'.
4462 Document that \D'f...' is dependent on the horizontal resolution.
4463 * man/groff_diff.man: Improve documentation of \D'f...'.
4465 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4466 compensating \h'...' for \D'f ...' since the latter no longer moves
4468 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4470 2003-02-10 Werner LEMBERG <wl@gnu.org>
4472 Improve error messages for `x F' (and `F') commands.
4474 * src/include/error.h: Add declaration for
4475 `current_source_filename'.
4476 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4477 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4478 parameter for source file string.
4479 Updated all callers.
4481 * src/libs/libdriver/input.cc: Add `current_source_filename'.
4482 (remember_source_filename): New function.
4483 (parse_x_command <'F'>, do_file <'F'>): Use it.
4485 2003-02-09 Werner LEMBERG <wl@gnu.org>
4487 Make grotty not emit warnings about unknown colors more than
4490 * src/devices/grotty/tty.cc: Include `ptable.h'.
4491 (TTY_MAX_COLORS): Removed.
4492 (DEFAULT_COLOR_IDX): Defined to -1.
4493 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4494 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4495 Change `tty_colors' to be a ptable.
4496 First arg of `put_color' is now `char'.
4497 New functions `make_rgb_string' and `tty_color'.
4498 (tty_printer::tty_printer): Use `tty_color'.
4499 (tty_printer::color_to_idx): Return value is now `char'.
4502 * src/include/color.h (color): Add `print_color' member function.
4503 * src/libs/libgroff/color.cc (color::print_color): Implement it.
4505 2003-02-08 Werner LEMBERG <wl@gnu.org>
4509 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4512 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4513 assume that value has been allocated with `new[]', thus use
4514 `a_delete' for deallocation.
4516 * src/libs/libdriver/input.cc (get_integer_arg,
4517 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4520 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4521 * src/libs/libgroff/nametoindex.cc
4522 (character_indexer::named_char_index): Use `new <type>[1]'.
4524 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4526 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4527 (split_text): Use `a_delete'.
4529 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4532 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4533 harmless memory leak.
4534 (hyphen_trie::read_patterns_file): Initialize `buf'.
4535 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4536 Initialize `current_fill_color'and `current_glyph_color'.
4537 * src/roff/troff/glyphuni.cc
4538 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4539 * src/roff/troff/uniuni.cc
4540 (unicode_decompose_init::unicode_decompose_init): Ditto.
4541 * src/roff/troff/uniglyph.cc
4542 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4544 2003-01-26 Werner LEMBERG <wl@gnu.org>
4546 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4547 `access' before calling `unlink'.
4548 (do_file): Handle __EMX__.
4550 * src/include/nonposix.h: Handle __EMX__.
4552 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4553 (fontpath,tmacpath): Use it.
4555 Sorted alphabetically.
4557 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4559 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4562 2003-01-27 Werner LEMBERG <wl@gnu.org>
4564 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4565 New files, copied from gnulib.
4566 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4567 * configure.ac: Updated.
4568 * configure: Regenerated.
4570 * src/include/config.hin: Regenerated.
4571 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4572 Don't define `strcasecmp' as `strcmp'.
4573 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4574 Dont define `strncasecmp' as `strncmp'.
4576 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4579 2003-01-26 Werner LEMBERG <wl@gnu.org>
4581 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4584 2003-01-25 Werner LEMBERG <wl@gnu.org>
4586 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4588 2003-01-24 Werner LEMBERG <wl@gnu.org>
4590 Add US-english hyphenation exceptions (converted from Barbara
4591 Beeton's hyphenation exception log reports which appear irregularly
4594 * tmac/hyphen.us: Updated to latest version.
4595 * tmac/README: Updated.
4596 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4597 * tmac/troffrc: Load `hyphenex.us'.
4598 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4599 * doc/groff.texinfo: Updated.
4601 2003-01-23 Werner LEMBERG <wl@gnu.org>
4603 Improve hyphenation slightly. This is a first step in redesigning
4604 the hyphenation algorithm to make it more flexible (e.g. allowing
4605 kerns and ligatures between the hyphenation character and the
4606 following character -- while not used normally in English, other
4607 languages like German would benefit).
4609 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4610 assertion instead of if-clause.
4611 Let `get_hyphen_list' return the number of involved characters in
4612 the hyphenation pattern instead of computing it directly (which
4613 often yields too small values).
4614 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4615 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4618 2003-01-22 Werner LEMBERG <wl@gnu.org>
4620 Fixing a bug which caused groff to hang if the hyphenation exception
4621 dictionary tried to grow.
4623 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4624 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4625 pointer to dictionary.
4627 2003-01-20 Werner LEMBERG <wl@gnu.org>
4629 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4630 negative left italic correction.
4631 * src/utils/afmtodit/afmtodit.man: Document it.
4633 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4634 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4635 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4639 2003-01-16 Werner LEMBERG <wl@gnu.org>
4643 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4645 * src/preproc/refer/refer.man: Mention REFER environment variable.
4647 2003-01-05 Werner LEMBERG <wl@gnu.org>
4649 Similar to \[is], the square root glyph (\[sr]) and the square root
4650 extension glyph (\[radicalex]) are now text symbols. The new
4651 mathematical versions are called \[sqrt] and \[sqrtex],
4654 * font/devX*/S: Regenerated.
4655 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4656 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4657 * font/devdvi/EX, font/devdvi/S: Regenerated.
4658 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4659 * font/devlj4/generate/special.map: Add `sqrt'.
4660 * font/devlj4/S: Regenerated.
4661 * font/devps/generate/textmap: Add `sqrt'.
4662 * font/devps/S, font/devps/symbolmap: Regenerated.
4664 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4665 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4666 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4667 overlap horizontally.
4669 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4670 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4673 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4674 and `sqrtex' are overlapping glyphs.
4676 2003-01-04 Werner LEMBERG <wl@gnu.org>
4678 * font/devdvi/generate/texsy.map: Add `is'.
4679 * font/devps/symbolmap: Regenerated.
4680 * font/devdvi/*TC, MI, S: Regenerated.
4682 * tmac/dvi.tmac: Remove `is'.
4684 2003-01-03 Werner LEMBERG <wl@gnu.org>
4686 `is' is now a text symbol (only relevant for dvi). The math variant
4687 can be accessed with `integral'.
4689 * font/devX*/S: Regenerated.
4690 * font/devdvi/generate/texex.map: Remove `is'.
4691 * font/devdvi/EX: Updated.
4692 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4693 * font/devlj4/generate/special.map: Ditto.
4694 * font/devlj4/S: Regenerated.
4695 * font/devps/generate/textmap: Add `integral'.
4696 * font/devps/S: Regenerated.
4698 * tmac/dvi.tmac: Define `is'.
4700 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4702 * src/preproc/tbl/main.cc (process_format): Fix error message.
4704 2003-01-02 Werner LEMBERG <wl@gnu.org>
4706 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4707 * font/devps/textmap: Fix entries for `ne' and `nc'.
4708 * font/devps/symbolmap: Regenerated.
4710 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4711 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4712 `38', `58', `78', `-+', `|=', `nc', `ne'.
4714 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4715 Use `schar' for `aq'.
4716 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4717 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4718 * tmac/tty.tmac: Add `ne'.
4720 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4721 for fallback glyphs.
4723 2002-12-29 Werner LEMBERG <wl@gnu.org>
4727 * font/devX*/*: Regenerated.
4728 * font/devdvi/generate/ec.map: Remove `eq'.
4729 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4730 Assign `|=' to position 39.
4731 * font/devdvi/*EC, S: Regenerated.
4732 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4733 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4734 Assign `|=' to position 549.
4735 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4737 Add `uni2243' for `|='.
4739 * tmac/ec.tmac: Add `eq'.
4740 * tmac/dvi.tmac: Add `=~'.
4741 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4744 2002-12-21 Werner LEMBERG <wl@gnu.org>
4746 * font/devdvi/generate/tc.map: Remove `**'.
4747 * font/devdvi/*TC: Regenerated.
4748 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4750 * font/devutf8/NOTES: Updated.
4752 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4753 Don't give default parameter to `set_macro'.
4754 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4755 instead of `set_macro'.
4756 (charinfo::setx_macro): Implement it.
4757 (charinfo::set_macro): Don't change `mode'.
4759 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4760 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4761 * tmac/dvi.tmac: Define `!=' with `.schar'.
4763 2002-12-20 Werner LEMBERG <wl@gnu.org>
4765 * font/devX*/S: Regenerated.
4766 * font/devdvi/generate/ec.map: Remove `pl'.
4767 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4768 * font/devdvi/*{TC,EC}: Regenerated.
4769 * font/devhtml/R.proto: Add `-+'.
4770 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4771 * font/devlbp/*: Remove `or'.
4772 * font/devlj4/generate/special.map: Remove `or'.
4773 * font/devlj4/S: Regenerated.
4774 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4775 `seveneighths', `threeeighths'.
4777 Replace `minusplus' with `uni2213'.
4778 * font/devps/symbolmap: Regenerated.
4779 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4782 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4784 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4785 Call glyph_color and fill_color even if tcommand_flag isn't set.
4786 (make_node, node::add_char): Check not ci->is_fallback but
4789 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4790 * tmac/ec.tmac: Add .rchar entry for `f/'.
4791 Don't remove `12', `14', `34'.
4792 Define `pl' to be always roman.
4793 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4794 Define `18', `38', `58', `78'.
4795 * tmac/tty.tmac: Add `-+'.
4796 * tmac/dvi.tmac: Define `f/'.
4797 (dvi-frac): Use `f/'.
4798 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4799 Define `18', `38', `58', `78'.
4801 2002-12-15 Colin Watson <cjwatson@debian.org>
4803 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4805 2002-12-10 Werner LEMBERG <wl@gnu.org>
4807 Add glyph `tno', a textual variant of `no'.
4809 * font/devX*/*: Regenerated.
4810 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4811 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4812 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4813 * font/devdvi/*: Regenerated.
4814 * font/devlbp/*: Add `tno'.
4815 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4816 * font/devlj4/*: Regenerated.
4817 * font/devps/generate/textmap: Replace `no' with `tno'.
4818 * font/devps/generate/symbolchars: Add `no'.
4819 * font/devps/*: Regenerated.
4821 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4823 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4824 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4828 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4829 Add definition for `sd'.
4830 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4832 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4834 2002-12-08 Werner LEMBERG <wl@gnu.org>
4836 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4837 mode to avoid rounding errors.
4838 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4840 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4841 src/roff/troff/troff.man: Improve documentation of -T.
4843 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4845 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4846 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4848 2002-12-06 Werner LEMBERG <wl@gnu.org>
4850 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4851 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4852 Scaling Euro.sansserif glyphs down to have the same height as
4854 Removed unnecessary points; added some extrema.
4856 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4859 2002-12-04 Werner LEMBERG <wl@gnu.org>
4861 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4862 and `Euro.symbol.bold.slanted'.
4863 Improve some glyph offsets and widths.
4864 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4866 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4868 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4871 * tmac/europs.tmac: Updated to new glyph indices.
4872 Use Euro.symbol for font familiy `A'.
4874 * doc/groff.texinfo: Minor improvements.
4876 2002-12-02 Werner LEMBERG <wl@gnu.org>
4878 * font/devdvi/generate.tc.map: s/%O/%0/.
4879 * font/devdvi/*TC: Regenerated.
4881 * src/roff/troff/div.cc (init_div_requests): Sorted.
4883 * tmac/dvi.tmac: Remove `Ye'.
4884 * tmac/ec.tmac: Remove `Ye'.
4885 Add .rchar entry for `de'.
4887 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4888 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4891 2002-11-30 Werner LEMBERG <wl@gnu.org>
4893 Add PS font for various Euro glyphs.
4895 * font/devps/generate/freeeuro.sfd: New master font file for
4897 * font/devps/generate/sfdtopfa.pe: New conversion script for
4899 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4900 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4901 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4903 * font/devps/EURO: Generated from `freeeuro.afm'.
4904 * font/devps/download: Add `freeuro.pfa'.
4905 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4908 * tmac/europs.tmac: New file.
4909 * tmac/ps.tmac: Include `europs.tmac'.
4910 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4912 2002-11-29 Werner LEMBERG <wl@gnu.org>
4914 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4915 * font/devdvi/S: Regenerated.
4916 * font/devhtml/R.proto: Fix `CR' and `ci'.
4918 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4920 * font/devps/symbolmap: Regenerated.
4921 * font/devutf8/R.proto: Fix `CR' and `ci'.
4923 * font/devutf8/NOTES: Updated.
4925 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4928 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4930 * tmac/dvi.tmac: Add `lh' and `rh'.
4931 * tmac/Xps.tmac: Fix `lh' and `rh'.
4932 * tmac/X.tmac: Add `OK'.
4933 * tmac/lj4.tmac: Ditto.
4935 2002-11-24 Werner LEMBERG <wl@gnu.org>
4937 * font/devX*/S: Regenerated.
4938 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4939 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4940 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4941 * font/devdvi/S: Regenerated.
4942 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4943 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4944 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4945 `bracketleftbt', `bracketrighttp', `bracketrightex',
4946 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4947 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4948 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4950 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4951 * font/devutf8/NOTES: Updated.
4952 * font/devlj4/generate/special.map: Add glyph `braceex'.
4953 * font/devlj4/S: Regenerated.
4955 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4957 2002-11-14 Werner LEMBERG <wl@gnu.org>
4959 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4962 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4964 * doc/texinfo.tex: New version from texinfo 4.3.
4965 * doc/groff.texinfo: Updated for texinfo 4.3.
4966 Use @tie{} where appropriate.
4967 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4968 * font/devdvi/generate/tc.map: Remove `rn'.
4969 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4970 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4972 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4973 font/devX75-12/*: Regenerated.
4975 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4976 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4977 Improve definition of `an'.
4978 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4980 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4981 * tmac/X.tmac: Add definition for `or'.
4982 * tmac/Xps.tmac: Undo change 2002-11-05.
4983 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4985 2002-11-11 Werner LEMBERG <wl@gnu.org>
4987 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4990 2002-11-10 Werner LEMBERG <wl@gnu.org>
4992 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4993 defines a glyph which is searched after the check for fonts declared
4994 with `.special' (and before the check for all mounted special
4995 fonts). `fschar' defines a glyph for a particular font which is
4996 searched after the check for fonts declared with `.fspecial' (and
4997 before the check for fonts declared with `.special'). `rfschar'
4998 removes glyphs defined with `fschar'.
5000 * src/roff/troff/token.h (char_mode): New enum.
5001 Declare do_define_character.
5002 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
5004 (charinfo::is_fallback): Updated.
5005 (charinfo::is_special): New method.
5006 * src/roff/troff/input.cc (do_define_character): Add and use
5007 optional second parameter used as a prefix for font-specific glyph
5009 (define_character, define_fallback_character): Updated.
5010 (define_special_character): New function.
5011 (init_input_requests): Add `schar'.
5012 (charinfo::charinfo, charinfo::set_macro): Updated.
5013 * src/roff/troff/node.cc: Include `stringclass.h'.
5014 (make_glyph_node): Handle special glyphs defined with `.schar' and
5016 (define_font_special_character, remove_font_special_character): New
5018 (init_node_requests): Sorted.
5019 Add `fschar' and `rfschar'.
5020 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5021 Document new requests.
5023 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
5024 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
5026 2002-11-08 Werner LEMBERG <wl@gnu.org>
5028 Added new font `SC' (cmtex10) to devdvi.
5030 * devdvi/generate/Makefile (FONTS): Add `SC'.
5032 * devdvi/generate/textex.map: New map file for cmtex.
5034 * devdvi/Makefile.sub (DEVFILES): Updated.
5035 * tmac/dvi.tmac: Add fspecial entries for SC.
5036 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
5037 found before `S' since the font position of `SC' is lower due to the
5038 gaps in DESC's `font' line.
5039 * tmac/ec.tmac: Add a `special' call.
5042 * font/devhtml/R.proto: Remove double entry for `ti'.
5043 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
5044 * tmac/tty-char.tmac: Remove entry for `bq'.
5045 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
5046 * tmac/ec.tmac: Don't remove `aq' glyph.
5047 * tmac/X.tmac: Fix entry for `em'.
5048 Add entries for `fo' and `fc'.
5049 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
5051 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
5052 documentation of `special' and `fspecial' requests.
5054 2002-11-05 Werner LEMBERG <wl@gnu.org>
5056 * font/devascii/R.proto, font/devcp1047/R.proto,
5057 font/devlatin1/R.proto: Remove entry for `.i'.
5058 * font/devdvi/generate/textt.map: Add entry for `ad'.
5059 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
5060 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
5061 We need this for getting kerning values to compose `/l' and `/L'.
5062 * font/devdvi: Regenerated font definition files for CM fonts.
5063 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
5064 * font/devutf8/R.proto: Ditto.
5065 Remove double entry for `ti'.
5067 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
5068 for (groff) ligatures, `la', and `ra'.
5069 Add "'C", "'c", `IJ', and `ij'.
5070 Remove double entry for `ti'.
5071 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
5073 Add "'C", "'c", `IJ', and `ij'.
5074 Fix entries for (groff) ligatures, `la', and `ra'.
5076 * tmac/ps.tmac (ps-achar): New macro.
5077 Define "'c" and "'C".
5078 * tmac/tty.tmac: Add entry for `.i'.
5079 * tmac/X.tmac (X-achar): New macro.
5080 Define "'c", "'C", and `:Y'.
5081 Add entries for `IJ' and `ij'.
5082 * tmac/Xps.tmac (Xps-achar): New macro.
5083 Define "'c" and "'C".
5084 Add entries for `IJ' and `ij'.
5085 * tmac/lbp.tmac (lbp-achar): New macro.
5086 Add fallback characters for all groff ligatures and many other
5088 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
5089 Add entries for `/l' and `/L'.
5090 Define "'c" and "'C".
5091 Add entries for `IJ' and `ij'.
5093 2002-11-02 Larry Kollar <kollar@alltel.net>
5095 * PROBLEMS: Document how to solve Mac OS X compilation problems.
5097 2002-11-02 Werner LEMBERG <wl@gnu.org>
5099 Adding support for composite glyphs: \[xxx yyy ...] and the
5100 `composite' request.
5102 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
5103 to Unicode-based glyph names.
5104 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
5105 glyph names to groff glyph names.
5106 * src/roff/troff/uniuni.cc: New file for canonically decomposing
5107 Unicode-based glyph names.
5108 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
5109 for handling Unicode glyph names.
5110 * src/roff/troff/input.cc: Include unicode.h.
5111 (composite_glyph_name): New function.
5112 (token::next) <'['>: Handle Unicode glyph names and composite
5114 (composite_dictionary): New dictionary for the `composite' request.
5115 (composite_request): Implement `composite' request.
5116 (init_input_requests): Add `composite'.
5117 Alphabetically sorted.
5118 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
5120 (init_env_requests): Alphabetically sorted.
5121 Removed `tas' and `tar' (already commented out).
5122 * src/roff/troff/Makefile.sub: Updated.
5124 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
5126 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
5129 2002-10-29 Werner LEMBERG <wl@gnu.org>
5131 Fix computation of .trunc register. Additionally, its value (and
5132 the value of the .ne register) is now always set before entering the
5135 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
5136 `needed_space' before calling `space'.
5137 (top_level_diversion::space): Remove special code for 'sp before the
5139 Call `begin_page' with the discarded space as a parameter.
5140 (top_level_diversion::begin_page): Add optional parameter to set
5142 * src/roff/troff/div.h: Updated.
5144 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
5147 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
5148 (LP): Remove superfluous call to `br'.
5149 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
5150 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5152 2002-10-26 Werner LEMBERG <wl@gnu.org>
5154 * tmac/doc-ditroff: Remove useless switch/variable -rC.
5155 (doc-setup-header): Don't set page register `%'.
5156 * tmac/doc-nroff: Remove variable `C'.
5157 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
5158 (doc-setup-header): Don't set page register `%'.
5160 * tmac/doc-common (doc-header): Call `ns'.
5161 (doc-paragraph): Protect .sp with .br so that it survives traps
5162 possibly set by the user.
5163 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5165 * tmac/doc*: Replace ' with . for consistency if no effect.
5167 2002-10-26 Werner LEMBERG <wl@gnu.org>
5169 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
5170 so that it survives traps possibly set by the user.
5172 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
5173 (troff_output_file::set_font): Call flush_tbuf if necessary.
5174 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
5175 flush_tbuf and do_motion only if necessary.
5176 (troff_output_file::start_special,
5177 troff_output_file::put_char_width, troff_output_file::put_char,
5178 troff_output_file::draw): Updated.
5179 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5180 vmotion_node::tprint): Undo change 2002-10-23.
5182 2002-10-25 Werner LEMBERG <wl@gnu.org>
5184 * tmac/www.tmac (DC): Fix case of overlapping images.
5186 2002-10-23 Werner LEMBERG <wl@gnu.org>
5188 * src/roff/troff/node.cc (troff_output_file::fill_color,
5189 troff_output_file::glyph_color): Set current color before testing
5191 (troff_output_file::put_char_width, troff_output_file::put_char,
5192 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
5194 (troff_output_file::file_color, troff_output_file::glyph_color):
5196 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5197 vmotion_node::tprint): Move first, then call fill_color.
5199 2002-10-20 Werner LEMBERG <wl@gnu.org>
5201 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
5202 possible to use multiple main macro packages.
5204 2002-10-19 Werner LEMBERG <wl@gnu.org>
5206 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
5207 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
5208 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
5210 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
5211 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
5213 2002-10-16 Werner LEMBERG <wl@gnu.org>
5215 * NEWS, doc/webpage.ms: Updated.
5217 2002-10-14 Werner LEMBERG <wl@gnu.org>
5219 * src/roff/troff/node.cc (troff_output_file::put_char_width,
5220 troff_output_file::put_char, troff_output_file::fill_color,
5221 troff_output_file::glyph_color): Handle case where color pointer
5224 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
5226 Add the new -r option to grotty. It is similar to the -i option
5227 except it tells grotty(1) to use the "reverse video" attribute to
5228 render italic fonts.
5230 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5231 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5232 (tty_printer::make_underline, tty_printer::put_color,
5233 tty_printer::end_page): Use it.
5234 (main): Add -r switch.
5236 * src/devices/grotty/grotty.man: Document it.
5238 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
5240 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5241 cast to `unsigned char' to properly read patterns with 8bit
5244 2002-10-08 Werner LEMBERG <wl@gnu.org>
5246 * REVISION: Increased to 2.
5249 version-control: never