Improve documentation of \n[.U].
[s-roff.git] / ChangeLog
blob14259a69cd3d689a15c9e03332de01ba8be70a6f
1 2008-02-17  Werner LEMBERG  <wl@gnu.org>
3         * doc/groff.texinfo: Improve documentation of .cf request.
5 2008-01-19  Werner LEMBERG  <wl@gnu.org>
7         * src/preproc/html/pre-html.cpp (usage): Don't describe options but
8         mention that it should never be called stand-alone.
10         * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man,
11         man/groff_tmac.man, man/groff_out.man, README, README.MinGW,
12         src/roff/groff/groff.man: Mention -Txhtml.
14         * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.
16 2008-01-16  Werner LEMBERG  <wl@gnu.org>
18         * src/libs/libgroff/font.cpp (font::contains, font::get_code):
19         Handle single-letter names correctly.
21         * doc/groff.texinfo, man/groff_diff.man: Extend documentation of \^
22         and \|.
23         * NEWS: Updated.
25 2008-01-15  Werner LEMBERG  <wl@gnu.org>
27         * man/groff_font.man: Revised.
29 2008-01-14  Werner LEMBERG  <wl@gnu.org>
31         * man/groff.man: Mention glyph and characters.
32         Minor other updates.
33         * man/groff_char.man: Minor updates.
34         * man/groff_diff.man: Better clarification between characters and
35         glyphs.
37 2008-01-12  Werner LEMBERG  <wl@gnu.org>
39         * doc/groff.texinfo: Fix top-level structure to make it compilable
40         again with all texinfo modes.  Reported by Jörg van den Hoff
41         <j.van_den_hoff@fzd.de>.
43 2008-01-11  Werner LEMBERG  <wl@gnu.org>
45         * doc/pic.ms: Mention that compass points of line objects are
46         arbitrarily located.
48 2008-01-06  Werner LEMBERG  <wl@gnu.org>
50         * src/roff/troff/node.cpp (left_italic_corrected_node::add_self):
51         Don't remove itself if there is no glyph associated with the node
52         yet.  This happens, for example, in this situation:
54           .ll 15000u
55           .ft I
56           x x
57           (\,f
59 2008-01-05  Werner LEMBERG  <wl@gnu.org>
61         * man/groff_char.man, man/groff.man: Revised.
63         * src/preproc/eqn/lex.cpp (troff_defs): Fix typo.
65 2008-01-04  Werner LEMBERG  <wl@gnu.org>
66         * */*: s/Osanna/Ossanna/.
68         * */*.man: Replace .URL with .UR/.UE (except in groff_www.tmac).
69         Replace .MTO with .MT/.ME (except in groff_www.tmac).
70         Insert `\:' in URLs where appropriate.
71         Don't include www.tmac (except in groff_www.tmac).
73         * man/groff.man (.ESC[]): Fix font of closing bracket.
74         (.ESCq): Fix font of closing quote character.
75         Many other improvements.
77 2007-12-30  Bernhard Fisseni  <bfi@ikp.uni-bonn.de
79         * src/devices/grohtml/post-html.cc
80         (html_printer::writeHeadMetaStyle): Fix CSS output.
82 2007-12-29  Werner LEMBERG  <wl@gnu.org>
84         * tmac/ec.tmac: Add CM fonts to the .fspecial lines; those fonts
85         contain additional glyphs (like some uppercase Greek letters).
87 2007-12-06  Werner LEMBERG  <wl@gnu.org>
89         * NEWS: Updated.
91 2007-12-06  Colin Watson  <cjwatson@debian.org>
93         * src/roff/nroff/nroff.sh: Add options -w and -W.
94         * src/roff/nroff/nroff.man: Document them.
96 2007-12-06  Karl Berry  <karl@freefriends.org>
98         * tmac/hyphenex.pl: Update header output.
100 2007-11-29  Werner LEMBERG  <wl@gnu.org>
102         * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
104 2007-11-20  Werner LEMBERG  <wl@gnu.org>
106         * doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
108 2007-11-17  Werner LEMBERG  <wl@gnu.org>
110         * src/roff/nroff/nroff.sh: Handle GROFF_TYPESETTER environment
111         variable.  Problem reported by Michael G Schwern
112         <schwern@pobox.com>.
114         * src/roff/nroff/nroff.man: Document it.
115         Other minor updates.
117 2007-11-17  Heinz-Jürgen Oertel <hj.oertel@t-online.de>
119         * src/groff/preproc/pic/lex.cpp (table): Add box attributes
120         `xslanted' and `yslanted'.
122         * src/groff/preproc/pic/object.cpp (object_spec::object_spec):
123         Initialize `xslanted' and `yslanted'.
124         (graphic_object): Add methods `set_xlanted' and `set_yslanted'.
125         (closed_object): Ditto.
126         Add members `xslanted' and `yslanted'.
127         (box_object::print): Use them.
128         (object_spec::make_object): Handle slant values.
129         * src/groff/preproc/pic/object.h (IS_XSLANTED, IS_YSLANTED): New
130         constants.
131         (object_spec): Add members `xslanted' and `yslanted'.
132         * src/groff/preproc/pic/pic.y (XSLANTED, YSLANTED): New left-valued
133         tokens.
134         Add rules for them.
135         
136         * src/groff/preproc/pic/pic.man, NEWS, doc/pic.ms: Document above
137         changes.
139 2007-11-16  Werner LEMBERG  <wl@gnu.org>
141         * tmac/hyphenex.pl: Generate copyright notice (this has been
142         approved by Barbara Beeton).
143         * tmac/hyphenex.us: Updated.
145 2007-11-10  Michail Vidiassov  <master@iaas.msu.ru>
147         * tmac/doc-syms (doc-str-St--susv3): New string.
148         * tmac/groff_mdoc.man: Document it.
150 2007-11-08  Werner LEMBERG  <wl@gnu.org>
152         * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be'
153         `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'.
154         (is_comment_line): Handle '\" and '\# also.
156         * src/preproc/preconv/preconv.man: Revise and make complete.
158 2007-10-25  Werner LEMBERG  <wl@gnu.org>
160         * tmac/cs.tmac: New file holding Czech strings, contributed by
161         Marcela Maslanova <mmaslano@redhat.com>.
162         * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files
163         for Czech, taken from CTAN.
164         * LICENSES: Updated.
165         * tmac/Makefile (NORMALFILES): Add Czech stuff.
166         * doc/groff_tmac.man: Mention cs.tmac.
168 2007-10-21  Werner LEMBERG  <wl@gnu.org>
170         * src/roff/troff/input.cpp (do_ps_file): Handle `%X' in header
171         comments correctly.  Reported by Frank Jahnke
172         <jahnke@sonatabio.com>.
174 2007-10-02  Ruslan Ermilov  <ru@FreeBSD.org>
176         * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
177         FreeBSD 5.5 and 7.0.
179         * tmac/doc-syms: Give better names for System V releases.
181 2007-09-25  Gaius Mulley  <gaius@glam.ac.uk>
183         * doc/Makefile.in, doc/Makefile.sub (.ms.html): Add -P-V switch to
184         the production of html files.
185         (pic.html): Ditto.
186         Remove background colour switch.
187         (.SUFFIXES, clean): Handle *.xhtml files.
189         * src/devices/grohtml/grohtml.man: Document that -V option now
190         generates an HTML-4.01 validator or XHTML validator.
192         * src/devices/grohtml/html-text.cpp (html_text::end_tag,
193         html_text::start_tag): Suppress <small>, <big>, and <color> tags if
194         we are inside a <pre> block.
196         * src/devices/grohtml/post-html.cpp
197         (html_printer::handle_valid_flag): Add a parameter to indicate
198         whether it needs to generate a paragraph block.
199         (html_printer::write_navigation): Updated.
200         (html_printer::do_file_components): Generate an HTML-4.01 blue
201         validator button also.
203 2007-09-23  Axel Kielhorn  <A.Kielhorn@web.de>
205         * man/groff.man: Fix URL of CSTR 54.
207 2007-09-23  Werner LEMBERG  <wl@gnu.org>
209         * man/groff_char.man: Normalize character set names as defined
210         by IANA.  Based on a patch from Axel Kielhorn.
212         * src/preproc/refer/label.y: Undo change from 2007-09-19.
214 2007-09-19  Werner LEMBERG  <wl@gnu.org>
216         * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
217         warning.
219         * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
220         Remove compiler warning.
222         * src/preproc/refer/label.y: Remove compiler warning.
224         * src/preproc/pic/pic.y: Remove doubled token entries.
226 2007-09-19  Gaius Mulley  <gaius@glam.ac.uk>
228         * doc/groff.texinfo: Document new .O register and add cross
229         reference entries.
231         * NEWS: Updated.
233         * src/devices/grohtml/grohtml.man: Document new -V and -y options.
235         * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
236         (html_table:: emit_colspan, html_table::emit_td): New methods.
237         (html_table::emit_col):  Use html_table::emit_td.
238         (html_table::emit_table_header): Use html_table::emit_colspan if
239         dialect xhtml is specified.
240         (html_table::finish_row): Updated.
242         * src/devices/grohtml/html-table.h (html_table): Declare
243         emit_colspan, emit_td.
245         * src/devices/grohtml/html-text.cpp: Modified tags to comply with
246         xhtml if this dialect was requested.
248         * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
249         (html_text): Add new variable `dialect'.
251         * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
252         compliant.
253         (valid_flag, groff_sig, dialect): New global variables. 
254         (html_printer::handle_valid_flag, html_printer::do_math,
255         html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
256         html_printer::do_math, html_printer::handle_valid_flag): New
257         methods.
258         (html_printer::emit_line, html_printer::emit_raw,
259         html_printer::do_check_center, html_printer::write_title,
260         write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
261         html_printer::begin_page): Altered to be XHTML compliant.
262         (html_printer::write_header): Updated.
263         (html_printer::troff_tag): Call do_math.
264         (html_printer::insert_split_file, html_printer::do_file_components,
265         html_printer::write_navigation): Create XHTML file components if
266         necessary and also produces a groff signature if requested.
267         (~html_printer): Call writeHeadMetaStyle at appropriate places
268         depending upon html_dialect.
269         (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
270         (main): Added options -x, -V, and -y.
271         (usage): Updated.
273         * src/preproc/eqn/box.cpp: Create a distinction between
274         the MathML device and the XHTML device.
275         (do_text): Issue a newline at the end of the equation if XHTML was
276         specified.
277         (box::top_level): Prefix the output of an equation by the .MATHML
278         macro.
279         (output_string): Suppress \n if XHTML was specified.
281         * src/preproc/eqn/main.cpp (xhtml): New global flag.
282         (inline_equation): Skip leading spaces after inline equation for
283         XHTML device.
284         (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
286         * src/preproc/eqn/eqn.h (xhtml): New external flag.
288         * src/preproc/eqn/text.cpp (entity_table): Fix typo.
290         * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
291         (dialect, eqn_flag): New global variables.
292         (html_system): Improve debugging support.
293         (alterDeviceTo): Test for -Txhtml when altering device to the image
294         device and reset to -Txhtml.
295         (addZ): Renamed to...
296         (addArg): This.
297         Introducea a general parameter.
298         (print_args): New debugging function.
299         (char_buffer::run_output_filter): Use print_args and addArg rather
300         than addZ.
301         (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
302         line parameter as an argument to the html generation of text when
303         xhtml is needed.  Include -e on the command line if mathml is
304         required.
305         (scanArguments): Allow -e, -V, -y and -x options.
306         -V, -y are handled by the back end.  -e sets `eqn_flag'.
307         -x determines HTML dialect.
309         * src/roff/groff/groff.cpp (possible_command): New method
310         `clear_name'.
311         (main):  Set eflag if -e is present on command line.
312         Set is_xhtml if -Txhtml is present.
313         Pass `-x x' to the HTML pre and post processors.
314         Pass `-e' to the HTML pre processor if required.
315         Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
317         * src/roff/troff/input.cpp (init_input_requests): Introduce new
318         number register `\n[.O]'.
320         * tmac/s.tmac: (LP): Use .nop for semantic sugar.
321         (cov*ab-init) reformat.
322         (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
323         (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
324         <cite></cite> for the html device rather than generate images for
325         footnotes.
327         * tmac/troffrc-end: Define EQN-HTML-IMAGE,
328         EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
329         EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
330         EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
332         * tmac/www.tmac: (HTML<?p>): New macro.
333         (MATH<?p>): New macro.
334         (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
335         (www-emit-ltag): New macro.
336         (www-push-li): Updated.
337         (ULS): Ensure that tags are balanced in order by use of
338         www-emit-ltag.
339         (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
340         order.
341         (OLS, OLE, DLS, DLE): Ditto.
342         <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
343         respectively.
344         (www-li-ul, www-li-ol, www-li-dl): Updated.
345         (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
346         EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
347         MATHML): New macros.
349 2007-09-17  Werner LEMBERG  <wl@gnu.org>
351         * man/groff_font.man: Document `unicode' keyword.
352         * doc/groff.texinfo (DESC File Format): Synchronize with
353         groff_font.man.
355 2007-09-15  Werner LEMBERG  <wl@nu.org>
357         * man/groff.man: Document `\_'.
358         * doc/groff.texinfo: Ditto.
359         Remove references to `\@' which isn't a valid escape sequence in
360         groff.
363         * tmac/unicode.tmac: Add ` and '.
364         * tmac/html.tmac: Load unicode.tmac.
366 2007-09-14  Werner LEMBERG  <wl@gnu.org>
368         * tmac/unicode.tmac: Make `-' a pure input character by mapping it
369         to `hy'.
371         * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
373 2007-09-11  Werner LEMBERG  <wl@gnu.org>
375         * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
376         allocation.
378         * src/preproc/tbl/table.cpp (table::allocate): Initialize
379         `blockflag' array.
381 2007-09-10  Keith Marshall  <keith.d.marshall@ntlworld.com>
383         * README.MinGW: Add warnings about use of MSYS-RXVT, and about
384         defective GnuWin32 versions of netpbm/libpng.
386 2007-07-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
388         * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
389         possible recursion.
391 2007-07-11  Werner LEMBERG  <wl@gnu.org>
393         * gendef.sh: Add shebang.
395 2007-07-05  Werner LEMBERG  <wl@gnu.org>
397         * tmac/papersize.tmac: Fix dimensions of executive paper format. 
398         Reported by John Rupley <rupley@u.arizona.edu>.
400 2007-07-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
402         * tmac/s.tmac (cov*first-page-init): Emit error message if not in
403         top-level environment.
405 2007-06-12  Werner LEMBERG  <wl@gnu.org>
407         * src/devices/xditview/TODO, NEWS: Updated.
408         * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
409         Handle `GXditview-color'.
410         * src/devices/xditview/gxditview.man: Updated.
412         * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
413         * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
414         from `gnulib' git repository.
416         * configure.ac: Updated.
417         * configure: Regenerated (using autoconf 2.61).
419         * config.guess, config.sub: Updated from `config' CVS repository.
420         * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
421         repository.
423 2007-06-12  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
425         * src/devices/xditview/GXditview.ad: Split off color definitions
426         into...
427         * src/devices/xditview/GXditview-color.ad: This new file.
429 2007-06-08  Fabrice Ménard  <menard.fabrice@wanadoo.fr>.
431         * tmac/fr.tmac: Handle chapter system for `me'.
433 2007-06-05  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
435         * src/devices/xditview/xditview.c (main): Add support for
436         accelerators.
438         * src/devices/xditview/GXditview.ad: Updated.
439         Make widget more colourful.
441 2007-05-30  Werner LEMBERG <wl@gnu.org>
443         * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
444         Recommend `tbl' instead of `-column' lists for more complicated
445         cases.
447 2007-05-21  Werner LEMBERG  <wl@gnu.org>
449         * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
450         correctly.
452 2007-04-10  Werner LEMBERG  <wl@gnu.org>
454         In pic, make rounded boxes work with colors.  Reported by Urs Eggli
455         <Urs.Eggli@zuerich.ch>.
457         * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
458         (output): Add color parameter to `rounded_box' member function.
460         * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
462         * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
463         to `out->rounded_box'.
465 2007-04-09  Michail Vidiassov  <master@iaas.msu.ru>
467         * font/devps/generate/textmap: Add Greek letters and some more.
469         * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
470         `Omega', and `mu' to the ones from aglfn.txt.
472 2007-04-08  Keith Marshall  <keith.d.marshall@ntlworld.com>
474         * tmac/s.tmac (SN): Define unconditionally.
475         (SN-STYLE): New string; define.
477         * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
479 2007-03-22  Werner LEMBERG  <wl@gnu.org>
481         * tmac/pspic.tmac: Fix harmless numeric overflow warning.  Reported
482         by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
484 2007-03-20  Werner LEMBERG  <wl@gnu.org>
486         * tmac/trace.tmac (rn): Added.
487         (nr, ds, ds1, as, as1, substring): Restore escape character while
488         executing the macro.
489         (nr): Remove dead code.
491         * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
492         definitions to make them traceable.
494 2007-03-19  Werner LEMBERG  <wl@gnu.org>
496         * src/roff/troff/input.cpp (get_copy): Add third argument to control
497         whether \E shall be expanded.
498         (get_char_for_escape_name): Allow \E.
500 2007-03-15  Werner LEMBERG  <wl@gnu.org>
502         * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
503         par*define-font-macro, \[hooko]): Use \E to make it traceable.
505         (ref*field): Add argument to control the space between previous and
506         current argument.
507         Update all callers.
508         (ref*add-N): Fix handling of opening parenthesis.  Problem reported
509         by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
511 2007-03-14  Werner LEMBERG  <wl@gnu.org>
513         * tmac/trace.tmac (als): Added.
514         (de, de1, am, am1): Make traced macros aliased with .als work.
516 2007-02-25  Werner LEMBERG  <wl@gnu.org>
518         * src/devices/xditview/TODO: Add some more items.
520         * Makefile.comm (.man.n): Add @APPRESDIR@.
521         Sort entries.
523         * src/devices/xditview/gxditview.man: Document GXditview resource
524         file.
525         Other documentation enhancements based on a patch from Jörg.
527 2007-02-25  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
528             Joerg van den Hoff <j.van_den_hoff@fzd.de>
530         * src/devices/xditview/GXditview.ad: Make all keys work regardless
531         of the current mouse position.
533 2007-02-20  Werner LEMBERG  <wl@gnu.org>
535         * tmac/groff_man.man: Revised to improve visual appearance.
536         Reduce use of future tense.
538         * tmac/groff_trace.man: Revosed to improve visual appearance.
540 2007-02-19  Eric S. Raymond  <esr@snark.thyrsus.com>
542         Make groff.man viewer-portable.
544         * tmac/groff.man: Eliminate use of .eo/.ec.
545         (.REQ): Surround args 2 through N with quotes.  This will enable us
546         not to rely on the shift request, which is nonportable.
547         (ExecFF): Remove.  The code is simpler without it.
549 2007-02-18  Eric S. Raymond  <esr@snark.thyrsus.com>
551         * tmac/groff_www.man: Viewer-portability fixes.
553 2007-02-16  Eric S. Raymond  <esr@snark.thyrsus.com>
555         * man/groff.man: Remove some unneeded code and a no-longer-used
556         inclusion of the www macros.
558 2007-02-12  Werner LEMBERG  <wl@gnu.org>
560         * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
561         AVAILABLE_REG.
562         (table::compute_widths): Simplify.
564 2007-02-11  Werner LEMBERG  <wl@gnu.org>
566         * src/preproc/tbl/table.h: Don't include `stdbool.h'.
567         (table): Replace `bool' type with `char' for orthogonality.
568         Update all users.
570         * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
571         AVAILABLE_REG and COLCOUNT_REG.
572         (table::table): Fix order call of initializers.
573         (table::~table): Deallocate `blockflag'.
575 2007-02-09  Eric S. Raymond  <esr@snark.thyrsus.com>
577         A try at the new rule for block column allocation is now enabled by
578         the new `experimental' global option: The horizontal space up to the
579         right margin which is not used by columns without text blocks is
580         evenly distributed to the columns with text blocks.
582         It doesn't work right as yet; there appears to be some error in the
583         computation of `3avail', the available line length.  The purpose of
584         this patch is (a) to make experimenting with other formulas easy,
585         and (b) leave the infrastructure for flag `experimental' in place
586         for future experiments.  Do not document any behavior associated
587         with this flag!
589         * src/preproc/tbl/table.h: Include `stdbool.h'.
590         (table): Make `flags' public.
591         Add `count_block_columns' function.
592         Add `blockflag' array.
593         Add `EXPERIMENTAL' enumeration value.
595         * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
596         macros.
597         (table_entry): New member `parent' so that class and subclass
598         members can set a parent field.  Update all users.
599         (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
600         (block_entry::do_width): Set the parent's `blockflag'.
601         (table::allocate): Handle `blockflag'.
602         (table::count_block_columns): New function.
603         (compute_span_width): Adjust AVAILABLE_REG.
604         (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
606         * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
607         option.
609 2007-02-08  Zhao, Yu (William)  <yzhao2@alcatel-lucent.com>
611         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
612         line thickness.
614 2007-02-08  Werner LEMBERG  <wl@gnu.org>
616         * man/groff_out.man (offset): Make it work reliably.
618 2007-02-07  Eric S. Raymond  <esr@snark.thyrsus.com>
620         * man/groff_out.man: Simplify some font changes so \fP is less
621         likely to do something surprising.
622         
623         * man/groff_out.man: We can simplify the command macros still
624         further if we stop trying to hide structural requests inside them. 
625         Also, fix some instances of \} at start of line without a dot, and
626         make some font changes explicit in strings.
627         
628         * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
629         .cp.
630         
631         * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
632         calls and fix macros to do without them.  File should now be
633         viewer-portable.
634         
635         * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
636         micromotions that produce the same visual result and can be lifted
637         to XML-DocBook.
638         
639         * man/groff_out.man: Third step: Reduce Da-comand, fix a
640         call-sequence bug in the original.
641         
642         * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
643         move font-change escapes to portable form.
645         * man/groff_out.man: First step in macro simplification; eliminate
646         list1..n, simplify .offset and .index_offset so they no longer
647         require groff-specific features or eqn (instead, use troff
648         micromotions for subscripting).
650 2007-02-06  Eric S. Raymond  <esr@snark.thyrsus.com>
652         * src/preproc/eqn/eqn.man: Minor corrections.
654         * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
655         longer takes a second argument that is pasted to the end of the
656         generated text.  Instead, the end macro takes an argument that does
657         the same thing.
659         * man/ditroff.man, man/groff_diff.man, man/groff.man,
660         man/groff_out.man, man/groff_tmac.man, man/roff.man,
661         src/roff/groff/groff.man, src/roff/grog/grog.man,
662         tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
664         * src/roff/troff/troff.man: .SY and .YS are canned macros now,
665         so we can use them here.
666         
667 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
669         * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
670         By popular demand, make ... set three lower dots again
671         and introduce a new predefined macro 'cdots' to set
672         three centered dots.
674 2007-02-05  Werner LEMBERG  <wl@gnu.org>
676         * src/preproc/eqn/eqn.man: Revised.
678         * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
679         `const'.
680         (spacing_type): Fix typo.
681         (special_to_entity): Use `const'.
682         Remove unused variable.
683         * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
685 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
687         * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
688         which is a shame as the effect was cute.
690 2007-02-04  Eric S. Raymond  <esr@snark.thyrsus.com>
692         * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
693         rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
694         possible, remove preamble declarations and macros that are no
695         longer needed.  Conversion checked using the protocol described in
696         tmac/TESTING-HINTS.
698 2007-02-03  Werner LEMBERG  <wl@gnu.org>
700         * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
701         vertical space.
703 2007-02-03  Eric S. Raymond  <esr@snark.thyrsus.com>
705         * tmac/groff_man.man: Documented the extension macros, and 
706         added portability advice.
708         * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
711         Add support for MathML output to eqn.  
713         The strategy used is very simple and relies on the fact that the box
714         models of eqn and Presentation MathML differ in only trivial ways. 
715         It leaves the grammar and existing internal object structures
716         unchanged.  A new global, `output_format', is defined as an
717         enumerated type with values {troff, mathml}.  Most of the functions
718         and methods that emit actual output acquire a top-level conditional,
719         dispatching on this global, which has one arm for troff mode and one
720         for MathML mode.  In most cases the MathML arm is drastically
721         simpler.
723         (This strategy could be easily generalized to support other output
724         formats.  TeX is a possibility that leaps to mind.)
726         The only even moderately tricky changes are in the lexer.  Some of
727         the predefined macros used constructs like `up', `down', `fwd',
728         `back', and `vcenter' that have no equivalents in MathML.  I
729         attacked this problem in these ways:
731         1. I eliminated three uses of `back' to compose characters in favor
732            of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
733            that did not exist when these macros were written.  (This will be
734            a quality improvement for troff users.)
736         2. I eliminated one use of `vcenter' by using \\(md.  (Likewise...)
738         3. I then split the table of pre-definitions in three; one large
739            common table and two small troff-specific and MathML-specific
740            tables.  Use of troff-only operations (up, down, back, fwd,
741            vcenter) is now confined to the former.  The latter now uses
742            `size big' and drops out the explicit positioning operations,
743            counting on MathML processors to do them.
745         POTENTIAL TROUBLE SPOTS:
747         Here are notes for reviewers on places I'm not 100% sure I've done
748         the right thing:
750         * In the process of preparing the troff table, I translated three
751           definitions (dot_def, dotdot_def, and utilde def) that previously
752           used explicit \v escapes to use `up' and `down' instead.  I
753           modeled the new definitions on the way `vec' and `dyad' work, but
754           it's possible I got something subtle wrong.
756         * I'm not certain the MathML implementation of font_box::output() is
757           right, because I don't quite get what the switcheroo between
758           `current_roman_font' and `old_roman_font' is supposed to
759           accomplish.  It does seem to generare good MathML, though.
761         Finally, I made one purely cosmetic change in `text.cpp'; I replaced
762         with an enum some magic numbers for spacing types that I thought
763         were too ugly to live.
765         REMAINING ISSUES:
767         The entirety of eqn is translated when `-TMathML' is specified, 
768         with the following exceptions...
770         Limitations that cannot be fixed include non-support for special,
771         up/down/fwd/back, and vcenter.
773         Limitations that might be fixable include non-support for mark and
774         lineup.  I will investigate further, but if these can be implemented
775         at all it's going to be in a very complicated and nasty way.
777         The way character boxes are output means that each digit of a
778         multi-digit number gets its own <mn></mn> tag pair in the MathHTML. 
779         While this is not technically wrong for Presentation MathML, it is
780         ugly and inefficient.  Fixing this will require implementing a
781         little state machine in the `text.cpp' output method.
783         * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp, 
784         src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man, 
785         src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
786         src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp, 
787         src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp, 
788         src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
789         src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
790         src/preproc/eqn/eqn.man: MathML output mode.
792         * NEWS: Document it.
794 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
796         * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
797         and for cross-viewer portability.  Conversion checked 
798         using the protocol described in tmac/TESTING-HINTS.
800 2007-02-02  Werner LEMBERG  <wl@gnu.org>
802         * tmac/an-ext.tmac (ME): Don't use `\:'.
804         * src/roff/grog/grog.man: Further refinements and normalizations.
806 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
808         * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
809         cross-viewer portability.  Conversion checked using the protocol
810         described in tmac/TESTING-HINTS.
812 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
814         * tmac/TESTING-HINTS: Added.
816 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
818         Enable the support for Bell archaisms on .SC, so the `-r bell'
819         switch is no longer needed to format old AT&T papers like
820         the EQN user guide.
822         * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
824         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
826 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
828         Add some Bell labs extensions to the -ms macros.
830         * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
832         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
834 2007-01-30  Werner LEMBERG  <wl@gnu.org>
836         * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
837         (\n[mH]): New register (set if grohtml is used).
838         (\n[SY]): Rename to \n[mS].
839         (\n[a]): Rename to \n[mA].
840         (\n[i]): Rename to \n[mI].
841         (mU): New auxiliary input trap macro.
842         (UR, UE): Replace stub with real definition.
843         (URL): Remove.
844         (MT, ME): New macros.
845         (MTO): Remove.
846         (EX, EE): Don't insert vertical space.
847         Use a register to store (and restore) the current font.
849         * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
850         on patches from Eric Raymond.
851         Fix URL addresses.
853 2007-01-22  Gaius Mulley  <gaius@glam.ac.uk>
855         * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
857 2007-01-22  Werner LEMBERG  <wl@gnu.org>
859         * tmac/an-ext.tmac: Protect against being sourced twice.
860         (URL, EE): Use always two backslashes.
861         (MTO): New macro.
863 2007-01-16  Werner LEMBERG  <wl@gnu.org>
865         * tmac/an-ext.tmac: Remove code for grodvi.
866         (SY): Fix typos.
867         Don't insert empty line.
868         (URL, TQ): Fix typos.
870 2007-01-14  Werner LEMBERG  <wl@gnu.org>
872         * tmac/an-ext.tmac: New file, containing extension macros
873         for -man.  See discussion on the groff mailing list for
874         background information.
875         * tmac/an-old.tmac: Load an-ext.tmac.
876         Decorate .ds and as with comment escapes where appropriate.
877         * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
879 2007-01-05  Werner LEMBERG  <wl@gnu.org>
881         * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
883 2007-01-04  Gaius Mulley  <gaius@glam.ac.uk>
885         Make -me macros ready for grohtml.
887         * tmac/e.tmac: Load devtag.tmac.
888         (need_eo_h, need_eo_tl, need_tl): New registers.
889         (check_need_title, (x-html, )x-html, xp-html): New macros.
890         (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
891         b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
892         (bp): Rename to @b only if output device is not html.
894 2007-01-01  Werner LEMBERG  <wl@gnu.org>
896         * man/groff_font.man: Document empty lines.
898         * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
899         the very beginning of the output.
900         [!$opt_x]: Fix typo.
902         * font/devps/*: Regenerate font definition files.
904 2007-01-01  Werner LEMBERG  <wl@gnu.org>
906         * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
908         * font/devps/*: Regenerate font definition files.
910 2006-12-31  Werner LEMBERG  <wl@gnu.org>
912         * Makefile.in (oldfontdir): New variable.
913         (MDEFINES): Add $(oldfontdir).
914         (uninstall_dirs): Remove `current' link.
915         Remove $(oldfontdir).
917         * Makefile.comm (oldfontsubdir): New variable.
918         (install_dev): Install files collected in $(OLDDEVFILES) into
919         $(oldfontsubdir).
920         (uninstall_dev): Remove data in $(oldfontsubdir).
921         (.man.n): Handle @OLDFONTDIR@.
923         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
924         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
925         src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
926         Document GROFF_FONT_PATH.
928         * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
929         old font description files.
931         * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
932         variables.
934         * font/devps/old/*: New directory, holding the previous version
935         of the 35 Adobe core font description files.
937         * font/devps/*: Regenerated the 35 Adobe core fonts, using the
938         Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
940         * NEWS: Document font update.
942 2006-12-31  Werner LEMBERG  <wl@gnu.org>
944         * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
946         * Makefile.comm (fonts): New (empty) target.
947         * Makefile.in (TARGETS): Add `fonts'.
949         * MANIFEST: Add `chem'.
951         * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
952         can't be chained.
954 2006-12-26  Werner LEMBERG  <wl@gnu.org>
956         * src/preproc/grn/hdb.cpp: Include gprint.h later.  From NetBSD.
958 2006-12-19  Werner LEMBERG  <wl@gnu.org>
960         Add support for German.  For activation, simply use -mde or -mden
961         (for traditional and new orthgraphy, respectively) as the last
962         macro package.
964         * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
965         tmac/hyphenex.det: New files, partly taken from CTAN.
966         * LICENSES: Updated list of hyphenation patterns.
967         * man/groff_tmac.man: Mention de.tmac and den.tmac.
968         * NEWS: Updated.
970 2006-12-11  Werner LEMBERG  <wl@gnu.org>
972         Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
973         hosts).
975         * src/preproc/pic/lex.cpp (ARG1): Redefine.  Update all users.
976         (MAX_ARG): New macro.  Use it everywhere to replace hard-coded
977         limit of 9 arguments.
978         (process_body): Handle argument numbers with more than a single
979         digit.
980         (interpolate_macro_with_args): Protect against exceeding number of
981         arguments.
983         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
985 2006-12-10  Werner LEMBERG  <wl@gnu.org>
987         * Makefile.in (site.exp, docheck): Commented out.  Not working
988         currently.
989         (check): Just emit dummy message.
991 2006-12-08  Werner LEMBERG  <wl@gnu.org>
993         During installation, create soft link from <version> to `current' in
994         <datadir>/groff.
996         * Makefile.comm (install): Renamed to...
997         (do_install): This.
998         (prefix_must_exist): Removed.  Code moved to Makefile.in.
1000         * Makefile.in (TARGETS): Remove `install'.
1002         (install): New target which first creates the directory given by
1003         --prefix, then calling `make' to do the installation, and finishing
1004         with the creation of the soft link.
1006 2006-11-21  Werner LEMBERG  <wl@gnu.org>
1008         * doc/Makefile.sub (uninstall_sub): Fix names for info files.
1010 2006-11-18  Werner LEMBERG  <wl@gnu.org>
1012         * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
1013         information from Tom Van Vleck <thvv@multicians.org>.
1015 2006-11-16  Werner LEMBERG  <wl@gnu.org>
1017         * tmac/62bit.tmac: New macro package.
1018         * tmac/Makefile.sub (NORMALFILES): Add it.
1019         * NEWS: Document it.
1021         * tmac/trace.tmac: Protect against being loaded again.
1022         (nr): Always show result.
1024         * doc/groff.texinfo (Input Encodings): Document latin-5.
1026         * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
1028 2006-11-13  Werner LEMBERG  <wl@gnu.org>
1030         * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
1031         on negative trap positions.
1033 2006-11-10  Werner LEMBERG  <wl@gnu.org>
1035         * Makefile.comm (.man.n): Handle @DATASUBDIR@.
1037 2006-11-09  Werner LEMBERG  <wl@gnu.org>
1039         * INSTALL: Move information about external installation from
1040         INSTALL.gen into this file.
1041         Updated.
1043         * INSTALL.gen: Update to new version (from texinfo CVS).
1045 2006-11-09  Bernd Warken
1047         * INSTALL.gen: Extend the file by information on `external
1048         installation'.  Reorder the installation instruction as `normal
1049         installation'. 
1051 2006-11-08  Werner LEMBERG  <wl@gnu.org>
1053         * doc/Makefile.sub (install_data): Take care of proper paths while
1054         installing info files.  Bug reported by Bernd Warken.
1056 2006-11-06  Bernd Warken
1058         * src/roff/grog/grog.pl: Rewrite.
1059         - Call by `#! /usr/bin/env perl'.  That isn't replaced.
1060         - Rename usage() to version().
1061         - Use warnings.
1062         - For `use strict', start all global variables with an upper case
1063         character.  Use `my' for all variables.  Use several new variables.
1064         - Add option `-h'.
1065         - Add copyright to GPL and Emacs comment.
1066         - Handle several `-m*' options.
1067         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
1068         - Allow options after file names.
1069         - Allow only one `-' parameter (standard input).
1070         - Add option abbreviations.
1071         - Expand the usage information.
1072         - Add `chem'.
1073         - Add single quote "'" as additional first character and allow
1074         arbitrary space after the first character.
1076         * src/roff/grog/grog.sh: Rewrite.
1077         - Remove option `-e' of `sed'.
1078         - Allow file names with space characters.
1079         - Add option `-h'.
1080         - Add copyright to GPL.
1081         - Handle several `-m*' options.
1082         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
1083         - Allow options after file names.
1084         - Allow only one `-' parameter (standard input).
1085         - Add option abbreviations.
1086         - Expand the usage information.
1087         - Add `chem'.
1088         - Add single quote "'" as additional first character and allow
1089         arbitrary space after the first character.
1091         * src/roff/grog/Makefile.sub:
1092         - Add copyright to GPL.
1093         - Remove `grog:'.  Move `grog.old:' to `grog:' in order to have a
1094         fair chance to choose between the shell version and the Perl
1095         version of `grog'.  This is now again comparable to grog in groff
1096         version 1.10.
1098         * src/roff/grog/grog.man: Rewrite.
1099         - Move the license to GPL.
1100         - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
1101         - Take over some setup and macros from `groffer'.
1102         - Add information on options.
1104 2006-10-28  Werner LEMBERG  <wl@gnu.org>
1106         * tmac/trace.tmac: Improve tracing of `.nr'.
1107         Trace `.substring' also.
1109         * NEWS: Updated.
1111 2006-10-28  Bernd Warken
1113         * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
1114         of groff development site, fix fonts.
1116         * News: Add information on `chem' and `groffer'.
1118 2006-10-26  Bernd Warken
1120         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
1122 2006-10-26  Werner LEMBERG  <wl@gnu.org>
1124         Add `\$^' escape to handle the parameters to a macro as a string
1125         argument.
1127         * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
1129         * src/roff/troff/input.cpp (input_iterator, input_stack,
1130         macro_iterator): Add `space_follows_arg' member function.
1131         (macro_iterator::add_arg): Add parameter to set the `space_follows'
1132         flag.
1133         (arg_list): Add member `space_follows'.
1134         Update constructor and all callers.
1135         (decode_args): Store discarded double quotes.
1136         (interpolate_args): Handle DOUBLE_QUOTE.
1137         Add `\$^' escape.
1138         (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
1140         * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
1142         * docs/groff.texinfo (Parameters), man/groff.man,
1143         man/groff_diff.man, NEWS: Document it.
1145 2006-10-24  Bernd Warken
1147         * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
1149 2006-10-24  Werner LEMBERG  <wl@gnu.org>
1151         * tmac/groff_trace.man: Mention problem with `\\\\'.
1153 2006-10-23  Werner LEMBERG  <wl@gnu.org>
1155         * doc/groff.texinfo (Expressions): Improve documentation of `!'.
1157         * tmac/trace.tmac (return): Don't call `substring'.
1159 2006-09-10  Werner LEMBERG  <wl@gnu.org>
1161         * src/roff/troff/input.cpp (read_size): Revert previous change
1162         w.r.t. `\s-[-...]'.
1164         * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
1166 2006-09-09  Werner LEMBERG  <wl@gnu.org>
1168         * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
1169         behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
1170         point size to 1).  Reported by Gunnar Ritter.
1171         Also catch `\s-[-...]' and friends (causing an error).
1173 2006-09-06  Werner LEMBERG  <wl@gnu.org>
1175         * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
1176         space only if there is no previous space.  This fixes a bug which
1177         caused unwanted filling of the last line in a paragraph.  Thanks to
1178         Gunnar Ritter for an analysis.
1180 2006-09-03  Werner LEMBERG  <wl@gnu.org>
1182         * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
1183         Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
1185 2006-09-01  Nick Stoughton  <nick@msbit.com>
1186             Werner LEMBERG  <wl@gnu.org>
1188         Add a request `pev' to print environment information (similar to
1189         `pnr' and `ptr' to print number registers and traps).
1191         * src/roff/troff/env.h (environment): Add member function print_env.
1193         * src/roff/troff/env.cpp: (environment::print_env): New function to
1194         print a given environment state.
1195         (print_env): New global function to iterate through the
1196         environments, printing each one.
1197         (init_env_requests): Register `pev'.
1199         * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
1200         NEWS: Document `pev' request.
1202 2006-09-01  Bernd Warken
1204         * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
1205         `-I' to `dir'.
1207 2006-09-01  Werner LEMBERG  <wl@gnu.org>
1209         * src/preproc/pic/main.cpp (usage): Add missing options.
1211 2006-08-25  Werner LEMBERG  <wl@gnu.org>
1213         * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1214         in file names.
1216 2006-08-19  Werner LEMBERG  <wl@gnu.org>
1218         * configure: Regenerated.
1220 2006-08-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1222         * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1223         logic; it previously caused an `expr' syntax error, if no version of
1224         `makinfo' was present.  Also, remove dependency on `makeinfo' in VPATH
1225         builds, if an up to date `groff.info' is present in either `builddir'
1226         or in `srcdir'.
1228 2006-08-12  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1230         * font/devps/prologue.ps: Add BPhook.
1232         * src/devices/grops/grops.man: Document BPHook.
1233         Reorder some sections for better readability.
1235 2006-08-12  Werner LEMBERG  <wl@gnu.org>
1237         * src/include/lib.h (getlocale): New macro.
1238         (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1239         suggested by Bruno.
1241         * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1243 2006-08-11  Werner LEMBERG  <wl@gnu.org>
1245         Add new flag to .cflags to enable hyphenation without looking at
1246         hcode values.
1248         * src/roff/troff/charinfo.h (charinfo): New enumeration value
1249         `IGNORE_HCODES'.
1250         New member function `ignore_hcodes'.
1252         * src/roff/troff/node.cpp (break_char_node::add_self,
1253         node::add_char): Updated.
1255         * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1257 2006-08-09  Werner LEMBERG  <wl@gnu.org>
1259         Support composite Unicode characters again.  Reported by Colin.
1261         * font/devhtml/R.proto: Renamed to...
1262         * font/devhtml/R.in: This.
1264         * font/devutf8/R.proto: Renamed to...
1265         * font/devutf8/R.in: This.
1266         Add `charset' line.
1268         * font/make-Rproto: New script.
1269         * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1271 2006-07-26  Werner LEMBERG  <wl@gnu.org>
1273         * README: Fix description of CVS access.  Reported by Joachim.
1275 2006-07-11  Werner LEMBERG  <wl@gnu.org>
1277         Add a request `.fzoom' and a number register `.zoom' to magnify
1278         fonts.
1280         * src/include/font.h (font): Add member variable `zoom'.
1281         Add member functions `set_zoom' and `get_zoom'.
1282         Remove `static' attribute from `scale' member function.
1284         * src/libs/libgroff/font.cpp (font::font): Updated.
1285         (scale_round): New version with three parameters to handle zoom
1286         factor.
1287         (font::scale, font::get_width): Handle zoom factor.
1288         (font::set_zoom, font::get_zoom): New functions.
1289         (font::load): Handle `zoom' while computing `space_width'.
1291         * src/roff/troff/env.h: Declare `env_get_zoom'.
1292         (environment): Add member function `get_zoom'.
1294         * src/roff/troff/env.cpp (environment::get_zoom): New function.
1295         (init_env_requests): Initialize `.zoom' register.
1297         * src/roff/troff/node.cpp (font_info): New member functions
1298         `set_zoom' and `get_zoom'.
1299         (tfont): New member function `get_zoom'.
1300         (env_get_zoom): New function.
1301         (troff_output_file::set_font): Handle zoom factor.
1302         (font_zoom_request): New function.
1303         (init_node_requests): Initialize `fzoom' request.
1305         * docs/groff.texinfo (Changing Fonts), man/groff.man,
1306         man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1307         register.
1309         * src/roff/troff/TODO: Updated.
1311 2006-07-10  Werner LEMBERG  <wl@gnu.org>
1313         * doc/groff.texinfo (Drawing Requests): Improve documentation of
1314         \D'P ...'.
1316 2006-07-02  Werner LEMBERG  <wl@gnu.org>
1318         * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1320 2006-07-01  Werner LEMBERG  <wl@gnu.org>
1322         * tmac/pspic.tmac: Make .PSPIC work for all devices.
1323         Print image file name for devices which don't support PS image
1324         inclusion.
1325         Handle multiple inclusions.
1326         Add lots of comments.
1328         * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1329         pspic.tmac.
1331         * tmac/troffrc: Load pspic.tmac.
1333         * man/groff_tmac.man: Update .PSPIC documentation.
1335         * NEWS: Updated.
1337 2006-06-29  Werner LEMBERG  <wl@gnu.org>
1339         * src/roff/troff/input.cpp (interpolate_macro):
1340         s/probably/possibly/, as suggested by Keith.
1342 2006-06-28  Werner LEMBERG  <wl@gnu.org>
1344         Add support for \D'p...' to grotty.
1346         * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1347         its code to...
1348         (tty_printer::line): This function.
1349         (tty_printer::draw): Rewritten; just call either draw_line or
1350         draw_polygon.
1351         (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1353         * src/devices/grotty/grotty.man, NEWS: Document it.
1355 2006-06-27  Werner LEMBERG  <wl@gnu.org>
1357         * src/preproc/refer/command.h (have_bibliography): New variable
1358         declaration.
1360         * src/preproc/refer/command.cpp (bibliography_command): Set
1361         `have_bibliography'.
1363         * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1364         (output_references): Emit warning only if `have_bibliography' is
1365         set.
1367 2006-06-15  Michail Vidiassov  <master@iaas.msu.ru>
1369         * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1370         * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1371         and zapfdr.afm.
1373 2006-06-15  Werner LEMBERG  <wl@gnu.org>
1375         * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1376         macro (as suggested by Tadziu Hoffmann).
1378 2006-06-12  Werner LEMBERG  <wl@gnu.org>
1380         * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1381         macro (as suggested by Tadziu Hoffmann).
1383 2006-06-05  Werner LEMBERG  <wl@gnu.org>
1385         * tmac/strip.sed: Strip `\#' also.
1387         * doc/groff.texinfo (Operators in Conditionals): Document usage of
1388         \? for string comparison.
1390 2006-06-04  Werner LEMBERG  <wl@gnu.org>
1392         * doc/groff.texinfo: Add more index entries for copy-in mode.
1393         (Changing Fonts) <.ft>: Document that a font definition file must
1394         not be called `DESC'.
1396 2006-05-31  Werner LEMBERG  <wl@gnu.org>
1398         * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1399         here.
1401         * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1402         (PROCESSEDEXAMPLEFILES): Here.
1404 2006-05-30  Werner LEMBERG  <wl@gnu.org>
1406         * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1407         `DESC'.
1408         Reduce number of false positives for `.if F ...' conditionals.
1409         Improve warning messages.
1411 2006-05-29  Werner LEMBERG  <wl@gnu.org>
1413         * tmac/Makefile.sub: Add copyright notice.
1414         (NORMALFILES): Add man.tmac and ms.tmac.
1415         (SPECIALFILES): Remove man.tmac and ms.tmac.
1416         (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1417         (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1418         specially.
1419         (stamp-sed): Don't handle man.tmac and ms.tmac.
1420         Remove obsolete components in sed's regexp.
1422         * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1424         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1426 2006-05-28  Werner LEMBERG  <wl@gnu.org>
1428         * doc/groff.texinfo (History): Correct death circumstances of Joe
1429         Ossanna.
1431 2006-05-27  Werner LEMBERG  <wl@gnu.org>
1433         * tmac/an-old.tmac (an-do-tag): Simplify.
1435 2006-05-26  Werner LEMBERG  <wl@gnu.org>
1437         * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1438         (an-header, an-p-footer): Use named environment.
1440         * src/roff/troff/env.cpp (environment::copy): Copy margin character
1441         node.
1443 2006-05-21  Werner LEMBERG  <wl@gnu.org>
1445         * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1446         omissions.
1448 2006-05-11  Keith Marshall  <keith.d.marshall@ntlworld.com>
1450         * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1452 2006-05-10  Keith Marshall  <keith.d.marshall@ntlworld.com>
1454         * src/roff/groff/groff.man: Update copyright notice.
1455         Improved wording to describe effect of `-Z' option.
1457 2006-05-06  Werner LEMBERG  <wl@gnu.org>
1459         * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1460         Normalize handling of `"' in arguments.
1461         (PIMG): Remove debug message.
1462         Simplify code.
1464 2006-05-05  Werner LEMBERG  <wl@gnu.org>
1466         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1467         swallow character immediately after `\[...]'.
1468         Simplify code.
1470 2006-05-02  Gaius Mulley  <gaius@glam.ac.uk>
1472         * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1474 2006-05-02  Larry Kollar  <kollar@alltel.net>
1476         * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1477         option is missing.
1479 2006-04-30  Michail Vidiassov  <master@iaas.msu.ru>
1481         * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1482         information as a comment in output.
1483         * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1485 2006-04-26  Werner LEMBERG  <wl@gnu.org>
1487         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1488         Handle current_paragraph only if it is non-NULL.
1490         * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1491         <'F'>): Use `get_extended_arg' to behave as documented.  Reported by
1492         Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1495         Surround the (pseudo) file name for the .pso request with `<' and
1496         `>'.
1498         * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1499         second parameter to `really_put_filename' and `put_filename'.
1500         (troff_output_file::really_put_filename): Emit `<' and `>' around
1501         filename if second argument is set.
1502         * src/roff/troff/node.h: Updated.
1504         * src/roff/troff/input.cpp (file_iterator::file_iterator,
1505         file_iterator::set_location): Update to changes in node.cpp.
1507 2006-04-25  Tetsurou Okazaki  <okazaki@FreeBSD.org>
1509         * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1510         preprocessor expression (I18N -> HAVE_ICONV).
1511         (main): Fix handling of option `-h'.
1512         Fix conditional preprocessor expression.
1514 2006-04-04  Werner LEMBERG  <wl@gnu.org>
1516         Implement new number register `.br' which is set to 1 if a macro has
1517         been called as .foo and to 0 if called as 'bar.  This is useful for
1518         -mtrace so that requests can be reliably traced too.
1520         * src/roff/troff/input.cpp (input_iterator): Add virtual function
1521         `get_break_flag'.
1522         (macro_iterator): Add `with_break' member and `get_break_flag'
1523         function.
1524         Update constructors.
1525         (input_stack): Add function `get_break_flag'.
1526         (break_flag_reg): New number register class.
1527         (input_init_requests): Register `.br'.
1529         * src/roff/troff/TODO: Updated.
1531         * tmac/trace.tmac: s/!!sp/!!!sp/.
1532         Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
1534         * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
1535         NEWS: Document it.
1537 2006-03-29  Werner LEMBERG  <wl@gnu.org>
1539         * src/devices/grops/ps.cpp: s/must not/should not/ in warning
1540         messages where appropriate.
1542 2006-03-28  Werner LEMBERG  <wl@gnu.org>
1544         * configure.ac: Call AC_PROG_EGREP.
1545         * configure: Regenerated.
1547         * Makefile.in (EGREP): New variable.
1548         (MDEFINES): Add $(EGREP).
1550         * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
1551         (bug reported by Robert Goulding <Goulding.2@nd.edu>).
1552         Use @EGREP@.
1554         * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
1556 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1558         Add two requests `.device' and `.devicem' which are equivalent to
1559         `\X' and `\Y', respectively.
1561         * src/roff/troff/input.cpp (device_request, device_macro_request):
1562         New functions.
1563         (init_input_requests): Register them.
1565         * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
1566         man/groff.man, NEWS: Document them.
1568 2006-03-27  Gaius Mulley  <gaius@glam.ac.uk>
1570         * src/roff/troff/input.cpp (encode_char): Emit special characters
1571         for -Thtml as `\[...]'.
1572         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
1574         * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
1576 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1578         * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
1579         files.
1581 2006-03-26  Werner LEMBERG  <wl@gnu.org>
1583         * doc/groff.texinfo (Writing Macros): More documentation on
1584         end-of-macro symbol of `.de'.
1585         (Diversions): Minor addition to `.di' description.
1587         * src/devices/grops/grops.man: Some clarifications regarding
1588         insertion of PostScript snippets.
1590 2006-03-25  Michail Vidiassov  <master@iaas.msu.ru>
1592         Add rules to generate `symbolsl.afm'.
1594         * font/devps/generate/zapfdr.sed,
1595         font/devps/generate/symbolsl.awk: New files.
1597         * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
1598         variables.
1599         (SS, clean): Updated.
1600         (freeeuro.afm): Use $(srcdir).
1601         (symbolsl.afm): New rule.
1602         (zapfdr.afm): Use zapfdr.sed.
1604 2006-03-22  Dwight Aplevich  <aplevich@uwaterloo.ca>
1606         * src/preproc/pic/pic.y (expr <INT>): Fix code.
1608 2006-03-22  Jörgen Grahn <jgrahn@algonet.se>
1610         * tmac/sv.tmac: Add missing translations and activate support for
1611         other macro packages.
1613 2006-03-21  Francis GUDIN  <fgudin@nerim.net>
1615         * tmac/doc-syms (Dx): New macro to identify DragonFly.
1616         (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
1617         doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
1618         strings.
1619         (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
1620         doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
1621         doc-operating-system-DragonFly-*): New operating system strings.
1623         * tmac/groff_mdoc.man, NEWS: Document `Dx'.
1625 2006-03-21  Werner LEMBERG  <wl@gnu.org>
1627         * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
1628         both DWB pic and dpic, make
1630           right;
1631           line then down;
1633         equal to
1635           right;
1636           line right then down;
1638         instead of
1640           right;
1641           line 0 then down;
1643         * doc/pic.ms: Document this.
1645 2006-03-20  Werner LEMBERG  <wl@gnu.org>
1647         * doc/pic.ms: With permission of Eric Raymond, put it under the
1648         GPL.
1650         * NEWS: Updated.
1652 2006-03-19  Werner LEMBERG  <wl@gnu.org>
1654         * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
1656         * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
1657         attribute in combination with `with'.  Bug reported by Jennifer
1658         Sayers <jenjen@mail.usyd.edu.au>.
1660 2006-03-19  Miklos Somogyi  <msom@netspace.net.au>
1662         * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
1663         `.sp'.
1665 2006-03-18  Werner LEMBERG  <wl@gnu.org>
1667         * LICENSE: Renamed to...
1668         * LICENSES: This.  Collect all licensing information in this file.
1669         * tmac/README, src/libs/snprintf/README: Removed.
1671         * src/devices/grops/grops.man: Add section how to install fonts.
1673         * src/utils/xtotroff/xtotroff.c: Add GPL.
1675 2006-03-17  Werner LEMBERG  <wl@gnu.org>
1677         * Makefile.comm (.y.cpp): Fix #line arguments in output.
1679 2006-03-13  Werner LEMBERG  <wl@gnu.org>
1681         * src/preproc/tbl/tbl.man: Mention default length of text blocks.
1683         * tmac/doc-common (Os): Add more Darwin versions.
1684         * tmac/groff_mdoc.man: Document them.
1686         * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
1687         works with \N'...' also.
1688         * man/groff_diff.man: Ditto.  Remove use of future tense where
1689         possible.
1691 2006-03-12  Michail Vidiassov  <master@iaas.msu.ru>
1693         * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
1694         font/devps/zapfdr.ps: Add `%%EndComments' line.
1696 2006-03-10  Larry Kollar  <kollar@alltel.net>
1698         * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
1700 2006-03-10  Werner LEMBERG  <wl@gnu.org>
1702         * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
1703         ps_printer::do_mdef): Overlong lines now cause a warning message,
1704         not an error.
1706 2006-03-09  Werner LEMBERG  <wl@gnu.org>
1708         * font/devps/generate/make-zapfdr: New script for generating
1709         `zapfdr.ps'.
1711 2006-03-08  Werner LEMBERG  <wl@gnu.org>
1713         * doc/groff.css (pre): Fix `background-color' value.
1715 2006-03-04  Larry Kollar  <kollar@alltel.net>
1717         * tmac/groff_ms.man: Document PT, HD, and BT.
1719 2006-03-04  Werner LEMBERG  <wl@gnu.org>
1721         * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
1722         for single-letter glyph names.
1724 2006-03-02  Werner LEMBERG  <wl@gnu.org>
1726         * tmac/sv.tmac: New file; currently holding only the Swedish strings
1727         for -mm.
1728         * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
1729         from CTAN.
1730         * tmac/README: Updated.
1732 2006-02-27  Werner LEMBERG  <wl@gnu.org>
1734         * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
1735         * tmac/fr.tmac: Add French translations.
1737         * tmac/composite.tmac: Add entry for `:'.
1739 2006-02-26  Werner LEMBERG  <wl@gnu.org>
1741         * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
1742         (CLEANADD): Use it.
1743         (install_html, uninstall_sub): Updated.
1745 2006-02-26  Bruno Haible  <bruno@clisp.org>
1747         Introduce Unicode fonts.
1749         * font/devhtml/DESC.proto: Mark as unicode.
1750         * font/devhtml/R.proto: Remove all charset entries that are already
1751         in glyphuni.cpp.
1752         * font/devutf8/DESC.proto: Mark as unicode.
1753         * font/devutf8/R.proto: Remove all charset entries.
1754         * src/include/font.h (font): New static field `is_unicode'.
1755         Change order of fields.
1756         * src/libs/libgroff/font.cpp: Include unicode.h.
1757         (font::font): Update for changed order of fields.
1758         (font::contains, font::get_width, font::get_height, font::get_depth,
1759         font::get_italic_correction, font::get_left_italic_correction,
1760         font::get_subscript_correction, font::get_character_type,
1761         font::get_code, font::get_special_device_encoding): Handle both the
1762         explicitly enumerated glyphs and use general code for Unicode fonts.
1763         (font::load): Make the charset section optional when the font is
1764         declared unicode.
1765         (font::load_desc): Recognize the `unicode' attribute.
1766         * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
1768 2006-02-26  Claudio Fontana  <claudio@gnu.org>
1770         * Makefile.in: Add comment about DESTDIR.
1772         * Makefile.sub: Add DESTDIR to install and uninstall targets
1773         to support staged installations.
1774         * Makefile.comm: Likewise.
1775         * doc/Makefile.sub: Likewise.
1776         * contrib/eqn2graph/Makefile.sub: Likewise.
1777         * contrib/grap2graph/Makefile.sub: Likewise.
1778         * contrib/pic2graph/Makefile.sub: Likewise.
1779         * src/devices/xditview/Makefile.sub: Likewise.
1780         * src/preproc/eqn/Makefile.sub: Likewise.
1781         * src/roff/grog/Makefile.sub: Likewise.
1782         * src/roff/nroff/Makefile.sub: Likewise.
1783         * src/utils/afmtodit/Makefile.sub: Likewise.
1784         * src/utils/indxbib/Makefile.sub: Likewise.
1785         * tmac/Makefile.sub: Likewise.
1787 2006-02-24  Werner LEMBERG  <wl@gnu.org>
1789         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1790         for \-.
1791         Remove commented out entries for \' and \` (there are no such glyph
1792         names).
1794         * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1795         commented out entries for \' and \`.
1798         * */*: s/legal/valid/ where appropriate.
1800 2006-06-23  Werner LEMBERG  <wl@gnu.org>
1802         * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
1803         and \` entries.
1805 2006-02-22  Werner LEMBERG  <wl@gnu.org>
1807         Remove all remaining traces from the `shc' glyph.
1809         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1810         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1811         entry for `shc'.
1813         * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
1814         entry with unnamed glyph.
1816         * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
1818         * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
1819         specially.
1821 2006-02-22  Bruno Haible  <bruno@clisp.org>
1823         Concretize the `glyph' datatype.
1825         * src/include/font.h (glyph): Remove class.
1826         (glyph): Renamed from struct `glyphinfo'.
1827         (glyph_to_index): New inline function.
1828         (glyph_to_name): Make extern, not inline.
1829         (glyph_to_number): Update.
1830         (font): Use `glyph *' instead of `glyph'.
1832         * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
1833         `glyph'.  Make `name' field public.
1834         (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
1835         instead of `glyph'.
1836         (glyph_to_name): Renamed from `glyph::glyph_name'.
1838         * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
1839         Use `glyph *' instead of `glyph'.
1841         * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
1842         `glyph *' instead of `glyph'.
1843         (glyph_to_name): Renamed from `glyph::glyph_name'.
1845         * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
1846         and `glyph_to_index' instead of `glyph::glyph_index'.
1848         * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
1849         * src/libs/libdriver/printer.cpp: Likewise.
1850         * src/devices/grodvi/dvi.cpp: Likewise.
1851         * src/devices/grohtml/post-html.cpp: Likewise.
1852         * src/devices/grolbp/lbp.cpp: Likewise.
1853         * src/devices/grolj4/lj4.cpp: Likewise.
1854         * src/devices/grops/ps.cpp: Likewise.
1855         * src/devices/grotty/tty.cpp: Likewise.
1857 2006-02-22  Werner LEMBERG  <wl@gnu.org>
1859         * font/devdvi/generate/tc.map: Add `sr' glyph.
1860         * font/devdvi/*TC: Regenerated.
1862         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1863         for `sqrt'.
1865 2006-02-21  Werner LEMBERG  <wl@gnu.org>
1867         * man/groff_char.man: Explain `***' marker.
1869 2006-02-17  Bruno Haible  <bruno@clisp.org>
1871         * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
1872         methods and fields from *_index to *_glyph.
1873         (character_indexer::named_char_glyph): Test for `charNNN' name
1874         here...
1875         (name_to_glyph): ... not here.
1877 2006-02-17  Bruno Haible  <bruno@clisp.org>
1879         * src/include/font.h (name_to_glyph): Renamed from
1880         font::name_to_index.
1881         (number_to_glyph): Renamed from font::number_to_index.
1882         (glyph_to_name): Renamed from font::index_to_name.
1883         (glyph_to_number): Renamed from font::index_to_number.
1884         * src/libs/libgroff/nametoindex.cpp: Likewise.
1885         * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
1886         charinfo::get_index.
1888         * src/roff/troff/input.cpp: All callers changed.
1889         * src/roff/troff/node.cpp: Likewise.
1890         * src/libs/libgroff/font.cpp: Likewise.
1891         * src/devices/grops/ps.cpp: Likewise.
1892         * src/devices/grohtml/post-html.cpp: Likewise.
1893         * src/libs/libdriver/printer.cpp: Likewise.
1895 2006-02-17  Werner LEMBERG  <wl@gnu.org>
1897         * src/include/ptable.h, src/include/itable.h
1898         (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
1899         of external symbol `next_ptable_size' (used by both header files).
1901 2006-02-15  Bruno Haible  <bruno@clisp.org>
1903         * src/include/font.h (glyphinfo): New class.
1904         (glyph): Change internal representation.
1905         Change constructor signature.
1906         New method glyph::glyph_number().
1907         (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
1908         glyph::operator==, glyph::operator!=): Update.
1909         (font::index_to_name, font::index_to_number): New functions.
1911         * src/include/itable.h: New file, based on src/include/ptable.h.
1913         * src/libs/libgroff/nametoindex.cpp: Include itable.h.
1914         (class charinfo): New class.
1915         (class character_indexer): Change table result type from `int' to
1916         `class charinfo'.
1917         Add table with integer key.
1918         (character_indexer::character_indexer): Update.
1919         (character_indexer::ascii_char_index): Update.
1920         (character_indexer::numbered_char_index): Use NULL as name, not a
1921         string starting with a space.
1922         (character_indexer::named_char_index): Update.
1923         (font::number_to_index, font::name_to_index): Remove no-op cast.
1924         (glyph::glyph_name): New method.
1925         * src/roff/troff/charinfo.h (class charinfo): Inherit from class
1926         glyphinfo.
1927         (NUMBERED): Remove flag bit.
1928         (charinfo::numbered, charinfo::get_index): Update.
1930         * src/roff/troff/input.cpp (charinfo::charinfo): Update.
1931         (charinfo::set_number, charinfo::get_number): Update.
1932         (glyph::glyph_name): New method.
1934 2006-02-15  Werner LEMBERG  <wl@gnu.org>
1936         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
1937         entries for `>>', `<<', `*f', and `+f'.  Reported by Bruno.
1939 2006-02-13  Werner LEMBERG  <wl@gnu.org>
1941         * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
1942         dvips.
1944 2006-02-11  Werner LEMBERG  <wl@gnu.org>
1946         * src/include/font.h: s/glyph_t/glyph/.
1947         Update all callers.
1949         * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
1950         s/output_character_t/output_character/.
1952 2006-02-11  Bruno Haible  <bruno@clisp.org>
1954         New accessor method glyph_t::glyph_name().
1956         * src/include/ptable.h (declare_ptable): Add a return value to the
1957         `define' method, and declare a `lookupassoc' method.
1958         (implement_ptable): Return the stored key in `define'.  Implement
1959         lookupassoc.
1960         * src/include/font.h (glyph_t): Add `name' field.  Add an argument
1961         to the constructor.
1962         (glyph_t::glyph_name): New method.
1964         * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
1965         return type of methods and field member type to glyph_t.
1966         (character_indexer::character_indexer): Update.
1967         (character_indexer::ascii_char_index): Allocate a name for the
1968         glyph.
1969         Return a glyph_t with name.
1970         (character_indexer::numbered_char_index): Return a glyph_t without a
1971         name.
1972         (character_indexer::named_char_index): Return a glyph_t with a name.
1973         (font::number_to_index, font::name_to_index): Update.
1975         * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
1976         the glyph's name.
1978 2006-02-11  Bruno Haible  <bruno@clisp.org>
1980         * src/devices/grotty/tty.cpp (output_character_t): New type.
1981         (tty_printer::make_bold, tty_printer::add_char,
1982         tty_printer::put_char): Change argument type to output_character_t.
1983         (crossings): Change element type to output_character_t.
1985 2006-02-11  Bruno Haible  <bruno@clisp.org>
1987         Make the glyph data type abstract.
1989         * src/include/font.h (glyph_t): New class.
1990         (name_to_index, number_to_index): Change return type to glyph_t.
1991         (font::contains, font::get_width, font::get_height, font::get_depth,
1992         font::get_character_type, font::get_kern, font::get_skew,
1993         font::get_italic_correction, font::get_left_italic_correction,
1994         font::get_subscript_correction, font::get_code,
1995         font::get_special_device_encoding, font::add_entry,
1996         font::copy_entry, font::add_kern, font::hash_kern): Change argument
1997         type to glyph_t.
1999         * src/libs/libgroff/font.cpp (font_kern_list): Change members
2000         type and constructor argument types to glyph_t.
2001         (font::contains, font::get_width, font::get_height, font::get_depth,
2002         font::get_character_type, font::get_kern, font::get_skew,
2003         font::get_italic_correction, font::get_left_italic_correction,
2004         font::get_subscript_correction, font::get_code,
2005         font::get_special_device_encoding, font::add_entry,
2006         font::copy_entry, font::add_kern, font::hash_kern): Change argument
2007         type to glyph_t.
2008         (font::load): Use glyph_t variables.
2010         * src/libs/libgroff/nametoindex.cpp (name_to_index,
2011         number_to_index): Change return type to glyph_t.
2013         * src/roff/troff/charinfo.h (charinfo::index): Change type to
2014         glyph_t.
2015         (charinfo::get_index): Change return type to glyph_t.
2017         * src/roff/troff/env.cpp: Include font.h.
2019         * src/roff/troff/node.cpp: Include font.h before charinfo.h.
2021         * src/roff/troff/input.cpp: Include font.h before charinfo.h.
2022         (charinfo::charinfo): Update.
2023         (name_to_index, number_to_index): Change return type to glyph_t.
2025         * src/include/printer.h (printer::set_char_and_width): Change return
2026         type to glyph_t.
2028         * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
2029         Change return type to glyph_t.
2031         * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
2032         argument type to glyph_t.
2034         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
2035         (html_printer::space_glyph): Renamed from space_char_index.
2036         (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
2037         html_printer::overstrike, html_printer::set_char): Change argument
2038         type to glyph_t.
2039         (html_printer::set_char_and_width): Change return type to glyph_t.
2041         * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
2042         argument type to glyph_t.
2044         * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
2045         argument type to glyph_t.
2047         * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
2048         space_char_index.
2049         (ps_printer::set_subencoding, ps_printer::set_char): Change argument
2050         type to glyph_t.
2052         * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
2053         argument type to glyph_t.
2055 2006-02-11  Bruno Haible  <bruno@clisp.org>
2057         * src/roff/troff/input.cpp (font::name_to_index): Never return a
2058         negative value.
2060         * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
2061         font::name_to_index.
2063 2006-02-10  Werner LEMBERG  <wl@gnu.org>
2065         * doc/groff.texinfo (Assigning Formats): Number registers are always
2066         interpolated.
2067         Apply some rephrasing, contributed by Michael Burt.
2069 2006-02-07  Werner LEMBERG  <wl@gnu.org>
2071         * tmac/fr.tmac <ms>: Set `HY' register.
2073 2006-02-07  Werner LEMBERG  <wl@gnu.org>
2075         Add framework for simple adaptation of the main macro packages (mm,
2076         me, ms, mom) to different locales.  In particular, add support for
2077         French.  For activation, simply use `-mfr' as the last macro
2078         package.  This feature has been contributed by Fabrice Ménard
2079         <menard.fabrice@wanadoo.fr>.
2081         * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
2082         New files.
2083         * tmac/README: Mention hyphen.fr.
2084         * man/groff_tmac.man: Mention fr.tmac.
2085         * NEWS: Updated.
2087 2006-01-27  Werner LEMBERG  <wl@gnu.org>
2089         * man/groff_font.man: Updated documentation of `entity_name' field.
2090         Avoid future tense.
2092 2006-01-27  Bruno Haible  <bruno@clisp.org>
2094         * font/devhtml/R.proto: Remove the entity names from the font's
2095         special_encoding_encoding column.
2096         * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
2097         handling the entity names here.
2098         (get_html_translation): Use it.  Change return type to `const
2099         char *'.
2100         (page::add_and_encode): Update, removing a useless cast.
2102 2006-01-26  Werner LEMBERG  <wl@gnu.org>
2104         This change is based on a patch by Bruno Haible <bruno@clisp.org>.
2106         * src/include/device.h: Add comments.
2107         * src/include/font.h: Add comments.
2108         * src/include/unicode.h: Likewise.
2109         * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
2111 2006-01-26  Keith Marshall  <keith.d.marshall@ntlworld.com>
2113         Suppress `.st' request emission by `grn'.
2115         * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
2116         (conv): Use it.
2118 2006-01-22  Werner LEMBERG  <wl@gnu.org>
2120         * install-sh: New version; taken from texinfo CVS.
2122 2006-01-21  Werner LEMBERG  <wl@gnu.org>
2124         * src/preproc/preconv/preconv.cpp (main): Set program_name.  Bug
2125         reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
2127 2006-01-19  Bruno Haible  <bruno@clisp.org>
2129         Let `make -k install' install more files.
2131         * Makefile.in (MAKE_K_FLAG): New variable.  Use it everywhere where
2132         $(MAKE) and $(MDEFINES) are used.
2133         (CPROGDIRS): Remove $(XPROGDIRS).  Treat $(XPROGDIRS) like
2134         $(CPROGDIRS) everywhere.
2135         ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
2136         on $(XPROGDIRS).
2137         ($(OTHERDIRS)): Likewise.
2140         * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
2141         failure test for font::name_to_index -- it can never fail.
2143 2006-01-19  Werner LEMBERG  <wl@gnu.org>
2145         * src/devices/grops/grops.man: Fix section on creating EPS files.
2146         Don't use future time in manual.
2147         Other minor fixes.
2149 2006-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2151         * tmac/www.tmac: New macro LINKSTYLE which allows users to set
2152         various typographical URL attributes for non-HTML devices.
2154         * tmac/groff_www.man: Document LINKSTYLE.
2156 2006-01-11  Werner LEMBERG  <wl@gnu.org>
2158         * configure.ac: Test for getc_unlocked (needed for localcharset).
2159         * configure, src/include/config.hin: Regenerated.
2161         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
2162         ENABLE_RELOCATABLE.
2164         * src/libs/libgroff/relocatable.h: New dummy header file for
2165         localcharset.c.
2167         * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
2168         gnulib version.
2170 2006-01-10  Bruno Haible  <bruno@clisp.org>
2172         Work around unportability of nl_langinfo(CODESET).
2174         * m4/glibc21.m4: New file, from gnulib.
2175         * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
2176         * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
2177         * Makefile.in (HOST, GLIBC21): New variables.
2178         (MDEFINES): Pass them to subdirectories.
2179         * src/include/relocate.h (relocatep): Define with C linkage.
2180         * src/include/localcharset.h: New file, from gnulib.
2181         * src/libs/libgroff/localcharset.c: New file, from gnulib with a
2182         modification for relocate().
2183         * src/libs/libgroff/config.charset: New file, from gnulib.
2184         * src/libs/libgroff/ref-add.sin: New file, from gnulib.
2185         * src/libs/libgroff/ref-del.sin: New file, from gnulib.
2186         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
2187         (OBJS): Add localcharset.o.
2188         (CSRCS): Add localcharset.c.
2189         (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
2190         (charset.alias): New rule.
2191         (PACKAGE): New variable.
2192         (ref-add.sed, ref-del.sed): New rules.
2193         (MKINSTALLDIRS): New variable.
2194         (install_data): Depend on install_charset_data.
2195         (install_charset_data): New rule for creating or updating
2196         charset.alias.
2197         (uninstall_sub): Depend on uninstall_charset_data.
2198         (uninstall_charset_data): New rule for uninstalling or updating
2199         charset.alias.
2200         * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
2201         of <langinfo.h>.
2202         (main): Initialize default_encoding from locale_charset() instead of
2203         nl_langinfo(CODESET).
2205         * aclocal.m4, configure, src/include/config.hin: Regenerated.
2207 2006-01-10  Werner LEMBERG  <wl@gnu.org>
2209         * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
2210         ICONV_CONST in call to iconv.  Reported by Robert Goulding.
2212 2006-01-07  Werner LEMBERG  <wl@gnu.org>
2214         * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2215         fontforge version.
2216         Bump font version to 001.001.
2218         * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2219         Call fontforge, not pfaedit.
2221         * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2223 2006-01-05  Ruslan Ermilov  <ru@FreeBSD.org>
2225         * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2226         * tmac/groff_mdoc.man: Updated.
2228 2006-01-05  Werner LEMBERG  <wl@gnu.org>
2230         * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2231         (raw_flag): New global variable.
2232         (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2233         Don't pass BOM to `conversion_utf8'.
2234         (usage): Updated.
2235         (main): Handle `-r' command line switch to set `raw_flag'.
2236         (get_BOM): Fix encodings in `BOM_table'.
2238         * src/preproc/preconv/preconv.man: New file.  Not complete yet.
2239         * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2241 2006-01-04  Werner LEMBERG  <wl@gnu.org>
2243         * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2244         Bruno, comment out most encodings to support only a small set of
2245         coding tags, thus reducing potential problems with legacy encodings
2246         and character sets in the future.
2247         Add many XEmacs coding tags (now commented out).
2248         Add `cp1047'.
2249         (check_encoding_tag): Renamed to...
2250         (check_coding_tag): This.
2251         (get_BOM): Return encoding as specified by BOM.
2252         Test for UTF32-LE too.
2253         (do_file): Don't check for coding tag if a BOM has been found.
2255 2006-01-03  Bruno Haible  <bruno@clisp.org>
2257         * m4/groff.m4: Renamed from aclocal.m4.
2258         * m4/codeset.m4: New file, from gnulib.
2259         * m4/iconv.m4: New file, from gnulib.
2260         * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2261         gnulib.
2262         * config.rpath: New file, from gnulib.
2263         * config.guess, config.sub: New files, from gnulib.
2264         * Makefile.sub (M4MACROS): New variable.
2265         (configure): Fix typo.
2266         (aclocal.m4): New rule.
2267         (stamp-h.in): Depend on aclocal.m4.
2268         * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2269         * Makefile.in (LIBICONV): New variable.
2270         (MDEFINES): Pass it to recursive makes.
2271         * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2272         HAVE_ICONV instead of I18N macro.
2273         * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2275         * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2277 2006-01-03  Werner LEMBERG  <wl@gnu.org>
2279         * doc/Makefile.in (webpage.html): Simplify.
2280         * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2281         * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2283 2006-01-01  Werner LEMBERG  <wl@gnu.org>
2285         * tmac/doc-common (Os): Add some Darwin versions.
2286         * tmac/groff_mdoc.man: Document them.
2288 2006-01-01  Bruno Haible  <bruno@clisp.org>
2290         * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2291         corrections:
2292           . Don't map ascii to latin-1.
2293           . Don't use IBMxxx encodings but cpxxx for portability.
2294           . Map cp932, cp936, cp949, cp950 to itself.
2295         (emacs2mime): Protect calls to strcasecmp.
2296         (conversion_iconv): Add missing call to iconv_close.
2297         (do_file): Emit error message in case of unsupported encoding.
2299 2005-12-31  Werner LEMBERG  <wl@gnu.org>
2301         Integrate preconv into the groff binary.  Changes based on a patch
2302         from Michail Vidiassov.
2304         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2306         * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2307         (SOELIM_INDEX): Updated.
2308         (help, synopsis): Updated.
2309         (main): Add command line options `-k' and `-K enc' to select
2310         encoding.
2311         Add support for GROFF_ENCODING environment variable.
2313         * src/roff/groff/groff.man: Updated and revised.
2316         Start with autoconf support for preconv.
2318         * configure.ac: Call AC_C_BIGENDIAN.
2319         * configure, src/include/config.hin: Regenerated.
2321 2005-12-30  Werner LEMBERG  <wl@gnu.org>
2323         New preprocessor `preconv' to convert input encodings to something
2324         groff can understand.  Not yet integrated within groff.  Proper
2325         autoconf stuff is missing too.
2327         Tomohiro Kubota has written a first draft of this program, and some
2328         ideas have been reused (while almost no code has been taken
2329         actually).
2331         * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2332         New files.
2334         * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2335         (GROFF_BIN_PATH): Add preconv.
2337 2005-12-12  Werner LEMBERG  <wl@gnu.org>
2339         * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2340         In particular, don't use `\+' since it is a GNU sed extension.
2342         * configure: Regenerated.
2344 2005-12-09  Werner LEMBERG  <wl@gnu.org>
2346         * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp. 
2348         * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2349         4.1.0.
2352         * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2353         afmtodit.tables.
2355         * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2356         4.1.0 data.
2358         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2359         %AGL_to_unicode): Removed.  Replace it with a tag.
2361         * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2362         to replace tag with actual file contents.
2364 2005-12-08  Werner LEMBERG  <wl@gnu.org>
2366         The change 2005-06-20 can indeed cause problems, so we follow the
2367         advice by using marks.
2369         * font/devps/prologue.ps (PBEGIN): Use `mark'.
2370         (PEND): Use `cleartomark'.
2372 2005-12-07  Michail Vidiassov  <master@iaas.msu.ru>
2374         * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2375         glyphs which have kern values but aren't handled (glyph variants,
2376         for example).
2378 2005-12-02  Werner LEMBERG  <wl@gnu.org>
2380         * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2381         subfont index.  Reported by Michail Vidiassov <master@iaas.msu.ru>.
2383 2005-11-28  Gaius Mulley  <gaius@glam.ac.uk>
2385         * doc/Makefile.in: Separate rule for webpage.html so that extra
2386         command line options can be passed to grohtml.
2387         * doc/groff.css: Change all margins to 0%.
2388         * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2389         navigation is exploited.  Also update webpage to contain new
2390         sections on licenses, mailing lists, cvs/ftp access, groff
2391         dependencies, and bug reports.
2392         * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2393         * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2394         
2395 2005-11-25  Gaius Mulley  <gaius@glam.ac.uk>
2397         * src/devices/grohtml/post-html.cpp
2398         (html_printer::do_file_components): Add fputs calls to emit the
2399         head contents and shut down the head tag whenever a new file
2400         component is generated.
2402 2005-11-22  Gaius Mulley  <gaius@glam.ac.uk>
2404         * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2405         call to flush_text to flush any outstanding html tags on the
2406         paragraph stack.
2408 2005-11-18  Werner LEMBERG  <wl@gnu.org>
2410         * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2411         Announce makeinfo version.
2412         * configure: Regenerated.
2414 2005-11-18  Mike Frysinger <vapier@gentoo.org>
2416         * Makefile.in: Declare proper dependencies between make targets.
2418         * doc/Makefile.in: Rename groff info page to `groff.info'.
2419         * doc/Makefile.sub: Likewise.
2420         * doc/groff.texinfo: Likewise.
2422 2005-11-17  Peter O'Gorman  <mlists@thewrittenword.com>
2424         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2425         definition of __GETOPT_PREFIX to the beginning of file to ensure
2426         that it is defined even on platforms where getopt.h is already
2427         included by other header files.
2429 2005-11-10  Gaius Mulley  <gaius@glam.ac.uk>
2431         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2432         Reset font to NULL to ensure that a font block is recreated during
2433         the next paragraph.
2435 2005-11-04  Werner LEMBERG  <wl@gnu.org>
2437         * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2438         * configure: Regenerated.
2440 2005-10-27  Werner LEMBERG  <wl@gnu.org>
2442         * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2443         makeinfo 4.8 or newer is available.
2444         * configure.ac: Call GROFF_MAKEINFO.
2445         * configure: Regenerated.
2447         * Makefile.in (MAKEINFO): Use autoconf variable.
2448         (MDEFINES): Add MAKEINFO.
2450         * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2451         * doc/Makefile.sub (MAKEINFO): Remove.
2453 2005-10-26  Werner LEMBERG  <wl@gnu.org>
2455         * REVISION: Set to 3.
2457 2005-10-17  Werner LEMBERG  <wl@gnu.org>
2459         Mention $MANPAGER variable used with some `man' systems.
2461         * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2463 2005-09-13  Werner LEMBERG  <wl@gnu.org>
2465         * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2467 2005-09-04  Werner LEMBERG  <wl@gnu.org>
2469 Version 1.19.2 released
2470 =======================
2472         * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2474         * doc/webpage.ms: Updated.
2476         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2478 2005-09-04  Jörgen Grahn <jgrahn@algonet.se>
2480         * tmac/groff_ms.man: Document `PO' better.
2482 2005-09-03  Werner LEMBERG  <wl@gnu.org>
2484         * NEWS: Document grotty changes.
2486 2005-09-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2488         Backward compatibility support for `man' program.
2490         * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2491         assignment, prior `.ll' request and then package defaults, in this
2492         specified order of decreasing priority.
2494         * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2495         altered `LL' register initialization priorities.
2497 2005-08-29  Gary W. Swearingen  <garys@opusnet.com>
2499         * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2500         section should look like.
2502 2005-08-29  Werner LEMBERG  <wl@gnu.org>
2504         * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2505         be abbreviated.
2507 2005-08-27  Bernd Warken
2509         * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2510         fixes.
2512 2005-08-11  Bernd Warken
2514         * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
2516 2005-08-09  Bernd Warken
2518         * tmac/www.tmac (URL, MTO): Use bold series if color support is
2519         deactivated.
2521 2005-08-02  Bernd Warken
2523         * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
2524         as argument to $(INSTALL_INFO).  The latter isn't portable.
2525         Remove $(HTMLEXAMPLEFILES) too.
2527         * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
2528         $(datadir)/doc too.
2529         Suppress warning messages and return always true.
2531         * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
2533 2005-07-02  Bernd Warken
2535         * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
2536         * man/groff_out.man: More markup and minor improvements.
2537         * src/roff/groff/groff.man: Minor improvements.
2539 2005-06-28  Werner LEMBERG  <wl@gnu.org>
2541         * ChangeLog: Split off older entries into...
2542         * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
2543         files.
2545 2005-06-26  Bernd Warken
2547         * src/devices/xditview/gxditview.man: More minor fixes.
2549 2005-06-24  Werner LEMBERG  <wl@gnu.org>
2551         * src/preproc/pic/troff.cpp (troff_output::set_fill,
2552         troff_output::set_color, troff_output::reset_color): Use .bcolor and
2553         .fcolor instead of \m and \M, respectively.
2555 2005-06-23  Bernd Warken
2557         * src/devices/xditview/gxditview.man: More minor fixes.
2558         * README: Formatting issues.
2559         Mention some problems with Debian.
2561 2005-06-23  Bernd Warken
2563         * src/devices/xditview/gxditview.man: Revised and improved.
2565 2005-06-22  Werner LEMBERG  <wl@gnu.org>
2567         Another round in fixing getopt problems.  Hopefully the last one!
2568         This time we use the getopt stuff from gnulib and define a prefix
2569         unconditionally so that there are no collisions with any other
2570         getopt implementations.  This is a slight waste of space in case
2571         we already use a GNU getopt implementation, but on
2572         the other hand it really simplifies life.
2574         * src/include/getopt.h: Use gnulib version.
2576         * src/include/getopt_int.h: Use gnulib version.
2578         * src/include/groff-getopt.h: Removed.  Obsolete now.
2580         * src/include/lib.h: Regarding getopt, don't handle any platform
2581         specially; just include getopt.h.
2582         (__GETOPT_PREFIX): Define (before getopt.h).
2584         * src/include/Makefile.sub (HDRS): Updated.
2586         * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
2587         gnulib version.
2589         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
2590         __GETOPT_PREFIX.
2592         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
2593         (__GETOPT_PREFIX): Define (before getopt.h).
2595 2005-06-21  Werner LEMBERG  <wl@gnu.org>
2597         * src/include/lib.h: Provide a fix for Mac OS X to not include
2598         groff-getopt.h.
2600 2005-06-20  Denis M. Wilson  <dmw@oxytropis.plus.com>
2602         * font/devps/prologue.ps (EP): Dont' use `bind'.  Reason: Using
2603         `bind' to define a procedure which contains `showpage' means that an
2604         invocation of `showpage' may execute wrongly (the exact effect
2605         depending on the interpreter).  Not usually a problem except under
2606         transformations, such as combining pages.
2607         (PEND): Don't call `clear'.  Reason: Using `clear' in the definition
2608         of /PEND means that stack underflow will occur if the stack is
2609         deliberately non-empty before document inclusion.  If included
2610         files are found to be generally badly behaved, we could replace the
2611         `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
2612         never found this necessary).
2614 2005-06-20  Jörgen Grahn  <jgrahn@algonet.se>
2616         * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
2617         earlier to get correct error message.
2619 2005-06-16  Bernd Warken
2620         * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
2622 2005-06-15  Werner LEMBERG  <wl@gnu.org>
2624         Another try to update getopt files.  This time we add a dummy
2625         gettext.h file to satisfy the dependency.
2627         * src/include/getopt.h, src/libs/libgroff/getopt.c,
2628         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2630         * src/include/getopt_int.h: New file (from GNU libc CVS).
2632         * src/include/gettext.h: Dummy file which just defines a gettext()
2633         macro.
2635         * src/include/groff-getopt.h: Updated.
2637         * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
2640         * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
2641         `const' keywords in return value.
2643         * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
2644         Remove redundant variable `old'.
2645         (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
2647         * src/preproc/tbl/main.cpp (process_table): Remove redundant
2648         variable `c'.
2651         Fix more friend name injection problems since modern C++ compilers
2652         fail otherwise.  We simply provide (global) declarations for all
2653         functions declared as friends.  This is not really necessary but
2654         doesn't harm.
2656         * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
2657         peek_char, and get_location.
2659         * src/preproc/refer/ref.h: Provide declarations for
2660         compare_reference, same_reference, same_year, same_date,
2661         same_author_last_name, and same_author_name.
2663         * src/roff/troff/div.h: Provide declarations for do_divert and
2664         page_offset.
2666         * src/roff/troff/env.h: Provide declarations for title_length,
2667         space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
2668         vertical_spacing, post_vertical_spacing, line_spacing, line_length,
2669         indent, temporary_indent, do_underline, do_input_trap, set_tabs,
2670         margin_character, no_number, number_lines, leader_character,
2671         tab_character, hyphenate_request, no_hyphenate,
2672         hyphen_line_max_request, hyphenation_space_request,
2673         hyphenation_margin_request, line_width, tabs_save, tabs_restore,
2674         line_tabs_request, widow_control_request, and do_divert.
2676         * src/roff/troff/input.cpp: Provide declaration for chop_macro.
2678         * src/roff/troff/node.cpp: Provide declarations for class
2679         tfont_spec.
2680         Provide declaration for make_tfont.
2682 2005-05-29  Werner LEMBERG  <wl@gnu.org>
2684         * doc/fdl.texi: Updated to version 1.2.  Reported by Bernd Warken.
2686 2005-05-28  Werner LEMBERG  <wl@gnu.org>
2688         * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
2689         redundant semicolons.
2691         * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
2692         src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
2693         Define `MLIB'.  Some compilers need this for linking with libgroff.
2695 2005-05-27  Werner LEMBERG  <wl@gnu.org>
2697         * MANIFEST, README, doc/webpage.ms: Updated.
2699 2005-05-26  Werner LEMBERG  <wl@gnu.org>
2701         * All affected files: Update postal address of FSF.
2703 2005-05-25  Keith Marshall  <keith.d.marshall@ntlworld.com>
2704             Bernd Warken
2706         * README: More fixes.
2708         * README.CVS: Removed.  Its contents is now part of the README file.
2710 2005-05-21  Werner LEMBERG  <wl@gnu.org>
2712         * README: Updated.  Based on a patch from Bernd Warken.
2714 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2716         Miscellaneous script portability enhancements.
2718         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
2719         generated conftest.sh script, conforming to portability
2720         recommendation in autoconf docs.
2721         * configure: Likewise, for code generated by GROFF_CSH_HACK.
2722         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
2723         to portability recommendation in autoconf docs.
2724         * contrib/grap2graph/grap2graph.sh: Likewise.
2725         * contrib/pic2graph/pic2graph.sh: Likewise.
2726         * font/devps/generate/afmname: Likewise.
2727         * src/devices/xditview/ad2c: Likewise.
2728         * src/preproc/eqn/neqn.sh: Likewise.
2729         * src/roff/grog/grog.pl: Likewise.
2730         * src/roff/grog/grog.sh: Likewise.
2731         * src/roff/nroff/nroff.sh: Likewise.
2732         * PROBLEMS: Likewise, in embedded script examples.
2734 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2736         Improve portability of `pdfroff' shell script.
2738         * arch/misc/shdeps.sh: Add space in shebang, conforming to
2739         portability guidelines in `autoconf' docs.
2740         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
2741         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
2742         `searchpath' function.
2744 2005-05-14  Werner LEMBERG  <wl@gnu.org>
2746         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
2747         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
2748         needed for newer ImageMagick versions.
2750 2005-05-07  Werner LEMBERG  <wl@gnu.org>
2752         * src/preproc/refer/refer.man: Many small typographic fixes.
2754 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
2756         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
2757         Use `char *' cast for a_delete.
2759 2005-05-03  Werner LEMBERG  <wl@gnu.org>
2761         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
2762         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
2764 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
2766         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
2767         `a_delete' for `const char *'.
2769 2005-05-03  Werner LEMBERG  <wl@gnu.org>
2771         * src/devices/grohtml/post-html.cpp,
2772         src/devices/grohtml/html-table.cpp,
2773         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
2774         Replace malloc/free with new/delete/a_delete.
2776         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
2777         are prohibited with ANSI C++.
2778         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
2779         function has a variable number of arguments).
2781         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
2782         Simplify function and update all callers.
2784 2005-05-02  Werner LEMBERG  <wl@gnu.org>
2786         Undo getopt changes from 2005-04-30.  We don't want a dependency
2787         on gettext.
2789         * src/include/getopt_int.h: Removed.
2791         * src/include/getopt.h, src/include/groff-getopt.h,
2792         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
2793         src/libs/libgroff/getopt1.c: Revert to previous version.
2796         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
2798         * src/include/posix.h (F_OK): Define conditionally.
2800         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
2801         different variable name in second `for' loop to avoid MSVC compiler
2802         problem.
2804 2005-04-30  Werner LEMBERG  <wl@gnu.org>
2806         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
2808         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
2809         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
2810         * configure, src/include/config.hin: Regenerated.
2812         * PROBLEMS: Updated.
2815         Update getopt files.
2817         * src/include/getopt.h, src/libs/libgroff/getopt.c,
2818         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2820         * src/include/getopt_int.h: New file (from GNU libc CVS).
2822         * src/include/groff-getopt.h: Updated.
2824         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
2827         * font/devutf8/NOTES: Updated.
2829 2005-04-28  Werner LEMBERG  <wl@gnu.org>
2831         Bug fix for Win32 relocatable code.  Based on a patch from Keith
2832         Marshall.
2834         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
2835         also.
2837         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
2838         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
2840 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
2842         Correct `gnu.eps' handling for build from distribution tarball, with
2843         separate source and build directories.
2845         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
2846         grnexmpl.g, groff.css and gnu.eps from source to build directory;
2847         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
2848         (prepare_examples): Make it depend on examples.stamp.
2849         (CLEANADD): Add examples.stamp.
2851 2005-04-27  Werner LEMBERG  <wl@gnu.org>
2853         Implement the rule
2855           position: `(' position `)'
2857         in pic.
2859         * src/preproc/pic/pic.y (position, position_not_place): Handle
2860         additional parentheses.
2862         * doc/pic.ms: Updated.
2864 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
2866         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
2868 2005-04-18  Werner LEMBERG  <wl@gnu.org>
2870         * src/roff/groff/pipeline.c: Don't include ctype.h.
2872 2005-04-13  Werner LEMBERG  <wl@gnu.org>
2874         * src/roff/nroff/nroff.man: Document option `-M'.
2876 2005-04-13  Bruce Lilly  <blilly@erols.com>
2878         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
2880 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
2881             Werner LEMBERG  <wl@gnu.org>
2883         Add binary relocation support for Windows platforms.
2885         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
2887         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
2889         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
2890         (search_path::search_path, search_path::open_file_cautious): Use
2891         `relocate'.
2893         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2894         src/include/Makefile.sub (HDRS): Updated.
2896 2005-04-01  Werner LEMBERG  <wl@gnu.org>
2898         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
2899         strsave/a_delete.
2901         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
2903         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
2904         lib.h already does it.
2906         * src/libs/libgroff/maxpathname.cpp: New file, defining
2907         path_name_max.
2909         * src/include/lib.h: Add prototype for path_name_max.
2911         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
2913         * src/include/nonposix.h (PATH_EXT): New macro.
2915 2005-03-28  Werner LEMBERG  <wl@gnu.org>
2917         Add support for double- and zero-width characters in grotty.
2919         * src/devices/grotty/tty.cpp (glyph): Add width.
2920         (tty_printer::make_underline, tty_printer::make_bold,
2921         tty_printer::add_character): Add parameter to pass character width.
2922         Update all callers.
2923         (tty_printer::end_page): Increase hpos by actual character width.
2925         * font/devutf8/R.proto: Specify zero width for non-spacing
2926         characters.
2928         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
2930         * Makefile.comm (extraclean): Remove more junk files.
2932 2005-03-25  Werner LEMBERG  <wl@gnu.org>
2934         * configure.ac: Undo change from 2005-03-24.
2935         * configure: Regenerated.
2937 2005-03-24  Werner LEMBERG  <wl@gnu.org>
2939         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
2940         (dist): Search Makefile while descending into $(EXTRADIRS).
2942         * doc/Makefile.in (.PHONY): Add.
2943         (clean): Don't remove *.png and *.eps.
2944         Don't handle *.gif.
2945         (realclean): Remove *.png and *.eps.
2946         (extraclean): Depend on distclean.
2948         * configure.ac: Add copyright.
2949         Handle contrib/pdfmark/Makefile.
2951         * configure: Regenerated.
2953 2005-03-18  Larry Kollar  <kollar@alltel.net>
2955         Add numbered and definition lists to www.tmac.
2957         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
2958         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
2959         auxiliary string registers.
2960         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
2961         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
2962         (www-level): Removed.
2963         (www-level1, www-level2, www-level3): Initialize to empty.
2964         (www-level0, www-level4, www-level5, www-level6, www-level7,
2965         www-level8, www-level9): New string registers.
2966         (www-push-li, www-pop-li): New macros.
2967         (www-push-level, www-pop-level): Renamed to...
2968         (www-push-ul-level, www-pop-ul-level): This.
2969         Updated.
2970         (www-push-ol-level, www-pop-ol-level): New macros.
2971         (ULS, ULE): Updated.
2972         (OLS, OLE, DLS, DLE): New user macros.
2973         (LI): Removed.  It is aliased to one of...
2974         (www-li-ul, www-li-ol, www-li-dl): New macros.
2976         * tmac/groff_www.man: Document new macros.
2978         * NEWS: Updated.
2980 2005-03-18  Werner LEMBERG  <wl@gnu.org>
2982         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
2983         doc-operating-system-NetBSD-2.0.2): New strings.
2985         * tmac/groff_mdoc.man: Updated.
2987 2005-03-17  Werner LEMBERG  <wl@gnu.org>
2989         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
2991 2005-03-17  Werner LEMBERG  <wl@gnu.org>
2993         * src/libs/libgroff/hypot.c: Renamed to...
2994         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
2996         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
2998         * src/include/lib.h: Updated.
3000 2005-03-16  Werner LEMBERG  <wl@gnu.org>
3002         Add workaround for broken hypot() on Interix.
3004         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
3006         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
3007         (CSRCS): Add `hypot.c'.
3009         * src/include/lib.h: Declare `groff_hypot'.
3011         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
3012         Use `groff_hypot'.
3014         * src/preproc/pic/pic.h: Don't declare `hypot'.
3016         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
3018 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
3020         * src/devices/grohtml/post-html.cpp
3021         (html_printer::lookahead_for_tables): End .ce properly to avoid a
3022         segfault.
3024 2005-03-15  Werner LEMBERG  <wl@gnu.org>
3026         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
3028         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
3030         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
3032 2005-03-14  Werner LEMBERG  <wl@gnu.org>
3034         Add Cyrillic support to devutf8 and devhtml.
3036         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
3038         * tmac/unicode.tmac: New file.
3040         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
3042         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
3044         * NEWS: Updated.
3046 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
3048         * src/libs/libdriver/printer.cpp (check_for_output_error): New
3049         function.  It has been introduced to catch peculiar error contexts
3050         on MS-Windows platforms.
3052 2005-02-28  Werner LEMBERG  <wl@gnu.org>
3054         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
3055         null pointer.
3057         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
3059         * configure: Regenerated.
3061         * NEWS: Updated.
3063 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
3065         Integrate `pdfmark' into normal groff build system;
3066         install macro `pdfmark' packages, build and install `pdfroff',
3067         and PDF format documentation.
3069         * Makefile.comm: Add PDFDOCDIR.
3071         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
3072         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
3073         (unstall_dirs): Add pdfdocdir.
3075         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
3076         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
3077         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
3078         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
3079         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
3080         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
3081         set ALT_AWK_PROGS.
3082         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
3083         use of GROFF_AWK_PREFS.
3084         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
3085         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
3087         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
3088         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
3089         also by modified GROFF_HTML_PROGRAMS).
3091 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
3093         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
3094         paragraph spacing.
3095         (html_text::done_para): Unset `start_space'.
3096         (html_text::remove_para_align): Call `retrieve_para_space' for the
3097         spacing.
3099         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
3100         `seen_space'.
3101         (html_printer::do_check_center): Emit vertical space if necessary.
3103         * src/roff/troff/env.cpp (environment_switch): Preserve
3104         `seen_space', `seen_eol', and `suppress_next_eol' while switching
3105         environments.
3107         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
3108         `is_special'.
3110 2005-02-20  Werner LEMBERG  <wl@gnu.org>
3112         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
3113         eqn.
3115 2005-02-17  Werner LEMBERG  <wl@gnu.org>
3117         * doc/pic.ms, man/groff.man: Fix typos.
3119         * doc/groff.texinfo: Fix typos.
3120         (\LEmacro): Get proper mathematical spacing.
3122 2005-02-16  Werner LEMBERG  <wl@gnu.org>
3124         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
3125         * configure: Regenerated with autoconf 2.59b.
3127 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
3129         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
3130         html_printer::start_font): Fix handling of preformatted text.
3132 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
3134         These patches modify the indentation implementation to use `<p
3135         style=margin-left: n%>'.  Many thanks to Peter and Larry for
3136         suggesting this solution.  Grohtml only uses tables for `.IP' and
3137         related tags when the first operand has a short width.
3139         Similarly, they modify all vertical space code.  By default, grohtml
3140         sets up a style sheet which uses no vertical space between `table',
3141         `pre', and `p' tags.  It forces spaces when it needs them using
3142         `style="margin-top: 1em"'.
3144         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
3145         (html_table::emit_table_header, html_table::emit_new_row):
3146         Rewritten.
3147         (html_table::set_space): New function.
3148         (html_indent::html_indent): Don't set `is_used'.
3149         (html_indent::begin): Rewritten.
3150         (html_indent::end): Remove code in function.
3152         * src/devices/grohtml/html-table.h: Updated.
3153         (html_table): Make `out' public.
3155         * src/devices/grohtml/html-text.cpp (html_text::html_text):
3156         Initialize `start_space' with FALSE.
3157         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
3158         (html_text::issue_tag): Add argument to handle space style.
3159         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
3160         (html_text::flush_text): Don't set `start_space'.
3161         (html_text::push_para): Don't set `p->really_issued'.
3162         (html_text::do_emittext): Updated.
3163         (html_text::do_para): Add paremeter to handle space.
3164         Update all callers.
3165         (html_text::retrieve_para_space): New function.
3167         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
3168         (tag_definition): Remove `really_issued'.
3169         (html_text): Updated.
3171         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
3172         `current_column' and `row_space'.
3173         Update constructor.
3174         (html_printer::emit_raw, html_printer::write_header,
3175         html_printer::do_indent, html_printer::do_check_center,
3176         html_printer::do_tab_ts): Handle vertical space.
3177         (html_printer:do_tab_te, html_printer::do_end_para): Call
3178         `remove_para_space'.
3179         (html_printer::do_col): Rewritten.
3180         (html_printer::flush_globs): Remove debugging code.
3181         (html_printer::is_line_start): New function.
3182         (html_printer::start_font): Use `is_line_start'.
3183         (html_printer::writeHeadMetaStyle): New function.
3184         (html_printer::do_file_components, html_printer::~html_printer):
3185         Call `writeHeadMetaStyle'.
3187         * tmac/www.tmac (www-handle-percent): New macro.
3188         (MPIMG): Handle percent values for width and height parameters.
3189         (DC): Updated.
3191         * tmac/groff_www.man: Updated.
3193 2005-02-14  Werner LEMBERG  <wl@gnu.org>
3195         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
3196         $psname and $italic_angle.
3197         Immediately restart file input loops if `split' returns an empty
3198         array.
3200 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
3201             Werner LEMBERG  <wl@gnu.org>
3203         Update afmtodit to better support Unicode (Michail).
3204         Update afmtodit to use Perl 5 syntax (Werner).
3206         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
3207         `Getopts::Std'.
3208         Decorate variables with `my' where necessary.
3209         Use `defined' where necessary to avoid warnings.
3210         Don't use `do' for subroutine calls.
3211         Other minor syntax updates.
3212         Check for both `uXXXX[X[X]]' and `uniXXXX'.
3213         Handle glyph variants properly.
3214         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3215         strings.
3217         * src/utils/afmtodit/afmtodit.man: Updated.
3219 2005-02-13  Werner LEMBERG  <wl@gnu.org>
3221         Make groff.texinfo work with texinfo 4.8.
3223         * doc/groff.texinfo (@Var): Use @r and @slanted.
3224         (@defdummy, @Def*): Use @c to avoid empty lines.
3225         (\angles): Replaced with...
3226         (\Langlemacro, \Ranglemacro): New TeX macros.
3227         (@Langlemacro, @Ranglemacro): New variables defined with @set.
3228         (@angles): Use @Langlemacro and @Ranglemacro.
3229         (\LE): Replaced with...
3230         (\LEmacro): New TeX macro.
3231         (@LEmacro): New variable defined with @set.
3232         (@LE): Use @LEmacro.
3233         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3234         variables defined with @set.
3235         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3236         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3237         Update all callers.
3239         Other minor updates.
3241         * doc/texinfo.tex: Update to texinfo version 4.8.
3243         * README.CVS: Updated.
3245 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3247         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3248         and `FAM' registers.
3250 2005-02-05  Werner LEMBERG  <wl@gnu.org>
3252         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3253         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3254         Update BSD license.
3256 2005-02-01  Werner LEMBERG  <wl@gnu.org>
3258         * src/roff/groff/groff.man: Add information about paper size.
3260 2005-01-25  Werner LEMBERG  <wl@gnu.org>
3262         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
3263         NetBSD bin/29114.
3265 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
3267         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
3268         cases.
3269         (Re): Emit a warning if called without `.Rs'.
3270         (doc-finish-reference): Use parameter for decreasing
3271         `doc-reference-count'.
3272         (doc-print-reference): Pass specific count parameters to
3273         `doc-finish-reference'.
3275 2005-01-21  Werner LEMBERG  <wl@gnu.org>
3277         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3278         Reset pointers to zero after deallocation.  This fixes a crash
3279         if a driver is called with multiple input files.  Reported by
3280         Ken Chilton <ken@chiltonfamily.org>.
3282         * src/devices/grops/grops.man: Add more info on DSC.
3284 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
3286         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3287         Remove dead code.
3289 2005-01-17  Werner LEMBERG  <wl@gnu.org>
3291         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3292         against division by zero.
3294 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
3296         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3298 2004-12-19  Werner LEMBERG  <wl@gnu.org>
3300         * install-sh: New version; taken from texinfo CVS.
3302 2004-12-17  Werner LEMBERG  <wl@gnu.org>
3304         * tmac/devtag.tmac: Protect against loading twice.
3305         Protect agains compatibility mode.
3306         * tmac/www.tmac: Protect against loading twice.
3307         Load `devtag.tmac' before switching off compatibility mode.
3308         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3310 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
3312         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3313         * configure: Updated.
3315 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
3317         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3319 2004-12-15  Werner LEMBERG  <wl@gnu.org>
3321         Make `test-groff' work again -- previously, wrong paths have been
3322         used.  Additionally, it can now be called from anywhere.
3324         * test-groff.in: Don't test for groff binary.  This is no longer
3325         necessary since the proper paths are determined by `configure'.
3326         (EXEEXT): Removed.  No longer used.
3327         (srcdir, builddir): Use values provided by the configure script.
3328         (XENVIRONMENT): Updated.
3330         * INSTALL: Updated.
3332 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
3334         Make .tag and .taga work for all devices (but only grohtml actually
3335         handles them).
3337         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3338         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3339         html_printer::handle_assertion): Don't use hard-coded string
3340         lengths.
3341         (html_printer::lookahead_for_table): Reset `tbl' properly if
3342         necessary.
3343         (html_printer::devtag): New function, handling `devtag'.
3344         (html_printer::special): Don't handle `html-tag'.
3346         * src/include/printer.h, src/libs/libdriver/printer.cpp
3347         (printer::devtag): New virtual function.
3349         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3350         `devtag'.
3352         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3353         src/roff/troff/node.cpp: s/html-tag/devtag/.
3355         * src/roff/troff/input.cpp (tag, taga): Always call
3356         curenv->add_node.
3358         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3359         macros instead of HTML-TAG*.
3361         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3363         * tmac/www.tmac: Load devtag.tmac.
3364         Replace HTML-TAG* macros with DEVTAG* macros.
3365         (HTML, HTML-NS): Changed definitions.
3366         (URL): Use HTML-NS.
3367         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3369         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3371 2004-12-10  Werner LEMBERG  <wl@gnu.org>
3373         Import Mike's `gdiffmk' package.
3375         * contrib/gdiffmk/*: New files.
3376         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3377         * NEWS: Updated.
3379 2004-12-08  Werner LEMBERG  <wl@gnu.org>
3381         Import Keith's `pdfmark' package.  Integration is very preliminary.
3383         * contrib/pdfmark/*: New files.
3384         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3385         * NEWS: Updated.
3387 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
3389         Fix a bug with title handling in HTML.
3391         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3392         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3393         length.
3394         (html_printer::handle_tag_within_title): New function.
3395         (html_printer::do_title): Use it.
3397         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3398         (cov*tl-au-print): Emit `.eo.tl' tag.
3400 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
3402         * man/groff_char.man: Minor imrovements.
3404 2004-12-04  Werner LEMBERG  <wl@gnu.org>
3406         * src/preproc/eqn/eqn.man: Revised.
3408 2004-11-25  Werner LEMBERG  <wl@gnu.org>
3410         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3411         groff source files.
3412         Include config.h.
3413         Include limits.h.
3414         Remove X_NOT_STDC_ENV conditional.
3415         (Version_string, program_name): New global variables.
3416         (groff_flag): Removed.
3417         (MapFont): Updated.
3418         (usage): Take a stream as argument.
3419         Use `program_name'.
3420         Update all callers.
3421         (main): Add `long_options' array for `--help' and `--version'.
3422         Make `-g' a dummy option.
3423         Handle `-v' and unknown options.
3424         Remove unused `position' variable.
3426         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3427         (XLIBS): Add LIBGROFF.
3429         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3430         New files.
3432         * src/devices/xditview/Dvi.c (default_font_map): Split into three
3433         parts to avoid compiler warning.
3434         (resources): Don't initialize with `default_font_map'.
3435         (ClassInitialize): Initialize first element of `resources'.
3437         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3438         Removed.
3440         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3441         src/utils/pfbtops/pfbtops.man: Revised, updated.
3443         * configure.ac: Generate src/utils/xtotroff/Makefile.
3444         * configure: Regenerated.
3446 2004-11-24  Werner LEMBERG  <wl@gnu.org>
3448         First fixes to get produce HTML.
3450         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3451         attribute.
3453         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3454         (HR, LI): Use `HTML</p>', not `HTML'.
3456         * doc/webpage.ms: Minor updates.
3458 2004-11-23  Larry Kollar  <kollar@alltel.net>
3460         Add option -S grohtml to determine the file split level.
3462         * src/devices/grohtml/post-html.cpp (split_level): New global
3463         variable.
3464         (html_header::determine_header_level): Use split_level.
3465         (main): Handle `-S' command line option.
3466         Sort options.
3468         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3470         * src/devices/grohtml/grohtml.man: Document it.
3471         Sort options.
3473         * NEWS: Document it.
3475 2004-11-23  Y T  <doarhop@hotmail.com>
3477         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3478         the volume and number refer entries.
3480 2004-11-22  Werner LEMBERG  <wl@gnu.org>
3482         * src/devices/grohtml/html-table.cpp
3483         (html_table::emit_table_header): Don't emit `cols' attribute which
3484         doesn't exist in HTML 4.0 and is thus invalid.
3486         * NEWS: More minor fixes and updates.
3488 2004-11-18  Werner LEMBERG  <wl@gnu.org>
3490         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3491         (HTML</p>): Minor clean-up.
3493         * tmac/groff_www.man: Updated.
3495         * src/devices/grohtml/grohtml.man: Revised and updated.
3497         * NEWS: Updated.
3499 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
3501         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3502         Fix space insertion.
3503         (html_printer::do_links): Fix rules generation around automatic
3504         heading links.
3506         * tmac/www.tmac (LK): Use HTML-TAG-NS.
3507         (HR): Simplify.
3508         No longer emit empty line for non-HTML devices.
3510 2004-11-17  Werner LEMBERG  <wl@gnu.org>
3512         * doc/Makefile.in (prepare_examples, webpage.html): Handle
3513         `groff.css'.
3515         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
3516         prepare_examples, webpage.html): Handle `groff.css'.
3518 2004-11-15  Werner LEMBERG  <wl@gnu.org>
3520         * NEWS, README, doc/webpage.ms: Updated.
3522         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
3524 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
3526         * src/include/printer.h (printer): Remove virtual function
3527         `round_width'.
3528         Update all source files.
3530         * src/devices/grohtml/post-html.cpp (html_printer): New member
3531         function `round_width'.
3533 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3535         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
3536         column key letter suffix.
3538 2004-10-14  Werner LEMBERG  <wl@gnu.org>
3540         * Makefile.in (check): Depend on `site.exp' and `docheck'.
3541         (docheck): Run dejagnu's `runtest' if it exists.
3542         (site.exp): Create dejagnu configuration file.
3544         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
3546 2004-10-13  Werner LEMBERG  <wl@gnu.org>
3548         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
3549         src/devices/grohtml/post-html.cpp (make_val,
3550         html_printer::handle_state_assertion): Fix compiler warnings.
3552         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
3553         (diversion::diversion): Fix order of initializers.
3555         * src/roff/troff/div.h: Don't include `mtsm.h'.
3557         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
3558         (environment::environment): Fix order of initializers.
3559         (environment::make_tag, environment::construct_format_state): Fix
3560         compiler warnings.
3562         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
3563         (input_iterator::input_iterator, macro::macro): Fix order of
3564         initializers.
3566         * src/roff/troff/mtsm.cpp: Include only necessary header files.
3567         (state_set::add, state_set::val): Fix compiler warnings.
3569         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
3570         (bool_value_state, int_value_state, units_value_state,
3571         string_value_state): Remove comma after last element which causes
3572         an error with g++ 3.3.3.
3574         * src/roff/troff/node.cpp: Include `stringclass.h'.
3575         (hline_node::hline_node, vline_node::vline_node,
3576         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
3577         warnings.
3578         (zero_width_node::zero_width_node): Fix order of initializers.
3580         * src/roff/troff/node.h: Don't include `mtsm.h'.
3581         (hmotion_node): Fix compiler warnings.
3583         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
3585 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
3587         * doc/groff.css: New file.
3589         * doc/webpage.ms: Use `groff.css'.
3590         Other small fixes.
3592         * tmac/an-old.tmac (need_eo_h): New number register.
3593         (TH): Emit `.eo.tl' tag after title.
3594         (SH): Set `need_eo_h'.
3595         (an-trap): Handle `need_eo_h'.
3596         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
3598         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
3599         (TL): Always start diversion.
3600         Updated.
3601         (@AI): Always call `par@reset'.
3602         (@AB): Update code for -Thtml.
3603         (cov*tl-au-print): Handle -Thtml.
3604         (par@reset): Handle `need_eo_tl', `need_eo_h'.
3605         (@IP): Simplified.
3606         (@IT-html): Removed.
3607         (@SH): Set `need_eo_h' for -Thtml.
3608         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
3609         Set `need_eo_tl'.
3610         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
3611         Set `need_eo_h' for -Thtml.
3612         (@EQ, @EN): Don't handle -Thtml specially.
3613         (par@load-init): Don't handle -Thtml specially.
3615         * tmac/www.tmac (www:paraspace): New macro.
3616         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
3617         (HTML</p>, HTML-TAG-NEXT): New macros.
3618         (HnE): Emit tag `.eo.h' instead of break.
3619         (HR): s/HTML-NS/HTML/.
3620         (www-end-nowhere): End diversion only if `www-html' not set.
3621         Emit `.eo.tl' tag.
3622         (ULS, ULE): s|HTML|HTML</p>|.
3623         (LI): Call `www:paraspace'.
3624         (HEAD): New macro.
3626 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
3628         * src/roff/troff/request.h (macro): Make `p' public.
3629         New variable `is_a_diversion'.
3630         New member function `is_diversion'.
3633         * src/devices/grohtml/html.h (simple_output): New member function
3634         `force_nl'.
3636         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
3637         computation of `total'.
3638         (tabs::check_init): New function.
3639         (html_table::emit_table_header): Emit style data.
3640         (html_table::insert_column): Improved.
3642         * src/devices/grohtml/html-table.h: Updated.
3644         * src/devices/grohtml/html-text.cpp (html_text::html_text):
3645         Initialize `start_space' with TRUE.
3646         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
3647         cases.
3648         (html_text::flush_text): Set `start_space' flag.
3649         (html_text::uses_indent, html_text::remove_para_space,
3650         html_text::get_alignment): New functions.
3651         (html_text::push_para): Updated.
3652         (html_text::do_para): Check for empty argument.
3653         Don't set `space_emitted'.
3654         (html_text::do_space, html_text::emit_space): Updated.
3656         * src/devices/grohtml/html-text.h (tag_definition): New variable
3657         `really_issued'.
3658         (html_text): New member function `uses_indent', `remove_para_space',
3659         `get_alignment'.
3661         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
3662         function.
3663         (simple_output:nl): Always emit `\n'.
3665         * src/devices/grohtml/post-html.cpp: Include `string.h'.
3666         (BASE_POINT_SIZE): Removed.
3667         (base_point_size, head_info): New global variables.
3668         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
3669         `is_eo_h'.
3670         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
3671         tags, respectively.
3672         (page::add_and_encode): Pass additional parameter for tag flag.
3673         (assert_pos): New structure.
3674         (assert_state): New class.
3675         (html_printer): Remove `indentation', `prev_indent'.
3676         Add variables `troff_indent', `device_indent', `temp_indent'.
3677         Add variables `seen_indent', `next_indent', `seen_pageoffset',
3678         `next_pageoffset', `seen_linelenght', `next_linelength',
3679         `seen_center', `next_center', `seen_space', `seen_break', `as'.
3680         Add member functions `do_check_center', `do_space', `do_head',
3681         `get_troff_indent', `restore_troff_indent', `handle_assertion',
3682         `handle_state_assertion', `do_end_para', `set_char_and_width'.
3683         Change argument to `do_fill' to `char *'.
3684         Update constructor.
3685         (html_printer::emit_raw): Call `shutdown_table'.
3686         Use new functions.
3687         (html_printer::do_center): Simplified.
3688         (html_printer::do_title): Improved.
3689         (html_printer::write_header): Emit one more newline.
3690         Use new functions.
3691         (html_printer::do_heading, html_printer::do_indent,
3692         html_printer::do_eol, html_printer::do_tab_ts,
3693         html_printer::do_tab, html_printer::do_tab0,
3694         html_printer::calc_po_in, html_printer::next_horiz_pos,
3695         html_printer::remove_courier_tabs,
3696         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
3697         Updated.
3698         (html_printer::do_linelength, html_printer::do_pageoffset,
3699         html_printer::do_indentation, html_printer::do_tempindent,
3700         html_printer::do_tab_te): Simplified.
3701         (html_printer::do_pointsize): Check whether point size is really
3702         associated a `.tl' tag.
3703         (html_printer::do_break): Rewritten.
3704         (html_printer::troff_tag): Improved.
3705         (html_printer::flush_globs): Updated.
3706         (html_printer::lookahead_for_tables): Handle `is_br'.
3707         Use new functions.
3708         (html_printer::set_char): Check `sbuf_style.f'.
3709         (html_printer::write_navigation): Use string comparison.
3710         (html_printer::~html_printer): Emit `head_info'.
3711         (html_printer::special): Rewritten.
3712         (get_str, make_val): New functions.
3713         (main): New option `s' to set the base point size.
3715         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
3717 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
3719         * src/roff/troff/node.cpp: New extern `debug_state'.
3720         Include `stringclass.h' and `mtsm.h'.
3721         Implement new classes and class members from `node.h'.
3722         (real_output_file): Make `fp' public.
3723         (troff_output_file): New variables `cur_div_level' and `tag_list'.
3724         Update constructors.
3725         (troff_output_file::really_print_line): Check whether we should push
3726         the current troff state and use the state at the start of the
3727         invocation of this diversion.
3728         (troff_output_file::add_to_tag_list): New member function.
3729         (node::add_char): Handle `glyph_comp_np'.
3731         * src/roff/troff/node.h: Include `mtsm.h'.
3732         (node): New variables `state', `push_state', `div_nest_level',
3733         `is_special'.  Update constructors, all descendants.
3734         Pass additional argument to `add_char' member function.
3735         New virtual member functions `is_tag', `debug_node',
3736         `debug_node_list'.  Update all descendants.
3737         (tag_node): New class for handling tags.
3738         (output_file): Add variable `state'.
3740 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
3742         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
3743         providing a minimal troff state machine to emit meta tags for the
3744         post-grohtml device driver.
3746         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
3747         files.
3749 2004-10-09  Werner LEMBERG  <wl@gnu.org>
3751         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
3753 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
3755         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
3757         * src/roff/troff/div.h: Include `mtsm.h'.
3758         (diversion): New variables `any_chars_added', `needs_push',
3759         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
3760         `saved_suppress_next_eol', `modified_tag'.
3761         New virtual member function `is_diversion'.  Update all descendants.
3763         * src/roff/troff/div.cpp (diversion::diversion,
3764         macro_diversion::macro_diversion): Updated.
3765         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
3766         `suppress_next_eol'.
3767         (top_level_diversion::space): Handle `curenv->seen_space'.
3768         (page_offset): Update tag handling.
3769         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
3771         * src/roff/troff/env.h (environment): Make `tabs' public.
3772         Remove `ignore_next_eol', `emitted_node'.
3773         Update `output_line', `output'.
3774         New variables `seen_space', `seen_eol', `suppress_next_eol',
3775         `seen_break'.
3776         New member functions `construct_state', `make_tag',
3777         `construct_format_state, `construct_new_line_state,
3778         `dump_troff_state'.
3779         Remove `add_html_tag', `make_html_tag'.
3781         * src/roff/troff/env.cpp: New externs `suppress_push',
3782         `get_diversion_state', `global_diverted_space'.
3783         (pending_output_line): New variable `was_centered'.
3784         Update constructor and all callers.
3785         (pending_output_line::output): Call `curenv->construct_format_state'.
3786         (environment::environment, environment::copy): Updated.
3787         (environment::output): Handle `was_centered'.
3788         (environment::add_char): Handle construct and diversion state.
3789         (environment::add_node): Handle construct state.
3790         (environment::newline): Handle `was_centered'.
3791         (environment::output_line): Updated.
3792         (environment::possibly_break_line): Updated.
3793         Update tag handling.
3794         (environment::add_html_tag): Replaced with...
3795         (environment::make_tag): New function.
3796         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
3797         (environment::dump_troff_state): New debugging function.
3798         (environment::construct_state, environment::construct_format_state,
3799         environment::construct_new_line_state): New functions.
3800         (environment::do_break): Updated.
3801         Handle `global_diverted_space'.
3802         (environment::handle_tag): Update tag handling.
3803         (point_size, fill, do_break_request): Don't call `add_html_tag'.
3804         (no_fill): Don't call `add_html_tag'.
3805         Set `suppress_next_eol'.
3806         (center, right_justify, line_length, indent, temporary_indent,
3807         set_tabs):
3808         Update tag handling.
3810         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
3811         (input_iterator): New variables `is_diversion', `diversion_state'.
3812         Update constructors.
3813         (input_stack): New member functions `get_div_level',
3814         `get_diversion_state', `check_end_diversion'.
3815         New variables `div_level', `diversion_state'.  Initialize them.
3816         (suppress_push, global_diverted_space): New global variables.
3817         (input_stack::finish_get, input_stack::finish_peek,
3818         input_stack::remove_boundary, input_stack::end_file,
3819         input_stack::clear, input_stack::pop_macro): Call
3820         `check_end_diversion'.
3821         (input_stack::push): Handle `div_level' and `diversion_state'.
3822         (get_diversion_state): New function.
3823         (diverted_space_node::reread): Handle `global_diverted_space'.
3824         (macro::macro): Update constructors.
3825         (macro::is_diversion): New function.
3826         (macro::operator=): Set `is_a_diversion'.
3827         (string_iterator): New member function `is_diversion'.
3828         (string_iterator::string_iterator): Update constructors.
3829         (string_iterator::fill): Set `div_nest_level'.
3830         (macro_iterator): New member function `is_diversion'.
3831         (do_if_request): Handle `suppress_push'.
3832         (tag, taga): New functions.
3833         (init_input_requests): Add `tag' and `taga' requests.
3835 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
3837         * src/include/font.h (font): New member function
3838         `get_image_generator'.
3839         New variables `unscaled_charwidths' and `image_generator'.
3841         * src/libs/libgroff/font.cpp (font::get_width): Always return the
3842         character's unscaled width if `font::unscaled_charwidths' is set.
3843         (font::get_image_generator): New function.
3844         (font::load_desc): Check the `unscaled_charwidths' and
3845         `image_generator' keywords.
3847         * src/libs/libgroff/fontfile.cpp: Initialize
3848         `font::unscaled_charwidths' and `font::image_generator'.
3850         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
3852         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
3854         * man/groff_font.man: Document `unscaled_charwidths' and
3855         `image_generator'.
3857         * src/preproc/html/pre-html.cpp: Include `device.h'.
3858         (image_gen): New global variable.
3859         (imageList::createPage): Use `image_gen'.
3860         (main): Use `image_generator' keyword.
3862 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3864         * tmac/html.tmac: Handle \[sqrtex].
3866 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3868         * src/include/printer.h (printer): New virtual method `round_width'.
3870         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
3871         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
3872         src/devices/grotty/tty.cpp (printer::round_width): New function
3873         member.
3875         * src/devices/grohtml/post-html.cpp (printer::round_width): New
3876         function member.
3877         (html_printer::set_numbered_char): Use it.
3879 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
3881         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
3883         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
3885         * configure: Regenerated.
3887         * Makefile.in (GHOSTSCRIPT): New variable.
3888         (MDEFINES): Add GHOSTSCRIPT.
3890 2004-10-03  Werner LEMBERG  <wl@gnu.org>
3892         * INSTALL.gen: Updated (taken from texinfo CVS).
3894 2004-09-28  Werner LEMBERG  <wl@gnu.org>
3896         * NEWS: Updated.
3898 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3900         * tmac/groff_www.man: Revised and updated.
3902 2004-09-26  Werner LEMBERG  <wl@gnu.org>
3904         Fix \$@ and \$* to handle any number of arguments.
3906         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
3907         characters.
3909         * src/roff/troff/input.cpp (input_iterator::internal_level):
3910         Removed.
3911         (input_stack): New member functions `increase_level' and
3912         `decrease_level'.
3913         (input_stack::get_level): Don't use `internal_level'.
3914         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
3915         (end_quote_iterator): Completely removed.
3916         (interpolate_arg): Build string for \$@ and \$* which is then
3917         pushed onto the input stack.
3919 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
3921         * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
3922         Registers): Document changes from 2004-09-19.
3924 2004-09-23  Werner LEMBERG  <wl@gnu.org>
3926         * tmac/an-old.tmac (ne): Using default scaling operator.
3928 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
3930         This change implements the following features:
3932         PORPHANS
3933           New numeric register: Defines number of lines following LP, PP,
3934           QP, IP or XP, which must be kept together, before any automatic
3935           page break.  If insufficient space remains on the current page, a
3936           page break is forced before the new paragraph begins.
3938         HORPHANS
3939           New numeric register: Sets number of lines of following paragraph
3940           which must be kept with a heading, defined by NH or SH, before any
3941           automatic page break.  If insufficient space remains on the
3942           current page, a page break is forced before the heading.
3944         GROWPS
3945           (Thanks to Joerg van den Hoff, for this idea).
3947           New numeric register: Sets the first level of heading (set with
3948           NH), which will keep the same point size as body text; e.g. if
3949           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
3950           point size specified by \n[PS], but .NH 2 and .NH 1 will have
3951           progressively larger point sizes, determined by \n[PSINCR] (see
3952           below).
3954         PSINCR
3955           New numeric register: Sets the point size increment for each level
3956           of heading, (set with NH), below the threshold level set by
3957           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
3958           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
3959           and all other levels will remain at 10pt, (because \n[PS] = 10).
3961         SH
3962           Existing macro now accepts a numeric argument, to make heading
3963           size match that of NH with same argument value, when the
3964           GROWPS/PSINCR feature is enabled.
3966         SN-DOT
3967           New string, set by NH macro, replaces the existing (undocumented)
3968           use of SN, to represent the assigned section number.
3970         SN-NO-DOT
3971           New string, set by NH macro, represents the assigned section
3972           number, but omits the terminal period (periods at intermediate
3973           levels are retained).
3975         SN
3976           String set by NH macro, originally undocumented, now implemented
3977           as an alias for SN-DOT (which reproduces original behaviour).
3979         * tmac/s.tmac (PORPHANS): New register.
3980         (par*start): Use it.
3981         (HORPHANS, GROWPS, PSINCR): New registers.
3982         (SH-NO-TAG, @SH): Use them.
3983         (@NH): Improved.
3985 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
3987         * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
3988         Document the deletion of `Ds' and `De' macros.
3990 2004-09-10  Werner LEMBERG  <wl@gnu.org>
3992         In tbl, handle \a as an interpreted leader character if in
3993         compatibility mode.
3995         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
3996         LEADER_CHAR): New macros.
3997         (compatible_flag): New declaration.
3999         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
4000         LEADER_3, and LEADER_4 to `state'.
4001         (table_input::get): Handle `\a'.
4003         * src/preproc/tbl/table.cpp (PREFIX): Removed.
4004         (LEADER_REG): New macro.
4005         (table::init_output): Define LEADER_REG string register if in
4006         compatibility mode.
4008         * src/preproc/tbl/tbl.man: Document it.
4010 2004-08-18  Werner LEMBERG  <wl@gnu.org>
4012         * tmac/doc.tmac (An): Fix error message.
4014 2004-08-06  Werner LEMBERG  <wl@gnu.org>
4016         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
4017         file can't be opened.  UNIX tbl has the same behaviour.
4019 2004-08-05  Y T  <doarhop@hotmail.com>
4021         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
4022         (DBRead): If in compatibility mode, take into account the text
4023         when computing figure boundaries.
4025 2004-08-05  Werner LEMBERG  <wl@gnu.org>
4027         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
4028         from Tadziu Hoffmann.
4030 2004-08-03  Werner LEMBERG  <wl@gnu.org>
4032         * doc/meref.me: Document `_M' register.
4034 2004-08-03  Martin Husemann  <martin@duskware.de>
4036         Make hpftodit work correctly on big-endian systems.
4038         * src/utils/hpftodit/hpftodit.cpp (File): New method
4039         `get_uint32(char *)'.
4040         (entry): New member `orig_value'.
4041         (read_tags): Use new method.
4042         (output_font_name, read_and_output_pcltypeface, dump_ascii):
4043         Updated.
4045 2004-08-01  Werner LEMBERG  <wl@gnu.org>
4047         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
4048         are already in X11's `macros.t' file.
4050 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
4052         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
4053         Fix casting bug.
4054         (read_and_output_pcltypeface): Handle strings with length <= 4.
4056 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
4058         * tmac/s.tmac (pg@top): Don't save `PO' register.
4059         (pg*end-col, pg*end-page): Directly use `PO' register.
4061 2004-07-27  Werner LEMBERG  <wl@gnu.org>
4063         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
4065         * src/preproc/refer/refer.cpp (output_references): Check for
4066         empty hash table.
4067         * src/preproc/refer/refer.man: Improve documentation of
4068         `bibliography' command.
4070 2004-07-26  Werner LEMBERG  <wl@gnu.org>
4072         Add requests `fcolor' and `gcolor'.
4074         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
4075         New functions.
4076         (init_env_requests): Add `fcolor' and `gcolor'.
4078         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
4080         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
4081         (Colors): Document new requests.
4083 2004-07-24  Werner LEMBERG  <wl@gnu.org>
4085         Add support for fractional point sizes in ms macros.  A value for
4086         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
4087         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
4089         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
4090         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
4092         * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
4093         Registers), NEWS: Document it.
4095 2004-07-19  Werner LEMBERG  <wl@gnu.org>
4097         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
4098         Update constructor.
4099         (do_for, for_input::get, for_input::peek): Handle negative `by'.
4100         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
4102 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
4104         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4105         * tmac/groff_mdoc.man: Updated.
4107 2004-07-05  Werner LEMBERG  <wl@gnu.org>
4109         * doc/groff.texinfo (Manipulating Hyphenation): Further improve
4110         documentation of `hcode'.
4112 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
4114         Improve appearance of arrows in pic.
4116         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
4117         arrow head thin.
4118         Use two line segments for drawing non-filled arrow head.
4119         (line_object::print, spline_object::print): Shorten line length to
4120         avoid arrow sticking.
4121         (arc_object::print): Take arrow direction into account.
4123 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
4125         * tmac/groff_www.man: Update documentation of .MPIMG.
4127 2004-07-03  Werner LEMBERG  <wl@gnu.org>
4129         * tmac/an-old.tmac (RI): Always start with font `R'.
4130         (RI, IR): Properly end with font `R'.
4132 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4134         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
4135         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
4136         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
4137         Don't pass more than six arguments to .R, .I, .B, etc., for
4138         compatibility with traditional troff macros.
4140 2004-07-02  Werner LEMBERG  <wl@gnu.org>
4142         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4143         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
4144         Update all users.
4145         (PUSH_COMP_MODE): New internal character constant.
4146         Update all users.
4148         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
4149         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
4150         (token::next, macro::append): Handle PUSH_COMP_MODE.
4151         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
4152         POP_GROFFCOMP after each of the decoded arguments to make them
4153         independent from the compatibility mode status.
4154         (comp_mode): Add `COMP_ENABLE'.
4155         (do_define_string, do_define_macro): Handle COMP_ENABLE.
4156         (define_string, append_string, define_macro, define_indirect_macro,
4157         append_macro, append_indirect_macro): Handle `compatible_flag'.
4158         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
4160         * man/groff_diff.man, doc/groff.texinfo: Updated.
4162 2004-07-01  Werner LEMBERG  <wl@gnu.org>
4164         * doc/groff.texinfo: Improve documentation of `hcode'.
4165         Use @documentencoding and convert document to latin-1; to do that
4166         make latin characters active and assign proper macros (within a
4167         @tex...@end tex environment).
4168         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
4169         * doc/Makefile.sub (groff): Ditto.
4171 2004-06-29  Werner LEMBERG  <wl@gnu.org>
4173         Implement two new conditional operators `F <name>' and `S <name>'
4174         which check whether <name> is a valid font or style, respectively.
4176         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
4177         (text_file::text_file): Updated.
4178         (text_file::error): Don't emit message if `silent' is set.
4179         (font::load_font): Add optional third argument (which is directly
4180         passed to `load'.
4181         (font::load): Add optional second argument to check the header of
4182         a font only, without emitting warning or error messages.
4183         * src/include/font.h (font): Updated.
4185         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
4186         conditionals.
4187         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
4188         fourth argument to check a font without mounting.
4189         (check_font, check_style): New functions.
4190         * src/roff/troff/node.h: Updated.
4192         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4193         Updated.
4195 2004-06-27  Werner LEMBERG  <wl@gnu.org>
4197         Implement new string-valued register `.sty' to return the current
4198         style name.
4200         * env.cpp (environment::get_style_name_string): New function.
4201         (init_env_requests): Add `.sty' register.
4202         * env.h (environment): Updated.
4203         * node.cpp (font_info): Make `get_style_name' a friend.
4204         (get_style_name): New function.
4205         * node.h: Updated.
4207         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4208         Updated.
4210 2004-06-15  Werner LEMBERG  <wl@gnu.org>
4212         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4213         `nospaces' option.
4215 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
4217         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4218         and \n[mo] to avoid dependency on current date.
4220 2004-06-08  Werner LEMBERG  <wl@gnu.org>
4222         * Makefile.sub (install_data): New target.
4224 2004-06-04  Werner LEMBERG  <wl@gnu.org>
4226         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4228 2004-06-03  Werner LEMBERG  <wl@gnu.org>
4230         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4231         order of libraries.
4232         (install_data): Add $(srcdir).
4234         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4235         libraries.
4237 2004-06-02  Werner LEMBERG  <wl@gnu.org>
4239         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4240         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4241         Add test for Xmu library.
4242         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4243         GROFF_APPRESDIR_DEFAULT): New macros.
4245         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4246         and GROFF_APPRESDIR_DEFAULT.
4248         * configure: Regenerated.
4250         * Makefile.in (appresdir): New variable.
4251         (MDEFINES): Add appresdir.
4253         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4254         -Xt.
4255         (install_data, uninstall_sub): New targets to handle GXditview.ad.
4257         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4258         `$(srcdir)/eign', not `eign'.
4260         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4262         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4263         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4264         Protect (g)xditview with `\%' to avoid hyphenation.
4265         Other minor formatting.
4267 2004-06-01  Werner LEMBERG  <wl@gnu.org>
4269         Integrate gxditview into groff's standard directory hierarchy.
4271         * src/xditview/*: Moved to ...
4272         * src/devices/xditview/*: Here.
4273         Moved DviChar.h and XFontName.h to src/include.
4274         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4275         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4276         Moved xtotroff.c to new directory src/utils/xtotroff.
4277         Provide proper Makefile.sub files (reusing the stuff from
4278         Imakefile.in).
4279         DESC renamed to DESC.in.
4280         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4281         Converted everything from K&R to ANSI C.
4282         Decorated with const where appropriate.
4283         Cast string constants with `String' and `char *' where appropriate.
4284         Made it compile with C++ (used as a C compiler).
4285         Removed other minor compiler warnings.
4287         * src/devices/xditview/device.c: Include config.h, string.h, and
4288         defs.h.
4289         Don't declare `exit', `strtok', `strchr', and `getenv'.
4290         (FONTPATH): Remove.
4292         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4293         `XFormatFontName'.
4295         * src/devices/xditview/xditview.c: Include config.h.
4296         Include stdio.h earlier.
4297         Protect declaration of `popen' and `pclose' with
4298         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4299         Replace `caddr_t' with `XtPointer'.
4300         (MakePromptFunc): New typedef.
4301         (DoPrint): Use RETSIGTYPE.
4302         (promptfunction): Change type to MakePromptFunc.
4303         (MakePrompt): Use MakePromptFunc for third argument.
4304         (xmalloc): Removed.
4306         * src/devices/xditview/ad2c: Add casts to `String'.
4308         * src/include/XFontName.h (XFontNameString): Don't use array
4309         notation.
4310         Add prototypes for `XParseFontName', `XFormatFontName',
4311         `XCompareFontName', and `XCopyFontName'.
4313         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4314         `XFontName.h'.
4316         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4317         Don't declare `XParseFontName' and `XFormatFontName'.
4318         (xmalloc): Removed.
4319         (main): Remove `optind' and `optarg'.
4321         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4322         (to select programs which need X).
4323         Make XDEVIDIRS depend on `FORCE'.
4324         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4325         X support).
4326         (MDEFINES): Updated.
4327         (LIBDIRS): Use XLIBDIRS.
4328         (CPROGDIRS): Use XPROGDIRS.
4329         (DEVDIRS): Remove font directories for gxditview.
4330         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4331         (EXTRADIRS): Remove src/xditview.
4333         * Makefile.sub (DISCLEANFILES): Updated.
4335         * Makefile.comm (LIBXUTIL): New variable.
4336         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4337         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4339         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4341         * aclocal.m4 (GROFF_X11): New function.
4343         * configure.ac: Call GROFF_X11.
4344         Don't create src/xditview/Imakefile.
4345         Don't emit notice how to build gxditview.
4347         * configure: Regenerated.
4349         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4351 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
4353         * Makefile.in (CPPFLAGS): Define.
4354         (MDEFINES): Add CPPFLAGS.
4356 2004-05-27  Werner LEMBERG  <wl@gnu.org>
4358         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4360 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
4362         Fix problems with `friend name injections'.
4364         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4365         make_script_box), src/roff/troff/div.h (end_diversions),
4366         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4367         change 2004-04-08.
4369 2004-05-25  Bernd Warken  <bwarken@mayn.de>
4371         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4373 2004-05-25  Werner LEMBERG  <wl@gnu.org>
4375         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4376         src/libs/libgroff/color.cpp: Include lib.h.
4378 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4380         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4381         through Forte 6u1, and for how to get GNU make on Solaris.
4383 2004-05-24  Werner LEMBERG  <wl@gnu.org>
4385         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
4386         by Paul Eggert.
4388 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
4390         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4391         rule.
4393 2004-05-14  Werner LEMBERG  <wl@gnu.org>
4395         * REVISION: Set to 2.
4397         * aclocal.m4 (GROFF_STDINT_H): Removed.
4398         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4400         * configure.ac: Updated.
4401         * configure, src/include/config.hin: Regenerated.
4403         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4404         inttypes.h conditionally.
4406 2004-05-13  Werner LEMBERG  <wl@gnu.org>
4408 Version 1.19.1 released
4409 =======================
4411 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
4413         * src/preproc/refer/label.y (same_author_last_name,
4414         same_author_name): Handle empty sort keys.
4416 2004-05-10  Werner LEMBERG  <wl@gnu.org>
4418         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4419         tmac/TODO: Updated.
4421         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4422         doc-str-Lb-librt): Reset font.
4423         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4424         Provide `doc-str-Lb' to reset font.
4425         * tmac/groff_mdoc.man: Updated.
4427 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
4429         * src/preproc/html/pre-html.cpp (make_message): Make it work for
4430         snprintf versions which don't conform to ANSI C 99 (this is,
4431         counting the string's trailing null byte in the return value).
4433 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
4435         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4436         that all implementations of sprintf handle null pointers correctly.
4438 2004-05-04  Werner LEMBERG  <wl@gnu.org>
4440         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4441         Document `.U' register.
4443         * src/roff/troff/env.cpp (environment::mark_last_line)
4444         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4446 2004-05-04  Larry Kollar  <kollar@alltel.net>
4448         New read-only register `.U'; it returns 1 in safer mode and 0
4449         otherwise.
4451         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4452         register.
4454 2004-05-03  Werner LEMBERG  <wl@gnu.org>
4456         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4458 2004-04-17  Werner LEMBERG  <wl@gnu.org>
4460         * src/include/font.h (font): Use `int' for ch_index.
4461         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4462         font::compact): Updated.
4464         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4465         warnings.
4467         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4468         (hyphen_word): Fix compiler warnings.
4469         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4470         `char'.
4471         Update all callers.
4472         (get_delim_number, get_line_arg): Change second argument type to
4473         `unsigned char'.
4474         (macro_header::copy, token::next, do_define_string,
4475         do_define_character, substring_request, asciify_macro,
4476         unformat_macro, read_size, non_interpreted_node::interpret,
4477         while_request, main: Fix compiler warnings.
4478         (read_color_draw_node): Initialize `col'.
4480         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4481         `start_col' and `end_col' of type `int'.
4482         (vertical_rule): Make `col' of type `int'.
4484         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4485         for EOF.
4487         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4488         New arrays.
4489         (format_serial): Use them to remove dependency on ASCII.
4491         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4492         compiler warning.
4493         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4494         Ditto.
4496         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4497         compiler warnings.
4498         (glyph): Change type of `hpos' to `int'.
4500         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
4501         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4503         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4505         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4507 2004-04-16  Werner LEMBERG  <wl@gnu.org>
4509         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4510         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4511         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4512         `double' instead of `float' everywhere.
4513         * src/preproc/grn/main.cpp: Use `double' instead of `float'
4514         everywhere.
4515         (main): Add return value.
4516         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
4517         everywhere.
4518         Update all user functions.
4520         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
4521         src/preproc/eqn/box.h, src/preproc/pic/object.h,
4522         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
4523         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
4524         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
4525         src/roff/troff/input.cpp, src/roff/troff/request.h,
4526         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
4527         declarations.
4529         * src/utils/indxbib/signal.c: Include stdlib.h.
4531 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
4533         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
4534         before the first page.
4536 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
4538         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
4539         (doc-operating-system-*): Updated.
4540         * tmac/doc-syms (doc-str-St-*): Various small fixes.
4541         (doc-str-Lb-*): Add more library names.
4543 2004-04-10  Art Haas  <ahaas@airmail.net>
4545         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
4546         use anonymous type.
4548 2004-04-09  Art Haas  <ahaas@airmail.net>
4550         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
4552 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
4554         * arch/misc/shdeps.sh: Generate better comment for sed script.
4556 2004-04-08  Art Haas  <ahaas@airmail.net>
4558         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
4559         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
4560         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
4561         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
4562         (polyfill), src/preproc/grn/main.cpp (polyfill),
4563         src/preproc/refer/command.cpp (command_table),
4564         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
4565         gcc 3.5 doesn't like).
4567 2004-04-08  Werner LEMBERG  <wl@gnu.org>
4569         Removing many compiler warnings.  groff should now compile with
4570         a C++ compiler used for C files also.  [Simple variable renamings
4571         to avoid shadowing aren't logged in detail.]
4573         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
4574         (draw_dvi_printer::draw) ['c']: Enclose in block.
4576         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
4577         (page::add_line): Fix typos.
4578         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
4580         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
4581         Some local variable renamings.
4582         * src/devices/grolbp/lbp.h: Some local variable renamings.
4584         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
4585         variable renamings.
4587         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
4588         Remove redundant local variable declaration.
4589         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
4590         Don't use `caddr_t' but `void *'.
4591         Enclose functions with `extern "C"' for C++.
4593         * src/libs/libdriver/input.cpp (remember_filename,
4594         remember_source_filename): Use cast for string constant.
4596         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
4597         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
4598         src/libs/libgroff/geometry.cpp: Some local variable renamings.
4599         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
4600         style.
4601         Enclose functions with `extern "C"' for C++.
4602         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
4603         (needs_quoting): Return `int'.
4604         (quote_arg): Add proper casts to malloc and realloc.
4605         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
4606         various MS Windows environments.
4607         (spawnvp_wrapper): Add proper cast to malloc.
4609         * src/preproc/eqn/box.h: Remove redundant declarations of
4610         `make_script_box', `make_mark_box' and `make_lineup_box'.
4611         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
4612         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
4613         variable renamings.
4615         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
4616         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
4617         (dx, dy): Renamed functions to...
4618         (deltax, deltay): This.
4619         * src/preproc/grn/main.cpp: Some local variable renamings.
4620         (deffont): Add `const'.
4621         (initpic, conv): Use cast for string constant.
4623         * src/preproc/html/pre-html.cpp: Some local variable renamings.
4624         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
4625         (char_buffer::run_output_filter): Second argument is unused.
4626         * src/preproc/html/pushback.cpp: Some local variable renamings.
4628         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
4629         * src/preproc/pic/object.cpp: Some local variable renamings.
4631         * src/preproc/refer/label.y (lookup_label): Remove redundant
4632         declaration of local variable.
4634         * src/preproc/soelim.cpp: Remove redundant declaration of
4635         `interpret_lf_args'.
4637         * src/preproc/tbl/main.cpp: Some local variable renamings.
4639         * src/roff/groff/groff.cpp (main): Use cast for string constant.
4640         * src/roff/groff/pipeline.c: Enclose declarations of `error',
4641         `c_fatal', and `i_to_a' with `extern "C"' for C++.
4642         Don't use C++-style comments.
4644         * src/roff/troff/env.h: Remove redundant declaration of `title'.
4645         * src/roff/troff/node.h, src/roff/troff/env.cpp,
4646         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
4647         renamings.
4648         * src/roff/troff/div.h: Remove redundant declaration of
4649         `end_diversions'.
4650         * src/roff/troff/troff.h: Remove redundant declaration of
4651         `cleanup_and_exit'
4652         * src/roff/troff/input.cpp: Remove redundant declaration of
4653         `handle_first_page_transition' and `process_input_stack'.
4655         * src/utils/hpftodit.cpp: Some local variable renamings.
4657         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
4658         for C++.
4659         Don't define RETSIGTYPE.
4660         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
4662         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
4663         (error): Use `const' in argument.
4664         (main): Remove redundant declaration of `optind'.
4665         Move declaration of `Version_string' to top-level.
4667         * PROBLEMS: Document difficulties compiling signal.c if a C++
4668         compiler is used for C.
4670 2004-04-07  Werner LEMBERG  <wl@gnu.org>
4672         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
4674 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
4676         Make scripts like nroff.sh and neqn.sh portable across various
4677         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
4678         non-POSIX path separators.  The idea is to extend those scripts to
4679         decide at run-time (of the script) which path separator to use.
4681         * arch/misc/Makefile.sub: New file.
4682         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
4683         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
4684         a proper definition of the variable `GROFF_RUNTIME'.
4686         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
4687         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
4688         (PROGDEPDIRS): New variable.
4689         `FORCE' it.
4690         (PROGDIRS): Add PROGDEPDIRS.
4692         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
4693         Don't substitute @SEP@ and @BINDIR@.
4694         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
4695         (PATH): Use GROFF_RUNTIME.
4697         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
4698         Don't substitute @SEP@ and @BINDIR@.
4699         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
4700         (PATH): Use GROFF_RUNTIME.
4702 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4704         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
4705         Cygwin which doesn't handle stderr correctly.
4707 2004-03-08  Werner LEMBERG  <wl@gnu.org>
4709         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
4710         against empty argument.  Problem reported by <cgd@broadcom.com>.
4712 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4714         * Makefile.in (SEP): Replaced with...
4715         (RT_SEP, SH_SEP): Separators for the target platform's native path
4716         separator and the build environment, respectively.
4717         (fontpath, tmacpath): Use RT_SEP.
4718         (MDEFINES): Updated.
4720         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
4721         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
4722         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
4724 2004-03-05  Werner LEMBERG  <wl@gnu.org>
4726         * font/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
4727         reduce alignment problems with newer printers which use built-in
4728         TrueType fonts (instead of the older Intellifonts).  The ideal
4729         solution is to provide a second set of groff metric files, but this
4730         is extremely time-consuming to produce, given that HP's metric
4731         files are very rudimentary.
4733 2004-03-01  Werner LEMBERG  <wl@gnu.org>
4735         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
4736         s/operand/argument/ in error message.
4738 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
4740         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
4741         is in use.
4743 2004-03-01  Antti Kantee  <pooka@netbsd.org>
4745         * tmac/s.tmac (XE): Fix error message.
4747 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
4749         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
4750         New macros.
4752         * src/roff/groff/pipeline.c: Declare strcasecmp.
4753         (run_pipeline) [_WIN32]: Use function name variants which don't
4754         start with `_'.
4755         Fix stream handling.
4757 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
4759         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
4760         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
4761         for platforms which use the native Win32 runtime libraries.
4762         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
4764         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
4765         QUOTE_ARG_REALLOC_ERROR): Fix string.
4767         * src/preproc/html/pre-html.cpp: Remove declaration of
4768         `spawnvp_wrapper'.
4769         Don't use __MINGW32__.
4770         s/DEBUG_FILE/DEBUG_FILE_DIR/.
4771         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
4772         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
4773         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
4774         calls to `set_redirection' and `WAIT'.
4775         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
4776         Fix calls to `set_redirection' and `save_and_redirect'.
4777         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
4778         to `set_redirection' and `save_and_redirect'.
4779         (usage): Fix message.
4780         (makeTempFiles, main): Use `DEBUG_FILE'.
4782 2004-02-21  Werner LEMBERG  <wl@gnu.org>
4784         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
4786 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
4788         * src/libs/libgroff/quotearg.c: New file, providing proper argument
4789         quoting for MSVC's spawn* and exec* functions.
4790         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
4791         spawnvp with proper quoting for MSVC.
4793         * src/libs/libgroff/assert.cpp (program_name),
4794         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
4795         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
4797         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
4799         * src/include/error.h (program_name): Declare as `extern "C"'.
4800         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
4802 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
4804         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
4805         spawnvp_wrapper.
4806         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
4808 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
4810         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
4811         variable.
4812         (sbasename) [__MSDOS__ || ...]: New function.
4813         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
4814         generic algorithm.
4815         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
4816         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
4817         of XXX.
4818         Use STDOUT_FILENO instead of hardcoded file handle.
4819         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
4821 2004-02-19  Werner LEMBERG  <wl@gnu.org>
4823         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
4824         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
4826 2004-02-18  Werner LEMBERG  <wl@gnu.org>
4828         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
4829         new font and mapping files.
4831 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
4832             Keith Marshall  <keith.d.marshall@ntlworld.com>
4834         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
4835         an input pipe.  This is needed for the MSVC compiler to make troff's
4836         `-o' option work.
4838         * src/roff/troff/div.cpp: Include nonposix.h.
4839         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
4841 2004-02-17  Werner LEMBERG  <wl@gnu.org>
4843         * font/devlj4/generate/special.awk: New script.
4844         * font/devlj4/generate/Makefile (S): Use special.awk.
4845         * font/devlj4/*: Regenerated, including the following new files:
4846         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
4847         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
4848         * NEWS: Document new lj4 fonts and revised hpftodit.
4850 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
4852         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
4854 2004-01-25  Werner LEMBERG  <wl@gnu.org>
4856         * src/libs/libgroff/progname.cpp: Replaced with...
4857         * src/libs/libgroff/progname.c: New file.
4858         * src/libs/libgroff/Makefile.sub: Updated accordingly.
4860 2004-01-17  Werner LEMBERG  <wl@gnu.org>
4862         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
4864 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
4866         * font/devlj4/generate/wingdings.map,
4867         font/devlj4/generate/symbol.map: Include unnamed glyphs.
4868         Use groff glyph names where possible.
4869         * src/devices/grolj4/lj4_font.man: Minor updates.
4871 2004-01-13  Werner LEMBERG  <wl@gnu.org>
4873         * tmac/www.tmac (DC): Handle TTY devices.
4875         * doc/webpage.ms: Document viewCVS from ffii.org.
4876         * NEWS, README: Updated.
4878         * src/roff/groff/groff.man: Mention lj4_font man page.
4880         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
4881         variables.
4882         (FONTS): Add SYMBOL and WINGDINGS.
4883         (SYMBOL, WINGDINGS): New targets.
4885 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
4887         * src/devices/grolj4/lj4_font.man: New man page.
4888         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
4889         * src/devices/grolj4.man: Mention lj4_font man page.
4891         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
4892         * src/utils/hpftodit/hpftodit.man: Document it.
4893         (CW): New macro.
4894         Remove details about fonts (which are now in lj4_font.man).
4896         * font/devlj4/generate/symbol.map,
4897         font/devlj4/generate/wingdings.map: New files.
4899 2004-01-12  Werner LEMBERG  <wl@gnu.org>
4901         * README: Mention ffii's viewcvs access.
4903 2004-01-09  Werner LEMBERG  <wl@gnu.org>
4905         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
4907 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
4909         Revert most of the change from 2004-01-03 to better control used
4910         symbol sets.
4912         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
4913         (text_symbol_sets, special_symbol_sets): New arrays.
4914         (symbol_set_table): New global variable.
4915         (read_symbol_sets): Use search order given in the text_symbol_sets
4916         and special_symbol_sets arrays.  If command line flag -a is not
4917         given, search both arrays.
4918         (output_charset): Require x_height_tag only for command line flag -i.
4920 2004-01-06  Werner LEMBERG  <wl@gnu.org>
4922         Implement string-valued registers \n[.m] and \n[.M] to return the
4923         name of the current drawing and background color, respectively.
4925         * src/roff/troff/symbol.h: Moved to...
4926         * src/include/symbol.h: Here.
4927         Small fixes to make it work outside of the `troff' directory.
4928         * src/roff/troff/symbol.cpp: Moved to...
4929         * src/libs/libgroff/symbol.cpp: Here.
4930         Small fixes to make it work outside of the `troff' directory.
4932         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
4933         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
4934         Updated.
4936         * src/include/color.h: Include symbol.h.
4937         (color): Add new field `nm'.
4938         * src/libs/libgroff/color.cpp (color::color): Updated.
4940         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
4941         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
4942         src/roff/troff/reg.cpp: Don't include symbol.h.
4944         * src/roff/troff/env.cpp: Don't include symbol.h.
4945         (environment::get_glyph_color_string,
4946         environment_get_fill_color_string): New member functions.
4947         (init_env_requests): Handle `.m' and `.M' registers.
4948         * src/roff/troff/input.cpp: Don't include symbol.h.
4949         (default_symbol): Moved to symbol.cpp/symbol.h.
4950         (do_glyph_color, do_fill_color, define_color): Pass symbol name
4951         to color constructor.
4952         * src/roff/troff/env.h: Updated.
4954         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4955         Document new registers.
4957 2004-01-05  Werner LEMBERG  <wl@gnu.org>
4959         * src/roff/troff/node.cpp (space_node::get_breakpoints,
4960         space_node::nbreaks): Protect against zero `next' field.
4962 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
4964         In hpftodit, use the symbol sets offered in the TFM.
4966         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
4967         (symbol_set, text_symbol_sets, special_symbol_sets,
4968         symbol_set_table): Removed.
4969         (get_printcode): Removed.
4970         (read_symbol_sets): Initialize `symbol_set' field with
4971         `NO_SYMBOL_SET'.
4972         Simplify code to just use the `kind' value.
4973         (output_charset): Improve output formatting.
4974         (dump_symbols): Simplified.
4976 2004-01-02  Werner LEMBERG  <wl@gnu.org>
4978         * font/devlj4/generate/text.map: Add more MSL numbers.
4980 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
4982         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
4983         (text_symbol_sets): Add more symbol sets.
4984         (debug_flag): New static variable (moved from `main').
4985         (get_printcode, show_symset): New functions.
4986         (main): Remove `debug_flag'.
4987         (output_charset): Use `show_symset'.
4988         (dump_symbols):  Use `show_symset'.
4989         Print symsets for all glyphs.
4990         (read_map): Actually call `unicode_to_ucode_make' but this time
4991         correctly.
4993 2004-01-01  Werner LEMBERG  <wl@gnu.org>
4995         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
4996         Fix placement of comments.
4998 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
5000         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
5001         option `-d' is given.
5002         (output_charset): Improve warning messages to give more information.
5003         (dump_symbols): Make information more precise.
5004         (usage): Updated.
5005         (read_map): Don't call unicode_to_ucode_name; the glyph names must
5006         appear as-is and shouldn't be decomposed.
5008 2003-12-31  Werner LEMBERG  <wl@gnu.org>
5010         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
5011         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
5012         (FONTS): Add TrueType font families Arial and Times New Roman.
5013         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
5014         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
5015         `fl'.
5017 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
5019         * test-groff.in (SEP): Quote value.
5020         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
5021         `tem' to `char*' to avoid deallocation of a pointer to a constant
5022         object which some compilers don't like.
5024 2003-12-31  Werner LEMBERG  <wl@gnu.org>
5026         * font/devlj4/generate (text.map, special.map): Rewritten to work
5027         with the new hpftodit version.
5029 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
5031         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
5032         set and 8bit character code for all glyphs also.
5034 2003-12-30  Werner LEMBERG  <wl@gnu.org>
5036         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
5038 2003-12-29  Werner LEMBERG  <wl@gnu.org>
5040         More fixes for MSVC compiler.
5042         * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
5044         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
5045         STDERR_FILENO) [_MSC_VER]: Define conditionally.
5046         (getpid) [_MSC_VER]: Remove.
5047         Include direct.h and process.h conditionally.
5049         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
5050         parentheses for a_delete.
5052         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
5054         * test-groff: Replaced with...
5055         * test-groff.in: This new template to handle path separator
5056         properly.
5058         * configure.ac: Check for direct.h and process.h.
5059         Generate test-groff script.
5060         * configure, src/include/config.hin: Regenerated.
5062 2003-12-28  Werner LEMBERG  <wl@gnu.org>
5064         Add integral extension glyph.
5065         Add new option `-x' to afmtodit to suppress use of built-in AGL.
5067         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
5069         * font/devps/generate/textmap: Provide entry for `integralex' to
5070         override (old) PUA value of the AGL.
5071         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
5072         * font/devps/*: Regenerated.
5074         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
5075         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
5077 2003-12-27  Werner LEMBERG  <wl@gnu.org>
5079         Add forgotten `coproduct' symbol (already available for DVI).
5081         * font/devhtml/R.proto, font/devps/generate/textmap,
5082         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
5083         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
5084         U+2210 (\[coproduct]).
5086 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
5088         hpftodit has been extended to handle TrueType metric files and
5089         more glyphs.  See hpftodit.man for more details.
5091         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
5092         ctype.h, and unicode.h.
5093         s/msl/charcode/ everywhere since we now handle Unicode values also.
5094         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
5095         Use it where appropriate.
5096         (MULTIPLIER): Replaced with...
5097         (multiplier): New global static variable.
5098         (scale): Updated.
5099         (tag_type): Add more TFM tags.
5100         (tag_name): New array.
5101         (ENUM_TYPE, FLOAT_TYPE): Removed.
5102         (BYTE_TYPE): New value assigned.
5103         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
5104         (text_symbol_sets, special_symbol_sets): Extended to cover more
5105         sets.
5106         (check_type): Add return value.
5107         (check_units): Add parameters to get ppi and upem values.
5108         Handle TrueType TFM data.
5109         (output_font_name): New function.
5110         (output_charset): Add parameter to handle TFM type.
5111         Handle TrueType TFMs also.
5112         (em_fract): New macro.
5113         (dump_tags): Be much more verbose and handle more tags.
5114         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
5115         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
5116         functions.
5117         (read_map): Add parameter to handle TFM type.
5118         Handle both MSL and Unicode mappings.
5119         (main): Add two new command line options `-a' and `-q'.
5120         Updated to make use of new functions.
5121         (usage): Updated.
5123         * src/utils/hpftodit/hpuni.cpp: New file.
5125         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
5126         Updated.
5128 2003-12-25  Werner LEMBERG  <wl@gnu.org>
5130         * src/include/nonposix.h (read) [_MSC_VER]: Define.
5132 2003-12-24  Werner LEMBERG  <wl@gnu.org>
5134         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
5135         by Michail Vidiassov <master@iaas.msu.ru>.
5137 2003-12-20  Werner LEMBERG  <wl@gnu.org>
5139         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5140         and u0049_0307.
5141         Add missing latin-2 glyphs.
5142         * font/devutf8/R.proto: Add missing latin-2 glyphs.
5144         * tmac/troffrc: Load `composite.tmac' earlier.
5146         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
5147         u00{53,73}_0327, and u0049_0307.
5148         * tmac/X.tmac: Add u00{47,67}_0306.
5149         * tmac/tty-char.tmac: Use composite glyph names for readability.
5151         * NEWS: Updated.
5153         * src/include/unicode.h: Remove `extern' keywords.
5155 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
5157         * tmac/latin5.tmac: New file.
5159 2003-12-19  Werner LEMBERG  <wl@gnu.org>
5161         Add some glyphs needed for Turkish.
5163         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5164         and u0049_0307.
5166         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
5167         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
5168         u00{53,73}_0327, and u0049_0307.
5170 2003-12-18  Werner LEMBERG  <wl@gnu.org>
5172         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
5173         from 2001-10-04.
5174         Remove trailing zeros.
5176 2003-12-17  Werner LEMBERG  <wl@gnu.org>
5178         Make \? transparent to end-of-sentence recognition.
5180         * src/roff/troff/input.cc (non_interpreted_node): Add
5181         `ends_sentence' member function.
5183 2003-12-16  Werner LEMBERG  <wl@gnu.org>
5185         * doc/groff.texinfo: Document `dt' request correctly.
5186         Other minor typographical improvements.
5188 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
5190         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5192 2003-12-10  Richard Stallman  <rms@gnu.org>
5194         * LICENSE: Better wording.
5196 2003-12-09  Werner LEMBERG  <wl@gnu.org>
5198         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
5199         * configure, NEWS: Updated.
5201 2003-12-08  Werner LEMBERG  <wl@gnu.org>
5203         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
5205 2003-12-07  Bernd Warken  <bwarken@mayn.de>
5207         * LICENSE: Updated.
5209 2003-12-07  Werner LEMBERG  <wl@gnu.org>
5211         * INSTALL: Improved.
5213 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
5215         Use path separator character of target platform for compiled-in
5216         default paths.
5218         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5219         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5220         * configure: Regenerated.
5221         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5223 2003-12-05  Werner LEMBERG  <wl@gnu.org>
5225         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5226         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5228 2003-12-04  Bernd Warken  <bwarken@mayn.de>
5230         * LICENSE: New file.
5232 2003-12-03  Werner LEMBERG  <wl@gnu.org>
5234         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5235         ligatures present in AFM files since groff currently only
5236         understands some standard ligatures and nothing else.
5238 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
5240         * src/roff/groff/groff.cpp (main): Don't run the spooler if
5241         option -v is given.
5243         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5244         messages.
5245         Close stdout copy.
5246         Don't use Unix wait flags.
5248 2003-12-02  Werner LEMBERG  <wl@gnu.org>
5250         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5251         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5252         src/roff/troff/uniuni.cpp: Moved to...
5253         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5254         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5255         src/libs/libgroff/uniuni.cpp: Here.
5257         * src/include/Makefile.sub.old (HDRS),
5258         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5259         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5261 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
5263         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5264         `DEBUG_FILE'.
5265         Updated all users.
5267 2003-12-01  Werner LEMBERG  <wl@gnu.org>
5269         * groff.texinfo: Document special behaviour of `.vs 0'.
5270         Improve documentation of `cflags' request.
5271         * NEWS: Updated.
5273 2003-11-29  Werner LEMBERG  <wl@gnu.org>
5275         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5276         * font/devlj4/CORONET: Regenerated.
5278 2003-11-24  Werner LEMBERG  <wl@gnu.org>
5280         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5281         if processing hyphenation patterns in traditional mode.
5282         Improve error messages.
5284 2003-11-20  Werner LEMBERG  <wl@gnu.org>
5286         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5287         troff_output_file::put_char): Fix type of local variable `c'.
5289 2003-11-19  Werner LEMBERG  <wl@gnu.org>
5291         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
5292         declarations.
5293         (i_to_a): Removed.  libgroff already provides this function.
5294         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5296 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
5298         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5299         HAVE_DECL_SYS_LIST.
5301 2003-11-17  Werner LEMBERG  <wl@gnu.org>
5303         * COPYING: Use correct version.
5305 2003-11-11  Werner LEMBERG  <wl@gnu.org>
5307         LynxOS 4.0.0 doesn't declare vfprintf.
5309         * configure.ac: Check for vfprintf.
5310         * configure: Regenerated.
5311         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5312         * src/include/config.hin: Regenerated.
5314 2003-11-10  Werner LEMBERG  <wl@gnu.org>
5316         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5318         * configure.ac: Check for vsnprintf.
5319         * configure: Regenerated.
5320         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5321         `HAVE_VSNPRINTF'.
5322         * src/include/config.hin: Regenerated.
5324 2003-11-09  Werner LEMBERG  <wl@gnu.org>
5326         * aclocal.m4: Updated syntax to autoconf 2.59.
5327         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5328         Don't check for gsos2.
5329         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
5330         working abs_top_srcdir and abs_top_builddir.
5332         * configure.ac: Updated syntax to autoconf 2.59.
5333         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5334         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5335         * configure: Regenerated.
5337         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5338         s/@groff_top_builddir@/@abs_top_builddir@/.
5340         * src/roff/groff/pipeline.c (xstrsignal):
5341         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5343 2003-11-07  Werner LEMBERG  <wl@gnu.org>
5345         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5346         make start angle smaller than end angle to circumvent a bug in tpic
5347         handling of some versions of dvipdfm (and dvipdfmx).
5349 2003-10-30  Werner LEMBERG  <wl@gnu.org>
5351         * src/devices/grops/grops.man: Improve section on creating EPS.
5353 2003-10-29  Werner LEMBERG  <wl@gnu.org>
5355         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5356         -P-pletter).
5358 2003-10-28  Werner LEMBERG  <wl@gnu.org>
5360         * doc/groff.texinfo: Fix documentation of `.if'.
5362 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
5364         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5365         the form `uniXXXX' also.
5367 2003-10-27  Werner LEMBERG  <wl@gnu.org>
5369         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5370         contrib/pic2graph/pic2graph.sh: Implement secure management of
5371         temporary files.
5372         Pass `-P-pletter' to groff to avoid data outside of the converted
5373         area -- some versions of `convert' (for example 5.3.8) don't check
5374         the bounding box of the image but always use a fixed image size
5375         (letter paper format).
5376         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5377         contrib/pic2graph/pic2graph.man: Updated.
5379         * src/roff/groff/groff.man: Document $TMP and $TEMP.
5381 2003-10-26  Werner LEMBERG  <wl@gnu.org>
5383         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5384         troff_output::simple_ellipse, troff_output::simple_arc,
5385         troff_output::simple_line, troff_output::simple_spline,
5386         troff_output::simple_polygon): Insert a space before arguments.
5387         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5388         latter doesn't produce a node, so the following `.sp -1' would do
5389         the wrong thing.
5390         Don't emit `.sp -1' after \M.  This also doesn't produce a token
5391         (and we don't have to care about compatibility mode).
5392         (troff_output::set_color, troff_output::reset_color): Don't emit
5393         `.sp -1' after \M and \m.
5395         * src/roff/troff/input.cpp (old_have_input): New global variable.
5396         (input_stack::get): Handle `old_have_input'.
5397         (process_input_stack) <token::TOKEN_NEWLINE>: Call
5398         `trapping_blank_line' depending on `old_have_input', not
5399         `have_input'.
5401 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
5403         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5404         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5405         default directory names for temporary files.
5406         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5408         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5409         [__MSDOS__] (run_pipeline): Honour environment variables.
5410         Don't use `tmpnam' but `tempnam' to work around messy
5411         implementation.
5413         * README.MinGW: New file.
5415 2003-10-16  Werner LEMBERG  <wl@gnu.org>
5417         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5418         `(*t)->next' without testing validity of `*t'.
5419         (usage): Make it more readable.
5421 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
5423         Make html device run under both MS-DOS and Win32.
5425         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5426         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5427         spawn or fork+exec has to be used, and whether parent must sleep
5428         until the child process terminates.  Used in
5429         `char_buffer::run_output_filter'.
5430         (copyofstdoutfd): Removed.
5431         (char_buffer): Replace `write_file_html' and `write_file_troff'
5432         member functions with `emit_troff_output' and `run_output_filter'.
5433         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5434         macros.
5435         (replaceFd): Replaced with...
5436         (set_redirection): New auxiliary function.
5437         (waitForChild): Replaced with...
5438         (save_and_redirect): New auxiliary function for.
5440         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5441         functions.
5443 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
5445         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5446         (GROFF_LIBC): New function.
5447         * configure.ac: Call GROFF_LIBC.
5448         Check for `kill'.
5449         * configure: Regenerated.
5451         * src/include/lib.h: Handle __MINGW32__.
5452         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5453         Add macro for `pipe'.
5454         Define P_tmpdir.
5456         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5457         correctly.
5459         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5460         Implement.
5462 2003-10-12  Werner LEMBERG  <wl@gnu.org>
5464         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5465         src/roff/troff/input.cc (usage): Updated.
5467         * NEWS, doc/groff.texinfo: Updated.
5469 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
5471         * src/libs/libgroff/searchpath.cpp
5472         (search_path::open_file_cautious): New function which also handles
5473         `-' as stdin and stdout depending on the access mode.
5474         * src/include/searchpath.h (search_path): Updated.
5476         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5477         * src/devices/grops/ps.h: Include `searchpath.h'.
5478         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5479         Open resource file with `include_search_path.open_file_cautious'.
5480         * src/devices/grops/grops.man: Document new `-I' switch.
5482         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5483         (main), src/devices/grolj4/lj4.cpp (main),
5484         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5486         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5487         Replaced with...
5488         (include_search_path): New global variable.
5489         (include_path_append): Removed.
5490         (main): Use `include_search_path.command_line_dir' to handle `-I'.
5491         (do_file): Simplify, using new
5492         `include_search_path.open_file_cautious'.
5494         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5495         parameter.
5496         (main): Pass arguments to `-I' to both troff and devices.
5497         Improve handling of `-V'.
5498         * src/roff/groff/groff.man: Document changes to -I and -V.
5500         * src/roff/troff/input.cpp (include_search_path): New global
5501         variable.
5502         (next_file, source, ps_bbox_request, transparent_file,
5503         process_input_file): Use new
5504         `include_search_path.open_file_cautious'.
5505         (main) Handle `-I' switch.
5506         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5507         Use new `include_search_path.open_file_cautious'.
5508         * src/roff/troff/node.h: New extern symbol `include_search_path'.
5509         * src/roff/troff/troff.man: Document new `-I' switch.
5511 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
5513         Support multiple calls of .Lb in LIBRARY section.
5515         * tmac/doc-common (doc-in-library-section): New register.
5516         (doc-section-library): New string.
5517         (Sh): Set `doc-in-library-section'.
5518         (Rd): Updated.
5519         * tmac/doc-syms (Lb): Insert breaks before and after arguments
5520         if in LIBRARY section.
5521         * tmac/doc.tmac (doc-save-global-vars): Updated.
5522         * NEWS, tmac/groff_mdoc.man: Updated.
5524 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
5526         * tmac/doc-common (doc-default-operating-system): New variable.
5527         (Os): Use it.
5529 2003-09-08  Werner LEMBERG  <wl@gnu.org>
5531         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
5533 2003-08-31  Werner LEMBERG  <wl@gnu.org>
5535         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
5536         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
5537         $(DEVFILES) are not empty.
5538         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
5540 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
5542         * src/preproc/refer/ref.cpp (reference::compute_sort_key): Always
5543         insert SORT_SEP.  With certain combinations of sort specifications,
5544         refer sorted entries in the wrong order.  In particular, entries
5545         with a missing field should be be sorted before all entries that
5546         have that field, before refer looks to the next field.
5548 2003-08-23  Werner LEMBERG  <wl@gnu.org>
5550         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
5551         g++ linker is used.  Reported by Mark J. Reed
5552         <mark.reed@turner.com>.
5554 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5556         Add key character `x' to tbl which makes tbl call a user-defined
5557         macro on a table cell.
5559         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
5560         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
5561         `set_modifier' after printing the compatibility request.
5562         (set_modifier): Print call to `m->macro' if not empty.
5563         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
5564         `macro'.
5565         (process_format): Implement cases `x' and `X'.
5566         * src/preproc/tbl/tbl.man, NEWS: Updated.
5568 2003-08-15  Werner LEMBERG  <wl@gnu.org>
5570         * doc/groff.texinfo: Minor fixes.
5572 2003-08-09  Werner LEMBERG  <wl@gnu.org>
5574         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
5576 2003-08-07  Werner LEMBERG  <wl@gnu.org>
5578         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
5579         argument list to nothing if there is no file to match.  Use `ls' as
5580         a protection, similar to autoconf.
5582         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
5583         empty argument lists.
5585         * doc/groff.texinfo: Improve documentation how vertical spacing
5586         and line breaks interact.
5587         Other minor fixes.
5589         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
5591 2003-08-03  Werner LEMBERG  <wl@gnu.org>
5593         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
5594         EPS (using eps2eps or similar programs to compute the bounding box).
5596 2003-07-24  Werner LEMBERG  <wl@gnu.org>
5598         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
5599         * doc/texinfo.tex: Updated from texinfo 4.6.
5600         * README.CVS: From now on we need texinfo 4.6.
5602 2003-07-23  Werner LEMBERG  <wl@gnu.org>
5604         Add requests `dei1' and `ami1' for completeness.
5606         * src/roff/troff/input.cc (calling_mode): Remove
5607         CALLING_DISABLE_COMP.
5608         (comp_mode): New enumeration.
5609         (do_define_string, define_string, define_nocomp_string,
5610         append_string, append_nocomp_string): Updated.
5611         (do_define_macro): Add third parameter.
5612         (define_macro, define_nocomp_macro, define_indirect_macro,
5613         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
5614         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
5615         functions.
5616         (ignore): Updated.
5617         (init_input_requests): Add `dei1' and `ami1'.
5619         * tmac/trace.tmac: Handle de1 and am1.
5620         (de): Improve tracing message.
5621         (am): Add missing `do'.
5622         (return): Use de1.
5624         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5625         Document new requests.
5627 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5629         Add option -G to .MPIMG to insert a gap between text and the image.
5631         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
5632         www-finish-left-ll): Updated.
5633         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
5634         (MPIMG): Make option -L and -R optional.
5635         Implement option -G.
5637 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
5639         * src/devices/grohtml/post-html.cpp
5640         (html_printer::do_file_components): Don't use `stdout' as lvalue
5641         since it can be a macro.
5643 2003-07-22  Werner LEMBERG  <wl@gnu.org>
5645         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
5646         the corresponding test in aclocal.m4.
5648 2003-07-21  Werner LEMBERG  <wl@gnu.org>
5650         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
5651         names but RGB values directly.  Otherwise pnmtopng depends on
5652         an external file `rgb.txt' which maps colour names to values.
5654 2003-07-20  Werner LEMBERG  <wl@gnu.org>
5656         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
5657         * configure, src/include/config.hin: Regenerated.
5659         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
5661 2003-07-19  Werner LEMBERG  <wl@gnu.org>
5663         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
5665 2003-07-18  Werner LEMBERG  <wl@gnu.org>
5667         * *.man: Switch to non-compatibility mode temporarily if GNU
5668         syntax extensions are used in the particular man page.
5670         * PROBLEMS: Add solutions for SGR problems.
5672 2003-07-17  Werner LEMBERG  <wl@gnu.org>
5674         Don't ignore grotty's command line options if \X'tty: sgr ...' is
5675         used to change the drawing scheme.
5677         * src/devives/grotty/tty.cpp (bold_flag_option,
5678         underline_flag_option, italic_flag_option, reverse_flag_option,
5679         bold_underline_mode_option): New global variables.
5680         (update_options): New function.
5681         (tty_printer::special): Call update_options.
5682         (main): Don't set xxx_flag but xxx_flag_option, then call
5683         update_options.
5685 2003-07-14  Werner LEMBERG  <wl@gnu.org>
5687         Make grotty emit proper Unicode box drawing characters for -Tutf8.
5689         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
5690         values.
5691         (hline_char, vline_char): New global variables.
5692         (tty_printer::tty_printer): Initialize them.
5693         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
5694         horizontal and vertical lines.
5695         (crossings): New global array.
5696         (tty_printer::end_page): Use it to determine the proper crossing
5697         character for -Tutf8.
5699 2003-07-12  Werner LEMBERG  <wl@gnu.org>
5701         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
5702         (HTMLDOCFILES): Revert to `pic.html'.
5703         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
5705 2003-07-11  Werner LEMBERG  <wl@gnu.org>
5707         * doc/pic.ms: Improve documentation of absolute coordinates.
5708         Document absolute positioning of pictures.
5710         * NEWS: Add new pic capability.
5712 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
5714         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
5715         Rewritten.
5717 2003-07-07  Werner LEMBERG  <wl@gnu.org>
5719         Implement support for dashed and dotted ellipses in pic.  Based on
5720         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
5722         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
5723         common_output::dashed_ellipse, common_output::dotted_ellipse): New
5724         functions.  Ellipse arcs are approximated with circle arcs.
5725         * src/preproc/pic/common.h (common_output): Updated.
5726         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
5727         functions.
5728         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
5730         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
5732 2003-07-06  Werner LEMBERG  <wl@gnu.org>
5734         Make grotty work on platforms which have unsigned char as the
5735         default for char.  Based on a patch by Thomas Klausner
5736         <wiz@netbsd.org>.
5738         * src/devices/grotty/tty.cpp (schar): New typedef.
5739         Updated calls to declare_ptable and implement_ptable.
5740         (glyph): Use schar for back_color_idx and fore_color_idx.
5741         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
5742         (tty_printer::tty_color, tty_printer::tty_printer,
5743         tty_printer::color_to_idx, tty_printer::put_color): Updated.
5745 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5747         * src/roff/nroff/nroff.sh: Add option -d for completeness.
5748         * src/roff/nroff/nroff.man: Updated.
5750 2003-07-05  Werner LEMBERG  <wl@gnu.org>
5752         * NEWS, tmac/groff_www.man: Updated.
5753         * doc/Makefile.sub: Updated.
5755 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
5757         Implement support for multiple HTML output files.
5759         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
5760         -j command line option.
5762         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
5763         global variables.
5764         (file): New fields `new_output_file', `require_links',
5765         `output_file_name'.
5766         (file::file): Updated.
5767         (files::set_file_name, files::set_links_required,
5768         files::are_links_required, files::is_new_output_file,
5769         files::file_name, files::next_file_name): New functions.
5770         (header_desc): New fields `no_of_level_one_headings',
5771         `header_filename'.
5772         (header_desc::header_desc): Updated.
5773         (header_desc::write_headings): Handle multiple files.
5774         (html_printer::write_header): Save file name in which header occurs.
5775         (html_printer::determine_header_level): Possibly split files on
5776         level one headings.
5777         (html_printer::do_links, html_printer::troff_tag): Updated.
5778         (html_printer::insert_split_file, html_printer::do_job_name,
5779         html_printer::emit_link, html_printer::write_navigation,
5780         html_printer::do_file_components): New functions.
5781         (html_printer::~html_printer): Handle multiple files.
5782         (main): Handle command line option `-j'.
5784         * src/devices/grohtml/grohtml.man: Updated.
5786         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
5787         which splits file.
5789         * tmac/www.tmac (JOBNAME): New macro.
5790         * tmac/s.tmac (SH-NO-TAG): New macro.
5791         (@SH): Call SH-NO-TAG.
5792         (@NH): Updated.
5794 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5796         * tmac/groff_mdoc.man: Improve documentation of punctuation
5797         characters.
5799 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
5801         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
5803 2003-07-03  Werner LEMBERG  <wl@gnu.org>
5805         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
5807 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
5809         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
5810         after `/*' and `*/'.
5811         Fix spacing.
5812         (Fn, Fo): Reduce indentation in synopsis.
5814         * tmac/doc-common (doc-check-depth): New macro.
5815         (doc-end-macro, Sh, Ss): Use it.
5816         (Cd): Fix behaviour in synopsis.
5817         (In): Make it parsed and callable.
5818         If not in the synopsis, represent the C header file enclosed in
5819         angle brackets.
5820         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
5821         Use minus, not hyphen.
5823         * tmac/groff_mdoc.man: Updated.
5825 2003-07-01  Werner LEMBERG  <wl@gnu.org>
5827         Integrated grap2graph, contributed by Eric S. Raymond.
5829         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
5830         New files.
5831         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
5832         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
5834 2003-07-01  Colin Watson  <cjwatson@debian.org>
5836         * src/xditview/*.c: Add prototypes, fix return types, add includes.
5837         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
5839 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
5841         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
5843 2003-06-31  Werner LEMBERG  <wl@gnu.org>
5845         * doc/Makefile.sub (CLEANADD): Remove all files created by
5846         running `make groff.{pdf,dvi}'.
5848         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
5849         src/xditview also.
5851 2003-06-30  Werner LEMBERG  <wl@gnu.org>
5853         * Makefile.in (SHELL): Define as @SHELL@.
5854         (mkinstalldirs): Use $(SHELL).
5855         (MDEFINES): Add $(SHELL).
5856         * Makefile.comm (SHELL): Removed.
5858 2003-06-29  Werner LEMBERG  <wl@gnu.org>
5860         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
5861         The X11 documentation files use them.
5862         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
5864 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
5866         * tmac/e.tmac (@C): Handle .ad also.
5868 2003-06-12  Werner LEMBERG  <wl@gnu.org>
5870         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
5872         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
5873         Assign `n' even here.  It is possible to construct a node
5874         immediately following an escape character:
5876           .di xx
5877           \?\\\?a
5878           .br
5879           .di
5880           .xx
5882 2003-06-10  Werner LEMBERG  <wl@gnu.org>
5884         * README.WIN32: Removed.
5885         * MANIFEST: Updated.
5887 2003-06-07  Werner LEMBERG  <wl@gnu.org>
5889         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
5891 2003-06-05  Werner LEMBERG  <wl@gnu.org>
5893         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
5894         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
5896 2003-06-03  Werner LEMBERG  <wl@gnu.org>
5898         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
5899         is done by the calling function.
5901 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
5903         * tmac/X.tmac: Fix definition of `em'.
5905 2003-05-22  Werner LEMBERG  <wl@gnu.org>
5907         * src/roff/troff/input.cc (return_macro_request): Fix detection of
5908         argument.
5910 2003-05-18  Werner LEMBERG  <wl@gnu.org>
5912         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
5913         to make items work which consist only of a tag.
5915 2003-05-17  Werner LEMBERG  <wl@gnu.org>
5917         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
5918         aren't stretched in a tag (this can fail with unformatted boxes).
5919         Instead, insert a break and go back one line.
5921 2003-05-16  Werner LEMBERG  <wl@gnu.org>
5923         * src/roff/troff/input.cc (return_macro_request): If called with
5924         argument pop macro twice.  We need this to trace `return'.
5926         * tmac/trace.tmac: Handle `return'.
5927         Fix typos.
5929         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5930         Document.
5932 2003-05-15  Larry Kollar  <kollar@alltel.net>
5934         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
5935         registers `FPS', `FVS', and `FPD'.
5937 2003-05-15  Werner LEMBERG  <wl@gnu.org>
5939         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
5940         correctly.
5942 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
5944         * tmac/groff_mdoc.man: Slight improvements.
5946 2003-05-03  Werner LEMBERG  <wl@gnu.org>
5948         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
5949         `doc-header-space' after header line if register `cR' is set.
5951 2003-05-02  Werner LEMBERG  <wl@gnu.org>
5953         * TODO: Updated.
5955 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
5957         * tmac/doc-common (Nd): Use \[em].
5959 2003-05-01  Werner LEMBERG  <wl@gnu.org>
5961         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
5962         doc-footer-space): Initialize to 0.5i.
5963         (doc-setup-page-layout): Don't set doc-header-space and
5964         doc-footer-space.
5966 2003-04-30  Werner LEMBERG  <wl@gnu.org>
5968         * REVISION: Set to 1.
5970         * doc/pic.ms: Document possible problems with `figname'.
5972 2003-04-29  Werner LEMBERG  <wl@gnu.org>
5974 Version 1.19 released
5975 =====================
5977         * VERSION: Set to 1.19.
5978         * REVISION: Set to 0.
5979         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
5981         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
5982         Define charset as `US-ASCII' in html output.
5984         * tmac/www.tmac (ULE): Add missing scaling indicator.
5986         * win32-diffs: Removed.
5988 2003-04-28  Werner LEMBERG  <wl@gnu.org>
5990         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
5991         `.da' and `.boxa'.
5992         Document how to insert discardable whitespace with `.ss'.
5994 2003-04-27  Werner LEMBERG  <wl@gnu.org>
5996         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
5997         work with plain TeX also.
5999         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
6001 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
6003         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6004         Use a loose DTD.
6006 2003-04-24  Werner LEMBERG  <wl@gnu.org>
6008         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
6009         vbox with positive height and zero depth if in TeX mode.
6011         * NEWS: Document glyph name changes for grodvi and grolj4.
6013 2003-04-23  Werner LEMBERG  <wl@gnu.org>
6015         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
6016         * doc/pic.ms: Fixed.
6018 2003-04-21  Werner LEMBERG  <wl@gnu.org>
6020         HP-UX 10.20 has `snprintf' but it isn't declared.
6022         * configure.ac: Add declaration test for snprintf.
6023         * configure: Regenerated.
6024         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
6025         * src/include/config.hin: Regenerated.
6027 2003-04-19  Werner LEMBERG  <wl@gnu.org>
6029         Add keyword `figname' to pic, specifying the name of the picture
6030         box in TeX mode.  Based on a patch from William J Poser
6031         <wjposer@unagi.cis.upenn.edu>.
6033         * src/preproc/pic/pic.y: New token `FIGNAME'.
6034         (macro_name): New rule of type <str>.
6035         (placeless_element): Handle `FIGNAME'.
6036         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
6037         * src/preproc/pic/main.cpp (graphname): New global variable.
6038         (do_picture): Initialize `graphname'.
6039         * src/preproc/pic/pic.h: Updated.
6040         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
6041         `graphname'.
6042         Simplify TeX code.
6043         (tex_output::text): Beautify output.
6044         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
6045         `shaded' and `outlined' unconditionally.
6046         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
6047         Minor improvements.
6049         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
6050         greater is necessary.
6052 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
6054         Add option -r to soelim to avoid emission of `.lf' lines.
6055         Add option -t to produces TeX comment lines instead of `.lf' lines.
6057         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
6058         and `tex_flag'.
6059         (usage): Updated.
6060         (main): Handle `-r' and `-t'.
6061         (set_location): Handle `raw_flag' and `tex_flag'.
6062         * src/preproc/soelim/soelim.man, NEWS: Updated.
6064 2003-04-17  Werner LEMBERG  <wl@gnu.org>
6066         * tmac/hyphenex.sh: Replaced with...
6067         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
6068         nightmares.
6070         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
6071         if --quiet is used for the configure script.
6072         * configure: Regenerated.
6074 2003-04-16  Werner LEMBERG  <wl@gnu.org>
6076         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
6077         Add `const' to second argument.
6078         (html_printer::add_table_end): Add `const' to argument.
6079         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
6080         `const' to arguments.
6081         * src/devices/grohtml/html-text.h: Updated.
6083         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
6084         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
6085         argument.
6087         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
6088         cast for integer constant.
6090         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
6091         (writeNbytes): Add `const' to first argument.
6092         (writeString): Add `const' to argument.
6093         (char_buffer::can_see): Add `const' to third argument.
6094         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
6095         `const' to argument.
6096         * src/preproc/html/pushback.h: Updated.
6098         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
6099         (include_path_append): Add `const' to argument.
6100         (do_file): Updated.
6102         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
6103         for `value'.
6104         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
6105         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
6106         for `value'.
6107         (unicode_decompose_init::unicode_decompose_init): Updated.
6108         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
6109         for `value'.
6110         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
6111         * src/roff/troff/input.cc (process_startup_file): Add `const' to
6112         argument.
6114         * tmac/hyphenex.sh: Make script more portable by using a here
6115         document.
6117 2003-04-15  Werner LEMBERG  <wl@gnu.org>
6119         Renamed all `*.cc' files to `*.cpp'.
6120         Updated all configuration files, makefiles, and documentation.
6122 2003-04-14  Werner LEMBERG  <wl@gnu.org>
6124         * tmac/hyphenex.sh: Slight improvements.
6126 2003-04-13  Werner LEMBERG  <wl@gnu.org>
6128         * font/devascii/R.proto, font/devcp1037/R.proto,
6129         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
6130         character slots with unnamed glyphs.
6132         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
6133         (an-first): New global variable.
6134         (an-header): Emit vertical space between multiple man pages.
6136 2003-04-11  Werner LEMBERG  <wl@gnu.org>
6138         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
6139         values.
6141 2003-04-10  Werner LEMBERG  <wl@gnu.org>
6143         * PROBLEMS: Revised.
6145 2003-04-10  Bernd Warken  <bwarken@mayn.de>
6147         * doc/webpage.ms: Improved.
6149 2003-04-09  Werner LEMBERG  <wl@gnu.org>
6151         Add register \n[.height] which returns the value of \H.
6152         Add register \n[.slant] which returns the value of \S.
6154         * src/roff/troff/env.cc (init_env_requests): Implement.
6155         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6156         Document.
6158 2003-04-08  Werner LEMBERG  <wl@gnu.org>
6160         * tmac/html.tmac: Move some of the data into html-end.tmac.
6161         Remove most of the character translations for eqn since html fonts
6162         now cover those characters.
6163         Load www.tmac.
6164         * tmac/html-end.tmac: New file.
6165         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
6166         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
6167         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
6169 2003-04-07  Werner LEMBERG  <wl@gnu.org>
6171         * man/groff_out.man: Document negative values of `N' if -Thtml is
6172         used.
6174 2003-04-06  Werner LEMBERG  <wl@gnu.org>
6176         * Makefile.comm (depend.temp): Check location of YTABC.
6178 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6180         * doc/Makefile.in (TROFFBIN): New variable for troff
6181         binary path.
6182         (GROFFBIN): New variable for groff binary path.
6183         (groff_bin_path): Rename to GROFF_BIN_PATH.
6184         (TROFF): Use TROFFBIN.
6185         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6186         * doc/Makefile.sub (GROFFBIN): New variable for groff
6187         binary path.
6188         (groff_bin_path): Rename to GROFF_BIN_PATH.
6189         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6191         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
6192         with INSTALL_SCRIPT.
6193         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
6194         * Makefile.dev (all): Depend on DEVSCRIPTS.
6195         (install_dev): Likewise.
6196         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
6197         scripts.
6198         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
6199         (DEVGENSCRIPTS): New variable to hold generated scripts.
6201 2003-04-05  Werner LEMBERG  <wl@gnu.org>
6203         * src/libs/libdriver/input.cc (IntArray::operator[],
6204         IntArray::get_data): Remove meaningless `const' in return value.
6206         * README.CVS: New file.
6208 2003-04-04  Werner LEMBERG  <wl@gnu.org>
6210         Check for stdint.h in C++, not in C.
6212         * aclocal.m4 (GROFF_STDINT_H): New function,
6213         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6214         AC_CHECK_HEADERS.
6215         * configure, src/include/config.hin: Regenerated.
6216         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6219         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
6220         with a negative value, representing the width of the unbreakable
6221         space (only for -Thtml).  grohtml then converts this back to
6222         &nbsp; and uses the value of N as its width.
6224         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6225         unbreakable_space_node::tprint): Emit `N-<width>'.
6226         * src/include/printer.h (printer::set_numbered_char): Make it
6227         virtual.
6228         Make members `font_table' and `nfonts' protected instead of private.
6229         * src/devices/grohtml/post-html.cc
6230         (html_printer::set_numbered_char): New member function.
6233         * src/libs/libgroff/maxfilename.cc:
6234         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6236         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6237         emit word marker.
6239 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
6241         * man/roff.man: Small fixes.
6243 2003-04-03  Werner LEMBERG  <wl@gnu.org>
6245         Make groff independent from locale's numeric settings.
6247         * configure.ac: Check for `setlocale'.
6248         * configure, src/include/config.hin: Regenerated.
6250         * src/include/lib.h: Handle HAVE_SETLOCALE.
6252         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6253         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6254         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6257         * doc/groff.texinfo: Change dir category to `Typesetting'.
6258         (Man font macros): Mention that there is no space between arguments
6259         of .BI and friends.
6261         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6262         (*printer::change_color, *printer::change_fill_color): Add missing
6263         `const'.
6265 2003-04-02  Werner LEMBERG  <wl@gnu.org>
6267         * src/devices/grohtml/html-table.cc (html_table::emit_col,
6268         html_table::is_gap): Compute table widths after converting border
6269         positions to avoid rounding errors.
6271 2003-04-01  Werner LEMBERG  <wl@gnu.org>
6273         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6274         `space_emitted' properly.
6276 2003-03-31  Werner LEMBERG  <wl@gnu.org>
6278         * src/devices/grohtml/html-table.cc: Fix column width calculation.
6279         (html_table::set_linelength): Don't add 1.
6280         (html_table::add_indent): Don't subtract 1.
6282         * tmac/html.tmac: Set default page offset to zero.
6284 2003-03-30  Werner LEMBERG  <wl@gnu.org>
6286         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
6288         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6289         unbreakable_space_node::tprint): New functions.
6290         (troff_output_file): Make space_char_hmotion_mode::tprint and
6291         unbreakable_space_node::tprint to friends.
6292         * src/roff/troff/node.h: Updated.
6294         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
6295         in the HTML standard).
6297 2003-03-29  Werner LEMBERG  <wl@gnu.org>
6299         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6300         Otherwise, the following code
6302           .di xxx
6303           .ps 10
6304           a
6305           .br
6306           .di
6307           x\*[xxx]
6309         produces `x a' instead of `xa'.  This is a temporary fix, disabling
6310         font changes in diversions for -Thtml.
6312         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6313         `HTML-TAG'.
6314         (an-do-tag-html): Merge with ...
6315         (an-do-tag): This macro.
6316         Change code slightly to circumvent grohtml bug.
6317         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6319         * src/devices/grohtml/html-table.cc (html_table::emit_col,
6320         html_table::is_gap): Round `width' properly.
6322         * tmac/html.tmac: Provide some default layout parameters for
6323         grohtml.
6325         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6326         command.
6328 2003-03-28  Werner LEMBERG  <wl@gnu.org>
6330         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6332 2003-03-27  Werner LEMBERG  <wl@gnu.org>
6334         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6335         defined.
6337 2003-03-20  Werner LEMBERG  <wl@gnu.org>
6339         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6340         `.vs'.
6341         * doc/groff.texinfo: Updated.
6343 2003-03-19  Werner LEMBERG  <wl@gnu.org>
6345         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6346         TOKEN_END_TRAP>: Reset `have_input'.
6348 2003-03-18  Werner LEMBERG  <wl@gnu.org>
6350         * src/roff/groff/groff.man: Mention groff_trace man page.
6352 2003-03-16  Werner LEMBERG  <wl@gnu.org>
6354         * Makefile.in (LIBEXT): New variable to indicate the file extension
6355         of library files.  Computed heuristically from $(OBJEXT).
6356         (MDEFINES): Add $(LIBEXT).
6357         * Makefile.lib, Makefile.comm: Use it.
6359         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
6360         overlong lines into smaller chunks.
6361         (get_binary): New function.
6362         (main): Use them.
6363         * src/utils/pfbtops/pfbtops.man: Updated.
6365 2003-03-15  Colin Watson  <cjwatson@debian.org>
6367         * src/roff/groff/groff.man: Minor syntax fix.
6369 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
6371         * src/devices/grops/ps.cc (ps_printer::media_set,
6372         ps_printer::~ps_printer): Handle zero paper width and length.
6374 2003-03-13  Werner LEMBERG  <wl@gnu.org>
6376         Add options -p and -l to grodvi.
6378         * src/devices/grodvi/dvi.cc: Include paper.h.
6379         (landscape_flag, user_paper_length, user_paper_width): New global
6380         variables.
6381         (dvi_printer::begin_page): Emit `papersize' special.
6382         Set color after initialization of `cur_h' and `cur_v'.
6383         (main): Add options `-l' and `-p'.
6384         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6385         * src/devices/grodvi/grodvi.man, NEWS: Updated.
6387         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6389 2003-03-12  Werner LEMBERG  <wl@gnu.org>
6391         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6392         * man/groff_tmac.man: This man page.
6393         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6394         deprecated.
6396         * tmac/X.tmac: Don't load pspic.tmac.
6398 2003-03-11  Werner LEMBERG  <wl@gnu.org>
6400         Make variable `pr' local to libdriver/input.cc.  Based on a patch
6401         by Bernd Warken <bwarken@mayn.de>.
6403         * src/include/driver.h (pr): Removed.
6405         * src/libs/libdriver/input.cc (pr): New global variable.
6406         (do_file): Deallocate `pr'.
6407         * src/libs/libdriver/printer.cc (pr): Removed.
6409         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6410         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6411         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6412         (main): Don't delete `pr'.
6414 2003-03-10  Werner LEMBERG  <wl@gnu.org>
6416         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6417         * tmac/papersize.tmac: New file.
6418         * tmac/troffrc: Include `papersize.tmac'.
6419         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6420         * tmac/an-old.tmac: Set LT to LL by default.
6422         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6423         doc/groff.texinfo: Updated.
6425         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6426         bug which caused all odd iso papers to have wrong dimensions.
6428         * src/devices/grops/ps.cc (user_paper_width): New global variable.
6429         (main) <'p'>: Set `user_paper_width' also.
6430         (ps_printer::media_width, ps_printer::media_height): Use values
6431         given with option `-p'.
6433 2003-03-09  Werner LEMBERG  <wl@gnu.org>
6435         * src/include/nonposix.h: Provide default for SET_BINARY.
6437         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6438         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6439         unconditionally.
6441         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6442         (main): Treat \r\n as \n.
6444 2003-03-08  Werner LEMBERG  <wl@gnu.org>
6446         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6447         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6449 2003-03-07  Werner LEMBERG  <wl@gnu.org>
6451         Added support to access more than 256 glyphs in Type 1 fonts.
6453         * src/devices/grops/ps.cc (subencoding): New structure.
6454         (style): Add `sub' field.
6455         Updated all users.
6456         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6457         Add `set_subencoding', `get_subfont' and `encode_subfont' member
6458         functions.
6459         Updated all users.
6460         (ps_printer::set_char): Use `set_subencoding'.
6461         (make_subencoding_name): New function.
6462         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6463         (ps_printer::~ps_printer): Emit subencoding definitions.
6465         * src/devices/grops/psrm.cc (valid_input_table): New array to
6466         properly support EBCDIC.
6467         (white_space): Add `\f'.
6468         (ps_get_line): Change first argument to be of type `string &'.
6469         Updated all callers.
6470         This allows to get lines of arbitrary length.
6471         Use `valid_input_table'.
6472         Remove warning about non-conforming PS line length.  This seems
6473         not to be of great importance -- for example, dvips don't emit
6474         a warning either.
6475         (PS_LINE_MAX): Removed.
6476         (matches_comment): Change first argument to be of type `string &'.
6478         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6480         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6481         %AGL_to_unicode, %default_ligatures): New hash tables.
6482         Read all map entries.
6483         Add unencoded characters.
6484         Check for default ligatures if there are no `L' entries.
6485         Print all kern entries.
6486         Print all characters in charset.
6487         * src/utils/afmtodit/afmtodit.man: Updated.
6489         * font/devps/*: Regerated all fonts.
6491         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6492         of characters, just use `.trin'.  Otherwise the mapping depends
6493         on the font encoding.
6494         * tmac/ps.tmac: Add `fi' and `fl'.
6495         Improve `Fi' and `Fl'.
6496         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6497         * tmac/Xps.tmac: Fix `em'.
6499         * NEWS: Updated.
6501 2003-03-04  Werner LEMBERG  <wl@gnu.org>
6503         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6504         `have_input'.
6506 2003-03-03  Werner LEMBERG  <wl@gnu.org>
6508         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6510         * font/devps/generate/textmap: Remove entry `similarequal'.
6511         * font/devps/symbolmap: Updated.
6513 2003-03-02  Werner LEMBERG  <wl@gnu.org>
6515         * src/libs/libgroff/font.cc (font::load): Fix error message for
6516         bad character type.
6518         * src/devices/grops/grops.man: Improve documentation of the -b
6519         flag.
6521         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
6522         `ascii' and `cp1047'.
6524 2003-03-01  Werner LEMBERG  <wl@gnu.org>
6526         Document composite glyphs and the `composite' request.
6528         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
6530 2003-02-28  Werner LEMBERG  <wl@gnu.org>
6532         * font/devdvi/generate/ec.map: Add some more Unicode entities.
6533         * font/devdvi/*EC: Updated.
6535         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
6536         * tmac/latin1 (latin1-tr): Undo any previous mapping.
6537         * tmac/troffrc: Load `composite.tmac'.
6538         * tmac/Makefile.sub (NORMALFILES): Updated.
6540         * doc/groff.texinfo (Input Encodings): New section.
6541         * NEWS: Updated.
6543 2003-02-27  Werner LEMBERG  <wl@gnu.org>
6545         * doc/texinfo.tex: New version 2003-02-11.06.
6547         * tmac/doc-common (Dt): Don't emit warning for unknown section.
6548         * tmac/groff_mdoc.man: Fix description of `Dt'.
6550 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
6552         * font/devps/prologue.ps: Fix for included Postscript that does
6553         a setpagedevice -- which is now safely ignored.
6555         * NEWS: Updated.
6557         * src/devices/grops/ps.cc: Now sets the page size in the generated
6558         document.  This is done in two ways: Via a %%-comment for gv and
6559         the like, and via a PageSize and setpagedevice for programs that
6560         understands Postscript proper, like ps2pdf.
6562         * src/devices/grops/ps.h: New broken-flag to avoid page size
6563         definition, if required.
6565         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
6567         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
6568         Not really necessary due to the fix in prologue.ps, but cleaner:
6569         Such information does not belong in an .eps file.
6571         * doc/Makefile.sub: See doc/Makefile.in.
6573 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
6575         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
6576         instead of P1 since the latter is broken in some versions of netpbm.
6577         * configure: Updated.
6579 2003-02-26  Larry Kollar  <kollar@alltel.net>
6581         Make man pages more customizable.
6583         * tmac/an-old.tmac (FT): New register holding footer distance from
6584         bottom.
6585         (HF): New string holding the default heading font.
6586         (TH): Handle registers `IN' and `SN' set on the command line.
6587         Use `FT'.
6588         (PT, BT): New strings to customize header and footer lines.
6589         (an-header, an-footer): Use them.
6590         (SH, SS): Use `HF'.
6591         * tmac/groff_man.man: Document changes.
6593         * doc/groff.texinfo: Document man changes.
6594         Document Ultrix extensions of man.
6596 2003-02-26  Werner LEMBERG  <wl@gnu.org>
6598         * src/roff/troff/input.cc (do_width, do_if_request): Reset
6599         `have_input' after changing back to old environment.
6601         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
6602         function up to be defined before first call.  This is necessary to
6603         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
6605         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
6606         the default font directory also.  Based on a patch from James
6607         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
6608         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
6609         * src/utils/afmtodit/afmtodit.man: Document it.
6611         * NEWS: Updated.
6613         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
6615 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
6617         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
6618         (GROFF_PNMTOPS_NOSETPAGE): New macro.
6619         * configure.ac: Use it.
6620         * configure: Regenerated.
6621         * Makefile.in: Updated.
6623         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
6624         (CLEANADD): Add www.tmac-sed.
6625         (pnmtops_nosetpage): Define default.
6626         (install_data): Handle www.tmac-sed and substitute
6627         @PNMTOPS_NOSETPAGE@.
6628         (stamp-sed): Add www.tmac.
6629         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
6630         It now breaks URLs at suitable places.
6631         (www:substring_ok): New register set by...
6632         (www:@test_substring): New macro.
6633         (www:error): New alias to www-error.
6634         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
6635         New macros.
6636         (URL): Use www:url_breaks.
6637         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
6638         (CDS, CDE): New macros.
6640 2003-02-25  Werner LEMBERG  <wl@gnu.org>
6642         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
6643         buffer overflow.
6645 2003-02-24  Werner LEMBERG  <wl@gnu.org>
6647         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
6648         can be negative also.
6650         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
6651         `int16'.
6652         (read_char_table): Avoid negative ascenders.
6653         (output_charset): Add cast.
6654         * font/devlj4/*: Regenerated.
6656         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
6657         possible.
6659         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
6660         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
6661         of `<>'.
6662         * font/devdvi/*: Regenerated.
6664         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
6665         normal width, while the previously used characters (U+2329 and
6666         U+232A) are classified as wide due to canonical equivalence with the
6667         CJK punctuation characters U+3008 and U+3009.
6669         * font/devutf8/R.proto: Updated.
6670         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
6672         * man/groff_char.man: Simplify handling of table traps by
6673         introducing `start block' and `end block' macros.
6674         (Ns, Ne, 2s, 2e, Ds, De): New macros.
6675         (DL): Make it work with Unix troff also.
6676         Fix code values of `la' and `ra'.
6678         * tmac/dvi.tmac: Define `<>' for CW and CWI.
6680 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
6682         * src/devices/grohtml/post-html.cc (element_list::~element_list):
6683         New destructor, fixing a major memory leak.
6685 2003-02-22  Werner LEMBERG  <wl@gnu.org>
6687         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
6688         to be in conformance with Unicode 3.0 and newer.
6690         * font/devlj4/generate/text.map: Add `Eu'.
6691         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
6692         * font/devlj4/S: Regenerated.
6694         * man/groff_char.man: Completely rewritten.
6696         * doc/groff.texinfo: Fix description of request and macro arguments.
6698 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
6700         Valgrind fixes.
6702         * src/devices/grohtml/html-table.cc (html_table::~html_table):
6703         Deallocate `columns' list.
6704         * src/devices/grohtml/post-html.cc (char_block::~char_block):
6705         New destructor.
6706         (text_glob::text_glob_html, text_glob::text_glob_special,
6707         text_glob::text_glob_line, text_glob::text_glob_auto_image,
6708         text_glob::text_glob_tag): Avoid memory leaks.
6709         (text_glob::remember_table): Free memory before reassigning.
6711 2003-02-19  Werner LEMBERG  <wl@gnu.org>
6713         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
6714         alias `hbar'), the Planck constant over two pi.
6716         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
6717         `+e' for position 34.
6718         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
6719         `u2662' and `u2661'.
6720         * font/devdvi/{MI,S}: Regenerated.
6721         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
6722         * font/devlbp/*: Add `hbar' alias.
6723         * font/devlj4/generate/special.map: Ditto.
6724         * font/devlj4/S: Regenerated.
6725         * font/devps/generate/symbolchars: Add `+e'.
6726         * font/devps/generate/textmap: Fix PS name for `-h'.
6727         Add `hbar' alias.
6728         * font/devps/symbolmap: Regenerated.
6730         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
6732         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
6733         `-h', `hbar'.
6734         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
6735         `-h'.
6737         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
6738         `hbar'.
6739         * tmac/tty-char.tmac: Add `+e'.
6741 2003-02-17  Werner LEMBERG  <wl@gnu.org>
6743         Another round trying to really fix problems with `have_input'.
6745         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
6746         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
6748         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
6749         handling if both foreground and background colors are default.
6751         * doc/groff.texinfo (Debugging): Document .lf differences to
6752         AT&T troff.
6754 2003-02-16  Werner LEMBERG  <wl@gnu.org>
6756         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
6757         null-bytes in created string.
6759         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
6760         alias_macro, lookup_request): Improve warning messages.
6762         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
6763         not `strdup'.
6764         Free `last_image_filename'.
6766         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
6767         `buffer'.
6768         (imageList::createPage, imageList::createImage): Use `free', not
6769         `a_delete'.
6770         (imageItem::~imageItem): Free `imageName'.
6771         (addRegDef): Use `strsave', not `strdup'.
6772         (get_resolution): Free `pathp'.
6774 2003-02-15  Werner LEMBERG  <wl@gnu.org>
6776         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
6777         to `dummy'.
6779 2003-02-14  Werner LEMBERG  <wl@gnu.org>
6781         Add memory management for colors to deallocate unnamed colors
6782         properly.
6784         * src/include/color.h (color): New members `free_list' and `next'.
6785         New member functions `new' and `delete'.
6786         Add destructor.
6787         * src/libs/libgroff/color.cc: Implement it.
6789         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
6790         for array size of new operator.
6792         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
6793         redundant comparison.
6795         * src/roff/troff/input.cc (word_space_node::reread,
6796         hmotion_node::reread): Avoid warning about unused parameter.
6797         (reset_output_registers): Remove redundant parameter.
6798         (define_color): Undo change 2003-02-12.
6800         * src/roff/troff/reg.h: Updated.
6802         * src/roff/troff/node.cc (troff_output_file::really_print_line,
6803         output_file::put_filename, real_output_file::really_put_filename,
6804         ascii_output_file::really_print_line,
6805         break_char_node::get_hyphen_list): Avoid warning about unused
6806         parameter.
6807         (suppress_node::tprint): Updated.
6809         * configure.ac: Check declaration for rand() and srand().
6810         * configure: Regenerated.
6812         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
6813         conditionally.
6814         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
6815         and srand().
6817         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
6818         to avoid compiler warnings.
6820         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
6821         unused.
6823         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
6824         is unused.
6825         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
6826         (unused) parameter.
6827         Updated all callers.
6829         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
6830         is unused.
6831         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
6832         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
6834         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
6835         Parameter is unused.
6836         (html_printer::add_table_end): Define parameter conditionally.
6837         * src/devices/grohtml/output.cc (simple_output::special): Parameter
6838         is unused.
6840         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
6841         (lbp_printer::set_char): Last parameter is unused.
6843         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
6845 2003-02-13  Werner LEMBERG  <wl@gnu.org>
6847         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
6848         Make \D'f ...' move horizontally again for backwards compatibility.
6849         Replace it with \D'Fg ...' where appropriate to avoid dependency
6850         on horizontal resolution.
6852         * src/roff/troff/input.cc (do_get_long_name): New function.
6853         (get_long_name): Call it.
6855         (read_draw_node): Handle `\D'Fx ...' by calling ...
6856         (read_color_draw_node): New function.
6858         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
6859         `end'.
6860         Pass it to `do_get_long_name' which is used instead of
6861         `get_long_name'.
6863         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
6864         unnecessary value guard.
6865         (parse_D_command) <'f'>: Add horizontal shift.
6867         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
6868         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6869         (FILL_MAX): Removed.
6871         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6872         Updated.
6874 2003-02-12  Werner LEMBERG  <wl@gnu.org>
6876         * src/roff/troff/input.cc (do_name_test, do_expr_test,
6877         do_zero_width): Push `\n' if closing delimiter is missing.
6879         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
6880         <'F'>: Make \F non-transparent at the beginning of line.
6881         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
6882         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
6883         `have_input'.
6885         (define_color): Free color in case of reassignment.
6887         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
6888         @DefescListEnd): Use @Var, not @var.
6889         Fix all calls.
6891         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
6893         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
6894         `shaded' and `outlined' arrays.
6895         (object_spec::object_spec): Initialize `shaded' and `outlined'.
6896         (graphic_object::set_fill_color, graphic_object::set_outline_color):
6897         Use strsave.
6898         (closed_object::set_fill_color): Ditto.
6899         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
6900         instead of strdup.
6901         (troff_output::reset_color): Use a_delete instead of free.
6902         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
6904 2003-02-11  Werner LEMBERG  <wl@gnu.org>
6906         * doc/groff.texinfo: Improve documentation of `ad'.
6907         Document that \D'f...' is dependent on the horizontal resolution.
6908         * man/groff_diff.man: Improve documentation of \D'f...'.
6910         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
6911         compensating \h'...' for \D'f ...' since the latter no longer moves
6912         current position.
6913         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6915 2003-02-10  Werner LEMBERG  <wl@gnu.org>
6917         Improve error messages for `x F' (and `F') commands.
6919         * src/include/error.h: Add declaration for
6920         `current_source_filename'.
6921         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
6922         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
6923         parameter for source file string.
6924         Updated all callers.
6926         * src/libs/libdriver/input.cc: Add `current_source_filename'.
6927         (remember_source_filename): New function.
6928         (parse_x_command <'F'>, do_file <'F'>): Use it.
6930 2003-02-09  Werner LEMBERG  <wl@gnu.org>
6932         Make grotty not emit warnings about unknown colors more than
6933         necessary.
6935         * src/devices/grotty/tty.cc: Include `ptable.h'.
6936         (TTY_MAX_COLORS): Removed.
6937         (DEFAULT_COLOR_IDX): Defined to -1.
6938         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
6939         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
6940         Change `tty_colors' to be a ptable.
6941         First arg of `put_color' is now `char'.
6942         New functions `make_rgb_string' and `tty_color'.
6943         (tty_printer::tty_printer): Use `tty_color'.
6944         (tty_printer::color_to_idx): Return value is now `char'.
6945         Use `tty_color'.
6947         * src/include/color.h (color): Add `print_color' member function.
6948         * src/libs/libgroff/color.cc (color::print_color): Implement it.
6950 2003-02-08  Werner LEMBERG  <wl@gnu.org>
6952         Valgrind fixes.
6954         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
6955         encoding file.
6957         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
6958         assume that value has been allocated with `new[]', thus use
6959         `a_delete' for deallocation.
6961         * src/libs/libdriver/input.cc (get_integer_arg,
6962         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
6963         where appropriate.
6965         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
6966         * src/libs/libgroff/nametoindex.cc
6967         (character_indexer::named_char_index): Use `new <type>[1]'.
6969         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
6970         <type>[1]'.
6971         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
6972         (split_text): Use `a_delete'.
6974         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
6975         <type>[1]'.
6977         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
6978         harmless memory leak.
6979         (hyphen_trie::read_patterns_file): Initialize `buf'.
6980         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
6981         Initialize `current_fill_color'and `current_glyph_color'.
6982         * src/roff/troff/glyphuni.cc
6983         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
6984         * src/roff/troff/uniuni.cc
6985         (unicode_decompose_init::unicode_decompose_init): Ditto.
6986         * src/roff/troff/uniglyph.cc
6987         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
6989 2003-01-26  Werner LEMBERG  <wl@gnu.org>
6991         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
6992         `access' before calling `unlink'.
6993         (do_file): Handle __EMX__.
6995         * src/include/nonposix.h: Handle __EMX__.
6997         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
6998         (fontpath,tmacpath): Use it.
6999         (MDEFINES): Add it.
7000         Sorted alphabetically.
7002         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
7003         @SEP@.
7004         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
7005         @SEP@.
7007 2003-01-27  Werner LEMBERG  <wl@gnu.org>
7009         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
7010         New files, copied from gnulib.
7011         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
7012         * configure.ac: Updated.
7013         * configure: Regenerated.
7015         * src/include/config.hin: Regenerated.
7016         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
7017         Don't define `strcasecmp' as `strcmp'.
7018         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
7019         Dont define `strncasecmp' as `strncmp'.
7021         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
7022         Removed.
7024 2003-01-26  Werner LEMBERG  <wl@gnu.org>
7026         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
7027         s/unline/unlink/.
7029 2003-01-25  Werner LEMBERG  <wl@gnu.org>
7031         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
7033 2003-01-24  Werner LEMBERG  <wl@gnu.org>
7035         Add US-english hyphenation exceptions (converted from Barbara
7036         Beeton's hyphenation exception log reports which appear irregularly
7037         in TUGBoat).
7039         * tmac/hyphen.us: Updated to latest version.
7040         * tmac/README: Updated.
7041         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
7042         * tmac/troffrc: Load `hyphenex.us'.
7043         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
7044         * doc/groff.texinfo: Updated.
7046 2003-01-23  Werner LEMBERG  <wl@gnu.org>
7048         Improve hyphenation slightly.  This is a first step in redesigning
7049         the hyphenation algorithm to make it more flexible (e.g. allowing
7050         kerns and ligatures between the hyphenation character and the
7051         following character -- while not used normally in English, other
7052         languages like German would benefit).
7054         * src/roff/troff/env.cc (environment::hyphenate_line): Use
7055         assertion instead of if-clause.
7056         Let `get_hyphen_list' return the number of involved characters in
7057         the hyphenation pattern instead of computing it directly (which
7058         often yields too small values).
7059         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
7060         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
7061         parameter.
7063 2003-01-22  Werner LEMBERG  <wl@gnu.org>
7065         Fixing a bug which caused groff to hang if the hyphenation exception
7066         dictionary tried to grow.
7068         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
7069         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
7070         pointer to dictionary.
7072 2003-01-20  Werner LEMBERG  <wl@gnu.org>
7074         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
7075         negative left italic correction.
7076         * src/utils/afmtodit/afmtodit.man: Document it.
7078         * font/devps/generate/Makefile (RFLAG): Add `-m'.
7079         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
7080         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
7082         * NEWS: Updated.
7084 2003-01-16  Werner LEMBERG  <wl@gnu.org>
7086         * NEWS: Updated.
7088 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
7090         * src/preproc/refer/refer.man: Mention REFER environment variable.
7092 2003-01-05  Werner LEMBERG  <wl@gnu.org>
7094         Similar to \[is], the square root glyph (\[sr]) and the square root
7095         extension glyph (\[radicalex]) are now text symbols.  The new
7096         mathematical versions are called \[sqrt] and \[sqrtex],
7097         respectively.
7099         * font/devX*/S: Regenerated.
7100         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
7101         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
7102         * font/devdvi/EX, font/devdvi/S: Regenerated.
7103         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
7104         * font/devlj4/generate/special.map: Add `sqrt'.
7105         * font/devlj4/S: Regenerated.
7106         * font/devps/generate/textmap: Add `sqrt'.
7107         * font/devps/S, font/devps/symbolmap: Regenerated.
7109         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
7110         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
7111         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
7112         overlap horizontally.
7114         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
7115         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
7116         Fix `radicalex'.
7118         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
7119         and `sqrtex' are overlapping glyphs.
7121 2003-01-04  Werner LEMBERG  <wl@gnu.org>
7123         * font/devdvi/generate/texsy.map: Add `is'.
7124         * font/devps/symbolmap: Regenerated.
7125         * font/devdvi/*TC, MI, S: Regenerated.
7127         * tmac/dvi.tmac: Remove `is'.
7129 2003-01-03  Werner LEMBERG  <wl@gnu.org>
7131         `is' is now a text symbol (only relevant for dvi).  The math variant
7132         can be accessed with `integral'.
7134         * font/devX*/S: Regenerated.
7135         * font/devdvi/generate/texex.map: Remove `is'.
7136         * font/devdvi/EX: Updated.
7137         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
7138         * font/devlj4/generate/special.map: Ditto.
7139         * font/devlj4/S: Regenerated.
7140         * font/devps/generate/textmap: Add `integral'.
7141         * font/devps/S: Regenerated.
7143         * tmac/dvi.tmac: Define `is'.
7145         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
7147         * src/preproc/tbl/main.cc (process_format): Fix error message.
7149 2003-01-02  Werner LEMBERG  <wl@gnu.org>
7151         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
7152         * font/devps/textmap: Fix entries for `ne' and `nc'.
7153         * font/devps/symbolmap: Regenerated.
7155         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
7156         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
7157         `38', `58', `78', `-+', `|=', `nc', `ne'.
7159         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
7160         Use `schar' for `aq'.
7161         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
7162         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
7163         * tmac/tty.tmac: Add `ne'.
7165         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
7166         for fallback glyphs.
7168 2002-12-29  Werner LEMBERG  <wl@gnu.org>
7170         Add glyph `|='.
7172         * font/devX*/*: Regenerated.
7173         * font/devdvi/generate/ec.map: Remove `eq'.
7174         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
7175         Assign `|=' to position 39.
7176         * font/devdvi/*EC, S: Regenerated.
7177         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
7178         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
7179         Assign `|=' to position 549.
7180         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
7181         `equalmath'.
7182         Add `uni2243' for `|='.
7184         * tmac/ec.tmac: Add `eq'.
7185         * tmac/dvi.tmac: Add `=~'.
7186         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
7187         `|='.
7189 2002-12-21  Werner LEMBERG  <wl@gnu.org>
7191         * font/devdvi/generate/tc.map: Remove `**'.
7192         * font/devdvi/*TC: Regenerated.
7193         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
7194         `78', `<<', `>>'.
7195         * font/devutf8/NOTES: Updated.
7197         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
7198         Don't give default parameter to `set_macro'.
7199         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
7200         instead of `set_macro'.
7201         (charinfo::setx_macro): Implement it.
7202         (charinfo::set_macro): Don't change `mode'.
7204         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
7205         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
7206         * tmac/dvi.tmac: Define `!=' with `.schar'.
7208 2002-12-20  Werner LEMBERG  <wl@gnu.org>
7210         * font/devX*/S: Regenerated.
7211         * font/devdvi/generate/ec.map: Remove `pl'.
7212         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7213         * font/devdvi/*{TC,EC}: Regenerated.
7214         * font/devhtml/R.proto: Add `-+'.
7215         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7216         * font/devlbp/*: Remove `or'.
7217         * font/devlj4/generate/special.map: Remove `or'.
7218         * font/devlj4/S: Regenerated.
7219         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7220         `seveneighths', `threeeighths'.
7221         Remove `plusmath'.
7222         Replace `minusplus' with `uni2213'.
7223         * font/devps/symbolmap: Regenerated.
7224         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7225         Add `-+'.
7227         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7228         function.
7229         * src/roff/troff/node.cc (troff_output_file::put_char_width):
7230         Call glyph_color and fill_color even if tcommand_flag isn't set.
7231         (make_node, node::add_char): Check not ci->is_fallback but
7232         ci->is_normal.
7234         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7235         * tmac/ec.tmac: Add .rchar entry for `f/'.
7236         Don't remove `12', `14', `34'.
7237         Define `pl' to be always roman.
7238         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7239         Define `18', `38', `58', `78'.
7240         * tmac/tty.tmac: Add `-+'.
7241         * tmac/dvi.tmac: Define `f/'.
7242         (dvi-frac): Use `f/'.
7243         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7244         Define `18', `38', `58', `78'.
7246 2002-12-15  Colin Watson  <cjwatson@debian.org>
7248         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7250 2002-12-10  Werner LEMBERG  <wl@gnu.org>
7252         Add glyph `tno', a textual variant of `no'.
7254         * font/devX*/*: Regenerated.
7255         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7256         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7257         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7258         * font/devdvi/*: Regenerated.
7259         * font/devlbp/*: Add `tno'.
7260         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7261         * font/devlj4/*: Regenerated.
7262         * font/devps/generate/textmap: Replace `no' with `tno'.
7263         * font/devps/generate/symbolchars: Add `no'.
7264         * font/devps/*: Regenerated.
7266         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7268         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7269         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7271         * NEWS: Updated.
7273         * tmac/dvi.tmac: Replace most `\\' with `\E'.
7274         Add definition for `sd'.
7275         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7277         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7279 2002-12-08  Werner LEMBERG  <wl@gnu.org>
7281         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7282         mode to avoid rounding errors.
7283         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7285         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7286         src/roff/troff/troff.man: Improve documentation of -T.
7288 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
7290         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7291         (run_pipeline) [_WIN32]: Provide working function without `fork'.
7293 2002-12-06  Werner LEMBERG  <wl@gnu.org>
7295         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7296         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7297         Scaling Euro.sansserif glyphs down to have the same height as
7298         digits.
7299         Removed unnecessary points; added some extrema.
7301         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7302         Regenerated.
7304 2002-12-04  Werner LEMBERG  <wl@gnu.org>
7306         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7307         and `Euro.symbol.bold.slanted'.
7308         Improve some glyph offsets and widths.
7309         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7310         Regenerated.
7311         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7312         typo.
7313         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7314         direcory.
7316         * tmac/europs.tmac: Updated to new glyph indices.
7317         Use Euro.symbol for font familiy `A'.
7319         * doc/groff.texinfo: Minor improvements.
7321 2002-12-02  Werner LEMBERG  <wl@gnu.org>
7323         * font/devdvi/generate.tc.map: s/%O/%0/.
7324         * font/devdvi/*TC: Regenerated.
7326         * src/roff/troff/div.cc (init_div_requests): Sorted.
7328         * tmac/dvi.tmac: Remove `Ye'.
7329         * tmac/ec.tmac: Remove `Ye'.
7330         Add .rchar entry for `de'.
7332         * man/groff.man, man/groff_diff.man: Document register `.pe'.
7333         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7334         * NEWS: Updated.
7336 2002-11-30  Werner LEMBERG  <wl@gnu.org>
7338         Add PS font for various Euro glyphs.
7340         * font/devps/generate/freeeuro.sfd: New master font file for
7341         pfaedit.
7342         * font/devps/generate/sfdtopfa.pe: New conversion script for
7343         pfaedit.
7344         * font/devps/generate/Makefile (FONTS): Add `EURO'.
7345         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7346         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7347         `freeeuro.sfd'.
7348         * font/devps/EURO: Generated from `freeeuro.afm'.
7349         * font/devps/download: Add `freeuro.pfa'.
7350         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7351         `freeeuro.pfa'.
7353         * tmac/europs.tmac: New file.
7354         * tmac/ps.tmac: Include `europs.tmac'.
7355         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7357 2002-11-29  Werner LEMBERG  <wl@gnu.org>
7359         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7360         * font/devdvi/S: Regenerated.
7361         * font/devhtml/R.proto: Fix `CR' and `ci'.
7362         Add `OK'.
7363         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7364         Remove `bs'.
7365         * font/devps/symbolmap: Regenerated.
7366         * font/devutf8/R.proto: Fix `CR' and `ci'.
7367         Add `OK'.
7368         * font/devutf8/NOTES: Updated.
7370         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7371         `ci'.
7372         Add `OK'.
7373         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7375         * tmac/dvi.tmac: Add `lh' and `rh'.
7376         * tmac/Xps.tmac: Fix `lh' and `rh'.
7377         * tmac/X.tmac: Add `OK'.
7378         * tmac/lj4.tmac: Ditto.
7380 2002-11-24  Werner LEMBERG  <wl@gnu.org>
7382         * font/devX*/S: Regenerated.
7383         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7384         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7385         * font/devdvi/generate/texsy.map: Remove `or' glyph.
7386         * font/devdvi/S: Regenerated.
7387         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7388         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7389         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7390         `bracketleftbt', `bracketrighttp', `bracketrightex',
7391         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7392         `braceex', `braceleftex', `bracerightex', `bracerighttp',
7393         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7394         `rb', and `bv'.
7395         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7396         * font/devutf8/NOTES: Updated.
7397         * font/devlj4/generate/special.map: Add glyph `braceex'.
7398         * font/devlj4/S: Regenerated.
7400         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7402 2002-11-14  Werner LEMBERG  <wl@gnu.org>
7404         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7405         and `vA'.
7406         Fix code for `an'.
7407         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7409         * doc/texinfo.tex: New version from texinfo 4.3.
7410         * doc/groff.texinfo: Updated for texinfo 4.3.
7411         Use @tie{} where appropriate.
7412         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7413         * font/devdvi/generate/tc.map: Remove `rn'.
7414         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7415         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7416         Fix code for `an'.
7417         * font/devX100/*, font/devX100-12/*, font/devX75/*,
7418         font/devX75-12/*: Regenerated.
7420         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7421         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7422         Improve definition of `an'.
7423         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7424         `ru'.
7425         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7426         * tmac/X.tmac: Add definition for `or'.
7427         * tmac/Xps.tmac: Undo change 2002-11-05.
7428         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7430 2002-11-11  Werner LEMBERG  <wl@gnu.org>
7432         * src/roff/troff/node.cc (troff_output_file::put_char): Always
7433         call flush_tbuf.
7435 2002-11-10  Werner LEMBERG  <wl@gnu.org>
7437         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
7438         defines a glyph which is searched after the check for fonts declared
7439         with `.special' (and before the check for all mounted special
7440         fonts).  `fschar' defines a glyph for a particular font which is
7441         searched after the check for fonts declared with `.fspecial' (and
7442         before the check for fonts declared with `.special').  `rfschar'
7443         removes glyphs defined with `fschar'.
7445         * src/roff/troff/token.h (char_mode): New enum.
7446         Declare do_define_character.
7447         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7448         `mode'.
7449         (charinfo::is_fallback): Updated.
7450         (charinfo::is_special): New method.
7451         * src/roff/troff/input.cc (do_define_character): Add and use
7452         optional second parameter used as a prefix for font-specific glyph
7453         names.
7454         (define_character, define_fallback_character): Updated.
7455         (define_special_character): New function.
7456         (init_input_requests): Add `schar'.
7457         (charinfo::charinfo, charinfo::set_macro): Updated.
7458         * src/roff/troff/node.cc: Include `stringclass.h'.
7459         (make_glyph_node): Handle special glyphs defined with `.schar' and
7460         `.fschar'.
7461         (define_font_special_character, remove_font_special_character): New
7462         functions.
7463         (init_node_requests): Sorted.
7464         Add `fschar' and `rfschar'.
7465         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7466         Document new requests.
7468         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7469         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7471 2002-11-08  Werner LEMBERG  <wl@gnu.org>
7473         Added new font `SC' (cmtex10) to devdvi.
7475         * devdvi/generate/Makefile (FONTS): Add `SC'.
7476         (SC): New rule.
7477         * devdvi/generate/textex.map: New map file for cmtex.
7478         * devdvi/SC: New.
7479         * devdvi/Makefile.sub (DEVFILES): Updated.
7480         * tmac/dvi.tmac: Add fspecial entries for SC.
7481         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
7482         found before `S' since the font position of `SC' is lower due to the
7483         gaps in DESC's `font' line.
7484         * tmac/ec.tmac: Add a `special' call.
7485         * NEWS: Updated.
7487         * font/devhtml/R.proto: Remove double entry for `ti'.
7488         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7489         * tmac/tty-char.tmac: Remove entry for `bq'.
7490         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7491         * tmac/ec.tmac: Don't remove `aq' glyph.
7492         * tmac/X.tmac: Fix entry for `em'.
7493         Add entries for `fo' and `fc'.
7494         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7496         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7497         documentation of `special' and `fspecial' requests.
7499 2002-11-05  Werner LEMBERG  <wl@gnu.org>
7501         * font/devascii/R.proto, font/devcp1047/R.proto,
7502         font/devlatin1/R.proto: Remove entry for `.i'.
7503         * font/devdvi/generate/textt.map: Add entry for `ad'.
7504         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7505         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7506         We need this for getting kerning values to compose `/l' and `/L'.
7507         * font/devdvi: Regenerated font definition files for CM fonts.
7508         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7509         * font/devutf8/R.proto: Ditto.
7510         Remove double entry for `ti'.
7512         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
7513         for (groff) ligatures, `la', and `ra'.
7514         Add "'C", "'c", `IJ', and `ij'.
7515         Remove double entry for `ti'.
7516         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
7517         double entries.
7518         Add "'C", "'c", `IJ', and `ij'.
7519         Fix entries for (groff) ligatures, `la', and `ra'.
7521         * tmac/ps.tmac (ps-achar): New macro.
7522         Define "'c" and "'C".
7523         * tmac/tty.tmac: Add entry for `.i'.
7524         * tmac/X.tmac (X-achar): New macro.
7525         Define "'c", "'C", and `:Y'.
7526         Add entries for `IJ' and `ij'.
7527         * tmac/Xps.tmac (Xps-achar): New macro.
7528         Define "'c" and "'C".
7529         Add entries for `IJ' and `ij'.
7530         * tmac/lbp.tmac (lbp-achar): New macro.
7531         Add fallback characters for all groff ligatures and many other
7532         glyphs.
7533         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
7534         Add entries for `/l' and `/L'.
7535         Define "'c" and "'C".
7536         Add entries for `IJ' and `ij'.
7538 2002-11-02  Larry Kollar  <kollar@alltel.net>
7540         * PROBLEMS: Document how to solve Mac OS X compilation problems.
7542 2002-11-02  Werner LEMBERG  <wl@gnu.org>
7544         Adding support for composite glyphs: \[xxx yyy ...] and the
7545         `composite' request.
7547         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
7548         to Unicode-based glyph names.
7549         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
7550         glyph names to groff glyph names.
7551         * src/roff/troff/uniuni.cc: New file for canonically decomposing
7552         Unicode-based glyph names.
7553         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
7554         for handling Unicode glyph names.
7555         * src/roff/troff/input.cc: Include unicode.h.
7556         (composite_glyph_name): New function.
7557         (token::next) <'['>: Handle Unicode glyph names and composite
7558         glyphs.
7559         (composite_dictionary): New dictionary for the `composite' request.
7560         (composite_request): Implement `composite' request.
7561         (init_input_requests): Add `composite'.
7562         Alphabetically sorted.
7563         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
7564         commented out).
7565         (init_env_requests): Alphabetically sorted.
7566         Removed `tas' and `tar' (already commented out).
7567         * src/roff/troff/Makefile.sub: Updated.
7569 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
7571         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
7572         of options.
7574 2002-10-29  Werner LEMBERG  <wl@gnu.org>
7576         Fix computation of .trunc register.  Additionally, its value (and
7577         the value of the .ne register) is now always set before entering the
7578         trap.
7580         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
7581         `needed_space' before calling `space'.
7582         (top_level_diversion::space): Remove special code for 'sp before the
7583         first page.
7584         Call `begin_page' with the discarded space as a parameter.
7585         (top_level_diversion::begin_page): Add optional parameter to set
7586         `truncated_space'.
7587         * src/roff/troff/div.h: Updated.
7589         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
7590         \n[.ne].
7592         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
7593         (LP): Remove superfluous call to `br'.
7594         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
7595         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7597 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7599         * tmac/doc-ditroff: Remove useless switch/variable -rC.
7600         (doc-setup-header): Don't set page register `%'.
7601         * tmac/doc-nroff: Remove variable `C'.
7602         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
7603         (doc-setup-header): Don't set page register `%'.
7604         Don't call `bp'.
7605         * tmac/doc-common (doc-header): Call `ns'.
7606         (doc-paragraph): Protect .sp with .br so that it survives traps
7607         possibly set by the user.
7608         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7610         * tmac/doc*: Replace ' with . for consistency if no effect.
7612 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7614         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
7615         so that it survives traps possibly set by the user.
7617         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
7618         (troff_output_file::set_font): Call flush_tbuf if necessary.
7619         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
7620         flush_tbuf and do_motion only if necessary.
7621         (troff_output_file::start_special,
7622         troff_output_file::put_char_width, troff_output_file::put_char,
7623         troff_output_file::draw): Updated.
7624         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7625         vmotion_node::tprint): Undo change 2002-10-23.
7627 2002-10-25  Werner LEMBERG  <wl@gnu.org>
7629         * tmac/www.tmac (DC): Fix case of overlapping images.
7631 2002-10-23  Werner LEMBERG  <wl@gnu.org>
7633         * src/roff/troff/node.cc (troff_output_file::fill_color,
7634         troff_output_file::glyph_color): Set current color before testing
7635         color_flag.
7636         (troff_output_file::put_char_width, troff_output_file::put_char,
7637         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
7638         before glyph_color.
7639         (troff_output_file::file_color, troff_output_file::glyph_color):
7640         Call do_motion.
7641         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7642         vmotion_node::tprint): Move first, then call fill_color.
7644 2002-10-20  Werner LEMBERG  <wl@gnu.org>
7646         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
7647         possible to use multiple main macro packages.
7649 2002-10-19  Werner LEMBERG  <wl@gnu.org>
7651         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
7652         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
7653         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
7654         is set.
7655         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
7656         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
7658 2002-10-16  Werner LEMBERG  <wl@gnu.org>
7660         * NEWS, doc/webpage.ms: Updated.
7662 2002-10-14  Werner LEMBERG  <wl@gnu.org>
7664         * src/roff/troff/node.cc (troff_output_file::put_char_width,
7665         troff_output_file::put_char, troff_output_file::fill_color,
7666         troff_output_file::glyph_color): Handle case where color pointer
7667         is null.
7669 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
7671         Add the new -r option to grotty.  It is similar to the -i option
7672         except it tells grotty(1) to use the `reverse video' attribute to
7673         render italic fonts.
7675         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
7676         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
7677         (tty_printer::make_underline, tty_printer::put_color,
7678         tty_printer::end_page): Use it.
7679         (main): Add -r switch.
7680         (usage): Updated.
7681         * src/devices/grotty/grotty.man: Document it.
7683 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
7685         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
7686         cast to `unsigned char' to properly read patterns with 8bit
7687         characters.
7689 2002-10-08  Werner LEMBERG  <wl@gnu.org>
7691         * REVISION: Increased to 2.
7693 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008
7694   Free Software Foundation, Inc.
7696 Copying and distribution of this file, with or without modification,
7697 are permitted in any medium without royalty provided the copyright
7698 notice and this notice are preserved.
7700 Local Variables:
7701 version-control: never
7702 coding: latin-1
7703 End: