Update copyright year.
[s-roff.git] / ChangeLog
blob4c2cc79ea032b42d1d83ecced191b60dc0ba212b
1 2005-08-27  Bernd Warken
3         * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
4         fixes.
6 2005-08-11  Bernd Warken
8         * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
10 2005-08-09  Bernd Warken
12         * tmac/www.tmac (URL, MTO): Use bold series if color support is
13         deactivated.
15 2005-08-02  Bernd Warken
17         * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
18         as argument to $(INSTALL_INFO).  The latter isn't portable.
19         Remove $(HTMLEXAMPLEFILES) too.
21         * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
22         $(datadir)/doc too.
23         Suppress warning messages and return always true.
25         * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
27 2005-07-02  Bernd Warken
29         * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
30         * man/groff_out.man: More markup and minor improvements.
31         * src/roff/groff/groff.man: Minor improvements.
33 2005-06-28  Werner LEMBERG  <wl@gnu.org>
35         * ChangeLog: Split off older entries into...
36         * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
37         files.
39 2005-06-26  Bernd Warken
41         * src/devices/xditview/gxditview.man: More minor fixes.
43 2005-06-24  Werner LEMBERG  <wl@gnu.org>
45         * src/preproc/pic/troff.cpp (troff_output::set_fill,
46         troff_output::set_color, troff_output::reset_color): Use .bcolor and
47         .fcolor instead of \m and \M, respectively.
49 2005-06-23  Bernd Warken
51         * src/devices/xditview/gxditview.man: More minor fixes.
52         * README: Formatting issues.
53         Mention some problems with Debian.
55 2005-06-23  Bernd Warken
57         * src/devices/xditview/gxditview.man: Revised and improved.
59 2005-06-22  Werner LEMBERG  <wl@gnu.org>
61         Another round in fixing getopt problems.  Hopefully the last one!
62         This time we use the getopt stuff from gnulib and define a prefix
63         unconditionally so that there are no collisions with any other
64         getopt implementations.  This is a slight waste of space in case
65         we already use a GNU getopt implementation, but on
66         the other hand it really simplifies life.
68         * src/include/getopt.h: Use gnulib version.
70         * src/include/getopt_int.h: Use gnulib version.
72         * src/include/groff-getopt.h: Removed.  Obsolete now.
74         * src/include/lib.h: Regarding getopt, don't handle any platform
75         specially; just include getopt.h.
76         (__GETOPT_PREFIX): Define (before getopt.h).
78         * src/include/Makefile.sub (HDRS): Updated.
80         * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
81         gnulib version.
83         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
84         __GETOPT_PREFIX.
86         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
87         (__GETOPT_PREFIX): Define (before getopt.h).
89 2005-06-21  Werner LEMBERG  <wl@gnu.org>
91         * src/include/lib.h: Provide a fix for Mac OS X to not include
92         groff-getopt.h.
94 2005-06-20  Denis M. Wilson  <dmw@oxytropis.plus.com>
96         * font/devps/prologue.ps (EP): Dont' use `bind'.  Reason: Using
97         `bind' to define a procedure which contains `showpage' means that an
98         invocation of `showpage' may execute wrongly (the exact effect
99         depending on the interpreter).  Not usually a problem except under
100         transformations, such as combining pages.
101         (PEND): Don't call `clear'.  Reason: Using `clear' in the definition
102         of /PEND means that stack underflow will occur if the stack is
103         deliberately non-empty before document inclusion.  If included
104         files are found to be generally badly behaved, we could replace the
105         `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
106         never found this necessary).
108 2005-06-20  Jörgen Grahn  <jgrahn@algonet.se>
110         * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
111         earlier to get correct error message.
113 2005-06-16  Bernd Warken
114         * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
116 2005-06-15  Werner LEMBERG  <wl@gnu.org>
118         Another try to update getopt files.  This time we add a dummy
119         gettext.h file to satisfy the dependency.
121         * src/include/getopt.h, src/libs/libgroff/getopt.c,
122         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
124         * src/include/getopt_int.h: New file (from GNU libc CVS).
126         * src/include/gettext.h: Dummy file which just defines a gettext()
127         macro.
129         * src/include/groff-getopt.h: Updated.
131         * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
134         * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
135         `const' keywords in return value.
137         * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
138         Remove redundant variable `old'.
139         (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
141         * src/preproc/tbl/main.cpp (process_table): Remove redundant
142         variable `c'.
145         Fix more friend name injection problems since modern C++ compilers
146         fail otherwise.  We simply provide (global) declarations for all
147         functions declared as friends.  This is not really necessary but
148         doesn't harm.
150         * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
151         peek_char, and get_location.
153         * src/preproc/refer/ref.h: Provide declarations for
154         compare_reference, same_reference, same_year, same_date,
155         same_author_last_name, and same_author_name.
157         * src/roff/troff/div.h: Provide declarations for do_divert and
158         page_offset.
160         * src/roff/troff/env.h: Provide declarations for title_length,
161         space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
162         vertical_spacing, post_vertical_spacing, line_spacing, line_length,
163         indent, temporary_indent, do_underline, do_input_trap, set_tabs,
164         margin_character, no_number, number_lines, leader_character,
165         tab_character, hyphenate_request, no_hyphenate,
166         hyphen_line_max_request, hyphenation_space_request,
167         hyphenation_margin_request, line_width, tabs_save, tabs_restore,
168         line_tabs_request, widow_control_request, and do_divert.
170         * src/roff/troff/input.cpp: Provide declaration for chop_macro.
172         * src/roff/troff/node.cpp: Provide declarations for class
173         tfont_spec.
174         Provide declaration for make_tfont.
176 2005-05-29  Werner LEMBERG  <wl@gnu.org>
178         * doc/fdl.texi: Updated to version 1.2.  Reported by Bernd Warken.
180 2005-05-28  Werner LEMBERG  <wl@gnu.org>
182         * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
183         `--style'.
185         * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
186         redundant semicolons.
188         * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
189         src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
190         Define `MLIB'.  Some compilers need this for linking with libgroff.
192 2005-05-27  Werner LEMBERG  <wl@gnu.org>
194         * MANIFEST, README, doc/webpage.ms: Updated.
196 2005-05-26  Werner LEMBERG  <wl@gnu.org>
198         * All affected files: Update postal address of FSF.
200 2005-05-25  Keith Marshall  <keith.d.marshall@ntlworld.com>
201             Bernd Warken
203         * README: More fixes.
205         * README.CVS: Removed.  Its contents is now part of the README file.
207 2005-05-21  Werner LEMBERG  <wl@gnu.org>
209         * README: Updated.  Based on a patch from Bernd Warken.
211 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
213         Miscellaneous script portability enhancements.
215         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
216         generated conftest.sh script, conforming to portability
217         recommendation in autoconf docs.
218         * configure: Likewise, for code generated by GROFF_CSH_HACK.
219         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
220         to portability recommendation in autoconf docs.
221         * contrib/gdiffmk/gdiffmk.sh: Likewise.
222         * contrib/gdiffmk/tests/runtests.in: Likewise.
223         * contrib/grap2graph/grap2graph.sh: Likewise.
224         * contrib/groffer/groffer.sh: Likewise.
225         * contrib/mm/mmroff.pl: Likewise.
226         * contrib/mom/momdoc/appendices.html: Likewise.
227         * contrib/pic2graph/pic2graph.sh: Likewise.
228         * font/devps/generate/afmname: Likewise.
229         * src/devices/xditview/ad2c: Likewise.
230         * src/preproc/eqn/neqn.sh: Likewise.
231         * src/roff/grog/grog.pl: Likewise.
232         * src/roff/grog/grog.sh: Likewise.
233         * src/roff/nroff/nroff.sh: Likewise.
234         * PROBLEMS: Likewise, in embedded script examples.
236 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
238         Improve portability of `pdfroff' shell script.
240         * arch/misc/shdeps.sh: Add space in shebang, conforming to
241         portability guidelines in `autoconf' docs.
242         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
243         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
244         `searchpath' function.
246 2005-05-14  Werner LEMBERG  <wl@gnu.org>
248         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
249         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
250         needed for newer ImageMagick versions.
252 2005-05-07  Werner LEMBERG  <wl@gnu.org>
254         * src/preproc/refer/refer.man: Many small typographic fixes.
256 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
258         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
259         Use `char *' cast for a_delete.
261 2005-05-03  Werner LEMBERG  <wl@gnu.org>
263         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
264         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
266 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
268         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
269         `a_delete' for `const char *'.
271 2005-05-03  Werner LEMBERG  <wl@gnu.org>
273         * src/devices/grohtml/post-html.cpp,
274         src/devices/grohtml/html-table.cpp,
275         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
276         Replace malloc/free with new/delete/a_delete.
278         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
279         are prohibited with ANSI C++.
280         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
281         function has a variable number of arguments).
283         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
284         Simplify function and update all callers.
286 2005-05-02  Werner LEMBERG  <wl@gnu.org>
288         Undo getopt changes from 2005-04-30.  We don't want a dependency
289         on gettext.
291         * src/include/getopt_int.h: Removed.
293         * src/include/getopt.h, src/include/groff-getopt.h,
294         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
295         src/libs/libgroff/getopt1.c: Revert to previous version.
298         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
300         * src/include/posix.h (F_OK): Define conditionally.
302         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
303         different variable name in second `for' loop to avoid MSVC compiler
304         problem.
306 2005-04-30  Werner LEMBERG  <wl@gnu.org>
308         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
310         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
311         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
312         * configure, src/include/config.hin: Regenerated.
314         * PROBLEMS: Updated.
317         Update getopt files.
319         * src/include/getopt.h, src/libs/libgroff/getopt.c,
320         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
322         * src/include/getopt_int.h: New file (from GNU libc CVS).
324         * src/include/groff-getopt.h: Updated.
326         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
329         * font/devutf8/NOTES: Updated.
331 2005-04-28  Werner LEMBERG  <wl@gnu.org>
333         Bug fix for Win32 relocatable code.  Based on a patch from Keith
334         Marshall.
336         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
337         also.
339         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
340         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
342 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
344         Correct `gnu.eps' handling for build from distribution tarball, with
345         separate source and build directories.
347         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
348         grnexmpl.g, groff.css and gnu.eps from source to build directory;
349         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
350         (prepare_examples): Make it depend on examples.stamp.
351         (CLEANADD): Add examples.stamp.
353 2005-04-27  Werner LEMBERG  <wl@gnu.org>
355         Implement the rule
357           position: '(' position ')'
359         in pic.
361         * src/preproc/pic/pic.y (position, position_not_place): Handle
362         additional parentheses.
364         * doc/pic.ms: Updated.
366 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
368         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
370 2005-04-18  Werner LEMBERG  <wl@gnu.org>
372         * src/roff/groff/pipeline.c: Don't include ctype.h.
374 2005-04-13  Werner LEMBERG  <wl@gnu.org>
376         * src/roff/nroff/nroff.man: Document option `-M'.
378 2005-04-13  Bruce Lilly  <blilly@erols.com>
380         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
382 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
383             Werner LEMBERG  <wl@gnu.org>
385         Add binary relocation support for Windows platforms.
387         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
389         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
391         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
392         (search_path::search_path, search_path::open_file_cautious): Use
393         `relocate'.
395         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
396         src/include/Makefile.sub (HDRS): Updated.
398 2005-04-01  Werner LEMBERG  <wl@gnu.org>
400         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
401         strsave/a_delete.
403         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
405         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
406         lib.h already does it.
408         * src/libs/libgroff/maxpathname.cpp: New file, defining
409         path_name_max.
411         * src/include/lib.h: Add prototype for path_name_max.
413         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
415         * src/include/nonposix.h (PATH_EXT): New macro.
417 2005-03-28  Werner LEMBERG  <wl@gnu.org>
419         Add support for double- and zero-width characters in grotty.
421         * src/devices/grotty/tty.cpp (glyph): Add width.
422         (tty_printer::make_underline, tty_printer::make_bold,
423         tty_printer::add_character): Add parameter to pass character width.
424         Update all callers.
425         (tty_printer::end_page): Increase hpos by actual character width.
427         * font/devutf8/R.proto: Specify zero width for non-spacing
428         characters.
430         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
432         * Makefile.comm (extraclean): Remove more junk files.
434 2005-03-25  Werner LEMBERG  <wl@gnu.org>
436         * configure.ac: Undo change from 2005-03-24.
437         * configure: Regenerated.
439 2005-03-24  Werner LEMBERG  <wl@gnu.org>
441         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
442         (dist): Search Makefile while descending into $(EXTRADIRS).
444         * doc/Makefile.in (.PHONY): Add.
445         (clean): Don't remove *.png and *.eps.
446         Don't handle *.gif.
447         (realclean): Remove *.png and *.eps.
448         (extraclean): Depend on distclean.
450         * configure.ac: Add copyright.
451         Handle contrib/pdfmark/Makefile.
453         * configure: Regenerated.
455 2005-03-18  Larry Kollar  <kollar@alltel.net>
457         Add numbered and definition lists to www.tmac.
459         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
460         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
461         auxiliary string registers.
462         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
463         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
464         (www-level): Removed.
465         (www-level1, www-level2, www-level3): Initialize to empty.
466         (www-level0, www-level4, www-level5, www-level6, www-level7,
467         www-level8, www-level9): New string registers.
468         (www-push-li, www-pop-li): New macros.
469         (www-push-level, www-pop-level): Renamed to...
470         (www-push-ul-level, www-pop-ul-level): This.
471         Updated.
472         (www-push-ol-level, www-pop-ol-level): New macros.
473         (ULS, ULE): Updated.
474         (OLS, OLE, DLS, DLE): New user macros.
475         (LI): Removed.  It is aliased to one of...
476         (www-li-ul, www-li-ol, www-li-dl): New macros.
478         * tmac/groff_www.man: Document new macros.
480         * NEWS: Updated.
482 2005-03-18  Werner LEMBERG  <wl@gnu.org>
484         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
485         doc-operating-system-NetBSD-2.0.2): New strings.
487         * tmac/groff_mdoc.man: Updated.
489 2005-03-17  Werner LEMBERG  <wl@gnu.org>
491         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
493 2005-03-17  Werner LEMBERG  <wl@gnu.org>
495         * src/libs/libgroff/hypot.c: Renamed to...
496         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
498         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
500         * src/include/lib.h: Updated.
502 2005-03-16  Werner LEMBERG  <wl@gnu.org>
504         Add workaround for broken hypot() on Interix.
506         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
508         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
509         (CSRCS): Add `hypot.c'.
511         * src/include/lib.h: Declare `groff_hypot'.
513         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
514         Use `groff_hypot'.
516         * src/preproc/pic/pic.h: Don't declare `hypot'.
518         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
520 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
522         * src/devices/grohtml/post-html.cpp
523         (html_printer::lookahead_for_tables): End .ce properly to avoid a
524         segfault.
526 2005-03-15  Werner LEMBERG  <wl@gnu.org>
528         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
530         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
532         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
534 2005-03-14  Werner LEMBERG  <wl@gnu.org>
536         Add Cyrillic support to devutf8 and devhtml.
538         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
540         * tmac/unicode.tmac: New file.
542         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
544         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
546         * NEWS: Updated.
548 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
550         * src/libs/libdriver/printer.cpp (check_for_output_error): New
551         function.  It has been introduced to catch peculiar error contexts
552         on MS-Windows platforms.
554 2005-02-28  Werner LEMBERG  <wl@gnu.org>
556         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
557         null pointer.
559         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
561         * configure: Regenerated.
563         * NEWS: Updated.
565 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
567         Integrate `pdfmark' into normal groff build system;
568         install macro `pdfmark' packages, build and install `pdfroff',
569         and PDF format documentation.
571         * Makefile.comm: Add PDFDOCDIR.
573         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
574         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
575         (unstall_dirs): Add pdfdocdir.
577         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
578         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
579         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
580         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
581         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
582         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
583         set ALT_AWK_PROGS.
584         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
585         use of GROFF_AWK_PREFS.
586         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
587         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
589         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
590         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
591         also by modified GROFF_HTML_PROGRAMS).
593 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
595         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
596         paragraph spacing.
597         (html_text::done_para): Unset `start_space'.
598         (html_text::remove_para_align): Call `retrieve_para_space' for the
599         spacing.
601         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
602         `seen_space'.
603         (html_printer::do_check_center): Emit vertical space if necessary.
605         * src/roff/troff/env.cpp (environment_switch): Preserve
606         `seen_space', `seen_eol', and `suppress_next_eol' while switching
607         environments.
609         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
610         `is_special'.
612 2005-02-20  Werner LEMBERG  <wl@gnu.org>
614         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
615         eqn.
617 2005-02-17  Werner LEMBERG  <wl@gnu.org>
619         * doc/pic.ms, man/groff.man: Fix typos.
621         * doc/groff.texinfo: Fix typos.
622         (\LEmacro): Get proper mathematical spacing.
624 2005-02-16  Werner LEMBERG  <wl@gnu.org>
626         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
627         * configure: Regenerated with autoconf 2.59b.
629 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
631         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
632         html_printer::start_font): Fix handling of preformatted text.
634 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
636         These patches modify the indentation implementation to use `<p
637         style=margin-left: n%>'.  Many thanks to Peter and Larry for
638         suggesting this solution.  Grohtml only uses tables for `.IP' and
639         related tags when the first operand has a short width.
641         Similarly, they modify all vertical space code.  By default, grohtml
642         sets up a style sheet which uses no vertical space between `table',
643         `pre', and `p' tags.  It forces spaces when it needs them using
644         `style="margin-top: 1em"'.
646         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
647         (html_table::emit_table_header, html_table::emit_new_row):
648         Rewritten.
649         (html_table::set_space): New function.
650         (html_indent::html_indent): Don't set `is_used'.
651         (html_indent::begin): Rewritten.
652         (html_indent::end): Remove code in function.
654         * src/devices/grohtml/html-table.h: Updated.
655         (html_table): Make `out' public.
657         * src/devices/grohtml/html-text.cpp (html_text::html_text):
658         Initialize `start_space' with FALSE.
659         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
660         (html_text::issue_tag): Add argument to handle space style.
661         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
662         (html_text::flush_text): Don't set `start_space'.
663         (html_text::push_para): Don't set `p->really_issued'.
664         (html_text::do_emittext): Updated.
665         (html_text::do_para): Add paremeter to handle space.
666         Update all callers.
667         (html_text::retrieve_para_space): New function.
669         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
670         (tag_definition): Remove `really_issued'.
671         (html_text): Updated.
673         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
674         `current_column' and `row_space'.
675         Update constructor.
676         (html_printer::emit_raw, html_printer::write_header,
677         html_printer::do_indent, html_printer::do_check_center,
678         html_printer::do_tab_ts): Handle vertical space.
679         (html_printer:do_tab_te, html_printer::do_end_para): Call
680         `remove_para_space'.
681         (html_printer::do_col): Rewritten.
682         (html_printer::flush_globs): Remove debugging code.
683         (html_printer::is_line_start): New function.
684         (html_printer::start_font): Use `is_line_start'.
685         (html_printer::writeHeadMetaStyle): New function.
686         (html_printer::do_file_components, html_printer::~html_printer):
687         Call `writeHeadMetaStyle'.
689         * tmac/www.tmac (www-handle-percent): New macro.
690         (MPIMG): Handle percent values for width and height parameters.
691         (DC): Updated.
693         * tmac/groff_www.man: Updated.
695 2005-02-14  Werner LEMBERG  <wl@gnu.org>
697         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
698         $psname and $italic_angle.
699         Immediately restart file input loops if `split' returns an empty
700         array.
702 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
703             Werner LEMBERG  <wl@gnu.org>
705         Update afmtodit to better support Unicode (Michail).
706         Update afmtodit to use Perl 5 syntax (Werner).
708         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
709         `Getopts::Std'.
710         Decorate variables with `my' where necessary.
711         Use `defined' where necessary to avoid warnings.
712         Don't use `do' for subroutine calls.
713         Other minor syntax updates.
714         Check for both `uXXXX[X[X]]' and `uniXXXX'.
715         Handle glyph variants properly.
716         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
717         strings.
719         * src/utils/afmtodit/afmtodit.man: Updated.
721 2005-02-13  Werner LEMBERG  <wl@gnu.org>
723         Make groff.texinfo work with texinfo 4.8.
725         * doc/groff.texinfo (@Var): Use @r and @slanted.
726         (@defdummy, @Def*): Use @c to avoid empty lines.
727         (\angles): Replaced with...
728         (\Langlemacro, \Ranglemacro): New TeX macros.
729         (@Langlemacro, @Ranglemacro): New variables defined with @set.
730         (@angles): Use @Langlemacro and @Ranglemacro.
731         (\LE): Replaced with...
732         (\LEmacro): New TeX macro.
733         (@LEmacro): New variable defined with @set.
734         (@LE): Use @LEmacro.
735         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
736         variables defined with @set.
737         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
738         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
739         Update all callers.
741         Other minor updates.
743         * doc/texinfo.tex: Update to texinfo version 4.8.
745         * README.CVS: Updated.
747 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
749         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
750         and `FAM' registers.
752 2005-02-05  Werner LEMBERG  <wl@gnu.org>
754         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
755         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
756         Update BSD license.
758 2005-02-01  Werner LEMBERG  <wl@gnu.org>
760         * src/roff/groff/groff.man: Add information about paper size.
762 2005-01-25  Werner LEMBERG  <wl@gnu.org>
764         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
765         NetBSD bin/29114.
767 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
769         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
770         cases.
771         (Re): Emit a warning if called without `.Rs'.
772         (doc-finish-reference): Use parameter for decreasing
773         `doc-reference-count'.
774         (doc-print-reference): Pass specific count parameters to
775         `doc-finish-reference'.
777 2005-01-21  Werner LEMBERG  <wl@gnu.org>
779         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
780         Reset pointers to zero after deallocation.  This fixes a crash
781         if a driver is called with multiple input files.  Reported by
782         Ken Chilton <ken@chiltonfamily.org>.
784         * src/devices/grops/grops.man: Add more info on DSC.
786 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
788         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
789         Remove dead code.
791 2005-01-17  Werner LEMBERG  <wl@gnu.org>
793         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
794         against division by zero.
796 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
798         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
800 2004-12-19  Werner LEMBERG  <wl@gnu.org>
802         * install-sh: New version; taken from texinfo CVS.
804 2004-12-17  Werner LEMBERG  <wl@gnu.org>
806         * tmac/devtag.tmac: Protect against loading twice.
807         Protect agains compatibility mode.
808         * tmac/www.tmac: Protect against loading twice.
809         Load `devtag.tmac' before switching off compatibility mode.
810         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
812 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
814         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
815         * configure: Updated.
817 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
819         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
821 2004-12-15  Werner LEMBERG  <wl@gnu.org>
823         Make `test-groff' work again -- previously, wrong paths have been
824         used.  Additionally, it can now be called from anywhere.
826         * test-groff.in: Don't test for groff binary.  This is no longer
827         necessary since the proper paths are determined by `configure'.
828         (EXEEXT): Removed.  No longer used.
829         (srcdir, builddir): Use values provided by the configure script.
830         (XENVIRONMENT): Updated.
832         * INSTALL: Updated.
834 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
836         Make .tag and .taga work for all devices (but only grohtml actually
837         handles them).
839         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
840         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
841         html_printer::handle_assertion): Don't use hard-coded string
842         lengths.
843         (html_printer::lookahead_for_table): Reset `tbl' properly if
844         necessary.
845         (html_printer::devtag): New function, handling `devtag'.
846         (html_printer::special): Don't handle `html-tag'.
848         * src/include/printer.h, src/libs/libdriver/printer.cpp
849         (printer::devtag): New virtual function.
851         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
852         `devtag'.
854         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
855         src/roff/troff/node.cpp: s/html-tag/devtag/.
857         * src/roff/troff/input.cpp (tag, taga): Always call
858         curenv->add_node.
860         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
861         macros instead of HTML-TAG*.
863         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
865         * tmac/www.tmac: Load devtag.tmac.
866         Replace HTML-TAG* macros with DEVTAG* macros.
867         (HTML, HTML-NS): Changed definitions.
868         (URL): Use HTML-NS.
869         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
871         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
873 2004-12-10  Werner LEMBERG  <wl@gnu.org>
875         Import Mike's `gdiffmk' package.
877         * contrib/gdiffmk/*: New files.
878         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
879         * NEWS: Updated.
881 2004-12-08  Werner LEMBERG  <wl@gnu.org>
883         Import Keith's `pdfmark' package.  Integration is very preliminary.
885         * contrib/pdfmark/*: New files.
886         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
887         * NEWS: Updated.
889 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
891         Fix a bug with title handling in HTML.
893         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
894         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
895         length.
896         (html_printer::handle_tag_within_title): New function.
897         (html_printer::do_title): Use it.
899         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
900         (cov*tl-au-print): Emit `.eo.tl' tag.
902 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
904         * man/groff_char.man: Minor imrovements.
906 2004-12-04  Werner LEMBERG  <wl@gnu.org>
908         * src/preproc/eqn/eqn.man: Revised.
910 2004-11-25  Werner LEMBERG  <wl@gnu.org>
912         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
913         groff source files.
914         Include config.h.
915         Include limits.h.
916         Remove X_NOT_STDC_ENV conditional.
917         (Version_string, program_name): New global variables.
918         (groff_flag): Removed.
919         (MapFont): Updated.
920         (usage): Take a stream as argument.
921         Use `program_name'.
922         Update all callers.
923         (main): Add `long_options' array for `--help' and `--version'.
924         Make `-g' a dummy option.
925         Handle `-v' and unknown options.
926         Remove unused `position' variable.
928         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
929         (XLIBS): Add LIBGROFF.
931         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
932         New files.
934         * src/devices/xditview/Dvi.c (default_font_map): Split into three
935         parts to avoid compiler warning.
936         (resources): Don't initialize with `default_font_map'.
937         (ClassInitialize): Initialize first element of `resources'.
939         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
940         Removed.
942         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
943         src/utils/pfbtops/pfbtops.man: Revised, updated.
945         * configure.ac: Generate src/utils/xtotroff/Makefile.
946         * configure: Regenerated.
948 2004-11-24  Werner LEMBERG  <wl@gnu.org>
950         First fixes to get produce HTML.
952         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
953         attribute.
955         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
956         (HR, LI): Use `HTML</p>', not `HTML'.
958         * doc/webpage.ms: Minor updates.
960 2004-11-23  Larry Kollar  <kollar@alltel.net>
962         Add option -S grohtml to determine the file split level.
964         * src/devices/grohtml/post-html.cpp (split_level): New global
965         variable.
966         (html_header::determine_header_level): Use split_level.
967         (main): Handle `-S' command line option.
968         Sort options.
970         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
972         * src/devices/grohtml/grohtml.man: Document it.
973         Sort options.
975         * NEWS: Document it.
977 2004-11-23  Y T  <doarhop@hotmail.com>
979         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
980         the volume and number refer entries.
982 2004-11-22  Werner LEMBERG  <wl@gnu.org>
984         * src/devices/grohtml/html-table.cpp
985         (html_table::emit_table_header): Don't emit `cols' attribute which
986         doesn't exist in HTML 4.0 and is thus invalid.
988         * NEWS: More minor fixes and updates.
990 2004-11-18  Werner LEMBERG  <wl@gnu.org>
992         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
993         (HTML</p>): Minor clean-up.
995         * tmac/groff_www.man: Updated.
997         * src/devices/grohtml/grohtml.man: Revised and updated.
999         * NEWS: Updated.
1001 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
1003         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
1004         Fix space insertion.
1005         (html_printer::do_links): Fix rules generation around automatic
1006         heading links.
1008         * tmac/www.tmac (LK): Use HTML-TAG-NS.
1009         (HR): Simplify.
1010         No longer emit empty line for non-HTML devices.
1012 2004-11-17  Werner LEMBERG  <wl@gnu.org>
1014         * doc/Makefile.in (prepare_examples, webpage.html): Handle
1015         `groff.css'.
1017         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
1018         prepare_examples, webpage.html): Handle `groff.css'.
1020 2004-11-15  Werner LEMBERG  <wl@gnu.org>
1022         * NEWS, README, doc/webpage.ms: Updated.
1024         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
1026 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
1028         * src/include/printer.h (printer): Remove virtual function
1029         `round_width'.
1030         Update all source files.
1032         * src/devices/grohtml/post-html.cpp (html_printer): New member
1033         function `round_width'.
1035 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1037         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
1038         column key letter suffix.
1040 2004-10-14  Werner LEMBERG  <wl@gnu.org>
1042         * Makefile.in (check): Depend on `site.exp' and `docheck'.
1043         (docheck): Run dejagnu's `runtest' if it exists.
1044         (site.exp): Create dejagnu configuration file.
1046         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
1048 2004-10-13  Werner LEMBERG  <wl@gnu.org>
1050         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
1051         src/devices/grohtml/post-html.cpp (make_val,
1052         html_printer::handle_state_assertion): Fix compiler warnings.
1054         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
1055         (diversion::diversion): Fix order of initializers.
1057         * src/roff/troff/div.h: Don't include `mtsm.h'.
1059         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
1060         (environment::environment): Fix order of initializers.
1061         (environment::make_tag, environment::construct_format_state): Fix
1062         compiler warnings.
1064         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
1065         (input_iterator::input_iterator, macro::macro): Fix order of
1066         initializers.
1068         * src/roff/troff/mtsm.cpp: Include only necessary header files.
1069         (state_set::add, state_set::val): Fix compiler warnings.
1071         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
1072         (bool_value_state, int_value_state, units_value_state,
1073         string_value_state): Remove comma after last element which causes
1074         an error with g++ 3.3.3.
1076         * src/roff/troff/node.cpp: Include `stringclass.h'.
1077         (hline_node::hline_node, vline_node::vline_node,
1078         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
1079         warnings.
1080         (zero_width_node::zero_width_node): Fix order of initializers.
1082         * src/roff/troff/node.h: Don't include `mtsm.h'.
1083         (hmotion_node): Fix compiler warnings.
1085         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
1087 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
1089         * doc/groff.css: New file.
1091         * doc/webpage.ms: Use `groff.css'.
1092         Other small fixes.
1094         * tmac/an-old.tmac (need_eo_h): New number register.
1095         (TH): Emit `.eo.tl' tag after title.
1096         (SH): Set `need_eo_h'.
1097         (an-trap): Handle `need_eo_h'.
1098         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
1100         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
1101         (TL): Always start diversion.
1102         Updated.
1103         (@AI): Always call `par@reset'.
1104         (@AB): Update code for -Thtml.
1105         (cov*tl-au-print): Handle -Thtml.
1106         (par@reset): Handle `need_eo_tl', `need_eo_h'.
1107         (@IP): Simplified.
1108         (@IT-html): Removed.
1109         (@SH): Set `need_eo_h' for -Thtml.
1110         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
1111         Set `need_eo_tl'.
1112         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
1113         Set `need_eo_h' for -Thtml.
1114         (@EQ, @EN): Don't handle -Thtml specially.
1115         (par@load-init): Don't handle -Thtml specially.
1117         * tmac/www.tmac (www:paraspace): New macro.
1118         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
1119         (HTML</p>, HTML-TAG-NEXT): New macros.
1120         (HnE): Emit tag `.eo.h' instead of break.
1121         (HR): s/HTML-NS/HTML/.
1122         (www-end-nowhere): End diversion only if `www-html' not set.
1123         Emit `.eo.tl' tag.
1124         (ULS, ULE): s|HTML|HTML</p>|.
1125         (LI): Call `www:paraspace'.
1126         (HEAD): New macro.
1128 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
1130         * src/roff/troff/request.h (macro): Make `p' public.
1131         New variable `is_a_diversion'.
1132         New member function `is_diversion'.
1135         * src/devices/grohtml/html.h (simple_output): New member function
1136         `force_nl'.
1138         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
1139         computation of `total'.
1140         (tabs::check_init): New function.
1141         (html_table::emit_table_header): Emit style data.
1142         (html_table::insert_column): Improved.
1144         * src/devices/grohtml/html-table.h: Updated.
1146         * src/devices/grohtml/html-text.cpp (html_text::html_text):
1147         Initialize `start_space' with TRUE.
1148         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
1149         cases.
1150         (html_text::flush_text): Set `start_space' flag.
1151         (html_text::uses_indent, html_text::remove_para_space,
1152         html_text::get_alignment): New functions.
1153         (html_text::push_para): Updated.
1154         (html_text::do_para): Check for empty argument.
1155         Don't set `space_emitted'.
1156         (html_text::do_space, html_text::emit_space): Updated.
1158         * src/devices/grohtml/html-text.h (tag_definition): New variable
1159         `really_issued'.
1160         (html_text): New member function `uses_indent', `remove_para_space',
1161         `get_alignment'.
1163         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
1164         function.
1165         (simple_output:nl): Always emit `\n'.
1167         * src/devices/grohtml/post-html.cpp: Include `string.h'.
1168         (BASE_POINT_SIZE): Removed.
1169         (base_point_size, head_info): New global variables.
1170         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
1171         `is_eo_h'.
1172         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
1173         tags, respectively.
1174         (page::add_and_encode): Pass additional parameter for tag flag.
1175         (assert_pos): New structure.
1176         (assert_state): New class.
1177         (html_printer): Remove `indentation', `prev_indent'.
1178         Add variables `troff_indent', `device_indent', `temp_indent'.
1179         Add variables `seen_indent', `next_indent', `seen_pageoffset',
1180         `next_pageoffset', `seen_linelenght', `next_linelength',
1181         `seen_center', `next_center', `seen_space', `seen_break', `as'.
1182         Add member functions `do_check_center', `do_space', `do_head',
1183         `get_troff_indent', `restore_troff_indent', `handle_assertion',
1184         `handle_state_assertion', `do_end_para', `set_char_and_width'.
1185         Change argument to `do_fill' to `char *'.
1186         Update constructor.
1187         (html_printer::emit_raw): Call `shutdown_table'.
1188         Use new functions.
1189         (html_printer::do_center): Simplified.
1190         (html_printer::do_title): Improved.
1191         (html_printer::write_header): Emit one more newline.
1192         Use new functions.
1193         (html_printer::do_heading, html_printer::do_indent,
1194         html_printer::do_eol, html_printer::do_tab_ts,
1195         html_printer::do_tab, html_printer::do_tab0,
1196         html_printer::calc_po_in, html_printer::next_horiz_pos,
1197         html_printer::remove_courier_tabs,
1198         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1199         Updated.
1200         (html_printer::do_linelength, html_printer::do_pageoffset,
1201         html_printer::do_indentation, html_printer::do_tempindent,
1202         html_printer::do_tab_te): Simplified.
1203         (html_printer::do_pointsize): Check whether point size is really
1204         associated a `.tl' tag.
1205         (html_printer::do_break): Rewritten.
1206         (html_printer::troff_tag): Improved.
1207         (html_printer::flush_globs): Updated.
1208         (html_printer::lookahead_for_tables): Handle `is_br'.
1209         Use new functions.
1210         (html_printer::set_char): Check `sbuf_style.f'.
1211         (html_printer::write_navigation): Use string comparison.
1212         (html_printer::~html_printer): Emit `head_info'.
1213         (html_printer::special): Rewritten.
1214         (get_str, make_val): New functions.
1215         (main): New option `s' to set the base point size.
1217         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1219 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
1221         * src/roff/troff/node.cpp: New extern `debug_state'.
1222         Include `stringclass.h' and `mtsm.h'.
1223         Implement new classes and class members from `node.h'.
1224         (real_output_file): Make `fp' public.
1225         (troff_output_file): New variables `cur_div_level' and `tag_list'.
1226         Update constructors.
1227         (troff_output_file::really_print_line): Check whether we should push
1228         the current troff state and use the state at the start of the
1229         invocation of this diversion.
1230         (troff_output_file::add_to_tag_list): New member function.
1231         (node::add_char): Handle `glyph_comp_np'.
1233         * src/roff/troff/node.h: Include `mtsm.h'.
1234         (node): New variables `state', `push_state', `div_nest_level',
1235         `is_special'.  Update constructors, all descendants.
1236         Pass additional argument to `add_char' member function.
1237         New virtual member functions `is_tag', `debug_node',
1238         `debug_node_list'.  Update all descendants.
1239         (tag_node): New class for handling tags.
1240         (output_file): Add variable `state'.
1242 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
1244         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1245         providing a minimal troff state machine to emit meta tags for the
1246         post-grohtml device driver.
1248         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1249         files.
1251 2004-10-09  Werner LEMBERG  <wl@gnu.org>
1253         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1255 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
1257         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1259         * src/roff/troff/div.h: Include `mtsm.h'.
1260         (diversion): New variables `any_chars_added', `needs_push',
1261         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1262         `saved_suppress_next_eol', `modified_tag'.
1263         New virtual member function `is_diversion'.  Update all descendants.
1265         * src/roff/troff/div.cpp (diversion::diversion,
1266         macro_diversion::macro_diversion): Updated.
1267         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1268         `suppress_next_eol'.
1269         (top_level_diversion::space): Handle `curenv->seen_space'.
1270         (page_offset): Update tag handling.
1271         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1273         * src/roff/troff/env.h (environment): Make `tabs' public.
1274         Remove `ignore_next_eol', `emitted_node'.
1275         Update `output_line', `output'.
1276         New variables `seen_space', `seen_eol', `suppress_next_eol',
1277         `seen_break'.
1278         New member functions `construct_state', `make_tag',
1279         `construct_format_state, `construct_new_line_state,
1280         `dump_troff_state'.
1281         Remove `add_html_tag', `make_html_tag'.
1283         * src/roff/troff/env.cpp: New externs `suppress_push',
1284         `get_diversion_state', `global_diverted_space'.
1285         (pending_output_line): New variable `was_centered'.
1286         Update constructor and all callers.
1287         (pending_output_line::output): Call `curenv->construct_format_state'.
1288         (environment::environment, environment::copy): Updated.
1289         (environment::output): Handle `was_centered'.
1290         (environment::add_char): Handle construct and diversion state.
1291         (environment::add_node): Handle construct state.
1292         (environment::newline): Handle `was_centered'.
1293         (environment::output_line): Updated.
1294         (environment::possibly_break_line): Updated.
1295         Update tag handling.
1296         (environment::add_html_tag): Replaced with...
1297         (environment::make_tag): New function.
1298         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1299         (environment::dump_troff_state): New debugging function.
1300         (environment::construct_state, environment::construct_format_state,
1301         environment::construct_new_line_state): New functions.
1302         (environment::do_break): Updated.
1303         Handle `global_diverted_space'.
1304         (environment::handle_tag): Update tag handling.
1305         (point_size, fill, do_break_request): Don't call `add_html_tag'.
1306         (no_fill): Don't call `add_html_tag'.
1307         Set `suppress_next_eol'.
1308         (center, right_justify, line_length, indent, temporary_indent,
1309         set_tabs):
1310         Update tag handling.
1312         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1313         (input_iterator): New variables `is_diversion', `diversion_state'.
1314         Update constructors.
1315         (input_stack): New member functions `get_div_level',
1316         `get_diversion_state', `check_end_diversion'.
1317         New variables `div_level', `diversion_state'.  Initialize them.
1318         (suppress_push, global_diverted_space): New global variables.
1319         (input_stack::finish_get, input_stack::finish_peek,
1320         input_stack::remove_boundary, input_stack::end_file,
1321         input_stack::clear, input_stack::pop_macro): Call
1322         `check_end_diversion'.
1323         (input_stack::push): Handle `div_level' and `diversion_state'.
1324         (get_diversion_state): New function.
1325         (diverted_space_node::reread): Handle `global_diverted_space'.
1326         (macro::macro): Update constructors.
1327         (macro::is_diversion): New function.
1328         (macro::operator=): Set `is_a_diversion'.
1329         (string_iterator): New member function `is_diversion'.
1330         (string_iterator::string_iterator): Update constructors.
1331         (string_iterator::fill): Set `div_nest_level'.
1332         (macro_iterator): New member function `is_diversion'.
1333         (do_if_request): Handle `suppress_push'.
1334         (tag, taga): New functions.
1335         (init_input_requests): Add `tag' and `taga' requests.
1337 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
1339         * src/include/font.h (font): New member function
1340         `get_image_generator'.
1341         New variables `unscaled_charwidths' and `image_generator'.
1343         * src/libs/libgroff/font.cpp (font::get_width): Always return the
1344         character's unscaled width if `font::unscaled_charwidths' is set.
1345         (font::get_image_generator): New function.
1346         (font::load_desc): Check the `unscaled_charwidths' and
1347         `image_generator' keywords.
1349         * src/libs/libgroff/fontfile.cpp: Initialize
1350         `font::unscaled_charwidths' and `font::image_generator'.
1352         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1354         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1356         * man/groff_font.man: Document `unscaled_charwidths' and
1357         `image_generator'.
1359         * src/preproc/html/pre-html.cpp: Include `device.h'.
1360         (image_gen): New global variable.
1361         (imageList::createPage): Use `image_gen'.
1362         (main): Use `image_generator' keyword.
1364 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1366         * tmac/html.tmac: Handle \[sqrtex].
1368 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1370         * src/include/printer.h (printer): New virtual method `round_width'.
1372         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1373         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1374         src/devices/grotty/tty.cpp (printer::round_width): New function
1375         member.
1377         * src/devices/grohtml/post-html.cpp (printer::round_width): New
1378         function member.
1379         (html_printer::set_numbered_char): Use it.
1381 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
1383         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1385         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1387         * configure: Regenerated.
1389         * Makefile.in (GHOSTSCRIPT): New variable.
1390         (MDEFINES): Add GHOSTSCRIPT.
1392 2004-10-03  Werner LEMBERG  <wl@gnu.org>
1394         * INSTALL.gen: Updated (taken from texinfo CVS).
1396 2004-09-28  Werner LEMBERG  <wl@gnu.org>
1398         * NEWS: Updated.
1400 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1402         * tmac/groff_www.man: Revised and updated.
1404 2004-09-26  Werner LEMBERG  <wl@gnu.org>
1406         Fix \$@ and \$* to handle any number of arguments.
1408         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1409         characters.
1411         * src/roff/troff/input.cpp (input_iterator::internal_level):
1412         Removed.
1413         (input_stack): New member functions `increase_level' and
1414         `decrease_level'.
1415         (input_stack::get_level): Don't use `internal_level'.
1416         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1417         (end_quote_iterator): Completely removed.
1418         (interpolate_arg): Build string for \$@ and \$* which is then
1419         pushed onto the input stack.
1421 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
1423         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1424         2004-09-19.
1426 2004-09-23  Werner LEMBERG  <wl@gnu.org>
1428         * tmac/an-old.tmac (ne): Using default scaling operator.
1430 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1432         This change implements the following features:
1434         PORPHANS
1435           New numeric register: Defines number of lines following LP, PP,
1436           QP, IP or XP, which must be kept together, before any automatic
1437           page break.  If insufficient space remains on the current page, a
1438           page break is forced before the new paragraph begins.
1440         HORPHANS
1441           New numeric register: Sets number of lines of following paragraph
1442           which must be kept with a heading, defined by NH or SH, before any
1443           automatic page break.  If insufficient space remains on the
1444           current page, a page break is forced before the heading.
1446         GROWPS
1447           (Thanks to Joerg van den Hoff, for this idea).
1449           New numeric register: Sets the first level of heading (set with
1450           NH), which will keep the same point size as body text; e.g. if
1451           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1452           point size specified by \n[PS], but .NH 2 and .NH 1 will have
1453           progressively larger point sizes, determined by \n[PSINCR] (see
1454           below).
1456         PSINCR
1457           New numeric register: Sets the point size increment for each level
1458           of heading, (set with NH), below the threshold level set by
1459           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1460           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1461           and all other levels will remain at 10pt, (because \n[PS] = 10).
1463         SH
1464           Existing macro now accepts a numeric argument, to make heading
1465           size match that of NH with same argument value, when the
1466           GROWPS/PSINCR feature is enabled.
1468         SN-DOT
1469           New string, set by NH macro, replaces the existing (undocumented)
1470           use of SN, to represent the assigned section number.
1472         SN-NO-DOT
1473           New string, set by NH macro, represents the assigned section
1474           number, but omits the terminal period (periods at intermediate
1475           levels are retained).
1477         SN
1478           String set by NH macro, originally undocumented, now implemented
1479           as an alias for SN-DOT (which reproduces original behaviour).
1481         * tmac/s.tmac (PORPHANS): New register.
1482         (par*start): Use it.
1483         (HORPHANS, GROWPS, PSINCR): New registers.
1484         (SH-NO-TAG, @SH): Use them.
1485         (@NH): Improved.
1487 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1489         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1490         of `Ds' and `De' macros.
1492 2004-09-10  Werner LEMBERG  <wl@gnu.org>
1494         In tbl, handle \a as an interpreted leader character if in
1495         compatibility mode.
1497         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1498         LEADER_CHAR): New macros.
1499         (compatible_flag): New declaration.
1501         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1502         LEADER_3, and LEADER_4 to `state'.
1503         (table_input::get): Handle `\a'.
1505         * src/preproc/tbl/table.cpp (PREFIX): Removed.
1506         (LEADER_REG): New macro.
1507         (table::init_output): Define LEADER_REG string register if in
1508         compatibility mode.
1510         * src/preproc/tbl/tbl.man: Document it.
1512 2004-08-18  Werner LEMBERG  <wl@gnu.org>
1514         * tmac/doc.tmac (An): Fix error message.
1516 2004-08-06  Werner LEMBERG  <wl@gnu.org>
1518         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1519         file can't be opened.  UNIX tbl has the same behaviour.
1521 2004-08-05  Y T  <doarhop@hotmail.com>
1523         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1524         (DBRead): If in compatibility mode, take into account the text
1525         when computing figure boundaries.
1527 2004-08-05  Werner LEMBERG  <wl@gnu.org>
1529         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
1530         from Tadziu Hoffmann.
1532 2004-08-03  Werner LEMBERG  <wl@gnu.org>
1534         * doc/meref.me: Document `_M' register.
1536 2004-08-03  Martin Husemann  <martin@duskware.de>
1538         Make hpftodit work correctly on big-endian systems.
1540         * src/utils/hpftodit/hpftodit.cpp (File): New method
1541         `get_uint32(char *)'.
1542         (entry): New member `orig_value'.
1543         (read_tags): Use new method.
1544         (output_font_name, read_and_output_pcltypeface, dump_ascii):
1545         Updated.
1547 2004-08-01  Werner LEMBERG  <wl@gnu.org>
1549         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
1550         are already in X11's `macros.t' file.
1552 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1554         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1555         Fix casting bug.
1556         (read_and_output_pcltypeface): Handle strings with length <= 4.
1558 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1560         * tmac/s.tmac (pg@top): Don't save `PO' register.
1561         (pg*end-col, pg*end-page): Directly use `PO' register.
1563 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1565         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1567         * src/preproc/refer/refer.cpp (output_references): Check for
1568         empty hash table.
1569         * src/preproc/refer/refer.man: Improve documentation of
1570         `bibliography' command.
1572 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1574         Add requests `fcolor' and `gcolor'.
1576         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1577         New functions.
1578         (init_env_requests): Add `fcolor' and `gcolor'.
1580         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1582         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1583         Document new requests.
1585 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1587         Add support for fractional point sizes in ms macros.  A value for
1588         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1589         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1591         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1592         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1594         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1596 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1598         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1599         Update constructor.
1600         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1601         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1603 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1605         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1606         * tmac/groff_mdoc.man: Updated.
1608 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1610         * doc/groff.texinfo: Further improve documentation of `hcode'.
1612 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1614         Improve appearance of arrows in pic.
1616         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1617         arrow head thin.
1618         Use two line segments for drawing non-filled arrow head.
1619         (line_object::print, spline_object::print): Shorten line length to
1620         avoid arrow sticking.
1621         (arc_object::print): Take arrow direction into account.
1623 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1625         * tmac/groff_www.man: Update documentation of .MPIMG.
1627 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1629         * tmac/an-old.tmac (RI): Always start with font `R'.
1630         (RI, IR): Properly end with font `R'.
1632 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1634         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1635         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1636         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1637         Don't pass more than six arguments to .R, .I, .B, etc., for
1638         compatibility with traditional troff macros.
1640 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1642         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1643         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1644         Update all users.
1645         (PUSH_COMP_MODE): New internal character constant.
1646         Update all users.
1648         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1649         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1650         (token::next, macro::append): Handle PUSH_COMP_MODE.
1651         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1652         POP_GROFFCOMP after each of the decoded arguments to make them
1653         independent from the compatibility mode status.
1654         (comp_mode): Add `COMP_ENABLE'.
1655         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1656         (define_string, append_string, define_macro, define_indirect_macro,
1657         append_macro, append_indirect_macro): Handle `compatible_flag'.
1658         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1660         * man/groff_diff.man, doc/groff.texinfo: Updated.
1662 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1664         * doc/groff.texinfo: Improve documentation of `hcode'.
1665         Use @documentencoding and convert document to latin-1; to do that
1666         make latin characters active and assign proper macros (within a
1667         @tex...@end tex environment).
1668         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1669         * doc/Makefile.sub (groff): Ditto.
1671 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1673         Implement two new conditional operators `F <name>' and `S <name>'
1674         which check whether <name> is a valid font or style, respectively.
1676         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1677         (text_file::text_file): Updated.
1678         (text_file::error): Don't emit message if `silent' is set.
1679         (font::load_font): Add optional third argument (which is directly
1680         passed to `load'.
1681         (font::load): Add optional second argument to check the header of
1682         a font only, without emitting warning or error messages.
1683         * src/include/font.h (font): Updated.
1685         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1686         conditionals.
1687         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1688         fourth argument to check a font without mounting.
1689         (check_font, check_style): New functions.
1690         * src/roff/troff/node.h: Updated.
1692         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1693         Updated.
1695 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1697         Implement new string-valued register `.sty' to return the current
1698         style name.
1700         * env.cpp (environment::get_style_name_string): New function.
1701         (init_env_requests): Add `.sty' register.
1702         * env.h (environment): Updated.
1703         * node.cpp (font_info): Make `get_style_name' a friend.
1704         (get_style_name): New function.
1705         * node.h: Updated.
1707         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1708         Updated.
1710 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1712         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1713         `nospaces' option.
1715 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1717         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1718         and \n[mo] to avoid dependency on current date.
1720 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1722         * Makefile.sub (install_data): New target.
1724 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1726         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1728 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1730         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1731         order of libraries.
1732         (install_data): Add $(srcdir).
1734         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1735         libraries.
1737 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1739         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1740         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1741         Add test for Xmu library.
1742         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1743         GROFF_APPRESDIR_DEFAULT): New macros.
1745         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1746         and GROFF_APPRESDIR_DEFAULT.
1748         * configure: Regenerated.
1750         * Makefile.in (appresdir): New variable.
1751         (MDEFINES): Add appresdir.
1753         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1754         -Xt.
1755         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1757         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1758         `$(srcdir)/eign', not `eign'.
1760         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1762         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1763         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1764         Protect (g)xditview with `\%' to avoid hyphenation.
1765         Other minor formatting.
1767 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1769         Integrate gxditview into groff's standard directory hierarchy.
1771         * src/xditview/*: Moved to ...
1772         * src/devices/xditview/*: Here.
1773         Moved DviChar.h and XFontName.h to src/include.
1774         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1775         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1776         Moved xtotroff.c to new directory src/utils/xtotroff.
1777         Provide proper Makefile.sub files (reusing the stuff from
1778         Imakefile.in).
1779         DESC renamed to DESC.in.
1780         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1781         Converted everything from K&R to ANSI C.
1782         Decorated with const where appropriate.
1783         Cast string constants with `String' and `char *' where appropriate.
1784         Made it compile with C++ (used as a C compiler).
1785         Removed other minor compiler warnings.
1787         * src/devices/xditview/device.c: Include config.h, string.h, and
1788         defs.h.
1789         Don't declare `exit', `strtok', `strchr', and `getenv'.
1790         (FONTPATH): Remove.
1792         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1793         `XFormatFontName'.
1795         * src/devices/xditview/xditview.c: Include config.h.
1796         Include stdio.h earlier.
1797         Protect declaration of `popen' and `pclose' with
1798         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1799         Replace `caddr_t' with `XtPointer'.
1800         (MakePromptFunc): New typedef.
1801         (DoPrint): Use RETSIGTYPE.
1802         (promptfunction): Change type to MakePromptFunc.
1803         (MakePrompt): Use MakePromptFunc for third argument.
1804         (xmalloc): Removed.
1806         * src/devices/xditview/ad2c: Add casts to `String'.
1808         * src/include/XFontName.h (XFontNameString): Don't use array
1809         notation.
1810         Add prototypes for `XParseFontName', `XFormatFontName',
1811         `XCompareFontName', and `XCopyFontName'.
1813         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1814         `XFontName.h'.
1816         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1817         Don't declare `XParseFontName' and `XFormatFontName'.
1818         (xmalloc): Removed.
1819         (main): Remove `optind' and `optarg'.
1821         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1822         (to select programs which need X).
1823         Make XDEVIDIRS depend on `FORCE'.
1824         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1825         X support).
1826         (MDEFINES): Updated.
1827         (LIBDIRS): Use XLIBDIRS.
1828         (CPROGDIRS): Use XPROGDIRS.
1829         (DEVDIRS): Remove font directories for gxditview.
1830         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1831         (EXTRADIRS): Remove src/xditview.
1833         * Makefile.sub (DISCLEANFILES): Updated.
1835         * Makefile.comm (LIBXUTIL): New variable.
1836         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1837         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1839         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1841         * aclocal.m4 (GROFF_X11): New function.
1843         * configure.ac: Call GROFF_X11.
1844         Don't create src/xditview/Imakefile.
1845         Don't emit notice how to build gxditview.
1847         * configure: Regenerated.
1849         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1851 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1853         * Makefile.in (CPPFLAGS): Define.
1854         (MDEFINES): Add CPPFLAGS.
1856 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1858         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1860 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1862         Fix problems with `friend name injections'.
1864         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1865         make_script_box), src/roff/troff/div.h (end_diversions),
1866         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1867         change 2004-04-08.
1869 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1871         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1873 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1875         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1876         src/libs/libgroff/color.cpp: Include lib.h.
1878 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1880         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1881         through Forte 6u1, and for how to get GNU make on Solaris.
1883 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1885         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1886         by Paul Eggert.
1888 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1890         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1891         rule.
1893 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1895         * REVISION: Set to 2.
1897         * aclocal.m4 (GROFF_STDINT_H): Removed.
1898         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1900         * configure.ac: Updated.
1901         * configure, src/include/config.hin: Regenerated.
1903         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1904         inttypes.h conditionally.
1906 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1908 Version 1.19.1 released
1909 =======================
1911 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1913         * src/preproc/refer/label.y (same_author_last_name,
1914         same_author_name): Handle empty sort keys.
1916 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1918         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1919         tmac/TODO: Updated.
1921         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1922         doc-str-Lb-librt): Reset font.
1923         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1924         Provide `doc-str-Lb' to reset font.
1925         * tmac/groff_mdoc.man: Updated.
1927 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1929         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1930         snprintf versions which don't conform to ANSI C 99 (this is,
1931         counting the string's trailing null byte in the return value).
1933 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1935         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1936         that all implementations of sprintf handle null pointers correctly.
1938 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1940         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1941         Document `.U' register.
1943         * src/roff/troff/env.cpp (environment::mark_last_line)
1944         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1946 2004-05-04  Larry Kollar  <kollar@alltel.net>
1948         New read-only register `.U'; it returns 1 in safer mode and 0
1949         otherwise.
1951         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1952         register.
1954 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1956         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1958 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1960         * src/include/font.h (font): Use `int' for ch_index.
1961         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1962         font::compact): Updated.
1964         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1965         warnings.
1967         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1968         (hyphen_word): Fix compiler warnings.
1969         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1970         `char'.
1971         Update all callers.
1972         (get_delim_number, get_line_arg): Change second argument type to
1973         `unsigned char'.
1974         (macro_header::copy, token::next, do_define_string,
1975         do_define_character, substring_request, asciify_macro,
1976         unformat_macro, read_size, non_interpreted_node::interpret,
1977         while_request, main: Fix compiler warnings.
1978         (read_color_draw_node): Initialize `col'.
1980         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1981         `start_col' and `end_col' of type `int'.
1982         (vertical_rule): Make `col' of type `int'.
1984         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1985         for EOF.
1987         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1988         New arrays.
1989         (format_serial): Use them to remove dependency on ASCII.
1991         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1992         compiler warning.
1993         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1994         Ditto.
1996         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1997         compiler warnings.
1998         (glyph): Change type of `hpos' to `int'.
2000         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
2001         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
2003         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
2005         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
2007 2004-04-16  Werner LEMBERG  <wl@gnu.org>
2009         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
2010         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
2011         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
2012         `double' instead of `float' everywhere.
2013         * src/preproc/grn/main.cpp: Use `double' instead of `float'
2014         everywhere.
2015         (main): Add return value.
2016         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
2017         everywhere.
2018         Update all user functions.
2020         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
2021         src/preproc/eqn/box.h, src/preproc/pic/object.h,
2022         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
2023         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
2024         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
2025         src/roff/troff/input.cpp, src/roff/troff/request.h,
2026         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
2027         declarations.
2029         * src/utils/indxbib/signal.c: Include stdlib.h.
2031 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2033         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
2034         before the first page.
2036 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
2038         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
2039         (doc-operating-system-*): Updated.
2040         * tmac/doc-syms (doc-str-St-*): Various small fixes.
2041         (doc-str-Lb-*): Add more library names.
2043 2004-04-10  Art Haas  <ahaas@airmail.net>
2045         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
2046         use anonymous type.
2048 2004-04-09  Art Haas  <ahaas@airmail.net>
2050         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
2052 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
2054         * arch/misc/shdeps.sh: Generate better comment for sed script.
2056 2004-04-08  Art Haas  <ahaas@airmail.net>
2058         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2059         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
2060         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
2061         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
2062         (polyfill), src/preproc/grn/main.cpp (polyfill),
2063         src/preproc/refer/command.cpp (command_table),
2064         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
2065         gcc 3.5 doesn't like).
2067 2004-04-08  Werner LEMBERG  <wl@gnu.org>
2069         Removing many compiler warnings.  groff should now compile with
2070         a C++ compiler used for C files also.  [Simple variable renamings
2071         to avoid shadowing aren't logged in detail.]
2073         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
2074         (draw_dvi_printer::draw) ['c']: Enclose in block.
2076         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
2077         (page::add_line): Fix typos.
2078         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
2080         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
2081         Some local variable renamings.
2082         * src/devices/grolbp/lbp.h: Some local variable renamings.
2084         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
2085         variable renamings.
2087         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
2088         Remove redundant local variable declaration.
2089         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
2090         Don't use `caddr_t' but `void *'.
2091         Enclose functions with `extern "C"' for C++.
2093         * src/libs/libdriver/input.cpp (remember_filename,
2094         remember_source_filename): Use cast for string constant.
2096         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
2097         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
2098         src/libs/libgroff/geometry.cpp: Some local variable renamings.
2099         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
2100         style.
2101         Enclose functions with `extern "C"' for C++.
2102         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
2103         (needs_quoting): Return `int'.
2104         (quote_arg): Add proper casts to malloc and realloc.
2105         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
2106         various MS Windows environments.
2107         (spawnvp_wrapper): Add proper cast to malloc.
2109         * src/preproc/eqn/box.h: Remove redundant declarations of
2110         `make_script_box', `make_mark_box' and `make_lineup_box'.
2111         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
2112         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
2113         variable renamings.
2115         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
2116         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
2117         (dx, dy): Renamed functions to...
2118         (deltax, deltay): This.
2119         * src/preproc/grn/main.cpp: Some local variable renamings.
2120         (deffont): Add `const'.
2121         (initpic, conv): Use cast for string constant.
2123         * src/preproc/html/pre-html.cpp: Some local variable renamings.
2124         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
2125         (char_buffer::run_output_filter): Second argument is unused.
2126         * src/preproc/html/pushback.cpp: Some local variable renamings.
2128         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
2129         * src/preproc/pic/object.cpp: Some local variable renamings.
2131         * src/preproc/refer/label.y (lookup_label): Remove redundant
2132         declaration of local variable.
2134         * src/preproc/soelim.cpp: Remove redundant declaration of
2135         `interpret_lf_args'.
2137         * src/preproc/tbl/main.cpp: Some local variable renamings.
2139         * src/roff/groff/groff.cpp (main): Use cast for string constant.
2140         * src/roff/groff/pipeline.c: Enclose declarations of `error',
2141         `c_fatal', and `i_to_a' with `extern "C"' for C++.
2142         Don't use C++-style comments.
2144         * src/roff/troff/env.h: Remove redundant declaration of `title'.
2145         * src/roff/troff/node.h, src/roff/troff/env.cpp,
2146         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
2147         renamings.
2148         * src/roff/troff/div.h: Remove redundant declaration of
2149         `end_diversions'.
2150         * src/roff/troff/troff.h: Remove redundant declaration of
2151         `cleanup_and_exit'
2152         * src/roff/troff/input.cpp: Remove redundant declaration of
2153         `handle_first_page_transition' and `process_input_stack'.
2155         * src/utils/hpftodit.cpp: Some local variable renamings.
2157         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
2158         for C++.
2159         Don't define RETSIGTYPE.
2160         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
2162         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
2163         (error): Use `const' in argument.
2164         (main): Remove redundant declaration of `optind'.
2165         Move declaration of `Version_string' to top-level.
2167         * PROBLEMS: Document difficulties compiling signal.c if a C++
2168         compiler is used for C.
2170 2004-04-07  Werner LEMBERG  <wl@gnu.org>
2172         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
2174 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
2176         Make scripts like nroff.sh and neqn.sh portable across various
2177         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
2178         non-POSIX path separators.  The idea is to extend those scripts to
2179         decide at run-time (of the script) which path separator to use.
2181         * arch/misc/Makefile.sub: New file.
2182         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
2183         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
2184         a proper definition of the variable `GROFF_RUNTIME'.
2186         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
2187         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
2188         (PROGDEPDIRS): New variable.
2189         `FORCE' it.
2190         (PROGDIRS): Add PROGDEPDIRS.
2192         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2193         Don't substitute @SEP@ and @BINDIR@.
2194         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2195         (PATH): Use GROFF_RUNTIME.
2197         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2198         Don't substitute @SEP@ and @BINDIR@.
2199         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2200         (PATH): Use GROFF_RUNTIME.
2202 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2204         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2205         Cygwin which doesn't handle stderr correctly.
2207 2004-03-08  Werner LEMBERG  <wl@gnu.org>
2209         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2210         against empty argument.  Problem reported by <cgd@broadcom.com>.
2212 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2214         * Makefile.in (SEP): Replaced with...
2215         (RT_SEP, SH_SEP): Separators for the target platform's native path
2216         separator and the build environment, respectively.
2217         (fontpath, tmacpath): Use RT_SEP.
2218         (MDEFINES): Updated.
2220         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2221         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2222         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2223         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2225 2004-03-05  Werner LEMBERG  <wl@gnu.org>
2227         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
2228         reduce alignment problems with newer printers which use built-in
2229         TrueType fonts (instead of the older Intellifonts).  The ideal
2230         solution is to provide a second set of groff metric files, but this
2231         is extremely time-consuming to produce, given that HP's metric
2232         files are very rudimentary.
2234 2004-03-01  Werner LEMBERG  <wl@gnu.org>
2236         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2237         s/operand/argument/ in error message.
2239 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2241         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2242         is in use.
2244 2004-03-01  Antti Kantee  <pooka@netbsd.org>
2246         * tmac/s.tmac (XE): Fix error message.
2248 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
2250         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2251         New macros.
2253         * src/roff/groff/pipeline.c: Declare strcasecmp.
2254         (run_pipeline) [_WIN32]: Use function name variants which don't
2255         start with `_'.
2256         Fix stream handling.
2258 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
2260         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2261         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2262         for platforms which use the native Win32 runtime libraries.
2263         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2265         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2266         QUOTE_ARG_REALLOC_ERROR): Fix string.
2268         * src/preproc/html/pre-html.cpp: Remove declaration of
2269         `spawnvp_wrapper'.
2270         Don't use __MINGW32__.
2271         s/DEBUG_FILE/DEBUG_FILE_DIR/.
2272         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2273         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2274         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2275         calls to `set_redirection' and `WAIT'.
2276         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2277         Fix calls to `set_redirection' and `save_and_redirect'.
2278         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2279         to `set_redirection' and `save_and_redirect'.
2280         (usage): Fix message.
2281         (makeTempFiles, main): Use `DEBUG_FILE'.
2283 2004-02-21  Werner LEMBERG  <wl@gnu.org>
2285         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2287 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
2289         * src/libs/libgroff/quotearg.c: New file, providing proper argument
2290         quoting for MSVC's spawn* and exec* functions.
2291         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2292         spawnvp with proper quoting for MSVC.
2294         * src/libs/libgroff/assert.cpp (program_name),
2295         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2296         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2298         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2300         * src/include/error.h (program_name): Declare as `extern "C"'.
2301         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2303 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
2305         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2306         spawnvp_wrapper.
2307         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2309 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
2311         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2312         variable.
2313         (sbasename) [__MSDOS__ || ...]: New function.
2314         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2315         generic algorithm.
2316         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2317         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2318         of XXX.
2319         Use STDOUT_FILENO instead of hardcoded file handle.
2320         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2322 2004-02-19  Werner LEMBERG  <wl@gnu.org>
2324         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2325         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2327 2004-02-18  Werner LEMBERG  <wl@gnu.org>
2329         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2330         new font and mapping files.
2332 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
2333             Keith Marshall  <keith.d.marshall@ntlworld.com>
2335         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2336         an input pipe.  This is needed for the MSVC compiler to make troff's
2337         `-o' option work.
2339         * src/roff/troff/div.cpp: Include nonposix.h.
2340         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2342 2004-02-17  Werner LEMBERG  <wl@gnu.org>
2344         * font/devlj4/generate/special.awk: New script.
2345         * font/devlj4/generate/Makefile (S): Use special.awk.
2346         * font/devlj4/*: Regenerated, including the following new files:
2347         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2348         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2349         * NEWS: Document new lj4 fonts and revised hpftodit.
2351 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
2353         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2355 2004-01-25  Werner LEMBERG  <wl@gnu.org>
2357         * src/libs/libgroff/progname.cpp: Replaced with...
2358         * src/libs/libgroff/progname.c: New file.
2359         * src/libs/libgroff/Makefile.sub: Updated accordingly.
2361 2004-01-17  Werner LEMBERG  <wl@gnu.org>
2363         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2365 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
2367         * font/devlj4/generate/wingdings.map,
2368         font/devlj4/generate/symbol.map: Include unnamed glyphs.
2369         Use groff glyph names where possible.
2370         * src/devices/grolj4/lj4_font.man: Minor updates.
2372 2004-01-13  Werner LEMBERG  <wl@gnu.org>
2374         * tmac/www.tmac (DC): Handle TTY devices.
2376         * doc/webpage.ms: Document viewCVS from ffii.org.
2377         * NEWS, README: Updated.
2379         * src/roff/groff/groff.man: Mention lj4_font man page.
2381         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2382         variables.
2383         (FONTS): Add SYMBOL and WINGDINGS.
2384         (SYMBOL, WINGDINGS): New targets.
2386 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
2388         * src/devices/grolj4/lj4_font.man: New man page.
2389         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2390         * src/devices/grolj4.man: Mention lj4_font man page.
2392         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2393         * src/utils/hpftodit/hpftodit.man: Document it.
2394         (CW): New macro.
2395         Remove details about fonts (which are now in lj4_font.man).
2397         * font/devlj4/generate/symbol.map,
2398         font/devlj4/generate/wingdings.map: New files.
2400 2004-01-12  Werner LEMBERG  <wl@gnu.org>
2402         * README: Mention ffii's viewcvs access.
2404 2004-01-09  Werner LEMBERG  <wl@gnu.org>
2406         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2408 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
2410         Revert most of the change from 2004-01-03 to better control used
2411         symbol sets.
2413         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2414         (text_symbol_sets, special_symbol_sets): New arrays.
2415         (symbol_set_table): New global variable.
2416         (read_symbol_sets): Use search order given in the text_symbol_sets
2417         and special_symbol_sets arrays.  If command line flag -a is not
2418         given, search both arrays.
2419         (output_charset): Require x_height_tag only for command line flag -i.
2421 2004-01-06  Werner LEMBERG  <wl@gnu.org>
2423         Implement string-valued registers \n[.m] and \n[.M] to return the
2424         name of the current drawing and background color, respectively.
2426         * src/roff/troff/symbol.h: Moved to...
2427         * src/include/symbol.h: Here.
2428         Small fixes to make it work outside of the `troff' directory.
2429         * src/roff/troff/symbol.cpp: Moved to...
2430         * src/libs/libgroff/symbol.cpp: Here.
2431         Small fixes to make it work outside of the `troff' directory.
2433         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2434         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2435         Updated.
2437         * src/include/color.h: Include symbol.h.
2438         (color): Add new field `nm'.
2439         * src/libs/libgroff/color.cpp (color::color): Updated.
2441         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2442         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2443         src/roff/troff/reg.cpp: Don't include symbol.h.
2445         * src/roff/troff/env.cpp: Don't include symbol.h.
2446         (environment::get_glyph_color_string,
2447         environment_get_fill_color_string): New member functions.
2448         (init_env_requests): Handle `.m' and `.M' registers.
2449         * src/roff/troff/input.cpp: Don't include symbol.h.
2450         (default_symbol): Moved to symbol.cpp/symbol.h.
2451         (do_glyph_color, do_fill_color, define_color): Pass symbol name
2452         to color constructor.
2453         * src/roff/troff/env.h: Updated.
2455         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2456         Document new registers.
2458 2004-01-05  Werner LEMBERG  <wl@gnu.org>
2460         * src/roff/troff/node.cpp (space_node::get_breakpoints,
2461         space_node::nbreaks): Protect against zero `next' field.
2463 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
2465         In hpftodit, use the symbol sets offered in the TFM.
2467         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2468         (symbol_set, text_symbol_sets, special_symbol_sets,
2469         symbol_set_table): Removed.
2470         (get_printcode): Removed.
2471         (read_symbol_sets): Initialize `symbol_set' field with
2472         `NO_SYMBOL_SET'.
2473         Simplify code to just use the `kind' value.
2474         (output_charset): Improve output formatting.
2475         (dump_symbols): Simplified.
2477 2004-01-02  Werner LEMBERG  <wl@gnu.org>
2479         * font/devlj4/generate/text.map: Add more MSL numbers.
2481 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
2483         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2484         (text_symbol_sets): Add more symbol sets.
2485         (debug_flag): New static variable (moved from `main').
2486         (get_printcode, show_symset): New functions.
2487         (main): Remove `debug_flag'.
2488         (output_charset): Use `show_symset'.
2489         (dump_symbols):  Use `show_symset'.
2490         Print symsets for all glyphs.
2491         (read_map): Actually call `unicode_to_ucode_make' but this time
2492         correctly.
2494 2004-01-01  Werner LEMBERG  <wl@gnu.org>
2496         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2497         Fix placement of comments.
2499 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
2501         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2502         option `-d' is given.
2503         (output_charset): Improve warning messages to give more information.
2504         (dump_symbols): Make information more precise.
2505         (usage): Updated.
2506         (read_map): Don't call unicode_to_ucode_name; the glyph names must
2507         appear as-is and shouldn't be decomposed.
2509 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2511         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2512         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2513         (FONTS): Add TrueType font families Arial and Times New Roman.
2514         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2515         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2516         `fl'.
2518 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
2520         * test-groff.in (SEP): Quote value.
2521         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2522         `tem' to `char*' to avoid deallocation of a pointer to a constant
2523         object which some compilers don't like.
2525 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2527         * font/devlj4/generate (text.map, special.map): Rewritten to work
2528         with the new hpftodit version.
2530 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
2532         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2533         set and 8bit character code for all glyphs also.
2535 2003-12-30  Werner LEMBERG  <wl@gnu.org>
2537         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2539 2003-12-29  Werner LEMBERG  <wl@gnu.org>
2541         More fixes for MSVC compiler.
2543         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2544         $(SEP).
2546         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2547         STDERR_FILENO) [_MSC_VER]: Define conditionally.
2548         (getpid) [_MSC_VER]: Remove.
2549         Include direct.h and process.h conditionally.
2551         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2552         parentheses for a_delete.
2554         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2556         * test-groff: Replaced with...
2557         * test-groff.in: This new template to handle path separator
2558         properly.
2560         * configure.ac: Check for direct.h and process.h.
2561         Generate test-groff script.
2562         * configure, src/include/config.hin: Regenerated.
2564 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2566         Add integral extension glyph.
2567         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2569         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2571         * font/devps/generate/textmap: Provide entry for `integralex' to
2572         override (old) PUA value of the AGL.
2573         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2574         * font/devps/*: Regenerated.
2576         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2577         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2579 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2581         Add forgotten `coproduct' symbol (already available for DVI).
2583         * font/devhtml/R.proto, font/devps/generate/textmap,
2584         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2585         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2586         U+2210 (\[coproduct]).
2588 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2590         hpftodit has been extended to handle TrueType metric files and
2591         more glyphs.  See hpftodit.man for more details.
2593         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2594         ctype.h, and unicode.h.
2595         s/msl/charcode/ everywhere since we now handle Unicode values also.
2596         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2597         Use it where appropriate.
2598         (MULTIPLIER): Replaced with...
2599         (multiplier): New global static variable.
2600         (scale): Updated.
2601         (tag_type): Add more TFM tags.
2602         (tag_name): New array.
2603         (ENUM_TYPE, FLOAT_TYPE): Removed.
2604         (BYTE_TYPE): New value assigned.
2605         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2606         (text_symbol_sets, special_symbol_sets): Extended to cover more
2607         sets.
2608         (check_type): Add return value.
2609         (check_units): Add parameters to get ppi and upem values.
2610         Handle TrueType TFM data.
2611         (output_font_name): New function.
2612         (output_charset): Add parameter to handle TFM type.
2613         Handle TrueType TFMs also.
2614         (em_fract): New macro.
2615         (dump_tags): Be much more verbose and handle more tags.
2616         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2617         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2618         functions.
2619         (read_map): Add parameter to handle TFM type.
2620         Handle both MSL and Unicode mappings.
2621         (main): Add two new command line options `-a' and `-q'.
2622         Updated to make use of new functions.
2623         (usage): Updated.
2625         * src/utils/hpftodit/hpuni.cpp: New file.
2627         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2628         Updated.
2630 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2632         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2634 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2636         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2637         by Michail Vidiassov <master@iaas.msu.ru>.
2639 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2641         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2642         and u0049_0307.
2643         Add missing latin-2 glyphs.
2644         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2646         * tmac/troffrc: Load `composite.tmac' earlier.
2648         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2649         u00{53,73}_0327, and u0049_0307.
2650         * tmac/X.tmac: Add u00{47,67}_0306.
2651         * tmac/tty-char.tmac: Use composite glyph names for readability.
2653         * NEWS: Updated.
2655         * src/include/unicode.h: Remove `extern' keywords.
2657 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2659         * tmac/latin5.tmac: New file.
2661 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2663         Add some glyphs needed for Turkish.
2665         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2666         and u0049_0307.
2668         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2669         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2670         u00{53,73}_0327, and u0049_0307.
2672 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2674         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2675         from 2001-10-04.
2676         Remove trailing zeros.
2678 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2680         Make \? transparent to end-of-sentence recognition.
2682         * src/roff/troff/input.cc (non_interpreted_node): Add
2683         `ends_sentence' member function.
2685 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2687         * doc/groff.texinfo: Document `dt' request correctly.
2688         Other minor typographical improvements.
2690 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2692         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2694 2003-12-10  Richard Stallman  <rms@gnu.org>
2696         * LICENSE: Better wording.
2698 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2700         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2701         * configure, NEWS: Updated.
2703 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2705         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2707 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2709         * LICENSE: Updated.
2711 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2713         * INSTALL: Improved.
2715 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2717         Use path separator character of target platform for compiled-in
2718         default paths.
2720         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2721         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2722         * configure: Regenerated.
2723         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2725 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2727         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2728         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2730 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2732         * LICENSE: New file.
2734 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2736         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2737         ligatures present in AFM files since groff currently only
2738         understands some standard ligatures and nothing else.
2740 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2742         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2743         option -v is given.
2745         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2746         messages.
2747         Close stdout copy.
2748         Don't use Unix wait flags.
2750 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2752         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2753         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2754         src/roff/troff/uniuni.cpp: Moved to...
2755         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2756         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2757         src/libs/libgroff/uniuni.cpp: Here.
2759         * src/include/Makefile.sub.old (HDRS),
2760         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2761         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2763 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2765         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2766         `DEBUG_FILE'.
2767         Updated all users.
2769 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2771         * groff.texinfo: Document special behaviour of `.vs 0'.
2772         Improve documentation of `cflags' request.
2773         * NEWS: Updated.
2775 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2777         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2778         * font/devlj4/CORONET: Regenerated.
2780 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2782         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2783         if processing hyphenation patterns in traditional mode.
2784         Improve error messages.
2786 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2788         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2789         troff_output_file::put_char): Fix type of local variable `c'.
2791 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2793         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2794         declarations.
2795         (i_to_a): Removed.  libgroff already provides this function.
2796         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2798 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2800         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2801         HAVE_DECL_SYS_LIST.
2803 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2805         * COPYING: Use correct version.
2807 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2809         LynxOS 4.0.0 doesn't declare vfprintf.
2811         * configure.ac: Check for vfprintf.
2812         * configure: Regenerated.
2813         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2814         * src/include/config.hin: Regenerated.
2816 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2818         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2820         * configure.ac: Check for vsnprintf.
2821         * configure: Regenerated.
2822         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2823         `HAVE_VSNPRINTF'.
2824         * src/include/config.hin: Regenerated.
2826 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2828         * aclocal.m4: Updated syntax to autoconf 2.59.
2829         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2830         Don't check for gsos2.
2831         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2832         working abs_top_srcdir and abs_top_builddir.
2834         * configure.ac: Updated syntax to autoconf 2.59.
2835         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2836         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2837         * configure: Regenerated.
2839         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2840         s/@groff_top_builddir@/@abs_top_builddir@/.
2842         * src/roff/groff/pipeline.c (xstrsignal):
2843         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2845 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2847         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2848         make start angle smaller than end angle to circumvent a bug in tpic
2849         handling of some versions of dvipdfm (and dvipdfmx).
2851 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2853         * src/devices/grops/grops.man: Improve section on creating EPS.
2855 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2857         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2858         -P-pletter).
2860 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2862         * doc/groff.texinfo: Fix documentation of `.if'.
2864 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2866         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2867         the form `uniXXXX' also.
2869 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2871         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2872         contrib/pic2graph/pic2graph.sh: Implement secure management of
2873         temporary files.
2874         Pass `-P-pletter' to groff to avoid data outside of the converted
2875         area -- some versions of `convert' (for example 5.3.8) don't check
2876         the bounding box of the image but always use a fixed image size
2877         (letter paper format).
2878         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2879         contrib/pic2graph/pic2graph.man: Updated.
2881         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2883 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2885         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2886         troff_output::simple_ellipse, troff_output::simple_arc,
2887         troff_output::simple_line, troff_output::simple_spline,
2888         troff_output::simple_polygon): Insert a space before arguments.
2889         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2890         latter doesn't produce a node, so the following `.sp -1' would do
2891         the wrong thing.
2892         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2893         (and we don't have to care about compatibility mode).
2894         (troff_output::set_color, troff_output::reset_color): Don't emit
2895         `.sp -1' after \M and \m.
2897         * src/roff/troff/input.cpp (old_have_input): New global variable.
2898         (input_stack::get): Handle `old_have_input'.
2899         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2900         `trapping_blank_line' depending on `old_have_input', not
2901         `have_input'.
2903 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2905         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2906         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2907         default directory names for temporary files.
2908         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2910         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2911         [__MSDOS__] (run_pipeline): Honour environment variables.
2912         Don't use `tmpnam' but `tempnam' to work around messy
2913         implementation.
2915         * README.MinGW: New file.
2917 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2919         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2920         `(*t)->next' without testing validity of `*t'.
2921         (usage): Make it more readable.
2923 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2925         Make html device run under both MS-DOS and Win32.
2927         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2928         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2929         spawn or fork+exec has to be used, and whether parent must sleep
2930         until the child process terminates.  Used in
2931         `char_buffer::run_output_filter'.
2932         (copyofstdoutfd): Removed.
2933         (char_buffer): Replace `write_file_html' and `write_file_troff'
2934         member functions with `emit_troff_output' and `run_output_filter'.
2935         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2936         macros.
2937         (replaceFd): Replaced with...
2938         (set_redirection): New auxiliary function.
2939         (waitForChild): Replaced with...
2940         (save_and_redirect): New auxiliary function for.
2942         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2943         functions.
2945 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2947         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2948         (GROFF_LIBC): New function.
2949         * configure.ac: Call GROFF_LIBC.
2950         Check for `kill'.
2951         * configure: Regenerated.
2953         * src/include/lib.h: Handle __MINGW32__.
2954         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2955         Add macro for `pipe'.
2956         Define P_tmpdir.
2958         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2959         correctly.
2961         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2962         Implement.
2964 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2966         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2967         <chuq@chuq.com>.
2969         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2970         directory.
2972 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2974         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2975         src/roff/troff/input.cc (usage): Updated.
2977         * NEWS, doc/groff.texinfo: Updated.
2979 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2981         * src/libs/libgroff/searchpath.cpp
2982         (search_path::open_file_cautious): New function which also handles
2983         `-' as stdin and stdout depending on the access mode.
2984         * src/include/searchpath.h (search_path): Updated.
2986         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2987         * src/devices/grops/ps.h: Include `searchpath.h'.
2988         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2989         Open resource file with `include_search_path.open_file_cautious'.
2990         * src/devices/grops/grops.man: Document new `-I' switch.
2992         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2993         (main), src/devices/grolj4/lj4.cpp (main),
2994         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2996         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2997         Replaced with...
2998         (include_search_path): New global variable.
2999         (include_path_append): Removed.
3000         (main): Use `include_search_path.command_line_dir' to handle `-I'.
3001         (do_file): Simplify, using new
3002         `include_search_path.open_file_cautious'.
3004         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
3005         parameter.
3006         (main): Pass arguments to `-I' to both troff and devices.
3007         Improve handling of `-V'.
3008         * src/roff/groff/groff.man: Document changes to -I and -V.
3010         * src/roff/troff/input.cpp (include_search_path): New global
3011         variable.
3012         (next_file, source, ps_bbox_request, transparent_file,
3013         process_input_file): Use new
3014         `include_search_path.open_file_cautious'.
3015         (main) Handle `-I' switch.
3016         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
3017         Use new `include_search_path.open_file_cautious'.
3018         * src/roff/troff/node.h: New extern symbol `include_search_path'.
3019         * src/roff/troff/troff.man: Document new `-I' switch.
3021 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
3023         Support multiple calls of .Lb in LIBRARY section.
3025         * tmac/doc-common (doc-in-library-section): New register.
3026         (doc-section-library): New string.
3027         (Sh): Set `doc-in-library-section'.
3028         (Rd): Updated.
3029         * tmac/doc-syms (Lb): Insert breaks before and after arguments
3030         if in LIBRARY section.
3031         * tmac/doc.tmac (doc-save-global-vars): Updated.
3032         * NEWS, tmac/groff_mdoc.man: Updated.
3034 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
3036         * tmac/doc-common (doc-default-operating-system): New variable.
3037         (Os): Use it.
3039 2003-09-08  Werner LEMBERG  <wl@gnu.org>
3041         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
3043 2003-08-31  Werner LEMBERG  <wl@gnu.org>
3045         * contrib/mom/Makefile.sub: Fix last change to make it really work.
3046         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
3047         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
3048         $(DEVFILES) are not empty.
3049         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
3051 2003-08-26  Chuck Silvers  <chuq@chuq.com>
3053         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
3054         with parallel runs of `make'.
3056 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
3058         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
3059         insert SORT_SEP.  With certain combinations of sort specifications,
3060         refer sorted entries in the wrong order.  In particular, entries
3061         with a missing field should be be sorted before all entries that
3062         have that field, before refer looks to the next field.
3064 2003-08-23  Werner LEMBERG  <wl@gnu.org>
3066         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
3067         g++ linker is used.  Reported by Mark J. Reed
3068         <mark.reed@turner.com>.
3070 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3072         Add key character `x' to tbl which makes tbl call a user-defined
3073         macro on a table cell.
3075         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
3076         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
3077         `set_modifier' after printing the compatibility request.
3078         (set_modifier): Print call to `m->macro' if not empty.
3079         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
3080         `macro'.
3081         (process_format): Implement cases `x' and `X'.
3082         * src/preproc/tbl/tbl.man, NEWS: Updated.
3084 2003-08-15  Werner LEMBERG  <wl@gnu.org>
3086         * doc/groff.texinfo: Minor fixes.
3088 2003-08-09  Werner LEMBERG  <wl@gnu.org>
3090         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
3092 2003-08-07  Werner LEMBERG  <wl@gnu.org>
3094         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
3095         argument list to nothing if there is no file to match.  Use `ls' as
3096         a protection, similar to autoconf.
3098         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
3099         empty argument lists.
3101         * doc/groff.texinfo: Improve documentation how vertical spacing
3102         and line breaks interact.
3103         Other minor fixes.
3105         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
3107 2003-08-03  Werner LEMBERG  <wl@gnu.org>
3109         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
3110         EPS (using eps2eps or similar programs to compute the bounding box).
3112 2003-07-24  Werner LEMBERG  <wl@gnu.org>
3114         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
3115         * doc/texinfo.tex: Updated from texinfo 4.6.
3116         * README.CVS: From now on we need texinfo 4.6.
3118 2003-07-23  Werner LEMBERG  <wl@gnu.org>
3120         Add requests `dei1' and `ami1' for completeness.
3122         * src/roff/troff/input.cc (calling_mode): Remove
3123         CALLING_DISABLE_COMP.
3124         (comp_mode): New enumeration.
3125         (do_define_string, define_string, define_nocomp_string,
3126         append_string, append_nocomp_string): Updated.
3127         (do_define_macro): Add third parameter.
3128         (define_macro, define_nocomp_macro, define_indirect_macro,
3129         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
3130         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
3131         functions.
3132         (ignore): Updated.
3133         (init_input_requests): Add `dei1' and `ami1'.
3135         * tmac/trace.tmac: Handle de1 and am1.
3136         (de): Improve tracing message.
3137         (am): Add missing `do'.
3138         (return): Use de1.
3140         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3141         Document new requests.
3143 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3145         Add option -G to .MPIMG to insert a gap between text and the image.
3147         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
3148         www-finish-left-ll): Updated.
3149         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
3150         (MPIMG): Make option -L and -R optional.
3151         Implement option -G.
3153 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
3155         * src/devices/grohtml/post-html.cpp
3156         (html_printer::do_file_components): Don't use `stdout' as lvalue
3157         since it can be a macro.
3159 2003-07-22  Werner LEMBERG  <wl@gnu.org>
3161         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
3162         the corresponding test in aclocal.m4.
3164 2003-07-21  Werner LEMBERG  <wl@gnu.org>
3166         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
3167         names but RGB values directly.  Otherwise pnmtopng depends on
3168         an external file `rgb.txt' which maps colour names to values.
3170 2003-07-20  Werner LEMBERG  <wl@gnu.org>
3172         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
3173         * configure, src/include/config.hin: Regenerated.
3175         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
3177 2003-07-19  Werner LEMBERG  <wl@gnu.org>
3179         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
3181 2003-07-18  Werner LEMBERG  <wl@gnu.org>
3183         * *.man: Switch to non-compatibility mode temporarily if GNU
3184         syntax extensions are used in the particular man page.
3186         * PROBLEMS: Add solutions for SGR problems.
3188 2003-07-17  Werner LEMBERG  <wl@gnu.org>
3190         Don't ignore grotty's command line options if \X'tty: sgr ...' is
3191         used to change the drawing scheme.
3193         * src/devives/grotty/tty.cpp (bold_flag_option,
3194         underline_flag_option, italic_flag_option, reverse_flag_option,
3195         bold_underline_mode_option): New global variables.
3196         (update_options): New function.
3197         (tty_printer::special): Call update_options.
3198         (main): Don't set xxx_flag but xxx_flag_option, then call
3199         update_options.
3201 2003-07-14  Werner LEMBERG  <wl@gnu.org>
3203         Make grotty emit proper Unicode box drawing characters for -Tutf8.
3205         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3206         values.
3207         (hline_char, vline_char): New global variables.
3208         (tty_printer::tty_printer): Initialize them.
3209         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3210         horizontal and vertical lines.
3211         (crossings): New global array.
3212         (tty_printer::end_page): Use it to determine the proper crossing
3213         character for -Tutf8.
3215 2003-07-12  Werner LEMBERG  <wl@gnu.org>
3217         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3218         (HTMLDOCFILES): Revert to `pic.html'.
3219         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3221 2003-07-11  Werner LEMBERG  <wl@gnu.org>
3223         * doc/pic.ms: Improve documentation of absolute coordinates.
3224         Document absolute positioning of pictures.
3226         * NEWS: Add new pic capability.
3228 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
3230         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3231         Rewritten.
3233 2003-07-07  Werner LEMBERG  <wl@gnu.org>
3235         Implement support for dashed and dotted ellipses in pic.  Based on
3236         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3238         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3239         common_output::dashed_ellipse, common_output::dotted_ellipse): New
3240         functions.  Ellipse arcs are approximated with circle arcs.
3241         * src/preproc/pic/common.h (common_output): Updated.
3242         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3243         functions.
3244         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3246         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3248 2003-07-06  Werner LEMBERG  <wl@gnu.org>
3250         Make grotty work on platforms which have unsigned char as the
3251         default for char.  Based on a patch by Thomas Klausner
3252         <wiz@netbsd.org>.
3254         * src/devices/grotty/tty.cpp (schar): New typedef.
3255         Updated calls to declare_ptable and implement_ptable.
3256         (glyph): Use schar for back_color_idx and fore_color_idx.
3257         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3258         (tty_printer::tty_color, tty_printer::tty_printer,
3259         tty_printer::color_to_idx, tty_printer::put_color): Updated.
3261 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3263         * src/roff/nroff/nroff.sh: Add option -d for completeness.
3264         * src/roff/nroff/nroff.man: Updated.
3266 2003-07-05  Werner LEMBERG  <wl@gnu.org>
3268         * NEWS, tmac/groff_www.man: Updated.
3269         * doc/Makefile.sub: Updated.
3271 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
3273         Implement support for multiple HTML output files.
3275         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3276         -j command line option.
3278         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3279         global variables.
3280         (file): New fields `new_output_file', `require_links',
3281         `output_file_name'.
3282         (file::file): Updated.
3283         (files::set_file_name, files::set_links_required,
3284         files::are_links_required, files::is_new_output_file,
3285         files::file_name, files::next_file_name): New functions.
3286         (header_desc): New fields `no_of_level_one_headings',
3287         `header_filename'.
3288         (header_desc::header_desc): Updated.
3289         (header_desc::write_headings): Handle multiple files.
3290         (html_printer::write_header): Save file name in which header occurs.
3291         (html_printer::determine_header_level): Possibly split files on
3292         level one headings.
3293         (html_printer::do_links, html_printer::troff_tag): Updated.
3294         (html_printer::insert_split_file, html_printer::do_job_name,
3295         html_printer::emit_link, html_printer::write_navigation,
3296         html_printer::do_file_components): New functions.
3297         (html_printer::~html_printer): Handle multiple files.
3298         (main): Handle command line option `-j'.
3300         * src/devices/grohtml/grohtml.man: Updated.
3302         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3303         which splits file.
3305         * tmac/www.tmac (JOBNAME): New macro.
3306         * tmac/s.tmac (SH-NO-TAG): New macro.
3307         (@SH): Call SH-NO-TAG.
3308         (@NH): Updated.
3310 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3312         * tmac/groff_mdoc.man: Improve documentation of punctuation
3313         characters.
3315 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
3317         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3319 2003-07-03  Werner LEMBERG  <wl@gnu.org>
3321         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3323 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
3325         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3326         after `/*' and `*/'.
3327         Fix spacing.
3328         (Fn, Fo): Reduce indentation in synopsis.
3330         * tmac/doc-common (doc-check-depth): New macro.
3331         (doc-end-macro, Sh, Ss): Use it.
3332         (Cd): Fix behaviour in synopsis.
3333         (In): Make it parsed and callable.
3334         If not in the synopsis, represent the C header file enclosed in
3335         angle brackets.
3336         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3337         Use minus, not hyphen.
3339         * tmc/groff_mdoc.man: Updated.
3341 2003-07-01  Werner LEMBERG  <wl@gnu.org>
3343         Integrated grap2graph, contributed by Eric S. Raymond.
3345         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3346         New files.
3347         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3348         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3350 2003-07-01  Colin Watson  <cjwatson@debian.org>
3352         * src/xditview/*.c: Add prototypes, fix return types, add includes.
3353         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3355 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
3357         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3359 2003-06-31  Werner LEMBERG  <wl@gnu.org>
3361         * doc/Makefile.sub (CLEANADD): Remove all files created by
3362         running `make groff.{pdf,dvi}'.
3364         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3365         src/xditview also.
3367 2003-06-30  Werner LEMBERG  <wl@gnu.org>
3369         * Makefile.in (SHELL): Define as @SHELL@.
3370         (mkinstalldirs): Use $(SHELL).
3371         (MDEFINES): Add $(SHELL).
3372         * Makefile.comm (SHELL): Removed.
3374 2003-06-29  Werner LEMBERG  <wl@gnu.org>
3376         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3377         The X11 documentation files use them.
3378         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3380 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
3382         * tmac/e.tmac (@C): Handle .ad also.
3384 2003-06-12  Werner LEMBERG  <wl@gnu.org>
3386         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3388         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3389         Assign `n' even here.  It is possible to construct a node
3390         immediately following an escape character:
3392           .di xx
3393           \?\\\?a
3394           .br
3395           .di
3396           .xx
3398 2003-06-10  Werner LEMBERG  <wl@gnu.org>
3400         * README.WIN32: Removed.
3401         * MANIFEST: Updated.
3403 2003-06-07  Werner LEMBERG  <wl@gnu.org>
3405         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3407 2003-06-05  Werner LEMBERG  <wl@gnu.org>
3409         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3410         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3412 2003-06-03  Werner LEMBERG  <wl@gnu.org>
3414         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3415         is done by the calling function.
3417 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
3419         * tmac/X.tmac: Fix definition of `em'.
3421 2003-05-22  Werner LEMBERG  <wl@gnu.org>
3423         * src/roff/troff/input.cc (return_macro_request): Fix detection of
3424         argument.
3426 2003-05-18  Werner LEMBERG  <wl@gnu.org>
3428         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3429         to make items work which consist only of a tag.
3431 2003-05-17  Werner LEMBERG  <wl@gnu.org>
3433         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3434         aren't stretched in a tag (this can fail with unformatted boxes).
3435         Instead, insert a break and go back one line.
3437 2003-05-16  Werner LEMBERG  <wl@gnu.org>
3439         * src/roff/troff/input.cc (return_macro_request): If called with
3440         argument pop macro twice.  We need this to trace `return'.
3442         * tmac/trace.tmac: Handle `return'.
3443         Fix typos.
3445         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3446         Document.
3448 2003-05-15  Larry Kollar  <kollar@alltel.net>
3450         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3451         registers `FPS', `FVS', and `FPD'.
3453 2003-05-15  Werner LEMBERG  <wl@gnu.org>
3455         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3456         correctly.
3458 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
3460         * tmac/groff_mdoc.man: Slight improvements.
3462 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3464         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3465         `doc-header-space' after header line if register `cR' is set.
3467 2003-05-02  Werner LEMBERG  <wl@gnu.org>
3469         * TODO: Updated.
3471 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
3473         * tmac/doc-common (Nd): Use \[em].
3475 2003-05-01  Werner LEMBERG  <wl@gnu.org>
3477         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3478         doc-footer-space): Initialize to 0.5i.
3479         (doc-setup-page-layout): Don't set doc-header-space and
3480         doc-footer-space.
3482 2003-04-30  Werner LEMBERG  <wl@gnu.org>
3484         * REVISION: Set to 1.
3486         * doc/pic.ms: Document possible problems with `figname'.
3488 2003-04-29  Werner LEMBERG  <wl@gnu.org>
3490 Version 1.19 released
3491 =====================
3493         * VERSION: Set to 1.19.
3494         * REVISION: Set to 0.
3495         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3497         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3498         Define charset as `US-ASCII' in html output.
3500         * tmac/www.tmac (ULE): Add missing scaling indicator.
3502         * win32-diffs: Removed.
3504 2003-04-28  Werner LEMBERG  <wl@gnu.org>
3506         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3507         `.da' and `.boxa'.
3508         Document how to insert discardable whitespace with `.ss'.
3510 2003-04-27  Werner LEMBERG  <wl@gnu.org>
3512         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3513         work with plain TeX also.
3515         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3517 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
3519         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3520         Use a loose DTD.
3522 2003-04-24  Werner LEMBERG  <wl@gnu.org>
3524         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3525         vbox with positive height and zero depth if in TeX mode.
3527         * NEWS: Document glyph name changes for grodvi and grolj4.
3529 2003-04-23  Werner LEMBERG  <wl@gnu.org>
3531         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3532         * doc/pic.ms: Fixed.
3534 2003-04-21  Werner LEMBERG  <wl@gnu.org>
3536         HP-UX 10.20 has `snprintf' but it isn't declared.
3538         * configure.ac: Add declaration test for snprintf.
3539         * configure: Regenerated.
3540         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3541         * src/include/config.hin: Regenerated.
3543 2003-04-19  Werner LEMBERG  <wl@gnu.org>
3545         Add keyword `figname' to pic, specifying the name of the picture
3546         box in TeX mode.  Based on a patch from William J Poser
3547         <wjposer@unagi.cis.upenn.edu>.
3549         * src/preproc/pic/pic.y: New token `FIGNAME'.
3550         (macro_name): New rule of type <str>.
3551         (placeless_element): Handle `FIGNAME'.
3552         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3553         * src/preproc/pic/main.cpp (graphname): New global variable.
3554         (do_picture): Initialize `graphname'.
3555         * src/preproc/pic/pic.h: Updated.
3556         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3557         `graphname'.
3558         Simplify TeX code.
3559         (tex_output::text): Beautify output.
3560         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3561         `shaded' and `outlined' unconditionally.
3562         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3563         Minor improvements.
3565         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3566         greater is necessary.
3568 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3570         Add option -r to soelim to avoid emission of `.lf' lines.
3571         Add option -t to produces TeX comment lines instead of `.lf' lines.
3573         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3574         and `tex_flag'.
3575         (usage): Updated.
3576         (main): Handle `-r' and `-t'.
3577         (set_location): Handle `raw_flag' and `tex_flag'.
3578         * src/preproc/soelim/soelim.man, NEWS: Updated.
3580 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3582         * tmac/hyphenex.sh: Replaced with...
3583         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3584         nightmares.
3586         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3587         if --quiet is used for the configure script.
3588         * configure: Regenerated.
3590 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3592         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3593         Add `const' to second argument.
3594         (html_printer::add_table_end): Add `const' to argument.
3595         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3596         `const' to arguments.
3597         * src/devices/grohtml/html-text.h: Updated.
3599         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3600         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3601         argument.
3603         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3604         cast for integer constant.
3606         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3607         (writeNbytes): Add `const' to first argument.
3608         (writeString): Add `const' to argument.
3609         (char_buffer::can_see): Add `const' to third argument.
3610         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3611         `const' to argument.
3612         * src/preproc/html/pushback.h: Updated.
3614         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3615         (include_path_append): Add `const' to argument.
3616         (do_file): Updated.
3618         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3619         for `value'.
3620         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3621         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3622         for `value'.
3623         (unicode_decompose_init::unicode_decompose_init): Updated.
3624         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3625         for `value'.
3626         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3627         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3628         argument.
3630         * tmac/hyphenex.sh: Make script more portable by using a here
3631         document.
3633 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3635         Renamed all `*.cc' files to `*.cpp'.
3636         Updated all configuration files, makefiles, and documentation.
3638 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3640         * tmac/hyphenex.sh: Slight improvements.
3642 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3644         * font/devascii/R.proto, font/devcp1037/R.proto,
3645         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3646         character slots with unnamed glyphs.
3648         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3649         (an-first): New global variable.
3650         (an-header): Emit vertical space between multiple man pages.
3652 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3654         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3655         values.
3657 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3659         * PROBLEMS: Revised.
3661 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3663         * doc/webpage.ms: Improved.
3665 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3667         Add register \n[.height] which returns the value of \H.
3668         Add register \n[.slant] which returns the value of \S.
3670         * src/roff/troff/env.cc (init_env_requests): Implement.
3671         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3672         Document.
3674 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3676         * tmac/html.tmac: Move some of the data into html-end.tmac.
3677         Remove most of the character translations for eqn since html fonts
3678         now cover those characters.
3679         Load www.tmac.
3680         * tmac/html-end.tmac: New file.
3681         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3682         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3683         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3685 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3687         * man/groff_out.man: Document negative values of `N' if -Thtml is
3688         used.
3690 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3692         * Makefile.comm (depend.temp): Check location of YTABC.
3694 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3696         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3697         binary path.
3698         (groff_bin_path): Rename to GROFF_BIN_PATH.
3699         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3700         * doc/Makefile.in (TROFFBIN): New variable for troff
3701         binary path.
3702         (GROFFBIN): New variable for groff binary path.
3703         (groff_bin_path): Rename to GROFF_BIN_PATH.
3704         (TROFF): Use TROFFBIN.
3705         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3706         * doc/Makefile.sub (GROFFBIN): New variable for groff
3707         binary path.
3708         (groff_bin_path): Rename to GROFF_BIN_PATH.
3709         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3711         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3712         with INSTALL_SCRIPT.
3713         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3714         * Makefile.dev (all): Depend on DEVSCRIPTS.
3715         (install_dev): Likewise.
3716         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3717         scripts.
3718         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3719         (DEVGENSCRIPTS): New variable to hold generated scripts.
3721 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3723         * src/libs/libdriver/input.cc (IntArray::operator[],
3724         IntArray::get_data): Remove meaningless `const' in return value.
3726         * README.CVS: New file.
3728 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3730         Check for stdint.h in C++, not in C.
3732         * aclocal.m4 (GROFF_STDINT_H): New function,
3733         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3734         AC_CHECK_HEADERS.
3735         * configure, src/include/config.hin: Regenerated.
3736         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3739         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3740         with a negative value, representing the width of the unbreakable
3741         space (only for -Thtml).  grohtml then converts this back to
3742         &nbsp; and uses the value of N as its width.
3744         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3745         unbreakable_space_node::tprint): Emit `N-<width>'.
3746         * src/include/printer.h (printer::set_numbered_char): Make it
3747         virtual.
3748         Make members `font_table' and `nfonts' protected instead of private.
3749         * src/devices/grohtml/post-html.cc
3750         (html_printer::set_numbered_char): New member function.
3753         * src/libs/libgroff/maxfilename.cc:
3754         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3756         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3757         emit word marker.
3759 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3761         * man/roff.man: Small fixes.
3763 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3765         Make groff independent from locale's numeric settings.
3767         * configure.ac: Check for `setlocale'.
3768         * configure, src/include/config.hin: Regenerated.
3770         * src/include/lib.h: Handle HAVE_SETLOCALE.
3772         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3773         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3774         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3777         * doc/groff.texinfo: Change dir category to `Typesetting'.
3778         (Man font macros): Mention that there is no space between arguments
3779         of .BI and friends.
3781         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3782         (*printer::change_color, *printer::change_fill_color): Add missing
3783         `const'.
3785 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3787         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3788         html_table::is_gap): Compute table widths after converting border
3789         positions to avoid rounding errors.
3791 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3793         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3794         `space_emitted' properly.
3796 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3798         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3799         (html_table::set_linelength): Don't add 1.
3800         (html_table::add_indent): Don't subtract 1.
3802         * tmac/html.tmac: Set default page offset to zero.
3804 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3806         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3808         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3809         unbreakable_space_node::tprint): New functions.
3810         (troff_output_file): Make space_char_hmotion_mode::tprint and
3811         unbreakable_space_node::tprint to friends.
3812         * src/roff/troff/node.h: Updated.
3814         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3815         in the HTML standard).
3817 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3819         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3820         Otherwise, the following code
3822           .di xxx
3823           .ps 10
3824           a
3825           .br
3826           .di
3827           x\*[xxx]
3829         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3830         font changes in diversions for -Thtml.
3832         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3833         `HTML-TAG'.
3834         (an-do-tag-html): Merge with ...
3835         (an-do-tag): This macro.
3836         Change code slightly to circumvent grohtml bug.
3837         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3839         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3840         html_table::is_gap): Round `width' properly.
3842         * tmac/html.tmac: Provide some default layout parameters for
3843         grohtml.
3845         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3846         command.
3848 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3850         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3852 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3854         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3855         defined.
3857 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3859         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3860         `.vs'.
3861         * doc/groff.texinfo: Updated.
3863 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3865         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3866         TOKEN_END_TRAP>: Reset `have_input'.
3868 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3870         * src/roff/groff/groff.man: Mention groff_trace man page.
3872 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3874         * Makefile.in (LIBEXT): New variable to indicate the file extension
3875         of library files.  Computed heuristically from $(OBJEXT).
3876         (MDEFINES): Add $(LIBEXT).
3877         * Makefile.lib, Makefile.comm: Use it.
3879         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3880         overlong lines into smaller chunks.
3881         (get_binary): New function.
3882         (main): Use them.
3883         * src/utils/pfbtops/pfbtops.man: Updated.
3885 2003-03-15  Colin Watson  <cjwatson@debian.org>
3887         * src/roff/groff/groff.man: Minor syntax fix.
3889 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3891         * src/devices/grops/ps.cc (ps_printer::media_set,
3892         ps_printer::~ps_printer): Handle zero paper width and length.
3894 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3896         Add options -p and -l to grodvi.
3898         * src/devices/grodvi/dvi.cc: Include paper.h.
3899         (landscape_flag, user_paper_length, user_paper_width): New global
3900         variables.
3901         (dvi_printer::begin_page): Emit `papersize' special.
3902         Set color after initialization of `cur_h' and `cur_v'.
3903         (main): Add options `-l' and `-p'.
3904         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3905         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3907         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3909 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3911         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3912         * man/groff_tmac.man: This man page.
3913         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3914         deprecated.
3916         * tmac/X.tmac: Don't load pspic.tmac.
3918 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3920         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3921         by Bernd Warken <bwarken@mayn.de>.
3923         * src/include/driver.h (pr): Removed.
3925         * src/libs/libdriver/input.cc (pr): New global variable.
3926         (do_file): Deallocate `pr'.
3927         * src/libs/libdriver/printer.cc (pr): Removed.
3929         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3930         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3931         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3932         (main): Don't delete `pr'.
3934 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3936         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3937         * tmac/papersize.tmac: New file.
3938         * tmac/troffrc: Include `papersize.tmac'.
3939         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3940         * tmac/an-old.tmac: Set LT to LL by default.
3942         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3943         doc/groff.texinfo: Updated.
3945         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3946         bug which caused all odd iso papers to have wrong dimensions.
3948         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3949         (main) <'p'>: Set `user_paper_width' also.
3950         (ps_printer::media_width, ps_printer::media_height): Use values
3951         given with option `-p'.
3953 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3955         * src/include/nonposix.h: Provide default for SET_BINARY.
3957         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3958         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3959         unconditionally.
3961         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3962         (main): Treat \r\n as \n.
3964 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3966         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3967         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3969 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3971         Added support to access more than 256 glyphs in Type 1 fonts.
3973         * src/devices/grops/ps.cc (subencoding): New structure.
3974         (style): Add `sub' field.
3975         Updated all users.
3976         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3977         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3978         functions.
3979         Updated all users.
3980         (ps_printer::set_char): Use `set_subencoding'.
3981         (make_subencoding_name): New function.
3982         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3983         (ps_printer::~ps_printer): Emit subencoding definitions.
3985         * src/devices/grops/psrm.cc (valid_input_table): New array to
3986         properly support EBCDIC.
3987         (white_space): Add `\f'.
3988         (ps_get_line): Change first argument to be of type `string &'.
3989         Updated all callers.
3990         This allows to get lines of arbitrary length.
3991         Use `valid_input_table'.
3992         Remove warning about non-conforming PS line length.  This seems
3993         not to be of great importance -- for example, dvips don't emit
3994         a warning either.
3995         (PS_LINE_MAX): Removed.
3996         (matches_comment): Change first argument to be of type `string &'.
3998         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
4000         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
4001         %AGL_to_unicode, %default_ligatures): New hash tables.
4002         Read all map entries.
4003         Add unencoded characters.
4004         Check for default ligatures if there are no `L' entries.
4005         Print all kern entries.
4006         Print all characters in charset.
4007         * src/utils/afmtodit/afmtodit.man: Updated.
4009         * font/devps/*: Regerated all fonts.
4011         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
4012         of characters, just use `.trin'.  Otherwise the mapping depends
4013         on the font encoding.
4014         * tmac/ps.tmac: Add `fi' and `fl'.
4015         Improve `Fi' and `Fl'.
4016         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
4017         * tmac/Xps.tmac: Fix `em'.
4019         * NEWS: Updated.
4021 2003-03-04  Werner LEMBERG  <wl@gnu.org>
4023         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
4024         `have_input'.
4026 2003-03-03  Werner LEMBERG  <wl@gnu.org>
4028         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
4030         * font/devps/generate/textmap: Remove entry `similarequal'.
4031         * font/devps/symbolmap: Updated.
4033 2003-03-02  Werner LEMBERG  <wl@gnu.org>
4035         * src/libs/libgroff/font.cc (font::load): Fix error message for
4036         bad character type.
4038         * src/devices/grops/grops.man: Improve documentation of the -b
4039         flag.
4041         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
4042         `ascii' and `cp1047'.
4044 2003-03-01  Werner LEMBERG  <wl@gnu.org>
4046         Document composite glyphs and the `composite' request.
4048         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
4050 2003-02-28  Werner LEMBERG  <wl@gnu.org>
4052         * font/devdvi/generate/ec.map: Add some more Unicode entities.
4053         * font/devdvi/*EC: Updated.
4055         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
4056         * tmac/latin1 (latin1-tr): Undo any previous mapping.
4057         * tmac/troffrc: Load `composite.tmac'.
4058         * tmac/Makefile.sub (NORMALFILES): Updated.
4060         * doc/groff.texinfo (Input Encodings): New section.
4061         * NEWS: Updated.
4063 2003-02-27  Werner LEMBERG  <wl@gnu.org>
4065         * doc/texinfo.tex: New version 2003-02-11.06.
4067         * tmac/doc-common (Dt): Don't emit warning for unknown section.
4068         * tmac/groff_mdoc.man: Fix description of `Dt'.
4070 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
4072         * font/devps/prologue.ps: Fix for included Postscript that does
4073         a setpagedevice -- which is now safely ignored.
4075         * NEWS: Updated.
4077         * src/devices/grops/ps.cc: Now sets the page size in the generated
4078         document.  This is done in two ways: Via a %%-comment for gv and
4079         the like, and via a PageSize and setpagedevice for programs that
4080         understands Postscript proper, like ps2pdf.
4082         * src/devices/grops/ps.h: New broken-flag to avoid page size
4083         definition, if required.
4085         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
4087         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
4088         Not really necessary due to the fix in prologue.ps, but cleaner:
4089         Such information does not belong in an .eps file.
4091         * doc/Makefile.sub: See doc/Makefile.in.
4093 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
4095         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
4096         instead of P1 since the latter is broken in some versions of netpbm.
4097         * configure: Updated.
4099 2003-02-26  Larry Kollar  <kollar@alltel.net>
4101         Make man pages more customizable.
4103         * tmac/an-old.tmac (FT): New register holding footer distance from
4104         bottom.
4105         (HF): New string holding the default heading font.
4106         (TH): Handle registers `IN' and `SN' set on the command line.
4107         Use `FT'.
4108         (PT, BT): New strings to customize header and footer lines.
4109         (an-header, an-footer): Use them.
4110         (SH, SS): Use `HF'.
4111         * tmac/groff_man.man: Document changes.
4113         * doc/groff.texinfo: Document man changes.
4114         Document Ultrix extensions of man.
4116 2003-02-26  Werner LEMBERG  <wl@gnu.org>
4118         * src/roff/troff/input.cc (do_width, do_if_request): Reset
4119         `have_input' after changing back to old environment.
4121         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
4122         function up to be defined before first call.  This is necessary to
4123         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
4125         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
4126         the default font directory also.  Based on a patch from James
4127         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
4128         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
4129         * src/utils/afmtodit/afmtodit.man: Document it.
4131         * NEWS: Updated.
4133         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
4135 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
4137         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
4138         (GROFF_PNMTOPS_NOSETPAGE): New macro.
4139         * configure.ac: Use it.
4140         * configure: Regenerated.
4141         * Makefile.in: Updated.
4143         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
4144         (CLEANADD): Add www.tmac-sed.
4145         (pnmtops_nosetpage): Define default.
4146         (install_data): Handle www.tmac-sed and substitute
4147         @PNMTOPS_NOSETPAGE@.
4148         (stamp-sed): Add www.tmac.
4149         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
4150         It now breaks URLs at suitable places.
4151         (www:substring_ok): New register set by...
4152         (www:@test_substring): New macro.
4153         (www:error): New alias to www-error.
4154         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
4155         New macros.
4156         (URL): Use www:url_breaks.
4157         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
4158         (CDS, CDE): New macros.
4160 2003-02-25  Werner LEMBERG  <wl@gnu.org>
4162         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
4163         buffer overflow.
4165 2003-02-24  Werner LEMBERG  <wl@gnu.org>
4167         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
4168         can be negative also.
4170         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
4171         `int16'.
4172         (read_char_table): Avoid negative ascenders.
4173         (output_charset): Add cast.
4174         * font/devlj4/*: Regenerated.
4176         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
4177         possible.
4179         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
4180         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
4181         of `<>'.
4182         * font/devdvi/*: Regenerated.
4184         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
4185         normal width, while the previously used characters (U+2329 and
4186         U+232A) are classified as wide due to canonical equivalence with the
4187         CJK punctuation characters U+3008 and U+3009.
4189         * font/devutf8/R.proto: Updated.
4190         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4192         * man/groff_char.man: Simplify handling of table traps by
4193         introducing `start block' and `end block' macros.
4194         (Ns, Ne, 2s, 2e, Ds, De): New macros.
4195         (DL): Make it work with Unix troff also.
4196         Fix code values of `la' and `ra'.
4198         * tmac/dvi.tmac: Define `<>' for CW and CWI.
4200 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
4202         * src/devices/grohtml/post-html.cc (element_list::~element_list):
4203         New destructor, fixing a major memory leak.
4205 2003-02-22  Werner LEMBERG  <wl@gnu.org>
4207         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4208         to be in conformance with Unicode 3.0 and newer.
4210         * font/devlj4/generate/text.map: Add `Eu'.
4211         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4212         * font/devlj4/S: Regenerated.
4214         * man/groff_char.man: Completely rewritten.
4216         * doc/groff.texinfo: Fix description of request and macro arguments.
4218 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
4220         Valgrind fixes.
4222         * src/devices/grohtml/html-table.cc (html_table::~html_table):
4223         Deallocate `columns' list.
4224         * src/devices/grohtml/post-html.cc (char_block::~char_block):
4225         New destructor.
4226         (text_glob::text_glob_html, text_glob::text_glob_special,
4227         text_glob::text_glob_line, text_glob::text_glob_auto_image,
4228         text_glob::text_glob_tag): Avoid memory leaks.
4229         (text_glob::remember_table): Free memory before reassigning.
4231 2003-02-19  Werner LEMBERG  <wl@gnu.org>
4233         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4234         alias `hbar'), the Planck constant over two pi.
4236         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4237         `+e' for position 34.
4238         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4239         `u2662' and `u2661'.
4240         * font/devdvi/{MI,S}: Regenerated.
4241         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4242         * font/devlbp/*: Add `hbar' alias.
4243         * font/devlj4/generate/special.map: Ditto.
4244         * font/devlj4/S: Regenerated.
4245         * font/devps/generate/symbolchars: Add `+e'.
4246         * font/devps/generate/textmap: Fix PS name for `-h'.
4247         Add `hbar' alias.
4248         * font/devps/symbolmap: Regenerated.
4250         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4252         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4253         `-h', `hbar'.
4254         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4255         `-h'.
4257         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4258         `hbar'.
4259         * tmac/tty-char.tmac: Add `+e'.
4261 2003-02-17  Werner LEMBERG  <wl@gnu.org>
4263         Another round trying to really fix problems with `have_input'.
4265         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4266         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4268         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4269         handling if both foreground and background colors are default.
4271         * doc/groff.texinfo (Debugging): Document .lf differences to
4272         AT&T troff.
4274 2003-02-16  Werner LEMBERG  <wl@gnu.org>
4276         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4277         null-bytes in created string.
4279         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4280         alias_macro, lookup_request): Improve warning messages.
4282         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4283         not `strdup'.
4284         Free `last_image_filename'.
4286         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4287         `buffer'.
4288         (imageList::createPage, imageList::createImage): Use `free', not
4289         `a_delete'.
4290         (imageItem::~imageItem): Free `imageName'.
4291         (addRegDef): Use `strsave', not `strdup'.
4292         (get_resolution): Free `pathp'.
4294 2003-02-15  Werner LEMBERG  <wl@gnu.org>
4296         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4297         to `dummy'.
4299 2003-02-14  Werner LEMBERG  <wl@gnu.org>
4301         Add memory management for colors to deallocate unnamed colors
4302         properly.
4304         * src/include/color.h (color): New members `free_list' and `next'.
4305         New member functions `new' and `delete'.
4306         Add destructor.
4307         * src/libs/libgroff/color.cc: Implement it.
4309         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4310         for array size of new operator.
4312         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4313         redundant comparison.
4315         * src/roff/troff/input.cc (word_space_node::reread,
4316         hmotion_node::reread): Avoid warning about unused parameter.
4317         (reset_output_registers): Remove redundant parameter.
4318         (define_color): Undo change 2003-02-12.
4320         * src/roff/troff/reg.h: Updated.
4322         * src/roff/troff/node.cc (troff_output_file::really_print_line,
4323         output_file::put_filename, real_output_file::really_put_filename,
4324         ascii_output_file::really_print_line,
4325         break_char_node::get_hyphen_list): Avoid warning about unused
4326         parameter.
4327         (suppress_node::tprint): Updated.
4329         * configure.ac: Check declaration for rand() and srand().
4330         * configure: Regenerated.
4332         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4333         conditionally.
4334         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4335         and srand().
4337         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4338         to avoid compiler warnings.
4340         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4341         unused.
4343         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4344         is unused.
4345         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4346         (unused) parameter.
4347         Updated all callers.
4349         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4350         is unused.
4351         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4352         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4354         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4355         Parameter is unused.
4356         (html_printer::add_table_end): Define parameter conditionally.
4357         * src/devices/grohtml/output.cc (simple_output::special): Parameter
4358         is unused.
4360         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4361         (lbp_printer::set_char): Last parameter is unused.
4363         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4365 2003-02-13  Werner LEMBERG  <wl@gnu.org>
4367         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4368         Make \D'f ...' move horizontally again for backwards compatibility.
4369         Replace it with \D'Fg ...' where appropriate to avoid dependency
4370         on horizontal resolution.
4372         * src/roff/troff/input.cc (do_get_long_name): New function.
4373         (get_long_name): Call it.
4375         (read_draw_node): Handle `\D'Fx ...' by calling ...
4376         (read_color_draw_node): New function.
4378         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4379         `end'.
4380         Pass it to `do_get_long_name' which is used instead of
4381         `get_long_name'.
4383         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4384         unnecessary value guard.
4385         (parse_D_command) <'f'>: Add horizontal shift.
4387         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4388         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4389         (FILL_MAX): Removed.
4391         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4392         Updated.
4394 2003-02-12  Werner LEMBERG  <wl@gnu.org>
4396         * src/roff/troff/input.cc (do_name_test, do_expr_test,
4397         do_zero_width): Push `\n' if closing delimiter is missing.
4399         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4400         <'F'>: Make \F non-transparent at the beginning of line.
4401         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4402         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4403         `have_input'.
4405         (define_color): Free color in case of reassignment.
4407         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4408         @DefescListEnd): Use @Var, not @var.
4409         Fix all calls.
4411         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4413         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4414         `shaded' and `outlined' arrays.
4415         (object_spec::object_spec): Initialize `shaded' and `outlined'.
4416         (graphic_object::set_fill_color, graphic_object::set_outline_color):
4417         Use strsave.
4418         (closed_object::set_fill_color): Ditto.
4419         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4420         instead of strdup.
4421         (troff_output::reset_color): Use a_delete instead of free.
4422         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4424 2003-02-11  Werner LEMBERG  <wl@gnu.org>
4426         * doc/groff.texinfo: Improve documentation of `ad'.
4427         Document that \D'f...' is dependent on the horizontal resolution.
4428         * man/groff_diff.man: Improve documentation of \D'f...'.
4430         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4431         compensating \h'...' for \D'f ...' since the latter no longer moves
4432         current position.
4433         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4435 2003-02-10  Werner LEMBERG  <wl@gnu.org>
4437         Improve error messages for `x F' (and `F') commands.
4439         * src/include/error.h: Add declaration for
4440         `current_source_filename'.
4441         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4442         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4443         parameter for source file string.
4444         Updated all callers.
4446         * src/libs/libdriver/input.cc: Add `current_source_filename'.
4447         (remember_source_filename): New function.
4448         (parse_x_command <'F'>, do_file <'F'>): Use it.
4450 2003-02-09  Werner LEMBERG  <wl@gnu.org>
4452         Make grotty not emit warnings about unknown colors more than
4453         necessary.
4455         * src/devices/grotty/tty.cc: Include `ptable.h'.
4456         (TTY_MAX_COLORS): Removed.
4457         (DEFAULT_COLOR_IDX): Defined to -1.
4458         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4459         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4460         Change `tty_colors' to be a ptable.
4461         First arg of `put_color' is now `char'.
4462         New functions `make_rgb_string' and `tty_color'.
4463         (tty_printer::tty_printer): Use `tty_color'.
4464         (tty_printer::color_to_idx): Return value is now `char'.
4465         Use `tty_color'.
4467         * src/include/color.h (color): Add `print_color' member function.
4468         * src/libs/libgroff/color.cc (color::print_color): Implement it.
4470 2003-02-08  Werner LEMBERG  <wl@gnu.org>
4472         Valgrind fixes.
4474         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4475         encoding file.
4477         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4478         assume that value has been allocated with `new[]', thus use
4479         `a_delete' for deallocation.
4481         * src/libs/libdriver/input.cc (get_integer_arg,
4482         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4483         where appropriate.
4485         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4486         * src/libs/libgroff/nametoindex.cc
4487         (character_indexer::named_char_index): Use `new <type>[1]'.
4489         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4490         <type>[1]'.
4491         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4492         (split_text): Use `a_delete'.
4494         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4495         <type>[1]'.
4497         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4498         harmless memory leak.
4499         (hyphen_trie::read_patterns_file): Initialize `buf'.
4500         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4501         Initialize `current_fill_color'and `current_glyph_color'.
4502         * src/roff/troff/glyphuni.cc
4503         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4504         * src/roff/troff/uniuni.cc
4505         (unicode_decompose_init::unicode_decompose_init): Ditto.
4506         * src/roff/troff/uniglyph.cc
4507         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4509 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4511         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4512         `access' before calling `unlink'.
4513         (do_file): Handle __EMX__.
4515         * src/include/nonposix.h: Handle __EMX__.
4517         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4518         (fontpath,tmacpath): Use it.
4519         (MDEFINES): Add it.
4520         Sorted alphabetically.
4522         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4523         @SEP@.
4524         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4525         @SEP@.
4527 2003-01-27  Werner LEMBERG  <wl@gnu.org>
4529         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4530         New files, copied from gnulib.
4531         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4532         * configure.ac: Updated.
4533         * configure: Regenerated.
4535         * src/include/config.hin: Regenerated.
4536         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4537         Don't define `strcasecmp' as `strcmp'.
4538         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4539         Dont define `strncasecmp' as `strncmp'.
4541         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4542         Removed.
4544 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4546         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4547         s/unline/unlink/.
4549 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4551         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4553 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4555         Add US-english hyphenation exceptions (converted from Barbara
4556         Beeton's hyphenation exception log reports which appear irregularly
4557         in TUGBoat).
4559         * tmac/hyphen.us: Updated to latest version.
4560         * tmac/README: Updated.
4561         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4562         * tmac/troffrc: Load `hyphenex.us'.
4563         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4564         * doc/groff.texinfo: Updated.
4566 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4568         Improve hyphenation slightly.  This is a first step in redesigning
4569         the hyphenation algorithm to make it more flexible (e.g. allowing
4570         kerns and ligatures between the hyphenation character and the
4571         following character -- while not used normally in English, other
4572         languages like German would benefit).
4574         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4575         assertion instead of if-clause.
4576         Let `get_hyphen_list' return the number of involved characters in
4577         the hyphenation pattern instead of computing it directly (which
4578         often yields too small values).
4579         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4580         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4581         parameter.
4583 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4585         Fixing a bug which caused groff to hang if the hyphenation exception
4586         dictionary tried to grow.
4588         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4589         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4590         pointer to dictionary.
4592 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4594         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4595         negative left italic correction.
4596         * src/utils/afmtodit/afmtodit.man: Document it.
4598         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4599         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4600         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4602         * NEWS: Updated.
4604 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4606         * NEWS: Updated.
4608 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4610         * src/preproc/refer/refer.man: Mention REFER environment variable.
4612 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4614         Similar to \[is], the square root glyph (\[sr]) and the square root
4615         extension glyph (\[radicalex]) are now text symbols.  The new
4616         mathematical versions are called \[sqrt] and \[sqrtex],
4617         respectively.
4619         * font/devX*/S: Regenerated.
4620         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4621         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4622         * font/devdvi/EX, font/devdvi/S: Regenerated.
4623         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4624         * font/devlj4/generate/special.map: Add `sqrt'.
4625         * font/devlj4/S: Regenerated.
4626         * font/devps/generate/textmap: Add `sqrt'.
4627         * font/devps/S, font/devps/symbolmap: Regenerated.
4629         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4630         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4631         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4632         overlap horizontally.
4634         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4635         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4636         Fix `radicalex'.
4638         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4639         and `sqrtex' are overlapping glyphs.
4641 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4643         * font/devdvi/generate/texsy.map: Add `is'.
4644         * font/devps/symbolmap: Regenerated.
4645         * font/devdvi/*TC, MI, S: Regenerated.
4647         * tmac/dvi.tmac: Remove `is'.
4649 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4651         `is' is now a text symbol (only relevant for dvi).  The math variant
4652         can be accessed with `integral'.
4654         * font/devX*/S: Regenerated.
4655         * font/devdvi/generate/texex.map: Remove `is'.
4656         * font/devdvi/EX: Updated.
4657         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4658         * font/devlj4/generate/special.map: Ditto.
4659         * font/devlj4/S: Regenerated.
4660         * font/devps/generate/textmap: Add `integral'.
4661         * font/devps/S: Regenerated.
4663         * tmac/dvi.tmac: Define `is'.
4665         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4667         * src/preproc/tbl/main.cc (process_format): Fix error message.
4669 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4671         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4672         * font/devps/textmap: Fix entries for `ne' and `nc'.
4673         * font/devps/symbolmap: Regenerated.
4675         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4676         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4677         `38', `58', `78', `-+', `|=', `nc', `ne'.
4679         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4680         Use `schar' for `aq'.
4681         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4682         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4683         * tmac/tty.tmac: Add `ne'.
4685         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4686         for fallback glyphs.
4688 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4690         Add glyph `|='.
4692         * font/devX*/*: Regenerated.
4693         * font/devdvi/generate/ec.map: Remove `eq'.
4694         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4695         Assign `|=' to position 39.
4696         * font/devdvi/*EC, S: Regenerated.
4697         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4698         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4699         Assign `|=' to position 549.
4700         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4701         `equalmath'.
4702         Add `uni2243' for `|='.
4704         * tmac/ec.tmac: Add `eq'.
4705         * tmac/dvi.tmac: Add `=~'.
4706         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4707         `|='.
4709 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4711         * font/devdvi/generate/tc.map: Remove `**'.
4712         * font/devdvi/*TC: Regenerated.
4713         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4714         `78', `<<', `>>'.
4715         * font/devutf8/NOTES: Updated.
4717         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4718         Don't give default parameter to `set_macro'.
4719         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4720         instead of `set_macro'.
4721         (charinfo::setx_macro): Implement it.
4722         (charinfo::set_macro): Don't change `mode'.
4724         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4725         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4726         * tmac/dvi.tmac: Define `!=' with `.schar'.
4728 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4730         * font/devX*/S: Regenerated.
4731         * font/devdvi/generate/ec.map: Remove `pl'.
4732         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4733         * font/devdvi/*{TC,EC}: Regenerated.
4734         * font/devhtml/R.proto: Add `-+'.
4735         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4736         * font/devlbp/*: Remove `or'.
4737         * font/devlj4/generate/special.map: Remove `or'.
4738         * font/devlj4/S: Regenerated.
4739         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4740         `seveneighths', `threeeighths'.
4741         Remove `plusmath'.
4742         Replace `minusplus' with `uni2213'.
4743         * font/devps/symbolmap: Regenerated.
4744         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4745         Add `-+'.
4747         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4748         function.
4749         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4750         Call glyph_color and fill_color even if tcommand_flag isn't set.
4751         (make_node, node::add_char): Check not ci->is_fallback but
4752         ci->is_normal.
4754         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4755         * tmac/ec.tmac: Add .rchar entry for `f/'.
4756         Don't remove `12', `14', `34'.
4757         Define `pl' to be always roman.
4758         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4759         Define `18', `38', `58', `78'.
4760         * tmac/tty.tmac: Add `-+'.
4761         * tmac/dvi.tmac: Define `f/'.
4762         (dvi-frac): Use `f/'.
4763         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4764         Define `18', `38', `58', `78'.
4766 2002-12-15  Colin Watson  <cjwatson@debian.org>
4768         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4770 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4772         Add glyph `tno', a textual variant of `no'.
4774         * font/devX*/*: Regenerated.
4775         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4776         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4777         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4778         * font/devdvi/*: Regenerated.
4779         * font/devlbp/*: Add `tno'.
4780         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4781         * font/devlj4/*: Regenerated.
4782         * font/devps/generate/textmap: Replace `no' with `tno'.
4783         * font/devps/generate/symbolchars: Add `no'.
4784         * font/devps/*: Regenerated.
4786         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4788         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4789         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4791         * NEWS: Updated.
4793         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4794         Add definition for `sd'.
4795         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4797         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4799 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4801         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4802         mode to avoid rounding errors.
4803         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4805         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4806         src/roff/troff/troff.man: Improve documentation of -T.
4808 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4810         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4811         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4813 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4815         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4816         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4817         Scaling Euro.sansserif glyphs down to have the same height as
4818         digits.
4819         Removed unnecessary points; added some extrema.
4821         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4822         Regenerated.
4824 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4826         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4827         and `Euro.symbol.bold.slanted'.
4828         Improve some glyph offsets and widths.
4829         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4830         Regenerated.
4831         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4832         typo.
4833         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4834         direcory.
4836         * tmac/europs.tmac: Updated to new glyph indices.
4837         Use Euro.symbol for font familiy `A'.
4839         * doc/groff.texinfo: Minor improvements.
4841 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4843         * font/devdvi/generate.tc.map: s/%O/%0/.
4844         * font/devdvi/*TC: Regenerated.
4846         * src/roff/troff/div.cc (init_div_requests): Sorted.
4848         * tmac/dvi.tmac: Remove `Ye'.
4849         * tmac/ec.tmac: Remove `Ye'.
4850         Add .rchar entry for `de'.
4852         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4853         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4854         * NEWS: Updated.
4856 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4858         Add PS font for various Euro glyphs.
4860         * font/devps/generate/freeeuro.sfd: New master font file for
4861         pfaedit.
4862         * font/devps/generate/sfdtopfa.pe: New conversion script for
4863         pfaedit.
4864         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4865         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4866         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4867         `freeeuro.sfd'.
4868         * font/devps/EURO: Generated from `freeeuro.afm'.
4869         * font/devps/download: Add `freeuro.pfa'.
4870         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4871         `freeeuro.pfa'.
4873         * tmac/europs.tmac: New file.
4874         * tmac/ps.tmac: Include `europs.tmac'.
4875         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4877 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4879         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4880         * font/devdvi/S: Regenerated.
4881         * font/devhtml/R.proto: Fix `CR' and `ci'.
4882         Add `OK'.
4883         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4884         Remove `bs'.
4885         * font/devps/symbolmap: Regenerated.
4886         * font/devutf8/R.proto: Fix `CR' and `ci'.
4887         Add `OK'.
4888         * font/devutf8/NOTES: Updated.
4890         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4891         `ci'.
4892         Add `OK'.
4893         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4895         * tmac/dvi.tmac: Add `lh' and `rh'.
4896         * tmac/Xps.tmac: Fix `lh' and `rh'.
4897         * tmac/X.tmac: Add `OK'.
4898         * tmac/lj4.tmac: Ditto.
4900 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4902         * font/devX*/S: Regenerated.
4903         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4904         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4905         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4906         * font/devdvi/S: Regenerated.
4907         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4908         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4909         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4910         `bracketleftbt', `bracketrighttp', `bracketrightex',
4911         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4912         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4913         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4914         `rb', and `bv'.
4915         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4916         * font/devutf8/NOTES: Updated.
4917         * font/devlj4/generate/special.map: Add glyph `braceex'.
4918         * font/devlj4/S: Regenerated.
4920         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4922 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4924         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4925         and `vA'.
4926         Fix code for `an'.
4927         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4929         * doc/texinfo.tex: New version from texinfo 4.3.
4930         * doc/groff.texinfo: Updated for texinfo 4.3.
4931         Use @tie{} where appropriate.
4932         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4933         * font/devdvi/generate/tc.map: Remove `rn'.
4934         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4935         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4936         Fix code for `an'.
4937         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4938         font/devX75-12/*: Regenerated.
4940         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4941         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4942         Improve definition of `an'.
4943         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4944         `ru'.
4945         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4946         * tmac/X.tmac: Add definition for `or'.
4947         * tmac/Xps.tmac: Undo change 2002-11-05.
4948         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4950 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4952         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4953         call flush_tbuf.
4955 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4957         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4958         defines a glyph which is searched after the check for fonts declared
4959         with `.special' (and before the check for all mounted special
4960         fonts).  `fschar' defines a glyph for a particular font which is
4961         searched after the check for fonts declared with `.fspecial' (and
4962         before the check for fonts declared with `.special').  `rfschar'
4963         removes glyphs defined with `fschar'.
4965         * src/roff/troff/token.h (char_mode): New enum.
4966         Declare do_define_character.
4967         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4968         `mode'.
4969         (charinfo::is_fallback): Updated.
4970         (charinfo::is_special): New method.
4971         * src/roff/troff/input.cc (do_define_character): Add and use
4972         optional second parameter used as a prefix for font-specific glyph
4973         names.
4974         (define_character, define_fallback_character): Updated.
4975         (define_special_character): New function.
4976         (init_input_requests): Add `schar'.
4977         (charinfo::charinfo, charinfo::set_macro): Updated.
4978         * src/roff/troff/node.cc: Include `stringclass.h'.
4979         (make_glyph_node): Handle special glyphs defined with `.schar' and
4980         `.fschar'.
4981         (define_font_special_character, remove_font_special_character): New
4982         functions.
4983         (init_node_requests): Sorted.
4984         Add `fschar' and `rfschar'.
4985         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4986         Document new requests.
4988         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4989         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4991 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4993         Added new font `SC' (cmtex10) to devdvi.
4995         * devdvi/generate/Makefile (FONTS): Add `SC'.
4996         (SC): New rule.
4997         * devdvi/generate/textex.map: New map file for cmtex.
4998         * devdvi/SC: New.
4999         * devdvi/Makefile.sub (DEVFILES): Updated.
5000         * tmac/dvi.tmac: Add fspecial entries for SC.
5001         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
5002         found before `S' since the font position of `SC' is lower due to the
5003         gaps in DESC's `font' line.
5004         * tmac/ec.tmac: Add a `special' call.
5005         * NEWS: Updated.
5007         * font/devhtml/R.proto: Remove double entry for `ti'.
5008         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
5009         * tmac/tty-char.tmac: Remove entry for `bq'.
5010         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
5011         * tmac/ec.tmac: Don't remove `aq' glyph.
5012         * tmac/X.tmac: Fix entry for `em'.
5013         Add entries for `fo' and `fc'.
5014         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
5016         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
5017         documentation of `special' and `fspecial' requests.
5019 2002-11-05  Werner LEMBERG  <wl@gnu.org>
5021         * font/devascii/R.proto, font/devcp1047/R.proto,
5022         font/devlatin1/R.proto: Remove entry for `.i'.
5023         * font/devdvi/generate/textt.map: Add entry for `ad'.
5024         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
5025         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
5026         We need this for getting kerning values to compose `/l' and `/L'.
5027         * font/devdvi: Regenerated font definition files for CM fonts.
5028         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
5029         * font/devutf8/R.proto: Ditto.
5030         Remove double entry for `ti'.
5032         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
5033         for (groff) ligatures, `la', and `ra'.
5034         Add "'C", "'c", `IJ', and `ij'.
5035         Remove double entry for `ti'.
5036         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
5037         double entries.
5038         Add "'C", "'c", `IJ', and `ij'.
5039         Fix entries for (groff) ligatures, `la', and `ra'.
5041         * tmac/ps.tmac (ps-achar): New macro.
5042         Define "'c" and "'C".
5043         * tmac/tty.tmac: Add entry for `.i'.
5044         * tmac/X.tmac (X-achar): New macro.
5045         Define "'c", "'C", and `:Y'.
5046         Add entries for `IJ' and `ij'.
5047         * tmac/Xps.tmac (Xps-achar): New macro.
5048         Define "'c" and "'C".
5049         Add entries for `IJ' and `ij'.
5050         * tmac/lbp.tmac (lbp-achar): New macro.
5051         Add fallback characters for all groff ligatures and many other
5052         glyphs.
5053         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
5054         Add entries for `/l' and `/L'.
5055         Define "'c" and "'C".
5056         Add entries for `IJ' and `ij'.
5058 2002-11-02  Larry Kollar  <kollar@alltel.net>
5060         * PROBLEMS: Document how to solve Mac OS X compilation problems.
5062 2002-11-02  Werner LEMBERG  <wl@gnu.org>
5064         Adding support for composite glyphs: \[xxx yyy ...] and the
5065         `composite' request.
5067         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
5068         to Unicode-based glyph names.
5069         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
5070         glyph names to groff glyph names.
5071         * src/roff/troff/uniuni.cc: New file for canonically decomposing
5072         Unicode-based glyph names.
5073         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
5074         for handling Unicode glyph names.
5075         * src/roff/troff/input.cc: Include unicode.h.
5076         (composite_glyph_name): New function.
5077         (token::next) <'['>: Handle Unicode glyph names and composite
5078         glyphs.
5079         (composite_dictionary): New dictionary for the `composite' request.
5080         (composite_request): Implement `composite' request.
5081         (init_input_requests): Add `composite'.
5082         Alphabetically sorted.
5083         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
5084         commented out).
5085         (init_env_requests): Alphabetically sorted.
5086         Removed `tas' and `tar' (already commented out).
5087         * src/roff/troff/Makefile.sub: Updated.
5089 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
5091         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
5092         of options.
5094 2002-10-29  Werner LEMBERG  <wl@gnu.org>
5096         Fix computation of .trunc register.  Additionally, its value (and
5097         the value of the .ne register) is now always set before entering the
5098         trap.
5100         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
5101         `needed_space' before calling `space'.
5102         (top_level_diversion::space): Remove special code for 'sp before the
5103         first page.
5104         Call `begin_page' with the discarded space as a parameter.
5105         (top_level_diversion::begin_page): Add optional parameter to set
5106         `truncated_space'.
5107         * src/roff/troff/div.h: Updated.
5109         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
5110         \n[.ne].
5112         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
5113         (LP): Remove superfluous call to `br'.
5114         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
5115         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5117 2002-10-26  Werner LEMBERG  <wl@gnu.org>
5119         * tmac/doc-ditroff: Remove useless switch/variable -rC.
5120         (doc-setup-header): Don't set page register `%'.
5121         * tmac/doc-nroff: Remove variable `C'.
5122         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
5123         (doc-setup-header): Don't set page register `%'.
5124         Don't call `bp'.
5125         * tmac/doc-common (doc-header): Call `ns'.
5126         (doc-paragraph): Protect .sp with .br so that it survives traps
5127         possibly set by the user.
5128         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5130         * tmac/doc*: Replace ' with . for consistency if no effect.
5132 2002-10-26  Werner LEMBERG  <wl@gnu.org>
5134         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
5135         so that it survives traps possibly set by the user.
5137         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
5138         (troff_output_file::set_font): Call flush_tbuf if necessary.
5139         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
5140         flush_tbuf and do_motion only if necessary.
5141         (troff_output_file::start_special,
5142         troff_output_file::put_char_width, troff_output_file::put_char,
5143         troff_output_file::draw): Updated.
5144         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5145         vmotion_node::tprint): Undo change 2002-10-23.
5147 2002-10-25  Werner LEMBERG  <wl@gnu.org>
5149         * tmac/www.tmac (DC): Fix case of overlapping images.
5151 2002-10-23  Werner LEMBERG  <wl@gnu.org>
5153         * src/roff/troff/node.cc (troff_output_file::fill_color,
5154         troff_output_file::glyph_color): Set current color before testing
5155         color_flag.
5156         (troff_output_file::put_char_width, troff_output_file::put_char,
5157         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
5158         before glyph_color.
5159         (troff_output_file::file_color, troff_output_file::glyph_color):
5160         Call do_motion.
5161         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5162         vmotion_node::tprint): Move first, then call fill_color.
5164 2002-10-20  Werner LEMBERG  <wl@gnu.org>
5166         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
5167         possible to use multiple main macro packages.
5169 2002-10-19  Werner LEMBERG  <wl@gnu.org>
5171         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
5172         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
5173         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
5174         is set.
5175         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
5176         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
5178 2002-10-16  Werner LEMBERG  <wl@gnu.org>
5180         * NEWS, doc/webpage.ms: Updated.
5182 2002-10-14  Werner LEMBERG  <wl@gnu.org>
5184         * src/roff/troff/node.cc (troff_output_file::put_char_width,
5185         troff_output_file::put_char, troff_output_file::fill_color,
5186         troff_output_file::glyph_color): Handle case where color pointer
5187         is null.
5189 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
5191         Add the new -r option to grotty.  It is similar to the -i option
5192         except it tells grotty(1) to use the "reverse video" attribute to
5193         render italic fonts.
5195         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5196         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5197         (tty_printer::make_underline, tty_printer::put_color,
5198         tty_printer::end_page): Use it.
5199         (main): Add -r switch.
5200         (usage): Updated.
5201         * src/devices/grotty/grotty.man: Document it.
5203 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
5205         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5206         cast to `unsigned char' to properly read patterns with 8bit
5207         characters.
5209 2002-10-08  Werner LEMBERG  <wl@gnu.org>
5211         * REVISION: Increased to 2.
5213 Local Variables:
5214 version-control: never
5215 coding: latin-1
5216 End: