* REVISION: Set to 3.
[s-roff.git] / ChangeLog
blob184dd55c191c179d21bb00020ce6e8e357137ae1
1 2005-10-26  Werner LEMBERG  <wl@gnu.org>
3         * REVISION: Set to 3.
5 2005-10-17  Werner LEMBERG  <wl@gnu.org>
7         Mention $MANPAGER variable used with some `man' systems.
9         * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
11 2005-09-13  Werner LEMBERG  <wl@gnu.org>
13         * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
15 2005-09-04  Werner LEMBERG  <wl@gnu.org>
17 Version 1.19.2 released
18 =======================
20         * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
22         * doc/webpage.ms: Updated.
24         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
26 2005-09-04  Jörgen Grahn <jgrahn@algonet.se>
28         * tmac/groff_ms.man: Document `PO' better.
30 2005-09-03  Werner LEMBERG  <wl@gnu.org>
32         * NEWS: Document grotty changes.
34 2005-09-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
36         Backward compatibility support for `man' program.
38         * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
39         assignment, prior `.ll' request and then package defaults, in this
40         specified order of decreasing priority.
42         * tmac/groff_man.man, doc/groff.texinfo: Document altered `LL'
43         register initialization priorities.
45 2005-08-29  Gary W. Swearingen  <garys@opusnet.com>
47         * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
48         section should look like.
50 2005-08-29  Werner LEMBERG  <wl@gnu.org>
52         * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
53         be abbreviated.
55 2005-08-27  Bernd Warken
57         * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
58         fixes.
60 2005-08-11  Bernd Warken
62         * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
64 2005-08-09  Bernd Warken
66         * tmac/www.tmac (URL, MTO): Use bold series if color support is
67         deactivated.
69 2005-08-02  Bernd Warken
71         * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
72         as argument to $(INSTALL_INFO).  The latter isn't portable.
73         Remove $(HTMLEXAMPLEFILES) too.
75         * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
76         $(datadir)/doc too.
77         Suppress warning messages and return always true.
79         * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
81 2005-07-02  Bernd Warken
83         * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
84         * man/groff_out.man: More markup and minor improvements.
85         * src/roff/groff/groff.man: Minor improvements.
87 2005-06-28  Werner LEMBERG  <wl@gnu.org>
89         * ChangeLog: Split off older entries into...
90         * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
91         files.
93 2005-06-26  Bernd Warken
95         * src/devices/xditview/gxditview.man: More minor fixes.
97 2005-06-24  Werner LEMBERG  <wl@gnu.org>
99         * src/preproc/pic/troff.cpp (troff_output::set_fill,
100         troff_output::set_color, troff_output::reset_color): Use .bcolor and
101         .fcolor instead of \m and \M, respectively.
103 2005-06-23  Bernd Warken
105         * src/devices/xditview/gxditview.man: More minor fixes.
106         * README: Formatting issues.
107         Mention some problems with Debian.
109 2005-06-23  Bernd Warken
111         * src/devices/xditview/gxditview.man: Revised and improved.
113 2005-06-22  Werner LEMBERG  <wl@gnu.org>
115         Another round in fixing getopt problems.  Hopefully the last one!
116         This time we use the getopt stuff from gnulib and define a prefix
117         unconditionally so that there are no collisions with any other
118         getopt implementations.  This is a slight waste of space in case
119         we already use a GNU getopt implementation, but on
120         the other hand it really simplifies life.
122         * src/include/getopt.h: Use gnulib version.
124         * src/include/getopt_int.h: Use gnulib version.
126         * src/include/groff-getopt.h: Removed.  Obsolete now.
128         * src/include/lib.h: Regarding getopt, don't handle any platform
129         specially; just include getopt.h.
130         (__GETOPT_PREFIX): Define (before getopt.h).
132         * src/include/Makefile.sub (HDRS): Updated.
134         * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
135         gnulib version.
137         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
138         __GETOPT_PREFIX.
140         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
141         (__GETOPT_PREFIX): Define (before getopt.h).
143 2005-06-21  Werner LEMBERG  <wl@gnu.org>
145         * src/include/lib.h: Provide a fix for Mac OS X to not include
146         groff-getopt.h.
148 2005-06-20  Denis M. Wilson  <dmw@oxytropis.plus.com>
150         * font/devps/prologue.ps (EP): Dont' use `bind'.  Reason: Using
151         `bind' to define a procedure which contains `showpage' means that an
152         invocation of `showpage' may execute wrongly (the exact effect
153         depending on the interpreter).  Not usually a problem except under
154         transformations, such as combining pages.
155         (PEND): Don't call `clear'.  Reason: Using `clear' in the definition
156         of /PEND means that stack underflow will occur if the stack is
157         deliberately non-empty before document inclusion.  If included
158         files are found to be generally badly behaved, we could replace the
159         `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
160         never found this necessary).
162 2005-06-20  Jörgen Grahn  <jgrahn@algonet.se>
164         * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
165         earlier to get correct error message.
167 2005-06-16  Bernd Warken
168         * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
170 2005-06-15  Werner LEMBERG  <wl@gnu.org>
172         Another try to update getopt files.  This time we add a dummy
173         gettext.h file to satisfy the dependency.
175         * src/include/getopt.h, src/libs/libgroff/getopt.c,
176         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
178         * src/include/getopt_int.h: New file (from GNU libc CVS).
180         * src/include/gettext.h: Dummy file which just defines a gettext()
181         macro.
183         * src/include/groff-getopt.h: Updated.
185         * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
188         * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
189         `const' keywords in return value.
191         * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
192         Remove redundant variable `old'.
193         (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
195         * src/preproc/tbl/main.cpp (process_table): Remove redundant
196         variable `c'.
199         Fix more friend name injection problems since modern C++ compilers
200         fail otherwise.  We simply provide (global) declarations for all
201         functions declared as friends.  This is not really necessary but
202         doesn't harm.
204         * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
205         peek_char, and get_location.
207         * src/preproc/refer/ref.h: Provide declarations for
208         compare_reference, same_reference, same_year, same_date,
209         same_author_last_name, and same_author_name.
211         * src/roff/troff/div.h: Provide declarations for do_divert and
212         page_offset.
214         * src/roff/troff/env.h: Provide declarations for title_length,
215         space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
216         vertical_spacing, post_vertical_spacing, line_spacing, line_length,
217         indent, temporary_indent, do_underline, do_input_trap, set_tabs,
218         margin_character, no_number, number_lines, leader_character,
219         tab_character, hyphenate_request, no_hyphenate,
220         hyphen_line_max_request, hyphenation_space_request,
221         hyphenation_margin_request, line_width, tabs_save, tabs_restore,
222         line_tabs_request, widow_control_request, and do_divert.
224         * src/roff/troff/input.cpp: Provide declaration for chop_macro.
226         * src/roff/troff/node.cpp: Provide declarations for class
227         tfont_spec.
228         Provide declaration for make_tfont.
230 2005-05-29  Werner LEMBERG  <wl@gnu.org>
232         * doc/fdl.texi: Updated to version 1.2.  Reported by Bernd Warken.
234 2005-05-28  Werner LEMBERG  <wl@gnu.org>
236         * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
237         `--style'.
239         * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
240         redundant semicolons.
242         * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
243         src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
244         Define `MLIB'.  Some compilers need this for linking with libgroff.
246 2005-05-27  Werner LEMBERG  <wl@gnu.org>
248         * MANIFEST, README, doc/webpage.ms: Updated.
250 2005-05-26  Werner LEMBERG  <wl@gnu.org>
252         * All affected files: Update postal address of FSF.
254 2005-05-25  Keith Marshall  <keith.d.marshall@ntlworld.com>
255             Bernd Warken
257         * README: More fixes.
259         * README.CVS: Removed.  Its contents is now part of the README file.
261 2005-05-21  Werner LEMBERG  <wl@gnu.org>
263         * README: Updated.  Based on a patch from Bernd Warken.
265 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
267         Miscellaneous script portability enhancements.
269         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
270         generated conftest.sh script, conforming to portability
271         recommendation in autoconf docs.
272         * configure: Likewise, for code generated by GROFF_CSH_HACK.
273         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
274         to portability recommendation in autoconf docs.
275         * contrib/gdiffmk/gdiffmk.sh: Likewise.
276         * contrib/gdiffmk/tests/runtests.in: Likewise.
277         * contrib/grap2graph/grap2graph.sh: Likewise.
278         * contrib/groffer/groffer.sh: Likewise.
279         * contrib/mm/mmroff.pl: Likewise.
280         * contrib/mom/momdoc/appendices.html: Likewise.
281         * contrib/pic2graph/pic2graph.sh: Likewise.
282         * font/devps/generate/afmname: Likewise.
283         * src/devices/xditview/ad2c: Likewise.
284         * src/preproc/eqn/neqn.sh: Likewise.
285         * src/roff/grog/grog.pl: Likewise.
286         * src/roff/grog/grog.sh: Likewise.
287         * src/roff/nroff/nroff.sh: Likewise.
288         * PROBLEMS: Likewise, in embedded script examples.
290 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
292         Improve portability of `pdfroff' shell script.
294         * arch/misc/shdeps.sh: Add space in shebang, conforming to
295         portability guidelines in `autoconf' docs.
296         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
297         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
298         `searchpath' function.
300 2005-05-14  Werner LEMBERG  <wl@gnu.org>
302         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
303         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
304         needed for newer ImageMagick versions.
306 2005-05-07  Werner LEMBERG  <wl@gnu.org>
308         * src/preproc/refer/refer.man: Many small typographic fixes.
310 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
312         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
313         Use `char *' cast for a_delete.
315 2005-05-03  Werner LEMBERG  <wl@gnu.org>
317         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
318         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
320 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
322         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
323         `a_delete' for `const char *'.
325 2005-05-03  Werner LEMBERG  <wl@gnu.org>
327         * src/devices/grohtml/post-html.cpp,
328         src/devices/grohtml/html-table.cpp,
329         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
330         Replace malloc/free with new/delete/a_delete.
332         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
333         are prohibited with ANSI C++.
334         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
335         function has a variable number of arguments).
337         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
338         Simplify function and update all callers.
340 2005-05-02  Werner LEMBERG  <wl@gnu.org>
342         Undo getopt changes from 2005-04-30.  We don't want a dependency
343         on gettext.
345         * src/include/getopt_int.h: Removed.
347         * src/include/getopt.h, src/include/groff-getopt.h,
348         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
349         src/libs/libgroff/getopt1.c: Revert to previous version.
352         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
354         * src/include/posix.h (F_OK): Define conditionally.
356         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
357         different variable name in second `for' loop to avoid MSVC compiler
358         problem.
360 2005-04-30  Werner LEMBERG  <wl@gnu.org>
362         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
364         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
365         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
366         * configure, src/include/config.hin: Regenerated.
368         * PROBLEMS: Updated.
371         Update getopt files.
373         * src/include/getopt.h, src/libs/libgroff/getopt.c,
374         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
376         * src/include/getopt_int.h: New file (from GNU libc CVS).
378         * src/include/groff-getopt.h: Updated.
380         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
383         * font/devutf8/NOTES: Updated.
385 2005-04-28  Werner LEMBERG  <wl@gnu.org>
387         Bug fix for Win32 relocatable code.  Based on a patch from Keith
388         Marshall.
390         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
391         also.
393         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
394         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
396 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
398         Correct `gnu.eps' handling for build from distribution tarball, with
399         separate source and build directories.
401         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
402         grnexmpl.g, groff.css and gnu.eps from source to build directory;
403         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
404         (prepare_examples): Make it depend on examples.stamp.
405         (CLEANADD): Add examples.stamp.
407 2005-04-27  Werner LEMBERG  <wl@gnu.org>
409         Implement the rule
411           position: '(' position ')'
413         in pic.
415         * src/preproc/pic/pic.y (position, position_not_place): Handle
416         additional parentheses.
418         * doc/pic.ms: Updated.
420 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
422         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
424 2005-04-18  Werner LEMBERG  <wl@gnu.org>
426         * src/roff/groff/pipeline.c: Don't include ctype.h.
428 2005-04-13  Werner LEMBERG  <wl@gnu.org>
430         * src/roff/nroff/nroff.man: Document option `-M'.
432 2005-04-13  Bruce Lilly  <blilly@erols.com>
434         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
436 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
437             Werner LEMBERG  <wl@gnu.org>
439         Add binary relocation support for Windows platforms.
441         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
443         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
445         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
446         (search_path::search_path, search_path::open_file_cautious): Use
447         `relocate'.
449         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
450         src/include/Makefile.sub (HDRS): Updated.
452 2005-04-01  Werner LEMBERG  <wl@gnu.org>
454         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
455         strsave/a_delete.
457         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
459         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
460         lib.h already does it.
462         * src/libs/libgroff/maxpathname.cpp: New file, defining
463         path_name_max.
465         * src/include/lib.h: Add prototype for path_name_max.
467         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
469         * src/include/nonposix.h (PATH_EXT): New macro.
471 2005-03-28  Werner LEMBERG  <wl@gnu.org>
473         Add support for double- and zero-width characters in grotty.
475         * src/devices/grotty/tty.cpp (glyph): Add width.
476         (tty_printer::make_underline, tty_printer::make_bold,
477         tty_printer::add_character): Add parameter to pass character width.
478         Update all callers.
479         (tty_printer::end_page): Increase hpos by actual character width.
481         * font/devutf8/R.proto: Specify zero width for non-spacing
482         characters.
484         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
486         * Makefile.comm (extraclean): Remove more junk files.
488 2005-03-25  Werner LEMBERG  <wl@gnu.org>
490         * configure.ac: Undo change from 2005-03-24.
491         * configure: Regenerated.
493 2005-03-24  Werner LEMBERG  <wl@gnu.org>
495         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
496         (dist): Search Makefile while descending into $(EXTRADIRS).
498         * doc/Makefile.in (.PHONY): Add.
499         (clean): Don't remove *.png and *.eps.
500         Don't handle *.gif.
501         (realclean): Remove *.png and *.eps.
502         (extraclean): Depend on distclean.
504         * configure.ac: Add copyright.
505         Handle contrib/pdfmark/Makefile.
507         * configure: Regenerated.
509 2005-03-18  Larry Kollar  <kollar@alltel.net>
511         Add numbered and definition lists to www.tmac.
513         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
514         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
515         auxiliary string registers.
516         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
517         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
518         (www-level): Removed.
519         (www-level1, www-level2, www-level3): Initialize to empty.
520         (www-level0, www-level4, www-level5, www-level6, www-level7,
521         www-level8, www-level9): New string registers.
522         (www-push-li, www-pop-li): New macros.
523         (www-push-level, www-pop-level): Renamed to...
524         (www-push-ul-level, www-pop-ul-level): This.
525         Updated.
526         (www-push-ol-level, www-pop-ol-level): New macros.
527         (ULS, ULE): Updated.
528         (OLS, OLE, DLS, DLE): New user macros.
529         (LI): Removed.  It is aliased to one of...
530         (www-li-ul, www-li-ol, www-li-dl): New macros.
532         * tmac/groff_www.man: Document new macros.
534         * NEWS: Updated.
536 2005-03-18  Werner LEMBERG  <wl@gnu.org>
538         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
539         doc-operating-system-NetBSD-2.0.2): New strings.
541         * tmac/groff_mdoc.man: Updated.
543 2005-03-17  Werner LEMBERG  <wl@gnu.org>
545         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
547 2005-03-17  Werner LEMBERG  <wl@gnu.org>
549         * src/libs/libgroff/hypot.c: Renamed to...
550         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
552         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
554         * src/include/lib.h: Updated.
556 2005-03-16  Werner LEMBERG  <wl@gnu.org>
558         Add workaround for broken hypot() on Interix.
560         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
562         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
563         (CSRCS): Add `hypot.c'.
565         * src/include/lib.h: Declare `groff_hypot'.
567         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
568         Use `groff_hypot'.
570         * src/preproc/pic/pic.h: Don't declare `hypot'.
572         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
574 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
576         * src/devices/grohtml/post-html.cpp
577         (html_printer::lookahead_for_tables): End .ce properly to avoid a
578         segfault.
580 2005-03-15  Werner LEMBERG  <wl@gnu.org>
582         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
584         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
586         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
588 2005-03-14  Werner LEMBERG  <wl@gnu.org>
590         Add Cyrillic support to devutf8 and devhtml.
592         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
594         * tmac/unicode.tmac: New file.
596         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
598         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
600         * NEWS: Updated.
602 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
604         * src/libs/libdriver/printer.cpp (check_for_output_error): New
605         function.  It has been introduced to catch peculiar error contexts
606         on MS-Windows platforms.
608 2005-02-28  Werner LEMBERG  <wl@gnu.org>
610         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
611         null pointer.
613         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
615         * configure: Regenerated.
617         * NEWS: Updated.
619 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
621         Integrate `pdfmark' into normal groff build system;
622         install macro `pdfmark' packages, build and install `pdfroff',
623         and PDF format documentation.
625         * Makefile.comm: Add PDFDOCDIR.
627         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
628         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
629         (unstall_dirs): Add pdfdocdir.
631         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
632         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
633         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
634         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
635         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
636         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
637         set ALT_AWK_PROGS.
638         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
639         use of GROFF_AWK_PREFS.
640         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
641         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
643         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
644         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
645         also by modified GROFF_HTML_PROGRAMS).
647 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
649         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
650         paragraph spacing.
651         (html_text::done_para): Unset `start_space'.
652         (html_text::remove_para_align): Call `retrieve_para_space' for the
653         spacing.
655         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
656         `seen_space'.
657         (html_printer::do_check_center): Emit vertical space if necessary.
659         * src/roff/troff/env.cpp (environment_switch): Preserve
660         `seen_space', `seen_eol', and `suppress_next_eol' while switching
661         environments.
663         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
664         `is_special'.
666 2005-02-20  Werner LEMBERG  <wl@gnu.org>
668         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
669         eqn.
671 2005-02-17  Werner LEMBERG  <wl@gnu.org>
673         * doc/pic.ms, man/groff.man: Fix typos.
675         * doc/groff.texinfo: Fix typos.
676         (\LEmacro): Get proper mathematical spacing.
678 2005-02-16  Werner LEMBERG  <wl@gnu.org>
680         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
681         * configure: Regenerated with autoconf 2.59b.
683 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
685         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
686         html_printer::start_font): Fix handling of preformatted text.
688 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
690         These patches modify the indentation implementation to use `<p
691         style=margin-left: n%>'.  Many thanks to Peter and Larry for
692         suggesting this solution.  Grohtml only uses tables for `.IP' and
693         related tags when the first operand has a short width.
695         Similarly, they modify all vertical space code.  By default, grohtml
696         sets up a style sheet which uses no vertical space between `table',
697         `pre', and `p' tags.  It forces spaces when it needs them using
698         `style="margin-top: 1em"'.
700         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
701         (html_table::emit_table_header, html_table::emit_new_row):
702         Rewritten.
703         (html_table::set_space): New function.
704         (html_indent::html_indent): Don't set `is_used'.
705         (html_indent::begin): Rewritten.
706         (html_indent::end): Remove code in function.
708         * src/devices/grohtml/html-table.h: Updated.
709         (html_table): Make `out' public.
711         * src/devices/grohtml/html-text.cpp (html_text::html_text):
712         Initialize `start_space' with FALSE.
713         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
714         (html_text::issue_tag): Add argument to handle space style.
715         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
716         (html_text::flush_text): Don't set `start_space'.
717         (html_text::push_para): Don't set `p->really_issued'.
718         (html_text::do_emittext): Updated.
719         (html_text::do_para): Add paremeter to handle space.
720         Update all callers.
721         (html_text::retrieve_para_space): New function.
723         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
724         (tag_definition): Remove `really_issued'.
725         (html_text): Updated.
727         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
728         `current_column' and `row_space'.
729         Update constructor.
730         (html_printer::emit_raw, html_printer::write_header,
731         html_printer::do_indent, html_printer::do_check_center,
732         html_printer::do_tab_ts): Handle vertical space.
733         (html_printer:do_tab_te, html_printer::do_end_para): Call
734         `remove_para_space'.
735         (html_printer::do_col): Rewritten.
736         (html_printer::flush_globs): Remove debugging code.
737         (html_printer::is_line_start): New function.
738         (html_printer::start_font): Use `is_line_start'.
739         (html_printer::writeHeadMetaStyle): New function.
740         (html_printer::do_file_components, html_printer::~html_printer):
741         Call `writeHeadMetaStyle'.
743         * tmac/www.tmac (www-handle-percent): New macro.
744         (MPIMG): Handle percent values for width and height parameters.
745         (DC): Updated.
747         * tmac/groff_www.man: Updated.
749 2005-02-14  Werner LEMBERG  <wl@gnu.org>
751         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
752         $psname and $italic_angle.
753         Immediately restart file input loops if `split' returns an empty
754         array.
756 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
757             Werner LEMBERG  <wl@gnu.org>
759         Update afmtodit to better support Unicode (Michail).
760         Update afmtodit to use Perl 5 syntax (Werner).
762         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
763         `Getopts::Std'.
764         Decorate variables with `my' where necessary.
765         Use `defined' where necessary to avoid warnings.
766         Don't use `do' for subroutine calls.
767         Other minor syntax updates.
768         Check for both `uXXXX[X[X]]' and `uniXXXX'.
769         Handle glyph variants properly.
770         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
771         strings.
773         * src/utils/afmtodit/afmtodit.man: Updated.
775 2005-02-13  Werner LEMBERG  <wl@gnu.org>
777         Make groff.texinfo work with texinfo 4.8.
779         * doc/groff.texinfo (@Var): Use @r and @slanted.
780         (@defdummy, @Def*): Use @c to avoid empty lines.
781         (\angles): Replaced with...
782         (\Langlemacro, \Ranglemacro): New TeX macros.
783         (@Langlemacro, @Ranglemacro): New variables defined with @set.
784         (@angles): Use @Langlemacro and @Ranglemacro.
785         (\LE): Replaced with...
786         (\LEmacro): New TeX macro.
787         (@LEmacro): New variable defined with @set.
788         (@LE): Use @LEmacro.
789         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
790         variables defined with @set.
791         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
792         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
793         Update all callers.
795         Other minor updates.
797         * doc/texinfo.tex: Update to texinfo version 4.8.
799         * README.CVS: Updated.
801 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
803         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
804         and `FAM' registers.
806 2005-02-05  Werner LEMBERG  <wl@gnu.org>
808         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
809         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
810         Update BSD license.
812 2005-02-01  Werner LEMBERG  <wl@gnu.org>
814         * src/roff/groff/groff.man: Add information about paper size.
816 2005-01-25  Werner LEMBERG  <wl@gnu.org>
818         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
819         NetBSD bin/29114.
821 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
823         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
824         cases.
825         (Re): Emit a warning if called without `.Rs'.
826         (doc-finish-reference): Use parameter for decreasing
827         `doc-reference-count'.
828         (doc-print-reference): Pass specific count parameters to
829         `doc-finish-reference'.
831 2005-01-21  Werner LEMBERG  <wl@gnu.org>
833         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
834         Reset pointers to zero after deallocation.  This fixes a crash
835         if a driver is called with multiple input files.  Reported by
836         Ken Chilton <ken@chiltonfamily.org>.
838         * src/devices/grops/grops.man: Add more info on DSC.
840 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
842         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
843         Remove dead code.
845 2005-01-17  Werner LEMBERG  <wl@gnu.org>
847         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
848         against division by zero.
850 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
852         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
854 2004-12-19  Werner LEMBERG  <wl@gnu.org>
856         * install-sh: New version; taken from texinfo CVS.
858 2004-12-17  Werner LEMBERG  <wl@gnu.org>
860         * tmac/devtag.tmac: Protect against loading twice.
861         Protect agains compatibility mode.
862         * tmac/www.tmac: Protect against loading twice.
863         Load `devtag.tmac' before switching off compatibility mode.
864         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
866 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
868         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
869         * configure: Updated.
871 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
873         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
875 2004-12-15  Werner LEMBERG  <wl@gnu.org>
877         Make `test-groff' work again -- previously, wrong paths have been
878         used.  Additionally, it can now be called from anywhere.
880         * test-groff.in: Don't test for groff binary.  This is no longer
881         necessary since the proper paths are determined by `configure'.
882         (EXEEXT): Removed.  No longer used.
883         (srcdir, builddir): Use values provided by the configure script.
884         (XENVIRONMENT): Updated.
886         * INSTALL: Updated.
888 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
890         Make .tag and .taga work for all devices (but only grohtml actually
891         handles them).
893         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
894         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
895         html_printer::handle_assertion): Don't use hard-coded string
896         lengths.
897         (html_printer::lookahead_for_table): Reset `tbl' properly if
898         necessary.
899         (html_printer::devtag): New function, handling `devtag'.
900         (html_printer::special): Don't handle `html-tag'.
902         * src/include/printer.h, src/libs/libdriver/printer.cpp
903         (printer::devtag): New virtual function.
905         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
906         `devtag'.
908         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
909         src/roff/troff/node.cpp: s/html-tag/devtag/.
911         * src/roff/troff/input.cpp (tag, taga): Always call
912         curenv->add_node.
914         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
915         macros instead of HTML-TAG*.
917         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
919         * tmac/www.tmac: Load devtag.tmac.
920         Replace HTML-TAG* macros with DEVTAG* macros.
921         (HTML, HTML-NS): Changed definitions.
922         (URL): Use HTML-NS.
923         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
925         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
927 2004-12-10  Werner LEMBERG  <wl@gnu.org>
929         Import Mike's `gdiffmk' package.
931         * contrib/gdiffmk/*: New files.
932         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
933         * NEWS: Updated.
935 2004-12-08  Werner LEMBERG  <wl@gnu.org>
937         Import Keith's `pdfmark' package.  Integration is very preliminary.
939         * contrib/pdfmark/*: New files.
940         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
941         * NEWS: Updated.
943 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
945         Fix a bug with title handling in HTML.
947         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
948         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
949         length.
950         (html_printer::handle_tag_within_title): New function.
951         (html_printer::do_title): Use it.
953         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
954         (cov*tl-au-print): Emit `.eo.tl' tag.
956 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
958         * man/groff_char.man: Minor imrovements.
960 2004-12-04  Werner LEMBERG  <wl@gnu.org>
962         * src/preproc/eqn/eqn.man: Revised.
964 2004-11-25  Werner LEMBERG  <wl@gnu.org>
966         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
967         groff source files.
968         Include config.h.
969         Include limits.h.
970         Remove X_NOT_STDC_ENV conditional.
971         (Version_string, program_name): New global variables.
972         (groff_flag): Removed.
973         (MapFont): Updated.
974         (usage): Take a stream as argument.
975         Use `program_name'.
976         Update all callers.
977         (main): Add `long_options' array for `--help' and `--version'.
978         Make `-g' a dummy option.
979         Handle `-v' and unknown options.
980         Remove unused `position' variable.
982         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
983         (XLIBS): Add LIBGROFF.
985         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
986         New files.
988         * src/devices/xditview/Dvi.c (default_font_map): Split into three
989         parts to avoid compiler warning.
990         (resources): Don't initialize with `default_font_map'.
991         (ClassInitialize): Initialize first element of `resources'.
993         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
994         Removed.
996         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
997         src/utils/pfbtops/pfbtops.man: Revised, updated.
999         * configure.ac: Generate src/utils/xtotroff/Makefile.
1000         * configure: Regenerated.
1002 2004-11-24  Werner LEMBERG  <wl@gnu.org>
1004         First fixes to get produce HTML.
1006         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
1007         attribute.
1009         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
1010         (HR, LI): Use `HTML</p>', not `HTML'.
1012         * doc/webpage.ms: Minor updates.
1014 2004-11-23  Larry Kollar  <kollar@alltel.net>
1016         Add option -S grohtml to determine the file split level.
1018         * src/devices/grohtml/post-html.cpp (split_level): New global
1019         variable.
1020         (html_header::determine_header_level): Use split_level.
1021         (main): Handle `-S' command line option.
1022         Sort options.
1024         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
1026         * src/devices/grohtml/grohtml.man: Document it.
1027         Sort options.
1029         * NEWS: Document it.
1031 2004-11-23  Y T  <doarhop@hotmail.com>
1033         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
1034         the volume and number refer entries.
1036 2004-11-22  Werner LEMBERG  <wl@gnu.org>
1038         * src/devices/grohtml/html-table.cpp
1039         (html_table::emit_table_header): Don't emit `cols' attribute which
1040         doesn't exist in HTML 4.0 and is thus invalid.
1042         * NEWS: More minor fixes and updates.
1044 2004-11-18  Werner LEMBERG  <wl@gnu.org>
1046         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
1047         (HTML</p>): Minor clean-up.
1049         * tmac/groff_www.man: Updated.
1051         * src/devices/grohtml/grohtml.man: Revised and updated.
1053         * NEWS: Updated.
1055 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
1057         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
1058         Fix space insertion.
1059         (html_printer::do_links): Fix rules generation around automatic
1060         heading links.
1062         * tmac/www.tmac (LK): Use HTML-TAG-NS.
1063         (HR): Simplify.
1064         No longer emit empty line for non-HTML devices.
1066 2004-11-17  Werner LEMBERG  <wl@gnu.org>
1068         * doc/Makefile.in (prepare_examples, webpage.html): Handle
1069         `groff.css'.
1071         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
1072         prepare_examples, webpage.html): Handle `groff.css'.
1074 2004-11-15  Werner LEMBERG  <wl@gnu.org>
1076         * NEWS, README, doc/webpage.ms: Updated.
1078         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
1080 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
1082         * src/include/printer.h (printer): Remove virtual function
1083         `round_width'.
1084         Update all source files.
1086         * src/devices/grohtml/post-html.cpp (html_printer): New member
1087         function `round_width'.
1089 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1091         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
1092         column key letter suffix.
1094 2004-10-14  Werner LEMBERG  <wl@gnu.org>
1096         * Makefile.in (check): Depend on `site.exp' and `docheck'.
1097         (docheck): Run dejagnu's `runtest' if it exists.
1098         (site.exp): Create dejagnu configuration file.
1100         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
1102 2004-10-13  Werner LEMBERG  <wl@gnu.org>
1104         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
1105         src/devices/grohtml/post-html.cpp (make_val,
1106         html_printer::handle_state_assertion): Fix compiler warnings.
1108         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
1109         (diversion::diversion): Fix order of initializers.
1111         * src/roff/troff/div.h: Don't include `mtsm.h'.
1113         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
1114         (environment::environment): Fix order of initializers.
1115         (environment::make_tag, environment::construct_format_state): Fix
1116         compiler warnings.
1118         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
1119         (input_iterator::input_iterator, macro::macro): Fix order of
1120         initializers.
1122         * src/roff/troff/mtsm.cpp: Include only necessary header files.
1123         (state_set::add, state_set::val): Fix compiler warnings.
1125         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
1126         (bool_value_state, int_value_state, units_value_state,
1127         string_value_state): Remove comma after last element which causes
1128         an error with g++ 3.3.3.
1130         * src/roff/troff/node.cpp: Include `stringclass.h'.
1131         (hline_node::hline_node, vline_node::vline_node,
1132         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
1133         warnings.
1134         (zero_width_node::zero_width_node): Fix order of initializers.
1136         * src/roff/troff/node.h: Don't include `mtsm.h'.
1137         (hmotion_node): Fix compiler warnings.
1139         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
1141 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
1143         * doc/groff.css: New file.
1145         * doc/webpage.ms: Use `groff.css'.
1146         Other small fixes.
1148         * tmac/an-old.tmac (need_eo_h): New number register.
1149         (TH): Emit `.eo.tl' tag after title.
1150         (SH): Set `need_eo_h'.
1151         (an-trap): Handle `need_eo_h'.
1152         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
1154         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
1155         (TL): Always start diversion.
1156         Updated.
1157         (@AI): Always call `par@reset'.
1158         (@AB): Update code for -Thtml.
1159         (cov*tl-au-print): Handle -Thtml.
1160         (par@reset): Handle `need_eo_tl', `need_eo_h'.
1161         (@IP): Simplified.
1162         (@IT-html): Removed.
1163         (@SH): Set `need_eo_h' for -Thtml.
1164         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
1165         Set `need_eo_tl'.
1166         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
1167         Set `need_eo_h' for -Thtml.
1168         (@EQ, @EN): Don't handle -Thtml specially.
1169         (par@load-init): Don't handle -Thtml specially.
1171         * tmac/www.tmac (www:paraspace): New macro.
1172         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
1173         (HTML</p>, HTML-TAG-NEXT): New macros.
1174         (HnE): Emit tag `.eo.h' instead of break.
1175         (HR): s/HTML-NS/HTML/.
1176         (www-end-nowhere): End diversion only if `www-html' not set.
1177         Emit `.eo.tl' tag.
1178         (ULS, ULE): s|HTML|HTML</p>|.
1179         (LI): Call `www:paraspace'.
1180         (HEAD): New macro.
1182 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
1184         * src/roff/troff/request.h (macro): Make `p' public.
1185         New variable `is_a_diversion'.
1186         New member function `is_diversion'.
1189         * src/devices/grohtml/html.h (simple_output): New member function
1190         `force_nl'.
1192         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
1193         computation of `total'.
1194         (tabs::check_init): New function.
1195         (html_table::emit_table_header): Emit style data.
1196         (html_table::insert_column): Improved.
1198         * src/devices/grohtml/html-table.h: Updated.
1200         * src/devices/grohtml/html-text.cpp (html_text::html_text):
1201         Initialize `start_space' with TRUE.
1202         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
1203         cases.
1204         (html_text::flush_text): Set `start_space' flag.
1205         (html_text::uses_indent, html_text::remove_para_space,
1206         html_text::get_alignment): New functions.
1207         (html_text::push_para): Updated.
1208         (html_text::do_para): Check for empty argument.
1209         Don't set `space_emitted'.
1210         (html_text::do_space, html_text::emit_space): Updated.
1212         * src/devices/grohtml/html-text.h (tag_definition): New variable
1213         `really_issued'.
1214         (html_text): New member function `uses_indent', `remove_para_space',
1215         `get_alignment'.
1217         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
1218         function.
1219         (simple_output:nl): Always emit `\n'.
1221         * src/devices/grohtml/post-html.cpp: Include `string.h'.
1222         (BASE_POINT_SIZE): Removed.
1223         (base_point_size, head_info): New global variables.
1224         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
1225         `is_eo_h'.
1226         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
1227         tags, respectively.
1228         (page::add_and_encode): Pass additional parameter for tag flag.
1229         (assert_pos): New structure.
1230         (assert_state): New class.
1231         (html_printer): Remove `indentation', `prev_indent'.
1232         Add variables `troff_indent', `device_indent', `temp_indent'.
1233         Add variables `seen_indent', `next_indent', `seen_pageoffset',
1234         `next_pageoffset', `seen_linelenght', `next_linelength',
1235         `seen_center', `next_center', `seen_space', `seen_break', `as'.
1236         Add member functions `do_check_center', `do_space', `do_head',
1237         `get_troff_indent', `restore_troff_indent', `handle_assertion',
1238         `handle_state_assertion', `do_end_para', `set_char_and_width'.
1239         Change argument to `do_fill' to `char *'.
1240         Update constructor.
1241         (html_printer::emit_raw): Call `shutdown_table'.
1242         Use new functions.
1243         (html_printer::do_center): Simplified.
1244         (html_printer::do_title): Improved.
1245         (html_printer::write_header): Emit one more newline.
1246         Use new functions.
1247         (html_printer::do_heading, html_printer::do_indent,
1248         html_printer::do_eol, html_printer::do_tab_ts,
1249         html_printer::do_tab, html_printer::do_tab0,
1250         html_printer::calc_po_in, html_printer::next_horiz_pos,
1251         html_printer::remove_courier_tabs,
1252         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1253         Updated.
1254         (html_printer::do_linelength, html_printer::do_pageoffset,
1255         html_printer::do_indentation, html_printer::do_tempindent,
1256         html_printer::do_tab_te): Simplified.
1257         (html_printer::do_pointsize): Check whether point size is really
1258         associated a `.tl' tag.
1259         (html_printer::do_break): Rewritten.
1260         (html_printer::troff_tag): Improved.
1261         (html_printer::flush_globs): Updated.
1262         (html_printer::lookahead_for_tables): Handle `is_br'.
1263         Use new functions.
1264         (html_printer::set_char): Check `sbuf_style.f'.
1265         (html_printer::write_navigation): Use string comparison.
1266         (html_printer::~html_printer): Emit `head_info'.
1267         (html_printer::special): Rewritten.
1268         (get_str, make_val): New functions.
1269         (main): New option `s' to set the base point size.
1271         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1273 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
1275         * src/roff/troff/node.cpp: New extern `debug_state'.
1276         Include `stringclass.h' and `mtsm.h'.
1277         Implement new classes and class members from `node.h'.
1278         (real_output_file): Make `fp' public.
1279         (troff_output_file): New variables `cur_div_level' and `tag_list'.
1280         Update constructors.
1281         (troff_output_file::really_print_line): Check whether we should push
1282         the current troff state and use the state at the start of the
1283         invocation of this diversion.
1284         (troff_output_file::add_to_tag_list): New member function.
1285         (node::add_char): Handle `glyph_comp_np'.
1287         * src/roff/troff/node.h: Include `mtsm.h'.
1288         (node): New variables `state', `push_state', `div_nest_level',
1289         `is_special'.  Update constructors, all descendants.
1290         Pass additional argument to `add_char' member function.
1291         New virtual member functions `is_tag', `debug_node',
1292         `debug_node_list'.  Update all descendants.
1293         (tag_node): New class for handling tags.
1294         (output_file): Add variable `state'.
1296 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
1298         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1299         providing a minimal troff state machine to emit meta tags for the
1300         post-grohtml device driver.
1302         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1303         files.
1305 2004-10-09  Werner LEMBERG  <wl@gnu.org>
1307         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1309 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
1311         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1313         * src/roff/troff/div.h: Include `mtsm.h'.
1314         (diversion): New variables `any_chars_added', `needs_push',
1315         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1316         `saved_suppress_next_eol', `modified_tag'.
1317         New virtual member function `is_diversion'.  Update all descendants.
1319         * src/roff/troff/div.cpp (diversion::diversion,
1320         macro_diversion::macro_diversion): Updated.
1321         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1322         `suppress_next_eol'.
1323         (top_level_diversion::space): Handle `curenv->seen_space'.
1324         (page_offset): Update tag handling.
1325         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1327         * src/roff/troff/env.h (environment): Make `tabs' public.
1328         Remove `ignore_next_eol', `emitted_node'.
1329         Update `output_line', `output'.
1330         New variables `seen_space', `seen_eol', `suppress_next_eol',
1331         `seen_break'.
1332         New member functions `construct_state', `make_tag',
1333         `construct_format_state, `construct_new_line_state,
1334         `dump_troff_state'.
1335         Remove `add_html_tag', `make_html_tag'.
1337         * src/roff/troff/env.cpp: New externs `suppress_push',
1338         `get_diversion_state', `global_diverted_space'.
1339         (pending_output_line): New variable `was_centered'.
1340         Update constructor and all callers.
1341         (pending_output_line::output): Call `curenv->construct_format_state'.
1342         (environment::environment, environment::copy): Updated.
1343         (environment::output): Handle `was_centered'.
1344         (environment::add_char): Handle construct and diversion state.
1345         (environment::add_node): Handle construct state.
1346         (environment::newline): Handle `was_centered'.
1347         (environment::output_line): Updated.
1348         (environment::possibly_break_line): Updated.
1349         Update tag handling.
1350         (environment::add_html_tag): Replaced with...
1351         (environment::make_tag): New function.
1352         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1353         (environment::dump_troff_state): New debugging function.
1354         (environment::construct_state, environment::construct_format_state,
1355         environment::construct_new_line_state): New functions.
1356         (environment::do_break): Updated.
1357         Handle `global_diverted_space'.
1358         (environment::handle_tag): Update tag handling.
1359         (point_size, fill, do_break_request): Don't call `add_html_tag'.
1360         (no_fill): Don't call `add_html_tag'.
1361         Set `suppress_next_eol'.
1362         (center, right_justify, line_length, indent, temporary_indent,
1363         set_tabs):
1364         Update tag handling.
1366         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1367         (input_iterator): New variables `is_diversion', `diversion_state'.
1368         Update constructors.
1369         (input_stack): New member functions `get_div_level',
1370         `get_diversion_state', `check_end_diversion'.
1371         New variables `div_level', `diversion_state'.  Initialize them.
1372         (suppress_push, global_diverted_space): New global variables.
1373         (input_stack::finish_get, input_stack::finish_peek,
1374         input_stack::remove_boundary, input_stack::end_file,
1375         input_stack::clear, input_stack::pop_macro): Call
1376         `check_end_diversion'.
1377         (input_stack::push): Handle `div_level' and `diversion_state'.
1378         (get_diversion_state): New function.
1379         (diverted_space_node::reread): Handle `global_diverted_space'.
1380         (macro::macro): Update constructors.
1381         (macro::is_diversion): New function.
1382         (macro::operator=): Set `is_a_diversion'.
1383         (string_iterator): New member function `is_diversion'.
1384         (string_iterator::string_iterator): Update constructors.
1385         (string_iterator::fill): Set `div_nest_level'.
1386         (macro_iterator): New member function `is_diversion'.
1387         (do_if_request): Handle `suppress_push'.
1388         (tag, taga): New functions.
1389         (init_input_requests): Add `tag' and `taga' requests.
1391 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
1393         * src/include/font.h (font): New member function
1394         `get_image_generator'.
1395         New variables `unscaled_charwidths' and `image_generator'.
1397         * src/libs/libgroff/font.cpp (font::get_width): Always return the
1398         character's unscaled width if `font::unscaled_charwidths' is set.
1399         (font::get_image_generator): New function.
1400         (font::load_desc): Check the `unscaled_charwidths' and
1401         `image_generator' keywords.
1403         * src/libs/libgroff/fontfile.cpp: Initialize
1404         `font::unscaled_charwidths' and `font::image_generator'.
1406         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1408         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1410         * man/groff_font.man: Document `unscaled_charwidths' and
1411         `image_generator'.
1413         * src/preproc/html/pre-html.cpp: Include `device.h'.
1414         (image_gen): New global variable.
1415         (imageList::createPage): Use `image_gen'.
1416         (main): Use `image_generator' keyword.
1418 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1420         * tmac/html.tmac: Handle \[sqrtex].
1422 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1424         * src/include/printer.h (printer): New virtual method `round_width'.
1426         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1427         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1428         src/devices/grotty/tty.cpp (printer::round_width): New function
1429         member.
1431         * src/devices/grohtml/post-html.cpp (printer::round_width): New
1432         function member.
1433         (html_printer::set_numbered_char): Use it.
1435 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
1437         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1439         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1441         * configure: Regenerated.
1443         * Makefile.in (GHOSTSCRIPT): New variable.
1444         (MDEFINES): Add GHOSTSCRIPT.
1446 2004-10-03  Werner LEMBERG  <wl@gnu.org>
1448         * INSTALL.gen: Updated (taken from texinfo CVS).
1450 2004-09-28  Werner LEMBERG  <wl@gnu.org>
1452         * NEWS: Updated.
1454 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1456         * tmac/groff_www.man: Revised and updated.
1458 2004-09-26  Werner LEMBERG  <wl@gnu.org>
1460         Fix \$@ and \$* to handle any number of arguments.
1462         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1463         characters.
1465         * src/roff/troff/input.cpp (input_iterator::internal_level):
1466         Removed.
1467         (input_stack): New member functions `increase_level' and
1468         `decrease_level'.
1469         (input_stack::get_level): Don't use `internal_level'.
1470         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1471         (end_quote_iterator): Completely removed.
1472         (interpolate_arg): Build string for \$@ and \$* which is then
1473         pushed onto the input stack.
1475 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
1477         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1478         2004-09-19.
1480 2004-09-23  Werner LEMBERG  <wl@gnu.org>
1482         * tmac/an-old.tmac (ne): Using default scaling operator.
1484 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1486         This change implements the following features:
1488         PORPHANS
1489           New numeric register: Defines number of lines following LP, PP,
1490           QP, IP or XP, which must be kept together, before any automatic
1491           page break.  If insufficient space remains on the current page, a
1492           page break is forced before the new paragraph begins.
1494         HORPHANS
1495           New numeric register: Sets number of lines of following paragraph
1496           which must be kept with a heading, defined by NH or SH, before any
1497           automatic page break.  If insufficient space remains on the
1498           current page, a page break is forced before the heading.
1500         GROWPS
1501           (Thanks to Joerg van den Hoff, for this idea).
1503           New numeric register: Sets the first level of heading (set with
1504           NH), which will keep the same point size as body text; e.g. if
1505           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1506           point size specified by \n[PS], but .NH 2 and .NH 1 will have
1507           progressively larger point sizes, determined by \n[PSINCR] (see
1508           below).
1510         PSINCR
1511           New numeric register: Sets the point size increment for each level
1512           of heading, (set with NH), below the threshold level set by
1513           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1514           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1515           and all other levels will remain at 10pt, (because \n[PS] = 10).
1517         SH
1518           Existing macro now accepts a numeric argument, to make heading
1519           size match that of NH with same argument value, when the
1520           GROWPS/PSINCR feature is enabled.
1522         SN-DOT
1523           New string, set by NH macro, replaces the existing (undocumented)
1524           use of SN, to represent the assigned section number.
1526         SN-NO-DOT
1527           New string, set by NH macro, represents the assigned section
1528           number, but omits the terminal period (periods at intermediate
1529           levels are retained).
1531         SN
1532           String set by NH macro, originally undocumented, now implemented
1533           as an alias for SN-DOT (which reproduces original behaviour).
1535         * tmac/s.tmac (PORPHANS): New register.
1536         (par*start): Use it.
1537         (HORPHANS, GROWPS, PSINCR): New registers.
1538         (SH-NO-TAG, @SH): Use them.
1539         (@NH): Improved.
1541 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1543         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1544         of `Ds' and `De' macros.
1546 2004-09-10  Werner LEMBERG  <wl@gnu.org>
1548         In tbl, handle \a as an interpreted leader character if in
1549         compatibility mode.
1551         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1552         LEADER_CHAR): New macros.
1553         (compatible_flag): New declaration.
1555         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1556         LEADER_3, and LEADER_4 to `state'.
1557         (table_input::get): Handle `\a'.
1559         * src/preproc/tbl/table.cpp (PREFIX): Removed.
1560         (LEADER_REG): New macro.
1561         (table::init_output): Define LEADER_REG string register if in
1562         compatibility mode.
1564         * src/preproc/tbl/tbl.man: Document it.
1566 2004-08-18  Werner LEMBERG  <wl@gnu.org>
1568         * tmac/doc.tmac (An): Fix error message.
1570 2004-08-06  Werner LEMBERG  <wl@gnu.org>
1572         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1573         file can't be opened.  UNIX tbl has the same behaviour.
1575 2004-08-05  Y T  <doarhop@hotmail.com>
1577         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1578         (DBRead): If in compatibility mode, take into account the text
1579         when computing figure boundaries.
1581 2004-08-05  Werner LEMBERG  <wl@gnu.org>
1583         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
1584         from Tadziu Hoffmann.
1586 2004-08-03  Werner LEMBERG  <wl@gnu.org>
1588         * doc/meref.me: Document `_M' register.
1590 2004-08-03  Martin Husemann  <martin@duskware.de>
1592         Make hpftodit work correctly on big-endian systems.
1594         * src/utils/hpftodit/hpftodit.cpp (File): New method
1595         `get_uint32(char *)'.
1596         (entry): New member `orig_value'.
1597         (read_tags): Use new method.
1598         (output_font_name, read_and_output_pcltypeface, dump_ascii):
1599         Updated.
1601 2004-08-01  Werner LEMBERG  <wl@gnu.org>
1603         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
1604         are already in X11's `macros.t' file.
1606 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1608         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1609         Fix casting bug.
1610         (read_and_output_pcltypeface): Handle strings with length <= 4.
1612 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1614         * tmac/s.tmac (pg@top): Don't save `PO' register.
1615         (pg*end-col, pg*end-page): Directly use `PO' register.
1617 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1619         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1621         * src/preproc/refer/refer.cpp (output_references): Check for
1622         empty hash table.
1623         * src/preproc/refer/refer.man: Improve documentation of
1624         `bibliography' command.
1626 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1628         Add requests `fcolor' and `gcolor'.
1630         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1631         New functions.
1632         (init_env_requests): Add `fcolor' and `gcolor'.
1634         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1636         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1637         Document new requests.
1639 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1641         Add support for fractional point sizes in ms macros.  A value for
1642         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1643         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1645         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1646         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1648         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1650 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1652         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1653         Update constructor.
1654         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1655         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1657 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1659         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1660         * tmac/groff_mdoc.man: Updated.
1662 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1664         * doc/groff.texinfo: Further improve documentation of `hcode'.
1666 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1668         Improve appearance of arrows in pic.
1670         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1671         arrow head thin.
1672         Use two line segments for drawing non-filled arrow head.
1673         (line_object::print, spline_object::print): Shorten line length to
1674         avoid arrow sticking.
1675         (arc_object::print): Take arrow direction into account.
1677 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1679         * tmac/groff_www.man: Update documentation of .MPIMG.
1681 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1683         * tmac/an-old.tmac (RI): Always start with font `R'.
1684         (RI, IR): Properly end with font `R'.
1686 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1688         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1689         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1690         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1691         Don't pass more than six arguments to .R, .I, .B, etc., for
1692         compatibility with traditional troff macros.
1694 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1696         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1697         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1698         Update all users.
1699         (PUSH_COMP_MODE): New internal character constant.
1700         Update all users.
1702         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1703         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1704         (token::next, macro::append): Handle PUSH_COMP_MODE.
1705         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1706         POP_GROFFCOMP after each of the decoded arguments to make them
1707         independent from the compatibility mode status.
1708         (comp_mode): Add `COMP_ENABLE'.
1709         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1710         (define_string, append_string, define_macro, define_indirect_macro,
1711         append_macro, append_indirect_macro): Handle `compatible_flag'.
1712         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1714         * man/groff_diff.man, doc/groff.texinfo: Updated.
1716 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1718         * doc/groff.texinfo: Improve documentation of `hcode'.
1719         Use @documentencoding and convert document to latin-1; to do that
1720         make latin characters active and assign proper macros (within a
1721         @tex...@end tex environment).
1722         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1723         * doc/Makefile.sub (groff): Ditto.
1725 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1727         Implement two new conditional operators `F <name>' and `S <name>'
1728         which check whether <name> is a valid font or style, respectively.
1730         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1731         (text_file::text_file): Updated.
1732         (text_file::error): Don't emit message if `silent' is set.
1733         (font::load_font): Add optional third argument (which is directly
1734         passed to `load'.
1735         (font::load): Add optional second argument to check the header of
1736         a font only, without emitting warning or error messages.
1737         * src/include/font.h (font): Updated.
1739         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1740         conditionals.
1741         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1742         fourth argument to check a font without mounting.
1743         (check_font, check_style): New functions.
1744         * src/roff/troff/node.h: Updated.
1746         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1747         Updated.
1749 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1751         Implement new string-valued register `.sty' to return the current
1752         style name.
1754         * env.cpp (environment::get_style_name_string): New function.
1755         (init_env_requests): Add `.sty' register.
1756         * env.h (environment): Updated.
1757         * node.cpp (font_info): Make `get_style_name' a friend.
1758         (get_style_name): New function.
1759         * node.h: Updated.
1761         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1762         Updated.
1764 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1766         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1767         `nospaces' option.
1769 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1771         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1772         and \n[mo] to avoid dependency on current date.
1774 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1776         * Makefile.sub (install_data): New target.
1778 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1780         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1782 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1784         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1785         order of libraries.
1786         (install_data): Add $(srcdir).
1788         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1789         libraries.
1791 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1793         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1794         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1795         Add test for Xmu library.
1796         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1797         GROFF_APPRESDIR_DEFAULT): New macros.
1799         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1800         and GROFF_APPRESDIR_DEFAULT.
1802         * configure: Regenerated.
1804         * Makefile.in (appresdir): New variable.
1805         (MDEFINES): Add appresdir.
1807         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1808         -Xt.
1809         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1811         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1812         `$(srcdir)/eign', not `eign'.
1814         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1816         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1817         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1818         Protect (g)xditview with `\%' to avoid hyphenation.
1819         Other minor formatting.
1821 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1823         Integrate gxditview into groff's standard directory hierarchy.
1825         * src/xditview/*: Moved to ...
1826         * src/devices/xditview/*: Here.
1827         Moved DviChar.h and XFontName.h to src/include.
1828         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1829         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1830         Moved xtotroff.c to new directory src/utils/xtotroff.
1831         Provide proper Makefile.sub files (reusing the stuff from
1832         Imakefile.in).
1833         DESC renamed to DESC.in.
1834         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1835         Converted everything from K&R to ANSI C.
1836         Decorated with const where appropriate.
1837         Cast string constants with `String' and `char *' where appropriate.
1838         Made it compile with C++ (used as a C compiler).
1839         Removed other minor compiler warnings.
1841         * src/devices/xditview/device.c: Include config.h, string.h, and
1842         defs.h.
1843         Don't declare `exit', `strtok', `strchr', and `getenv'.
1844         (FONTPATH): Remove.
1846         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1847         `XFormatFontName'.
1849         * src/devices/xditview/xditview.c: Include config.h.
1850         Include stdio.h earlier.
1851         Protect declaration of `popen' and `pclose' with
1852         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1853         Replace `caddr_t' with `XtPointer'.
1854         (MakePromptFunc): New typedef.
1855         (DoPrint): Use RETSIGTYPE.
1856         (promptfunction): Change type to MakePromptFunc.
1857         (MakePrompt): Use MakePromptFunc for third argument.
1858         (xmalloc): Removed.
1860         * src/devices/xditview/ad2c: Add casts to `String'.
1862         * src/include/XFontName.h (XFontNameString): Don't use array
1863         notation.
1864         Add prototypes for `XParseFontName', `XFormatFontName',
1865         `XCompareFontName', and `XCopyFontName'.
1867         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1868         `XFontName.h'.
1870         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1871         Don't declare `XParseFontName' and `XFormatFontName'.
1872         (xmalloc): Removed.
1873         (main): Remove `optind' and `optarg'.
1875         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1876         (to select programs which need X).
1877         Make XDEVIDIRS depend on `FORCE'.
1878         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1879         X support).
1880         (MDEFINES): Updated.
1881         (LIBDIRS): Use XLIBDIRS.
1882         (CPROGDIRS): Use XPROGDIRS.
1883         (DEVDIRS): Remove font directories for gxditview.
1884         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1885         (EXTRADIRS): Remove src/xditview.
1887         * Makefile.sub (DISCLEANFILES): Updated.
1889         * Makefile.comm (LIBXUTIL): New variable.
1890         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1891         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1893         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1895         * aclocal.m4 (GROFF_X11): New function.
1897         * configure.ac: Call GROFF_X11.
1898         Don't create src/xditview/Imakefile.
1899         Don't emit notice how to build gxditview.
1901         * configure: Regenerated.
1903         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1905 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1907         * Makefile.in (CPPFLAGS): Define.
1908         (MDEFINES): Add CPPFLAGS.
1910 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1912         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1914 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1916         Fix problems with `friend name injections'.
1918         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1919         make_script_box), src/roff/troff/div.h (end_diversions),
1920         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1921         change 2004-04-08.
1923 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1925         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1927 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1929         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1930         src/libs/libgroff/color.cpp: Include lib.h.
1932 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1934         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1935         through Forte 6u1, and for how to get GNU make on Solaris.
1937 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1939         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1940         by Paul Eggert.
1942 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1944         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1945         rule.
1947 2004-05-14  Werner LEMBERG  <wl@gnu.org>
1949         * REVISION: Set to 2.
1951         * aclocal.m4 (GROFF_STDINT_H): Removed.
1952         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1954         * configure.ac: Updated.
1955         * configure, src/include/config.hin: Regenerated.
1957         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1958         inttypes.h conditionally.
1960 2004-05-13  Werner LEMBERG  <wl@gnu.org>
1962 Version 1.19.1 released
1963 =======================
1965 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1967         * src/preproc/refer/label.y (same_author_last_name,
1968         same_author_name): Handle empty sort keys.
1970 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1972         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1973         tmac/TODO: Updated.
1975         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1976         doc-str-Lb-librt): Reset font.
1977         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1978         Provide `doc-str-Lb' to reset font.
1979         * tmac/groff_mdoc.man: Updated.
1981 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1983         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1984         snprintf versions which don't conform to ANSI C 99 (this is,
1985         counting the string's trailing null byte in the return value).
1987 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1989         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1990         that all implementations of sprintf handle null pointers correctly.
1992 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1994         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1995         Document `.U' register.
1997         * src/roff/troff/env.cpp (environment::mark_last_line)
1998         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
2000 2004-05-04  Larry Kollar  <kollar@alltel.net>
2002         New read-only register `.U'; it returns 1 in safer mode and 0
2003         otherwise.
2005         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
2006         register.
2008 2004-05-03  Werner LEMBERG  <wl@gnu.org>
2010         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2012 2004-04-17  Werner LEMBERG  <wl@gnu.org>
2014         * src/include/font.h (font): Use `int' for ch_index.
2015         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
2016         font::compact): Updated.
2018         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
2019         warnings.
2021         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
2022         (hyphen_word): Fix compiler warnings.
2023         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
2024         `char'.
2025         Update all callers.
2026         (get_delim_number, get_line_arg): Change second argument type to
2027         `unsigned char'.
2028         (macro_header::copy, token::next, do_define_string,
2029         do_define_character, substring_request, asciify_macro,
2030         unformat_macro, read_size, non_interpreted_node::interpret,
2031         while_request, main: Fix compiler warnings.
2032         (read_color_draw_node): Initialize `col'.
2034         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
2035         `start_col' and `end_col' of type `int'.
2036         (vertical_rule): Make `col' of type `int'.
2038         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
2039         for EOF.
2041         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
2042         New arrays.
2043         (format_serial): Use them to remove dependency on ASCII.
2045         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
2046         compiler warning.
2047         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2048         Ditto.
2050         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
2051         compiler warnings.
2052         (glyph): Change type of `hpos' to `int'.
2054         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
2055         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
2057         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
2059         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
2061 2004-04-16  Werner LEMBERG  <wl@gnu.org>
2063         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
2064         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
2065         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
2066         `double' instead of `float' everywhere.
2067         * src/preproc/grn/main.cpp: Use `double' instead of `float'
2068         everywhere.
2069         (main): Add return value.
2070         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
2071         everywhere.
2072         Update all user functions.
2074         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
2075         src/preproc/eqn/box.h, src/preproc/pic/object.h,
2076         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
2077         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
2078         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
2079         src/roff/troff/input.cpp, src/roff/troff/request.h,
2080         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
2081         declarations.
2083         * src/utils/indxbib/signal.c: Include stdlib.h.
2085 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2087         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
2088         before the first page.
2090 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
2092         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
2093         (doc-operating-system-*): Updated.
2094         * tmac/doc-syms (doc-str-St-*): Various small fixes.
2095         (doc-str-Lb-*): Add more library names.
2097 2004-04-10  Art Haas  <ahaas@airmail.net>
2099         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
2100         use anonymous type.
2102 2004-04-09  Art Haas  <ahaas@airmail.net>
2104         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
2106 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
2108         * arch/misc/shdeps.sh: Generate better comment for sed script.
2110 2004-04-08  Art Haas  <ahaas@airmail.net>
2112         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2113         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
2114         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
2115         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
2116         (polyfill), src/preproc/grn/main.cpp (polyfill),
2117         src/preproc/refer/command.cpp (command_table),
2118         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
2119         gcc 3.5 doesn't like).
2121 2004-04-08  Werner LEMBERG  <wl@gnu.org>
2123         Removing many compiler warnings.  groff should now compile with
2124         a C++ compiler used for C files also.  [Simple variable renamings
2125         to avoid shadowing aren't logged in detail.]
2127         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
2128         (draw_dvi_printer::draw) ['c']: Enclose in block.
2130         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
2131         (page::add_line): Fix typos.
2132         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
2134         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
2135         Some local variable renamings.
2136         * src/devices/grolbp/lbp.h: Some local variable renamings.
2138         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
2139         variable renamings.
2141         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
2142         Remove redundant local variable declaration.
2143         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
2144         Don't use `caddr_t' but `void *'.
2145         Enclose functions with `extern "C"' for C++.
2147         * src/libs/libdriver/input.cpp (remember_filename,
2148         remember_source_filename): Use cast for string constant.
2150         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
2151         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
2152         src/libs/libgroff/geometry.cpp: Some local variable renamings.
2153         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
2154         style.
2155         Enclose functions with `extern "C"' for C++.
2156         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
2157         (needs_quoting): Return `int'.
2158         (quote_arg): Add proper casts to malloc and realloc.
2159         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
2160         various MS Windows environments.
2161         (spawnvp_wrapper): Add proper cast to malloc.
2163         * src/preproc/eqn/box.h: Remove redundant declarations of
2164         `make_script_box', `make_mark_box' and `make_lineup_box'.
2165         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
2166         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
2167         variable renamings.
2169         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
2170         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
2171         (dx, dy): Renamed functions to...
2172         (deltax, deltay): This.
2173         * src/preproc/grn/main.cpp: Some local variable renamings.
2174         (deffont): Add `const'.
2175         (initpic, conv): Use cast for string constant.
2177         * src/preproc/html/pre-html.cpp: Some local variable renamings.
2178         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
2179         (char_buffer::run_output_filter): Second argument is unused.
2180         * src/preproc/html/pushback.cpp: Some local variable renamings.
2182         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
2183         * src/preproc/pic/object.cpp: Some local variable renamings.
2185         * src/preproc/refer/label.y (lookup_label): Remove redundant
2186         declaration of local variable.
2188         * src/preproc/soelim.cpp: Remove redundant declaration of
2189         `interpret_lf_args'.
2191         * src/preproc/tbl/main.cpp: Some local variable renamings.
2193         * src/roff/groff/groff.cpp (main): Use cast for string constant.
2194         * src/roff/groff/pipeline.c: Enclose declarations of `error',
2195         `c_fatal', and `i_to_a' with `extern "C"' for C++.
2196         Don't use C++-style comments.
2198         * src/roff/troff/env.h: Remove redundant declaration of `title'.
2199         * src/roff/troff/node.h, src/roff/troff/env.cpp,
2200         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
2201         renamings.
2202         * src/roff/troff/div.h: Remove redundant declaration of
2203         `end_diversions'.
2204         * src/roff/troff/troff.h: Remove redundant declaration of
2205         `cleanup_and_exit'
2206         * src/roff/troff/input.cpp: Remove redundant declaration of
2207         `handle_first_page_transition' and `process_input_stack'.
2209         * src/utils/hpftodit.cpp: Some local variable renamings.
2211         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
2212         for C++.
2213         Don't define RETSIGTYPE.
2214         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
2216         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
2217         (error): Use `const' in argument.
2218         (main): Remove redundant declaration of `optind'.
2219         Move declaration of `Version_string' to top-level.
2221         * PROBLEMS: Document difficulties compiling signal.c if a C++
2222         compiler is used for C.
2224 2004-04-07  Werner LEMBERG  <wl@gnu.org>
2226         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
2228 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
2230         Make scripts like nroff.sh and neqn.sh portable across various
2231         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
2232         non-POSIX path separators.  The idea is to extend those scripts to
2233         decide at run-time (of the script) which path separator to use.
2235         * arch/misc/Makefile.sub: New file.
2236         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
2237         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
2238         a proper definition of the variable `GROFF_RUNTIME'.
2240         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
2241         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
2242         (PROGDEPDIRS): New variable.
2243         `FORCE' it.
2244         (PROGDIRS): Add PROGDEPDIRS.
2246         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2247         Don't substitute @SEP@ and @BINDIR@.
2248         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2249         (PATH): Use GROFF_RUNTIME.
2251         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2252         Don't substitute @SEP@ and @BINDIR@.
2253         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2254         (PATH): Use GROFF_RUNTIME.
2256 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2258         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2259         Cygwin which doesn't handle stderr correctly.
2261 2004-03-08  Werner LEMBERG  <wl@gnu.org>
2263         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2264         against empty argument.  Problem reported by <cgd@broadcom.com>.
2266 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2268         * Makefile.in (SEP): Replaced with...
2269         (RT_SEP, SH_SEP): Separators for the target platform's native path
2270         separator and the build environment, respectively.
2271         (fontpath, tmacpath): Use RT_SEP.
2272         (MDEFINES): Updated.
2274         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2275         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2276         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2277         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2279 2004-03-05  Werner LEMBERG  <wl@gnu.org>
2281         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
2282         reduce alignment problems with newer printers which use built-in
2283         TrueType fonts (instead of the older Intellifonts).  The ideal
2284         solution is to provide a second set of groff metric files, but this
2285         is extremely time-consuming to produce, given that HP's metric
2286         files are very rudimentary.
2288 2004-03-01  Werner LEMBERG  <wl@gnu.org>
2290         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2291         s/operand/argument/ in error message.
2293 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2295         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2296         is in use.
2298 2004-03-01  Antti Kantee  <pooka@netbsd.org>
2300         * tmac/s.tmac (XE): Fix error message.
2302 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
2304         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2305         New macros.
2307         * src/roff/groff/pipeline.c: Declare strcasecmp.
2308         (run_pipeline) [_WIN32]: Use function name variants which don't
2309         start with `_'.
2310         Fix stream handling.
2312 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
2314         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2315         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2316         for platforms which use the native Win32 runtime libraries.
2317         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2319         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2320         QUOTE_ARG_REALLOC_ERROR): Fix string.
2322         * src/preproc/html/pre-html.cpp: Remove declaration of
2323         `spawnvp_wrapper'.
2324         Don't use __MINGW32__.
2325         s/DEBUG_FILE/DEBUG_FILE_DIR/.
2326         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2327         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2328         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2329         calls to `set_redirection' and `WAIT'.
2330         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2331         Fix calls to `set_redirection' and `save_and_redirect'.
2332         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2333         to `set_redirection' and `save_and_redirect'.
2334         (usage): Fix message.
2335         (makeTempFiles, main): Use `DEBUG_FILE'.
2337 2004-02-21  Werner LEMBERG  <wl@gnu.org>
2339         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2341 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
2343         * src/libs/libgroff/quotearg.c: New file, providing proper argument
2344         quoting for MSVC's spawn* and exec* functions.
2345         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2346         spawnvp with proper quoting for MSVC.
2348         * src/libs/libgroff/assert.cpp (program_name),
2349         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2350         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2352         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2354         * src/include/error.h (program_name): Declare as `extern "C"'.
2355         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2357 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
2359         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2360         spawnvp_wrapper.
2361         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2363 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
2365         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2366         variable.
2367         (sbasename) [__MSDOS__ || ...]: New function.
2368         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2369         generic algorithm.
2370         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2371         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2372         of XXX.
2373         Use STDOUT_FILENO instead of hardcoded file handle.
2374         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2376 2004-02-19  Werner LEMBERG  <wl@gnu.org>
2378         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2379         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2381 2004-02-18  Werner LEMBERG  <wl@gnu.org>
2383         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2384         new font and mapping files.
2386 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
2387             Keith Marshall  <keith.d.marshall@ntlworld.com>
2389         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2390         an input pipe.  This is needed for the MSVC compiler to make troff's
2391         `-o' option work.
2393         * src/roff/troff/div.cpp: Include nonposix.h.
2394         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2396 2004-02-17  Werner LEMBERG  <wl@gnu.org>
2398         * font/devlj4/generate/special.awk: New script.
2399         * font/devlj4/generate/Makefile (S): Use special.awk.
2400         * font/devlj4/*: Regenerated, including the following new files:
2401         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2402         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2403         * NEWS: Document new lj4 fonts and revised hpftodit.
2405 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
2407         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2409 2004-01-25  Werner LEMBERG  <wl@gnu.org>
2411         * src/libs/libgroff/progname.cpp: Replaced with...
2412         * src/libs/libgroff/progname.c: New file.
2413         * src/libs/libgroff/Makefile.sub: Updated accordingly.
2415 2004-01-17  Werner LEMBERG  <wl@gnu.org>
2417         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2419 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
2421         * font/devlj4/generate/wingdings.map,
2422         font/devlj4/generate/symbol.map: Include unnamed glyphs.
2423         Use groff glyph names where possible.
2424         * src/devices/grolj4/lj4_font.man: Minor updates.
2426 2004-01-13  Werner LEMBERG  <wl@gnu.org>
2428         * tmac/www.tmac (DC): Handle TTY devices.
2430         * doc/webpage.ms: Document viewCVS from ffii.org.
2431         * NEWS, README: Updated.
2433         * src/roff/groff/groff.man: Mention lj4_font man page.
2435         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2436         variables.
2437         (FONTS): Add SYMBOL and WINGDINGS.
2438         (SYMBOL, WINGDINGS): New targets.
2440 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
2442         * src/devices/grolj4/lj4_font.man: New man page.
2443         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2444         * src/devices/grolj4.man: Mention lj4_font man page.
2446         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2447         * src/utils/hpftodit/hpftodit.man: Document it.
2448         (CW): New macro.
2449         Remove details about fonts (which are now in lj4_font.man).
2451         * font/devlj4/generate/symbol.map,
2452         font/devlj4/generate/wingdings.map: New files.
2454 2004-01-12  Werner LEMBERG  <wl@gnu.org>
2456         * README: Mention ffii's viewcvs access.
2458 2004-01-09  Werner LEMBERG  <wl@gnu.org>
2460         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2462 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
2464         Revert most of the change from 2004-01-03 to better control used
2465         symbol sets.
2467         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2468         (text_symbol_sets, special_symbol_sets): New arrays.
2469         (symbol_set_table): New global variable.
2470         (read_symbol_sets): Use search order given in the text_symbol_sets
2471         and special_symbol_sets arrays.  If command line flag -a is not
2472         given, search both arrays.
2473         (output_charset): Require x_height_tag only for command line flag -i.
2475 2004-01-06  Werner LEMBERG  <wl@gnu.org>
2477         Implement string-valued registers \n[.m] and \n[.M] to return the
2478         name of the current drawing and background color, respectively.
2480         * src/roff/troff/symbol.h: Moved to...
2481         * src/include/symbol.h: Here.
2482         Small fixes to make it work outside of the `troff' directory.
2483         * src/roff/troff/symbol.cpp: Moved to...
2484         * src/libs/libgroff/symbol.cpp: Here.
2485         Small fixes to make it work outside of the `troff' directory.
2487         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2488         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2489         Updated.
2491         * src/include/color.h: Include symbol.h.
2492         (color): Add new field `nm'.
2493         * src/libs/libgroff/color.cpp (color::color): Updated.
2495         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2496         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2497         src/roff/troff/reg.cpp: Don't include symbol.h.
2499         * src/roff/troff/env.cpp: Don't include symbol.h.
2500         (environment::get_glyph_color_string,
2501         environment_get_fill_color_string): New member functions.
2502         (init_env_requests): Handle `.m' and `.M' registers.
2503         * src/roff/troff/input.cpp: Don't include symbol.h.
2504         (default_symbol): Moved to symbol.cpp/symbol.h.
2505         (do_glyph_color, do_fill_color, define_color): Pass symbol name
2506         to color constructor.
2507         * src/roff/troff/env.h: Updated.
2509         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2510         Document new registers.
2512 2004-01-05  Werner LEMBERG  <wl@gnu.org>
2514         * src/roff/troff/node.cpp (space_node::get_breakpoints,
2515         space_node::nbreaks): Protect against zero `next' field.
2517 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
2519         In hpftodit, use the symbol sets offered in the TFM.
2521         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2522         (symbol_set, text_symbol_sets, special_symbol_sets,
2523         symbol_set_table): Removed.
2524         (get_printcode): Removed.
2525         (read_symbol_sets): Initialize `symbol_set' field with
2526         `NO_SYMBOL_SET'.
2527         Simplify code to just use the `kind' value.
2528         (output_charset): Improve output formatting.
2529         (dump_symbols): Simplified.
2531 2004-01-02  Werner LEMBERG  <wl@gnu.org>
2533         * font/devlj4/generate/text.map: Add more MSL numbers.
2535 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
2537         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2538         (text_symbol_sets): Add more symbol sets.
2539         (debug_flag): New static variable (moved from `main').
2540         (get_printcode, show_symset): New functions.
2541         (main): Remove `debug_flag'.
2542         (output_charset): Use `show_symset'.
2543         (dump_symbols):  Use `show_symset'.
2544         Print symsets for all glyphs.
2545         (read_map): Actually call `unicode_to_ucode_make' but this time
2546         correctly.
2548 2004-01-01  Werner LEMBERG  <wl@gnu.org>
2550         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2551         Fix placement of comments.
2553 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
2555         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2556         option `-d' is given.
2557         (output_charset): Improve warning messages to give more information.
2558         (dump_symbols): Make information more precise.
2559         (usage): Updated.
2560         (read_map): Don't call unicode_to_ucode_name; the glyph names must
2561         appear as-is and shouldn't be decomposed.
2563 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2565         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2566         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2567         (FONTS): Add TrueType font families Arial and Times New Roman.
2568         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2569         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2570         `fl'.
2572 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
2574         * test-groff.in (SEP): Quote value.
2575         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2576         `tem' to `char*' to avoid deallocation of a pointer to a constant
2577         object which some compilers don't like.
2579 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2581         * font/devlj4/generate (text.map, special.map): Rewritten to work
2582         with the new hpftodit version.
2584 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
2586         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2587         set and 8bit character code for all glyphs also.
2589 2003-12-30  Werner LEMBERG  <wl@gnu.org>
2591         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2593 2003-12-29  Werner LEMBERG  <wl@gnu.org>
2595         More fixes for MSVC compiler.
2597         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2598         $(SEP).
2600         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2601         STDERR_FILENO) [_MSC_VER]: Define conditionally.
2602         (getpid) [_MSC_VER]: Remove.
2603         Include direct.h and process.h conditionally.
2605         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2606         parentheses for a_delete.
2608         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2610         * test-groff: Replaced with...
2611         * test-groff.in: This new template to handle path separator
2612         properly.
2614         * configure.ac: Check for direct.h and process.h.
2615         Generate test-groff script.
2616         * configure, src/include/config.hin: Regenerated.
2618 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2620         Add integral extension glyph.
2621         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2623         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2625         * font/devps/generate/textmap: Provide entry for `integralex' to
2626         override (old) PUA value of the AGL.
2627         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2628         * font/devps/*: Regenerated.
2630         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2631         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2633 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2635         Add forgotten `coproduct' symbol (already available for DVI).
2637         * font/devhtml/R.proto, font/devps/generate/textmap,
2638         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2639         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2640         U+2210 (\[coproduct]).
2642 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2644         hpftodit has been extended to handle TrueType metric files and
2645         more glyphs.  See hpftodit.man for more details.
2647         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2648         ctype.h, and unicode.h.
2649         s/msl/charcode/ everywhere since we now handle Unicode values also.
2650         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2651         Use it where appropriate.
2652         (MULTIPLIER): Replaced with...
2653         (multiplier): New global static variable.
2654         (scale): Updated.
2655         (tag_type): Add more TFM tags.
2656         (tag_name): New array.
2657         (ENUM_TYPE, FLOAT_TYPE): Removed.
2658         (BYTE_TYPE): New value assigned.
2659         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2660         (text_symbol_sets, special_symbol_sets): Extended to cover more
2661         sets.
2662         (check_type): Add return value.
2663         (check_units): Add parameters to get ppi and upem values.
2664         Handle TrueType TFM data.
2665         (output_font_name): New function.
2666         (output_charset): Add parameter to handle TFM type.
2667         Handle TrueType TFMs also.
2668         (em_fract): New macro.
2669         (dump_tags): Be much more verbose and handle more tags.
2670         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2671         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2672         functions.
2673         (read_map): Add parameter to handle TFM type.
2674         Handle both MSL and Unicode mappings.
2675         (main): Add two new command line options `-a' and `-q'.
2676         Updated to make use of new functions.
2677         (usage): Updated.
2679         * src/utils/hpftodit/hpuni.cpp: New file.
2681         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2682         Updated.
2684 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2686         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2688 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2690         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2691         by Michail Vidiassov <master@iaas.msu.ru>.
2693 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2695         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2696         and u0049_0307.
2697         Add missing latin-2 glyphs.
2698         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2700         * tmac/troffrc: Load `composite.tmac' earlier.
2702         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2703         u00{53,73}_0327, and u0049_0307.
2704         * tmac/X.tmac: Add u00{47,67}_0306.
2705         * tmac/tty-char.tmac: Use composite glyph names for readability.
2707         * NEWS: Updated.
2709         * src/include/unicode.h: Remove `extern' keywords.
2711 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2713         * tmac/latin5.tmac: New file.
2715 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2717         Add some glyphs needed for Turkish.
2719         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2720         and u0049_0307.
2722         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2723         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2724         u00{53,73}_0327, and u0049_0307.
2726 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2728         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2729         from 2001-10-04.
2730         Remove trailing zeros.
2732 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2734         Make \? transparent to end-of-sentence recognition.
2736         * src/roff/troff/input.cc (non_interpreted_node): Add
2737         `ends_sentence' member function.
2739 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2741         * doc/groff.texinfo: Document `dt' request correctly.
2742         Other minor typographical improvements.
2744 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2746         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2748 2003-12-10  Richard Stallman  <rms@gnu.org>
2750         * LICENSE: Better wording.
2752 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2754         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2755         * configure, NEWS: Updated.
2757 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2759         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2761 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2763         * LICENSE: Updated.
2765 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2767         * INSTALL: Improved.
2769 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2771         Use path separator character of target platform for compiled-in
2772         default paths.
2774         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2775         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2776         * configure: Regenerated.
2777         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2779 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2781         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2782         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2784 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2786         * LICENSE: New file.
2788 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2790         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2791         ligatures present in AFM files since groff currently only
2792         understands some standard ligatures and nothing else.
2794 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2796         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2797         option -v is given.
2799         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2800         messages.
2801         Close stdout copy.
2802         Don't use Unix wait flags.
2804 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2806         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2807         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2808         src/roff/troff/uniuni.cpp: Moved to...
2809         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2810         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2811         src/libs/libgroff/uniuni.cpp: Here.
2813         * src/include/Makefile.sub.old (HDRS),
2814         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2815         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2817 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2819         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2820         `DEBUG_FILE'.
2821         Updated all users.
2823 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2825         * groff.texinfo: Document special behaviour of `.vs 0'.
2826         Improve documentation of `cflags' request.
2827         * NEWS: Updated.
2829 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2831         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2832         * font/devlj4/CORONET: Regenerated.
2834 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2836         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2837         if processing hyphenation patterns in traditional mode.
2838         Improve error messages.
2840 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2842         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2843         troff_output_file::put_char): Fix type of local variable `c'.
2845 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2847         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2848         declarations.
2849         (i_to_a): Removed.  libgroff already provides this function.
2850         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2852 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2854         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2855         HAVE_DECL_SYS_LIST.
2857 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2859         * COPYING: Use correct version.
2861 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2863         LynxOS 4.0.0 doesn't declare vfprintf.
2865         * configure.ac: Check for vfprintf.
2866         * configure: Regenerated.
2867         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2868         * src/include/config.hin: Regenerated.
2870 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2872         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2874         * configure.ac: Check for vsnprintf.
2875         * configure: Regenerated.
2876         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2877         `HAVE_VSNPRINTF'.
2878         * src/include/config.hin: Regenerated.
2880 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2882         * aclocal.m4: Updated syntax to autoconf 2.59.
2883         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2884         Don't check for gsos2.
2885         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2886         working abs_top_srcdir and abs_top_builddir.
2888         * configure.ac: Updated syntax to autoconf 2.59.
2889         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2890         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2891         * configure: Regenerated.
2893         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2894         s/@groff_top_builddir@/@abs_top_builddir@/.
2896         * src/roff/groff/pipeline.c (xstrsignal):
2897         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2899 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2901         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2902         make start angle smaller than end angle to circumvent a bug in tpic
2903         handling of some versions of dvipdfm (and dvipdfmx).
2905 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2907         * src/devices/grops/grops.man: Improve section on creating EPS.
2909 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2911         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2912         -P-pletter).
2914 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2916         * doc/groff.texinfo: Fix documentation of `.if'.
2918 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2920         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2921         the form `uniXXXX' also.
2923 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2925         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2926         contrib/pic2graph/pic2graph.sh: Implement secure management of
2927         temporary files.
2928         Pass `-P-pletter' to groff to avoid data outside of the converted
2929         area -- some versions of `convert' (for example 5.3.8) don't check
2930         the bounding box of the image but always use a fixed image size
2931         (letter paper format).
2932         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2933         contrib/pic2graph/pic2graph.man: Updated.
2935         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2937 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2939         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2940         troff_output::simple_ellipse, troff_output::simple_arc,
2941         troff_output::simple_line, troff_output::simple_spline,
2942         troff_output::simple_polygon): Insert a space before arguments.
2943         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2944         latter doesn't produce a node, so the following `.sp -1' would do
2945         the wrong thing.
2946         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2947         (and we don't have to care about compatibility mode).
2948         (troff_output::set_color, troff_output::reset_color): Don't emit
2949         `.sp -1' after \M and \m.
2951         * src/roff/troff/input.cpp (old_have_input): New global variable.
2952         (input_stack::get): Handle `old_have_input'.
2953         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2954         `trapping_blank_line' depending on `old_have_input', not
2955         `have_input'.
2957 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2959         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2960         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2961         default directory names for temporary files.
2962         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2964         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2965         [__MSDOS__] (run_pipeline): Honour environment variables.
2966         Don't use `tmpnam' but `tempnam' to work around messy
2967         implementation.
2969         * README.MinGW: New file.
2971 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2973         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2974         `(*t)->next' without testing validity of `*t'.
2975         (usage): Make it more readable.
2977 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2979         Make html device run under both MS-DOS and Win32.
2981         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2982         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2983         spawn or fork+exec has to be used, and whether parent must sleep
2984         until the child process terminates.  Used in
2985         `char_buffer::run_output_filter'.
2986         (copyofstdoutfd): Removed.
2987         (char_buffer): Replace `write_file_html' and `write_file_troff'
2988         member functions with `emit_troff_output' and `run_output_filter'.
2989         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2990         macros.
2991         (replaceFd): Replaced with...
2992         (set_redirection): New auxiliary function.
2993         (waitForChild): Replaced with...
2994         (save_and_redirect): New auxiliary function for.
2996         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2997         functions.
2999 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
3001         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
3002         (GROFF_LIBC): New function.
3003         * configure.ac: Call GROFF_LIBC.
3004         Check for `kill'.
3005         * configure: Regenerated.
3007         * src/include/lib.h: Handle __MINGW32__.
3008         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
3009         Add macro for `pipe'.
3010         Define P_tmpdir.
3012         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
3013         correctly.
3015         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
3016         Implement.
3018 2003-10-13  Werner LEMBERG  <wl@gnu.org>
3020         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
3021         <chuq@chuq.com>.
3023         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
3024         directory.
3026 2003-10-12  Werner LEMBERG  <wl@gnu.org>
3028         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
3029         src/roff/troff/input.cc (usage): Updated.
3031         * NEWS, doc/groff.texinfo: Updated.
3033 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
3035         * src/libs/libgroff/searchpath.cpp
3036         (search_path::open_file_cautious): New function which also handles
3037         `-' as stdin and stdout depending on the access mode.
3038         * src/include/searchpath.h (search_path): Updated.
3040         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
3041         * src/devices/grops/ps.h: Include `searchpath.h'.
3042         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
3043         Open resource file with `include_search_path.open_file_cautious'.
3044         * src/devices/grops/grops.man: Document new `-I' switch.
3046         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
3047         (main), src/devices/grolj4/lj4.cpp (main),
3048         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
3050         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
3051         Replaced with...
3052         (include_search_path): New global variable.
3053         (include_path_append): Removed.
3054         (main): Use `include_search_path.command_line_dir' to handle `-I'.
3055         (do_file): Simplify, using new
3056         `include_search_path.open_file_cautious'.
3058         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
3059         parameter.
3060         (main): Pass arguments to `-I' to both troff and devices.
3061         Improve handling of `-V'.
3062         * src/roff/groff/groff.man: Document changes to -I and -V.
3064         * src/roff/troff/input.cpp (include_search_path): New global
3065         variable.
3066         (next_file, source, ps_bbox_request, transparent_file,
3067         process_input_file): Use new
3068         `include_search_path.open_file_cautious'.
3069         (main) Handle `-I' switch.
3070         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
3071         Use new `include_search_path.open_file_cautious'.
3072         * src/roff/troff/node.h: New extern symbol `include_search_path'.
3073         * src/roff/troff/troff.man: Document new `-I' switch.
3075 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
3077         Support multiple calls of .Lb in LIBRARY section.
3079         * tmac/doc-common (doc-in-library-section): New register.
3080         (doc-section-library): New string.
3081         (Sh): Set `doc-in-library-section'.
3082         (Rd): Updated.
3083         * tmac/doc-syms (Lb): Insert breaks before and after arguments
3084         if in LIBRARY section.
3085         * tmac/doc.tmac (doc-save-global-vars): Updated.
3086         * NEWS, tmac/groff_mdoc.man: Updated.
3088 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
3090         * tmac/doc-common (doc-default-operating-system): New variable.
3091         (Os): Use it.
3093 2003-09-08  Werner LEMBERG  <wl@gnu.org>
3095         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
3097 2003-08-31  Werner LEMBERG  <wl@gnu.org>
3099         * contrib/mom/Makefile.sub: Fix last change to make it really work.
3100         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
3101         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
3102         $(DEVFILES) are not empty.
3103         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
3105 2003-08-26  Chuck Silvers  <chuq@chuq.com>
3107         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
3108         with parallel runs of `make'.
3110 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
3112         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
3113         insert SORT_SEP.  With certain combinations of sort specifications,
3114         refer sorted entries in the wrong order.  In particular, entries
3115         with a missing field should be be sorted before all entries that
3116         have that field, before refer looks to the next field.
3118 2003-08-23  Werner LEMBERG  <wl@gnu.org>
3120         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
3121         g++ linker is used.  Reported by Mark J. Reed
3122         <mark.reed@turner.com>.
3124 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3126         Add key character `x' to tbl which makes tbl call a user-defined
3127         macro on a table cell.
3129         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
3130         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
3131         `set_modifier' after printing the compatibility request.
3132         (set_modifier): Print call to `m->macro' if not empty.
3133         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
3134         `macro'.
3135         (process_format): Implement cases `x' and `X'.
3136         * src/preproc/tbl/tbl.man, NEWS: Updated.
3138 2003-08-15  Werner LEMBERG  <wl@gnu.org>
3140         * doc/groff.texinfo: Minor fixes.
3142 2003-08-09  Werner LEMBERG  <wl@gnu.org>
3144         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
3146 2003-08-07  Werner LEMBERG  <wl@gnu.org>
3148         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
3149         argument list to nothing if there is no file to match.  Use `ls' as
3150         a protection, similar to autoconf.
3152         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
3153         empty argument lists.
3155         * doc/groff.texinfo: Improve documentation how vertical spacing
3156         and line breaks interact.
3157         Other minor fixes.
3159         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
3161 2003-08-03  Werner LEMBERG  <wl@gnu.org>
3163         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
3164         EPS (using eps2eps or similar programs to compute the bounding box).
3166 2003-07-24  Werner LEMBERG  <wl@gnu.org>
3168         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
3169         * doc/texinfo.tex: Updated from texinfo 4.6.
3170         * README.CVS: From now on we need texinfo 4.6.
3172 2003-07-23  Werner LEMBERG  <wl@gnu.org>
3174         Add requests `dei1' and `ami1' for completeness.
3176         * src/roff/troff/input.cc (calling_mode): Remove
3177         CALLING_DISABLE_COMP.
3178         (comp_mode): New enumeration.
3179         (do_define_string, define_string, define_nocomp_string,
3180         append_string, append_nocomp_string): Updated.
3181         (do_define_macro): Add third parameter.
3182         (define_macro, define_nocomp_macro, define_indirect_macro,
3183         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
3184         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
3185         functions.
3186         (ignore): Updated.
3187         (init_input_requests): Add `dei1' and `ami1'.
3189         * tmac/trace.tmac: Handle de1 and am1.
3190         (de): Improve tracing message.
3191         (am): Add missing `do'.
3192         (return): Use de1.
3194         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3195         Document new requests.
3197 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3199         Add option -G to .MPIMG to insert a gap between text and the image.
3201         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
3202         www-finish-left-ll): Updated.
3203         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
3204         (MPIMG): Make option -L and -R optional.
3205         Implement option -G.
3207 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
3209         * src/devices/grohtml/post-html.cpp
3210         (html_printer::do_file_components): Don't use `stdout' as lvalue
3211         since it can be a macro.
3213 2003-07-22  Werner LEMBERG  <wl@gnu.org>
3215         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
3216         the corresponding test in aclocal.m4.
3218 2003-07-21  Werner LEMBERG  <wl@gnu.org>
3220         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
3221         names but RGB values directly.  Otherwise pnmtopng depends on
3222         an external file `rgb.txt' which maps colour names to values.
3224 2003-07-20  Werner LEMBERG  <wl@gnu.org>
3226         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
3227         * configure, src/include/config.hin: Regenerated.
3229         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
3231 2003-07-19  Werner LEMBERG  <wl@gnu.org>
3233         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
3235 2003-07-18  Werner LEMBERG  <wl@gnu.org>
3237         * *.man: Switch to non-compatibility mode temporarily if GNU
3238         syntax extensions are used in the particular man page.
3240         * PROBLEMS: Add solutions for SGR problems.
3242 2003-07-17  Werner LEMBERG  <wl@gnu.org>
3244         Don't ignore grotty's command line options if \X'tty: sgr ...' is
3245         used to change the drawing scheme.
3247         * src/devives/grotty/tty.cpp (bold_flag_option,
3248         underline_flag_option, italic_flag_option, reverse_flag_option,
3249         bold_underline_mode_option): New global variables.
3250         (update_options): New function.
3251         (tty_printer::special): Call update_options.
3252         (main): Don't set xxx_flag but xxx_flag_option, then call
3253         update_options.
3255 2003-07-14  Werner LEMBERG  <wl@gnu.org>
3257         Make grotty emit proper Unicode box drawing characters for -Tutf8.
3259         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3260         values.
3261         (hline_char, vline_char): New global variables.
3262         (tty_printer::tty_printer): Initialize them.
3263         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3264         horizontal and vertical lines.
3265         (crossings): New global array.
3266         (tty_printer::end_page): Use it to determine the proper crossing
3267         character for -Tutf8.
3269 2003-07-12  Werner LEMBERG  <wl@gnu.org>
3271         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3272         (HTMLDOCFILES): Revert to `pic.html'.
3273         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3275 2003-07-11  Werner LEMBERG  <wl@gnu.org>
3277         * doc/pic.ms: Improve documentation of absolute coordinates.
3278         Document absolute positioning of pictures.
3280         * NEWS: Add new pic capability.
3282 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
3284         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3285         Rewritten.
3287 2003-07-07  Werner LEMBERG  <wl@gnu.org>
3289         Implement support for dashed and dotted ellipses in pic.  Based on
3290         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3292         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3293         common_output::dashed_ellipse, common_output::dotted_ellipse): New
3294         functions.  Ellipse arcs are approximated with circle arcs.
3295         * src/preproc/pic/common.h (common_output): Updated.
3296         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3297         functions.
3298         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3300         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3302 2003-07-06  Werner LEMBERG  <wl@gnu.org>
3304         Make grotty work on platforms which have unsigned char as the
3305         default for char.  Based on a patch by Thomas Klausner
3306         <wiz@netbsd.org>.
3308         * src/devices/grotty/tty.cpp (schar): New typedef.
3309         Updated calls to declare_ptable and implement_ptable.
3310         (glyph): Use schar for back_color_idx and fore_color_idx.
3311         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3312         (tty_printer::tty_color, tty_printer::tty_printer,
3313         tty_printer::color_to_idx, tty_printer::put_color): Updated.
3315 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3317         * src/roff/nroff/nroff.sh: Add option -d for completeness.
3318         * src/roff/nroff/nroff.man: Updated.
3320 2003-07-05  Werner LEMBERG  <wl@gnu.org>
3322         * NEWS, tmac/groff_www.man: Updated.
3323         * doc/Makefile.sub: Updated.
3325 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
3327         Implement support for multiple HTML output files.
3329         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3330         -j command line option.
3332         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3333         global variables.
3334         (file): New fields `new_output_file', `require_links',
3335         `output_file_name'.
3336         (file::file): Updated.
3337         (files::set_file_name, files::set_links_required,
3338         files::are_links_required, files::is_new_output_file,
3339         files::file_name, files::next_file_name): New functions.
3340         (header_desc): New fields `no_of_level_one_headings',
3341         `header_filename'.
3342         (header_desc::header_desc): Updated.
3343         (header_desc::write_headings): Handle multiple files.
3344         (html_printer::write_header): Save file name in which header occurs.
3345         (html_printer::determine_header_level): Possibly split files on
3346         level one headings.
3347         (html_printer::do_links, html_printer::troff_tag): Updated.
3348         (html_printer::insert_split_file, html_printer::do_job_name,
3349         html_printer::emit_link, html_printer::write_navigation,
3350         html_printer::do_file_components): New functions.
3351         (html_printer::~html_printer): Handle multiple files.
3352         (main): Handle command line option `-j'.
3354         * src/devices/grohtml/grohtml.man: Updated.
3356         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3357         which splits file.
3359         * tmac/www.tmac (JOBNAME): New macro.
3360         * tmac/s.tmac (SH-NO-TAG): New macro.
3361         (@SH): Call SH-NO-TAG.
3362         (@NH): Updated.
3364 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3366         * tmac/groff_mdoc.man: Improve documentation of punctuation
3367         characters.
3369 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
3371         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3373 2003-07-03  Werner LEMBERG  <wl@gnu.org>
3375         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3377 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
3379         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3380         after `/*' and `*/'.
3381         Fix spacing.
3382         (Fn, Fo): Reduce indentation in synopsis.
3384         * tmac/doc-common (doc-check-depth): New macro.
3385         (doc-end-macro, Sh, Ss): Use it.
3386         (Cd): Fix behaviour in synopsis.
3387         (In): Make it parsed and callable.
3388         If not in the synopsis, represent the C header file enclosed in
3389         angle brackets.
3390         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3391         Use minus, not hyphen.
3393         * tmc/groff_mdoc.man: Updated.
3395 2003-07-01  Werner LEMBERG  <wl@gnu.org>
3397         Integrated grap2graph, contributed by Eric S. Raymond.
3399         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3400         New files.
3401         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3402         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3404 2003-07-01  Colin Watson  <cjwatson@debian.org>
3406         * src/xditview/*.c: Add prototypes, fix return types, add includes.
3407         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3409 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
3411         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3413 2003-06-31  Werner LEMBERG  <wl@gnu.org>
3415         * doc/Makefile.sub (CLEANADD): Remove all files created by
3416         running `make groff.{pdf,dvi}'.
3418         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3419         src/xditview also.
3421 2003-06-30  Werner LEMBERG  <wl@gnu.org>
3423         * Makefile.in (SHELL): Define as @SHELL@.
3424         (mkinstalldirs): Use $(SHELL).
3425         (MDEFINES): Add $(SHELL).
3426         * Makefile.comm (SHELL): Removed.
3428 2003-06-29  Werner LEMBERG  <wl@gnu.org>
3430         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3431         The X11 documentation files use them.
3432         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3434 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
3436         * tmac/e.tmac (@C): Handle .ad also.
3438 2003-06-12  Werner LEMBERG  <wl@gnu.org>
3440         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3442         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3443         Assign `n' even here.  It is possible to construct a node
3444         immediately following an escape character:
3446           .di xx
3447           \?\\\?a
3448           .br
3449           .di
3450           .xx
3452 2003-06-10  Werner LEMBERG  <wl@gnu.org>
3454         * README.WIN32: Removed.
3455         * MANIFEST: Updated.
3457 2003-06-07  Werner LEMBERG  <wl@gnu.org>
3459         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3461 2003-06-05  Werner LEMBERG  <wl@gnu.org>
3463         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3464         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3466 2003-06-03  Werner LEMBERG  <wl@gnu.org>
3468         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3469         is done by the calling function.
3471 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
3473         * tmac/X.tmac: Fix definition of `em'.
3475 2003-05-22  Werner LEMBERG  <wl@gnu.org>
3477         * src/roff/troff/input.cc (return_macro_request): Fix detection of
3478         argument.
3480 2003-05-18  Werner LEMBERG  <wl@gnu.org>
3482         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3483         to make items work which consist only of a tag.
3485 2003-05-17  Werner LEMBERG  <wl@gnu.org>
3487         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3488         aren't stretched in a tag (this can fail with unformatted boxes).
3489         Instead, insert a break and go back one line.
3491 2003-05-16  Werner LEMBERG  <wl@gnu.org>
3493         * src/roff/troff/input.cc (return_macro_request): If called with
3494         argument pop macro twice.  We need this to trace `return'.
3496         * tmac/trace.tmac: Handle `return'.
3497         Fix typos.
3499         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3500         Document.
3502 2003-05-15  Larry Kollar  <kollar@alltel.net>
3504         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3505         registers `FPS', `FVS', and `FPD'.
3507 2003-05-15  Werner LEMBERG  <wl@gnu.org>
3509         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3510         correctly.
3512 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
3514         * tmac/groff_mdoc.man: Slight improvements.
3516 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3518         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3519         `doc-header-space' after header line if register `cR' is set.
3521 2003-05-02  Werner LEMBERG  <wl@gnu.org>
3523         * TODO: Updated.
3525 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
3527         * tmac/doc-common (Nd): Use \[em].
3529 2003-05-01  Werner LEMBERG  <wl@gnu.org>
3531         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3532         doc-footer-space): Initialize to 0.5i.
3533         (doc-setup-page-layout): Don't set doc-header-space and
3534         doc-footer-space.
3536 2003-04-30  Werner LEMBERG  <wl@gnu.org>
3538         * REVISION: Set to 1.
3540         * doc/pic.ms: Document possible problems with `figname'.
3542 2003-04-29  Werner LEMBERG  <wl@gnu.org>
3544 Version 1.19 released
3545 =====================
3547         * VERSION: Set to 1.19.
3548         * REVISION: Set to 0.
3549         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3551         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3552         Define charset as `US-ASCII' in html output.
3554         * tmac/www.tmac (ULE): Add missing scaling indicator.
3556         * win32-diffs: Removed.
3558 2003-04-28  Werner LEMBERG  <wl@gnu.org>
3560         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3561         `.da' and `.boxa'.
3562         Document how to insert discardable whitespace with `.ss'.
3564 2003-04-27  Werner LEMBERG  <wl@gnu.org>
3566         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3567         work with plain TeX also.
3569         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3571 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
3573         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3574         Use a loose DTD.
3576 2003-04-24  Werner LEMBERG  <wl@gnu.org>
3578         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3579         vbox with positive height and zero depth if in TeX mode.
3581         * NEWS: Document glyph name changes for grodvi and grolj4.
3583 2003-04-23  Werner LEMBERG  <wl@gnu.org>
3585         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3586         * doc/pic.ms: Fixed.
3588 2003-04-21  Werner LEMBERG  <wl@gnu.org>
3590         HP-UX 10.20 has `snprintf' but it isn't declared.
3592         * configure.ac: Add declaration test for snprintf.
3593         * configure: Regenerated.
3594         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3595         * src/include/config.hin: Regenerated.
3597 2003-04-19  Werner LEMBERG  <wl@gnu.org>
3599         Add keyword `figname' to pic, specifying the name of the picture
3600         box in TeX mode.  Based on a patch from William J Poser
3601         <wjposer@unagi.cis.upenn.edu>.
3603         * src/preproc/pic/pic.y: New token `FIGNAME'.
3604         (macro_name): New rule of type <str>.
3605         (placeless_element): Handle `FIGNAME'.
3606         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3607         * src/preproc/pic/main.cpp (graphname): New global variable.
3608         (do_picture): Initialize `graphname'.
3609         * src/preproc/pic/pic.h: Updated.
3610         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3611         `graphname'.
3612         Simplify TeX code.
3613         (tex_output::text): Beautify output.
3614         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3615         `shaded' and `outlined' unconditionally.
3616         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3617         Minor improvements.
3619         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3620         greater is necessary.
3622 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3624         Add option -r to soelim to avoid emission of `.lf' lines.
3625         Add option -t to produces TeX comment lines instead of `.lf' lines.
3627         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3628         and `tex_flag'.
3629         (usage): Updated.
3630         (main): Handle `-r' and `-t'.
3631         (set_location): Handle `raw_flag' and `tex_flag'.
3632         * src/preproc/soelim/soelim.man, NEWS: Updated.
3634 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3636         * tmac/hyphenex.sh: Replaced with...
3637         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3638         nightmares.
3640         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3641         if --quiet is used for the configure script.
3642         * configure: Regenerated.
3644 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3646         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3647         Add `const' to second argument.
3648         (html_printer::add_table_end): Add `const' to argument.
3649         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3650         `const' to arguments.
3651         * src/devices/grohtml/html-text.h: Updated.
3653         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3654         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3655         argument.
3657         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3658         cast for integer constant.
3660         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3661         (writeNbytes): Add `const' to first argument.
3662         (writeString): Add `const' to argument.
3663         (char_buffer::can_see): Add `const' to third argument.
3664         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3665         `const' to argument.
3666         * src/preproc/html/pushback.h: Updated.
3668         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3669         (include_path_append): Add `const' to argument.
3670         (do_file): Updated.
3672         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3673         for `value'.
3674         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3675         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3676         for `value'.
3677         (unicode_decompose_init::unicode_decompose_init): Updated.
3678         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3679         for `value'.
3680         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3681         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3682         argument.
3684         * tmac/hyphenex.sh: Make script more portable by using a here
3685         document.
3687 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3689         Renamed all `*.cc' files to `*.cpp'.
3690         Updated all configuration files, makefiles, and documentation.
3692 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3694         * tmac/hyphenex.sh: Slight improvements.
3696 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3698         * font/devascii/R.proto, font/devcp1037/R.proto,
3699         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3700         character slots with unnamed glyphs.
3702         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3703         (an-first): New global variable.
3704         (an-header): Emit vertical space between multiple man pages.
3706 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3708         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3709         values.
3711 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3713         * PROBLEMS: Revised.
3715 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3717         * doc/webpage.ms: Improved.
3719 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3721         Add register \n[.height] which returns the value of \H.
3722         Add register \n[.slant] which returns the value of \S.
3724         * src/roff/troff/env.cc (init_env_requests): Implement.
3725         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3726         Document.
3728 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3730         * tmac/html.tmac: Move some of the data into html-end.tmac.
3731         Remove most of the character translations for eqn since html fonts
3732         now cover those characters.
3733         Load www.tmac.
3734         * tmac/html-end.tmac: New file.
3735         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3736         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3737         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3739 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3741         * man/groff_out.man: Document negative values of `N' if -Thtml is
3742         used.
3744 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3746         * Makefile.comm (depend.temp): Check location of YTABC.
3748 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3750         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3751         binary path.
3752         (groff_bin_path): Rename to GROFF_BIN_PATH.
3753         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3754         * doc/Makefile.in (TROFFBIN): New variable for troff
3755         binary path.
3756         (GROFFBIN): New variable for groff binary path.
3757         (groff_bin_path): Rename to GROFF_BIN_PATH.
3758         (TROFF): Use TROFFBIN.
3759         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3760         * doc/Makefile.sub (GROFFBIN): New variable for groff
3761         binary path.
3762         (groff_bin_path): Rename to GROFF_BIN_PATH.
3763         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3765         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3766         with INSTALL_SCRIPT.
3767         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3768         * Makefile.dev (all): Depend on DEVSCRIPTS.
3769         (install_dev): Likewise.
3770         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3771         scripts.
3772         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3773         (DEVGENSCRIPTS): New variable to hold generated scripts.
3775 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3777         * src/libs/libdriver/input.cc (IntArray::operator[],
3778         IntArray::get_data): Remove meaningless `const' in return value.
3780         * README.CVS: New file.
3782 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3784         Check for stdint.h in C++, not in C.
3786         * aclocal.m4 (GROFF_STDINT_H): New function,
3787         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3788         AC_CHECK_HEADERS.
3789         * configure, src/include/config.hin: Regenerated.
3790         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3793         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3794         with a negative value, representing the width of the unbreakable
3795         space (only for -Thtml).  grohtml then converts this back to
3796         &nbsp; and uses the value of N as its width.
3798         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3799         unbreakable_space_node::tprint): Emit `N-<width>'.
3800         * src/include/printer.h (printer::set_numbered_char): Make it
3801         virtual.
3802         Make members `font_table' and `nfonts' protected instead of private.
3803         * src/devices/grohtml/post-html.cc
3804         (html_printer::set_numbered_char): New member function.
3807         * src/libs/libgroff/maxfilename.cc:
3808         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3810         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3811         emit word marker.
3813 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3815         * man/roff.man: Small fixes.
3817 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3819         Make groff independent from locale's numeric settings.
3821         * configure.ac: Check for `setlocale'.
3822         * configure, src/include/config.hin: Regenerated.
3824         * src/include/lib.h: Handle HAVE_SETLOCALE.
3826         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3827         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3828         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3831         * doc/groff.texinfo: Change dir category to `Typesetting'.
3832         (Man font macros): Mention that there is no space between arguments
3833         of .BI and friends.
3835         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3836         (*printer::change_color, *printer::change_fill_color): Add missing
3837         `const'.
3839 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3841         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3842         html_table::is_gap): Compute table widths after converting border
3843         positions to avoid rounding errors.
3845 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3847         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3848         `space_emitted' properly.
3850 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3852         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3853         (html_table::set_linelength): Don't add 1.
3854         (html_table::add_indent): Don't subtract 1.
3856         * tmac/html.tmac: Set default page offset to zero.
3858 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3860         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3862         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3863         unbreakable_space_node::tprint): New functions.
3864         (troff_output_file): Make space_char_hmotion_mode::tprint and
3865         unbreakable_space_node::tprint to friends.
3866         * src/roff/troff/node.h: Updated.
3868         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3869         in the HTML standard).
3871 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3873         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3874         Otherwise, the following code
3876           .di xxx
3877           .ps 10
3878           a
3879           .br
3880           .di
3881           x\*[xxx]
3883         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3884         font changes in diversions for -Thtml.
3886         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3887         `HTML-TAG'.
3888         (an-do-tag-html): Merge with ...
3889         (an-do-tag): This macro.
3890         Change code slightly to circumvent grohtml bug.
3891         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3893         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3894         html_table::is_gap): Round `width' properly.
3896         * tmac/html.tmac: Provide some default layout parameters for
3897         grohtml.
3899         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3900         command.
3902 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3904         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3906 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3908         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3909         defined.
3911 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3913         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3914         `.vs'.
3915         * doc/groff.texinfo: Updated.
3917 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3919         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3920         TOKEN_END_TRAP>: Reset `have_input'.
3922 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3924         * src/roff/groff/groff.man: Mention groff_trace man page.
3926 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3928         * Makefile.in (LIBEXT): New variable to indicate the file extension
3929         of library files.  Computed heuristically from $(OBJEXT).
3930         (MDEFINES): Add $(LIBEXT).
3931         * Makefile.lib, Makefile.comm: Use it.
3933         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3934         overlong lines into smaller chunks.
3935         (get_binary): New function.
3936         (main): Use them.
3937         * src/utils/pfbtops/pfbtops.man: Updated.
3939 2003-03-15  Colin Watson  <cjwatson@debian.org>
3941         * src/roff/groff/groff.man: Minor syntax fix.
3943 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3945         * src/devices/grops/ps.cc (ps_printer::media_set,
3946         ps_printer::~ps_printer): Handle zero paper width and length.
3948 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3950         Add options -p and -l to grodvi.
3952         * src/devices/grodvi/dvi.cc: Include paper.h.
3953         (landscape_flag, user_paper_length, user_paper_width): New global
3954         variables.
3955         (dvi_printer::begin_page): Emit `papersize' special.
3956         Set color after initialization of `cur_h' and `cur_v'.
3957         (main): Add options `-l' and `-p'.
3958         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3959         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3961         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3963 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3965         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3966         * man/groff_tmac.man: This man page.
3967         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3968         deprecated.
3970         * tmac/X.tmac: Don't load pspic.tmac.
3972 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3974         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3975         by Bernd Warken <bwarken@mayn.de>.
3977         * src/include/driver.h (pr): Removed.
3979         * src/libs/libdriver/input.cc (pr): New global variable.
3980         (do_file): Deallocate `pr'.
3981         * src/libs/libdriver/printer.cc (pr): Removed.
3983         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3984         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3985         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3986         (main): Don't delete `pr'.
3988 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3990         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3991         * tmac/papersize.tmac: New file.
3992         * tmac/troffrc: Include `papersize.tmac'.
3993         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3994         * tmac/an-old.tmac: Set LT to LL by default.
3996         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3997         doc/groff.texinfo: Updated.
3999         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
4000         bug which caused all odd iso papers to have wrong dimensions.
4002         * src/devices/grops/ps.cc (user_paper_width): New global variable.
4003         (main) <'p'>: Set `user_paper_width' also.
4004         (ps_printer::media_width, ps_printer::media_height): Use values
4005         given with option `-p'.
4007 2003-03-09  Werner LEMBERG  <wl@gnu.org>
4009         * src/include/nonposix.h: Provide default for SET_BINARY.
4011         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
4012         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
4013         unconditionally.
4015         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
4016         (main): Treat \r\n as \n.
4018 2003-03-08  Werner LEMBERG  <wl@gnu.org>
4020         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
4021         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
4023 2003-03-07  Werner LEMBERG  <wl@gnu.org>
4025         Added support to access more than 256 glyphs in Type 1 fonts.
4027         * src/devices/grops/ps.cc (subencoding): New structure.
4028         (style): Add `sub' field.
4029         Updated all users.
4030         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
4031         Add `set_subencoding', `get_subfont' and `encode_subfont' member
4032         functions.
4033         Updated all users.
4034         (ps_printer::set_char): Use `set_subencoding'.
4035         (make_subencoding_name): New function.
4036         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
4037         (ps_printer::~ps_printer): Emit subencoding definitions.
4039         * src/devices/grops/psrm.cc (valid_input_table): New array to
4040         properly support EBCDIC.
4041         (white_space): Add `\f'.
4042         (ps_get_line): Change first argument to be of type `string &'.
4043         Updated all callers.
4044         This allows to get lines of arbitrary length.
4045         Use `valid_input_table'.
4046         Remove warning about non-conforming PS line length.  This seems
4047         not to be of great importance -- for example, dvips don't emit
4048         a warning either.
4049         (PS_LINE_MAX): Removed.
4050         (matches_comment): Change first argument to be of type `string &'.
4052         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
4054         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
4055         %AGL_to_unicode, %default_ligatures): New hash tables.
4056         Read all map entries.
4057         Add unencoded characters.
4058         Check for default ligatures if there are no `L' entries.
4059         Print all kern entries.
4060         Print all characters in charset.
4061         * src/utils/afmtodit/afmtodit.man: Updated.
4063         * font/devps/*: Regerated all fonts.
4065         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
4066         of characters, just use `.trin'.  Otherwise the mapping depends
4067         on the font encoding.
4068         * tmac/ps.tmac: Add `fi' and `fl'.
4069         Improve `Fi' and `Fl'.
4070         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
4071         * tmac/Xps.tmac: Fix `em'.
4073         * NEWS: Updated.
4075 2003-03-04  Werner LEMBERG  <wl@gnu.org>
4077         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
4078         `have_input'.
4080 2003-03-03  Werner LEMBERG  <wl@gnu.org>
4082         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
4084         * font/devps/generate/textmap: Remove entry `similarequal'.
4085         * font/devps/symbolmap: Updated.
4087 2003-03-02  Werner LEMBERG  <wl@gnu.org>
4089         * src/libs/libgroff/font.cc (font::load): Fix error message for
4090         bad character type.
4092         * src/devices/grops/grops.man: Improve documentation of the -b
4093         flag.
4095         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
4096         `ascii' and `cp1047'.
4098 2003-03-01  Werner LEMBERG  <wl@gnu.org>
4100         Document composite glyphs and the `composite' request.
4102         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
4104 2003-02-28  Werner LEMBERG  <wl@gnu.org>
4106         * font/devdvi/generate/ec.map: Add some more Unicode entities.
4107         * font/devdvi/*EC: Updated.
4109         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
4110         * tmac/latin1 (latin1-tr): Undo any previous mapping.
4111         * tmac/troffrc: Load `composite.tmac'.
4112         * tmac/Makefile.sub (NORMALFILES): Updated.
4114         * doc/groff.texinfo (Input Encodings): New section.
4115         * NEWS: Updated.
4117 2003-02-27  Werner LEMBERG  <wl@gnu.org>
4119         * doc/texinfo.tex: New version 2003-02-11.06.
4121         * tmac/doc-common (Dt): Don't emit warning for unknown section.
4122         * tmac/groff_mdoc.man: Fix description of `Dt'.
4124 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
4126         * font/devps/prologue.ps: Fix for included Postscript that does
4127         a setpagedevice -- which is now safely ignored.
4129         * NEWS: Updated.
4131         * src/devices/grops/ps.cc: Now sets the page size in the generated
4132         document.  This is done in two ways: Via a %%-comment for gv and
4133         the like, and via a PageSize and setpagedevice for programs that
4134         understands Postscript proper, like ps2pdf.
4136         * src/devices/grops/ps.h: New broken-flag to avoid page size
4137         definition, if required.
4139         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
4141         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
4142         Not really necessary due to the fix in prologue.ps, but cleaner:
4143         Such information does not belong in an .eps file.
4145         * doc/Makefile.sub: See doc/Makefile.in.
4147 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
4149         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
4150         instead of P1 since the latter is broken in some versions of netpbm.
4151         * configure: Updated.
4153 2003-02-26  Larry Kollar  <kollar@alltel.net>
4155         Make man pages more customizable.
4157         * tmac/an-old.tmac (FT): New register holding footer distance from
4158         bottom.
4159         (HF): New string holding the default heading font.
4160         (TH): Handle registers `IN' and `SN' set on the command line.
4161         Use `FT'.
4162         (PT, BT): New strings to customize header and footer lines.
4163         (an-header, an-footer): Use them.
4164         (SH, SS): Use `HF'.
4165         * tmac/groff_man.man: Document changes.
4167         * doc/groff.texinfo: Document man changes.
4168         Document Ultrix extensions of man.
4170 2003-02-26  Werner LEMBERG  <wl@gnu.org>
4172         * src/roff/troff/input.cc (do_width, do_if_request): Reset
4173         `have_input' after changing back to old environment.
4175         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
4176         function up to be defined before first call.  This is necessary to
4177         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
4179         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
4180         the default font directory also.  Based on a patch from James
4181         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
4182         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
4183         * src/utils/afmtodit/afmtodit.man: Document it.
4185         * NEWS: Updated.
4187         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
4189 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
4191         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
4192         (GROFF_PNMTOPS_NOSETPAGE): New macro.
4193         * configure.ac: Use it.
4194         * configure: Regenerated.
4195         * Makefile.in: Updated.
4197         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
4198         (CLEANADD): Add www.tmac-sed.
4199         (pnmtops_nosetpage): Define default.
4200         (install_data): Handle www.tmac-sed and substitute
4201         @PNMTOPS_NOSETPAGE@.
4202         (stamp-sed): Add www.tmac.
4203         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
4204         It now breaks URLs at suitable places.
4205         (www:substring_ok): New register set by...
4206         (www:@test_substring): New macro.
4207         (www:error): New alias to www-error.
4208         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
4209         New macros.
4210         (URL): Use www:url_breaks.
4211         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
4212         (CDS, CDE): New macros.
4214 2003-02-25  Werner LEMBERG  <wl@gnu.org>
4216         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
4217         buffer overflow.
4219 2003-02-24  Werner LEMBERG  <wl@gnu.org>
4221         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
4222         can be negative also.
4224         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
4225         `int16'.
4226         (read_char_table): Avoid negative ascenders.
4227         (output_charset): Add cast.
4228         * font/devlj4/*: Regenerated.
4230         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
4231         possible.
4233         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
4234         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
4235         of `<>'.
4236         * font/devdvi/*: Regenerated.
4238         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
4239         normal width, while the previously used characters (U+2329 and
4240         U+232A) are classified as wide due to canonical equivalence with the
4241         CJK punctuation characters U+3008 and U+3009.
4243         * font/devutf8/R.proto: Updated.
4244         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4246         * man/groff_char.man: Simplify handling of table traps by
4247         introducing `start block' and `end block' macros.
4248         (Ns, Ne, 2s, 2e, Ds, De): New macros.
4249         (DL): Make it work with Unix troff also.
4250         Fix code values of `la' and `ra'.
4252         * tmac/dvi.tmac: Define `<>' for CW and CWI.
4254 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
4256         * src/devices/grohtml/post-html.cc (element_list::~element_list):
4257         New destructor, fixing a major memory leak.
4259 2003-02-22  Werner LEMBERG  <wl@gnu.org>
4261         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4262         to be in conformance with Unicode 3.0 and newer.
4264         * font/devlj4/generate/text.map: Add `Eu'.
4265         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4266         * font/devlj4/S: Regenerated.
4268         * man/groff_char.man: Completely rewritten.
4270         * doc/groff.texinfo: Fix description of request and macro arguments.
4272 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
4274         Valgrind fixes.
4276         * src/devices/grohtml/html-table.cc (html_table::~html_table):
4277         Deallocate `columns' list.
4278         * src/devices/grohtml/post-html.cc (char_block::~char_block):
4279         New destructor.
4280         (text_glob::text_glob_html, text_glob::text_glob_special,
4281         text_glob::text_glob_line, text_glob::text_glob_auto_image,
4282         text_glob::text_glob_tag): Avoid memory leaks.
4283         (text_glob::remember_table): Free memory before reassigning.
4285 2003-02-19  Werner LEMBERG  <wl@gnu.org>
4287         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4288         alias `hbar'), the Planck constant over two pi.
4290         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4291         `+e' for position 34.
4292         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4293         `u2662' and `u2661'.
4294         * font/devdvi/{MI,S}: Regenerated.
4295         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4296         * font/devlbp/*: Add `hbar' alias.
4297         * font/devlj4/generate/special.map: Ditto.
4298         * font/devlj4/S: Regenerated.
4299         * font/devps/generate/symbolchars: Add `+e'.
4300         * font/devps/generate/textmap: Fix PS name for `-h'.
4301         Add `hbar' alias.
4302         * font/devps/symbolmap: Regenerated.
4304         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4306         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4307         `-h', `hbar'.
4308         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4309         `-h'.
4311         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4312         `hbar'.
4313         * tmac/tty-char.tmac: Add `+e'.
4315 2003-02-17  Werner LEMBERG  <wl@gnu.org>
4317         Another round trying to really fix problems with `have_input'.
4319         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4320         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4322         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4323         handling if both foreground and background colors are default.
4325         * doc/groff.texinfo (Debugging): Document .lf differences to
4326         AT&T troff.
4328 2003-02-16  Werner LEMBERG  <wl@gnu.org>
4330         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4331         null-bytes in created string.
4333         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4334         alias_macro, lookup_request): Improve warning messages.
4336         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4337         not `strdup'.
4338         Free `last_image_filename'.
4340         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4341         `buffer'.
4342         (imageList::createPage, imageList::createImage): Use `free', not
4343         `a_delete'.
4344         (imageItem::~imageItem): Free `imageName'.
4345         (addRegDef): Use `strsave', not `strdup'.
4346         (get_resolution): Free `pathp'.
4348 2003-02-15  Werner LEMBERG  <wl@gnu.org>
4350         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4351         to `dummy'.
4353 2003-02-14  Werner LEMBERG  <wl@gnu.org>
4355         Add memory management for colors to deallocate unnamed colors
4356         properly.
4358         * src/include/color.h (color): New members `free_list' and `next'.
4359         New member functions `new' and `delete'.
4360         Add destructor.
4361         * src/libs/libgroff/color.cc: Implement it.
4363         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4364         for array size of new operator.
4366         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4367         redundant comparison.
4369         * src/roff/troff/input.cc (word_space_node::reread,
4370         hmotion_node::reread): Avoid warning about unused parameter.
4371         (reset_output_registers): Remove redundant parameter.
4372         (define_color): Undo change 2003-02-12.
4374         * src/roff/troff/reg.h: Updated.
4376         * src/roff/troff/node.cc (troff_output_file::really_print_line,
4377         output_file::put_filename, real_output_file::really_put_filename,
4378         ascii_output_file::really_print_line,
4379         break_char_node::get_hyphen_list): Avoid warning about unused
4380         parameter.
4381         (suppress_node::tprint): Updated.
4383         * configure.ac: Check declaration for rand() and srand().
4384         * configure: Regenerated.
4386         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4387         conditionally.
4388         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4389         and srand().
4391         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4392         to avoid compiler warnings.
4394         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4395         unused.
4397         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4398         is unused.
4399         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4400         (unused) parameter.
4401         Updated all callers.
4403         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4404         is unused.
4405         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4406         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4408         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4409         Parameter is unused.
4410         (html_printer::add_table_end): Define parameter conditionally.
4411         * src/devices/grohtml/output.cc (simple_output::special): Parameter
4412         is unused.
4414         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4415         (lbp_printer::set_char): Last parameter is unused.
4417         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4419 2003-02-13  Werner LEMBERG  <wl@gnu.org>
4421         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4422         Make \D'f ...' move horizontally again for backwards compatibility.
4423         Replace it with \D'Fg ...' where appropriate to avoid dependency
4424         on horizontal resolution.
4426         * src/roff/troff/input.cc (do_get_long_name): New function.
4427         (get_long_name): Call it.
4429         (read_draw_node): Handle `\D'Fx ...' by calling ...
4430         (read_color_draw_node): New function.
4432         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4433         `end'.
4434         Pass it to `do_get_long_name' which is used instead of
4435         `get_long_name'.
4437         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4438         unnecessary value guard.
4439         (parse_D_command) <'f'>: Add horizontal shift.
4441         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4442         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4443         (FILL_MAX): Removed.
4445         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4446         Updated.
4448 2003-02-12  Werner LEMBERG  <wl@gnu.org>
4450         * src/roff/troff/input.cc (do_name_test, do_expr_test,
4451         do_zero_width): Push `\n' if closing delimiter is missing.
4453         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4454         <'F'>: Make \F non-transparent at the beginning of line.
4455         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4456         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4457         `have_input'.
4459         (define_color): Free color in case of reassignment.
4461         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4462         @DefescListEnd): Use @Var, not @var.
4463         Fix all calls.
4465         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4467         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4468         `shaded' and `outlined' arrays.
4469         (object_spec::object_spec): Initialize `shaded' and `outlined'.
4470         (graphic_object::set_fill_color, graphic_object::set_outline_color):
4471         Use strsave.
4472         (closed_object::set_fill_color): Ditto.
4473         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4474         instead of strdup.
4475         (troff_output::reset_color): Use a_delete instead of free.
4476         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4478 2003-02-11  Werner LEMBERG  <wl@gnu.org>
4480         * doc/groff.texinfo: Improve documentation of `ad'.
4481         Document that \D'f...' is dependent on the horizontal resolution.
4482         * man/groff_diff.man: Improve documentation of \D'f...'.
4484         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4485         compensating \h'...' for \D'f ...' since the latter no longer moves
4486         current position.
4487         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4489 2003-02-10  Werner LEMBERG  <wl@gnu.org>
4491         Improve error messages for `x F' (and `F') commands.
4493         * src/include/error.h: Add declaration for
4494         `current_source_filename'.
4495         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4496         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4497         parameter for source file string.
4498         Updated all callers.
4500         * src/libs/libdriver/input.cc: Add `current_source_filename'.
4501         (remember_source_filename): New function.
4502         (parse_x_command <'F'>, do_file <'F'>): Use it.
4504 2003-02-09  Werner LEMBERG  <wl@gnu.org>
4506         Make grotty not emit warnings about unknown colors more than
4507         necessary.
4509         * src/devices/grotty/tty.cc: Include `ptable.h'.
4510         (TTY_MAX_COLORS): Removed.
4511         (DEFAULT_COLOR_IDX): Defined to -1.
4512         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4513         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4514         Change `tty_colors' to be a ptable.
4515         First arg of `put_color' is now `char'.
4516         New functions `make_rgb_string' and `tty_color'.
4517         (tty_printer::tty_printer): Use `tty_color'.
4518         (tty_printer::color_to_idx): Return value is now `char'.
4519         Use `tty_color'.
4521         * src/include/color.h (color): Add `print_color' member function.
4522         * src/libs/libgroff/color.cc (color::print_color): Implement it.
4524 2003-02-08  Werner LEMBERG  <wl@gnu.org>
4526         Valgrind fixes.
4528         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4529         encoding file.
4531         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4532         assume that value has been allocated with `new[]', thus use
4533         `a_delete' for deallocation.
4535         * src/libs/libdriver/input.cc (get_integer_arg,
4536         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4537         where appropriate.
4539         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4540         * src/libs/libgroff/nametoindex.cc
4541         (character_indexer::named_char_index): Use `new <type>[1]'.
4543         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4544         <type>[1]'.
4545         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4546         (split_text): Use `a_delete'.
4548         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4549         <type>[1]'.
4551         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4552         harmless memory leak.
4553         (hyphen_trie::read_patterns_file): Initialize `buf'.
4554         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4555         Initialize `current_fill_color'and `current_glyph_color'.
4556         * src/roff/troff/glyphuni.cc
4557         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4558         * src/roff/troff/uniuni.cc
4559         (unicode_decompose_init::unicode_decompose_init): Ditto.
4560         * src/roff/troff/uniglyph.cc
4561         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4563 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4565         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4566         `access' before calling `unlink'.
4567         (do_file): Handle __EMX__.
4569         * src/include/nonposix.h: Handle __EMX__.
4571         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4572         (fontpath,tmacpath): Use it.
4573         (MDEFINES): Add it.
4574         Sorted alphabetically.
4576         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4577         @SEP@.
4578         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4579         @SEP@.
4581 2003-01-27  Werner LEMBERG  <wl@gnu.org>
4583         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4584         New files, copied from gnulib.
4585         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4586         * configure.ac: Updated.
4587         * configure: Regenerated.
4589         * src/include/config.hin: Regenerated.
4590         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4591         Don't define `strcasecmp' as `strcmp'.
4592         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4593         Dont define `strncasecmp' as `strncmp'.
4595         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4596         Removed.
4598 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4600         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4601         s/unline/unlink/.
4603 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4605         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4607 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4609         Add US-english hyphenation exceptions (converted from Barbara
4610         Beeton's hyphenation exception log reports which appear irregularly
4611         in TUGBoat).
4613         * tmac/hyphen.us: Updated to latest version.
4614         * tmac/README: Updated.
4615         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4616         * tmac/troffrc: Load `hyphenex.us'.
4617         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4618         * doc/groff.texinfo: Updated.
4620 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4622         Improve hyphenation slightly.  This is a first step in redesigning
4623         the hyphenation algorithm to make it more flexible (e.g. allowing
4624         kerns and ligatures between the hyphenation character and the
4625         following character -- while not used normally in English, other
4626         languages like German would benefit).
4628         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4629         assertion instead of if-clause.
4630         Let `get_hyphen_list' return the number of involved characters in
4631         the hyphenation pattern instead of computing it directly (which
4632         often yields too small values).
4633         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4634         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4635         parameter.
4637 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4639         Fixing a bug which caused groff to hang if the hyphenation exception
4640         dictionary tried to grow.
4642         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4643         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4644         pointer to dictionary.
4646 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4648         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4649         negative left italic correction.
4650         * src/utils/afmtodit/afmtodit.man: Document it.
4652         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4653         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4654         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4656         * NEWS: Updated.
4658 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4660         * NEWS: Updated.
4662 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4664         * src/preproc/refer/refer.man: Mention REFER environment variable.
4666 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4668         Similar to \[is], the square root glyph (\[sr]) and the square root
4669         extension glyph (\[radicalex]) are now text symbols.  The new
4670         mathematical versions are called \[sqrt] and \[sqrtex],
4671         respectively.
4673         * font/devX*/S: Regenerated.
4674         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4675         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4676         * font/devdvi/EX, font/devdvi/S: Regenerated.
4677         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4678         * font/devlj4/generate/special.map: Add `sqrt'.
4679         * font/devlj4/S: Regenerated.
4680         * font/devps/generate/textmap: Add `sqrt'.
4681         * font/devps/S, font/devps/symbolmap: Regenerated.
4683         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4684         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4685         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4686         overlap horizontally.
4688         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4689         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4690         Fix `radicalex'.
4692         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4693         and `sqrtex' are overlapping glyphs.
4695 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4697         * font/devdvi/generate/texsy.map: Add `is'.
4698         * font/devps/symbolmap: Regenerated.
4699         * font/devdvi/*TC, MI, S: Regenerated.
4701         * tmac/dvi.tmac: Remove `is'.
4703 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4705         `is' is now a text symbol (only relevant for dvi).  The math variant
4706         can be accessed with `integral'.
4708         * font/devX*/S: Regenerated.
4709         * font/devdvi/generate/texex.map: Remove `is'.
4710         * font/devdvi/EX: Updated.
4711         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4712         * font/devlj4/generate/special.map: Ditto.
4713         * font/devlj4/S: Regenerated.
4714         * font/devps/generate/textmap: Add `integral'.
4715         * font/devps/S: Regenerated.
4717         * tmac/dvi.tmac: Define `is'.
4719         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4721         * src/preproc/tbl/main.cc (process_format): Fix error message.
4723 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4725         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4726         * font/devps/textmap: Fix entries for `ne' and `nc'.
4727         * font/devps/symbolmap: Regenerated.
4729         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4730         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4731         `38', `58', `78', `-+', `|=', `nc', `ne'.
4733         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4734         Use `schar' for `aq'.
4735         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4736         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4737         * tmac/tty.tmac: Add `ne'.
4739         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4740         for fallback glyphs.
4742 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4744         Add glyph `|='.
4746         * font/devX*/*: Regenerated.
4747         * font/devdvi/generate/ec.map: Remove `eq'.
4748         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4749         Assign `|=' to position 39.
4750         * font/devdvi/*EC, S: Regenerated.
4751         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4752         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4753         Assign `|=' to position 549.
4754         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4755         `equalmath'.
4756         Add `uni2243' for `|='.
4758         * tmac/ec.tmac: Add `eq'.
4759         * tmac/dvi.tmac: Add `=~'.
4760         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4761         `|='.
4763 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4765         * font/devdvi/generate/tc.map: Remove `**'.
4766         * font/devdvi/*TC: Regenerated.
4767         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4768         `78', `<<', `>>'.
4769         * font/devutf8/NOTES: Updated.
4771         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4772         Don't give default parameter to `set_macro'.
4773         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4774         instead of `set_macro'.
4775         (charinfo::setx_macro): Implement it.
4776         (charinfo::set_macro): Don't change `mode'.
4778         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4779         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4780         * tmac/dvi.tmac: Define `!=' with `.schar'.
4782 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4784         * font/devX*/S: Regenerated.
4785         * font/devdvi/generate/ec.map: Remove `pl'.
4786         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4787         * font/devdvi/*{TC,EC}: Regenerated.
4788         * font/devhtml/R.proto: Add `-+'.
4789         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4790         * font/devlbp/*: Remove `or'.
4791         * font/devlj4/generate/special.map: Remove `or'.
4792         * font/devlj4/S: Regenerated.
4793         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4794         `seveneighths', `threeeighths'.
4795         Remove `plusmath'.
4796         Replace `minusplus' with `uni2213'.
4797         * font/devps/symbolmap: Regenerated.
4798         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4799         Add `-+'.
4801         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4802         function.
4803         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4804         Call glyph_color and fill_color even if tcommand_flag isn't set.
4805         (make_node, node::add_char): Check not ci->is_fallback but
4806         ci->is_normal.
4808         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4809         * tmac/ec.tmac: Add .rchar entry for `f/'.
4810         Don't remove `12', `14', `34'.
4811         Define `pl' to be always roman.
4812         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4813         Define `18', `38', `58', `78'.
4814         * tmac/tty.tmac: Add `-+'.
4815         * tmac/dvi.tmac: Define `f/'.
4816         (dvi-frac): Use `f/'.
4817         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4818         Define `18', `38', `58', `78'.
4820 2002-12-15  Colin Watson  <cjwatson@debian.org>
4822         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4824 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4826         Add glyph `tno', a textual variant of `no'.
4828         * font/devX*/*: Regenerated.
4829         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4830         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4831         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4832         * font/devdvi/*: Regenerated.
4833         * font/devlbp/*: Add `tno'.
4834         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4835         * font/devlj4/*: Regenerated.
4836         * font/devps/generate/textmap: Replace `no' with `tno'.
4837         * font/devps/generate/symbolchars: Add `no'.
4838         * font/devps/*: Regenerated.
4840         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4842         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4843         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4845         * NEWS: Updated.
4847         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4848         Add definition for `sd'.
4849         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4851         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4853 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4855         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4856         mode to avoid rounding errors.
4857         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4859         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4860         src/roff/troff/troff.man: Improve documentation of -T.
4862 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4864         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4865         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4867 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4869         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4870         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4871         Scaling Euro.sansserif glyphs down to have the same height as
4872         digits.
4873         Removed unnecessary points; added some extrema.
4875         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4876         Regenerated.
4878 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4880         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4881         and `Euro.symbol.bold.slanted'.
4882         Improve some glyph offsets and widths.
4883         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4884         Regenerated.
4885         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4886         typo.
4887         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4888         direcory.
4890         * tmac/europs.tmac: Updated to new glyph indices.
4891         Use Euro.symbol for font familiy `A'.
4893         * doc/groff.texinfo: Minor improvements.
4895 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4897         * font/devdvi/generate.tc.map: s/%O/%0/.
4898         * font/devdvi/*TC: Regenerated.
4900         * src/roff/troff/div.cc (init_div_requests): Sorted.
4902         * tmac/dvi.tmac: Remove `Ye'.
4903         * tmac/ec.tmac: Remove `Ye'.
4904         Add .rchar entry for `de'.
4906         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4907         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4908         * NEWS: Updated.
4910 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4912         Add PS font for various Euro glyphs.
4914         * font/devps/generate/freeeuro.sfd: New master font file for
4915         pfaedit.
4916         * font/devps/generate/sfdtopfa.pe: New conversion script for
4917         pfaedit.
4918         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4919         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4920         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4921         `freeeuro.sfd'.
4922         * font/devps/EURO: Generated from `freeeuro.afm'.
4923         * font/devps/download: Add `freeuro.pfa'.
4924         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4925         `freeeuro.pfa'.
4927         * tmac/europs.tmac: New file.
4928         * tmac/ps.tmac: Include `europs.tmac'.
4929         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4931 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4933         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4934         * font/devdvi/S: Regenerated.
4935         * font/devhtml/R.proto: Fix `CR' and `ci'.
4936         Add `OK'.
4937         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4938         Remove `bs'.
4939         * font/devps/symbolmap: Regenerated.
4940         * font/devutf8/R.proto: Fix `CR' and `ci'.
4941         Add `OK'.
4942         * font/devutf8/NOTES: Updated.
4944         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4945         `ci'.
4946         Add `OK'.
4947         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4949         * tmac/dvi.tmac: Add `lh' and `rh'.
4950         * tmac/Xps.tmac: Fix `lh' and `rh'.
4951         * tmac/X.tmac: Add `OK'.
4952         * tmac/lj4.tmac: Ditto.
4954 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4956         * font/devX*/S: Regenerated.
4957         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4958         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4959         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4960         * font/devdvi/S: Regenerated.
4961         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4962         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4963         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4964         `bracketleftbt', `bracketrighttp', `bracketrightex',
4965         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4966         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4967         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4968         `rb', and `bv'.
4969         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4970         * font/devutf8/NOTES: Updated.
4971         * font/devlj4/generate/special.map: Add glyph `braceex'.
4972         * font/devlj4/S: Regenerated.
4974         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4976 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4978         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4979         and `vA'.
4980         Fix code for `an'.
4981         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4983         * doc/texinfo.tex: New version from texinfo 4.3.
4984         * doc/groff.texinfo: Updated for texinfo 4.3.
4985         Use @tie{} where appropriate.
4986         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4987         * font/devdvi/generate/tc.map: Remove `rn'.
4988         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4989         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4990         Fix code for `an'.
4991         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4992         font/devX75-12/*: Regenerated.
4994         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4995         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4996         Improve definition of `an'.
4997         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4998         `ru'.
4999         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
5000         * tmac/X.tmac: Add definition for `or'.
5001         * tmac/Xps.tmac: Undo change 2002-11-05.
5002         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
5004 2002-11-11  Werner LEMBERG  <wl@gnu.org>
5006         * src/roff/troff/node.cc (troff_output_file::put_char): Always
5007         call flush_tbuf.
5009 2002-11-10  Werner LEMBERG  <wl@gnu.org>
5011         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
5012         defines a glyph which is searched after the check for fonts declared
5013         with `.special' (and before the check for all mounted special
5014         fonts).  `fschar' defines a glyph for a particular font which is
5015         searched after the check for fonts declared with `.fspecial' (and
5016         before the check for fonts declared with `.special').  `rfschar'
5017         removes glyphs defined with `fschar'.
5019         * src/roff/troff/token.h (char_mode): New enum.
5020         Declare do_define_character.
5021         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
5022         `mode'.
5023         (charinfo::is_fallback): Updated.
5024         (charinfo::is_special): New method.
5025         * src/roff/troff/input.cc (do_define_character): Add and use
5026         optional second parameter used as a prefix for font-specific glyph
5027         names.
5028         (define_character, define_fallback_character): Updated.
5029         (define_special_character): New function.
5030         (init_input_requests): Add `schar'.
5031         (charinfo::charinfo, charinfo::set_macro): Updated.
5032         * src/roff/troff/node.cc: Include `stringclass.h'.
5033         (make_glyph_node): Handle special glyphs defined with `.schar' and
5034         `.fschar'.
5035         (define_font_special_character, remove_font_special_character): New
5036         functions.
5037         (init_node_requests): Sorted.
5038         Add `fschar' and `rfschar'.
5039         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5040         Document new requests.
5042         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
5043         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
5045 2002-11-08  Werner LEMBERG  <wl@gnu.org>
5047         Added new font `SC' (cmtex10) to devdvi.
5049         * devdvi/generate/Makefile (FONTS): Add `SC'.
5050         (SC): New rule.
5051         * devdvi/generate/textex.map: New map file for cmtex.
5052         * devdvi/SC: New.
5053         * devdvi/Makefile.sub (DEVFILES): Updated.
5054         * tmac/dvi.tmac: Add fspecial entries for SC.
5055         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
5056         found before `S' since the font position of `SC' is lower due to the
5057         gaps in DESC's `font' line.
5058         * tmac/ec.tmac: Add a `special' call.
5059         * NEWS: Updated.
5061         * font/devhtml/R.proto: Remove double entry for `ti'.
5062         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
5063         * tmac/tty-char.tmac: Remove entry for `bq'.
5064         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
5065         * tmac/ec.tmac: Don't remove `aq' glyph.
5066         * tmac/X.tmac: Fix entry for `em'.
5067         Add entries for `fo' and `fc'.
5068         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
5070         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
5071         documentation of `special' and `fspecial' requests.
5073 2002-11-05  Werner LEMBERG  <wl@gnu.org>
5075         * font/devascii/R.proto, font/devcp1047/R.proto,
5076         font/devlatin1/R.proto: Remove entry for `.i'.
5077         * font/devdvi/generate/textt.map: Add entry for `ad'.
5078         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
5079         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
5080         We need this for getting kerning values to compose `/l' and `/L'.
5081         * font/devdvi: Regenerated font definition files for CM fonts.
5082         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
5083         * font/devutf8/R.proto: Ditto.
5084         Remove double entry for `ti'.
5086         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
5087         for (groff) ligatures, `la', and `ra'.
5088         Add "'C", "'c", `IJ', and `ij'.
5089         Remove double entry for `ti'.
5090         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
5091         double entries.
5092         Add "'C", "'c", `IJ', and `ij'.
5093         Fix entries for (groff) ligatures, `la', and `ra'.
5095         * tmac/ps.tmac (ps-achar): New macro.
5096         Define "'c" and "'C".
5097         * tmac/tty.tmac: Add entry for `.i'.
5098         * tmac/X.tmac (X-achar): New macro.
5099         Define "'c", "'C", and `:Y'.
5100         Add entries for `IJ' and `ij'.
5101         * tmac/Xps.tmac (Xps-achar): New macro.
5102         Define "'c" and "'C".
5103         Add entries for `IJ' and `ij'.
5104         * tmac/lbp.tmac (lbp-achar): New macro.
5105         Add fallback characters for all groff ligatures and many other
5106         glyphs.
5107         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
5108         Add entries for `/l' and `/L'.
5109         Define "'c" and "'C".
5110         Add entries for `IJ' and `ij'.
5112 2002-11-02  Larry Kollar  <kollar@alltel.net>
5114         * PROBLEMS: Document how to solve Mac OS X compilation problems.
5116 2002-11-02  Werner LEMBERG  <wl@gnu.org>
5118         Adding support for composite glyphs: \[xxx yyy ...] and the
5119         `composite' request.
5121         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
5122         to Unicode-based glyph names.
5123         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
5124         glyph names to groff glyph names.
5125         * src/roff/troff/uniuni.cc: New file for canonically decomposing
5126         Unicode-based glyph names.
5127         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
5128         for handling Unicode glyph names.
5129         * src/roff/troff/input.cc: Include unicode.h.
5130         (composite_glyph_name): New function.
5131         (token::next) <'['>: Handle Unicode glyph names and composite
5132         glyphs.
5133         (composite_dictionary): New dictionary for the `composite' request.
5134         (composite_request): Implement `composite' request.
5135         (init_input_requests): Add `composite'.
5136         Alphabetically sorted.
5137         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
5138         commented out).
5139         (init_env_requests): Alphabetically sorted.
5140         Removed `tas' and `tar' (already commented out).
5141         * src/roff/troff/Makefile.sub: Updated.
5143 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
5145         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
5146         of options.
5148 2002-10-29  Werner LEMBERG  <wl@gnu.org>
5150         Fix computation of .trunc register.  Additionally, its value (and
5151         the value of the .ne register) is now always set before entering the
5152         trap.
5154         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
5155         `needed_space' before calling `space'.
5156         (top_level_diversion::space): Remove special code for 'sp before the
5157         first page.
5158         Call `begin_page' with the discarded space as a parameter.
5159         (top_level_diversion::begin_page): Add optional parameter to set
5160         `truncated_space'.
5161         * src/roff/troff/div.h: Updated.
5163         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
5164         \n[.ne].
5166         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
5167         (LP): Remove superfluous call to `br'.
5168         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
5169         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5171 2002-10-26  Werner LEMBERG  <wl@gnu.org>
5173         * tmac/doc-ditroff: Remove useless switch/variable -rC.
5174         (doc-setup-header): Don't set page register `%'.
5175         * tmac/doc-nroff: Remove variable `C'.
5176         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
5177         (doc-setup-header): Don't set page register `%'.
5178         Don't call `bp'.
5179         * tmac/doc-common (doc-header): Call `ns'.
5180         (doc-paragraph): Protect .sp with .br so that it survives traps
5181         possibly set by the user.
5182         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5184         * tmac/doc*: Replace ' with . for consistency if no effect.
5186 2002-10-26  Werner LEMBERG  <wl@gnu.org>
5188         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
5189         so that it survives traps possibly set by the user.
5191         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
5192         (troff_output_file::set_font): Call flush_tbuf if necessary.
5193         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
5194         flush_tbuf and do_motion only if necessary.
5195         (troff_output_file::start_special,
5196         troff_output_file::put_char_width, troff_output_file::put_char,
5197         troff_output_file::draw): Updated.
5198         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5199         vmotion_node::tprint): Undo change 2002-10-23.
5201 2002-10-25  Werner LEMBERG  <wl@gnu.org>
5203         * tmac/www.tmac (DC): Fix case of overlapping images.
5205 2002-10-23  Werner LEMBERG  <wl@gnu.org>
5207         * src/roff/troff/node.cc (troff_output_file::fill_color,
5208         troff_output_file::glyph_color): Set current color before testing
5209         color_flag.
5210         (troff_output_file::put_char_width, troff_output_file::put_char,
5211         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
5212         before glyph_color.
5213         (troff_output_file::file_color, troff_output_file::glyph_color):
5214         Call do_motion.
5215         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5216         vmotion_node::tprint): Move first, then call fill_color.
5218 2002-10-20  Werner LEMBERG  <wl@gnu.org>
5220         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
5221         possible to use multiple main macro packages.
5223 2002-10-19  Werner LEMBERG  <wl@gnu.org>
5225         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
5226         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
5227         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
5228         is set.
5229         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
5230         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
5232 2002-10-16  Werner LEMBERG  <wl@gnu.org>
5234         * NEWS, doc/webpage.ms: Updated.
5236 2002-10-14  Werner LEMBERG  <wl@gnu.org>
5238         * src/roff/troff/node.cc (troff_output_file::put_char_width,
5239         troff_output_file::put_char, troff_output_file::fill_color,
5240         troff_output_file::glyph_color): Handle case where color pointer
5241         is null.
5243 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
5245         Add the new -r option to grotty.  It is similar to the -i option
5246         except it tells grotty(1) to use the "reverse video" attribute to
5247         render italic fonts.
5249         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5250         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5251         (tty_printer::make_underline, tty_printer::put_color,
5252         tty_printer::end_page): Use it.
5253         (main): Add -r switch.
5254         (usage): Updated.
5255         * src/devices/grotty/grotty.man: Document it.
5257 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
5259         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5260         cast to `unsigned char' to properly read patterns with 8bit
5261         characters.
5263 2002-10-08  Werner LEMBERG  <wl@gnu.org>
5265         * REVISION: Increased to 2.
5267 Local Variables:
5268 version-control: never
5269 coding: latin-1
5270 End: