* src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], and
[s-roff.git] / ChangeLog
blobd8f7b6754645073e3da53670b0562bc45d7afa43
1 2008-10-04  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], and
4         \O[5] non-transparent w.r.t. beginning-of-line recognition (similar
5         to the other \O variants).
7 2008-10-03  Werner LEMBERG  <wl@gnu.org>
9         * src/devices/grops/grops.man, src/roff/troff/troff.man,
10         src/preproc/soelim/soelim.man: Correct documentation of -I switch. 
11         Reported by Larry Kollar.
12         Other minor formatting issues.
14 2008-10-02  Werner LEMBERG  <wl@gnu.org>
16         * tmac/trace.tmac: Much improved.
17         (trace-full): New register to be set on the command line; it
18         controls whether number and string register assignments get traced
19         also.
20         (!!c): New macro for comments.
21         (rm): New traced macro.
22         (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to
23         `!!xxx'; this makes doc.tmac completely traceable.
24         Trace call of .de and friends also.
26         * tmac/groff_tmac.man, NEWS: Update.
28 2008-09-30  Werner LEMBERG  <wl@gnu.org>
30         Restore behaviour of \$0 if a macro is called with string syntax
31         (problem caused by change on 2008-09-29).
33         * src/roff/troff/input.cpp (input_iterator, input_stack,
34         macro_iterator): Add `get_macro_name' member function.
35         (interpolate_string): Use it.
37 2008-09-29  Werner LEMBERG  <wl@gnu.org>
39         Make \\*[xxx]\\ within a macro (with `xxx' a macro too) work as
40         expected.  Without the patch,
42           .de aaa
43           \\*[bbb]\\
44           .  tm \\$*
45           ..
46           .de bbb
47           .  shift
48           ..
49           .aaa 1 2 3
51         prints `2 3' instead of `1 2 3'.
53         * src/roff/troff/input.cpp (input_iterator, input_stack,
54         macro_iterator): Add `get_arg_list' member function.
55         (macro): Add `is_a_string', `is_string', and `clear_string_flag'
56         members.
57         Update constructors and operators.
58         (arg_list): Add copy constructor.
59         (macro_iterator): Add optional argument to constructor to indicate
60         whether arguments shall be inherited from calling macro.
61         (interpolate_string): If string argument is a macro, push a macro
62         iterator on the stack.
63         (do_define_macro): Call clear_string_flag if macro data contains a
64         newline.
66         * src/roff/troff/request.h: Updated.
68 2008-09-29  Eric S. Raymond  <esr@snark.thyrsus.com>
70         * doc/pic.ms: Fold in documentation of pic2plot(1) capabilities.
71         Improve the documentation of text objects.
73 2008-09-28  Eric S. Raymond  <esr@snark.thyrsus.com>
75         * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph, 
76         contrib/eqn2graph.man: Tweak scripts to cope with incompatible
77         changes in ImageMagick crop options.  Document the bugs.
79 2008-09-28  Werner LEMBERG  <wl@gnu.org>
81         If a macro is called as a string, inherit value of \n[.br] from the
82         caller.  This is useful for `trace.tmac'.
84         * src/roff/troff/input.cpp (string_iterator): New members
85         `with_break' and `get_break_flag'.
86         (string_iterator::string_iterator): Updated.
88         * doc/groff.texinfo: Improve documentation of \$0 and string syntax
89         calling of macros.
90         Document behaviour of \n[.br] within strings.
92 2008-09-26  Werner LEMBERG  <wl@gnu.org>
94         * tmac/trace.tmac: Add copyright message.
95         Use `.de1' where possible to make source code more readable.
96         (so, mso, als, rn): Restore escape character before executing the
97         request.
98         (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'.
100 2008-09-24  Werner LEMBERG  <wl@gnu.org>
102         Fix incompatibility between `.de1' and `.do'.  Without this change,
103         the following snippet
105           .de1 xx
106           .  tm \\n(.C
107           ..
108           .cp 1
109           .do xx
111         prints 1 instead of 0.
113         * src/roff/troff/input.cc (do_request): If a macro gets processed,
114         call tok.next().
115         (interpolate_macro): Add optional argument.  Update callers.
116         (request::invoke): Add optional argument.
117         (macro::invoke): Add optional argument to delay call of tok.next().
119         * src/roff/troff/request.h (request_or_macro): Add argument to
120         `invoke' member.  Update all derived classes.
122         * doc/groff.texinfo: Improve documentation of .do request.
124 2008-09-09  Werner LEMBERG  <wl@gnu.org>
126         * tmac/an-old.tmac (FT): Initialize properly.  Reported by Tadziu
127         Hoffmann.
129 2008-09-06  Werner LEMBERG  <wl@gnu.org>
131         * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to make
132         `.Nm' work properly if next manual page is printed.
134 2008-08-20  Werner LEMBERG  <wl@gnu.org>
136         * src/preproc/tbl/tbl.man: Document computation of element widths.
138 2008-08-20  Alexey Gladkov  <legion@altlinux.ru> 
139             Werner LEMBERG  <wl@gnu.org>
141         Add default encoding option -D to preconv and groff.
143         * src/preproc/preconv/preconv.cpp (default_encoding): Make it an
144         array.
145         Update all users.
146         (main): Handle new option -D.
147         (usage): Updated.
148         * src/preproc/preconv/preconv.man: Updated.
150         * src/roff/groff/groff.cpp (main): Handle new option -D.
151         (synopsis, help): Updated.
152         * src/roff/groff/groff.man: Updated.
154 2008-07-26  Werner LEMBERG  <wl@gnu.org>
156         * tmac/eqnrc (.EQ, .EN): Provide default definitions.  Reported
157         by Denis M. Wilson.
159         * tmac/www.tmac (.EQ, .EN, .TS, .TE): Fix definitions.
161 2008-07-24  Denis M. Wilson  <dmw@oxytropis.plus.com>
163         New options -f and -k for afmtodit.
165         * src/afmtodit/afmtodit.pl: New options `-f NAME' sets the internal
166         name of the groff font.
167         New option `-k' disables output of kerning data.
168         * src/afmtodit/afmtodit.man, NEWS: Document new options.
170 2008-07-18  Werner LEMBERG  <wl@gnu.org>
172         * src/preproc/tbl/table.cpp (table::compute_separation_factor): Emit
173         warning messages if table gets squeezed.
174         (table::compute_widths): Fix computation of AVAILABLE_REG.
175         Emit warning if table is wider than line length.
177         * src/preproc/tbl/tbl.man: Minor improvements.
179 2008-05-02  Larry Jones  <lawrence.jones@siemens.com>
181         * contrib/chem/Makefile.sub (README, examples/README): In makefiles,
182         the `$<' macro is only guaranteed to be defined in inference rules,
183         not in explicit target rules.  Since there is only one input file in
184         the places where it is used, the `$?' macro (which is guaranteed to be
185         defined for both kinds of rules) is a suitable replacement.
187         * hdtbl/examples/fonts_n.in, hdtbl/examples/fonts_n.in: Most
188         versions of ls don't have a `--color' option.
190 2008-04-30  Larry Jones  <lawrence.jones@siemens.com>
192         * Makefile.comm (depend.temp): Add `EXTRA_CCFLAGS'.
194 2008-04-29  Larry Jones  <lawrence.jones@siemens.com>
196         * src/eqn/script.cpp (script_box::output): Portability fix.
198 2008-04-05  Dorai Sitaram  <ds26gte@yahoo.com>
200         Add better support for `.TAG #<label>' in non-HTML documents: In
201         case of a forward reference in a call to .URL, write `(see below)'. 
202         In case of a backwards reference use the page number instead.  The
203         reference gets stored in a string `TAG_<label>' and can be
204         overridden while calling `.TAG' with its new optional argument --
205         this is useful for a second-pass system which resolves forward
206         references.
208         * tmac/www.tmac (www:url_check_tag): New function.
209         (URL): Use it.
210         (TAG): Add optional argument to define string `TAG_<label>'.
212 2008-03-24  Werner LEMBERG  <wl@gnu.org>
214         * tmac/trace.tmac (so, mso): Added.
216         * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'. 
217         If used with -mtrace, and this clause was active, the macro was
218         executed twice.
220         * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality. 
221         This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML
222         devices.
223         * man/groff_tmac.man: Document it.
225 2008-02-26  Werner LEMBERG  <wl@gnu.org>
227         * src/roff/troff/input.cpp: s/safer_flag/unsafe_flag/.
228         Update all occurrences so that \n[.U] works as advertised.  Bug
229         reported by Dorai Sitaram.
231 2008-02-17  Werner LEMBERG  <wl@gnu.org>
233         * doc/groff.texinfo: Improve documentation of .cf request.
235 2008-01-19  Werner LEMBERG  <wl@gnu.org>
237         * src/preproc/html/pre-html.cpp (usage): Don't describe options but
238         mention that it should never be called stand-alone.
240         * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man,
241         man/groff_tmac.man, man/groff_out.man, README, README.MinGW,
242         src/roff/groff/groff.man: Mention -Txhtml.
244         * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.
246 2008-01-16  Werner LEMBERG  <wl@gnu.org>
248         * src/libs/libgroff/font.cpp (font::contains, font::get_code):
249         Handle single-letter names correctly.
251         * doc/groff.texinfo, man/groff_diff.man: Extend documentation of \^
252         and \|.
253         * NEWS: Updated.
255 2008-01-15  Werner LEMBERG  <wl@gnu.org>
257         * man/groff_font.man: Revised.
259 2008-01-14  Werner LEMBERG  <wl@gnu.org>
261         * man/groff.man: Mention glyph and characters.
262         Minor other updates.
263         * man/groff_char.man: Minor updates.
264         * man/groff_diff.man: Better clarification between characters and
265         glyphs.
267 2008-01-12  Werner LEMBERG  <wl@gnu.org>
269         * doc/groff.texinfo: Fix top-level structure to make it compilable
270         again with all texinfo modes.  Reported by Jörg van den Hoff
271         <j.van_den_hoff@fzd.de>.
273 2008-01-11  Werner LEMBERG  <wl@gnu.org>
275         * doc/pic.ms: Mention that compass points of line objects are
276         arbitrarily located.
278 2008-01-06  Werner LEMBERG  <wl@gnu.org>
280         * src/roff/troff/node.cpp (left_italic_corrected_node::add_self):
281         Don't remove itself if there is no glyph associated with the node
282         yet.  This happens, for example, in this situation:
284           .ll 15000u
285           .ft I
286           x x
287           (\,f
289 2008-01-05  Werner LEMBERG  <wl@gnu.org>
291         * man/groff_char.man, man/groff.man: Revised.
293         * src/preproc/eqn/lex.cpp (troff_defs): Fix typo.
295 2008-01-04  Werner LEMBERG  <wl@gnu.org>
296         * */*: s/Osanna/Ossanna/.
298         * */*.man: Replace .URL with .UR/.UE (except in groff_www.tmac).
299         Replace .MTO with .MT/.ME (except in groff_www.tmac).
300         Insert `\:' in URLs where appropriate.
301         Don't include www.tmac (except in groff_www.tmac).
303         * man/groff.man (.ESC[]): Fix font of closing bracket.
304         (.ESCq): Fix font of closing quote character.
305         Many other improvements.
307 2007-12-30  Bernhard Fisseni  <bfi@ikp.uni-bonn.de
309         * src/devices/grohtml/post-html.cc
310         (html_printer::writeHeadMetaStyle): Fix CSS output.
312 2007-12-29  Werner LEMBERG  <wl@gnu.org>
314         * tmac/ec.tmac: Add CM fonts to the .fspecial lines; those fonts
315         contain additional glyphs (like some uppercase Greek letters).
317 2007-12-06  Werner LEMBERG  <wl@gnu.org>
319         * NEWS: Updated.
321 2007-12-06  Colin Watson  <cjwatson@debian.org>
323         * src/roff/nroff/nroff.sh: Add options -w and -W.
324         * src/roff/nroff/nroff.man: Document them.
326 2007-12-06  Karl Berry  <karl@freefriends.org>
328         * tmac/hyphenex.pl: Update header output.
330 2007-11-29  Werner LEMBERG  <wl@gnu.org>
332         * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
334 2007-11-20  Werner LEMBERG  <wl@gnu.org>
336         * doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
338 2007-11-17  Werner LEMBERG  <wl@gnu.org>
340         * src/roff/nroff/nroff.sh: Handle GROFF_TYPESETTER environment
341         variable.  Problem reported by Michael G Schwern
342         <schwern@pobox.com>.
344         * src/roff/nroff/nroff.man: Document it.
345         Other minor updates.
347 2007-11-17  Heinz-Jürgen Oertel <hj.oertel@t-online.de>
349         * src/groff/preproc/pic/lex.cpp (table): Add box attributes
350         `xslanted' and `yslanted'.
352         * src/groff/preproc/pic/object.cpp (object_spec::object_spec):
353         Initialize `xslanted' and `yslanted'.
354         (graphic_object): Add methods `set_xlanted' and `set_yslanted'.
355         (closed_object): Ditto.
356         Add members `xslanted' and `yslanted'.
357         (box_object::print): Use them.
358         (object_spec::make_object): Handle slant values.
359         * src/groff/preproc/pic/object.h (IS_XSLANTED, IS_YSLANTED): New
360         constants.
361         (object_spec): Add members `xslanted' and `yslanted'.
362         * src/groff/preproc/pic/pic.y (XSLANTED, YSLANTED): New left-valued
363         tokens.
364         Add rules for them.
365         
366         * src/groff/preproc/pic/pic.man, NEWS, doc/pic.ms: Document above
367         changes.
369 2007-11-16  Werner LEMBERG  <wl@gnu.org>
371         * tmac/hyphenex.pl: Generate copyright notice (this has been
372         approved by Barbara Beeton).
373         * tmac/hyphenex.us: Updated.
375 2007-11-10  Michail Vidiassov  <master@iaas.msu.ru>
377         * tmac/doc-syms (doc-str-St--susv3): New string.
378         * tmac/groff_mdoc.man: Document it.
380 2007-11-08  Werner LEMBERG  <wl@gnu.org>
382         * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be'
383         `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'.
384         (is_comment_line): Handle '\" and '\# also.
386         * src/preproc/preconv/preconv.man: Revise and make complete.
388 2007-10-25  Werner LEMBERG  <wl@gnu.org>
390         * tmac/cs.tmac: New file holding Czech strings, contributed by
391         Marcela Maslanova <mmaslano@redhat.com>.
392         * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files
393         for Czech, taken from CTAN.
394         * LICENSES: Updated.
395         * tmac/Makefile (NORMALFILES): Add Czech stuff.
396         * doc/groff_tmac.man: Mention cs.tmac.
398 2007-10-21  Werner LEMBERG  <wl@gnu.org>
400         * src/roff/troff/input.cpp (do_ps_file): Handle `%X' in header
401         comments correctly.  Reported by Frank Jahnke
402         <jahnke@sonatabio.com>.
404 2007-10-02  Ruslan Ermilov  <ru@FreeBSD.org>
406         * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
407         FreeBSD 5.5 and 7.0.
409         * tmac/doc-syms: Give better names for System V releases.
411 2007-09-25  Gaius Mulley  <gaius@glam.ac.uk>
413         * doc/Makefile.in, doc/Makefile.sub (.ms.html): Add -P-V switch to
414         the production of html files.
415         (pic.html): Ditto.
416         Remove background colour switch.
417         (.SUFFIXES, clean): Handle *.xhtml files.
419         * src/devices/grohtml/grohtml.man: Document that -V option now
420         generates an HTML-4.01 validator or XHTML validator.
422         * src/devices/grohtml/html-text.cpp (html_text::end_tag,
423         html_text::start_tag): Suppress <small>, <big>, and <color> tags if
424         we are inside a <pre> block.
426         * src/devices/grohtml/post-html.cpp
427         (html_printer::handle_valid_flag): Add a parameter to indicate
428         whether it needs to generate a paragraph block.
429         (html_printer::write_navigation): Updated.
430         (html_printer::do_file_components): Generate an HTML-4.01 blue
431         validator button also.
433 2007-09-23  Axel Kielhorn  <A.Kielhorn@web.de>
435         * man/groff.man: Fix URL of CSTR 54.
437 2007-09-23  Werner LEMBERG  <wl@gnu.org>
439         * man/groff_char.man: Normalize character set names as defined
440         by IANA.  Based on a patch from Axel Kielhorn.
442         * src/preproc/refer/label.y: Undo change from 2007-09-19.
444 2007-09-19  Werner LEMBERG  <wl@gnu.org>
446         * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
447         warning.
449         * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
450         Remove compiler warning.
452         * src/preproc/refer/label.y: Remove compiler warning.
454         * src/preproc/pic/pic.y: Remove doubled token entries.
456 2007-09-19  Gaius Mulley  <gaius@glam.ac.uk>
458         * doc/groff.texinfo: Document new .O register and add cross
459         reference entries.
461         * NEWS: Updated.
463         * src/devices/grohtml/grohtml.man: Document new -V and -y options.
465         * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
466         (html_table:: emit_colspan, html_table::emit_td): New methods.
467         (html_table::emit_col):  Use html_table::emit_td.
468         (html_table::emit_table_header): Use html_table::emit_colspan if
469         dialect xhtml is specified.
470         (html_table::finish_row): Updated.
472         * src/devices/grohtml/html-table.h (html_table): Declare
473         emit_colspan, emit_td.
475         * src/devices/grohtml/html-text.cpp: Modified tags to comply with
476         xhtml if this dialect was requested.
478         * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
479         (html_text): Add new variable `dialect'.
481         * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
482         compliant.
483         (valid_flag, groff_sig, dialect): New global variables. 
484         (html_printer::handle_valid_flag, html_printer::do_math,
485         html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
486         html_printer::do_math, html_printer::handle_valid_flag): New
487         methods.
488         (html_printer::emit_line, html_printer::emit_raw,
489         html_printer::do_check_center, html_printer::write_title,
490         write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
491         html_printer::begin_page): Altered to be XHTML compliant.
492         (html_printer::write_header): Updated.
493         (html_printer::troff_tag): Call do_math.
494         (html_printer::insert_split_file, html_printer::do_file_components,
495         html_printer::write_navigation): Create XHTML file components if
496         necessary and also produces a groff signature if requested.
497         (~html_printer): Call writeHeadMetaStyle at appropriate places
498         depending upon html_dialect.
499         (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
500         (main): Added options -x, -V, and -y.
501         (usage): Updated.
503         * src/preproc/eqn/box.cpp: Create a distinction between
504         the MathML device and the XHTML device.
505         (do_text): Issue a newline at the end of the equation if XHTML was
506         specified.
507         (box::top_level): Prefix the output of an equation by the .MATHML
508         macro.
509         (output_string): Suppress \n if XHTML was specified.
511         * src/preproc/eqn/main.cpp (xhtml): New global flag.
512         (inline_equation): Skip leading spaces after inline equation for
513         XHTML device.
514         (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
516         * src/preproc/eqn/eqn.h (xhtml): New external flag.
518         * src/preproc/eqn/text.cpp (entity_table): Fix typo.
520         * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
521         (dialect, eqn_flag): New global variables.
522         (html_system): Improve debugging support.
523         (alterDeviceTo): Test for -Txhtml when altering device to the image
524         device and reset to -Txhtml.
525         (addZ): Renamed to...
526         (addArg): This.
527         Introducea a general parameter.
528         (print_args): New debugging function.
529         (char_buffer::run_output_filter): Use print_args and addArg rather
530         than addZ.
531         (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
532         line parameter as an argument to the html generation of text when
533         xhtml is needed.  Include -e on the command line if mathml is
534         required.
535         (scanArguments): Allow -e, -V, -y and -x options.
536         -V, -y are handled by the back end.  -e sets `eqn_flag'.
537         -x determines HTML dialect.
539         * src/roff/groff/groff.cpp (possible_command): New method
540         `clear_name'.
541         (main):  Set eflag if -e is present on command line.
542         Set is_xhtml if -Txhtml is present.
543         Pass `-x x' to the HTML pre and post processors.
544         Pass `-e' to the HTML pre processor if required.
545         Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
547         * src/roff/troff/input.cpp (init_input_requests): Introduce new
548         number register `\n[.O]'.
550         * tmac/s.tmac: (LP): Use .nop for semantic sugar.
551         (cov*ab-init) reformat.
552         (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
553         (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
554         <cite></cite> for the html device rather than generate images for
555         footnotes.
557         * tmac/troffrc-end: Define EQN-HTML-IMAGE,
558         EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
559         EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
560         EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
562         * tmac/www.tmac: (HTML<?p>): New macro.
563         (MATH<?p>): New macro.
564         (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
565         (www-emit-ltag): New macro.
566         (www-push-li): Updated.
567         (ULS): Ensure that tags are balanced in order by use of
568         www-emit-ltag.
569         (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
570         order.
571         (OLS, OLE, DLS, DLE): Ditto.
572         <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
573         respectively.
574         (www-li-ul, www-li-ol, www-li-dl): Updated.
575         (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
576         EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
577         MATHML): New macros.
579 2007-09-17  Werner LEMBERG  <wl@gnu.org>
581         * man/groff_font.man: Document `unicode' keyword.
582         * doc/groff.texinfo (DESC File Format): Synchronize with
583         groff_font.man.
585 2007-09-15  Werner LEMBERG  <wl@nu.org>
587         * man/groff.man: Document `\_'.
588         * doc/groff.texinfo: Ditto.
589         Remove references to `\@' which isn't a valid escape sequence in
590         groff.
593         * tmac/unicode.tmac: Add ` and '.
594         * tmac/html.tmac: Load unicode.tmac.
596 2007-09-14  Werner LEMBERG  <wl@gnu.org>
598         * tmac/unicode.tmac: Make `-' a pure input character by mapping it
599         to `hy'.
601         * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
603 2007-09-11  Werner LEMBERG  <wl@gnu.org>
605         * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
606         allocation.
608         * src/preproc/tbl/table.cpp (table::allocate): Initialize
609         `blockflag' array.
611 2007-09-10  Keith Marshall  <keith.d.marshall@ntlworld.com>
613         * README.MinGW: Add warnings about use of MSYS-RXVT, and about
614         defective GnuWin32 versions of netpbm/libpng.
616 2007-07-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
618         * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
619         possible recursion.
621 2007-07-11  Werner LEMBERG  <wl@gnu.org>
623         * gendef.sh: Add shebang.
625 2007-07-05  Werner LEMBERG  <wl@gnu.org>
627         * tmac/papersize.tmac: Fix dimensions of executive paper format. 
628         Reported by John Rupley <rupley@u.arizona.edu>.
630 2007-07-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
632         * tmac/s.tmac (cov*first-page-init): Emit error message if not in
633         top-level environment.
635 2007-06-12  Werner LEMBERG  <wl@gnu.org>
637         * src/devices/xditview/TODO, NEWS: Updated.
638         * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
639         Handle `GXditview-color'.
640         * src/devices/xditview/gxditview.man: Updated.
642         * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
643         * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
644         from `gnulib' git repository.
646         * configure.ac: Updated.
647         * configure: Regenerated (using autoconf 2.61).
649         * config.guess, config.sub: Updated from `config' CVS repository.
650         * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
651         repository.
653 2007-06-12  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
655         * src/devices/xditview/GXditview.ad: Split off color definitions
656         into...
657         * src/devices/xditview/GXditview-color.ad: This new file.
659 2007-06-08  Fabrice Ménard  <menard.fabrice@wanadoo.fr>.
661         * tmac/fr.tmac: Handle chapter system for `me'.
663 2007-06-05  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
665         * src/devices/xditview/xditview.c (main): Add support for
666         accelerators.
668         * src/devices/xditview/GXditview.ad: Updated.
669         Make widget more colourful.
671 2007-05-30  Werner LEMBERG <wl@gnu.org>
673         * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
674         Recommend `tbl' instead of `-column' lists for more complicated
675         cases.
677 2007-05-21  Werner LEMBERG  <wl@gnu.org>
679         * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
680         correctly.
682 2007-04-10  Werner LEMBERG  <wl@gnu.org>
684         In pic, make rounded boxes work with colors.  Reported by Urs Eggli
685         <Urs.Eggli@zuerich.ch>.
687         * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
688         (output): Add color parameter to `rounded_box' member function.
690         * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
692         * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
693         to `out->rounded_box'.
695 2007-04-09  Michail Vidiassov  <master@iaas.msu.ru>
697         * font/devps/generate/textmap: Add Greek letters and some more.
699         * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
700         `Omega', and `mu' to the ones from aglfn.txt.
702 2007-04-08  Keith Marshall  <keith.d.marshall@ntlworld.com>
704         * tmac/s.tmac (SN): Define unconditionally.
705         (SN-STYLE): New string; define.
707         * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
709 2007-03-22  Werner LEMBERG  <wl@gnu.org>
711         * tmac/pspic.tmac: Fix harmless numeric overflow warning.  Reported
712         by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
714 2007-03-20  Werner LEMBERG  <wl@gnu.org>
716         * tmac/trace.tmac (rn): Added.
717         (nr, ds, ds1, as, as1, substring): Restore escape character while
718         executing the macro.
719         (nr): Remove dead code.
721         * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
722         definitions to make them traceable.
724 2007-03-19  Werner LEMBERG  <wl@gnu.org>
726         * src/roff/troff/input.cpp (get_copy): Add third argument to control
727         whether \E shall be expanded.
728         (get_char_for_escape_name): Allow \E.
730 2007-03-15  Werner LEMBERG  <wl@gnu.org>
732         * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
733         par*define-font-macro, \[hooko]): Use \E to make it traceable.
735         (ref*field): Add argument to control the space between previous and
736         current argument.
737         Update all callers.
738         (ref*add-N): Fix handling of opening parenthesis.  Problem reported
739         by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
741 2007-03-14  Werner LEMBERG  <wl@gnu.org>
743         * tmac/trace.tmac (als): Added.
744         (de, de1, am, am1): Make traced macros aliased with .als work.
746 2007-02-25  Werner LEMBERG  <wl@gnu.org>
748         * src/devices/xditview/TODO: Add some more items.
750         * Makefile.comm (.man.n): Add @APPRESDIR@.
751         Sort entries.
753         * src/devices/xditview/gxditview.man: Document GXditview resource
754         file.
755         Other documentation enhancements based on a patch from Jörg.
757 2007-02-25  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
758             Joerg van den Hoff <j.van_den_hoff@fzd.de>
760         * src/devices/xditview/GXditview.ad: Make all keys work regardless
761         of the current mouse position.
763 2007-02-20  Werner LEMBERG  <wl@gnu.org>
765         * tmac/groff_man.man: Revised to improve visual appearance.
766         Reduce use of future tense.
768         * tmac/groff_trace.man: Revosed to improve visual appearance.
770 2007-02-19  Eric S. Raymond  <esr@snark.thyrsus.com>
772         Make groff.man viewer-portable.
774         * tmac/groff.man: Eliminate use of .eo/.ec.
775         (.REQ): Surround args 2 through N with quotes.  This will enable us
776         not to rely on the shift request, which is nonportable.
777         (ExecFF): Remove.  The code is simpler without it.
779 2007-02-18  Eric S. Raymond  <esr@snark.thyrsus.com>
781         * tmac/groff_www.man: Viewer-portability fixes.
783 2007-02-16  Eric S. Raymond  <esr@snark.thyrsus.com>
785         * man/groff.man: Remove some unneeded code and a no-longer-used
786         inclusion of the www macros.
788 2007-02-12  Werner LEMBERG  <wl@gnu.org>
790         * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
791         AVAILABLE_REG.
792         (table::compute_widths): Simplify.
794 2007-02-11  Werner LEMBERG  <wl@gnu.org>
796         * src/preproc/tbl/table.h: Don't include `stdbool.h'.
797         (table): Replace `bool' type with `char' for orthogonality.
798         Update all users.
800         * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
801         AVAILABLE_REG and COLCOUNT_REG.
802         (table::table): Fix order call of initializers.
803         (table::~table): Deallocate `blockflag'.
805 2007-02-09  Eric S. Raymond  <esr@snark.thyrsus.com>
807         A try at the new rule for block column allocation is now enabled by
808         the new `experimental' global option: The horizontal space up to the
809         right margin which is not used by columns without text blocks is
810         evenly distributed to the columns with text blocks.
812         It doesn't work right as yet; there appears to be some error in the
813         computation of `3avail', the available line length.  The purpose of
814         this patch is (a) to make experimenting with other formulas easy,
815         and (b) leave the infrastructure for flag `experimental' in place
816         for future experiments.  Do not document any behavior associated
817         with this flag!
819         * src/preproc/tbl/table.h: Include `stdbool.h'.
820         (table): Make `flags' public.
821         Add `count_block_columns' function.
822         Add `blockflag' array.
823         Add `EXPERIMENTAL' enumeration value.
825         * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
826         macros.
827         (table_entry): New member `parent' so that class and subclass
828         members can set a parent field.  Update all users.
829         (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
830         (block_entry::do_width): Set the parent's `blockflag'.
831         (table::allocate): Handle `blockflag'.
832         (table::count_block_columns): New function.
833         (compute_span_width): Adjust AVAILABLE_REG.
834         (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
836         * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
837         option.
839 2007-02-08  Zhao, Yu (William)  <yzhao2@alcatel-lucent.com>
841         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
842         line thickness.
844 2007-02-08  Werner LEMBERG  <wl@gnu.org>
846         * man/groff_out.man (offset): Make it work reliably.
848 2007-02-07  Eric S. Raymond  <esr@snark.thyrsus.com>
850         * man/groff_out.man: Simplify some font changes so \fP is less
851         likely to do something surprising.
852         
853         * man/groff_out.man: We can simplify the command macros still
854         further if we stop trying to hide structural requests inside them. 
855         Also, fix some instances of \} at start of line without a dot, and
856         make some font changes explicit in strings.
857         
858         * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
859         .cp.
860         
861         * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
862         calls and fix macros to do without them.  File should now be
863         viewer-portable.
864         
865         * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
866         micromotions that produce the same visual result and can be lifted
867         to XML-DocBook.
868         
869         * man/groff_out.man: Third step: Reduce Da-comand, fix a
870         call-sequence bug in the original.
871         
872         * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
873         move font-change escapes to portable form.
875         * man/groff_out.man: First step in macro simplification; eliminate
876         list1..n, simplify .offset and .index_offset so they no longer
877         require groff-specific features or eqn (instead, use troff
878         micromotions for subscripting).
880 2007-02-06  Eric S. Raymond  <esr@snark.thyrsus.com>
882         * src/preproc/eqn/eqn.man: Minor corrections.
884         * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
885         longer takes a second argument that is pasted to the end of the
886         generated text.  Instead, the end macro takes an argument that does
887         the same thing.
889         * man/ditroff.man, man/groff_diff.man, man/groff.man,
890         man/groff_out.man, man/groff_tmac.man, man/roff.man,
891         src/roff/groff/groff.man, src/roff/grog/grog.man,
892         tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
894         * src/roff/troff/troff.man: .SY and .YS are canned macros now,
895         so we can use them here.
896         
897 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
899         * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
900         By popular demand, make ... set three lower dots again
901         and introduce a new predefined macro 'cdots' to set
902         three centered dots.
904 2007-02-05  Werner LEMBERG  <wl@gnu.org>
906         * src/preproc/eqn/eqn.man: Revised.
908         * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
909         `const'.
910         (spacing_type): Fix typo.
911         (special_to_entity): Use `const'.
912         Remove unused variable.
913         * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
915 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
917         * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
918         which is a shame as the effect was cute.
920 2007-02-04  Eric S. Raymond  <esr@snark.thyrsus.com>
922         * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
923         rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
924         possible, remove preamble declarations and macros that are no
925         longer needed.  Conversion checked using the protocol described in
926         tmac/TESTING-HINTS.
928 2007-02-03  Werner LEMBERG  <wl@gnu.org>
930         * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
931         vertical space.
933 2007-02-03  Eric S. Raymond  <esr@snark.thyrsus.com>
935         * tmac/groff_man.man: Documented the extension macros, and 
936         added portability advice.
938         * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
941         Add support for MathML output to eqn.  
943         The strategy used is very simple and relies on the fact that the box
944         models of eqn and Presentation MathML differ in only trivial ways. 
945         It leaves the grammar and existing internal object structures
946         unchanged.  A new global, `output_format', is defined as an
947         enumerated type with values {troff, mathml}.  Most of the functions
948         and methods that emit actual output acquire a top-level conditional,
949         dispatching on this global, which has one arm for troff mode and one
950         for MathML mode.  In most cases the MathML arm is drastically
951         simpler.
953         (This strategy could be easily generalized to support other output
954         formats.  TeX is a possibility that leaps to mind.)
956         The only even moderately tricky changes are in the lexer.  Some of
957         the predefined macros used constructs like `up', `down', `fwd',
958         `back', and `vcenter' that have no equivalents in MathML.  I
959         attacked this problem in these ways:
961         1. I eliminated three uses of `back' to compose characters in favor
962            of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
963            that did not exist when these macros were written.  (This will be
964            a quality improvement for troff users.)
966         2. I eliminated one use of `vcenter' by using \\(md.  (Likewise...)
968         3. I then split the table of pre-definitions in three; one large
969            common table and two small troff-specific and MathML-specific
970            tables.  Use of troff-only operations (up, down, back, fwd,
971            vcenter) is now confined to the former.  The latter now uses
972            `size big' and drops out the explicit positioning operations,
973            counting on MathML processors to do them.
975         POTENTIAL TROUBLE SPOTS:
977         Here are notes for reviewers on places I'm not 100% sure I've done
978         the right thing:
980         * In the process of preparing the troff table, I translated three
981           definitions (dot_def, dotdot_def, and utilde def) that previously
982           used explicit \v escapes to use `up' and `down' instead.  I
983           modeled the new definitions on the way `vec' and `dyad' work, but
984           it's possible I got something subtle wrong.
986         * I'm not certain the MathML implementation of font_box::output() is
987           right, because I don't quite get what the switcheroo between
988           `current_roman_font' and `old_roman_font' is supposed to
989           accomplish.  It does seem to generare good MathML, though.
991         Finally, I made one purely cosmetic change in `text.cpp'; I replaced
992         with an enum some magic numbers for spacing types that I thought
993         were too ugly to live.
995         REMAINING ISSUES:
997         The entirety of eqn is translated when `-TMathML' is specified, 
998         with the following exceptions...
1000         Limitations that cannot be fixed include non-support for special,
1001         up/down/fwd/back, and vcenter.
1003         Limitations that might be fixable include non-support for mark and
1004         lineup.  I will investigate further, but if these can be implemented
1005         at all it's going to be in a very complicated and nasty way.
1007         The way character boxes are output means that each digit of a
1008         multi-digit number gets its own <mn></mn> tag pair in the MathHTML. 
1009         While this is not technically wrong for Presentation MathML, it is
1010         ugly and inefficient.  Fixing this will require implementing a
1011         little state machine in the `text.cpp' output method.
1013         * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp, 
1014         src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man, 
1015         src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
1016         src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp, 
1017         src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp, 
1018         src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
1019         src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
1020         src/preproc/eqn/eqn.man: MathML output mode.
1022         * NEWS: Document it.
1024 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
1026         * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
1027         and for cross-viewer portability.  Conversion checked 
1028         using the protocol described in tmac/TESTING-HINTS.
1030 2007-02-02  Werner LEMBERG  <wl@gnu.org>
1032         * tmac/an-ext.tmac (ME): Don't use `\:'.
1034         * src/roff/grog/grog.man: Further refinements and normalizations.
1036 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
1038         * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
1039         cross-viewer portability.  Conversion checked using the protocol
1040         described in tmac/TESTING-HINTS.
1042 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
1044         * tmac/TESTING-HINTS: Added.
1046 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
1048         Enable the support for Bell archaisms on .SC, so the `-r bell'
1049         switch is no longer needed to format old AT&T papers like
1050         the EQN user guide.
1052         * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
1054         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
1056 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
1058         Add some Bell labs extensions to the -ms macros.
1060         * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
1062         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
1064 2007-01-30  Werner LEMBERG  <wl@gnu.org>
1066         * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
1067         (\n[mH]): New register (set if grohtml is used).
1068         (\n[SY]): Rename to \n[mS].
1069         (\n[a]): Rename to \n[mA].
1070         (\n[i]): Rename to \n[mI].
1071         (mU): New auxiliary input trap macro.
1072         (UR, UE): Replace stub with real definition.
1073         (URL): Remove.
1074         (MT, ME): New macros.
1075         (MTO): Remove.
1076         (EX, EE): Don't insert vertical space.
1077         Use a register to store (and restore) the current font.
1079         * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
1080         on patches from Eric Raymond.
1081         Fix URL addresses.
1083 2007-01-22  Gaius Mulley  <gaius@glam.ac.uk>
1085         * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
1087 2007-01-22  Werner LEMBERG  <wl@gnu.org>
1089         * tmac/an-ext.tmac: Protect against being sourced twice.
1090         (URL, EE): Use always two backslashes.
1091         (MTO): New macro.
1093 2007-01-16  Werner LEMBERG  <wl@gnu.org>
1095         * tmac/an-ext.tmac: Remove code for grodvi.
1096         (SY): Fix typos.
1097         Don't insert empty line.
1098         (URL, TQ): Fix typos.
1100 2007-01-14  Werner LEMBERG  <wl@gnu.org>
1102         * tmac/an-ext.tmac: New file, containing extension macros
1103         for -man.  See discussion on the groff mailing list for
1104         background information.
1105         * tmac/an-old.tmac: Load an-ext.tmac.
1106         Decorate .ds and as with comment escapes where appropriate.
1107         * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
1109 2007-01-05  Werner LEMBERG  <wl@gnu.org>
1111         * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
1113 2007-01-04  Gaius Mulley  <gaius@glam.ac.uk>
1115         Make -me macros ready for grohtml.
1117         * tmac/e.tmac: Load devtag.tmac.
1118         (need_eo_h, need_eo_tl, need_tl): New registers.
1119         (check_need_title, (x-html, )x-html, xp-html): New macros.
1120         (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
1121         b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
1122         (bp): Rename to @b only if output device is not html.
1124 2007-01-01  Werner LEMBERG  <wl@gnu.org>
1126         * man/groff_font.man: Document empty lines.
1128         * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
1129         the very beginning of the output.
1130         [!$opt_x]: Fix typo.
1132         * font/devps/*: Regenerate font definition files.
1134 2007-01-01  Werner LEMBERG  <wl@gnu.org>
1136         * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
1138         * font/devps/*: Regenerate font definition files.
1140 2006-12-31  Werner LEMBERG  <wl@gnu.org>
1142         * Makefile.in (oldfontdir): New variable.
1143         (MDEFINES): Add $(oldfontdir).
1144         (uninstall_dirs): Remove `current' link.
1145         Remove $(oldfontdir).
1147         * Makefile.comm (oldfontsubdir): New variable.
1148         (install_dev): Install files collected in $(OLDDEVFILES) into
1149         $(oldfontsubdir).
1150         (uninstall_dev): Remove data in $(oldfontsubdir).
1151         (.man.n): Handle @OLDFONTDIR@.
1153         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1154         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1155         src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
1156         Document GROFF_FONT_PATH.
1158         * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
1159         old font description files.
1161         * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
1162         variables.
1164         * font/devps/old/*: New directory, holding the previous version
1165         of the 35 Adobe core font description files.
1167         * font/devps/*: Regenerated the 35 Adobe core fonts, using the
1168         Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
1170         * NEWS: Document font update.
1172 2006-12-31  Werner LEMBERG  <wl@gnu.org>
1174         * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
1176         * Makefile.comm (fonts): New (empty) target.
1177         * Makefile.in (TARGETS): Add `fonts'.
1179         * MANIFEST: Add `chem'.
1181         * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
1182         can't be chained.
1184 2006-12-26  Werner LEMBERG  <wl@gnu.org>
1186         * src/preproc/grn/hdb.cpp: Include gprint.h later.  From NetBSD.
1188 2006-12-19  Werner LEMBERG  <wl@gnu.org>
1190         Add support for German.  For activation, simply use -mde or -mden
1191         (for traditional and new orthgraphy, respectively) as the last
1192         macro package.
1194         * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
1195         tmac/hyphenex.det: New files, partly taken from CTAN.
1196         * LICENSES: Updated list of hyphenation patterns.
1197         * man/groff_tmac.man: Mention de.tmac and den.tmac.
1198         * NEWS: Updated.
1200 2006-12-11  Werner LEMBERG  <wl@gnu.org>
1202         Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
1203         hosts).
1205         * src/preproc/pic/lex.cpp (ARG1): Redefine.  Update all users.
1206         (MAX_ARG): New macro.  Use it everywhere to replace hard-coded
1207         limit of 9 arguments.
1208         (process_body): Handle argument numbers with more than a single
1209         digit.
1210         (interpolate_macro_with_args): Protect against exceeding number of
1211         arguments.
1213         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
1215 2006-12-10  Werner LEMBERG  <wl@gnu.org>
1217         * Makefile.in (site.exp, docheck): Commented out.  Not working
1218         currently.
1219         (check): Just emit dummy message.
1221 2006-12-08  Werner LEMBERG  <wl@gnu.org>
1223         During installation, create soft link from <version> to `current' in
1224         <datadir>/groff.
1226         * Makefile.comm (install): Renamed to...
1227         (do_install): This.
1228         (prefix_must_exist): Removed.  Code moved to Makefile.in.
1230         * Makefile.in (TARGETS): Remove `install'.
1232         (install): New target which first creates the directory given by
1233         --prefix, then calling `make' to do the installation, and finishing
1234         with the creation of the soft link.
1236 2006-11-21  Werner LEMBERG  <wl@gnu.org>
1238         * doc/Makefile.sub (uninstall_sub): Fix names for info files.
1240 2006-11-18  Werner LEMBERG  <wl@gnu.org>
1242         * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
1243         information from Tom Van Vleck <thvv@multicians.org>.
1245 2006-11-16  Werner LEMBERG  <wl@gnu.org>
1247         * tmac/62bit.tmac: New macro package.
1248         * tmac/Makefile.sub (NORMALFILES): Add it.
1249         * NEWS: Document it.
1251         * tmac/trace.tmac: Protect against being loaded again.
1252         (nr): Always show result.
1254         * doc/groff.texinfo (Input Encodings): Document latin-5.
1256         * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
1258 2006-11-13  Werner LEMBERG  <wl@gnu.org>
1260         * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
1261         on negative trap positions.
1263 2006-11-10  Werner LEMBERG  <wl@gnu.org>
1265         * Makefile.comm (.man.n): Handle @DATASUBDIR@.
1267 2006-11-09  Werner LEMBERG  <wl@gnu.org>
1269         * INSTALL: Move information about external installation from
1270         INSTALL.gen into this file.
1271         Updated.
1273         * INSTALL.gen: Update to new version (from texinfo CVS).
1275 2006-11-09  Bernd Warken
1277         * INSTALL.gen: Extend the file by information on `external
1278         installation'.  Reorder the installation instruction as `normal
1279         installation'. 
1281 2006-11-08  Werner LEMBERG  <wl@gnu.org>
1283         * doc/Makefile.sub (install_data): Take care of proper paths while
1284         installing info files.  Bug reported by Bernd Warken.
1286 2006-11-06  Bernd Warken
1288         * src/roff/grog/grog.pl: Rewrite.
1289         - Call by `#! /usr/bin/env perl'.  That isn't replaced.
1290         - Rename usage() to version().
1291         - Use warnings.
1292         - For `use strict', start all global variables with an upper case
1293         character.  Use `my' for all variables.  Use several new variables.
1294         - Add option `-h'.
1295         - Add copyright to GPL and Emacs comment.
1296         - Handle several `-m*' options.
1297         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
1298         - Allow options after file names.
1299         - Allow only one `-' parameter (standard input).
1300         - Add option abbreviations.
1301         - Expand the usage information.
1302         - Add `chem'.
1303         - Add single quote "'" as additional first character and allow
1304         arbitrary space after the first character.
1306         * src/roff/grog/grog.sh: Rewrite.
1307         - Remove option `-e' of `sed'.
1308         - Allow file names with space characters.
1309         - Add option `-h'.
1310         - Add copyright to GPL.
1311         - Handle several `-m*' options.
1312         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
1313         - Allow options after file names.
1314         - Allow only one `-' parameter (standard input).
1315         - Add option abbreviations.
1316         - Expand the usage information.
1317         - Add `chem'.
1318         - Add single quote "'" as additional first character and allow
1319         arbitrary space after the first character.
1321         * src/roff/grog/Makefile.sub:
1322         - Add copyright to GPL.
1323         - Remove `grog:'.  Move `grog.old:' to `grog:' in order to have a
1324         fair chance to choose between the shell version and the Perl
1325         version of `grog'.  This is now again comparable to grog in groff
1326         version 1.10.
1328         * src/roff/grog/grog.man: Rewrite.
1329         - Move the license to GPL.
1330         - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
1331         - Take over some setup and macros from `groffer'.
1332         - Add information on options.
1334 2006-10-28  Werner LEMBERG  <wl@gnu.org>
1336         * tmac/trace.tmac: Improve tracing of `.nr'.
1337         Trace `.substring' also.
1339         * NEWS: Updated.
1341 2006-10-28  Bernd Warken
1343         * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
1344         of groff development site, fix fonts.
1346         * News: Add information on `chem' and `groffer'.
1348 2006-10-26  Bernd Warken
1350         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
1352 2006-10-26  Werner LEMBERG  <wl@gnu.org>
1354         Add `\$^' escape to handle the parameters to a macro as a string
1355         argument.
1357         * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
1359         * src/roff/troff/input.cpp (input_iterator, input_stack,
1360         macro_iterator): Add `space_follows_arg' member function.
1361         (macro_iterator::add_arg): Add parameter to set the `space_follows'
1362         flag.
1363         (arg_list): Add member `space_follows'.
1364         Update constructor and all callers.
1365         (decode_args): Store discarded double quotes.
1366         (interpolate_args): Handle DOUBLE_QUOTE.
1367         Add `\$^' escape.
1368         (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
1370         * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
1372         * docs/groff.texinfo (Parameters), man/groff.man,
1373         man/groff_diff.man, NEWS: Document it.
1375 2006-10-24  Bernd Warken
1377         * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
1379 2006-10-24  Werner LEMBERG  <wl@gnu.org>
1381         * tmac/groff_trace.man: Mention problem with `\\\\'.
1383 2006-10-23  Werner LEMBERG  <wl@gnu.org>
1385         * doc/groff.texinfo (Expressions): Improve documentation of `!'.
1387         * tmac/trace.tmac (return): Don't call `substring'.
1389 2006-09-10  Werner LEMBERG  <wl@gnu.org>
1391         * src/roff/troff/input.cpp (read_size): Revert previous change
1392         w.r.t. `\s-[-...]'.
1394         * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
1396 2006-09-09  Werner LEMBERG  <wl@gnu.org>
1398         * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
1399         behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
1400         point size to 1).  Reported by Gunnar Ritter.
1401         Also catch `\s-[-...]' and friends (causing an error).
1403 2006-09-06  Werner LEMBERG  <wl@gnu.org>
1405         * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
1406         space only if there is no previous space.  This fixes a bug which
1407         caused unwanted filling of the last line in a paragraph.  Thanks to
1408         Gunnar Ritter for an analysis.
1410 2006-09-03  Werner LEMBERG  <wl@gnu.org>
1412         * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
1413         Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
1415 2006-09-01  Nick Stoughton  <nick@msbit.com>
1416             Werner LEMBERG  <wl@gnu.org>
1418         Add a request `pev' to print environment information (similar to
1419         `pnr' and `ptr' to print number registers and traps).
1421         * src/roff/troff/env.h (environment): Add member function print_env.
1423         * src/roff/troff/env.cpp: (environment::print_env): New function to
1424         print a given environment state.
1425         (print_env): New global function to iterate through the
1426         environments, printing each one.
1427         (init_env_requests): Register `pev'.
1429         * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
1430         NEWS: Document `pev' request.
1432 2006-09-01  Bernd Warken
1434         * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
1435         `-I' to `dir'.
1437 2006-09-01  Werner LEMBERG  <wl@gnu.org>
1439         * src/preproc/pic/main.cpp (usage): Add missing options.
1441 2006-08-25  Werner LEMBERG  <wl@gnu.org>
1443         * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1444         in file names.
1446 2006-08-19  Werner LEMBERG  <wl@gnu.org>
1448         * configure: Regenerated.
1450 2006-08-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1452         * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1453         logic; it previously caused an `expr' syntax error, if no version of
1454         `makinfo' was present.  Also, remove dependency on `makeinfo' in VPATH
1455         builds, if an up to date `groff.info' is present in either `builddir'
1456         or in `srcdir'.
1458 2006-08-12  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1460         * font/devps/prologue.ps: Add BPhook.
1462         * src/devices/grops/grops.man: Document BPHook.
1463         Reorder some sections for better readability.
1465 2006-08-12  Werner LEMBERG  <wl@gnu.org>
1467         * src/include/lib.h (getlocale): New macro.
1468         (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1469         suggested by Bruno.
1471         * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1473 2006-08-11  Werner LEMBERG  <wl@gnu.org>
1475         Add new flag to .cflags to enable hyphenation without looking at
1476         hcode values.
1478         * src/roff/troff/charinfo.h (charinfo): New enumeration value
1479         `IGNORE_HCODES'.
1480         New member function `ignore_hcodes'.
1482         * src/roff/troff/node.cpp (break_char_node::add_self,
1483         node::add_char): Updated.
1485         * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1487 2006-08-09  Werner LEMBERG  <wl@gnu.org>
1489         Support composite Unicode characters again.  Reported by Colin.
1491         * font/devhtml/R.proto: Renamed to...
1492         * font/devhtml/R.in: This.
1494         * font/devutf8/R.proto: Renamed to...
1495         * font/devutf8/R.in: This.
1496         Add `charset' line.
1498         * font/make-Rproto: New script.
1499         * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1501 2006-07-26  Werner LEMBERG  <wl@gnu.org>
1503         * README: Fix description of CVS access.  Reported by Joachim.
1505 2006-07-11  Werner LEMBERG  <wl@gnu.org>
1507         Add a request `.fzoom' and a number register `.zoom' to magnify
1508         fonts.
1510         * src/include/font.h (font): Add member variable `zoom'.
1511         Add member functions `set_zoom' and `get_zoom'.
1512         Remove `static' attribute from `scale' member function.
1514         * src/libs/libgroff/font.cpp (font::font): Updated.
1515         (scale_round): New version with three parameters to handle zoom
1516         factor.
1517         (font::scale, font::get_width): Handle zoom factor.
1518         (font::set_zoom, font::get_zoom): New functions.
1519         (font::load): Handle `zoom' while computing `space_width'.
1521         * src/roff/troff/env.h: Declare `env_get_zoom'.
1522         (environment): Add member function `get_zoom'.
1524         * src/roff/troff/env.cpp (environment::get_zoom): New function.
1525         (init_env_requests): Initialize `.zoom' register.
1527         * src/roff/troff/node.cpp (font_info): New member functions
1528         `set_zoom' and `get_zoom'.
1529         (tfont): New member function `get_zoom'.
1530         (env_get_zoom): New function.
1531         (troff_output_file::set_font): Handle zoom factor.
1532         (font_zoom_request): New function.
1533         (init_node_requests): Initialize `fzoom' request.
1535         * docs/groff.texinfo (Changing Fonts), man/groff.man,
1536         man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1537         register.
1539         * src/roff/troff/TODO: Updated.
1541 2006-07-10  Werner LEMBERG  <wl@gnu.org>
1543         * doc/groff.texinfo (Drawing Requests): Improve documentation of
1544         \D'P ...'.
1546 2006-07-02  Werner LEMBERG  <wl@gnu.org>
1548         * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1550 2006-07-01  Werner LEMBERG  <wl@gnu.org>
1552         * tmac/pspic.tmac: Make .PSPIC work for all devices.
1553         Print image file name for devices which don't support PS image
1554         inclusion.
1555         Handle multiple inclusions.
1556         Add lots of comments.
1558         * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1559         pspic.tmac.
1561         * tmac/troffrc: Load pspic.tmac.
1563         * man/groff_tmac.man: Update .PSPIC documentation.
1565         * NEWS: Updated.
1567 2006-06-29  Werner LEMBERG  <wl@gnu.org>
1569         * src/roff/troff/input.cpp (interpolate_macro):
1570         s/probably/possibly/, as suggested by Keith.
1572 2006-06-28  Werner LEMBERG  <wl@gnu.org>
1574         Add support for \D'p...' to grotty.
1576         * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1577         its code to...
1578         (tty_printer::line): This function.
1579         (tty_printer::draw): Rewritten; just call either draw_line or
1580         draw_polygon.
1581         (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1583         * src/devices/grotty/grotty.man, NEWS: Document it.
1585 2006-06-27  Werner LEMBERG  <wl@gnu.org>
1587         * src/preproc/refer/command.h (have_bibliography): New variable
1588         declaration.
1590         * src/preproc/refer/command.cpp (bibliography_command): Set
1591         `have_bibliography'.
1593         * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1594         (output_references): Emit warning only if `have_bibliography' is
1595         set.
1597 2006-06-15  Michail Vidiassov  <master@iaas.msu.ru>
1599         * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1600         * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1601         and zapfdr.afm.
1603 2006-06-15  Werner LEMBERG  <wl@gnu.org>
1605         * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1606         macro (as suggested by Tadziu Hoffmann).
1608 2006-06-12  Werner LEMBERG  <wl@gnu.org>
1610         * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1611         macro (as suggested by Tadziu Hoffmann).
1613 2006-06-05  Werner LEMBERG  <wl@gnu.org>
1615         * tmac/strip.sed: Strip `\#' also.
1617         * doc/groff.texinfo (Operators in Conditionals): Document usage of
1618         \? for string comparison.
1620 2006-06-04  Werner LEMBERG  <wl@gnu.org>
1622         * doc/groff.texinfo: Add more index entries for copy-in mode.
1623         (Changing Fonts) <.ft>: Document that a font definition file must
1624         not be called `DESC'.
1626 2006-05-31  Werner LEMBERG  <wl@gnu.org>
1628         * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1629         here.
1631         * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1632         (PROCESSEDEXAMPLEFILES): Here.
1634 2006-05-30  Werner LEMBERG  <wl@gnu.org>
1636         * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1637         `DESC'.
1638         Reduce number of false positives for `.if F ...' conditionals.
1639         Improve warning messages.
1641 2006-05-29  Werner LEMBERG  <wl@gnu.org>
1643         * tmac/Makefile.sub: Add copyright notice.
1644         (NORMALFILES): Add man.tmac and ms.tmac.
1645         (SPECIALFILES): Remove man.tmac and ms.tmac.
1646         (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1647         (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1648         specially.
1649         (stamp-sed): Don't handle man.tmac and ms.tmac.
1650         Remove obsolete components in sed's regexp.
1652         * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1654         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1656 2006-05-28  Werner LEMBERG  <wl@gnu.org>
1658         * doc/groff.texinfo (History): Correct death circumstances of Joe
1659         Ossanna.
1661 2006-05-27  Werner LEMBERG  <wl@gnu.org>
1663         * tmac/an-old.tmac (an-do-tag): Simplify.
1665 2006-05-26  Werner LEMBERG  <wl@gnu.org>
1667         * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1668         (an-header, an-p-footer): Use named environment.
1670         * src/roff/troff/env.cpp (environment::copy): Copy margin character
1671         node.
1673 2006-05-21  Werner LEMBERG  <wl@gnu.org>
1675         * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1676         omissions.
1678 2006-05-11  Keith Marshall  <keith.d.marshall@ntlworld.com>
1680         * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1682 2006-05-10  Keith Marshall  <keith.d.marshall@ntlworld.com>
1684         * src/roff/groff/groff.man: Update copyright notice.
1685         Improved wording to describe effect of `-Z' option.
1687 2006-05-06  Werner LEMBERG  <wl@gnu.org>
1689         * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1690         Normalize handling of `"' in arguments.
1691         (PIMG): Remove debug message.
1692         Simplify code.
1694 2006-05-05  Werner LEMBERG  <wl@gnu.org>
1696         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1697         swallow character immediately after `\[...]'.
1698         Simplify code.
1700 2006-05-02  Gaius Mulley  <gaius@glam.ac.uk>
1702         * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1704 2006-05-02  Larry Kollar  <kollar@alltel.net>
1706         * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1707         option is missing.
1709 2006-04-30  Michail Vidiassov  <master@iaas.msu.ru>
1711         * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1712         information as a comment in output.
1713         * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1715 2006-04-26  Werner LEMBERG  <wl@gnu.org>
1717         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1718         Handle current_paragraph only if it is non-NULL.
1720         * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1721         <'F'>): Use `get_extended_arg' to behave as documented.  Reported by
1722         Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1725         Surround the (pseudo) file name for the .pso request with `<' and
1726         `>'.
1728         * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1729         second parameter to `really_put_filename' and `put_filename'.
1730         (troff_output_file::really_put_filename): Emit `<' and `>' around
1731         filename if second argument is set.
1732         * src/roff/troff/node.h: Updated.
1734         * src/roff/troff/input.cpp (file_iterator::file_iterator,
1735         file_iterator::set_location): Update to changes in node.cpp.
1737 2006-04-25  Tetsurou Okazaki  <okazaki@FreeBSD.org>
1739         * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1740         preprocessor expression (I18N -> HAVE_ICONV).
1741         (main): Fix handling of option `-h'.
1742         Fix conditional preprocessor expression.
1744 2006-04-04  Werner LEMBERG  <wl@gnu.org>
1746         Implement new number register `.br' which is set to 1 if a macro has
1747         been called as .foo and to 0 if called as 'bar.  This is useful for
1748         -mtrace so that requests can be reliably traced too.
1750         * src/roff/troff/input.cpp (input_iterator): Add virtual function
1751         `get_break_flag'.
1752         (macro_iterator): Add `with_break' member and `get_break_flag'
1753         function.
1754         Update constructors.
1755         (input_stack): Add function `get_break_flag'.
1756         (break_flag_reg): New number register class.
1757         (input_init_requests): Register `.br'.
1759         * src/roff/troff/TODO: Updated.
1761         * tmac/trace.tmac: s/!!sp/!!!sp/.
1762         Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
1764         * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
1765         NEWS: Document it.
1767 2006-03-29  Werner LEMBERG  <wl@gnu.org>
1769         * src/devices/grops/ps.cpp: s/must not/should not/ in warning
1770         messages where appropriate.
1772 2006-03-28  Werner LEMBERG  <wl@gnu.org>
1774         * configure.ac: Call AC_PROG_EGREP.
1775         * configure: Regenerated.
1777         * Makefile.in (EGREP): New variable.
1778         (MDEFINES): Add $(EGREP).
1780         * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
1781         (bug reported by Robert Goulding <Goulding.2@nd.edu>).
1782         Use @EGREP@.
1784         * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
1786 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1788         Add two requests `.device' and `.devicem' which are equivalent to
1789         `\X' and `\Y', respectively.
1791         * src/roff/troff/input.cpp (device_request, device_macro_request):
1792         New functions.
1793         (init_input_requests): Register them.
1795         * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
1796         man/groff.man, NEWS: Document them.
1798 2006-03-27  Gaius Mulley  <gaius@glam.ac.uk>
1800         * src/roff/troff/input.cpp (encode_char): Emit special characters
1801         for -Thtml as `\[...]'.
1802         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
1804         * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
1806 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1808         * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
1809         files.
1811 2006-03-26  Werner LEMBERG  <wl@gnu.org>
1813         * doc/groff.texinfo (Writing Macros): More documentation on
1814         end-of-macro symbol of `.de'.
1815         (Diversions): Minor addition to `.di' description.
1817         * src/devices/grops/grops.man: Some clarifications regarding
1818         insertion of PostScript snippets.
1820 2006-03-25  Michail Vidiassov  <master@iaas.msu.ru>
1822         Add rules to generate `symbolsl.afm'.
1824         * font/devps/generate/zapfdr.sed,
1825         font/devps/generate/symbolsl.awk: New files.
1827         * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
1828         variables.
1829         (SS, clean): Updated.
1830         (freeeuro.afm): Use $(srcdir).
1831         (symbolsl.afm): New rule.
1832         (zapfdr.afm): Use zapfdr.sed.
1834 2006-03-22  Dwight Aplevich  <aplevich@uwaterloo.ca>
1836         * src/preproc/pic/pic.y (expr <INT>): Fix code.
1838 2006-03-22  Jörgen Grahn <jgrahn@algonet.se>
1840         * tmac/sv.tmac: Add missing translations and activate support for
1841         other macro packages.
1843 2006-03-21  Francis GUDIN  <fgudin@nerim.net>
1845         * tmac/doc-syms (Dx): New macro to identify DragonFly.
1846         (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
1847         doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
1848         strings.
1849         (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
1850         doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
1851         doc-operating-system-DragonFly-*): New operating system strings.
1853         * tmac/groff_mdoc.man, NEWS: Document `Dx'.
1855 2006-03-21  Werner LEMBERG  <wl@gnu.org>
1857         * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
1858         both DWB pic and dpic, make
1860           right;
1861           line then down;
1863         equal to
1865           right;
1866           line right then down;
1868         instead of
1870           right;
1871           line 0 then down;
1873         * doc/pic.ms: Document this.
1875 2006-03-20  Werner LEMBERG  <wl@gnu.org>
1877         * doc/pic.ms: With permission of Eric Raymond, put it under the
1878         GPL.
1880         * NEWS: Updated.
1882 2006-03-19  Werner LEMBERG  <wl@gnu.org>
1884         * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
1886         * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
1887         attribute in combination with `with'.  Bug reported by Jennifer
1888         Sayers <jenjen@mail.usyd.edu.au>.
1890 2006-03-19  Miklos Somogyi  <msom@netspace.net.au>
1892         * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
1893         `.sp'.
1895 2006-03-18  Werner LEMBERG  <wl@gnu.org>
1897         * LICENSE: Renamed to...
1898         * LICENSES: This.  Collect all licensing information in this file.
1899         * tmac/README, src/libs/snprintf/README: Removed.
1901         * src/devices/grops/grops.man: Add section how to install fonts.
1903         * src/utils/xtotroff/xtotroff.c: Add GPL.
1905 2006-03-17  Werner LEMBERG  <wl@gnu.org>
1907         * Makefile.comm (.y.cpp): Fix #line arguments in output.
1909 2006-03-13  Werner LEMBERG  <wl@gnu.org>
1911         * src/preproc/tbl/tbl.man: Mention default length of text blocks.
1913         * tmac/doc-common (Os): Add more Darwin versions.
1914         * tmac/groff_mdoc.man: Document them.
1916         * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
1917         works with \N'...' also.
1918         * man/groff_diff.man: Ditto.  Remove use of future tense where
1919         possible.
1921 2006-03-12  Michail Vidiassov  <master@iaas.msu.ru>
1923         * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
1924         font/devps/zapfdr.ps: Add `%%EndComments' line.
1926 2006-03-10  Larry Kollar  <kollar@alltel.net>
1928         * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
1930 2006-03-10  Werner LEMBERG  <wl@gnu.org>
1932         * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
1933         ps_printer::do_mdef): Overlong lines now cause a warning message,
1934         not an error.
1936 2006-03-09  Werner LEMBERG  <wl@gnu.org>
1938         * font/devps/generate/make-zapfdr: New script for generating
1939         `zapfdr.ps'.
1941 2006-03-08  Werner LEMBERG  <wl@gnu.org>
1943         * doc/groff.css (pre): Fix `background-color' value.
1945 2006-03-04  Larry Kollar  <kollar@alltel.net>
1947         * tmac/groff_ms.man: Document PT, HD, and BT.
1949 2006-03-04  Werner LEMBERG  <wl@gnu.org>
1951         * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
1952         for single-letter glyph names.
1954 2006-03-02  Werner LEMBERG  <wl@gnu.org>
1956         * tmac/sv.tmac: New file; currently holding only the Swedish strings
1957         for -mm.
1958         * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
1959         from CTAN.
1960         * tmac/README: Updated.
1962 2006-02-27  Werner LEMBERG  <wl@gnu.org>
1964         * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
1965         * tmac/fr.tmac: Add French translations.
1967         * tmac/composite.tmac: Add entry for `:'.
1969 2006-02-26  Werner LEMBERG  <wl@gnu.org>
1971         * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
1972         (CLEANADD): Use it.
1973         (install_html, uninstall_sub): Updated.
1975 2006-02-26  Bruno Haible  <bruno@clisp.org>
1977         Introduce Unicode fonts.
1979         * font/devhtml/DESC.proto: Mark as unicode.
1980         * font/devhtml/R.proto: Remove all charset entries that are already
1981         in glyphuni.cpp.
1982         * font/devutf8/DESC.proto: Mark as unicode.
1983         * font/devutf8/R.proto: Remove all charset entries.
1984         * src/include/font.h (font): New static field `is_unicode'.
1985         Change order of fields.
1986         * src/libs/libgroff/font.cpp: Include unicode.h.
1987         (font::font): Update for changed order of fields.
1988         (font::contains, font::get_width, font::get_height, font::get_depth,
1989         font::get_italic_correction, font::get_left_italic_correction,
1990         font::get_subscript_correction, font::get_character_type,
1991         font::get_code, font::get_special_device_encoding): Handle both the
1992         explicitly enumerated glyphs and use general code for Unicode fonts.
1993         (font::load): Make the charset section optional when the font is
1994         declared unicode.
1995         (font::load_desc): Recognize the `unicode' attribute.
1996         * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
1998 2006-02-26  Claudio Fontana  <claudio@gnu.org>
2000         * Makefile.in: Add comment about DESTDIR.
2002         * Makefile.sub: Add DESTDIR to install and uninstall targets
2003         to support staged installations.
2004         * Makefile.comm: Likewise.
2005         * doc/Makefile.sub: Likewise.
2006         * contrib/eqn2graph/Makefile.sub: Likewise.
2007         * contrib/grap2graph/Makefile.sub: Likewise.
2008         * contrib/pic2graph/Makefile.sub: Likewise.
2009         * src/devices/xditview/Makefile.sub: Likewise.
2010         * src/preproc/eqn/Makefile.sub: Likewise.
2011         * src/roff/grog/Makefile.sub: Likewise.
2012         * src/roff/nroff/Makefile.sub: Likewise.
2013         * src/utils/afmtodit/Makefile.sub: Likewise.
2014         * src/utils/indxbib/Makefile.sub: Likewise.
2015         * tmac/Makefile.sub: Likewise.
2017 2006-02-24  Werner LEMBERG  <wl@gnu.org>
2019         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2020         for \-.
2021         Remove commented out entries for \' and \` (there are no such glyph
2022         names).
2024         * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2025         commented out entries for \' and \`.
2028         * */*: s/legal/valid/ where appropriate.
2030 2006-06-23  Werner LEMBERG  <wl@gnu.org>
2032         * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
2033         and \` entries.
2035 2006-02-22  Werner LEMBERG  <wl@gnu.org>
2037         Remove all remaining traces from the `shc' glyph.
2039         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2040         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2041         entry for `shc'.
2043         * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
2044         entry with unnamed glyph.
2046         * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
2048         * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
2049         specially.
2051 2006-02-22  Bruno Haible  <bruno@clisp.org>
2053         Concretize the `glyph' datatype.
2055         * src/include/font.h (glyph): Remove class.
2056         (glyph): Renamed from struct `glyphinfo'.
2057         (glyph_to_index): New inline function.
2058         (glyph_to_name): Make extern, not inline.
2059         (glyph_to_number): Update.
2060         (font): Use `glyph *' instead of `glyph'.
2062         * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
2063         `glyph'.  Make `name' field public.
2064         (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
2065         instead of `glyph'.
2066         (glyph_to_name): Renamed from `glyph::glyph_name'.
2068         * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
2069         Use `glyph *' instead of `glyph'.
2071         * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
2072         `glyph *' instead of `glyph'.
2073         (glyph_to_name): Renamed from `glyph::glyph_name'.
2075         * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
2076         and `glyph_to_index' instead of `glyph::glyph_index'.
2078         * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
2079         * src/libs/libdriver/printer.cpp: Likewise.
2080         * src/devices/grodvi/dvi.cpp: Likewise.
2081         * src/devices/grohtml/post-html.cpp: Likewise.
2082         * src/devices/grolbp/lbp.cpp: Likewise.
2083         * src/devices/grolj4/lj4.cpp: Likewise.
2084         * src/devices/grops/ps.cpp: Likewise.
2085         * src/devices/grotty/tty.cpp: Likewise.
2087 2006-02-22  Werner LEMBERG  <wl@gnu.org>
2089         * font/devdvi/generate/tc.map: Add `sr' glyph.
2090         * font/devdvi/*TC: Regenerated.
2092         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2093         for `sqrt'.
2095 2006-02-21  Werner LEMBERG  <wl@gnu.org>
2097         * man/groff_char.man: Explain `***' marker.
2099 2006-02-17  Bruno Haible  <bruno@clisp.org>
2101         * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
2102         methods and fields from *_index to *_glyph.
2103         (character_indexer::named_char_glyph): Test for `charNNN' name
2104         here...
2105         (name_to_glyph): ... not here.
2107 2006-02-17  Bruno Haible  <bruno@clisp.org>
2109         * src/include/font.h (name_to_glyph): Renamed from
2110         font::name_to_index.
2111         (number_to_glyph): Renamed from font::number_to_index.
2112         (glyph_to_name): Renamed from font::index_to_name.
2113         (glyph_to_number): Renamed from font::index_to_number.
2114         * src/libs/libgroff/nametoindex.cpp: Likewise.
2115         * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
2116         charinfo::get_index.
2118         * src/roff/troff/input.cpp: All callers changed.
2119         * src/roff/troff/node.cpp: Likewise.
2120         * src/libs/libgroff/font.cpp: Likewise.
2121         * src/devices/grops/ps.cpp: Likewise.
2122         * src/devices/grohtml/post-html.cpp: Likewise.
2123         * src/libs/libdriver/printer.cpp: Likewise.
2125 2006-02-17  Werner LEMBERG  <wl@gnu.org>
2127         * src/include/ptable.h, src/include/itable.h
2128         (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
2129         of external symbol `next_ptable_size' (used by both header files).
2131 2006-02-15  Bruno Haible  <bruno@clisp.org>
2133         * src/include/font.h (glyphinfo): New class.
2134         (glyph): Change internal representation.
2135         Change constructor signature.
2136         New method glyph::glyph_number().
2137         (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
2138         glyph::operator==, glyph::operator!=): Update.
2139         (font::index_to_name, font::index_to_number): New functions.
2141         * src/include/itable.h: New file, based on src/include/ptable.h.
2143         * src/libs/libgroff/nametoindex.cpp: Include itable.h.
2144         (class charinfo): New class.
2145         (class character_indexer): Change table result type from `int' to
2146         `class charinfo'.
2147         Add table with integer key.
2148         (character_indexer::character_indexer): Update.
2149         (character_indexer::ascii_char_index): Update.
2150         (character_indexer::numbered_char_index): Use NULL as name, not a
2151         string starting with a space.
2152         (character_indexer::named_char_index): Update.
2153         (font::number_to_index, font::name_to_index): Remove no-op cast.
2154         (glyph::glyph_name): New method.
2155         * src/roff/troff/charinfo.h (class charinfo): Inherit from class
2156         glyphinfo.
2157         (NUMBERED): Remove flag bit.
2158         (charinfo::numbered, charinfo::get_index): Update.
2160         * src/roff/troff/input.cpp (charinfo::charinfo): Update.
2161         (charinfo::set_number, charinfo::get_number): Update.
2162         (glyph::glyph_name): New method.
2164 2006-02-15  Werner LEMBERG  <wl@gnu.org>
2166         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
2167         entries for `>>', `<<', `*f', and `+f'.  Reported by Bruno.
2169 2006-02-13  Werner LEMBERG  <wl@gnu.org>
2171         * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
2172         dvips.
2174 2006-02-11  Werner LEMBERG  <wl@gnu.org>
2176         * src/include/font.h: s/glyph_t/glyph/.
2177         Update all callers.
2179         * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
2180         s/output_character_t/output_character/.
2182 2006-02-11  Bruno Haible  <bruno@clisp.org>
2184         New accessor method glyph_t::glyph_name().
2186         * src/include/ptable.h (declare_ptable): Add a return value to the
2187         `define' method, and declare a `lookupassoc' method.
2188         (implement_ptable): Return the stored key in `define'.  Implement
2189         lookupassoc.
2190         * src/include/font.h (glyph_t): Add `name' field.  Add an argument
2191         to the constructor.
2192         (glyph_t::glyph_name): New method.
2194         * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
2195         return type of methods and field member type to glyph_t.
2196         (character_indexer::character_indexer): Update.
2197         (character_indexer::ascii_char_index): Allocate a name for the
2198         glyph.
2199         Return a glyph_t with name.
2200         (character_indexer::numbered_char_index): Return a glyph_t without a
2201         name.
2202         (character_indexer::named_char_index): Return a glyph_t with a name.
2203         (font::number_to_index, font::name_to_index): Update.
2205         * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
2206         the glyph's name.
2208 2006-02-11  Bruno Haible  <bruno@clisp.org>
2210         * src/devices/grotty/tty.cpp (output_character_t): New type.
2211         (tty_printer::make_bold, tty_printer::add_char,
2212         tty_printer::put_char): Change argument type to output_character_t.
2213         (crossings): Change element type to output_character_t.
2215 2006-02-11  Bruno Haible  <bruno@clisp.org>
2217         Make the glyph data type abstract.
2219         * src/include/font.h (glyph_t): New class.
2220         (name_to_index, number_to_index): Change return type to glyph_t.
2221         (font::contains, font::get_width, font::get_height, font::get_depth,
2222         font::get_character_type, font::get_kern, font::get_skew,
2223         font::get_italic_correction, font::get_left_italic_correction,
2224         font::get_subscript_correction, font::get_code,
2225         font::get_special_device_encoding, font::add_entry,
2226         font::copy_entry, font::add_kern, font::hash_kern): Change argument
2227         type to glyph_t.
2229         * src/libs/libgroff/font.cpp (font_kern_list): Change members
2230         type and constructor argument types to glyph_t.
2231         (font::contains, font::get_width, font::get_height, font::get_depth,
2232         font::get_character_type, font::get_kern, font::get_skew,
2233         font::get_italic_correction, font::get_left_italic_correction,
2234         font::get_subscript_correction, font::get_code,
2235         font::get_special_device_encoding, font::add_entry,
2236         font::copy_entry, font::add_kern, font::hash_kern): Change argument
2237         type to glyph_t.
2238         (font::load): Use glyph_t variables.
2240         * src/libs/libgroff/nametoindex.cpp (name_to_index,
2241         number_to_index): Change return type to glyph_t.
2243         * src/roff/troff/charinfo.h (charinfo::index): Change type to
2244         glyph_t.
2245         (charinfo::get_index): Change return type to glyph_t.
2247         * src/roff/troff/env.cpp: Include font.h.
2249         * src/roff/troff/node.cpp: Include font.h before charinfo.h.
2251         * src/roff/troff/input.cpp: Include font.h before charinfo.h.
2252         (charinfo::charinfo): Update.
2253         (name_to_index, number_to_index): Change return type to glyph_t.
2255         * src/include/printer.h (printer::set_char_and_width): Change return
2256         type to glyph_t.
2258         * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
2259         Change return type to glyph_t.
2261         * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
2262         argument type to glyph_t.
2264         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
2265         (html_printer::space_glyph): Renamed from space_char_index.
2266         (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
2267         html_printer::overstrike, html_printer::set_char): Change argument
2268         type to glyph_t.
2269         (html_printer::set_char_and_width): Change return type to glyph_t.
2271         * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
2272         argument type to glyph_t.
2274         * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
2275         argument type to glyph_t.
2277         * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
2278         space_char_index.
2279         (ps_printer::set_subencoding, ps_printer::set_char): Change argument
2280         type to glyph_t.
2282         * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
2283         argument type to glyph_t.
2285 2006-02-11  Bruno Haible  <bruno@clisp.org>
2287         * src/roff/troff/input.cpp (font::name_to_index): Never return a
2288         negative value.
2290         * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
2291         font::name_to_index.
2293 2006-02-10  Werner LEMBERG  <wl@gnu.org>
2295         * doc/groff.texinfo (Assigning Formats): Number registers are always
2296         interpolated.
2297         Apply some rephrasing, contributed by Michael Burt.
2299 2006-02-07  Werner LEMBERG  <wl@gnu.org>
2301         * tmac/fr.tmac <ms>: Set `HY' register.
2303 2006-02-07  Werner LEMBERG  <wl@gnu.org>
2305         Add framework for simple adaptation of the main macro packages (mm,
2306         me, ms, mom) to different locales.  In particular, add support for
2307         French.  For activation, simply use `-mfr' as the last macro
2308         package.  This feature has been contributed by Fabrice Ménard
2309         <menard.fabrice@wanadoo.fr>.
2311         * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
2312         New files.
2313         * tmac/README: Mention hyphen.fr.
2314         * man/groff_tmac.man: Mention fr.tmac.
2315         * NEWS: Updated.
2317 2006-01-27  Werner LEMBERG  <wl@gnu.org>
2319         * man/groff_font.man: Updated documentation of `entity_name' field.
2320         Avoid future tense.
2322 2006-01-27  Bruno Haible  <bruno@clisp.org>
2324         * font/devhtml/R.proto: Remove the entity names from the font's
2325         special_encoding_encoding column.
2326         * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
2327         handling the entity names here.
2328         (get_html_translation): Use it.  Change return type to `const
2329         char *'.
2330         (page::add_and_encode): Update, removing a useless cast.
2332 2006-01-26  Werner LEMBERG  <wl@gnu.org>
2334         This change is based on a patch by Bruno Haible <bruno@clisp.org>.
2336         * src/include/device.h: Add comments.
2337         * src/include/font.h: Add comments.
2338         * src/include/unicode.h: Likewise.
2339         * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
2341 2006-01-26  Keith Marshall  <keith.d.marshall@ntlworld.com>
2343         Suppress `.st' request emission by `grn'.
2345         * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
2346         (conv): Use it.
2348 2006-01-22  Werner LEMBERG  <wl@gnu.org>
2350         * install-sh: New version; taken from texinfo CVS.
2352 2006-01-21  Werner LEMBERG  <wl@gnu.org>
2354         * src/preproc/preconv/preconv.cpp (main): Set program_name.  Bug
2355         reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
2357 2006-01-19  Bruno Haible  <bruno@clisp.org>
2359         Let `make -k install' install more files.
2361         * Makefile.in (MAKE_K_FLAG): New variable.  Use it everywhere where
2362         $(MAKE) and $(MDEFINES) are used.
2363         (CPROGDIRS): Remove $(XPROGDIRS).  Treat $(XPROGDIRS) like
2364         $(CPROGDIRS) everywhere.
2365         ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
2366         on $(XPROGDIRS).
2367         ($(OTHERDIRS)): Likewise.
2370         * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
2371         failure test for font::name_to_index -- it can never fail.
2373 2006-01-19  Werner LEMBERG  <wl@gnu.org>
2375         * src/devices/grops/grops.man: Fix section on creating EPS files.
2376         Don't use future time in manual.
2377         Other minor fixes.
2379 2006-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2381         * tmac/www.tmac: New macro LINKSTYLE which allows users to set
2382         various typographical URL attributes for non-HTML devices.
2384         * tmac/groff_www.man: Document LINKSTYLE.
2386 2006-01-11  Werner LEMBERG  <wl@gnu.org>
2388         * configure.ac: Test for getc_unlocked (needed for localcharset).
2389         * configure, src/include/config.hin: Regenerated.
2391         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
2392         ENABLE_RELOCATABLE.
2394         * src/libs/libgroff/relocatable.h: New dummy header file for
2395         localcharset.c.
2397         * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
2398         gnulib version.
2400 2006-01-10  Bruno Haible  <bruno@clisp.org>
2402         Work around unportability of nl_langinfo(CODESET).
2404         * m4/glibc21.m4: New file, from gnulib.
2405         * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
2406         * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
2407         * Makefile.in (HOST, GLIBC21): New variables.
2408         (MDEFINES): Pass them to subdirectories.
2409         * src/include/relocate.h (relocatep): Define with C linkage.
2410         * src/include/localcharset.h: New file, from gnulib.
2411         * src/libs/libgroff/localcharset.c: New file, from gnulib with a
2412         modification for relocate().
2413         * src/libs/libgroff/config.charset: New file, from gnulib.
2414         * src/libs/libgroff/ref-add.sin: New file, from gnulib.
2415         * src/libs/libgroff/ref-del.sin: New file, from gnulib.
2416         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
2417         (OBJS): Add localcharset.o.
2418         (CSRCS): Add localcharset.c.
2419         (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
2420         (charset.alias): New rule.
2421         (PACKAGE): New variable.
2422         (ref-add.sed, ref-del.sed): New rules.
2423         (MKINSTALLDIRS): New variable.
2424         (install_data): Depend on install_charset_data.
2425         (install_charset_data): New rule for creating or updating
2426         charset.alias.
2427         (uninstall_sub): Depend on uninstall_charset_data.
2428         (uninstall_charset_data): New rule for uninstalling or updating
2429         charset.alias.
2430         * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
2431         of <langinfo.h>.
2432         (main): Initialize default_encoding from locale_charset() instead of
2433         nl_langinfo(CODESET).
2435         * aclocal.m4, configure, src/include/config.hin: Regenerated.
2437 2006-01-10  Werner LEMBERG  <wl@gnu.org>
2439         * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
2440         ICONV_CONST in call to iconv.  Reported by Robert Goulding.
2442 2006-01-07  Werner LEMBERG  <wl@gnu.org>
2444         * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2445         fontforge version.
2446         Bump font version to 001.001.
2448         * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2449         Call fontforge, not pfaedit.
2451         * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2453 2006-01-05  Ruslan Ermilov  <ru@FreeBSD.org>
2455         * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2456         * tmac/groff_mdoc.man: Updated.
2458 2006-01-05  Werner LEMBERG  <wl@gnu.org>
2460         * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2461         (raw_flag): New global variable.
2462         (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2463         Don't pass BOM to `conversion_utf8'.
2464         (usage): Updated.
2465         (main): Handle `-r' command line switch to set `raw_flag'.
2466         (get_BOM): Fix encodings in `BOM_table'.
2468         * src/preproc/preconv/preconv.man: New file.  Not complete yet.
2469         * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2471 2006-01-04  Werner LEMBERG  <wl@gnu.org>
2473         * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2474         Bruno, comment out most encodings to support only a small set of
2475         coding tags, thus reducing potential problems with legacy encodings
2476         and character sets in the future.
2477         Add many XEmacs coding tags (now commented out).
2478         Add `cp1047'.
2479         (check_encoding_tag): Renamed to...
2480         (check_coding_tag): This.
2481         (get_BOM): Return encoding as specified by BOM.
2482         Test for UTF32-LE too.
2483         (do_file): Don't check for coding tag if a BOM has been found.
2485 2006-01-03  Bruno Haible  <bruno@clisp.org>
2487         * m4/groff.m4: Renamed from aclocal.m4.
2488         * m4/codeset.m4: New file, from gnulib.
2489         * m4/iconv.m4: New file, from gnulib.
2490         * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2491         gnulib.
2492         * config.rpath: New file, from gnulib.
2493         * config.guess, config.sub: New files, from gnulib.
2494         * Makefile.sub (M4MACROS): New variable.
2495         (configure): Fix typo.
2496         (aclocal.m4): New rule.
2497         (stamp-h.in): Depend on aclocal.m4.
2498         * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2499         * Makefile.in (LIBICONV): New variable.
2500         (MDEFINES): Pass it to recursive makes.
2501         * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2502         HAVE_ICONV instead of I18N macro.
2503         * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2505         * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2507 2006-01-03  Werner LEMBERG  <wl@gnu.org>
2509         * doc/Makefile.in (webpage.html): Simplify.
2510         * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2511         * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2513 2006-01-01  Werner LEMBERG  <wl@gnu.org>
2515         * tmac/doc-common (Os): Add some Darwin versions.
2516         * tmac/groff_mdoc.man: Document them.
2518 2006-01-01  Bruno Haible  <bruno@clisp.org>
2520         * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2521         corrections:
2522           . Don't map ascii to latin-1.
2523           . Don't use IBMxxx encodings but cpxxx for portability.
2524           . Map cp932, cp936, cp949, cp950 to itself.
2525         (emacs2mime): Protect calls to strcasecmp.
2526         (conversion_iconv): Add missing call to iconv_close.
2527         (do_file): Emit error message in case of unsupported encoding.
2529 2005-12-31  Werner LEMBERG  <wl@gnu.org>
2531         Integrate preconv into the groff binary.  Changes based on a patch
2532         from Michail Vidiassov.
2534         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2536         * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2537         (SOELIM_INDEX): Updated.
2538         (help, synopsis): Updated.
2539         (main): Add command line options `-k' and `-K enc' to select
2540         encoding.
2541         Add support for GROFF_ENCODING environment variable.
2543         * src/roff/groff/groff.man: Updated and revised.
2546         Start with autoconf support for preconv.
2548         * configure.ac: Call AC_C_BIGENDIAN.
2549         * configure, src/include/config.hin: Regenerated.
2551 2005-12-30  Werner LEMBERG  <wl@gnu.org>
2553         New preprocessor `preconv' to convert input encodings to something
2554         groff can understand.  Not yet integrated within groff.  Proper
2555         autoconf stuff is missing too.
2557         Tomohiro Kubota has written a first draft of this program, and some
2558         ideas have been reused (while almost no code has been taken
2559         actually).
2561         * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2562         New files.
2564         * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2565         (GROFF_BIN_PATH): Add preconv.
2567 2005-12-12  Werner LEMBERG  <wl@gnu.org>
2569         * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2570         In particular, don't use `\+' since it is a GNU sed extension.
2572         * configure: Regenerated.
2574 2005-12-09  Werner LEMBERG  <wl@gnu.org>
2576         * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp. 
2578         * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2579         4.1.0.
2582         * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2583         afmtodit.tables.
2585         * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2586         4.1.0 data.
2588         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2589         %AGL_to_unicode): Removed.  Replace it with a tag.
2591         * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2592         to replace tag with actual file contents.
2594 2005-12-08  Werner LEMBERG  <wl@gnu.org>
2596         The change 2005-06-20 can indeed cause problems, so we follow the
2597         advice by using marks.
2599         * font/devps/prologue.ps (PBEGIN): Use `mark'.
2600         (PEND): Use `cleartomark'.
2602 2005-12-07  Michail Vidiassov  <master@iaas.msu.ru>
2604         * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2605         glyphs which have kern values but aren't handled (glyph variants,
2606         for example).
2608 2005-12-02  Werner LEMBERG  <wl@gnu.org>
2610         * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2611         subfont index.  Reported by Michail Vidiassov <master@iaas.msu.ru>.
2613 2005-11-28  Gaius Mulley  <gaius@glam.ac.uk>
2615         * doc/Makefile.in: Separate rule for webpage.html so that extra
2616         command line options can be passed to grohtml.
2617         * doc/groff.css: Change all margins to 0%.
2618         * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2619         navigation is exploited.  Also update webpage to contain new
2620         sections on licenses, mailing lists, cvs/ftp access, groff
2621         dependencies, and bug reports.
2622         * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2623         * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2624         
2625 2005-11-25  Gaius Mulley  <gaius@glam.ac.uk>
2627         * src/devices/grohtml/post-html.cpp
2628         (html_printer::do_file_components): Add fputs calls to emit the
2629         head contents and shut down the head tag whenever a new file
2630         component is generated.
2632 2005-11-22  Gaius Mulley  <gaius@glam.ac.uk>
2634         * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2635         call to flush_text to flush any outstanding html tags on the
2636         paragraph stack.
2638 2005-11-18  Werner LEMBERG  <wl@gnu.org>
2640         * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2641         Announce makeinfo version.
2642         * configure: Regenerated.
2644 2005-11-18  Mike Frysinger <vapier@gentoo.org>
2646         * Makefile.in: Declare proper dependencies between make targets.
2648         * doc/Makefile.in: Rename groff info page to `groff.info'.
2649         * doc/Makefile.sub: Likewise.
2650         * doc/groff.texinfo: Likewise.
2652 2005-11-17  Peter O'Gorman  <mlists@thewrittenword.com>
2654         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2655         definition of __GETOPT_PREFIX to the beginning of file to ensure
2656         that it is defined even on platforms where getopt.h is already
2657         included by other header files.
2659 2005-11-10  Gaius Mulley  <gaius@glam.ac.uk>
2661         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2662         Reset font to NULL to ensure that a font block is recreated during
2663         the next paragraph.
2665 2005-11-04  Werner LEMBERG  <wl@gnu.org>
2667         * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2668         * configure: Regenerated.
2670 2005-10-27  Werner LEMBERG  <wl@gnu.org>
2672         * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2673         makeinfo 4.8 or newer is available.
2674         * configure.ac: Call GROFF_MAKEINFO.
2675         * configure: Regenerated.
2677         * Makefile.in (MAKEINFO): Use autoconf variable.
2678         (MDEFINES): Add MAKEINFO.
2680         * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2681         * doc/Makefile.sub (MAKEINFO): Remove.
2683 2005-10-26  Werner LEMBERG  <wl@gnu.org>
2685         * REVISION: Set to 3.
2687 2005-10-17  Werner LEMBERG  <wl@gnu.org>
2689         Mention $MANPAGER variable used with some `man' systems.
2691         * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2693 2005-09-13  Werner LEMBERG  <wl@gnu.org>
2695         * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2697 2005-09-04  Werner LEMBERG  <wl@gnu.org>
2699 Version 1.19.2 released
2700 =======================
2702         * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2704         * doc/webpage.ms: Updated.
2706         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2708 2005-09-04  Jörgen Grahn <jgrahn@algonet.se>
2710         * tmac/groff_ms.man: Document `PO' better.
2712 2005-09-03  Werner LEMBERG  <wl@gnu.org>
2714         * NEWS: Document grotty changes.
2716 2005-09-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2718         Backward compatibility support for `man' program.
2720         * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2721         assignment, prior `.ll' request and then package defaults, in this
2722         specified order of decreasing priority.
2724         * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2725         altered `LL' register initialization priorities.
2727 2005-08-29  Gary W. Swearingen  <garys@opusnet.com>
2729         * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2730         section should look like.
2732 2005-08-29  Werner LEMBERG  <wl@gnu.org>
2734         * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2735         be abbreviated.
2737 2005-08-27  Bernd Warken
2739         * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2740         fixes.
2742 2005-08-11  Bernd Warken
2744         * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
2746 2005-08-09  Bernd Warken
2748         * tmac/www.tmac (URL, MTO): Use bold series if color support is
2749         deactivated.
2751 2005-08-02  Bernd Warken
2753         * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
2754         as argument to $(INSTALL_INFO).  The latter isn't portable.
2755         Remove $(HTMLEXAMPLEFILES) too.
2757         * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
2758         $(datadir)/doc too.
2759         Suppress warning messages and return always true.
2761         * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
2763 2005-07-02  Bernd Warken
2765         * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
2766         * man/groff_out.man: More markup and minor improvements.
2767         * src/roff/groff/groff.man: Minor improvements.
2769 2005-06-28  Werner LEMBERG  <wl@gnu.org>
2771         * ChangeLog: Split off older entries into...
2772         * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
2773         files.
2775 2005-06-26  Bernd Warken
2777         * src/devices/xditview/gxditview.man: More minor fixes.
2779 2005-06-24  Werner LEMBERG  <wl@gnu.org>
2781         * src/preproc/pic/troff.cpp (troff_output::set_fill,
2782         troff_output::set_color, troff_output::reset_color): Use .bcolor and
2783         .fcolor instead of \m and \M, respectively.
2785 2005-06-23  Bernd Warken
2787         * src/devices/xditview/gxditview.man: More minor fixes.
2788         * README: Formatting issues.
2789         Mention some problems with Debian.
2791 2005-06-23  Bernd Warken
2793         * src/devices/xditview/gxditview.man: Revised and improved.
2795 2005-06-22  Werner LEMBERG  <wl@gnu.org>
2797         Another round in fixing getopt problems.  Hopefully the last one!
2798         This time we use the getopt stuff from gnulib and define a prefix
2799         unconditionally so that there are no collisions with any other
2800         getopt implementations.  This is a slight waste of space in case
2801         we already use a GNU getopt implementation, but on
2802         the other hand it really simplifies life.
2804         * src/include/getopt.h: Use gnulib version.
2806         * src/include/getopt_int.h: Use gnulib version.
2808         * src/include/groff-getopt.h: Removed.  Obsolete now.
2810         * src/include/lib.h: Regarding getopt, don't handle any platform
2811         specially; just include getopt.h.
2812         (__GETOPT_PREFIX): Define (before getopt.h).
2814         * src/include/Makefile.sub (HDRS): Updated.
2816         * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
2817         gnulib version.
2819         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
2820         __GETOPT_PREFIX.
2822         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
2823         (__GETOPT_PREFIX): Define (before getopt.h).
2825 2005-06-21  Werner LEMBERG  <wl@gnu.org>
2827         * src/include/lib.h: Provide a fix for Mac OS X to not include
2828         groff-getopt.h.
2830 2005-06-20  Denis M. Wilson  <dmw@oxytropis.plus.com>
2832         * font/devps/prologue.ps (EP): Dont' use `bind'.  Reason: Using
2833         `bind' to define a procedure which contains `showpage' means that an
2834         invocation of `showpage' may execute wrongly (the exact effect
2835         depending on the interpreter).  Not usually a problem except under
2836         transformations, such as combining pages.
2837         (PEND): Don't call `clear'.  Reason: Using `clear' in the definition
2838         of /PEND means that stack underflow will occur if the stack is
2839         deliberately non-empty before document inclusion.  If included
2840         files are found to be generally badly behaved, we could replace the
2841         `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
2842         never found this necessary).
2844 2005-06-20  Jörgen Grahn  <jgrahn@algonet.se>
2846         * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
2847         earlier to get correct error message.
2849 2005-06-16  Bernd Warken
2850         * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
2852 2005-06-15  Werner LEMBERG  <wl@gnu.org>
2854         Another try to update getopt files.  This time we add a dummy
2855         gettext.h file to satisfy the dependency.
2857         * src/include/getopt.h, src/libs/libgroff/getopt.c,
2858         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2860         * src/include/getopt_int.h: New file (from GNU libc CVS).
2862         * src/include/gettext.h: Dummy file which just defines a gettext()
2863         macro.
2865         * src/include/groff-getopt.h: Updated.
2867         * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
2870         * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
2871         `const' keywords in return value.
2873         * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
2874         Remove redundant variable `old'.
2875         (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
2877         * src/preproc/tbl/main.cpp (process_table): Remove redundant
2878         variable `c'.
2881         Fix more friend name injection problems since modern C++ compilers
2882         fail otherwise.  We simply provide (global) declarations for all
2883         functions declared as friends.  This is not really necessary but
2884         doesn't harm.
2886         * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
2887         peek_char, and get_location.
2889         * src/preproc/refer/ref.h: Provide declarations for
2890         compare_reference, same_reference, same_year, same_date,
2891         same_author_last_name, and same_author_name.
2893         * src/roff/troff/div.h: Provide declarations for do_divert and
2894         page_offset.
2896         * src/roff/troff/env.h: Provide declarations for title_length,
2897         space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
2898         vertical_spacing, post_vertical_spacing, line_spacing, line_length,
2899         indent, temporary_indent, do_underline, do_input_trap, set_tabs,
2900         margin_character, no_number, number_lines, leader_character,
2901         tab_character, hyphenate_request, no_hyphenate,
2902         hyphen_line_max_request, hyphenation_space_request,
2903         hyphenation_margin_request, line_width, tabs_save, tabs_restore,
2904         line_tabs_request, widow_control_request, and do_divert.
2906         * src/roff/troff/input.cpp: Provide declaration for chop_macro.
2908         * src/roff/troff/node.cpp: Provide declarations for class
2909         tfont_spec.
2910         Provide declaration for make_tfont.
2912 2005-05-29  Werner LEMBERG  <wl@gnu.org>
2914         * doc/fdl.texi: Updated to version 1.2.  Reported by Bernd Warken.
2916 2005-05-28  Werner LEMBERG  <wl@gnu.org>
2918         * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
2919         redundant semicolons.
2921         * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
2922         src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
2923         Define `MLIB'.  Some compilers need this for linking with libgroff.
2925 2005-05-27  Werner LEMBERG  <wl@gnu.org>
2927         * MANIFEST, README, doc/webpage.ms: Updated.
2929 2005-05-26  Werner LEMBERG  <wl@gnu.org>
2931         * All affected files: Update postal address of FSF.
2933 2005-05-25  Keith Marshall  <keith.d.marshall@ntlworld.com>
2934             Bernd Warken
2936         * README: More fixes.
2938         * README.CVS: Removed.  Its contents is now part of the README file.
2940 2005-05-21  Werner LEMBERG  <wl@gnu.org>
2942         * README: Updated.  Based on a patch from Bernd Warken.
2944 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2946         Miscellaneous script portability enhancements.
2948         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
2949         generated conftest.sh script, conforming to portability
2950         recommendation in autoconf docs.
2951         * configure: Likewise, for code generated by GROFF_CSH_HACK.
2952         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
2953         to portability recommendation in autoconf docs.
2954         * contrib/grap2graph/grap2graph.sh: Likewise.
2955         * contrib/pic2graph/pic2graph.sh: Likewise.
2956         * font/devps/generate/afmname: Likewise.
2957         * src/devices/xditview/ad2c: Likewise.
2958         * src/preproc/eqn/neqn.sh: Likewise.
2959         * src/roff/grog/grog.pl: Likewise.
2960         * src/roff/grog/grog.sh: Likewise.
2961         * src/roff/nroff/nroff.sh: Likewise.
2962         * PROBLEMS: Likewise, in embedded script examples.
2964 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2966         Improve portability of `pdfroff' shell script.
2968         * arch/misc/shdeps.sh: Add space in shebang, conforming to
2969         portability guidelines in `autoconf' docs.
2970         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
2971         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
2972         `searchpath' function.
2974 2005-05-14  Werner LEMBERG  <wl@gnu.org>
2976         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
2977         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
2978         needed for newer ImageMagick versions.
2980 2005-05-07  Werner LEMBERG  <wl@gnu.org>
2982         * src/preproc/refer/refer.man: Many small typographic fixes.
2984 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
2986         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
2987         Use `char *' cast for a_delete.
2989 2005-05-03  Werner LEMBERG  <wl@gnu.org>
2991         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
2992         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
2994 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
2996         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
2997         `a_delete' for `const char *'.
2999 2005-05-03  Werner LEMBERG  <wl@gnu.org>
3001         * src/devices/grohtml/post-html.cpp,
3002         src/devices/grohtml/html-table.cpp,
3003         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
3004         Replace malloc/free with new/delete/a_delete.
3006         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
3007         are prohibited with ANSI C++.
3008         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
3009         function has a variable number of arguments).
3011         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
3012         Simplify function and update all callers.
3014 2005-05-02  Werner LEMBERG  <wl@gnu.org>
3016         Undo getopt changes from 2005-04-30.  We don't want a dependency
3017         on gettext.
3019         * src/include/getopt_int.h: Removed.
3021         * src/include/getopt.h, src/include/groff-getopt.h,
3022         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
3023         src/libs/libgroff/getopt1.c: Revert to previous version.
3026         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
3028         * src/include/posix.h (F_OK): Define conditionally.
3030         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
3031         different variable name in second `for' loop to avoid MSVC compiler
3032         problem.
3034 2005-04-30  Werner LEMBERG  <wl@gnu.org>
3036         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
3038         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
3039         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
3040         * configure, src/include/config.hin: Regenerated.
3042         * PROBLEMS: Updated.
3045         Update getopt files.
3047         * src/include/getopt.h, src/libs/libgroff/getopt.c,
3048         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
3050         * src/include/getopt_int.h: New file (from GNU libc CVS).
3052         * src/include/groff-getopt.h: Updated.
3054         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
3057         * font/devutf8/NOTES: Updated.
3059 2005-04-28  Werner LEMBERG  <wl@gnu.org>
3061         Bug fix for Win32 relocatable code.  Based on a patch from Keith
3062         Marshall.
3064         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
3065         also.
3067         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
3068         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
3070 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
3072         Correct `gnu.eps' handling for build from distribution tarball, with
3073         separate source and build directories.
3075         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
3076         grnexmpl.g, groff.css and gnu.eps from source to build directory;
3077         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
3078         (prepare_examples): Make it depend on examples.stamp.
3079         (CLEANADD): Add examples.stamp.
3081 2005-04-27  Werner LEMBERG  <wl@gnu.org>
3083         Implement the rule
3085           position: `(' position `)'
3087         in pic.
3089         * src/preproc/pic/pic.y (position, position_not_place): Handle
3090         additional parentheses.
3092         * doc/pic.ms: Updated.
3094 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
3096         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
3098 2005-04-18  Werner LEMBERG  <wl@gnu.org>
3100         * src/roff/groff/pipeline.c: Don't include ctype.h.
3102 2005-04-13  Werner LEMBERG  <wl@gnu.org>
3104         * src/roff/nroff/nroff.man: Document option `-M'.
3106 2005-04-13  Bruce Lilly  <blilly@erols.com>
3108         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
3110 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
3111             Werner LEMBERG  <wl@gnu.org>
3113         Add binary relocation support for Windows platforms.
3115         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
3117         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
3119         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
3120         (search_path::search_path, search_path::open_file_cautious): Use
3121         `relocate'.
3123         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
3124         src/include/Makefile.sub (HDRS): Updated.
3126 2005-04-01  Werner LEMBERG  <wl@gnu.org>
3128         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
3129         strsave/a_delete.
3131         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
3133         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
3134         lib.h already does it.
3136         * src/libs/libgroff/maxpathname.cpp: New file, defining
3137         path_name_max.
3139         * src/include/lib.h: Add prototype for path_name_max.
3141         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
3143         * src/include/nonposix.h (PATH_EXT): New macro.
3145 2005-03-28  Werner LEMBERG  <wl@gnu.org>
3147         Add support for double- and zero-width characters in grotty.
3149         * src/devices/grotty/tty.cpp (glyph): Add width.
3150         (tty_printer::make_underline, tty_printer::make_bold,
3151         tty_printer::add_character): Add parameter to pass character width.
3152         Update all callers.
3153         (tty_printer::end_page): Increase hpos by actual character width.
3155         * font/devutf8/R.proto: Specify zero width for non-spacing
3156         characters.
3158         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
3160         * Makefile.comm (extraclean): Remove more junk files.
3162 2005-03-25  Werner LEMBERG  <wl@gnu.org>
3164         * configure.ac: Undo change from 2005-03-24.
3165         * configure: Regenerated.
3167 2005-03-24  Werner LEMBERG  <wl@gnu.org>
3169         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
3170         (dist): Search Makefile while descending into $(EXTRADIRS).
3172         * doc/Makefile.in (.PHONY): Add.
3173         (clean): Don't remove *.png and *.eps.
3174         Don't handle *.gif.
3175         (realclean): Remove *.png and *.eps.
3176         (extraclean): Depend on distclean.
3178         * configure.ac: Add copyright.
3179         Handle contrib/pdfmark/Makefile.
3181         * configure: Regenerated.
3183 2005-03-18  Larry Kollar  <kollar@alltel.net>
3185         Add numbered and definition lists to www.tmac.
3187         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
3188         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
3189         auxiliary string registers.
3190         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
3191         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
3192         (www-level): Removed.
3193         (www-level1, www-level2, www-level3): Initialize to empty.
3194         (www-level0, www-level4, www-level5, www-level6, www-level7,
3195         www-level8, www-level9): New string registers.
3196         (www-push-li, www-pop-li): New macros.
3197         (www-push-level, www-pop-level): Renamed to...
3198         (www-push-ul-level, www-pop-ul-level): This.
3199         Updated.
3200         (www-push-ol-level, www-pop-ol-level): New macros.
3201         (ULS, ULE): Updated.
3202         (OLS, OLE, DLS, DLE): New user macros.
3203         (LI): Removed.  It is aliased to one of...
3204         (www-li-ul, www-li-ol, www-li-dl): New macros.
3206         * tmac/groff_www.man: Document new macros.
3208         * NEWS: Updated.
3210 2005-03-18  Werner LEMBERG  <wl@gnu.org>
3212         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
3213         doc-operating-system-NetBSD-2.0.2): New strings.
3215         * tmac/groff_mdoc.man: Updated.
3217 2005-03-17  Werner LEMBERG  <wl@gnu.org>
3219         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
3221 2005-03-17  Werner LEMBERG  <wl@gnu.org>
3223         * src/libs/libgroff/hypot.c: Renamed to...
3224         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
3226         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
3228         * src/include/lib.h: Updated.
3230 2005-03-16  Werner LEMBERG  <wl@gnu.org>
3232         Add workaround for broken hypot() on Interix.
3234         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
3236         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
3237         (CSRCS): Add `hypot.c'.
3239         * src/include/lib.h: Declare `groff_hypot'.
3241         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
3242         Use `groff_hypot'.
3244         * src/preproc/pic/pic.h: Don't declare `hypot'.
3246         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
3248 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
3250         * src/devices/grohtml/post-html.cpp
3251         (html_printer::lookahead_for_tables): End .ce properly to avoid a
3252         segfault.
3254 2005-03-15  Werner LEMBERG  <wl@gnu.org>
3256         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
3258         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
3260         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
3262 2005-03-14  Werner LEMBERG  <wl@gnu.org>
3264         Add Cyrillic support to devutf8 and devhtml.
3266         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
3268         * tmac/unicode.tmac: New file.
3270         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
3272         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
3274         * NEWS: Updated.
3276 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
3278         * src/libs/libdriver/printer.cpp (check_for_output_error): New
3279         function.  It has been introduced to catch peculiar error contexts
3280         on MS-Windows platforms.
3282 2005-02-28  Werner LEMBERG  <wl@gnu.org>
3284         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
3285         null pointer.
3287         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
3289         * configure: Regenerated.
3291         * NEWS: Updated.
3293 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
3295         Integrate `pdfmark' into normal groff build system;
3296         install macro `pdfmark' packages, build and install `pdfroff',
3297         and PDF format documentation.
3299         * Makefile.comm: Add PDFDOCDIR.
3301         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
3302         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
3303         (unstall_dirs): Add pdfdocdir.
3305         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
3306         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
3307         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
3308         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
3309         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
3310         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
3311         set ALT_AWK_PROGS.
3312         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
3313         use of GROFF_AWK_PREFS.
3314         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
3315         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
3317         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
3318         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
3319         also by modified GROFF_HTML_PROGRAMS).
3321 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
3323         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
3324         paragraph spacing.
3325         (html_text::done_para): Unset `start_space'.
3326         (html_text::remove_para_align): Call `retrieve_para_space' for the
3327         spacing.
3329         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
3330         `seen_space'.
3331         (html_printer::do_check_center): Emit vertical space if necessary.
3333         * src/roff/troff/env.cpp (environment_switch): Preserve
3334         `seen_space', `seen_eol', and `suppress_next_eol' while switching
3335         environments.
3337         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
3338         `is_special'.
3340 2005-02-20  Werner LEMBERG  <wl@gnu.org>
3342         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
3343         eqn.
3345 2005-02-17  Werner LEMBERG  <wl@gnu.org>
3347         * doc/pic.ms, man/groff.man: Fix typos.
3349         * doc/groff.texinfo: Fix typos.
3350         (\LEmacro): Get proper mathematical spacing.
3352 2005-02-16  Werner LEMBERG  <wl@gnu.org>
3354         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
3355         * configure: Regenerated with autoconf 2.59b.
3357 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
3359         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
3360         html_printer::start_font): Fix handling of preformatted text.
3362 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
3364         These patches modify the indentation implementation to use `<p
3365         style=margin-left: n%>'.  Many thanks to Peter and Larry for
3366         suggesting this solution.  Grohtml only uses tables for `.IP' and
3367         related tags when the first operand has a short width.
3369         Similarly, they modify all vertical space code.  By default, grohtml
3370         sets up a style sheet which uses no vertical space between `table',
3371         `pre', and `p' tags.  It forces spaces when it needs them using
3372         `style="margin-top: 1em"'.
3374         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
3375         (html_table::emit_table_header, html_table::emit_new_row):
3376         Rewritten.
3377         (html_table::set_space): New function.
3378         (html_indent::html_indent): Don't set `is_used'.
3379         (html_indent::begin): Rewritten.
3380         (html_indent::end): Remove code in function.
3382         * src/devices/grohtml/html-table.h: Updated.
3383         (html_table): Make `out' public.
3385         * src/devices/grohtml/html-text.cpp (html_text::html_text):
3386         Initialize `start_space' with FALSE.
3387         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
3388         (html_text::issue_tag): Add argument to handle space style.
3389         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
3390         (html_text::flush_text): Don't set `start_space'.
3391         (html_text::push_para): Don't set `p->really_issued'.
3392         (html_text::do_emittext): Updated.
3393         (html_text::do_para): Add paremeter to handle space.
3394         Update all callers.
3395         (html_text::retrieve_para_space): New function.
3397         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
3398         (tag_definition): Remove `really_issued'.
3399         (html_text): Updated.
3401         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
3402         `current_column' and `row_space'.
3403         Update constructor.
3404         (html_printer::emit_raw, html_printer::write_header,
3405         html_printer::do_indent, html_printer::do_check_center,
3406         html_printer::do_tab_ts): Handle vertical space.
3407         (html_printer:do_tab_te, html_printer::do_end_para): Call
3408         `remove_para_space'.
3409         (html_printer::do_col): Rewritten.
3410         (html_printer::flush_globs): Remove debugging code.
3411         (html_printer::is_line_start): New function.
3412         (html_printer::start_font): Use `is_line_start'.
3413         (html_printer::writeHeadMetaStyle): New function.
3414         (html_printer::do_file_components, html_printer::~html_printer):
3415         Call `writeHeadMetaStyle'.
3417         * tmac/www.tmac (www-handle-percent): New macro.
3418         (MPIMG): Handle percent values for width and height parameters.
3419         (DC): Updated.
3421         * tmac/groff_www.man: Updated.
3423 2005-02-14  Werner LEMBERG  <wl@gnu.org>
3425         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
3426         $psname and $italic_angle.
3427         Immediately restart file input loops if `split' returns an empty
3428         array.
3430 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
3431             Werner LEMBERG  <wl@gnu.org>
3433         Update afmtodit to better support Unicode (Michail).
3434         Update afmtodit to use Perl 5 syntax (Werner).
3436         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
3437         `Getopts::Std'.
3438         Decorate variables with `my' where necessary.
3439         Use `defined' where necessary to avoid warnings.
3440         Don't use `do' for subroutine calls.
3441         Other minor syntax updates.
3442         Check for both `uXXXX[X[X]]' and `uniXXXX'.
3443         Handle glyph variants properly.
3444         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3445         strings.
3447         * src/utils/afmtodit/afmtodit.man: Updated.
3449 2005-02-13  Werner LEMBERG  <wl@gnu.org>
3451         Make groff.texinfo work with texinfo 4.8.
3453         * doc/groff.texinfo (@Var): Use @r and @slanted.
3454         (@defdummy, @Def*): Use @c to avoid empty lines.
3455         (\angles): Replaced with...
3456         (\Langlemacro, \Ranglemacro): New TeX macros.
3457         (@Langlemacro, @Ranglemacro): New variables defined with @set.
3458         (@angles): Use @Langlemacro and @Ranglemacro.
3459         (\LE): Replaced with...
3460         (\LEmacro): New TeX macro.
3461         (@LEmacro): New variable defined with @set.
3462         (@LE): Use @LEmacro.
3463         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3464         variables defined with @set.
3465         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3466         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3467         Update all callers.
3469         Other minor updates.
3471         * doc/texinfo.tex: Update to texinfo version 4.8.
3473         * README.CVS: Updated.
3475 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3477         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3478         and `FAM' registers.
3480 2005-02-05  Werner LEMBERG  <wl@gnu.org>
3482         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3483         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3484         Update BSD license.
3486 2005-02-01  Werner LEMBERG  <wl@gnu.org>
3488         * src/roff/groff/groff.man: Add information about paper size.
3490 2005-01-25  Werner LEMBERG  <wl@gnu.org>
3492         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
3493         NetBSD bin/29114.
3495 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
3497         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
3498         cases.
3499         (Re): Emit a warning if called without `.Rs'.
3500         (doc-finish-reference): Use parameter for decreasing
3501         `doc-reference-count'.
3502         (doc-print-reference): Pass specific count parameters to
3503         `doc-finish-reference'.
3505 2005-01-21  Werner LEMBERG  <wl@gnu.org>
3507         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3508         Reset pointers to zero after deallocation.  This fixes a crash
3509         if a driver is called with multiple input files.  Reported by
3510         Ken Chilton <ken@chiltonfamily.org>.
3512         * src/devices/grops/grops.man: Add more info on DSC.
3514 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
3516         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3517         Remove dead code.
3519 2005-01-17  Werner LEMBERG  <wl@gnu.org>
3521         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3522         against division by zero.
3524 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
3526         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3528 2004-12-19  Werner LEMBERG  <wl@gnu.org>
3530         * install-sh: New version; taken from texinfo CVS.
3532 2004-12-17  Werner LEMBERG  <wl@gnu.org>
3534         * tmac/devtag.tmac: Protect against loading twice.
3535         Protect agains compatibility mode.
3536         * tmac/www.tmac: Protect against loading twice.
3537         Load `devtag.tmac' before switching off compatibility mode.
3538         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3540 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
3542         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3543         * configure: Updated.
3545 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
3547         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3549 2004-12-15  Werner LEMBERG  <wl@gnu.org>
3551         Make `test-groff' work again -- previously, wrong paths have been
3552         used.  Additionally, it can now be called from anywhere.
3554         * test-groff.in: Don't test for groff binary.  This is no longer
3555         necessary since the proper paths are determined by `configure'.
3556         (EXEEXT): Removed.  No longer used.
3557         (srcdir, builddir): Use values provided by the configure script.
3558         (XENVIRONMENT): Updated.
3560         * INSTALL: Updated.
3562 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
3564         Make .tag and .taga work for all devices (but only grohtml actually
3565         handles them).
3567         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3568         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3569         html_printer::handle_assertion): Don't use hard-coded string
3570         lengths.
3571         (html_printer::lookahead_for_table): Reset `tbl' properly if
3572         necessary.
3573         (html_printer::devtag): New function, handling `devtag'.
3574         (html_printer::special): Don't handle `html-tag'.
3576         * src/include/printer.h, src/libs/libdriver/printer.cpp
3577         (printer::devtag): New virtual function.
3579         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3580         `devtag'.
3582         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3583         src/roff/troff/node.cpp: s/html-tag/devtag/.
3585         * src/roff/troff/input.cpp (tag, taga): Always call
3586         curenv->add_node.
3588         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3589         macros instead of HTML-TAG*.
3591         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3593         * tmac/www.tmac: Load devtag.tmac.
3594         Replace HTML-TAG* macros with DEVTAG* macros.
3595         (HTML, HTML-NS): Changed definitions.
3596         (URL): Use HTML-NS.
3597         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3599         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3601 2004-12-10  Werner LEMBERG  <wl@gnu.org>
3603         Import Mike's `gdiffmk' package.
3605         * contrib/gdiffmk/*: New files.
3606         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3607         * NEWS: Updated.
3609 2004-12-08  Werner LEMBERG  <wl@gnu.org>
3611         Import Keith's `pdfmark' package.  Integration is very preliminary.
3613         * contrib/pdfmark/*: New files.
3614         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3615         * NEWS: Updated.
3617 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
3619         Fix a bug with title handling in HTML.
3621         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3622         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3623         length.
3624         (html_printer::handle_tag_within_title): New function.
3625         (html_printer::do_title): Use it.
3627         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3628         (cov*tl-au-print): Emit `.eo.tl' tag.
3630 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
3632         * man/groff_char.man: Minor imrovements.
3634 2004-12-04  Werner LEMBERG  <wl@gnu.org>
3636         * src/preproc/eqn/eqn.man: Revised.
3638 2004-11-25  Werner LEMBERG  <wl@gnu.org>
3640         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3641         groff source files.
3642         Include config.h.
3643         Include limits.h.
3644         Remove X_NOT_STDC_ENV conditional.
3645         (Version_string, program_name): New global variables.
3646         (groff_flag): Removed.
3647         (MapFont): Updated.
3648         (usage): Take a stream as argument.
3649         Use `program_name'.
3650         Update all callers.
3651         (main): Add `long_options' array for `--help' and `--version'.
3652         Make `-g' a dummy option.
3653         Handle `-v' and unknown options.
3654         Remove unused `position' variable.
3656         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3657         (XLIBS): Add LIBGROFF.
3659         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3660         New files.
3662         * src/devices/xditview/Dvi.c (default_font_map): Split into three
3663         parts to avoid compiler warning.
3664         (resources): Don't initialize with `default_font_map'.
3665         (ClassInitialize): Initialize first element of `resources'.
3667         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3668         Removed.
3670         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3671         src/utils/pfbtops/pfbtops.man: Revised, updated.
3673         * configure.ac: Generate src/utils/xtotroff/Makefile.
3674         * configure: Regenerated.
3676 2004-11-24  Werner LEMBERG  <wl@gnu.org>
3678         First fixes to get produce HTML.
3680         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3681         attribute.
3683         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3684         (HR, LI): Use `HTML</p>', not `HTML'.
3686         * doc/webpage.ms: Minor updates.
3688 2004-11-23  Larry Kollar  <kollar@alltel.net>
3690         Add option -S grohtml to determine the file split level.
3692         * src/devices/grohtml/post-html.cpp (split_level): New global
3693         variable.
3694         (html_header::determine_header_level): Use split_level.
3695         (main): Handle `-S' command line option.
3696         Sort options.
3698         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3700         * src/devices/grohtml/grohtml.man: Document it.
3701         Sort options.
3703         * NEWS: Document it.
3705 2004-11-23  Y T  <doarhop@hotmail.com>
3707         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3708         the volume and number refer entries.
3710 2004-11-22  Werner LEMBERG  <wl@gnu.org>
3712         * src/devices/grohtml/html-table.cpp
3713         (html_table::emit_table_header): Don't emit `cols' attribute which
3714         doesn't exist in HTML 4.0 and is thus invalid.
3716         * NEWS: More minor fixes and updates.
3718 2004-11-18  Werner LEMBERG  <wl@gnu.org>
3720         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3721         (HTML</p>): Minor clean-up.
3723         * tmac/groff_www.man: Updated.
3725         * src/devices/grohtml/grohtml.man: Revised and updated.
3727         * NEWS: Updated.
3729 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
3731         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3732         Fix space insertion.
3733         (html_printer::do_links): Fix rules generation around automatic
3734         heading links.
3736         * tmac/www.tmac (LK): Use HTML-TAG-NS.
3737         (HR): Simplify.
3738         No longer emit empty line for non-HTML devices.
3740 2004-11-17  Werner LEMBERG  <wl@gnu.org>
3742         * doc/Makefile.in (prepare_examples, webpage.html): Handle
3743         `groff.css'.
3745         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
3746         prepare_examples, webpage.html): Handle `groff.css'.
3748 2004-11-15  Werner LEMBERG  <wl@gnu.org>
3750         * NEWS, README, doc/webpage.ms: Updated.
3752         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
3754 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
3756         * src/include/printer.h (printer): Remove virtual function
3757         `round_width'.
3758         Update all source files.
3760         * src/devices/grohtml/post-html.cpp (html_printer): New member
3761         function `round_width'.
3763 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3765         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
3766         column key letter suffix.
3768 2004-10-14  Werner LEMBERG  <wl@gnu.org>
3770         * Makefile.in (check): Depend on `site.exp' and `docheck'.
3771         (docheck): Run dejagnu's `runtest' if it exists.
3772         (site.exp): Create dejagnu configuration file.
3774         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
3776 2004-10-13  Werner LEMBERG  <wl@gnu.org>
3778         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
3779         src/devices/grohtml/post-html.cpp (make_val,
3780         html_printer::handle_state_assertion): Fix compiler warnings.
3782         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
3783         (diversion::diversion): Fix order of initializers.
3785         * src/roff/troff/div.h: Don't include `mtsm.h'.
3787         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
3788         (environment::environment): Fix order of initializers.
3789         (environment::make_tag, environment::construct_format_state): Fix
3790         compiler warnings.
3792         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
3793         (input_iterator::input_iterator, macro::macro): Fix order of
3794         initializers.
3796         * src/roff/troff/mtsm.cpp: Include only necessary header files.
3797         (state_set::add, state_set::val): Fix compiler warnings.
3799         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
3800         (bool_value_state, int_value_state, units_value_state,
3801         string_value_state): Remove comma after last element which causes
3802         an error with g++ 3.3.3.
3804         * src/roff/troff/node.cpp: Include `stringclass.h'.
3805         (hline_node::hline_node, vline_node::vline_node,
3806         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
3807         warnings.
3808         (zero_width_node::zero_width_node): Fix order of initializers.
3810         * src/roff/troff/node.h: Don't include `mtsm.h'.
3811         (hmotion_node): Fix compiler warnings.
3813         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
3815 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
3817         * doc/groff.css: New file.
3819         * doc/webpage.ms: Use `groff.css'.
3820         Other small fixes.
3822         * tmac/an-old.tmac (need_eo_h): New number register.
3823         (TH): Emit `.eo.tl' tag after title.
3824         (SH): Set `need_eo_h'.
3825         (an-trap): Handle `need_eo_h'.
3826         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
3828         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
3829         (TL): Always start diversion.
3830         Updated.
3831         (@AI): Always call `par@reset'.
3832         (@AB): Update code for -Thtml.
3833         (cov*tl-au-print): Handle -Thtml.
3834         (par@reset): Handle `need_eo_tl', `need_eo_h'.
3835         (@IP): Simplified.
3836         (@IT-html): Removed.
3837         (@SH): Set `need_eo_h' for -Thtml.
3838         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
3839         Set `need_eo_tl'.
3840         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
3841         Set `need_eo_h' for -Thtml.
3842         (@EQ, @EN): Don't handle -Thtml specially.
3843         (par@load-init): Don't handle -Thtml specially.
3845         * tmac/www.tmac (www:paraspace): New macro.
3846         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
3847         (HTML</p>, HTML-TAG-NEXT): New macros.
3848         (HnE): Emit tag `.eo.h' instead of break.
3849         (HR): s/HTML-NS/HTML/.
3850         (www-end-nowhere): End diversion only if `www-html' not set.
3851         Emit `.eo.tl' tag.
3852         (ULS, ULE): s|HTML|HTML</p>|.
3853         (LI): Call `www:paraspace'.
3854         (HEAD): New macro.
3856 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
3858         * src/roff/troff/request.h (macro): Make `p' public.
3859         New variable `is_a_diversion'.
3860         New member function `is_diversion'.
3863         * src/devices/grohtml/html.h (simple_output): New member function
3864         `force_nl'.
3866         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
3867         computation of `total'.
3868         (tabs::check_init): New function.
3869         (html_table::emit_table_header): Emit style data.
3870         (html_table::insert_column): Improved.
3872         * src/devices/grohtml/html-table.h: Updated.
3874         * src/devices/grohtml/html-text.cpp (html_text::html_text):
3875         Initialize `start_space' with TRUE.
3876         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
3877         cases.
3878         (html_text::flush_text): Set `start_space' flag.
3879         (html_text::uses_indent, html_text::remove_para_space,
3880         html_text::get_alignment): New functions.
3881         (html_text::push_para): Updated.
3882         (html_text::do_para): Check for empty argument.
3883         Don't set `space_emitted'.
3884         (html_text::do_space, html_text::emit_space): Updated.
3886         * src/devices/grohtml/html-text.h (tag_definition): New variable
3887         `really_issued'.
3888         (html_text): New member function `uses_indent', `remove_para_space',
3889         `get_alignment'.
3891         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
3892         function.
3893         (simple_output:nl): Always emit `\n'.
3895         * src/devices/grohtml/post-html.cpp: Include `string.h'.
3896         (BASE_POINT_SIZE): Removed.
3897         (base_point_size, head_info): New global variables.
3898         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
3899         `is_eo_h'.
3900         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
3901         tags, respectively.
3902         (page::add_and_encode): Pass additional parameter for tag flag.
3903         (assert_pos): New structure.
3904         (assert_state): New class.
3905         (html_printer): Remove `indentation', `prev_indent'.
3906         Add variables `troff_indent', `device_indent', `temp_indent'.
3907         Add variables `seen_indent', `next_indent', `seen_pageoffset',
3908         `next_pageoffset', `seen_linelenght', `next_linelength',
3909         `seen_center', `next_center', `seen_space', `seen_break', `as'.
3910         Add member functions `do_check_center', `do_space', `do_head',
3911         `get_troff_indent', `restore_troff_indent', `handle_assertion',
3912         `handle_state_assertion', `do_end_para', `set_char_and_width'.
3913         Change argument to `do_fill' to `char *'.
3914         Update constructor.
3915         (html_printer::emit_raw): Call `shutdown_table'.
3916         Use new functions.
3917         (html_printer::do_center): Simplified.
3918         (html_printer::do_title): Improved.
3919         (html_printer::write_header): Emit one more newline.
3920         Use new functions.
3921         (html_printer::do_heading, html_printer::do_indent,
3922         html_printer::do_eol, html_printer::do_tab_ts,
3923         html_printer::do_tab, html_printer::do_tab0,
3924         html_printer::calc_po_in, html_printer::next_horiz_pos,
3925         html_printer::remove_courier_tabs,
3926         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
3927         Updated.
3928         (html_printer::do_linelength, html_printer::do_pageoffset,
3929         html_printer::do_indentation, html_printer::do_tempindent,
3930         html_printer::do_tab_te): Simplified.
3931         (html_printer::do_pointsize): Check whether point size is really
3932         associated a `.tl' tag.
3933         (html_printer::do_break): Rewritten.
3934         (html_printer::troff_tag): Improved.
3935         (html_printer::flush_globs): Updated.
3936         (html_printer::lookahead_for_tables): Handle `is_br'.
3937         Use new functions.
3938         (html_printer::set_char): Check `sbuf_style.f'.
3939         (html_printer::write_navigation): Use string comparison.
3940         (html_printer::~html_printer): Emit `head_info'.
3941         (html_printer::special): Rewritten.
3942         (get_str, make_val): New functions.
3943         (main): New option `s' to set the base point size.
3945         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
3947 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
3949         * src/roff/troff/node.cpp: New extern `debug_state'.
3950         Include `stringclass.h' and `mtsm.h'.
3951         Implement new classes and class members from `node.h'.
3952         (real_output_file): Make `fp' public.
3953         (troff_output_file): New variables `cur_div_level' and `tag_list'.
3954         Update constructors.
3955         (troff_output_file::really_print_line): Check whether we should push
3956         the current troff state and use the state at the start of the
3957         invocation of this diversion.
3958         (troff_output_file::add_to_tag_list): New member function.
3959         (node::add_char): Handle `glyph_comp_np'.
3961         * src/roff/troff/node.h: Include `mtsm.h'.
3962         (node): New variables `state', `push_state', `div_nest_level',
3963         `is_special'.  Update constructors, all descendants.
3964         Pass additional argument to `add_char' member function.
3965         New virtual member functions `is_tag', `debug_node',
3966         `debug_node_list'.  Update all descendants.
3967         (tag_node): New class for handling tags.
3968         (output_file): Add variable `state'.
3970 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
3972         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
3973         providing a minimal troff state machine to emit meta tags for the
3974         post-grohtml device driver.
3976         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
3977         files.
3979 2004-10-09  Werner LEMBERG  <wl@gnu.org>
3981         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
3983 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
3985         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
3987         * src/roff/troff/div.h: Include `mtsm.h'.
3988         (diversion): New variables `any_chars_added', `needs_push',
3989         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
3990         `saved_suppress_next_eol', `modified_tag'.
3991         New virtual member function `is_diversion'.  Update all descendants.
3993         * src/roff/troff/div.cpp (diversion::diversion,
3994         macro_diversion::macro_diversion): Updated.
3995         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
3996         `suppress_next_eol'.
3997         (top_level_diversion::space): Handle `curenv->seen_space'.
3998         (page_offset): Update tag handling.
3999         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
4001         * src/roff/troff/env.h (environment): Make `tabs' public.
4002         Remove `ignore_next_eol', `emitted_node'.
4003         Update `output_line', `output'.
4004         New variables `seen_space', `seen_eol', `suppress_next_eol',
4005         `seen_break'.
4006         New member functions `construct_state', `make_tag',
4007         `construct_format_state, `construct_new_line_state,
4008         `dump_troff_state'.
4009         Remove `add_html_tag', `make_html_tag'.
4011         * src/roff/troff/env.cpp: New externs `suppress_push',
4012         `get_diversion_state', `global_diverted_space'.
4013         (pending_output_line): New variable `was_centered'.
4014         Update constructor and all callers.
4015         (pending_output_line::output): Call `curenv->construct_format_state'.
4016         (environment::environment, environment::copy): Updated.
4017         (environment::output): Handle `was_centered'.
4018         (environment::add_char): Handle construct and diversion state.
4019         (environment::add_node): Handle construct state.
4020         (environment::newline): Handle `was_centered'.
4021         (environment::output_line): Updated.
4022         (environment::possibly_break_line): Updated.
4023         Update tag handling.
4024         (environment::add_html_tag): Replaced with...
4025         (environment::make_tag): New function.
4026         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
4027         (environment::dump_troff_state): New debugging function.
4028         (environment::construct_state, environment::construct_format_state,
4029         environment::construct_new_line_state): New functions.
4030         (environment::do_break): Updated.
4031         Handle `global_diverted_space'.
4032         (environment::handle_tag): Update tag handling.
4033         (point_size, fill, do_break_request): Don't call `add_html_tag'.
4034         (no_fill): Don't call `add_html_tag'.
4035         Set `suppress_next_eol'.
4036         (center, right_justify, line_length, indent, temporary_indent,
4037         set_tabs):
4038         Update tag handling.
4040         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
4041         (input_iterator): New variables `is_diversion', `diversion_state'.
4042         Update constructors.
4043         (input_stack): New member functions `get_div_level',
4044         `get_diversion_state', `check_end_diversion'.
4045         New variables `div_level', `diversion_state'.  Initialize them.
4046         (suppress_push, global_diverted_space): New global variables.
4047         (input_stack::finish_get, input_stack::finish_peek,
4048         input_stack::remove_boundary, input_stack::end_file,
4049         input_stack::clear, input_stack::pop_macro): Call
4050         `check_end_diversion'.
4051         (input_stack::push): Handle `div_level' and `diversion_state'.
4052         (get_diversion_state): New function.
4053         (diverted_space_node::reread): Handle `global_diverted_space'.
4054         (macro::macro): Update constructors.
4055         (macro::is_diversion): New function.
4056         (macro::operator=): Set `is_a_diversion'.
4057         (string_iterator): New member function `is_diversion'.
4058         (string_iterator::string_iterator): Update constructors.
4059         (string_iterator::fill): Set `div_nest_level'.
4060         (macro_iterator): New member function `is_diversion'.
4061         (do_if_request): Handle `suppress_push'.
4062         (tag, taga): New functions.
4063         (init_input_requests): Add `tag' and `taga' requests.
4065 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
4067         * src/include/font.h (font): New member function
4068         `get_image_generator'.
4069         New variables `unscaled_charwidths' and `image_generator'.
4071         * src/libs/libgroff/font.cpp (font::get_width): Always return the
4072         character's unscaled width if `font::unscaled_charwidths' is set.
4073         (font::get_image_generator): New function.
4074         (font::load_desc): Check the `unscaled_charwidths' and
4075         `image_generator' keywords.
4077         * src/libs/libgroff/fontfile.cpp: Initialize
4078         `font::unscaled_charwidths' and `font::image_generator'.
4080         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
4082         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
4084         * man/groff_font.man: Document `unscaled_charwidths' and
4085         `image_generator'.
4087         * src/preproc/html/pre-html.cpp: Include `device.h'.
4088         (image_gen): New global variable.
4089         (imageList::createPage): Use `image_gen'.
4090         (main): Use `image_generator' keyword.
4092 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
4094         * tmac/html.tmac: Handle \[sqrtex].
4096 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
4098         * src/include/printer.h (printer): New virtual method `round_width'.
4100         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
4101         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
4102         src/devices/grotty/tty.cpp (printer::round_width): New function
4103         member.
4105         * src/devices/grohtml/post-html.cpp (printer::round_width): New
4106         function member.
4107         (html_printer::set_numbered_char): Use it.
4109 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
4111         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
4113         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
4115         * configure: Regenerated.
4117         * Makefile.in (GHOSTSCRIPT): New variable.
4118         (MDEFINES): Add GHOSTSCRIPT.
4120 2004-10-03  Werner LEMBERG  <wl@gnu.org>
4122         * INSTALL.gen: Updated (taken from texinfo CVS).
4124 2004-09-28  Werner LEMBERG  <wl@gnu.org>
4126         * NEWS: Updated.
4128 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
4130         * tmac/groff_www.man: Revised and updated.
4132 2004-09-26  Werner LEMBERG  <wl@gnu.org>
4134         Fix \$@ and \$* to handle any number of arguments.
4136         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
4137         characters.
4139         * src/roff/troff/input.cpp (input_iterator::internal_level):
4140         Removed.
4141         (input_stack): New member functions `increase_level' and
4142         `decrease_level'.
4143         (input_stack::get_level): Don't use `internal_level'.
4144         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
4145         (end_quote_iterator): Completely removed.
4146         (interpolate_arg): Build string for \$@ and \$* which is then
4147         pushed onto the input stack.
4149 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
4151         * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
4152         Registers): Document changes from 2004-09-19.
4154 2004-09-23  Werner LEMBERG  <wl@gnu.org>
4156         * tmac/an-old.tmac (ne): Using default scaling operator.
4158 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
4160         This change implements the following features:
4162         PORPHANS
4163           New numeric register: Defines number of lines following LP, PP,
4164           QP, IP or XP, which must be kept together, before any automatic
4165           page break.  If insufficient space remains on the current page, a
4166           page break is forced before the new paragraph begins.
4168         HORPHANS
4169           New numeric register: Sets number of lines of following paragraph
4170           which must be kept with a heading, defined by NH or SH, before any
4171           automatic page break.  If insufficient space remains on the
4172           current page, a page break is forced before the heading.
4174         GROWPS
4175           (Thanks to Joerg van den Hoff, for this idea).
4177           New numeric register: Sets the first level of heading (set with
4178           NH), which will keep the same point size as body text; e.g. if
4179           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
4180           point size specified by \n[PS], but .NH 2 and .NH 1 will have
4181           progressively larger point sizes, determined by \n[PSINCR] (see
4182           below).
4184         PSINCR
4185           New numeric register: Sets the point size increment for each level
4186           of heading, (set with NH), below the threshold level set by
4187           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
4188           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
4189           and all other levels will remain at 10pt, (because \n[PS] = 10).
4191         SH
4192           Existing macro now accepts a numeric argument, to make heading
4193           size match that of NH with same argument value, when the
4194           GROWPS/PSINCR feature is enabled.
4196         SN-DOT
4197           New string, set by NH macro, replaces the existing (undocumented)
4198           use of SN, to represent the assigned section number.
4200         SN-NO-DOT
4201           New string, set by NH macro, represents the assigned section
4202           number, but omits the terminal period (periods at intermediate
4203           levels are retained).
4205         SN
4206           String set by NH macro, originally undocumented, now implemented
4207           as an alias for SN-DOT (which reproduces original behaviour).
4209         * tmac/s.tmac (PORPHANS): New register.
4210         (par*start): Use it.
4211         (HORPHANS, GROWPS, PSINCR): New registers.
4212         (SH-NO-TAG, @SH): Use them.
4213         (@NH): Improved.
4215 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
4217         * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
4218         Document the deletion of `Ds' and `De' macros.
4220 2004-09-10  Werner LEMBERG  <wl@gnu.org>
4222         In tbl, handle \a as an interpreted leader character if in
4223         compatibility mode.
4225         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
4226         LEADER_CHAR): New macros.
4227         (compatible_flag): New declaration.
4229         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
4230         LEADER_3, and LEADER_4 to `state'.
4231         (table_input::get): Handle `\a'.
4233         * src/preproc/tbl/table.cpp (PREFIX): Removed.
4234         (LEADER_REG): New macro.
4235         (table::init_output): Define LEADER_REG string register if in
4236         compatibility mode.
4238         * src/preproc/tbl/tbl.man: Document it.
4240 2004-08-18  Werner LEMBERG  <wl@gnu.org>
4242         * tmac/doc.tmac (An): Fix error message.
4244 2004-08-06  Werner LEMBERG  <wl@gnu.org>
4246         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
4247         file can't be opened.  UNIX tbl has the same behaviour.
4249 2004-08-05  Y T  <doarhop@hotmail.com>
4251         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
4252         (DBRead): If in compatibility mode, take into account the text
4253         when computing figure boundaries.
4255 2004-08-05  Werner LEMBERG  <wl@gnu.org>
4257         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
4258         from Tadziu Hoffmann.
4260 2004-08-03  Werner LEMBERG  <wl@gnu.org>
4262         * doc/meref.me: Document `_M' register.
4264 2004-08-03  Martin Husemann  <martin@duskware.de>
4266         Make hpftodit work correctly on big-endian systems.
4268         * src/utils/hpftodit/hpftodit.cpp (File): New method
4269         `get_uint32(char *)'.
4270         (entry): New member `orig_value'.
4271         (read_tags): Use new method.
4272         (output_font_name, read_and_output_pcltypeface, dump_ascii):
4273         Updated.
4275 2004-08-01  Werner LEMBERG  <wl@gnu.org>
4277         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
4278         are already in X11's `macros.t' file.
4280 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
4282         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
4283         Fix casting bug.
4284         (read_and_output_pcltypeface): Handle strings with length <= 4.
4286 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
4288         * tmac/s.tmac (pg@top): Don't save `PO' register.
4289         (pg*end-col, pg*end-page): Directly use `PO' register.
4291 2004-07-27  Werner LEMBERG  <wl@gnu.org>
4293         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
4295         * src/preproc/refer/refer.cpp (output_references): Check for
4296         empty hash table.
4297         * src/preproc/refer/refer.man: Improve documentation of
4298         `bibliography' command.
4300 2004-07-26  Werner LEMBERG  <wl@gnu.org>
4302         Add requests `fcolor' and `gcolor'.
4304         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
4305         New functions.
4306         (init_env_requests): Add `fcolor' and `gcolor'.
4308         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
4310         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
4311         (Colors): Document new requests.
4313 2004-07-24  Werner LEMBERG  <wl@gnu.org>
4315         Add support for fractional point sizes in ms macros.  A value for
4316         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
4317         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
4319         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
4320         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
4322         * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
4323         Registers), NEWS: Document it.
4325 2004-07-19  Werner LEMBERG  <wl@gnu.org>
4327         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
4328         Update constructor.
4329         (do_for, for_input::get, for_input::peek): Handle negative `by'.
4330         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
4332 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
4334         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4335         * tmac/groff_mdoc.man: Updated.
4337 2004-07-05  Werner LEMBERG  <wl@gnu.org>
4339         * doc/groff.texinfo (Manipulating Hyphenation): Further improve
4340         documentation of `hcode'.
4342 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
4344         Improve appearance of arrows in pic.
4346         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
4347         arrow head thin.
4348         Use two line segments for drawing non-filled arrow head.
4349         (line_object::print, spline_object::print): Shorten line length to
4350         avoid arrow sticking.
4351         (arc_object::print): Take arrow direction into account.
4353 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
4355         * tmac/groff_www.man: Update documentation of .MPIMG.
4357 2004-07-03  Werner LEMBERG  <wl@gnu.org>
4359         * tmac/an-old.tmac (RI): Always start with font `R'.
4360         (RI, IR): Properly end with font `R'.
4362 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4364         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
4365         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
4366         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
4367         Don't pass more than six arguments to .R, .I, .B, etc., for
4368         compatibility with traditional troff macros.
4370 2004-07-02  Werner LEMBERG  <wl@gnu.org>
4372         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4373         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
4374         Update all users.
4375         (PUSH_COMP_MODE): New internal character constant.
4376         Update all users.
4378         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
4379         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
4380         (token::next, macro::append): Handle PUSH_COMP_MODE.
4381         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
4382         POP_GROFFCOMP after each of the decoded arguments to make them
4383         independent from the compatibility mode status.
4384         (comp_mode): Add `COMP_ENABLE'.
4385         (do_define_string, do_define_macro): Handle COMP_ENABLE.
4386         (define_string, append_string, define_macro, define_indirect_macro,
4387         append_macro, append_indirect_macro): Handle `compatible_flag'.
4388         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
4390         * man/groff_diff.man, doc/groff.texinfo: Updated.
4392 2004-07-01  Werner LEMBERG  <wl@gnu.org>
4394         * doc/groff.texinfo: Improve documentation of `hcode'.
4395         Use @documentencoding and convert document to latin-1; to do that
4396         make latin characters active and assign proper macros (within a
4397         @tex...@end tex environment).
4398         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
4399         * doc/Makefile.sub (groff): Ditto.
4401 2004-06-29  Werner LEMBERG  <wl@gnu.org>
4403         Implement two new conditional operators `F <name>' and `S <name>'
4404         which check whether <name> is a valid font or style, respectively.
4406         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
4407         (text_file::text_file): Updated.
4408         (text_file::error): Don't emit message if `silent' is set.
4409         (font::load_font): Add optional third argument (which is directly
4410         passed to `load'.
4411         (font::load): Add optional second argument to check the header of
4412         a font only, without emitting warning or error messages.
4413         * src/include/font.h (font): Updated.
4415         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
4416         conditionals.
4417         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
4418         fourth argument to check a font without mounting.
4419         (check_font, check_style): New functions.
4420         * src/roff/troff/node.h: Updated.
4422         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4423         Updated.
4425 2004-06-27  Werner LEMBERG  <wl@gnu.org>
4427         Implement new string-valued register `.sty' to return the current
4428         style name.
4430         * env.cpp (environment::get_style_name_string): New function.
4431         (init_env_requests): Add `.sty' register.
4432         * env.h (environment): Updated.
4433         * node.cpp (font_info): Make `get_style_name' a friend.
4434         (get_style_name): New function.
4435         * node.h: Updated.
4437         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4438         Updated.
4440 2004-06-15  Werner LEMBERG  <wl@gnu.org>
4442         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4443         `nospaces' option.
4445 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
4447         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4448         and \n[mo] to avoid dependency on current date.
4450 2004-06-08  Werner LEMBERG  <wl@gnu.org>
4452         * Makefile.sub (install_data): New target.
4454 2004-06-04  Werner LEMBERG  <wl@gnu.org>
4456         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4458 2004-06-03  Werner LEMBERG  <wl@gnu.org>
4460         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4461         order of libraries.
4462         (install_data): Add $(srcdir).
4464         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4465         libraries.
4467 2004-06-02  Werner LEMBERG  <wl@gnu.org>
4469         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4470         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4471         Add test for Xmu library.
4472         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4473         GROFF_APPRESDIR_DEFAULT): New macros.
4475         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4476         and GROFF_APPRESDIR_DEFAULT.
4478         * configure: Regenerated.
4480         * Makefile.in (appresdir): New variable.
4481         (MDEFINES): Add appresdir.
4483         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4484         -Xt.
4485         (install_data, uninstall_sub): New targets to handle GXditview.ad.
4487         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4488         `$(srcdir)/eign', not `eign'.
4490         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4492         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4493         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4494         Protect (g)xditview with `\%' to avoid hyphenation.
4495         Other minor formatting.
4497 2004-06-01  Werner LEMBERG  <wl@gnu.org>
4499         Integrate gxditview into groff's standard directory hierarchy.
4501         * src/xditview/*: Moved to ...
4502         * src/devices/xditview/*: Here.
4503         Moved DviChar.h and XFontName.h to src/include.
4504         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4505         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4506         Moved xtotroff.c to new directory src/utils/xtotroff.
4507         Provide proper Makefile.sub files (reusing the stuff from
4508         Imakefile.in).
4509         DESC renamed to DESC.in.
4510         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4511         Converted everything from K&R to ANSI C.
4512         Decorated with const where appropriate.
4513         Cast string constants with `String' and `char *' where appropriate.
4514         Made it compile with C++ (used as a C compiler).
4515         Removed other minor compiler warnings.
4517         * src/devices/xditview/device.c: Include config.h, string.h, and
4518         defs.h.
4519         Don't declare `exit', `strtok', `strchr', and `getenv'.
4520         (FONTPATH): Remove.
4522         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4523         `XFormatFontName'.
4525         * src/devices/xditview/xditview.c: Include config.h.
4526         Include stdio.h earlier.
4527         Protect declaration of `popen' and `pclose' with
4528         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4529         Replace `caddr_t' with `XtPointer'.
4530         (MakePromptFunc): New typedef.
4531         (DoPrint): Use RETSIGTYPE.
4532         (promptfunction): Change type to MakePromptFunc.
4533         (MakePrompt): Use MakePromptFunc for third argument.
4534         (xmalloc): Removed.
4536         * src/devices/xditview/ad2c: Add casts to `String'.
4538         * src/include/XFontName.h (XFontNameString): Don't use array
4539         notation.
4540         Add prototypes for `XParseFontName', `XFormatFontName',
4541         `XCompareFontName', and `XCopyFontName'.
4543         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4544         `XFontName.h'.
4546         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4547         Don't declare `XParseFontName' and `XFormatFontName'.
4548         (xmalloc): Removed.
4549         (main): Remove `optind' and `optarg'.
4551         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4552         (to select programs which need X).
4553         Make XDEVIDIRS depend on `FORCE'.
4554         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4555         X support).
4556         (MDEFINES): Updated.
4557         (LIBDIRS): Use XLIBDIRS.
4558         (CPROGDIRS): Use XPROGDIRS.
4559         (DEVDIRS): Remove font directories for gxditview.
4560         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4561         (EXTRADIRS): Remove src/xditview.
4563         * Makefile.sub (DISCLEANFILES): Updated.
4565         * Makefile.comm (LIBXUTIL): New variable.
4566         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4567         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4569         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4571         * aclocal.m4 (GROFF_X11): New function.
4573         * configure.ac: Call GROFF_X11.
4574         Don't create src/xditview/Imakefile.
4575         Don't emit notice how to build gxditview.
4577         * configure: Regenerated.
4579         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4581 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
4583         * Makefile.in (CPPFLAGS): Define.
4584         (MDEFINES): Add CPPFLAGS.
4586 2004-05-27  Werner LEMBERG  <wl@gnu.org>
4588         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4590 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
4592         Fix problems with `friend name injections'.
4594         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4595         make_script_box), src/roff/troff/div.h (end_diversions),
4596         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4597         change 2004-04-08.
4599 2004-05-25  Bernd Warken  <bwarken@mayn.de>
4601         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4603 2004-05-25  Werner LEMBERG  <wl@gnu.org>
4605         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4606         src/libs/libgroff/color.cpp: Include lib.h.
4608 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4610         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4611         through Forte 6u1, and for how to get GNU make on Solaris.
4613 2004-05-24  Werner LEMBERG  <wl@gnu.org>
4615         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
4616         by Paul Eggert.
4618 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
4620         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4621         rule.
4623 2004-05-14  Werner LEMBERG  <wl@gnu.org>
4625         * REVISION: Set to 2.
4627         * aclocal.m4 (GROFF_STDINT_H): Removed.
4628         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4630         * configure.ac: Updated.
4631         * configure, src/include/config.hin: Regenerated.
4633         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4634         inttypes.h conditionally.
4636 2004-05-13  Werner LEMBERG  <wl@gnu.org>
4638 Version 1.19.1 released
4639 =======================
4641 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
4643         * src/preproc/refer/label.y (same_author_last_name,
4644         same_author_name): Handle empty sort keys.
4646 2004-05-10  Werner LEMBERG  <wl@gnu.org>
4648         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4649         tmac/TODO: Updated.
4651         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4652         doc-str-Lb-librt): Reset font.
4653         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4654         Provide `doc-str-Lb' to reset font.
4655         * tmac/groff_mdoc.man: Updated.
4657 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
4659         * src/preproc/html/pre-html.cpp (make_message): Make it work for
4660         snprintf versions which don't conform to ANSI C 99 (this is,
4661         counting the string's trailing null byte in the return value).
4663 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
4665         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4666         that all implementations of sprintf handle null pointers correctly.
4668 2004-05-04  Werner LEMBERG  <wl@gnu.org>
4670         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4671         Document `.U' register.
4673         * src/roff/troff/env.cpp (environment::mark_last_line)
4674         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4676 2004-05-04  Larry Kollar  <kollar@alltel.net>
4678         New read-only register `.U'; it returns 1 in safer mode and 0
4679         otherwise.
4681         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4682         register.
4684 2004-05-03  Werner LEMBERG  <wl@gnu.org>
4686         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4688 2004-04-17  Werner LEMBERG  <wl@gnu.org>
4690         * src/include/font.h (font): Use `int' for ch_index.
4691         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4692         font::compact): Updated.
4694         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4695         warnings.
4697         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4698         (hyphen_word): Fix compiler warnings.
4699         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4700         `char'.
4701         Update all callers.
4702         (get_delim_number, get_line_arg): Change second argument type to
4703         `unsigned char'.
4704         (macro_header::copy, token::next, do_define_string,
4705         do_define_character, substring_request, asciify_macro,
4706         unformat_macro, read_size, non_interpreted_node::interpret,
4707         while_request, main: Fix compiler warnings.
4708         (read_color_draw_node): Initialize `col'.
4710         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4711         `start_col' and `end_col' of type `int'.
4712         (vertical_rule): Make `col' of type `int'.
4714         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4715         for EOF.
4717         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4718         New arrays.
4719         (format_serial): Use them to remove dependency on ASCII.
4721         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4722         compiler warning.
4723         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4724         Ditto.
4726         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4727         compiler warnings.
4728         (glyph): Change type of `hpos' to `int'.
4730         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
4731         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4733         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4735         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4737 2004-04-16  Werner LEMBERG  <wl@gnu.org>
4739         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4740         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4741         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4742         `double' instead of `float' everywhere.
4743         * src/preproc/grn/main.cpp: Use `double' instead of `float'
4744         everywhere.
4745         (main): Add return value.
4746         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
4747         everywhere.
4748         Update all user functions.
4750         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
4751         src/preproc/eqn/box.h, src/preproc/pic/object.h,
4752         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
4753         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
4754         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
4755         src/roff/troff/input.cpp, src/roff/troff/request.h,
4756         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
4757         declarations.
4759         * src/utils/indxbib/signal.c: Include stdlib.h.
4761 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
4763         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
4764         before the first page.
4766 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
4768         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
4769         (doc-operating-system-*): Updated.
4770         * tmac/doc-syms (doc-str-St-*): Various small fixes.
4771         (doc-str-Lb-*): Add more library names.
4773 2004-04-10  Art Haas  <ahaas@airmail.net>
4775         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
4776         use anonymous type.
4778 2004-04-09  Art Haas  <ahaas@airmail.net>
4780         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
4782 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
4784         * arch/misc/shdeps.sh: Generate better comment for sed script.
4786 2004-04-08  Art Haas  <ahaas@airmail.net>
4788         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
4789         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
4790         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
4791         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
4792         (polyfill), src/preproc/grn/main.cpp (polyfill),
4793         src/preproc/refer/command.cpp (command_table),
4794         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
4795         gcc 3.5 doesn't like).
4797 2004-04-08  Werner LEMBERG  <wl@gnu.org>
4799         Removing many compiler warnings.  groff should now compile with
4800         a C++ compiler used for C files also.  [Simple variable renamings
4801         to avoid shadowing aren't logged in detail.]
4803         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
4804         (draw_dvi_printer::draw) ['c']: Enclose in block.
4806         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
4807         (page::add_line): Fix typos.
4808         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
4810         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
4811         Some local variable renamings.
4812         * src/devices/grolbp/lbp.h: Some local variable renamings.
4814         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
4815         variable renamings.
4817         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
4818         Remove redundant local variable declaration.
4819         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
4820         Don't use `caddr_t' but `void *'.
4821         Enclose functions with `extern "C"' for C++.
4823         * src/libs/libdriver/input.cpp (remember_filename,
4824         remember_source_filename): Use cast for string constant.
4826         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
4827         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
4828         src/libs/libgroff/geometry.cpp: Some local variable renamings.
4829         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
4830         style.
4831         Enclose functions with `extern "C"' for C++.
4832         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
4833         (needs_quoting): Return `int'.
4834         (quote_arg): Add proper casts to malloc and realloc.
4835         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
4836         various MS Windows environments.
4837         (spawnvp_wrapper): Add proper cast to malloc.
4839         * src/preproc/eqn/box.h: Remove redundant declarations of
4840         `make_script_box', `make_mark_box' and `make_lineup_box'.
4841         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
4842         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
4843         variable renamings.
4845         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
4846         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
4847         (dx, dy): Renamed functions to...
4848         (deltax, deltay): This.
4849         * src/preproc/grn/main.cpp: Some local variable renamings.
4850         (deffont): Add `const'.
4851         (initpic, conv): Use cast for string constant.
4853         * src/preproc/html/pre-html.cpp: Some local variable renamings.
4854         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
4855         (char_buffer::run_output_filter): Second argument is unused.
4856         * src/preproc/html/pushback.cpp: Some local variable renamings.
4858         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
4859         * src/preproc/pic/object.cpp: Some local variable renamings.
4861         * src/preproc/refer/label.y (lookup_label): Remove redundant
4862         declaration of local variable.
4864         * src/preproc/soelim.cpp: Remove redundant declaration of
4865         `interpret_lf_args'.
4867         * src/preproc/tbl/main.cpp: Some local variable renamings.
4869         * src/roff/groff/groff.cpp (main): Use cast for string constant.
4870         * src/roff/groff/pipeline.c: Enclose declarations of `error',
4871         `c_fatal', and `i_to_a' with `extern "C"' for C++.
4872         Don't use C++-style comments.
4874         * src/roff/troff/env.h: Remove redundant declaration of `title'.
4875         * src/roff/troff/node.h, src/roff/troff/env.cpp,
4876         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
4877         renamings.
4878         * src/roff/troff/div.h: Remove redundant declaration of
4879         `end_diversions'.
4880         * src/roff/troff/troff.h: Remove redundant declaration of
4881         `cleanup_and_exit'
4882         * src/roff/troff/input.cpp: Remove redundant declaration of
4883         `handle_first_page_transition' and `process_input_stack'.
4885         * src/utils/hpftodit.cpp: Some local variable renamings.
4887         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
4888         for C++.
4889         Don't define RETSIGTYPE.
4890         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
4892         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
4893         (error): Use `const' in argument.
4894         (main): Remove redundant declaration of `optind'.
4895         Move declaration of `Version_string' to top-level.
4897         * PROBLEMS: Document difficulties compiling signal.c if a C++
4898         compiler is used for C.
4900 2004-04-07  Werner LEMBERG  <wl@gnu.org>
4902         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
4904 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
4906         Make scripts like nroff.sh and neqn.sh portable across various
4907         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
4908         non-POSIX path separators.  The idea is to extend those scripts to
4909         decide at run-time (of the script) which path separator to use.
4911         * arch/misc/Makefile.sub: New file.
4912         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
4913         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
4914         a proper definition of the variable `GROFF_RUNTIME'.
4916         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
4917         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
4918         (PROGDEPDIRS): New variable.
4919         `FORCE' it.
4920         (PROGDIRS): Add PROGDEPDIRS.
4922         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
4923         Don't substitute @SEP@ and @BINDIR@.
4924         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
4925         (PATH): Use GROFF_RUNTIME.
4927         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
4928         Don't substitute @SEP@ and @BINDIR@.
4929         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
4930         (PATH): Use GROFF_RUNTIME.
4932 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4934         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
4935         Cygwin which doesn't handle stderr correctly.
4937 2004-03-08  Werner LEMBERG  <wl@gnu.org>
4939         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
4940         against empty argument.  Problem reported by <cgd@broadcom.com>.
4942 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4944         * Makefile.in (SEP): Replaced with...
4945         (RT_SEP, SH_SEP): Separators for the target platform's native path
4946         separator and the build environment, respectively.
4947         (fontpath, tmacpath): Use RT_SEP.
4948         (MDEFINES): Updated.
4950         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
4951         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
4952         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
4954 2004-03-05  Werner LEMBERG  <wl@gnu.org>
4956         * font/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
4957         reduce alignment problems with newer printers which use built-in
4958         TrueType fonts (instead of the older Intellifonts).  The ideal
4959         solution is to provide a second set of groff metric files, but this
4960         is extremely time-consuming to produce, given that HP's metric
4961         files are very rudimentary.
4963 2004-03-01  Werner LEMBERG  <wl@gnu.org>
4965         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
4966         s/operand/argument/ in error message.
4968 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
4970         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
4971         is in use.
4973 2004-03-01  Antti Kantee  <pooka@netbsd.org>
4975         * tmac/s.tmac (XE): Fix error message.
4977 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
4979         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
4980         New macros.
4982         * src/roff/groff/pipeline.c: Declare strcasecmp.
4983         (run_pipeline) [_WIN32]: Use function name variants which don't
4984         start with `_'.
4985         Fix stream handling.
4987 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
4989         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
4990         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
4991         for platforms which use the native Win32 runtime libraries.
4992         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
4994         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
4995         QUOTE_ARG_REALLOC_ERROR): Fix string.
4997         * src/preproc/html/pre-html.cpp: Remove declaration of
4998         `spawnvp_wrapper'.
4999         Don't use __MINGW32__.
5000         s/DEBUG_FILE/DEBUG_FILE_DIR/.
5001         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
5002         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
5003         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
5004         calls to `set_redirection' and `WAIT'.
5005         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
5006         Fix calls to `set_redirection' and `save_and_redirect'.
5007         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
5008         to `set_redirection' and `save_and_redirect'.
5009         (usage): Fix message.
5010         (makeTempFiles, main): Use `DEBUG_FILE'.
5012 2004-02-21  Werner LEMBERG  <wl@gnu.org>
5014         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
5016 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
5018         * src/libs/libgroff/quotearg.c: New file, providing proper argument
5019         quoting for MSVC's spawn* and exec* functions.
5020         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
5021         spawnvp with proper quoting for MSVC.
5023         * src/libs/libgroff/assert.cpp (program_name),
5024         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
5025         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
5027         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
5029         * src/include/error.h (program_name): Declare as `extern "C"'.
5030         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
5032 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
5034         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
5035         spawnvp_wrapper.
5036         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
5038 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
5040         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
5041         variable.
5042         (sbasename) [__MSDOS__ || ...]: New function.
5043         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
5044         generic algorithm.
5045         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
5046         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
5047         of XXX.
5048         Use STDOUT_FILENO instead of hardcoded file handle.
5049         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
5051 2004-02-19  Werner LEMBERG  <wl@gnu.org>
5053         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
5054         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
5056 2004-02-18  Werner LEMBERG  <wl@gnu.org>
5058         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
5059         new font and mapping files.
5061 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
5062             Keith Marshall  <keith.d.marshall@ntlworld.com>
5064         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
5065         an input pipe.  This is needed for the MSVC compiler to make troff's
5066         `-o' option work.
5068         * src/roff/troff/div.cpp: Include nonposix.h.
5069         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
5071 2004-02-17  Werner LEMBERG  <wl@gnu.org>
5073         * font/devlj4/generate/special.awk: New script.
5074         * font/devlj4/generate/Makefile (S): Use special.awk.
5075         * font/devlj4/*: Regenerated, including the following new files:
5076         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
5077         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
5078         * NEWS: Document new lj4 fonts and revised hpftodit.
5080 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
5082         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
5084 2004-01-25  Werner LEMBERG  <wl@gnu.org>
5086         * src/libs/libgroff/progname.cpp: Replaced with...
5087         * src/libs/libgroff/progname.c: New file.
5088         * src/libs/libgroff/Makefile.sub: Updated accordingly.
5090 2004-01-17  Werner LEMBERG  <wl@gnu.org>
5092         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
5094 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
5096         * font/devlj4/generate/wingdings.map,
5097         font/devlj4/generate/symbol.map: Include unnamed glyphs.
5098         Use groff glyph names where possible.
5099         * src/devices/grolj4/lj4_font.man: Minor updates.
5101 2004-01-13  Werner LEMBERG  <wl@gnu.org>
5103         * tmac/www.tmac (DC): Handle TTY devices.
5105         * doc/webpage.ms: Document viewCVS from ffii.org.
5106         * NEWS, README: Updated.
5108         * src/roff/groff/groff.man: Mention lj4_font man page.
5110         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
5111         variables.
5112         (FONTS): Add SYMBOL and WINGDINGS.
5113         (SYMBOL, WINGDINGS): New targets.
5115 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
5117         * src/devices/grolj4/lj4_font.man: New man page.
5118         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
5119         * src/devices/grolj4.man: Mention lj4_font man page.
5121         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
5122         * src/utils/hpftodit/hpftodit.man: Document it.
5123         (CW): New macro.
5124         Remove details about fonts (which are now in lj4_font.man).
5126         * font/devlj4/generate/symbol.map,
5127         font/devlj4/generate/wingdings.map: New files.
5129 2004-01-12  Werner LEMBERG  <wl@gnu.org>
5131         * README: Mention ffii's viewcvs access.
5133 2004-01-09  Werner LEMBERG  <wl@gnu.org>
5135         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
5137 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
5139         Revert most of the change from 2004-01-03 to better control used
5140         symbol sets.
5142         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
5143         (text_symbol_sets, special_symbol_sets): New arrays.
5144         (symbol_set_table): New global variable.
5145         (read_symbol_sets): Use search order given in the text_symbol_sets
5146         and special_symbol_sets arrays.  If command line flag -a is not
5147         given, search both arrays.
5148         (output_charset): Require x_height_tag only for command line flag -i.
5150 2004-01-06  Werner LEMBERG  <wl@gnu.org>
5152         Implement string-valued registers \n[.m] and \n[.M] to return the
5153         name of the current drawing and background color, respectively.
5155         * src/roff/troff/symbol.h: Moved to...
5156         * src/include/symbol.h: Here.
5157         Small fixes to make it work outside of the `troff' directory.
5158         * src/roff/troff/symbol.cpp: Moved to...
5159         * src/libs/libgroff/symbol.cpp: Here.
5160         Small fixes to make it work outside of the `troff' directory.
5162         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
5163         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
5164         Updated.
5166         * src/include/color.h: Include symbol.h.
5167         (color): Add new field `nm'.
5168         * src/libs/libgroff/color.cpp (color::color): Updated.
5170         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
5171         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
5172         src/roff/troff/reg.cpp: Don't include symbol.h.
5174         * src/roff/troff/env.cpp: Don't include symbol.h.
5175         (environment::get_glyph_color_string,
5176         environment_get_fill_color_string): New member functions.
5177         (init_env_requests): Handle `.m' and `.M' registers.
5178         * src/roff/troff/input.cpp: Don't include symbol.h.
5179         (default_symbol): Moved to symbol.cpp/symbol.h.
5180         (do_glyph_color, do_fill_color, define_color): Pass symbol name
5181         to color constructor.
5182         * src/roff/troff/env.h: Updated.
5184         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5185         Document new registers.
5187 2004-01-05  Werner LEMBERG  <wl@gnu.org>
5189         * src/roff/troff/node.cpp (space_node::get_breakpoints,
5190         space_node::nbreaks): Protect against zero `next' field.
5192 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
5194         In hpftodit, use the symbol sets offered in the TFM.
5196         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
5197         (symbol_set, text_symbol_sets, special_symbol_sets,
5198         symbol_set_table): Removed.
5199         (get_printcode): Removed.
5200         (read_symbol_sets): Initialize `symbol_set' field with
5201         `NO_SYMBOL_SET'.
5202         Simplify code to just use the `kind' value.
5203         (output_charset): Improve output formatting.
5204         (dump_symbols): Simplified.
5206 2004-01-02  Werner LEMBERG  <wl@gnu.org>
5208         * font/devlj4/generate/text.map: Add more MSL numbers.
5210 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
5212         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
5213         (text_symbol_sets): Add more symbol sets.
5214         (debug_flag): New static variable (moved from `main').
5215         (get_printcode, show_symset): New functions.
5216         (main): Remove `debug_flag'.
5217         (output_charset): Use `show_symset'.
5218         (dump_symbols):  Use `show_symset'.
5219         Print symsets for all glyphs.
5220         (read_map): Actually call `unicode_to_ucode_make' but this time
5221         correctly.
5223 2004-01-01  Werner LEMBERG  <wl@gnu.org>
5225         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
5226         Fix placement of comments.
5228 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
5230         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
5231         option `-d' is given.
5232         (output_charset): Improve warning messages to give more information.
5233         (dump_symbols): Make information more precise.
5234         (usage): Updated.
5235         (read_map): Don't call unicode_to_ucode_name; the glyph names must
5236         appear as-is and shouldn't be decomposed.
5238 2003-12-31  Werner LEMBERG  <wl@gnu.org>
5240         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
5241         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
5242         (FONTS): Add TrueType font families Arial and Times New Roman.
5243         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
5244         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
5245         `fl'.
5247 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
5249         * test-groff.in (SEP): Quote value.
5250         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
5251         `tem' to `char*' to avoid deallocation of a pointer to a constant
5252         object which some compilers don't like.
5254 2003-12-31  Werner LEMBERG  <wl@gnu.org>
5256         * font/devlj4/generate (text.map, special.map): Rewritten to work
5257         with the new hpftodit version.
5259 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
5261         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
5262         set and 8bit character code for all glyphs also.
5264 2003-12-30  Werner LEMBERG  <wl@gnu.org>
5266         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
5268 2003-12-29  Werner LEMBERG  <wl@gnu.org>
5270         More fixes for MSVC compiler.
5272         * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
5274         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
5275         STDERR_FILENO) [_MSC_VER]: Define conditionally.
5276         (getpid) [_MSC_VER]: Remove.
5277         Include direct.h and process.h conditionally.
5279         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
5280         parentheses for a_delete.
5282         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
5284         * test-groff: Replaced with...
5285         * test-groff.in: This new template to handle path separator
5286         properly.
5288         * configure.ac: Check for direct.h and process.h.
5289         Generate test-groff script.
5290         * configure, src/include/config.hin: Regenerated.
5292 2003-12-28  Werner LEMBERG  <wl@gnu.org>
5294         Add integral extension glyph.
5295         Add new option `-x' to afmtodit to suppress use of built-in AGL.
5297         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
5299         * font/devps/generate/textmap: Provide entry for `integralex' to
5300         override (old) PUA value of the AGL.
5301         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
5302         * font/devps/*: Regenerated.
5304         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
5305         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
5307 2003-12-27  Werner LEMBERG  <wl@gnu.org>
5309         Add forgotten `coproduct' symbol (already available for DVI).
5311         * font/devhtml/R.proto, font/devps/generate/textmap,
5312         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
5313         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
5314         U+2210 (\[coproduct]).
5316 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
5318         hpftodit has been extended to handle TrueType metric files and
5319         more glyphs.  See hpftodit.man for more details.
5321         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
5322         ctype.h, and unicode.h.
5323         s/msl/charcode/ everywhere since we now handle Unicode values also.
5324         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
5325         Use it where appropriate.
5326         (MULTIPLIER): Replaced with...
5327         (multiplier): New global static variable.
5328         (scale): Updated.
5329         (tag_type): Add more TFM tags.
5330         (tag_name): New array.
5331         (ENUM_TYPE, FLOAT_TYPE): Removed.
5332         (BYTE_TYPE): New value assigned.
5333         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
5334         (text_symbol_sets, special_symbol_sets): Extended to cover more
5335         sets.
5336         (check_type): Add return value.
5337         (check_units): Add parameters to get ppi and upem values.
5338         Handle TrueType TFM data.
5339         (output_font_name): New function.
5340         (output_charset): Add parameter to handle TFM type.
5341         Handle TrueType TFMs also.
5342         (em_fract): New macro.
5343         (dump_tags): Be much more verbose and handle more tags.
5344         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
5345         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
5346         functions.
5347         (read_map): Add parameter to handle TFM type.
5348         Handle both MSL and Unicode mappings.
5349         (main): Add two new command line options `-a' and `-q'.
5350         Updated to make use of new functions.
5351         (usage): Updated.
5353         * src/utils/hpftodit/hpuni.cpp: New file.
5355         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
5356         Updated.
5358 2003-12-25  Werner LEMBERG  <wl@gnu.org>
5360         * src/include/nonposix.h (read) [_MSC_VER]: Define.
5362 2003-12-24  Werner LEMBERG  <wl@gnu.org>
5364         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
5365         by Michail Vidiassov <master@iaas.msu.ru>.
5367 2003-12-20  Werner LEMBERG  <wl@gnu.org>
5369         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5370         and u0049_0307.
5371         Add missing latin-2 glyphs.
5372         * font/devutf8/R.proto: Add missing latin-2 glyphs.
5374         * tmac/troffrc: Load `composite.tmac' earlier.
5376         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
5377         u00{53,73}_0327, and u0049_0307.
5378         * tmac/X.tmac: Add u00{47,67}_0306.
5379         * tmac/tty-char.tmac: Use composite glyph names for readability.
5381         * NEWS: Updated.
5383         * src/include/unicode.h: Remove `extern' keywords.
5385 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
5387         * tmac/latin5.tmac: New file.
5389 2003-12-19  Werner LEMBERG  <wl@gnu.org>
5391         Add some glyphs needed for Turkish.
5393         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5394         and u0049_0307.
5396         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
5397         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
5398         u00{53,73}_0327, and u0049_0307.
5400 2003-12-18  Werner LEMBERG  <wl@gnu.org>
5402         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
5403         from 2001-10-04.
5404         Remove trailing zeros.
5406 2003-12-17  Werner LEMBERG  <wl@gnu.org>
5408         Make \? transparent to end-of-sentence recognition.
5410         * src/roff/troff/input.cc (non_interpreted_node): Add
5411         `ends_sentence' member function.
5413 2003-12-16  Werner LEMBERG  <wl@gnu.org>
5415         * doc/groff.texinfo: Document `dt' request correctly.
5416         Other minor typographical improvements.
5418 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
5420         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5422 2003-12-10  Richard Stallman  <rms@gnu.org>
5424         * LICENSE: Better wording.
5426 2003-12-09  Werner LEMBERG  <wl@gnu.org>
5428         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
5429         * configure, NEWS: Updated.
5431 2003-12-08  Werner LEMBERG  <wl@gnu.org>
5433         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
5435 2003-12-07  Bernd Warken  <bwarken@mayn.de>
5437         * LICENSE: Updated.
5439 2003-12-07  Werner LEMBERG  <wl@gnu.org>
5441         * INSTALL: Improved.
5443 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
5445         Use path separator character of target platform for compiled-in
5446         default paths.
5448         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5449         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5450         * configure: Regenerated.
5451         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5453 2003-12-05  Werner LEMBERG  <wl@gnu.org>
5455         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5456         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5458 2003-12-04  Bernd Warken  <bwarken@mayn.de>
5460         * LICENSE: New file.
5462 2003-12-03  Werner LEMBERG  <wl@gnu.org>
5464         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5465         ligatures present in AFM files since groff currently only
5466         understands some standard ligatures and nothing else.
5468 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
5470         * src/roff/groff/groff.cpp (main): Don't run the spooler if
5471         option -v is given.
5473         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5474         messages.
5475         Close stdout copy.
5476         Don't use Unix wait flags.
5478 2003-12-02  Werner LEMBERG  <wl@gnu.org>
5480         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5481         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5482         src/roff/troff/uniuni.cpp: Moved to...
5483         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5484         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5485         src/libs/libgroff/uniuni.cpp: Here.
5487         * src/include/Makefile.sub.old (HDRS),
5488         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5489         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5491 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
5493         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5494         `DEBUG_FILE'.
5495         Updated all users.
5497 2003-12-01  Werner LEMBERG  <wl@gnu.org>
5499         * groff.texinfo: Document special behaviour of `.vs 0'.
5500         Improve documentation of `cflags' request.
5501         * NEWS: Updated.
5503 2003-11-29  Werner LEMBERG  <wl@gnu.org>
5505         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5506         * font/devlj4/CORONET: Regenerated.
5508 2003-11-24  Werner LEMBERG  <wl@gnu.org>
5510         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5511         if processing hyphenation patterns in traditional mode.
5512         Improve error messages.
5514 2003-11-20  Werner LEMBERG  <wl@gnu.org>
5516         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5517         troff_output_file::put_char): Fix type of local variable `c'.
5519 2003-11-19  Werner LEMBERG  <wl@gnu.org>
5521         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
5522         declarations.
5523         (i_to_a): Removed.  libgroff already provides this function.
5524         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5526 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
5528         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5529         HAVE_DECL_SYS_LIST.
5531 2003-11-17  Werner LEMBERG  <wl@gnu.org>
5533         * COPYING: Use correct version.
5535 2003-11-11  Werner LEMBERG  <wl@gnu.org>
5537         LynxOS 4.0.0 doesn't declare vfprintf.
5539         * configure.ac: Check for vfprintf.
5540         * configure: Regenerated.
5541         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5542         * src/include/config.hin: Regenerated.
5544 2003-11-10  Werner LEMBERG  <wl@gnu.org>
5546         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5548         * configure.ac: Check for vsnprintf.
5549         * configure: Regenerated.
5550         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5551         `HAVE_VSNPRINTF'.
5552         * src/include/config.hin: Regenerated.
5554 2003-11-09  Werner LEMBERG  <wl@gnu.org>
5556         * aclocal.m4: Updated syntax to autoconf 2.59.
5557         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5558         Don't check for gsos2.
5559         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
5560         working abs_top_srcdir and abs_top_builddir.
5562         * configure.ac: Updated syntax to autoconf 2.59.
5563         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5564         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5565         * configure: Regenerated.
5567         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5568         s/@groff_top_builddir@/@abs_top_builddir@/.
5570         * src/roff/groff/pipeline.c (xstrsignal):
5571         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5573 2003-11-07  Werner LEMBERG  <wl@gnu.org>
5575         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5576         make start angle smaller than end angle to circumvent a bug in tpic
5577         handling of some versions of dvipdfm (and dvipdfmx).
5579 2003-10-30  Werner LEMBERG  <wl@gnu.org>
5581         * src/devices/grops/grops.man: Improve section on creating EPS.
5583 2003-10-29  Werner LEMBERG  <wl@gnu.org>
5585         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5586         -P-pletter).
5588 2003-10-28  Werner LEMBERG  <wl@gnu.org>
5590         * doc/groff.texinfo: Fix documentation of `.if'.
5592 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
5594         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5595         the form `uniXXXX' also.
5597 2003-10-27  Werner LEMBERG  <wl@gnu.org>
5599         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5600         contrib/pic2graph/pic2graph.sh: Implement secure management of
5601         temporary files.
5602         Pass `-P-pletter' to groff to avoid data outside of the converted
5603         area -- some versions of `convert' (for example 5.3.8) don't check
5604         the bounding box of the image but always use a fixed image size
5605         (letter paper format).
5606         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5607         contrib/pic2graph/pic2graph.man: Updated.
5609         * src/roff/groff/groff.man: Document $TMP and $TEMP.
5611 2003-10-26  Werner LEMBERG  <wl@gnu.org>
5613         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5614         troff_output::simple_ellipse, troff_output::simple_arc,
5615         troff_output::simple_line, troff_output::simple_spline,
5616         troff_output::simple_polygon): Insert a space before arguments.
5617         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5618         latter doesn't produce a node, so the following `.sp -1' would do
5619         the wrong thing.
5620         Don't emit `.sp -1' after \M.  This also doesn't produce a token
5621         (and we don't have to care about compatibility mode).
5622         (troff_output::set_color, troff_output::reset_color): Don't emit
5623         `.sp -1' after \M and \m.
5625         * src/roff/troff/input.cpp (old_have_input): New global variable.
5626         (input_stack::get): Handle `old_have_input'.
5627         (process_input_stack) <token::TOKEN_NEWLINE>: Call
5628         `trapping_blank_line' depending on `old_have_input', not
5629         `have_input'.
5631 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
5633         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5634         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5635         default directory names for temporary files.
5636         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5638         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5639         [__MSDOS__] (run_pipeline): Honour environment variables.
5640         Don't use `tmpnam' but `tempnam' to work around messy
5641         implementation.
5643         * README.MinGW: New file.
5645 2003-10-16  Werner LEMBERG  <wl@gnu.org>
5647         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5648         `(*t)->next' without testing validity of `*t'.
5649         (usage): Make it more readable.
5651 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
5653         Make html device run under both MS-DOS and Win32.
5655         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5656         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5657         spawn or fork+exec has to be used, and whether parent must sleep
5658         until the child process terminates.  Used in
5659         `char_buffer::run_output_filter'.
5660         (copyofstdoutfd): Removed.
5661         (char_buffer): Replace `write_file_html' and `write_file_troff'
5662         member functions with `emit_troff_output' and `run_output_filter'.
5663         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5664         macros.
5665         (replaceFd): Replaced with...
5666         (set_redirection): New auxiliary function.
5667         (waitForChild): Replaced with...
5668         (save_and_redirect): New auxiliary function for.
5670         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5671         functions.
5673 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
5675         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5676         (GROFF_LIBC): New function.
5677         * configure.ac: Call GROFF_LIBC.
5678         Check for `kill'.
5679         * configure: Regenerated.
5681         * src/include/lib.h: Handle __MINGW32__.
5682         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5683         Add macro for `pipe'.
5684         Define P_tmpdir.
5686         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5687         correctly.
5689         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5690         Implement.
5692 2003-10-12  Werner LEMBERG  <wl@gnu.org>
5694         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5695         src/roff/troff/input.cc (usage): Updated.
5697         * NEWS, doc/groff.texinfo: Updated.
5699 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
5701         * src/libs/libgroff/searchpath.cpp
5702         (search_path::open_file_cautious): New function which also handles
5703         `-' as stdin and stdout depending on the access mode.
5704         * src/include/searchpath.h (search_path): Updated.
5706         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5707         * src/devices/grops/ps.h: Include `searchpath.h'.
5708         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5709         Open resource file with `include_search_path.open_file_cautious'.
5710         * src/devices/grops/grops.man: Document new `-I' switch.
5712         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5713         (main), src/devices/grolj4/lj4.cpp (main),
5714         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5716         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5717         Replaced with...
5718         (include_search_path): New global variable.
5719         (include_path_append): Removed.
5720         (main): Use `include_search_path.command_line_dir' to handle `-I'.
5721         (do_file): Simplify, using new
5722         `include_search_path.open_file_cautious'.
5724         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5725         parameter.
5726         (main): Pass arguments to `-I' to both troff and devices.
5727         Improve handling of `-V'.
5728         * src/roff/groff/groff.man: Document changes to -I and -V.
5730         * src/roff/troff/input.cpp (include_search_path): New global
5731         variable.
5732         (next_file, source, ps_bbox_request, transparent_file,
5733         process_input_file): Use new
5734         `include_search_path.open_file_cautious'.
5735         (main) Handle `-I' switch.
5736         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5737         Use new `include_search_path.open_file_cautious'.
5738         * src/roff/troff/node.h: New extern symbol `include_search_path'.
5739         * src/roff/troff/troff.man: Document new `-I' switch.
5741 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
5743         Support multiple calls of .Lb in LIBRARY section.
5745         * tmac/doc-common (doc-in-library-section): New register.
5746         (doc-section-library): New string.
5747         (Sh): Set `doc-in-library-section'.
5748         (Rd): Updated.
5749         * tmac/doc-syms (Lb): Insert breaks before and after arguments
5750         if in LIBRARY section.
5751         * tmac/doc.tmac (doc-save-global-vars): Updated.
5752         * NEWS, tmac/groff_mdoc.man: Updated.
5754 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
5756         * tmac/doc-common (doc-default-operating-system): New variable.
5757         (Os): Use it.
5759 2003-09-08  Werner LEMBERG  <wl@gnu.org>
5761         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
5763 2003-08-31  Werner LEMBERG  <wl@gnu.org>
5765         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
5766         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
5767         $(DEVFILES) are not empty.
5768         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
5770 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
5772         * src/preproc/refer/ref.cpp (reference::compute_sort_key): Always
5773         insert SORT_SEP.  With certain combinations of sort specifications,
5774         refer sorted entries in the wrong order.  In particular, entries
5775         with a missing field should be be sorted before all entries that
5776         have that field, before refer looks to the next field.
5778 2003-08-23  Werner LEMBERG  <wl@gnu.org>
5780         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
5781         g++ linker is used.  Reported by Mark J. Reed
5782         <mark.reed@turner.com>.
5784 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5786         Add key character `x' to tbl which makes tbl call a user-defined
5787         macro on a table cell.
5789         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
5790         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
5791         `set_modifier' after printing the compatibility request.
5792         (set_modifier): Print call to `m->macro' if not empty.
5793         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
5794         `macro'.
5795         (process_format): Implement cases `x' and `X'.
5796         * src/preproc/tbl/tbl.man, NEWS: Updated.
5798 2003-08-15  Werner LEMBERG  <wl@gnu.org>
5800         * doc/groff.texinfo: Minor fixes.
5802 2003-08-09  Werner LEMBERG  <wl@gnu.org>
5804         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
5806 2003-08-07  Werner LEMBERG  <wl@gnu.org>
5808         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
5809         argument list to nothing if there is no file to match.  Use `ls' as
5810         a protection, similar to autoconf.
5812         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
5813         empty argument lists.
5815         * doc/groff.texinfo: Improve documentation how vertical spacing
5816         and line breaks interact.
5817         Other minor fixes.
5819         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
5821 2003-08-03  Werner LEMBERG  <wl@gnu.org>
5823         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
5824         EPS (using eps2eps or similar programs to compute the bounding box).
5826 2003-07-24  Werner LEMBERG  <wl@gnu.org>
5828         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
5829         * doc/texinfo.tex: Updated from texinfo 4.6.
5830         * README.CVS: From now on we need texinfo 4.6.
5832 2003-07-23  Werner LEMBERG  <wl@gnu.org>
5834         Add requests `dei1' and `ami1' for completeness.
5836         * src/roff/troff/input.cc (calling_mode): Remove
5837         CALLING_DISABLE_COMP.
5838         (comp_mode): New enumeration.
5839         (do_define_string, define_string, define_nocomp_string,
5840         append_string, append_nocomp_string): Updated.
5841         (do_define_macro): Add third parameter.
5842         (define_macro, define_nocomp_macro, define_indirect_macro,
5843         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
5844         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
5845         functions.
5846         (ignore): Updated.
5847         (init_input_requests): Add `dei1' and `ami1'.
5849         * tmac/trace.tmac: Handle de1 and am1.
5850         (de): Improve tracing message.
5851         (am): Add missing `do'.
5852         (return): Use de1.
5854         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5855         Document new requests.
5857 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5859         Add option -G to .MPIMG to insert a gap between text and the image.
5861         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
5862         www-finish-left-ll): Updated.
5863         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
5864         (MPIMG): Make option -L and -R optional.
5865         Implement option -G.
5867 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
5869         * src/devices/grohtml/post-html.cpp
5870         (html_printer::do_file_components): Don't use `stdout' as lvalue
5871         since it can be a macro.
5873 2003-07-22  Werner LEMBERG  <wl@gnu.org>
5875         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
5876         the corresponding test in aclocal.m4.
5878 2003-07-21  Werner LEMBERG  <wl@gnu.org>
5880         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
5881         names but RGB values directly.  Otherwise pnmtopng depends on
5882         an external file `rgb.txt' which maps colour names to values.
5884 2003-07-20  Werner LEMBERG  <wl@gnu.org>
5886         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
5887         * configure, src/include/config.hin: Regenerated.
5889         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
5891 2003-07-19  Werner LEMBERG  <wl@gnu.org>
5893         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
5895 2003-07-18  Werner LEMBERG  <wl@gnu.org>
5897         * *.man: Switch to non-compatibility mode temporarily if GNU
5898         syntax extensions are used in the particular man page.
5900         * PROBLEMS: Add solutions for SGR problems.
5902 2003-07-17  Werner LEMBERG  <wl@gnu.org>
5904         Don't ignore grotty's command line options if \X'tty: sgr ...' is
5905         used to change the drawing scheme.
5907         * src/devives/grotty/tty.cpp (bold_flag_option,
5908         underline_flag_option, italic_flag_option, reverse_flag_option,
5909         bold_underline_mode_option): New global variables.
5910         (update_options): New function.
5911         (tty_printer::special): Call update_options.
5912         (main): Don't set xxx_flag but xxx_flag_option, then call
5913         update_options.
5915 2003-07-14  Werner LEMBERG  <wl@gnu.org>
5917         Make grotty emit proper Unicode box drawing characters for -Tutf8.
5919         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
5920         values.
5921         (hline_char, vline_char): New global variables.
5922         (tty_printer::tty_printer): Initialize them.
5923         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
5924         horizontal and vertical lines.
5925         (crossings): New global array.
5926         (tty_printer::end_page): Use it to determine the proper crossing
5927         character for -Tutf8.
5929 2003-07-12  Werner LEMBERG  <wl@gnu.org>
5931         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
5932         (HTMLDOCFILES): Revert to `pic.html'.
5933         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
5935 2003-07-11  Werner LEMBERG  <wl@gnu.org>
5937         * doc/pic.ms: Improve documentation of absolute coordinates.
5938         Document absolute positioning of pictures.
5940         * NEWS: Add new pic capability.
5942 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
5944         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
5945         Rewritten.
5947 2003-07-07  Werner LEMBERG  <wl@gnu.org>
5949         Implement support for dashed and dotted ellipses in pic.  Based on
5950         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
5952         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
5953         common_output::dashed_ellipse, common_output::dotted_ellipse): New
5954         functions.  Ellipse arcs are approximated with circle arcs.
5955         * src/preproc/pic/common.h (common_output): Updated.
5956         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
5957         functions.
5958         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
5960         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
5962 2003-07-06  Werner LEMBERG  <wl@gnu.org>
5964         Make grotty work on platforms which have unsigned char as the
5965         default for char.  Based on a patch by Thomas Klausner
5966         <wiz@netbsd.org>.
5968         * src/devices/grotty/tty.cpp (schar): New typedef.
5969         Updated calls to declare_ptable and implement_ptable.
5970         (glyph): Use schar for back_color_idx and fore_color_idx.
5971         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
5972         (tty_printer::tty_color, tty_printer::tty_printer,
5973         tty_printer::color_to_idx, tty_printer::put_color): Updated.
5975 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5977         * src/roff/nroff/nroff.sh: Add option -d for completeness.
5978         * src/roff/nroff/nroff.man: Updated.
5980 2003-07-05  Werner LEMBERG  <wl@gnu.org>
5982         * NEWS, tmac/groff_www.man: Updated.
5983         * doc/Makefile.sub: Updated.
5985 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
5987         Implement support for multiple HTML output files.
5989         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
5990         -j command line option.
5992         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
5993         global variables.
5994         (file): New fields `new_output_file', `require_links',
5995         `output_file_name'.
5996         (file::file): Updated.
5997         (files::set_file_name, files::set_links_required,
5998         files::are_links_required, files::is_new_output_file,
5999         files::file_name, files::next_file_name): New functions.
6000         (header_desc): New fields `no_of_level_one_headings',
6001         `header_filename'.
6002         (header_desc::header_desc): Updated.
6003         (header_desc::write_headings): Handle multiple files.
6004         (html_printer::write_header): Save file name in which header occurs.
6005         (html_printer::determine_header_level): Possibly split files on
6006         level one headings.
6007         (html_printer::do_links, html_printer::troff_tag): Updated.
6008         (html_printer::insert_split_file, html_printer::do_job_name,
6009         html_printer::emit_link, html_printer::write_navigation,
6010         html_printer::do_file_components): New functions.
6011         (html_printer::~html_printer): Handle multiple files.
6012         (main): Handle command line option `-j'.
6014         * src/devices/grohtml/grohtml.man: Updated.
6016         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
6017         which splits file.
6019         * tmac/www.tmac (JOBNAME): New macro.
6020         * tmac/s.tmac (SH-NO-TAG): New macro.
6021         (@SH): Call SH-NO-TAG.
6022         (@NH): Updated.
6024 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
6026         * tmac/groff_mdoc.man: Improve documentation of punctuation
6027         characters.
6029 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
6031         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
6033 2003-07-03  Werner LEMBERG  <wl@gnu.org>
6035         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
6037 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
6039         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
6040         after `/*' and `*/'.
6041         Fix spacing.
6042         (Fn, Fo): Reduce indentation in synopsis.
6044         * tmac/doc-common (doc-check-depth): New macro.
6045         (doc-end-macro, Sh, Ss): Use it.
6046         (Cd): Fix behaviour in synopsis.
6047         (In): Make it parsed and callable.
6048         If not in the synopsis, represent the C header file enclosed in
6049         angle brackets.
6050         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
6051         Use minus, not hyphen.
6053         * tmac/groff_mdoc.man: Updated.
6055 2003-07-01  Werner LEMBERG  <wl@gnu.org>
6057         Integrated grap2graph, contributed by Eric S. Raymond.
6059         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
6060         New files.
6061         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
6062         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
6064 2003-07-01  Colin Watson  <cjwatson@debian.org>
6066         * src/xditview/*.c: Add prototypes, fix return types, add includes.
6067         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
6069 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
6071         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
6073 2003-06-31  Werner LEMBERG  <wl@gnu.org>
6075         * doc/Makefile.sub (CLEANADD): Remove all files created by
6076         running `make groff.{pdf,dvi}'.
6078         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
6079         src/xditview also.
6081 2003-06-30  Werner LEMBERG  <wl@gnu.org>
6083         * Makefile.in (SHELL): Define as @SHELL@.
6084         (mkinstalldirs): Use $(SHELL).
6085         (MDEFINES): Add $(SHELL).
6086         * Makefile.comm (SHELL): Removed.
6088 2003-06-29  Werner LEMBERG  <wl@gnu.org>
6090         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
6091         The X11 documentation files use them.
6092         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
6094 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
6096         * tmac/e.tmac (@C): Handle .ad also.
6098 2003-06-12  Werner LEMBERG  <wl@gnu.org>
6100         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
6102         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
6103         Assign `n' even here.  It is possible to construct a node
6104         immediately following an escape character:
6106           .di xx
6107           \?\\\?a
6108           .br
6109           .di
6110           .xx
6112 2003-06-10  Werner LEMBERG  <wl@gnu.org>
6114         * README.WIN32: Removed.
6115         * MANIFEST: Updated.
6117 2003-06-07  Werner LEMBERG  <wl@gnu.org>
6119         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
6121 2003-06-05  Werner LEMBERG  <wl@gnu.org>
6123         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
6124         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
6126 2003-06-03  Werner LEMBERG  <wl@gnu.org>
6128         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
6129         is done by the calling function.
6131 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
6133         * tmac/X.tmac: Fix definition of `em'.
6135 2003-05-22  Werner LEMBERG  <wl@gnu.org>
6137         * src/roff/troff/input.cc (return_macro_request): Fix detection of
6138         argument.
6140 2003-05-18  Werner LEMBERG  <wl@gnu.org>
6142         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
6143         to make items work which consist only of a tag.
6145 2003-05-17  Werner LEMBERG  <wl@gnu.org>
6147         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
6148         aren't stretched in a tag (this can fail with unformatted boxes).
6149         Instead, insert a break and go back one line.
6151 2003-05-16  Werner LEMBERG  <wl@gnu.org>
6153         * src/roff/troff/input.cc (return_macro_request): If called with
6154         argument pop macro twice.  We need this to trace `return'.
6156         * tmac/trace.tmac: Handle `return'.
6157         Fix typos.
6159         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6160         Document.
6162 2003-05-15  Larry Kollar  <kollar@alltel.net>
6164         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
6165         registers `FPS', `FVS', and `FPD'.
6167 2003-05-15  Werner LEMBERG  <wl@gnu.org>
6169         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
6170         correctly.
6172 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
6174         * tmac/groff_mdoc.man: Slight improvements.
6176 2003-05-03  Werner LEMBERG  <wl@gnu.org>
6178         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
6179         `doc-header-space' after header line if register `cR' is set.
6181 2003-05-02  Werner LEMBERG  <wl@gnu.org>
6183         * TODO: Updated.
6185 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
6187         * tmac/doc-common (Nd): Use \[em].
6189 2003-05-01  Werner LEMBERG  <wl@gnu.org>
6191         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
6192         doc-footer-space): Initialize to 0.5i.
6193         (doc-setup-page-layout): Don't set doc-header-space and
6194         doc-footer-space.
6196 2003-04-30  Werner LEMBERG  <wl@gnu.org>
6198         * REVISION: Set to 1.
6200         * doc/pic.ms: Document possible problems with `figname'.
6202 2003-04-29  Werner LEMBERG  <wl@gnu.org>
6204 Version 1.19 released
6205 =====================
6207         * VERSION: Set to 1.19.
6208         * REVISION: Set to 0.
6209         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
6211         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6212         Define charset as `US-ASCII' in html output.
6214         * tmac/www.tmac (ULE): Add missing scaling indicator.
6216         * win32-diffs: Removed.
6218 2003-04-28  Werner LEMBERG  <wl@gnu.org>
6220         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
6221         `.da' and `.boxa'.
6222         Document how to insert discardable whitespace with `.ss'.
6224 2003-04-27  Werner LEMBERG  <wl@gnu.org>
6226         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
6227         work with plain TeX also.
6229         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
6231 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
6233         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6234         Use a loose DTD.
6236 2003-04-24  Werner LEMBERG  <wl@gnu.org>
6238         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
6239         vbox with positive height and zero depth if in TeX mode.
6241         * NEWS: Document glyph name changes for grodvi and grolj4.
6243 2003-04-23  Werner LEMBERG  <wl@gnu.org>
6245         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
6246         * doc/pic.ms: Fixed.
6248 2003-04-21  Werner LEMBERG  <wl@gnu.org>
6250         HP-UX 10.20 has `snprintf' but it isn't declared.
6252         * configure.ac: Add declaration test for snprintf.
6253         * configure: Regenerated.
6254         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
6255         * src/include/config.hin: Regenerated.
6257 2003-04-19  Werner LEMBERG  <wl@gnu.org>
6259         Add keyword `figname' to pic, specifying the name of the picture
6260         box in TeX mode.  Based on a patch from William J Poser
6261         <wjposer@unagi.cis.upenn.edu>.
6263         * src/preproc/pic/pic.y: New token `FIGNAME'.
6264         (macro_name): New rule of type <str>.
6265         (placeless_element): Handle `FIGNAME'.
6266         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
6267         * src/preproc/pic/main.cpp (graphname): New global variable.
6268         (do_picture): Initialize `graphname'.
6269         * src/preproc/pic/pic.h: Updated.
6270         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
6271         `graphname'.
6272         Simplify TeX code.
6273         (tex_output::text): Beautify output.
6274         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
6275         `shaded' and `outlined' unconditionally.
6276         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
6277         Minor improvements.
6279         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
6280         greater is necessary.
6282 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
6284         Add option -r to soelim to avoid emission of `.lf' lines.
6285         Add option -t to produces TeX comment lines instead of `.lf' lines.
6287         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
6288         and `tex_flag'.
6289         (usage): Updated.
6290         (main): Handle `-r' and `-t'.
6291         (set_location): Handle `raw_flag' and `tex_flag'.
6292         * src/preproc/soelim/soelim.man, NEWS: Updated.
6294 2003-04-17  Werner LEMBERG  <wl@gnu.org>
6296         * tmac/hyphenex.sh: Replaced with...
6297         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
6298         nightmares.
6300         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
6301         if --quiet is used for the configure script.
6302         * configure: Regenerated.
6304 2003-04-16  Werner LEMBERG  <wl@gnu.org>
6306         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
6307         Add `const' to second argument.
6308         (html_printer::add_table_end): Add `const' to argument.
6309         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
6310         `const' to arguments.
6311         * src/devices/grohtml/html-text.h: Updated.
6313         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
6314         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
6315         argument.
6317         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
6318         cast for integer constant.
6320         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
6321         (writeNbytes): Add `const' to first argument.
6322         (writeString): Add `const' to argument.
6323         (char_buffer::can_see): Add `const' to third argument.
6324         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
6325         `const' to argument.
6326         * src/preproc/html/pushback.h: Updated.
6328         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
6329         (include_path_append): Add `const' to argument.
6330         (do_file): Updated.
6332         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
6333         for `value'.
6334         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
6335         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
6336         for `value'.
6337         (unicode_decompose_init::unicode_decompose_init): Updated.
6338         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
6339         for `value'.
6340         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
6341         * src/roff/troff/input.cc (process_startup_file): Add `const' to
6342         argument.
6344         * tmac/hyphenex.sh: Make script more portable by using a here
6345         document.
6347 2003-04-15  Werner LEMBERG  <wl@gnu.org>
6349         Renamed all `*.cc' files to `*.cpp'.
6350         Updated all configuration files, makefiles, and documentation.
6352 2003-04-14  Werner LEMBERG  <wl@gnu.org>
6354         * tmac/hyphenex.sh: Slight improvements.
6356 2003-04-13  Werner LEMBERG  <wl@gnu.org>
6358         * font/devascii/R.proto, font/devcp1037/R.proto,
6359         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
6360         character slots with unnamed glyphs.
6362         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
6363         (an-first): New global variable.
6364         (an-header): Emit vertical space between multiple man pages.
6366 2003-04-11  Werner LEMBERG  <wl@gnu.org>
6368         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
6369         values.
6371 2003-04-10  Werner LEMBERG  <wl@gnu.org>
6373         * PROBLEMS: Revised.
6375 2003-04-10  Bernd Warken  <bwarken@mayn.de>
6377         * doc/webpage.ms: Improved.
6379 2003-04-09  Werner LEMBERG  <wl@gnu.org>
6381         Add register \n[.height] which returns the value of \H.
6382         Add register \n[.slant] which returns the value of \S.
6384         * src/roff/troff/env.cc (init_env_requests): Implement.
6385         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6386         Document.
6388 2003-04-08  Werner LEMBERG  <wl@gnu.org>
6390         * tmac/html.tmac: Move some of the data into html-end.tmac.
6391         Remove most of the character translations for eqn since html fonts
6392         now cover those characters.
6393         Load www.tmac.
6394         * tmac/html-end.tmac: New file.
6395         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
6396         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
6397         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
6399 2003-04-07  Werner LEMBERG  <wl@gnu.org>
6401         * man/groff_out.man: Document negative values of `N' if -Thtml is
6402         used.
6404 2003-04-06  Werner LEMBERG  <wl@gnu.org>
6406         * Makefile.comm (depend.temp): Check location of YTABC.
6408 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6410         * doc/Makefile.in (TROFFBIN): New variable for troff
6411         binary path.
6412         (GROFFBIN): New variable for groff binary path.
6413         (groff_bin_path): Rename to GROFF_BIN_PATH.
6414         (TROFF): Use TROFFBIN.
6415         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6416         * doc/Makefile.sub (GROFFBIN): New variable for groff
6417         binary path.
6418         (groff_bin_path): Rename to GROFF_BIN_PATH.
6419         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6421         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
6422         with INSTALL_SCRIPT.
6423         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
6424         * Makefile.dev (all): Depend on DEVSCRIPTS.
6425         (install_dev): Likewise.
6426         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
6427         scripts.
6428         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
6429         (DEVGENSCRIPTS): New variable to hold generated scripts.
6431 2003-04-05  Werner LEMBERG  <wl@gnu.org>
6433         * src/libs/libdriver/input.cc (IntArray::operator[],
6434         IntArray::get_data): Remove meaningless `const' in return value.
6436         * README.CVS: New file.
6438 2003-04-04  Werner LEMBERG  <wl@gnu.org>
6440         Check for stdint.h in C++, not in C.
6442         * aclocal.m4 (GROFF_STDINT_H): New function,
6443         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6444         AC_CHECK_HEADERS.
6445         * configure, src/include/config.hin: Regenerated.
6446         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6449         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
6450         with a negative value, representing the width of the unbreakable
6451         space (only for -Thtml).  grohtml then converts this back to
6452         &nbsp; and uses the value of N as its width.
6454         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6455         unbreakable_space_node::tprint): Emit `N-<width>'.
6456         * src/include/printer.h (printer::set_numbered_char): Make it
6457         virtual.
6458         Make members `font_table' and `nfonts' protected instead of private.
6459         * src/devices/grohtml/post-html.cc
6460         (html_printer::set_numbered_char): New member function.
6463         * src/libs/libgroff/maxfilename.cc:
6464         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6466         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6467         emit word marker.
6469 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
6471         * man/roff.man: Small fixes.
6473 2003-04-03  Werner LEMBERG  <wl@gnu.org>
6475         Make groff independent from locale's numeric settings.
6477         * configure.ac: Check for `setlocale'.
6478         * configure, src/include/config.hin: Regenerated.
6480         * src/include/lib.h: Handle HAVE_SETLOCALE.
6482         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6483         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6484         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6487         * doc/groff.texinfo: Change dir category to `Typesetting'.
6488         (Man font macros): Mention that there is no space between arguments
6489         of .BI and friends.
6491         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6492         (*printer::change_color, *printer::change_fill_color): Add missing
6493         `const'.
6495 2003-04-02  Werner LEMBERG  <wl@gnu.org>
6497         * src/devices/grohtml/html-table.cc (html_table::emit_col,
6498         html_table::is_gap): Compute table widths after converting border
6499         positions to avoid rounding errors.
6501 2003-04-01  Werner LEMBERG  <wl@gnu.org>
6503         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6504         `space_emitted' properly.
6506 2003-03-31  Werner LEMBERG  <wl@gnu.org>
6508         * src/devices/grohtml/html-table.cc: Fix column width calculation.
6509         (html_table::set_linelength): Don't add 1.
6510         (html_table::add_indent): Don't subtract 1.
6512         * tmac/html.tmac: Set default page offset to zero.
6514 2003-03-30  Werner LEMBERG  <wl@gnu.org>
6516         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
6518         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6519         unbreakable_space_node::tprint): New functions.
6520         (troff_output_file): Make space_char_hmotion_mode::tprint and
6521         unbreakable_space_node::tprint to friends.
6522         * src/roff/troff/node.h: Updated.
6524         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
6525         in the HTML standard).
6527 2003-03-29  Werner LEMBERG  <wl@gnu.org>
6529         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6530         Otherwise, the following code
6532           .di xxx
6533           .ps 10
6534           a
6535           .br
6536           .di
6537           x\*[xxx]
6539         produces `x a' instead of `xa'.  This is a temporary fix, disabling
6540         font changes in diversions for -Thtml.
6542         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6543         `HTML-TAG'.
6544         (an-do-tag-html): Merge with ...
6545         (an-do-tag): This macro.
6546         Change code slightly to circumvent grohtml bug.
6547         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6549         * src/devices/grohtml/html-table.cc (html_table::emit_col,
6550         html_table::is_gap): Round `width' properly.
6552         * tmac/html.tmac: Provide some default layout parameters for
6553         grohtml.
6555         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6556         command.
6558 2003-03-28  Werner LEMBERG  <wl@gnu.org>
6560         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6562 2003-03-27  Werner LEMBERG  <wl@gnu.org>
6564         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6565         defined.
6567 2003-03-20  Werner LEMBERG  <wl@gnu.org>
6569         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6570         `.vs'.
6571         * doc/groff.texinfo: Updated.
6573 2003-03-19  Werner LEMBERG  <wl@gnu.org>
6575         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6576         TOKEN_END_TRAP>: Reset `have_input'.
6578 2003-03-18  Werner LEMBERG  <wl@gnu.org>
6580         * src/roff/groff/groff.man: Mention groff_trace man page.
6582 2003-03-16  Werner LEMBERG  <wl@gnu.org>
6584         * Makefile.in (LIBEXT): New variable to indicate the file extension
6585         of library files.  Computed heuristically from $(OBJEXT).
6586         (MDEFINES): Add $(LIBEXT).
6587         * Makefile.lib, Makefile.comm: Use it.
6589         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
6590         overlong lines into smaller chunks.
6591         (get_binary): New function.
6592         (main): Use them.
6593         * src/utils/pfbtops/pfbtops.man: Updated.
6595 2003-03-15  Colin Watson  <cjwatson@debian.org>
6597         * src/roff/groff/groff.man: Minor syntax fix.
6599 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
6601         * src/devices/grops/ps.cc (ps_printer::media_set,
6602         ps_printer::~ps_printer): Handle zero paper width and length.
6604 2003-03-13  Werner LEMBERG  <wl@gnu.org>
6606         Add options -p and -l to grodvi.
6608         * src/devices/grodvi/dvi.cc: Include paper.h.
6609         (landscape_flag, user_paper_length, user_paper_width): New global
6610         variables.
6611         (dvi_printer::begin_page): Emit `papersize' special.
6612         Set color after initialization of `cur_h' and `cur_v'.
6613         (main): Add options `-l' and `-p'.
6614         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6615         * src/devices/grodvi/grodvi.man, NEWS: Updated.
6617         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6619 2003-03-12  Werner LEMBERG  <wl@gnu.org>
6621         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6622         * man/groff_tmac.man: This man page.
6623         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6624         deprecated.
6626         * tmac/X.tmac: Don't load pspic.tmac.
6628 2003-03-11  Werner LEMBERG  <wl@gnu.org>
6630         Make variable `pr' local to libdriver/input.cc.  Based on a patch
6631         by Bernd Warken <bwarken@mayn.de>.
6633         * src/include/driver.h (pr): Removed.
6635         * src/libs/libdriver/input.cc (pr): New global variable.
6636         (do_file): Deallocate `pr'.
6637         * src/libs/libdriver/printer.cc (pr): Removed.
6639         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6640         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6641         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6642         (main): Don't delete `pr'.
6644 2003-03-10  Werner LEMBERG  <wl@gnu.org>
6646         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6647         * tmac/papersize.tmac: New file.
6648         * tmac/troffrc: Include `papersize.tmac'.
6649         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6650         * tmac/an-old.tmac: Set LT to LL by default.
6652         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6653         doc/groff.texinfo: Updated.
6655         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6656         bug which caused all odd iso papers to have wrong dimensions.
6658         * src/devices/grops/ps.cc (user_paper_width): New global variable.
6659         (main) <'p'>: Set `user_paper_width' also.
6660         (ps_printer::media_width, ps_printer::media_height): Use values
6661         given with option `-p'.
6663 2003-03-09  Werner LEMBERG  <wl@gnu.org>
6665         * src/include/nonposix.h: Provide default for SET_BINARY.
6667         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6668         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6669         unconditionally.
6671         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6672         (main): Treat \r\n as \n.
6674 2003-03-08  Werner LEMBERG  <wl@gnu.org>
6676         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6677         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6679 2003-03-07  Werner LEMBERG  <wl@gnu.org>
6681         Added support to access more than 256 glyphs in Type 1 fonts.
6683         * src/devices/grops/ps.cc (subencoding): New structure.
6684         (style): Add `sub' field.
6685         Updated all users.
6686         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6687         Add `set_subencoding', `get_subfont' and `encode_subfont' member
6688         functions.
6689         Updated all users.
6690         (ps_printer::set_char): Use `set_subencoding'.
6691         (make_subencoding_name): New function.
6692         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6693         (ps_printer::~ps_printer): Emit subencoding definitions.
6695         * src/devices/grops/psrm.cc (valid_input_table): New array to
6696         properly support EBCDIC.
6697         (white_space): Add `\f'.
6698         (ps_get_line): Change first argument to be of type `string &'.
6699         Updated all callers.
6700         This allows to get lines of arbitrary length.
6701         Use `valid_input_table'.
6702         Remove warning about non-conforming PS line length.  This seems
6703         not to be of great importance -- for example, dvips don't emit
6704         a warning either.
6705         (PS_LINE_MAX): Removed.
6706         (matches_comment): Change first argument to be of type `string &'.
6708         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6710         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6711         %AGL_to_unicode, %default_ligatures): New hash tables.
6712         Read all map entries.
6713         Add unencoded characters.
6714         Check for default ligatures if there are no `L' entries.
6715         Print all kern entries.
6716         Print all characters in charset.
6717         * src/utils/afmtodit/afmtodit.man: Updated.
6719         * font/devps/*: Regerated all fonts.
6721         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6722         of characters, just use `.trin'.  Otherwise the mapping depends
6723         on the font encoding.
6724         * tmac/ps.tmac: Add `fi' and `fl'.
6725         Improve `Fi' and `Fl'.
6726         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6727         * tmac/Xps.tmac: Fix `em'.
6729         * NEWS: Updated.
6731 2003-03-04  Werner LEMBERG  <wl@gnu.org>
6733         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6734         `have_input'.
6736 2003-03-03  Werner LEMBERG  <wl@gnu.org>
6738         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6740         * font/devps/generate/textmap: Remove entry `similarequal'.
6741         * font/devps/symbolmap: Updated.
6743 2003-03-02  Werner LEMBERG  <wl@gnu.org>
6745         * src/libs/libgroff/font.cc (font::load): Fix error message for
6746         bad character type.
6748         * src/devices/grops/grops.man: Improve documentation of the -b
6749         flag.
6751         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
6752         `ascii' and `cp1047'.
6754 2003-03-01  Werner LEMBERG  <wl@gnu.org>
6756         Document composite glyphs and the `composite' request.
6758         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
6760 2003-02-28  Werner LEMBERG  <wl@gnu.org>
6762         * font/devdvi/generate/ec.map: Add some more Unicode entities.
6763         * font/devdvi/*EC: Updated.
6765         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
6766         * tmac/latin1 (latin1-tr): Undo any previous mapping.
6767         * tmac/troffrc: Load `composite.tmac'.
6768         * tmac/Makefile.sub (NORMALFILES): Updated.
6770         * doc/groff.texinfo (Input Encodings): New section.
6771         * NEWS: Updated.
6773 2003-02-27  Werner LEMBERG  <wl@gnu.org>
6775         * doc/texinfo.tex: New version 2003-02-11.06.
6777         * tmac/doc-common (Dt): Don't emit warning for unknown section.
6778         * tmac/groff_mdoc.man: Fix description of `Dt'.
6780 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
6782         * font/devps/prologue.ps: Fix for included Postscript that does
6783         a setpagedevice -- which is now safely ignored.
6785         * NEWS: Updated.
6787         * src/devices/grops/ps.cc: Now sets the page size in the generated
6788         document.  This is done in two ways: Via a %%-comment for gv and
6789         the like, and via a PageSize and setpagedevice for programs that
6790         understands Postscript proper, like ps2pdf.
6792         * src/devices/grops/ps.h: New broken-flag to avoid page size
6793         definition, if required.
6795         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
6797         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
6798         Not really necessary due to the fix in prologue.ps, but cleaner:
6799         Such information does not belong in an .eps file.
6801         * doc/Makefile.sub: See doc/Makefile.in.
6803 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
6805         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
6806         instead of P1 since the latter is broken in some versions of netpbm.
6807         * configure: Updated.
6809 2003-02-26  Larry Kollar  <kollar@alltel.net>
6811         Make man pages more customizable.
6813         * tmac/an-old.tmac (FT): New register holding footer distance from
6814         bottom.
6815         (HF): New string holding the default heading font.
6816         (TH): Handle registers `IN' and `SN' set on the command line.
6817         Use `FT'.
6818         (PT, BT): New strings to customize header and footer lines.
6819         (an-header, an-footer): Use them.
6820         (SH, SS): Use `HF'.
6821         * tmac/groff_man.man: Document changes.
6823         * doc/groff.texinfo: Document man changes.
6824         Document Ultrix extensions of man.
6826 2003-02-26  Werner LEMBERG  <wl@gnu.org>
6828         * src/roff/troff/input.cc (do_width, do_if_request): Reset
6829         `have_input' after changing back to old environment.
6831         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
6832         function up to be defined before first call.  This is necessary to
6833         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
6835         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
6836         the default font directory also.  Based on a patch from James
6837         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
6838         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
6839         * src/utils/afmtodit/afmtodit.man: Document it.
6841         * NEWS: Updated.
6843         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
6845 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
6847         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
6848         (GROFF_PNMTOPS_NOSETPAGE): New macro.
6849         * configure.ac: Use it.
6850         * configure: Regenerated.
6851         * Makefile.in: Updated.
6853         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
6854         (CLEANADD): Add www.tmac-sed.
6855         (pnmtops_nosetpage): Define default.
6856         (install_data): Handle www.tmac-sed and substitute
6857         @PNMTOPS_NOSETPAGE@.
6858         (stamp-sed): Add www.tmac.
6859         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
6860         It now breaks URLs at suitable places.
6861         (www:substring_ok): New register set by...
6862         (www:@test_substring): New macro.
6863         (www:error): New alias to www-error.
6864         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
6865         New macros.
6866         (URL): Use www:url_breaks.
6867         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
6868         (CDS, CDE): New macros.
6870 2003-02-25  Werner LEMBERG  <wl@gnu.org>
6872         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
6873         buffer overflow.
6875 2003-02-24  Werner LEMBERG  <wl@gnu.org>
6877         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
6878         can be negative also.
6880         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
6881         `int16'.
6882         (read_char_table): Avoid negative ascenders.
6883         (output_charset): Add cast.
6884         * font/devlj4/*: Regenerated.
6886         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
6887         possible.
6889         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
6890         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
6891         of `<>'.
6892         * font/devdvi/*: Regenerated.
6894         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
6895         normal width, while the previously used characters (U+2329 and
6896         U+232A) are classified as wide due to canonical equivalence with the
6897         CJK punctuation characters U+3008 and U+3009.
6899         * font/devutf8/R.proto: Updated.
6900         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
6902         * man/groff_char.man: Simplify handling of table traps by
6903         introducing `start block' and `end block' macros.
6904         (Ns, Ne, 2s, 2e, Ds, De): New macros.
6905         (DL): Make it work with Unix troff also.
6906         Fix code values of `la' and `ra'.
6908         * tmac/dvi.tmac: Define `<>' for CW and CWI.
6910 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
6912         * src/devices/grohtml/post-html.cc (element_list::~element_list):
6913         New destructor, fixing a major memory leak.
6915 2003-02-22  Werner LEMBERG  <wl@gnu.org>
6917         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
6918         to be in conformance with Unicode 3.0 and newer.
6920         * font/devlj4/generate/text.map: Add `Eu'.
6921         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
6922         * font/devlj4/S: Regenerated.
6924         * man/groff_char.man: Completely rewritten.
6926         * doc/groff.texinfo: Fix description of request and macro arguments.
6928 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
6930         Valgrind fixes.
6932         * src/devices/grohtml/html-table.cc (html_table::~html_table):
6933         Deallocate `columns' list.
6934         * src/devices/grohtml/post-html.cc (char_block::~char_block):
6935         New destructor.
6936         (text_glob::text_glob_html, text_glob::text_glob_special,
6937         text_glob::text_glob_line, text_glob::text_glob_auto_image,
6938         text_glob::text_glob_tag): Avoid memory leaks.
6939         (text_glob::remember_table): Free memory before reassigning.
6941 2003-02-19  Werner LEMBERG  <wl@gnu.org>
6943         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
6944         alias `hbar'), the Planck constant over two pi.
6946         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
6947         `+e' for position 34.
6948         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
6949         `u2662' and `u2661'.
6950         * font/devdvi/{MI,S}: Regenerated.
6951         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
6952         * font/devlbp/*: Add `hbar' alias.
6953         * font/devlj4/generate/special.map: Ditto.
6954         * font/devlj4/S: Regenerated.
6955         * font/devps/generate/symbolchars: Add `+e'.
6956         * font/devps/generate/textmap: Fix PS name for `-h'.
6957         Add `hbar' alias.
6958         * font/devps/symbolmap: Regenerated.
6960         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
6962         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
6963         `-h', `hbar'.
6964         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
6965         `-h'.
6967         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
6968         `hbar'.
6969         * tmac/tty-char.tmac: Add `+e'.
6971 2003-02-17  Werner LEMBERG  <wl@gnu.org>
6973         Another round trying to really fix problems with `have_input'.
6975         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
6976         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
6978         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
6979         handling if both foreground and background colors are default.
6981         * doc/groff.texinfo (Debugging): Document .lf differences to
6982         AT&T troff.
6984 2003-02-16  Werner LEMBERG  <wl@gnu.org>
6986         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
6987         null-bytes in created string.
6989         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
6990         alias_macro, lookup_request): Improve warning messages.
6992         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
6993         not `strdup'.
6994         Free `last_image_filename'.
6996         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
6997         `buffer'.
6998         (imageList::createPage, imageList::createImage): Use `free', not
6999         `a_delete'.
7000         (imageItem::~imageItem): Free `imageName'.
7001         (addRegDef): Use `strsave', not `strdup'.
7002         (get_resolution): Free `pathp'.
7004 2003-02-15  Werner LEMBERG  <wl@gnu.org>
7006         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
7007         to `dummy'.
7009 2003-02-14  Werner LEMBERG  <wl@gnu.org>
7011         Add memory management for colors to deallocate unnamed colors
7012         properly.
7014         * src/include/color.h (color): New members `free_list' and `next'.
7015         New member functions `new' and `delete'.
7016         Add destructor.
7017         * src/libs/libgroff/color.cc: Implement it.
7019         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
7020         for array size of new operator.
7022         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
7023         redundant comparison.
7025         * src/roff/troff/input.cc (word_space_node::reread,
7026         hmotion_node::reread): Avoid warning about unused parameter.
7027         (reset_output_registers): Remove redundant parameter.
7028         (define_color): Undo change 2003-02-12.
7030         * src/roff/troff/reg.h: Updated.
7032         * src/roff/troff/node.cc (troff_output_file::really_print_line,
7033         output_file::put_filename, real_output_file::really_put_filename,
7034         ascii_output_file::really_print_line,
7035         break_char_node::get_hyphen_list): Avoid warning about unused
7036         parameter.
7037         (suppress_node::tprint): Updated.
7039         * configure.ac: Check declaration for rand() and srand().
7040         * configure: Regenerated.
7042         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
7043         conditionally.
7044         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
7045         and srand().
7047         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
7048         to avoid compiler warnings.
7050         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
7051         unused.
7053         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
7054         is unused.
7055         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
7056         (unused) parameter.
7057         Updated all callers.
7059         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
7060         is unused.
7061         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
7062         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
7064         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
7065         Parameter is unused.
7066         (html_printer::add_table_end): Define parameter conditionally.
7067         * src/devices/grohtml/output.cc (simple_output::special): Parameter
7068         is unused.
7070         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
7071         (lbp_printer::set_char): Last parameter is unused.
7073         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
7075 2003-02-13  Werner LEMBERG  <wl@gnu.org>
7077         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
7078         Make \D'f ...' move horizontally again for backwards compatibility.
7079         Replace it with \D'Fg ...' where appropriate to avoid dependency
7080         on horizontal resolution.
7082         * src/roff/troff/input.cc (do_get_long_name): New function.
7083         (get_long_name): Call it.
7085         (read_draw_node): Handle `\D'Fx ...' by calling ...
7086         (read_color_draw_node): New function.
7088         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
7089         `end'.
7090         Pass it to `do_get_long_name' which is used instead of
7091         `get_long_name'.
7093         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
7094         unnecessary value guard.
7095         (parse_D_command) <'f'>: Add horizontal shift.
7097         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
7098         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7099         (FILL_MAX): Removed.
7101         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7102         Updated.
7104 2003-02-12  Werner LEMBERG  <wl@gnu.org>
7106         * src/roff/troff/input.cc (do_name_test, do_expr_test,
7107         do_zero_width): Push `\n' if closing delimiter is missing.
7109         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
7110         <'F'>: Make \F non-transparent at the beginning of line.
7111         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
7112         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
7113         `have_input'.
7115         (define_color): Free color in case of reassignment.
7117         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
7118         @DefescListEnd): Use @Var, not @var.
7119         Fix all calls.
7121         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
7123         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
7124         `shaded' and `outlined' arrays.
7125         (object_spec::object_spec): Initialize `shaded' and `outlined'.
7126         (graphic_object::set_fill_color, graphic_object::set_outline_color):
7127         Use strsave.
7128         (closed_object::set_fill_color): Ditto.
7129         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
7130         instead of strdup.
7131         (troff_output::reset_color): Use a_delete instead of free.
7132         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
7134 2003-02-11  Werner LEMBERG  <wl@gnu.org>
7136         * doc/groff.texinfo: Improve documentation of `ad'.
7137         Document that \D'f...' is dependent on the horizontal resolution.
7138         * man/groff_diff.man: Improve documentation of \D'f...'.
7140         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
7141         compensating \h'...' for \D'f ...' since the latter no longer moves
7142         current position.
7143         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7145 2003-02-10  Werner LEMBERG  <wl@gnu.org>
7147         Improve error messages for `x F' (and `F') commands.
7149         * src/include/error.h: Add declaration for
7150         `current_source_filename'.
7151         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
7152         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
7153         parameter for source file string.
7154         Updated all callers.
7156         * src/libs/libdriver/input.cc: Add `current_source_filename'.
7157         (remember_source_filename): New function.
7158         (parse_x_command <'F'>, do_file <'F'>): Use it.
7160 2003-02-09  Werner LEMBERG  <wl@gnu.org>
7162         Make grotty not emit warnings about unknown colors more than
7163         necessary.
7165         * src/devices/grotty/tty.cc: Include `ptable.h'.
7166         (TTY_MAX_COLORS): Removed.
7167         (DEFAULT_COLOR_IDX): Defined to -1.
7168         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
7169         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
7170         Change `tty_colors' to be a ptable.
7171         First arg of `put_color' is now `char'.
7172         New functions `make_rgb_string' and `tty_color'.
7173         (tty_printer::tty_printer): Use `tty_color'.
7174         (tty_printer::color_to_idx): Return value is now `char'.
7175         Use `tty_color'.
7177         * src/include/color.h (color): Add `print_color' member function.
7178         * src/libs/libgroff/color.cc (color::print_color): Implement it.
7180 2003-02-08  Werner LEMBERG  <wl@gnu.org>
7182         Valgrind fixes.
7184         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
7185         encoding file.
7187         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
7188         assume that value has been allocated with `new[]', thus use
7189         `a_delete' for deallocation.
7191         * src/libs/libdriver/input.cc (get_integer_arg,
7192         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
7193         where appropriate.
7195         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
7196         * src/libs/libgroff/nametoindex.cc
7197         (character_indexer::named_char_index): Use `new <type>[1]'.
7199         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
7200         <type>[1]'.
7201         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
7202         (split_text): Use `a_delete'.
7204         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
7205         <type>[1]'.
7207         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
7208         harmless memory leak.
7209         (hyphen_trie::read_patterns_file): Initialize `buf'.
7210         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
7211         Initialize `current_fill_color'and `current_glyph_color'.
7212         * src/roff/troff/glyphuni.cc
7213         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
7214         * src/roff/troff/uniuni.cc
7215         (unicode_decompose_init::unicode_decompose_init): Ditto.
7216         * src/roff/troff/uniglyph.cc
7217         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
7219 2003-01-26  Werner LEMBERG  <wl@gnu.org>
7221         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
7222         `access' before calling `unlink'.
7223         (do_file): Handle __EMX__.
7225         * src/include/nonposix.h: Handle __EMX__.
7227         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
7228         (fontpath,tmacpath): Use it.
7229         (MDEFINES): Add it.
7230         Sorted alphabetically.
7232         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
7233         @SEP@.
7234         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
7235         @SEP@.
7237 2003-01-27  Werner LEMBERG  <wl@gnu.org>
7239         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
7240         New files, copied from gnulib.
7241         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
7242         * configure.ac: Updated.
7243         * configure: Regenerated.
7245         * src/include/config.hin: Regenerated.
7246         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
7247         Don't define `strcasecmp' as `strcmp'.
7248         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
7249         Dont define `strncasecmp' as `strncmp'.
7251         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
7252         Removed.
7254 2003-01-26  Werner LEMBERG  <wl@gnu.org>
7256         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
7257         s/unline/unlink/.
7259 2003-01-25  Werner LEMBERG  <wl@gnu.org>
7261         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
7263 2003-01-24  Werner LEMBERG  <wl@gnu.org>
7265         Add US-english hyphenation exceptions (converted from Barbara
7266         Beeton's hyphenation exception log reports which appear irregularly
7267         in TUGBoat).
7269         * tmac/hyphen.us: Updated to latest version.
7270         * tmac/README: Updated.
7271         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
7272         * tmac/troffrc: Load `hyphenex.us'.
7273         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
7274         * doc/groff.texinfo: Updated.
7276 2003-01-23  Werner LEMBERG  <wl@gnu.org>
7278         Improve hyphenation slightly.  This is a first step in redesigning
7279         the hyphenation algorithm to make it more flexible (e.g. allowing
7280         kerns and ligatures between the hyphenation character and the
7281         following character -- while not used normally in English, other
7282         languages like German would benefit).
7284         * src/roff/troff/env.cc (environment::hyphenate_line): Use
7285         assertion instead of if-clause.
7286         Let `get_hyphen_list' return the number of involved characters in
7287         the hyphenation pattern instead of computing it directly (which
7288         often yields too small values).
7289         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
7290         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
7291         parameter.
7293 2003-01-22  Werner LEMBERG  <wl@gnu.org>
7295         Fixing a bug which caused groff to hang if the hyphenation exception
7296         dictionary tried to grow.
7298         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
7299         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
7300         pointer to dictionary.
7302 2003-01-20  Werner LEMBERG  <wl@gnu.org>
7304         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
7305         negative left italic correction.
7306         * src/utils/afmtodit/afmtodit.man: Document it.
7308         * font/devps/generate/Makefile (RFLAG): Add `-m'.
7309         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
7310         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
7312         * NEWS: Updated.
7314 2003-01-16  Werner LEMBERG  <wl@gnu.org>
7316         * NEWS: Updated.
7318 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
7320         * src/preproc/refer/refer.man: Mention REFER environment variable.
7322 2003-01-05  Werner LEMBERG  <wl@gnu.org>
7324         Similar to \[is], the square root glyph (\[sr]) and the square root
7325         extension glyph (\[radicalex]) are now text symbols.  The new
7326         mathematical versions are called \[sqrt] and \[sqrtex],
7327         respectively.
7329         * font/devX*/S: Regenerated.
7330         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
7331         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
7332         * font/devdvi/EX, font/devdvi/S: Regenerated.
7333         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
7334         * font/devlj4/generate/special.map: Add `sqrt'.
7335         * font/devlj4/S: Regenerated.
7336         * font/devps/generate/textmap: Add `sqrt'.
7337         * font/devps/S, font/devps/symbolmap: Regenerated.
7339         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
7340         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
7341         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
7342         overlap horizontally.
7344         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
7345         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
7346         Fix `radicalex'.
7348         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
7349         and `sqrtex' are overlapping glyphs.
7351 2003-01-04  Werner LEMBERG  <wl@gnu.org>
7353         * font/devdvi/generate/texsy.map: Add `is'.
7354         * font/devps/symbolmap: Regenerated.
7355         * font/devdvi/*TC, MI, S: Regenerated.
7357         * tmac/dvi.tmac: Remove `is'.
7359 2003-01-03  Werner LEMBERG  <wl@gnu.org>
7361         `is' is now a text symbol (only relevant for dvi).  The math variant
7362         can be accessed with `integral'.
7364         * font/devX*/S: Regenerated.
7365         * font/devdvi/generate/texex.map: Remove `is'.
7366         * font/devdvi/EX: Updated.
7367         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
7368         * font/devlj4/generate/special.map: Ditto.
7369         * font/devlj4/S: Regenerated.
7370         * font/devps/generate/textmap: Add `integral'.
7371         * font/devps/S: Regenerated.
7373         * tmac/dvi.tmac: Define `is'.
7375         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
7377         * src/preproc/tbl/main.cc (process_format): Fix error message.
7379 2003-01-02  Werner LEMBERG  <wl@gnu.org>
7381         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
7382         * font/devps/textmap: Fix entries for `ne' and `nc'.
7383         * font/devps/symbolmap: Regenerated.
7385         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
7386         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
7387         `38', `58', `78', `-+', `|=', `nc', `ne'.
7389         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
7390         Use `schar' for `aq'.
7391         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
7392         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
7393         * tmac/tty.tmac: Add `ne'.
7395         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
7396         for fallback glyphs.
7398 2002-12-29  Werner LEMBERG  <wl@gnu.org>
7400         Add glyph `|='.
7402         * font/devX*/*: Regenerated.
7403         * font/devdvi/generate/ec.map: Remove `eq'.
7404         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
7405         Assign `|=' to position 39.
7406         * font/devdvi/*EC, S: Regenerated.
7407         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
7408         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
7409         Assign `|=' to position 549.
7410         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
7411         `equalmath'.
7412         Add `uni2243' for `|='.
7414         * tmac/ec.tmac: Add `eq'.
7415         * tmac/dvi.tmac: Add `=~'.
7416         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
7417         `|='.
7419 2002-12-21  Werner LEMBERG  <wl@gnu.org>
7421         * font/devdvi/generate/tc.map: Remove `**'.
7422         * font/devdvi/*TC: Regenerated.
7423         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
7424         `78', `<<', `>>'.
7425         * font/devutf8/NOTES: Updated.
7427         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
7428         Don't give default parameter to `set_macro'.
7429         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
7430         instead of `set_macro'.
7431         (charinfo::setx_macro): Implement it.
7432         (charinfo::set_macro): Don't change `mode'.
7434         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
7435         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
7436         * tmac/dvi.tmac: Define `!=' with `.schar'.
7438 2002-12-20  Werner LEMBERG  <wl@gnu.org>
7440         * font/devX*/S: Regenerated.
7441         * font/devdvi/generate/ec.map: Remove `pl'.
7442         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7443         * font/devdvi/*{TC,EC}: Regenerated.
7444         * font/devhtml/R.proto: Add `-+'.
7445         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7446         * font/devlbp/*: Remove `or'.
7447         * font/devlj4/generate/special.map: Remove `or'.
7448         * font/devlj4/S: Regenerated.
7449         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7450         `seveneighths', `threeeighths'.
7451         Remove `plusmath'.
7452         Replace `minusplus' with `uni2213'.
7453         * font/devps/symbolmap: Regenerated.
7454         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7455         Add `-+'.
7457         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7458         function.
7459         * src/roff/troff/node.cc (troff_output_file::put_char_width):
7460         Call glyph_color and fill_color even if tcommand_flag isn't set.
7461         (make_node, node::add_char): Check not ci->is_fallback but
7462         ci->is_normal.
7464         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7465         * tmac/ec.tmac: Add .rchar entry for `f/'.
7466         Don't remove `12', `14', `34'.
7467         Define `pl' to be always roman.
7468         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7469         Define `18', `38', `58', `78'.
7470         * tmac/tty.tmac: Add `-+'.
7471         * tmac/dvi.tmac: Define `f/'.
7472         (dvi-frac): Use `f/'.
7473         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7474         Define `18', `38', `58', `78'.
7476 2002-12-15  Colin Watson  <cjwatson@debian.org>
7478         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7480 2002-12-10  Werner LEMBERG  <wl@gnu.org>
7482         Add glyph `tno', a textual variant of `no'.
7484         * font/devX*/*: Regenerated.
7485         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7486         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7487         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7488         * font/devdvi/*: Regenerated.
7489         * font/devlbp/*: Add `tno'.
7490         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7491         * font/devlj4/*: Regenerated.
7492         * font/devps/generate/textmap: Replace `no' with `tno'.
7493         * font/devps/generate/symbolchars: Add `no'.
7494         * font/devps/*: Regenerated.
7496         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7498         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7499         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7501         * NEWS: Updated.
7503         * tmac/dvi.tmac: Replace most `\\' with `\E'.
7504         Add definition for `sd'.
7505         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7507         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7509 2002-12-08  Werner LEMBERG  <wl@gnu.org>
7511         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7512         mode to avoid rounding errors.
7513         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7515         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7516         src/roff/troff/troff.man: Improve documentation of -T.
7518 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
7520         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7521         (run_pipeline) [_WIN32]: Provide working function without `fork'.
7523 2002-12-06  Werner LEMBERG  <wl@gnu.org>
7525         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7526         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7527         Scaling Euro.sansserif glyphs down to have the same height as
7528         digits.
7529         Removed unnecessary points; added some extrema.
7531         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7532         Regenerated.
7534 2002-12-04  Werner LEMBERG  <wl@gnu.org>
7536         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7537         and `Euro.symbol.bold.slanted'.
7538         Improve some glyph offsets and widths.
7539         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7540         Regenerated.
7541         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7542         typo.
7543         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7544         direcory.
7546         * tmac/europs.tmac: Updated to new glyph indices.
7547         Use Euro.symbol for font familiy `A'.
7549         * doc/groff.texinfo: Minor improvements.
7551 2002-12-02  Werner LEMBERG  <wl@gnu.org>
7553         * font/devdvi/generate.tc.map: s/%O/%0/.
7554         * font/devdvi/*TC: Regenerated.
7556         * src/roff/troff/div.cc (init_div_requests): Sorted.
7558         * tmac/dvi.tmac: Remove `Ye'.
7559         * tmac/ec.tmac: Remove `Ye'.
7560         Add .rchar entry for `de'.
7562         * man/groff.man, man/groff_diff.man: Document register `.pe'.
7563         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7564         * NEWS: Updated.
7566 2002-11-30  Werner LEMBERG  <wl@gnu.org>
7568         Add PS font for various Euro glyphs.
7570         * font/devps/generate/freeeuro.sfd: New master font file for
7571         pfaedit.
7572         * font/devps/generate/sfdtopfa.pe: New conversion script for
7573         pfaedit.
7574         * font/devps/generate/Makefile (FONTS): Add `EURO'.
7575         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7576         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7577         `freeeuro.sfd'.
7578         * font/devps/EURO: Generated from `freeeuro.afm'.
7579         * font/devps/download: Add `freeuro.pfa'.
7580         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7581         `freeeuro.pfa'.
7583         * tmac/europs.tmac: New file.
7584         * tmac/ps.tmac: Include `europs.tmac'.
7585         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7587 2002-11-29  Werner LEMBERG  <wl@gnu.org>
7589         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7590         * font/devdvi/S: Regenerated.
7591         * font/devhtml/R.proto: Fix `CR' and `ci'.
7592         Add `OK'.
7593         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7594         Remove `bs'.
7595         * font/devps/symbolmap: Regenerated.
7596         * font/devutf8/R.proto: Fix `CR' and `ci'.
7597         Add `OK'.
7598         * font/devutf8/NOTES: Updated.
7600         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7601         `ci'.
7602         Add `OK'.
7603         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7605         * tmac/dvi.tmac: Add `lh' and `rh'.
7606         * tmac/Xps.tmac: Fix `lh' and `rh'.
7607         * tmac/X.tmac: Add `OK'.
7608         * tmac/lj4.tmac: Ditto.
7610 2002-11-24  Werner LEMBERG  <wl@gnu.org>
7612         * font/devX*/S: Regenerated.
7613         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7614         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7615         * font/devdvi/generate/texsy.map: Remove `or' glyph.
7616         * font/devdvi/S: Regenerated.
7617         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7618         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7619         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7620         `bracketleftbt', `bracketrighttp', `bracketrightex',
7621         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7622         `braceex', `braceleftex', `bracerightex', `bracerighttp',
7623         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7624         `rb', and `bv'.
7625         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7626         * font/devutf8/NOTES: Updated.
7627         * font/devlj4/generate/special.map: Add glyph `braceex'.
7628         * font/devlj4/S: Regenerated.
7630         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7632 2002-11-14  Werner LEMBERG  <wl@gnu.org>
7634         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7635         and `vA'.
7636         Fix code for `an'.
7637         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7639         * doc/texinfo.tex: New version from texinfo 4.3.
7640         * doc/groff.texinfo: Updated for texinfo 4.3.
7641         Use @tie{} where appropriate.
7642         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7643         * font/devdvi/generate/tc.map: Remove `rn'.
7644         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7645         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7646         Fix code for `an'.
7647         * font/devX100/*, font/devX100-12/*, font/devX75/*,
7648         font/devX75-12/*: Regenerated.
7650         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7651         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7652         Improve definition of `an'.
7653         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7654         `ru'.
7655         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7656         * tmac/X.tmac: Add definition for `or'.
7657         * tmac/Xps.tmac: Undo change 2002-11-05.
7658         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7660 2002-11-11  Werner LEMBERG  <wl@gnu.org>
7662         * src/roff/troff/node.cc (troff_output_file::put_char): Always
7663         call flush_tbuf.
7665 2002-11-10  Werner LEMBERG  <wl@gnu.org>
7667         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
7668         defines a glyph which is searched after the check for fonts declared
7669         with `.special' (and before the check for all mounted special
7670         fonts).  `fschar' defines a glyph for a particular font which is
7671         searched after the check for fonts declared with `.fspecial' (and
7672         before the check for fonts declared with `.special').  `rfschar'
7673         removes glyphs defined with `fschar'.
7675         * src/roff/troff/token.h (char_mode): New enum.
7676         Declare do_define_character.
7677         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7678         `mode'.
7679         (charinfo::is_fallback): Updated.
7680         (charinfo::is_special): New method.
7681         * src/roff/troff/input.cc (do_define_character): Add and use
7682         optional second parameter used as a prefix for font-specific glyph
7683         names.
7684         (define_character, define_fallback_character): Updated.
7685         (define_special_character): New function.
7686         (init_input_requests): Add `schar'.
7687         (charinfo::charinfo, charinfo::set_macro): Updated.
7688         * src/roff/troff/node.cc: Include `stringclass.h'.
7689         (make_glyph_node): Handle special glyphs defined with `.schar' and
7690         `.fschar'.
7691         (define_font_special_character, remove_font_special_character): New
7692         functions.
7693         (init_node_requests): Sorted.
7694         Add `fschar' and `rfschar'.
7695         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7696         Document new requests.
7698         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7699         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7701 2002-11-08  Werner LEMBERG  <wl@gnu.org>
7703         Added new font `SC' (cmtex10) to devdvi.
7705         * devdvi/generate/Makefile (FONTS): Add `SC'.
7706         (SC): New rule.
7707         * devdvi/generate/textex.map: New map file for cmtex.
7708         * devdvi/SC: New.
7709         * devdvi/Makefile.sub (DEVFILES): Updated.
7710         * tmac/dvi.tmac: Add fspecial entries for SC.
7711         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
7712         found before `S' since the font position of `SC' is lower due to the
7713         gaps in DESC's `font' line.
7714         * tmac/ec.tmac: Add a `special' call.
7715         * NEWS: Updated.
7717         * font/devhtml/R.proto: Remove double entry for `ti'.
7718         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7719         * tmac/tty-char.tmac: Remove entry for `bq'.
7720         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7721         * tmac/ec.tmac: Don't remove `aq' glyph.
7722         * tmac/X.tmac: Fix entry for `em'.
7723         Add entries for `fo' and `fc'.
7724         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7726         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7727         documentation of `special' and `fspecial' requests.
7729 2002-11-05  Werner LEMBERG  <wl@gnu.org>
7731         * font/devascii/R.proto, font/devcp1047/R.proto,
7732         font/devlatin1/R.proto: Remove entry for `.i'.
7733         * font/devdvi/generate/textt.map: Add entry for `ad'.
7734         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7735         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7736         We need this for getting kerning values to compose `/l' and `/L'.
7737         * font/devdvi: Regenerated font definition files for CM fonts.
7738         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7739         * font/devutf8/R.proto: Ditto.
7740         Remove double entry for `ti'.
7742         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
7743         for (groff) ligatures, `la', and `ra'.
7744         Add "'C", "'c", `IJ', and `ij'.
7745         Remove double entry for `ti'.
7746         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
7747         double entries.
7748         Add "'C", "'c", `IJ', and `ij'.
7749         Fix entries for (groff) ligatures, `la', and `ra'.
7751         * tmac/ps.tmac (ps-achar): New macro.
7752         Define "'c" and "'C".
7753         * tmac/tty.tmac: Add entry for `.i'.
7754         * tmac/X.tmac (X-achar): New macro.
7755         Define "'c", "'C", and `:Y'.
7756         Add entries for `IJ' and `ij'.
7757         * tmac/Xps.tmac (Xps-achar): New macro.
7758         Define "'c" and "'C".
7759         Add entries for `IJ' and `ij'.
7760         * tmac/lbp.tmac (lbp-achar): New macro.
7761         Add fallback characters for all groff ligatures and many other
7762         glyphs.
7763         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
7764         Add entries for `/l' and `/L'.
7765         Define "'c" and "'C".
7766         Add entries for `IJ' and `ij'.
7768 2002-11-02  Larry Kollar  <kollar@alltel.net>
7770         * PROBLEMS: Document how to solve Mac OS X compilation problems.
7772 2002-11-02  Werner LEMBERG  <wl@gnu.org>
7774         Adding support for composite glyphs: \[xxx yyy ...] and the
7775         `composite' request.
7777         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
7778         to Unicode-based glyph names.
7779         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
7780         glyph names to groff glyph names.
7781         * src/roff/troff/uniuni.cc: New file for canonically decomposing
7782         Unicode-based glyph names.
7783         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
7784         for handling Unicode glyph names.
7785         * src/roff/troff/input.cc: Include unicode.h.
7786         (composite_glyph_name): New function.
7787         (token::next) <'['>: Handle Unicode glyph names and composite
7788         glyphs.
7789         (composite_dictionary): New dictionary for the `composite' request.
7790         (composite_request): Implement `composite' request.
7791         (init_input_requests): Add `composite'.
7792         Alphabetically sorted.
7793         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
7794         commented out).
7795         (init_env_requests): Alphabetically sorted.
7796         Removed `tas' and `tar' (already commented out).
7797         * src/roff/troff/Makefile.sub: Updated.
7799 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
7801         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
7802         of options.
7804 2002-10-29  Werner LEMBERG  <wl@gnu.org>
7806         Fix computation of .trunc register.  Additionally, its value (and
7807         the value of the .ne register) is now always set before entering the
7808         trap.
7810         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
7811         `needed_space' before calling `space'.
7812         (top_level_diversion::space): Remove special code for 'sp before the
7813         first page.
7814         Call `begin_page' with the discarded space as a parameter.
7815         (top_level_diversion::begin_page): Add optional parameter to set
7816         `truncated_space'.
7817         * src/roff/troff/div.h: Updated.
7819         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
7820         \n[.ne].
7822         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
7823         (LP): Remove superfluous call to `br'.
7824         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
7825         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7827 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7829         * tmac/doc-ditroff: Remove useless switch/variable -rC.
7830         (doc-setup-header): Don't set page register `%'.
7831         * tmac/doc-nroff: Remove variable `C'.
7832         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
7833         (doc-setup-header): Don't set page register `%'.
7834         Don't call `bp'.
7835         * tmac/doc-common (doc-header): Call `ns'.
7836         (doc-paragraph): Protect .sp with .br so that it survives traps
7837         possibly set by the user.
7838         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7840         * tmac/doc*: Replace ' with . for consistency if no effect.
7842 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7844         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
7845         so that it survives traps possibly set by the user.
7847         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
7848         (troff_output_file::set_font): Call flush_tbuf if necessary.
7849         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
7850         flush_tbuf and do_motion only if necessary.
7851         (troff_output_file::start_special,
7852         troff_output_file::put_char_width, troff_output_file::put_char,
7853         troff_output_file::draw): Updated.
7854         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7855         vmotion_node::tprint): Undo change 2002-10-23.
7857 2002-10-25  Werner LEMBERG  <wl@gnu.org>
7859         * tmac/www.tmac (DC): Fix case of overlapping images.
7861 2002-10-23  Werner LEMBERG  <wl@gnu.org>
7863         * src/roff/troff/node.cc (troff_output_file::fill_color,
7864         troff_output_file::glyph_color): Set current color before testing
7865         color_flag.
7866         (troff_output_file::put_char_width, troff_output_file::put_char,
7867         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
7868         before glyph_color.
7869         (troff_output_file::file_color, troff_output_file::glyph_color):
7870         Call do_motion.
7871         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7872         vmotion_node::tprint): Move first, then call fill_color.
7874 2002-10-20  Werner LEMBERG  <wl@gnu.org>
7876         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
7877         possible to use multiple main macro packages.
7879 2002-10-19  Werner LEMBERG  <wl@gnu.org>
7881         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
7882         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
7883         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
7884         is set.
7885         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
7886         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
7888 2002-10-16  Werner LEMBERG  <wl@gnu.org>
7890         * NEWS, doc/webpage.ms: Updated.
7892 2002-10-14  Werner LEMBERG  <wl@gnu.org>
7894         * src/roff/troff/node.cc (troff_output_file::put_char_width,
7895         troff_output_file::put_char, troff_output_file::fill_color,
7896         troff_output_file::glyph_color): Handle case where color pointer
7897         is null.
7899 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
7901         Add the new -r option to grotty.  It is similar to the -i option
7902         except it tells grotty(1) to use the `reverse video' attribute to
7903         render italic fonts.
7905         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
7906         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
7907         (tty_printer::make_underline, tty_printer::put_color,
7908         tty_printer::end_page): Use it.
7909         (main): Add -r switch.
7910         (usage): Updated.
7911         * src/devices/grotty/grotty.man: Document it.
7913 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
7915         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
7916         cast to `unsigned char' to properly read patterns with 8bit
7917         characters.
7919 2002-10-08  Werner LEMBERG  <wl@gnu.org>
7921         * REVISION: Increased to 2.
7923 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008
7924   Free Software Foundation, Inc.
7926 Copying and distribution of this file, with or without modification,
7927 are permitted in any medium without royalty provided the copyright
7928 notice and this notice are preserved.
7930 Local Variables:
7931 version-control: never
7932 coding: latin-1
7933 End: