* contrib/chem/Makefile.sub (README, examples/README): In makefiles,
[s-roff.git] / ChangeLog
blobc90f5628a3c5d2af32048309a507d8e62a204a06
1 2008-05-02  Larry Jones  <lawrence.jones@siemens.com>
3         * contrib/chem/Makefile.sub (README, examples/README): In makefiles,
4         the `$<' macro is only guaranteed to be defined in inference rules,
5         not in explicit target rules.  Since there is only one input file in
6         the places where it is used, the `$?' macro (which is guaranteed to be
7         defined for both kinds of rules) is a suitable replacement.
9         * hdtbl/examples/fonts_n.in, hdtbl/examples/fonts_n.in: Most
10         versions of ls don't have a `--color' option.
12 2008-04-30  Larry Jones  <lawrence.jones@siemens.com>
14         * Makefile.comm (depend.temp): Add `EXTRA_CCFLAGS'.
16 2008-04-29  Larry Jones  <lawrence.jones@siemens.com>
18         * src/eqn/script.cpp (script_box::output): Portability fix.
20 2008-04-05  Dorai Sitaram  <ds26gte@yahoo.com>
22         Add better support for `.TAG #<label>' in non-HTML documents: In
23         case of a forward reference in a call to .URL, write `(see below)'. 
24         In case of a backwards reference use the page number instead.  The
25         reference gets stored in a string `TAG_<label>' and can be
26         overridden while calling `.TAG' with its new optional argument --
27         this is useful for a second-pass system which resolves forward
28         references.
30         * tmac/www.tmac (www:url_check_tag): New function.
31         (URL): Use it.
32         (TAG): Add optional argument to define string `TAG_<label>'.
34 2008-03-24  Werner LEMBERG  <wl@gnu.org>
36         * tmac/trace.tmac (so, mso): Added.
38         * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'. 
39         If used with -mtrace, and this clause was active, the macro was
40         executed twice.
42         * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality. 
43         This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML
44         devices.
45         * man/groff_tmac.man: Document it.
47 2008-02-26  Werner LEMBERG  <wl@gnu.org>
49         * src/roff/troff/input.cpp: s/safer_flag/unsafe_flag/.
50         Update all occurrences so that \n[.U] works as advertised.  Bug
51         reported by Dorai Sitaram.
53 2008-02-17  Werner LEMBERG  <wl@gnu.org>
55         * doc/groff.texinfo: Improve documentation of .cf request.
57 2008-01-19  Werner LEMBERG  <wl@gnu.org>
59         * src/preproc/html/pre-html.cpp (usage): Don't describe options but
60         mention that it should never be called stand-alone.
62         * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man,
63         man/groff_tmac.man, man/groff_out.man, README, README.MinGW,
64         src/roff/groff/groff.man: Mention -Txhtml.
66         * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.
68 2008-01-16  Werner LEMBERG  <wl@gnu.org>
70         * src/libs/libgroff/font.cpp (font::contains, font::get_code):
71         Handle single-letter names correctly.
73         * doc/groff.texinfo, man/groff_diff.man: Extend documentation of \^
74         and \|.
75         * NEWS: Updated.
77 2008-01-15  Werner LEMBERG  <wl@gnu.org>
79         * man/groff_font.man: Revised.
81 2008-01-14  Werner LEMBERG  <wl@gnu.org>
83         * man/groff.man: Mention glyph and characters.
84         Minor other updates.
85         * man/groff_char.man: Minor updates.
86         * man/groff_diff.man: Better clarification between characters and
87         glyphs.
89 2008-01-12  Werner LEMBERG  <wl@gnu.org>
91         * doc/groff.texinfo: Fix top-level structure to make it compilable
92         again with all texinfo modes.  Reported by Jörg van den Hoff
93         <j.van_den_hoff@fzd.de>.
95 2008-01-11  Werner LEMBERG  <wl@gnu.org>
97         * doc/pic.ms: Mention that compass points of line objects are
98         arbitrarily located.
100 2008-01-06  Werner LEMBERG  <wl@gnu.org>
102         * src/roff/troff/node.cpp (left_italic_corrected_node::add_self):
103         Don't remove itself if there is no glyph associated with the node
104         yet.  This happens, for example, in this situation:
106           .ll 15000u
107           .ft I
108           x x
109           (\,f
111 2008-01-05  Werner LEMBERG  <wl@gnu.org>
113         * man/groff_char.man, man/groff.man: Revised.
115         * src/preproc/eqn/lex.cpp (troff_defs): Fix typo.
117 2008-01-04  Werner LEMBERG  <wl@gnu.org>
118         * */*: s/Osanna/Ossanna/.
120         * */*.man: Replace .URL with .UR/.UE (except in groff_www.tmac).
121         Replace .MTO with .MT/.ME (except in groff_www.tmac).
122         Insert `\:' in URLs where appropriate.
123         Don't include www.tmac (except in groff_www.tmac).
125         * man/groff.man (.ESC[]): Fix font of closing bracket.
126         (.ESCq): Fix font of closing quote character.
127         Many other improvements.
129 2007-12-30  Bernhard Fisseni  <bfi@ikp.uni-bonn.de
131         * src/devices/grohtml/post-html.cc
132         (html_printer::writeHeadMetaStyle): Fix CSS output.
134 2007-12-29  Werner LEMBERG  <wl@gnu.org>
136         * tmac/ec.tmac: Add CM fonts to the .fspecial lines; those fonts
137         contain additional glyphs (like some uppercase Greek letters).
139 2007-12-06  Werner LEMBERG  <wl@gnu.org>
141         * NEWS: Updated.
143 2007-12-06  Colin Watson  <cjwatson@debian.org>
145         * src/roff/nroff/nroff.sh: Add options -w and -W.
146         * src/roff/nroff/nroff.man: Document them.
148 2007-12-06  Karl Berry  <karl@freefriends.org>
150         * tmac/hyphenex.pl: Update header output.
152 2007-11-29  Werner LEMBERG  <wl@gnu.org>
154         * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
156 2007-11-20  Werner LEMBERG  <wl@gnu.org>
158         * doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
160 2007-11-17  Werner LEMBERG  <wl@gnu.org>
162         * src/roff/nroff/nroff.sh: Handle GROFF_TYPESETTER environment
163         variable.  Problem reported by Michael G Schwern
164         <schwern@pobox.com>.
166         * src/roff/nroff/nroff.man: Document it.
167         Other minor updates.
169 2007-11-17  Heinz-Jürgen Oertel <hj.oertel@t-online.de>
171         * src/groff/preproc/pic/lex.cpp (table): Add box attributes
172         `xslanted' and `yslanted'.
174         * src/groff/preproc/pic/object.cpp (object_spec::object_spec):
175         Initialize `xslanted' and `yslanted'.
176         (graphic_object): Add methods `set_xlanted' and `set_yslanted'.
177         (closed_object): Ditto.
178         Add members `xslanted' and `yslanted'.
179         (box_object::print): Use them.
180         (object_spec::make_object): Handle slant values.
181         * src/groff/preproc/pic/object.h (IS_XSLANTED, IS_YSLANTED): New
182         constants.
183         (object_spec): Add members `xslanted' and `yslanted'.
184         * src/groff/preproc/pic/pic.y (XSLANTED, YSLANTED): New left-valued
185         tokens.
186         Add rules for them.
187         
188         * src/groff/preproc/pic/pic.man, NEWS, doc/pic.ms: Document above
189         changes.
191 2007-11-16  Werner LEMBERG  <wl@gnu.org>
193         * tmac/hyphenex.pl: Generate copyright notice (this has been
194         approved by Barbara Beeton).
195         * tmac/hyphenex.us: Updated.
197 2007-11-10  Michail Vidiassov  <master@iaas.msu.ru>
199         * tmac/doc-syms (doc-str-St--susv3): New string.
200         * tmac/groff_mdoc.man: Document it.
202 2007-11-08  Werner LEMBERG  <wl@gnu.org>
204         * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be'
205         `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'.
206         (is_comment_line): Handle '\" and '\# also.
208         * src/preproc/preconv/preconv.man: Revise and make complete.
210 2007-10-25  Werner LEMBERG  <wl@gnu.org>
212         * tmac/cs.tmac: New file holding Czech strings, contributed by
213         Marcela Maslanova <mmaslano@redhat.com>.
214         * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files
215         for Czech, taken from CTAN.
216         * LICENSES: Updated.
217         * tmac/Makefile (NORMALFILES): Add Czech stuff.
218         * doc/groff_tmac.man: Mention cs.tmac.
220 2007-10-21  Werner LEMBERG  <wl@gnu.org>
222         * src/roff/troff/input.cpp (do_ps_file): Handle `%X' in header
223         comments correctly.  Reported by Frank Jahnke
224         <jahnke@sonatabio.com>.
226 2007-10-02  Ruslan Ermilov  <ru@FreeBSD.org>
228         * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
229         FreeBSD 5.5 and 7.0.
231         * tmac/doc-syms: Give better names for System V releases.
233 2007-09-25  Gaius Mulley  <gaius@glam.ac.uk>
235         * doc/Makefile.in, doc/Makefile.sub (.ms.html): Add -P-V switch to
236         the production of html files.
237         (pic.html): Ditto.
238         Remove background colour switch.
239         (.SUFFIXES, clean): Handle *.xhtml files.
241         * src/devices/grohtml/grohtml.man: Document that -V option now
242         generates an HTML-4.01 validator or XHTML validator.
244         * src/devices/grohtml/html-text.cpp (html_text::end_tag,
245         html_text::start_tag): Suppress <small>, <big>, and <color> tags if
246         we are inside a <pre> block.
248         * src/devices/grohtml/post-html.cpp
249         (html_printer::handle_valid_flag): Add a parameter to indicate
250         whether it needs to generate a paragraph block.
251         (html_printer::write_navigation): Updated.
252         (html_printer::do_file_components): Generate an HTML-4.01 blue
253         validator button also.
255 2007-09-23  Axel Kielhorn  <A.Kielhorn@web.de>
257         * man/groff.man: Fix URL of CSTR 54.
259 2007-09-23  Werner LEMBERG  <wl@gnu.org>
261         * man/groff_char.man: Normalize character set names as defined
262         by IANA.  Based on a patch from Axel Kielhorn.
264         * src/preproc/refer/label.y: Undo change from 2007-09-19.
266 2007-09-19  Werner LEMBERG  <wl@gnu.org>
268         * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
269         warning.
271         * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
272         Remove compiler warning.
274         * src/preproc/refer/label.y: Remove compiler warning.
276         * src/preproc/pic/pic.y: Remove doubled token entries.
278 2007-09-19  Gaius Mulley  <gaius@glam.ac.uk>
280         * doc/groff.texinfo: Document new .O register and add cross
281         reference entries.
283         * NEWS: Updated.
285         * src/devices/grohtml/grohtml.man: Document new -V and -y options.
287         * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
288         (html_table:: emit_colspan, html_table::emit_td): New methods.
289         (html_table::emit_col):  Use html_table::emit_td.
290         (html_table::emit_table_header): Use html_table::emit_colspan if
291         dialect xhtml is specified.
292         (html_table::finish_row): Updated.
294         * src/devices/grohtml/html-table.h (html_table): Declare
295         emit_colspan, emit_td.
297         * src/devices/grohtml/html-text.cpp: Modified tags to comply with
298         xhtml if this dialect was requested.
300         * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
301         (html_text): Add new variable `dialect'.
303         * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
304         compliant.
305         (valid_flag, groff_sig, dialect): New global variables. 
306         (html_printer::handle_valid_flag, html_printer::do_math,
307         html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
308         html_printer::do_math, html_printer::handle_valid_flag): New
309         methods.
310         (html_printer::emit_line, html_printer::emit_raw,
311         html_printer::do_check_center, html_printer::write_title,
312         write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
313         html_printer::begin_page): Altered to be XHTML compliant.
314         (html_printer::write_header): Updated.
315         (html_printer::troff_tag): Call do_math.
316         (html_printer::insert_split_file, html_printer::do_file_components,
317         html_printer::write_navigation): Create XHTML file components if
318         necessary and also produces a groff signature if requested.
319         (~html_printer): Call writeHeadMetaStyle at appropriate places
320         depending upon html_dialect.
321         (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
322         (main): Added options -x, -V, and -y.
323         (usage): Updated.
325         * src/preproc/eqn/box.cpp: Create a distinction between
326         the MathML device and the XHTML device.
327         (do_text): Issue a newline at the end of the equation if XHTML was
328         specified.
329         (box::top_level): Prefix the output of an equation by the .MATHML
330         macro.
331         (output_string): Suppress \n if XHTML was specified.
333         * src/preproc/eqn/main.cpp (xhtml): New global flag.
334         (inline_equation): Skip leading spaces after inline equation for
335         XHTML device.
336         (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
338         * src/preproc/eqn/eqn.h (xhtml): New external flag.
340         * src/preproc/eqn/text.cpp (entity_table): Fix typo.
342         * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
343         (dialect, eqn_flag): New global variables.
344         (html_system): Improve debugging support.
345         (alterDeviceTo): Test for -Txhtml when altering device to the image
346         device and reset to -Txhtml.
347         (addZ): Renamed to...
348         (addArg): This.
349         Introducea a general parameter.
350         (print_args): New debugging function.
351         (char_buffer::run_output_filter): Use print_args and addArg rather
352         than addZ.
353         (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
354         line parameter as an argument to the html generation of text when
355         xhtml is needed.  Include -e on the command line if mathml is
356         required.
357         (scanArguments): Allow -e, -V, -y and -x options.
358         -V, -y are handled by the back end.  -e sets `eqn_flag'.
359         -x determines HTML dialect.
361         * src/roff/groff/groff.cpp (possible_command): New method
362         `clear_name'.
363         (main):  Set eflag if -e is present on command line.
364         Set is_xhtml if -Txhtml is present.
365         Pass `-x x' to the HTML pre and post processors.
366         Pass `-e' to the HTML pre processor if required.
367         Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
369         * src/roff/troff/input.cpp (init_input_requests): Introduce new
370         number register `\n[.O]'.
372         * tmac/s.tmac: (LP): Use .nop for semantic sugar.
373         (cov*ab-init) reformat.
374         (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
375         (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
376         <cite></cite> for the html device rather than generate images for
377         footnotes.
379         * tmac/troffrc-end: Define EQN-HTML-IMAGE,
380         EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
381         EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
382         EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
384         * tmac/www.tmac: (HTML<?p>): New macro.
385         (MATH<?p>): New macro.
386         (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
387         (www-emit-ltag): New macro.
388         (www-push-li): Updated.
389         (ULS): Ensure that tags are balanced in order by use of
390         www-emit-ltag.
391         (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
392         order.
393         (OLS, OLE, DLS, DLE): Ditto.
394         <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
395         respectively.
396         (www-li-ul, www-li-ol, www-li-dl): Updated.
397         (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
398         EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
399         MATHML): New macros.
401 2007-09-17  Werner LEMBERG  <wl@gnu.org>
403         * man/groff_font.man: Document `unicode' keyword.
404         * doc/groff.texinfo (DESC File Format): Synchronize with
405         groff_font.man.
407 2007-09-15  Werner LEMBERG  <wl@nu.org>
409         * man/groff.man: Document `\_'.
410         * doc/groff.texinfo: Ditto.
411         Remove references to `\@' which isn't a valid escape sequence in
412         groff.
415         * tmac/unicode.tmac: Add ` and '.
416         * tmac/html.tmac: Load unicode.tmac.
418 2007-09-14  Werner LEMBERG  <wl@gnu.org>
420         * tmac/unicode.tmac: Make `-' a pure input character by mapping it
421         to `hy'.
423         * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
425 2007-09-11  Werner LEMBERG  <wl@gnu.org>
427         * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
428         allocation.
430         * src/preproc/tbl/table.cpp (table::allocate): Initialize
431         `blockflag' array.
433 2007-09-10  Keith Marshall  <keith.d.marshall@ntlworld.com>
435         * README.MinGW: Add warnings about use of MSYS-RXVT, and about
436         defective GnuWin32 versions of netpbm/libpng.
438 2007-07-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
440         * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
441         possible recursion.
443 2007-07-11  Werner LEMBERG  <wl@gnu.org>
445         * gendef.sh: Add shebang.
447 2007-07-05  Werner LEMBERG  <wl@gnu.org>
449         * tmac/papersize.tmac: Fix dimensions of executive paper format. 
450         Reported by John Rupley <rupley@u.arizona.edu>.
452 2007-07-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
454         * tmac/s.tmac (cov*first-page-init): Emit error message if not in
455         top-level environment.
457 2007-06-12  Werner LEMBERG  <wl@gnu.org>
459         * src/devices/xditview/TODO, NEWS: Updated.
460         * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
461         Handle `GXditview-color'.
462         * src/devices/xditview/gxditview.man: Updated.
464         * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
465         * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
466         from `gnulib' git repository.
468         * configure.ac: Updated.
469         * configure: Regenerated (using autoconf 2.61).
471         * config.guess, config.sub: Updated from `config' CVS repository.
472         * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
473         repository.
475 2007-06-12  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
477         * src/devices/xditview/GXditview.ad: Split off color definitions
478         into...
479         * src/devices/xditview/GXditview-color.ad: This new file.
481 2007-06-08  Fabrice Ménard  <menard.fabrice@wanadoo.fr>.
483         * tmac/fr.tmac: Handle chapter system for `me'.
485 2007-06-05  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
487         * src/devices/xditview/xditview.c (main): Add support for
488         accelerators.
490         * src/devices/xditview/GXditview.ad: Updated.
491         Make widget more colourful.
493 2007-05-30  Werner LEMBERG <wl@gnu.org>
495         * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
496         Recommend `tbl' instead of `-column' lists for more complicated
497         cases.
499 2007-05-21  Werner LEMBERG  <wl@gnu.org>
501         * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
502         correctly.
504 2007-04-10  Werner LEMBERG  <wl@gnu.org>
506         In pic, make rounded boxes work with colors.  Reported by Urs Eggli
507         <Urs.Eggli@zuerich.ch>.
509         * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
510         (output): Add color parameter to `rounded_box' member function.
512         * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
514         * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
515         to `out->rounded_box'.
517 2007-04-09  Michail Vidiassov  <master@iaas.msu.ru>
519         * font/devps/generate/textmap: Add Greek letters and some more.
521         * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
522         `Omega', and `mu' to the ones from aglfn.txt.
524 2007-04-08  Keith Marshall  <keith.d.marshall@ntlworld.com>
526         * tmac/s.tmac (SN): Define unconditionally.
527         (SN-STYLE): New string; define.
529         * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
531 2007-03-22  Werner LEMBERG  <wl@gnu.org>
533         * tmac/pspic.tmac: Fix harmless numeric overflow warning.  Reported
534         by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
536 2007-03-20  Werner LEMBERG  <wl@gnu.org>
538         * tmac/trace.tmac (rn): Added.
539         (nr, ds, ds1, as, as1, substring): Restore escape character while
540         executing the macro.
541         (nr): Remove dead code.
543         * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
544         definitions to make them traceable.
546 2007-03-19  Werner LEMBERG  <wl@gnu.org>
548         * src/roff/troff/input.cpp (get_copy): Add third argument to control
549         whether \E shall be expanded.
550         (get_char_for_escape_name): Allow \E.
552 2007-03-15  Werner LEMBERG  <wl@gnu.org>
554         * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
555         par*define-font-macro, \[hooko]): Use \E to make it traceable.
557         (ref*field): Add argument to control the space between previous and
558         current argument.
559         Update all callers.
560         (ref*add-N): Fix handling of opening parenthesis.  Problem reported
561         by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
563 2007-03-14  Werner LEMBERG  <wl@gnu.org>
565         * tmac/trace.tmac (als): Added.
566         (de, de1, am, am1): Make traced macros aliased with .als work.
568 2007-02-25  Werner LEMBERG  <wl@gnu.org>
570         * src/devices/xditview/TODO: Add some more items.
572         * Makefile.comm (.man.n): Add @APPRESDIR@.
573         Sort entries.
575         * src/devices/xditview/gxditview.man: Document GXditview resource
576         file.
577         Other documentation enhancements based on a patch from Jörg.
579 2007-02-25  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
580             Joerg van den Hoff <j.van_den_hoff@fzd.de>
582         * src/devices/xditview/GXditview.ad: Make all keys work regardless
583         of the current mouse position.
585 2007-02-20  Werner LEMBERG  <wl@gnu.org>
587         * tmac/groff_man.man: Revised to improve visual appearance.
588         Reduce use of future tense.
590         * tmac/groff_trace.man: Revosed to improve visual appearance.
592 2007-02-19  Eric S. Raymond  <esr@snark.thyrsus.com>
594         Make groff.man viewer-portable.
596         * tmac/groff.man: Eliminate use of .eo/.ec.
597         (.REQ): Surround args 2 through N with quotes.  This will enable us
598         not to rely on the shift request, which is nonportable.
599         (ExecFF): Remove.  The code is simpler without it.
601 2007-02-18  Eric S. Raymond  <esr@snark.thyrsus.com>
603         * tmac/groff_www.man: Viewer-portability fixes.
605 2007-02-16  Eric S. Raymond  <esr@snark.thyrsus.com>
607         * man/groff.man: Remove some unneeded code and a no-longer-used
608         inclusion of the www macros.
610 2007-02-12  Werner LEMBERG  <wl@gnu.org>
612         * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
613         AVAILABLE_REG.
614         (table::compute_widths): Simplify.
616 2007-02-11  Werner LEMBERG  <wl@gnu.org>
618         * src/preproc/tbl/table.h: Don't include `stdbool.h'.
619         (table): Replace `bool' type with `char' for orthogonality.
620         Update all users.
622         * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
623         AVAILABLE_REG and COLCOUNT_REG.
624         (table::table): Fix order call of initializers.
625         (table::~table): Deallocate `blockflag'.
627 2007-02-09  Eric S. Raymond  <esr@snark.thyrsus.com>
629         A try at the new rule for block column allocation is now enabled by
630         the new `experimental' global option: The horizontal space up to the
631         right margin which is not used by columns without text blocks is
632         evenly distributed to the columns with text blocks.
634         It doesn't work right as yet; there appears to be some error in the
635         computation of `3avail', the available line length.  The purpose of
636         this patch is (a) to make experimenting with other formulas easy,
637         and (b) leave the infrastructure for flag `experimental' in place
638         for future experiments.  Do not document any behavior associated
639         with this flag!
641         * src/preproc/tbl/table.h: Include `stdbool.h'.
642         (table): Make `flags' public.
643         Add `count_block_columns' function.
644         Add `blockflag' array.
645         Add `EXPERIMENTAL' enumeration value.
647         * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
648         macros.
649         (table_entry): New member `parent' so that class and subclass
650         members can set a parent field.  Update all users.
651         (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
652         (block_entry::do_width): Set the parent's `blockflag'.
653         (table::allocate): Handle `blockflag'.
654         (table::count_block_columns): New function.
655         (compute_span_width): Adjust AVAILABLE_REG.
656         (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
658         * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
659         option.
661 2007-02-08  Zhao, Yu (William)  <yzhao2@alcatel-lucent.com>
663         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
664         line thickness.
666 2007-02-08  Werner LEMBERG  <wl@gnu.org>
668         * man/groff_out.man (offset): Make it work reliably.
670 2007-02-07  Eric S. Raymond  <esr@snark.thyrsus.com>
672         * man/groff_out.man: Simplify some font changes so \fP is less
673         likely to do something surprising.
674         
675         * man/groff_out.man: We can simplify the command macros still
676         further if we stop trying to hide structural requests inside them. 
677         Also, fix some instances of \} at start of line without a dot, and
678         make some font changes explicit in strings.
679         
680         * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
681         .cp.
682         
683         * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
684         calls and fix macros to do without them.  File should now be
685         viewer-portable.
686         
687         * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
688         micromotions that produce the same visual result and can be lifted
689         to XML-DocBook.
690         
691         * man/groff_out.man: Third step: Reduce Da-comand, fix a
692         call-sequence bug in the original.
693         
694         * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
695         move font-change escapes to portable form.
697         * man/groff_out.man: First step in macro simplification; eliminate
698         list1..n, simplify .offset and .index_offset so they no longer
699         require groff-specific features or eqn (instead, use troff
700         micromotions for subscripting).
702 2007-02-06  Eric S. Raymond  <esr@snark.thyrsus.com>
704         * src/preproc/eqn/eqn.man: Minor corrections.
706         * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
707         longer takes a second argument that is pasted to the end of the
708         generated text.  Instead, the end macro takes an argument that does
709         the same thing.
711         * man/ditroff.man, man/groff_diff.man, man/groff.man,
712         man/groff_out.man, man/groff_tmac.man, man/roff.man,
713         src/roff/groff/groff.man, src/roff/grog/grog.man,
714         tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
716         * src/roff/troff/troff.man: .SY and .YS are canned macros now,
717         so we can use them here.
718         
719 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
721         * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
722         By popular demand, make ... set three lower dots again
723         and introduce a new predefined macro 'cdots' to set
724         three centered dots.
726 2007-02-05  Werner LEMBERG  <wl@gnu.org>
728         * src/preproc/eqn/eqn.man: Revised.
730         * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
731         `const'.
732         (spacing_type): Fix typo.
733         (special_to_entity): Use `const'.
734         Remove unused variable.
735         * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
737 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
739         * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
740         which is a shame as the effect was cute.
742 2007-02-04  Eric S. Raymond  <esr@snark.thyrsus.com>
744         * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
745         rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
746         possible, remove preamble declarations and macros that are no
747         longer needed.  Conversion checked using the protocol described in
748         tmac/TESTING-HINTS.
750 2007-02-03  Werner LEMBERG  <wl@gnu.org>
752         * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
753         vertical space.
755 2007-02-03  Eric S. Raymond  <esr@snark.thyrsus.com>
757         * tmac/groff_man.man: Documented the extension macros, and 
758         added portability advice.
760         * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
763         Add support for MathML output to eqn.  
765         The strategy used is very simple and relies on the fact that the box
766         models of eqn and Presentation MathML differ in only trivial ways. 
767         It leaves the grammar and existing internal object structures
768         unchanged.  A new global, `output_format', is defined as an
769         enumerated type with values {troff, mathml}.  Most of the functions
770         and methods that emit actual output acquire a top-level conditional,
771         dispatching on this global, which has one arm for troff mode and one
772         for MathML mode.  In most cases the MathML arm is drastically
773         simpler.
775         (This strategy could be easily generalized to support other output
776         formats.  TeX is a possibility that leaps to mind.)
778         The only even moderately tricky changes are in the lexer.  Some of
779         the predefined macros used constructs like `up', `down', `fwd',
780         `back', and `vcenter' that have no equivalents in MathML.  I
781         attacked this problem in these ways:
783         1. I eliminated three uses of `back' to compose characters in favor
784            of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
785            that did not exist when these macros were written.  (This will be
786            a quality improvement for troff users.)
788         2. I eliminated one use of `vcenter' by using \\(md.  (Likewise...)
790         3. I then split the table of pre-definitions in three; one large
791            common table and two small troff-specific and MathML-specific
792            tables.  Use of troff-only operations (up, down, back, fwd,
793            vcenter) is now confined to the former.  The latter now uses
794            `size big' and drops out the explicit positioning operations,
795            counting on MathML processors to do them.
797         POTENTIAL TROUBLE SPOTS:
799         Here are notes for reviewers on places I'm not 100% sure I've done
800         the right thing:
802         * In the process of preparing the troff table, I translated three
803           definitions (dot_def, dotdot_def, and utilde def) that previously
804           used explicit \v escapes to use `up' and `down' instead.  I
805           modeled the new definitions on the way `vec' and `dyad' work, but
806           it's possible I got something subtle wrong.
808         * I'm not certain the MathML implementation of font_box::output() is
809           right, because I don't quite get what the switcheroo between
810           `current_roman_font' and `old_roman_font' is supposed to
811           accomplish.  It does seem to generare good MathML, though.
813         Finally, I made one purely cosmetic change in `text.cpp'; I replaced
814         with an enum some magic numbers for spacing types that I thought
815         were too ugly to live.
817         REMAINING ISSUES:
819         The entirety of eqn is translated when `-TMathML' is specified, 
820         with the following exceptions...
822         Limitations that cannot be fixed include non-support for special,
823         up/down/fwd/back, and vcenter.
825         Limitations that might be fixable include non-support for mark and
826         lineup.  I will investigate further, but if these can be implemented
827         at all it's going to be in a very complicated and nasty way.
829         The way character boxes are output means that each digit of a
830         multi-digit number gets its own <mn></mn> tag pair in the MathHTML. 
831         While this is not technically wrong for Presentation MathML, it is
832         ugly and inefficient.  Fixing this will require implementing a
833         little state machine in the `text.cpp' output method.
835         * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp, 
836         src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man, 
837         src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
838         src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp, 
839         src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp, 
840         src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
841         src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
842         src/preproc/eqn/eqn.man: MathML output mode.
844         * NEWS: Document it.
846 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
848         * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
849         and for cross-viewer portability.  Conversion checked 
850         using the protocol described in tmac/TESTING-HINTS.
852 2007-02-02  Werner LEMBERG  <wl@gnu.org>
854         * tmac/an-ext.tmac (ME): Don't use `\:'.
856         * src/roff/grog/grog.man: Further refinements and normalizations.
858 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
860         * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
861         cross-viewer portability.  Conversion checked using the protocol
862         described in tmac/TESTING-HINTS.
864 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
866         * tmac/TESTING-HINTS: Added.
868 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
870         Enable the support for Bell archaisms on .SC, so the `-r bell'
871         switch is no longer needed to format old AT&T papers like
872         the EQN user guide.
874         * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
876         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
878 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
880         Add some Bell labs extensions to the -ms macros.
882         * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
884         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
886 2007-01-30  Werner LEMBERG  <wl@gnu.org>
888         * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
889         (\n[mH]): New register (set if grohtml is used).
890         (\n[SY]): Rename to \n[mS].
891         (\n[a]): Rename to \n[mA].
892         (\n[i]): Rename to \n[mI].
893         (mU): New auxiliary input trap macro.
894         (UR, UE): Replace stub with real definition.
895         (URL): Remove.
896         (MT, ME): New macros.
897         (MTO): Remove.
898         (EX, EE): Don't insert vertical space.
899         Use a register to store (and restore) the current font.
901         * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
902         on patches from Eric Raymond.
903         Fix URL addresses.
905 2007-01-22  Gaius Mulley  <gaius@glam.ac.uk>
907         * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
909 2007-01-22  Werner LEMBERG  <wl@gnu.org>
911         * tmac/an-ext.tmac: Protect against being sourced twice.
912         (URL, EE): Use always two backslashes.
913         (MTO): New macro.
915 2007-01-16  Werner LEMBERG  <wl@gnu.org>
917         * tmac/an-ext.tmac: Remove code for grodvi.
918         (SY): Fix typos.
919         Don't insert empty line.
920         (URL, TQ): Fix typos.
922 2007-01-14  Werner LEMBERG  <wl@gnu.org>
924         * tmac/an-ext.tmac: New file, containing extension macros
925         for -man.  See discussion on the groff mailing list for
926         background information.
927         * tmac/an-old.tmac: Load an-ext.tmac.
928         Decorate .ds and as with comment escapes where appropriate.
929         * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
931 2007-01-05  Werner LEMBERG  <wl@gnu.org>
933         * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
935 2007-01-04  Gaius Mulley  <gaius@glam.ac.uk>
937         Make -me macros ready for grohtml.
939         * tmac/e.tmac: Load devtag.tmac.
940         (need_eo_h, need_eo_tl, need_tl): New registers.
941         (check_need_title, (x-html, )x-html, xp-html): New macros.
942         (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
943         b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
944         (bp): Rename to @b only if output device is not html.
946 2007-01-01  Werner LEMBERG  <wl@gnu.org>
948         * man/groff_font.man: Document empty lines.
950         * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
951         the very beginning of the output.
952         [!$opt_x]: Fix typo.
954         * font/devps/*: Regenerate font definition files.
956 2007-01-01  Werner LEMBERG  <wl@gnu.org>
958         * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
960         * font/devps/*: Regenerate font definition files.
962 2006-12-31  Werner LEMBERG  <wl@gnu.org>
964         * Makefile.in (oldfontdir): New variable.
965         (MDEFINES): Add $(oldfontdir).
966         (uninstall_dirs): Remove `current' link.
967         Remove $(oldfontdir).
969         * Makefile.comm (oldfontsubdir): New variable.
970         (install_dev): Install files collected in $(OLDDEVFILES) into
971         $(oldfontsubdir).
972         (uninstall_dev): Remove data in $(oldfontsubdir).
973         (.man.n): Handle @OLDFONTDIR@.
975         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
976         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
977         src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
978         Document GROFF_FONT_PATH.
980         * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
981         old font description files.
983         * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
984         variables.
986         * font/devps/old/*: New directory, holding the previous version
987         of the 35 Adobe core font description files.
989         * font/devps/*: Regenerated the 35 Adobe core fonts, using the
990         Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
992         * NEWS: Document font update.
994 2006-12-31  Werner LEMBERG  <wl@gnu.org>
996         * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
998         * Makefile.comm (fonts): New (empty) target.
999         * Makefile.in (TARGETS): Add `fonts'.
1001         * MANIFEST: Add `chem'.
1003         * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
1004         can't be chained.
1006 2006-12-26  Werner LEMBERG  <wl@gnu.org>
1008         * src/preproc/grn/hdb.cpp: Include gprint.h later.  From NetBSD.
1010 2006-12-19  Werner LEMBERG  <wl@gnu.org>
1012         Add support for German.  For activation, simply use -mde or -mden
1013         (for traditional and new orthgraphy, respectively) as the last
1014         macro package.
1016         * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
1017         tmac/hyphenex.det: New files, partly taken from CTAN.
1018         * LICENSES: Updated list of hyphenation patterns.
1019         * man/groff_tmac.man: Mention de.tmac and den.tmac.
1020         * NEWS: Updated.
1022 2006-12-11  Werner LEMBERG  <wl@gnu.org>
1024         Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
1025         hosts).
1027         * src/preproc/pic/lex.cpp (ARG1): Redefine.  Update all users.
1028         (MAX_ARG): New macro.  Use it everywhere to replace hard-coded
1029         limit of 9 arguments.
1030         (process_body): Handle argument numbers with more than a single
1031         digit.
1032         (interpolate_macro_with_args): Protect against exceeding number of
1033         arguments.
1035         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
1037 2006-12-10  Werner LEMBERG  <wl@gnu.org>
1039         * Makefile.in (site.exp, docheck): Commented out.  Not working
1040         currently.
1041         (check): Just emit dummy message.
1043 2006-12-08  Werner LEMBERG  <wl@gnu.org>
1045         During installation, create soft link from <version> to `current' in
1046         <datadir>/groff.
1048         * Makefile.comm (install): Renamed to...
1049         (do_install): This.
1050         (prefix_must_exist): Removed.  Code moved to Makefile.in.
1052         * Makefile.in (TARGETS): Remove `install'.
1054         (install): New target which first creates the directory given by
1055         --prefix, then calling `make' to do the installation, and finishing
1056         with the creation of the soft link.
1058 2006-11-21  Werner LEMBERG  <wl@gnu.org>
1060         * doc/Makefile.sub (uninstall_sub): Fix names for info files.
1062 2006-11-18  Werner LEMBERG  <wl@gnu.org>
1064         * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
1065         information from Tom Van Vleck <thvv@multicians.org>.
1067 2006-11-16  Werner LEMBERG  <wl@gnu.org>
1069         * tmac/62bit.tmac: New macro package.
1070         * tmac/Makefile.sub (NORMALFILES): Add it.
1071         * NEWS: Document it.
1073         * tmac/trace.tmac: Protect against being loaded again.
1074         (nr): Always show result.
1076         * doc/groff.texinfo (Input Encodings): Document latin-5.
1078         * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
1080 2006-11-13  Werner LEMBERG  <wl@gnu.org>
1082         * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
1083         on negative trap positions.
1085 2006-11-10  Werner LEMBERG  <wl@gnu.org>
1087         * Makefile.comm (.man.n): Handle @DATASUBDIR@.
1089 2006-11-09  Werner LEMBERG  <wl@gnu.org>
1091         * INSTALL: Move information about external installation from
1092         INSTALL.gen into this file.
1093         Updated.
1095         * INSTALL.gen: Update to new version (from texinfo CVS).
1097 2006-11-09  Bernd Warken
1099         * INSTALL.gen: Extend the file by information on `external
1100         installation'.  Reorder the installation instruction as `normal
1101         installation'. 
1103 2006-11-08  Werner LEMBERG  <wl@gnu.org>
1105         * doc/Makefile.sub (install_data): Take care of proper paths while
1106         installing info files.  Bug reported by Bernd Warken.
1108 2006-11-06  Bernd Warken
1110         * src/roff/grog/grog.pl: Rewrite.
1111         - Call by `#! /usr/bin/env perl'.  That isn't replaced.
1112         - Rename usage() to version().
1113         - Use warnings.
1114         - For `use strict', start all global variables with an upper case
1115         character.  Use `my' for all variables.  Use several new variables.
1116         - Add option `-h'.
1117         - Add copyright to GPL and Emacs comment.
1118         - Handle several `-m*' options.
1119         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
1120         - Allow options after file names.
1121         - Allow only one `-' parameter (standard input).
1122         - Add option abbreviations.
1123         - Expand the usage information.
1124         - Add `chem'.
1125         - Add single quote "'" as additional first character and allow
1126         arbitrary space after the first character.
1128         * src/roff/grog/grog.sh: Rewrite.
1129         - Remove option `-e' of `sed'.
1130         - Allow file names with space characters.
1131         - Add option `-h'.
1132         - Add copyright to GPL.
1133         - Handle several `-m*' options.
1134         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
1135         - Allow options after file names.
1136         - Allow only one `-' parameter (standard input).
1137         - Add option abbreviations.
1138         - Expand the usage information.
1139         - Add `chem'.
1140         - Add single quote "'" as additional first character and allow
1141         arbitrary space after the first character.
1143         * src/roff/grog/Makefile.sub:
1144         - Add copyright to GPL.
1145         - Remove `grog:'.  Move `grog.old:' to `grog:' in order to have a
1146         fair chance to choose between the shell version and the Perl
1147         version of `grog'.  This is now again comparable to grog in groff
1148         version 1.10.
1150         * src/roff/grog/grog.man: Rewrite.
1151         - Move the license to GPL.
1152         - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
1153         - Take over some setup and macros from `groffer'.
1154         - Add information on options.
1156 2006-10-28  Werner LEMBERG  <wl@gnu.org>
1158         * tmac/trace.tmac: Improve tracing of `.nr'.
1159         Trace `.substring' also.
1161         * NEWS: Updated.
1163 2006-10-28  Bernd Warken
1165         * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
1166         of groff development site, fix fonts.
1168         * News: Add information on `chem' and `groffer'.
1170 2006-10-26  Bernd Warken
1172         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
1174 2006-10-26  Werner LEMBERG  <wl@gnu.org>
1176         Add `\$^' escape to handle the parameters to a macro as a string
1177         argument.
1179         * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
1181         * src/roff/troff/input.cpp (input_iterator, input_stack,
1182         macro_iterator): Add `space_follows_arg' member function.
1183         (macro_iterator::add_arg): Add parameter to set the `space_follows'
1184         flag.
1185         (arg_list): Add member `space_follows'.
1186         Update constructor and all callers.
1187         (decode_args): Store discarded double quotes.
1188         (interpolate_args): Handle DOUBLE_QUOTE.
1189         Add `\$^' escape.
1190         (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
1192         * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
1194         * docs/groff.texinfo (Parameters), man/groff.man,
1195         man/groff_diff.man, NEWS: Document it.
1197 2006-10-24  Bernd Warken
1199         * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
1201 2006-10-24  Werner LEMBERG  <wl@gnu.org>
1203         * tmac/groff_trace.man: Mention problem with `\\\\'.
1205 2006-10-23  Werner LEMBERG  <wl@gnu.org>
1207         * doc/groff.texinfo (Expressions): Improve documentation of `!'.
1209         * tmac/trace.tmac (return): Don't call `substring'.
1211 2006-09-10  Werner LEMBERG  <wl@gnu.org>
1213         * src/roff/troff/input.cpp (read_size): Revert previous change
1214         w.r.t. `\s-[-...]'.
1216         * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
1218 2006-09-09  Werner LEMBERG  <wl@gnu.org>
1220         * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
1221         behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
1222         point size to 1).  Reported by Gunnar Ritter.
1223         Also catch `\s-[-...]' and friends (causing an error).
1225 2006-09-06  Werner LEMBERG  <wl@gnu.org>
1227         * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
1228         space only if there is no previous space.  This fixes a bug which
1229         caused unwanted filling of the last line in a paragraph.  Thanks to
1230         Gunnar Ritter for an analysis.
1232 2006-09-03  Werner LEMBERG  <wl@gnu.org>
1234         * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
1235         Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
1237 2006-09-01  Nick Stoughton  <nick@msbit.com>
1238             Werner LEMBERG  <wl@gnu.org>
1240         Add a request `pev' to print environment information (similar to
1241         `pnr' and `ptr' to print number registers and traps).
1243         * src/roff/troff/env.h (environment): Add member function print_env.
1245         * src/roff/troff/env.cpp: (environment::print_env): New function to
1246         print a given environment state.
1247         (print_env): New global function to iterate through the
1248         environments, printing each one.
1249         (init_env_requests): Register `pev'.
1251         * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
1252         NEWS: Document `pev' request.
1254 2006-09-01  Bernd Warken
1256         * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
1257         `-I' to `dir'.
1259 2006-09-01  Werner LEMBERG  <wl@gnu.org>
1261         * src/preproc/pic/main.cpp (usage): Add missing options.
1263 2006-08-25  Werner LEMBERG  <wl@gnu.org>
1265         * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1266         in file names.
1268 2006-08-19  Werner LEMBERG  <wl@gnu.org>
1270         * configure: Regenerated.
1272 2006-08-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1274         * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1275         logic; it previously caused an `expr' syntax error, if no version of
1276         `makinfo' was present.  Also, remove dependency on `makeinfo' in VPATH
1277         builds, if an up to date `groff.info' is present in either `builddir'
1278         or in `srcdir'.
1280 2006-08-12  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1282         * font/devps/prologue.ps: Add BPhook.
1284         * src/devices/grops/grops.man: Document BPHook.
1285         Reorder some sections for better readability.
1287 2006-08-12  Werner LEMBERG  <wl@gnu.org>
1289         * src/include/lib.h (getlocale): New macro.
1290         (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1291         suggested by Bruno.
1293         * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1295 2006-08-11  Werner LEMBERG  <wl@gnu.org>
1297         Add new flag to .cflags to enable hyphenation without looking at
1298         hcode values.
1300         * src/roff/troff/charinfo.h (charinfo): New enumeration value
1301         `IGNORE_HCODES'.
1302         New member function `ignore_hcodes'.
1304         * src/roff/troff/node.cpp (break_char_node::add_self,
1305         node::add_char): Updated.
1307         * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1309 2006-08-09  Werner LEMBERG  <wl@gnu.org>
1311         Support composite Unicode characters again.  Reported by Colin.
1313         * font/devhtml/R.proto: Renamed to...
1314         * font/devhtml/R.in: This.
1316         * font/devutf8/R.proto: Renamed to...
1317         * font/devutf8/R.in: This.
1318         Add `charset' line.
1320         * font/make-Rproto: New script.
1321         * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1323 2006-07-26  Werner LEMBERG  <wl@gnu.org>
1325         * README: Fix description of CVS access.  Reported by Joachim.
1327 2006-07-11  Werner LEMBERG  <wl@gnu.org>
1329         Add a request `.fzoom' and a number register `.zoom' to magnify
1330         fonts.
1332         * src/include/font.h (font): Add member variable `zoom'.
1333         Add member functions `set_zoom' and `get_zoom'.
1334         Remove `static' attribute from `scale' member function.
1336         * src/libs/libgroff/font.cpp (font::font): Updated.
1337         (scale_round): New version with three parameters to handle zoom
1338         factor.
1339         (font::scale, font::get_width): Handle zoom factor.
1340         (font::set_zoom, font::get_zoom): New functions.
1341         (font::load): Handle `zoom' while computing `space_width'.
1343         * src/roff/troff/env.h: Declare `env_get_zoom'.
1344         (environment): Add member function `get_zoom'.
1346         * src/roff/troff/env.cpp (environment::get_zoom): New function.
1347         (init_env_requests): Initialize `.zoom' register.
1349         * src/roff/troff/node.cpp (font_info): New member functions
1350         `set_zoom' and `get_zoom'.
1351         (tfont): New member function `get_zoom'.
1352         (env_get_zoom): New function.
1353         (troff_output_file::set_font): Handle zoom factor.
1354         (font_zoom_request): New function.
1355         (init_node_requests): Initialize `fzoom' request.
1357         * docs/groff.texinfo (Changing Fonts), man/groff.man,
1358         man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1359         register.
1361         * src/roff/troff/TODO: Updated.
1363 2006-07-10  Werner LEMBERG  <wl@gnu.org>
1365         * doc/groff.texinfo (Drawing Requests): Improve documentation of
1366         \D'P ...'.
1368 2006-07-02  Werner LEMBERG  <wl@gnu.org>
1370         * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1372 2006-07-01  Werner LEMBERG  <wl@gnu.org>
1374         * tmac/pspic.tmac: Make .PSPIC work for all devices.
1375         Print image file name for devices which don't support PS image
1376         inclusion.
1377         Handle multiple inclusions.
1378         Add lots of comments.
1380         * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1381         pspic.tmac.
1383         * tmac/troffrc: Load pspic.tmac.
1385         * man/groff_tmac.man: Update .PSPIC documentation.
1387         * NEWS: Updated.
1389 2006-06-29  Werner LEMBERG  <wl@gnu.org>
1391         * src/roff/troff/input.cpp (interpolate_macro):
1392         s/probably/possibly/, as suggested by Keith.
1394 2006-06-28  Werner LEMBERG  <wl@gnu.org>
1396         Add support for \D'p...' to grotty.
1398         * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1399         its code to...
1400         (tty_printer::line): This function.
1401         (tty_printer::draw): Rewritten; just call either draw_line or
1402         draw_polygon.
1403         (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1405         * src/devices/grotty/grotty.man, NEWS: Document it.
1407 2006-06-27  Werner LEMBERG  <wl@gnu.org>
1409         * src/preproc/refer/command.h (have_bibliography): New variable
1410         declaration.
1412         * src/preproc/refer/command.cpp (bibliography_command): Set
1413         `have_bibliography'.
1415         * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1416         (output_references): Emit warning only if `have_bibliography' is
1417         set.
1419 2006-06-15  Michail Vidiassov  <master@iaas.msu.ru>
1421         * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1422         * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1423         and zapfdr.afm.
1425 2006-06-15  Werner LEMBERG  <wl@gnu.org>
1427         * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1428         macro (as suggested by Tadziu Hoffmann).
1430 2006-06-12  Werner LEMBERG  <wl@gnu.org>
1432         * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1433         macro (as suggested by Tadziu Hoffmann).
1435 2006-06-05  Werner LEMBERG  <wl@gnu.org>
1437         * tmac/strip.sed: Strip `\#' also.
1439         * doc/groff.texinfo (Operators in Conditionals): Document usage of
1440         \? for string comparison.
1442 2006-06-04  Werner LEMBERG  <wl@gnu.org>
1444         * doc/groff.texinfo: Add more index entries for copy-in mode.
1445         (Changing Fonts) <.ft>: Document that a font definition file must
1446         not be called `DESC'.
1448 2006-05-31  Werner LEMBERG  <wl@gnu.org>
1450         * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1451         here.
1453         * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1454         (PROCESSEDEXAMPLEFILES): Here.
1456 2006-05-30  Werner LEMBERG  <wl@gnu.org>
1458         * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1459         `DESC'.
1460         Reduce number of false positives for `.if F ...' conditionals.
1461         Improve warning messages.
1463 2006-05-29  Werner LEMBERG  <wl@gnu.org>
1465         * tmac/Makefile.sub: Add copyright notice.
1466         (NORMALFILES): Add man.tmac and ms.tmac.
1467         (SPECIALFILES): Remove man.tmac and ms.tmac.
1468         (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1469         (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1470         specially.
1471         (stamp-sed): Don't handle man.tmac and ms.tmac.
1472         Remove obsolete components in sed's regexp.
1474         * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1476         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1478 2006-05-28  Werner LEMBERG  <wl@gnu.org>
1480         * doc/groff.texinfo (History): Correct death circumstances of Joe
1481         Ossanna.
1483 2006-05-27  Werner LEMBERG  <wl@gnu.org>
1485         * tmac/an-old.tmac (an-do-tag): Simplify.
1487 2006-05-26  Werner LEMBERG  <wl@gnu.org>
1489         * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1490         (an-header, an-p-footer): Use named environment.
1492         * src/roff/troff/env.cpp (environment::copy): Copy margin character
1493         node.
1495 2006-05-21  Werner LEMBERG  <wl@gnu.org>
1497         * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1498         omissions.
1500 2006-05-11  Keith Marshall  <keith.d.marshall@ntlworld.com>
1502         * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1504 2006-05-10  Keith Marshall  <keith.d.marshall@ntlworld.com>
1506         * src/roff/groff/groff.man: Update copyright notice.
1507         Improved wording to describe effect of `-Z' option.
1509 2006-05-06  Werner LEMBERG  <wl@gnu.org>
1511         * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1512         Normalize handling of `"' in arguments.
1513         (PIMG): Remove debug message.
1514         Simplify code.
1516 2006-05-05  Werner LEMBERG  <wl@gnu.org>
1518         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1519         swallow character immediately after `\[...]'.
1520         Simplify code.
1522 2006-05-02  Gaius Mulley  <gaius@glam.ac.uk>
1524         * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1526 2006-05-02  Larry Kollar  <kollar@alltel.net>
1528         * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1529         option is missing.
1531 2006-04-30  Michail Vidiassov  <master@iaas.msu.ru>
1533         * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1534         information as a comment in output.
1535         * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1537 2006-04-26  Werner LEMBERG  <wl@gnu.org>
1539         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1540         Handle current_paragraph only if it is non-NULL.
1542         * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1543         <'F'>): Use `get_extended_arg' to behave as documented.  Reported by
1544         Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1547         Surround the (pseudo) file name for the .pso request with `<' and
1548         `>'.
1550         * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1551         second parameter to `really_put_filename' and `put_filename'.
1552         (troff_output_file::really_put_filename): Emit `<' and `>' around
1553         filename if second argument is set.
1554         * src/roff/troff/node.h: Updated.
1556         * src/roff/troff/input.cpp (file_iterator::file_iterator,
1557         file_iterator::set_location): Update to changes in node.cpp.
1559 2006-04-25  Tetsurou Okazaki  <okazaki@FreeBSD.org>
1561         * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1562         preprocessor expression (I18N -> HAVE_ICONV).
1563         (main): Fix handling of option `-h'.
1564         Fix conditional preprocessor expression.
1566 2006-04-04  Werner LEMBERG  <wl@gnu.org>
1568         Implement new number register `.br' which is set to 1 if a macro has
1569         been called as .foo and to 0 if called as 'bar.  This is useful for
1570         -mtrace so that requests can be reliably traced too.
1572         * src/roff/troff/input.cpp (input_iterator): Add virtual function
1573         `get_break_flag'.
1574         (macro_iterator): Add `with_break' member and `get_break_flag'
1575         function.
1576         Update constructors.
1577         (input_stack): Add function `get_break_flag'.
1578         (break_flag_reg): New number register class.
1579         (input_init_requests): Register `.br'.
1581         * src/roff/troff/TODO: Updated.
1583         * tmac/trace.tmac: s/!!sp/!!!sp/.
1584         Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
1586         * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
1587         NEWS: Document it.
1589 2006-03-29  Werner LEMBERG  <wl@gnu.org>
1591         * src/devices/grops/ps.cpp: s/must not/should not/ in warning
1592         messages where appropriate.
1594 2006-03-28  Werner LEMBERG  <wl@gnu.org>
1596         * configure.ac: Call AC_PROG_EGREP.
1597         * configure: Regenerated.
1599         * Makefile.in (EGREP): New variable.
1600         (MDEFINES): Add $(EGREP).
1602         * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
1603         (bug reported by Robert Goulding <Goulding.2@nd.edu>).
1604         Use @EGREP@.
1606         * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
1608 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1610         Add two requests `.device' and `.devicem' which are equivalent to
1611         `\X' and `\Y', respectively.
1613         * src/roff/troff/input.cpp (device_request, device_macro_request):
1614         New functions.
1615         (init_input_requests): Register them.
1617         * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
1618         man/groff.man, NEWS: Document them.
1620 2006-03-27  Gaius Mulley  <gaius@glam.ac.uk>
1622         * src/roff/troff/input.cpp (encode_char): Emit special characters
1623         for -Thtml as `\[...]'.
1624         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
1626         * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
1628 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1630         * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
1631         files.
1633 2006-03-26  Werner LEMBERG  <wl@gnu.org>
1635         * doc/groff.texinfo (Writing Macros): More documentation on
1636         end-of-macro symbol of `.de'.
1637         (Diversions): Minor addition to `.di' description.
1639         * src/devices/grops/grops.man: Some clarifications regarding
1640         insertion of PostScript snippets.
1642 2006-03-25  Michail Vidiassov  <master@iaas.msu.ru>
1644         Add rules to generate `symbolsl.afm'.
1646         * font/devps/generate/zapfdr.sed,
1647         font/devps/generate/symbolsl.awk: New files.
1649         * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
1650         variables.
1651         (SS, clean): Updated.
1652         (freeeuro.afm): Use $(srcdir).
1653         (symbolsl.afm): New rule.
1654         (zapfdr.afm): Use zapfdr.sed.
1656 2006-03-22  Dwight Aplevich  <aplevich@uwaterloo.ca>
1658         * src/preproc/pic/pic.y (expr <INT>): Fix code.
1660 2006-03-22  Jörgen Grahn <jgrahn@algonet.se>
1662         * tmac/sv.tmac: Add missing translations and activate support for
1663         other macro packages.
1665 2006-03-21  Francis GUDIN  <fgudin@nerim.net>
1667         * tmac/doc-syms (Dx): New macro to identify DragonFly.
1668         (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
1669         doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
1670         strings.
1671         (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
1672         doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
1673         doc-operating-system-DragonFly-*): New operating system strings.
1675         * tmac/groff_mdoc.man, NEWS: Document `Dx'.
1677 2006-03-21  Werner LEMBERG  <wl@gnu.org>
1679         * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
1680         both DWB pic and dpic, make
1682           right;
1683           line then down;
1685         equal to
1687           right;
1688           line right then down;
1690         instead of
1692           right;
1693           line 0 then down;
1695         * doc/pic.ms: Document this.
1697 2006-03-20  Werner LEMBERG  <wl@gnu.org>
1699         * doc/pic.ms: With permission of Eric Raymond, put it under the
1700         GPL.
1702         * NEWS: Updated.
1704 2006-03-19  Werner LEMBERG  <wl@gnu.org>
1706         * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
1708         * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
1709         attribute in combination with `with'.  Bug reported by Jennifer
1710         Sayers <jenjen@mail.usyd.edu.au>.
1712 2006-03-19  Miklos Somogyi  <msom@netspace.net.au>
1714         * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
1715         `.sp'.
1717 2006-03-18  Werner LEMBERG  <wl@gnu.org>
1719         * LICENSE: Renamed to...
1720         * LICENSES: This.  Collect all licensing information in this file.
1721         * tmac/README, src/libs/snprintf/README: Removed.
1723         * src/devices/grops/grops.man: Add section how to install fonts.
1725         * src/utils/xtotroff/xtotroff.c: Add GPL.
1727 2006-03-17  Werner LEMBERG  <wl@gnu.org>
1729         * Makefile.comm (.y.cpp): Fix #line arguments in output.
1731 2006-03-13  Werner LEMBERG  <wl@gnu.org>
1733         * src/preproc/tbl/tbl.man: Mention default length of text blocks.
1735         * tmac/doc-common (Os): Add more Darwin versions.
1736         * tmac/groff_mdoc.man: Document them.
1738         * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
1739         works with \N'...' also.
1740         * man/groff_diff.man: Ditto.  Remove use of future tense where
1741         possible.
1743 2006-03-12  Michail Vidiassov  <master@iaas.msu.ru>
1745         * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
1746         font/devps/zapfdr.ps: Add `%%EndComments' line.
1748 2006-03-10  Larry Kollar  <kollar@alltel.net>
1750         * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
1752 2006-03-10  Werner LEMBERG  <wl@gnu.org>
1754         * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
1755         ps_printer::do_mdef): Overlong lines now cause a warning message,
1756         not an error.
1758 2006-03-09  Werner LEMBERG  <wl@gnu.org>
1760         * font/devps/generate/make-zapfdr: New script for generating
1761         `zapfdr.ps'.
1763 2006-03-08  Werner LEMBERG  <wl@gnu.org>
1765         * doc/groff.css (pre): Fix `background-color' value.
1767 2006-03-04  Larry Kollar  <kollar@alltel.net>
1769         * tmac/groff_ms.man: Document PT, HD, and BT.
1771 2006-03-04  Werner LEMBERG  <wl@gnu.org>
1773         * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
1774         for single-letter glyph names.
1776 2006-03-02  Werner LEMBERG  <wl@gnu.org>
1778         * tmac/sv.tmac: New file; currently holding only the Swedish strings
1779         for -mm.
1780         * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
1781         from CTAN.
1782         * tmac/README: Updated.
1784 2006-02-27  Werner LEMBERG  <wl@gnu.org>
1786         * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
1787         * tmac/fr.tmac: Add French translations.
1789         * tmac/composite.tmac: Add entry for `:'.
1791 2006-02-26  Werner LEMBERG  <wl@gnu.org>
1793         * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
1794         (CLEANADD): Use it.
1795         (install_html, uninstall_sub): Updated.
1797 2006-02-26  Bruno Haible  <bruno@clisp.org>
1799         Introduce Unicode fonts.
1801         * font/devhtml/DESC.proto: Mark as unicode.
1802         * font/devhtml/R.proto: Remove all charset entries that are already
1803         in glyphuni.cpp.
1804         * font/devutf8/DESC.proto: Mark as unicode.
1805         * font/devutf8/R.proto: Remove all charset entries.
1806         * src/include/font.h (font): New static field `is_unicode'.
1807         Change order of fields.
1808         * src/libs/libgroff/font.cpp: Include unicode.h.
1809         (font::font): Update for changed order of fields.
1810         (font::contains, font::get_width, font::get_height, font::get_depth,
1811         font::get_italic_correction, font::get_left_italic_correction,
1812         font::get_subscript_correction, font::get_character_type,
1813         font::get_code, font::get_special_device_encoding): Handle both the
1814         explicitly enumerated glyphs and use general code for Unicode fonts.
1815         (font::load): Make the charset section optional when the font is
1816         declared unicode.
1817         (font::load_desc): Recognize the `unicode' attribute.
1818         * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
1820 2006-02-26  Claudio Fontana  <claudio@gnu.org>
1822         * Makefile.in: Add comment about DESTDIR.
1824         * Makefile.sub: Add DESTDIR to install and uninstall targets
1825         to support staged installations.
1826         * Makefile.comm: Likewise.
1827         * doc/Makefile.sub: Likewise.
1828         * contrib/eqn2graph/Makefile.sub: Likewise.
1829         * contrib/grap2graph/Makefile.sub: Likewise.
1830         * contrib/pic2graph/Makefile.sub: Likewise.
1831         * src/devices/xditview/Makefile.sub: Likewise.
1832         * src/preproc/eqn/Makefile.sub: Likewise.
1833         * src/roff/grog/Makefile.sub: Likewise.
1834         * src/roff/nroff/Makefile.sub: Likewise.
1835         * src/utils/afmtodit/Makefile.sub: Likewise.
1836         * src/utils/indxbib/Makefile.sub: Likewise.
1837         * tmac/Makefile.sub: Likewise.
1839 2006-02-24  Werner LEMBERG  <wl@gnu.org>
1841         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1842         for \-.
1843         Remove commented out entries for \' and \` (there are no such glyph
1844         names).
1846         * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1847         commented out entries for \' and \`.
1850         * */*: s/legal/valid/ where appropriate.
1852 2006-06-23  Werner LEMBERG  <wl@gnu.org>
1854         * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
1855         and \` entries.
1857 2006-02-22  Werner LEMBERG  <wl@gnu.org>
1859         Remove all remaining traces from the `shc' glyph.
1861         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1862         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1863         entry for `shc'.
1865         * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
1866         entry with unnamed glyph.
1868         * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
1870         * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
1871         specially.
1873 2006-02-22  Bruno Haible  <bruno@clisp.org>
1875         Concretize the `glyph' datatype.
1877         * src/include/font.h (glyph): Remove class.
1878         (glyph): Renamed from struct `glyphinfo'.
1879         (glyph_to_index): New inline function.
1880         (glyph_to_name): Make extern, not inline.
1881         (glyph_to_number): Update.
1882         (font): Use `glyph *' instead of `glyph'.
1884         * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
1885         `glyph'.  Make `name' field public.
1886         (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
1887         instead of `glyph'.
1888         (glyph_to_name): Renamed from `glyph::glyph_name'.
1890         * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
1891         Use `glyph *' instead of `glyph'.
1893         * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
1894         `glyph *' instead of `glyph'.
1895         (glyph_to_name): Renamed from `glyph::glyph_name'.
1897         * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
1898         and `glyph_to_index' instead of `glyph::glyph_index'.
1900         * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
1901         * src/libs/libdriver/printer.cpp: Likewise.
1902         * src/devices/grodvi/dvi.cpp: Likewise.
1903         * src/devices/grohtml/post-html.cpp: Likewise.
1904         * src/devices/grolbp/lbp.cpp: Likewise.
1905         * src/devices/grolj4/lj4.cpp: Likewise.
1906         * src/devices/grops/ps.cpp: Likewise.
1907         * src/devices/grotty/tty.cpp: Likewise.
1909 2006-02-22  Werner LEMBERG  <wl@gnu.org>
1911         * font/devdvi/generate/tc.map: Add `sr' glyph.
1912         * font/devdvi/*TC: Regenerated.
1914         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1915         for `sqrt'.
1917 2006-02-21  Werner LEMBERG  <wl@gnu.org>
1919         * man/groff_char.man: Explain `***' marker.
1921 2006-02-17  Bruno Haible  <bruno@clisp.org>
1923         * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
1924         methods and fields from *_index to *_glyph.
1925         (character_indexer::named_char_glyph): Test for `charNNN' name
1926         here...
1927         (name_to_glyph): ... not here.
1929 2006-02-17  Bruno Haible  <bruno@clisp.org>
1931         * src/include/font.h (name_to_glyph): Renamed from
1932         font::name_to_index.
1933         (number_to_glyph): Renamed from font::number_to_index.
1934         (glyph_to_name): Renamed from font::index_to_name.
1935         (glyph_to_number): Renamed from font::index_to_number.
1936         * src/libs/libgroff/nametoindex.cpp: Likewise.
1937         * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
1938         charinfo::get_index.
1940         * src/roff/troff/input.cpp: All callers changed.
1941         * src/roff/troff/node.cpp: Likewise.
1942         * src/libs/libgroff/font.cpp: Likewise.
1943         * src/devices/grops/ps.cpp: Likewise.
1944         * src/devices/grohtml/post-html.cpp: Likewise.
1945         * src/libs/libdriver/printer.cpp: Likewise.
1947 2006-02-17  Werner LEMBERG  <wl@gnu.org>
1949         * src/include/ptable.h, src/include/itable.h
1950         (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
1951         of external symbol `next_ptable_size' (used by both header files).
1953 2006-02-15  Bruno Haible  <bruno@clisp.org>
1955         * src/include/font.h (glyphinfo): New class.
1956         (glyph): Change internal representation.
1957         Change constructor signature.
1958         New method glyph::glyph_number().
1959         (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
1960         glyph::operator==, glyph::operator!=): Update.
1961         (font::index_to_name, font::index_to_number): New functions.
1963         * src/include/itable.h: New file, based on src/include/ptable.h.
1965         * src/libs/libgroff/nametoindex.cpp: Include itable.h.
1966         (class charinfo): New class.
1967         (class character_indexer): Change table result type from `int' to
1968         `class charinfo'.
1969         Add table with integer key.
1970         (character_indexer::character_indexer): Update.
1971         (character_indexer::ascii_char_index): Update.
1972         (character_indexer::numbered_char_index): Use NULL as name, not a
1973         string starting with a space.
1974         (character_indexer::named_char_index): Update.
1975         (font::number_to_index, font::name_to_index): Remove no-op cast.
1976         (glyph::glyph_name): New method.
1977         * src/roff/troff/charinfo.h (class charinfo): Inherit from class
1978         glyphinfo.
1979         (NUMBERED): Remove flag bit.
1980         (charinfo::numbered, charinfo::get_index): Update.
1982         * src/roff/troff/input.cpp (charinfo::charinfo): Update.
1983         (charinfo::set_number, charinfo::get_number): Update.
1984         (glyph::glyph_name): New method.
1986 2006-02-15  Werner LEMBERG  <wl@gnu.org>
1988         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
1989         entries for `>>', `<<', `*f', and `+f'.  Reported by Bruno.
1991 2006-02-13  Werner LEMBERG  <wl@gnu.org>
1993         * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
1994         dvips.
1996 2006-02-11  Werner LEMBERG  <wl@gnu.org>
1998         * src/include/font.h: s/glyph_t/glyph/.
1999         Update all callers.
2001         * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
2002         s/output_character_t/output_character/.
2004 2006-02-11  Bruno Haible  <bruno@clisp.org>
2006         New accessor method glyph_t::glyph_name().
2008         * src/include/ptable.h (declare_ptable): Add a return value to the
2009         `define' method, and declare a `lookupassoc' method.
2010         (implement_ptable): Return the stored key in `define'.  Implement
2011         lookupassoc.
2012         * src/include/font.h (glyph_t): Add `name' field.  Add an argument
2013         to the constructor.
2014         (glyph_t::glyph_name): New method.
2016         * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
2017         return type of methods and field member type to glyph_t.
2018         (character_indexer::character_indexer): Update.
2019         (character_indexer::ascii_char_index): Allocate a name for the
2020         glyph.
2021         Return a glyph_t with name.
2022         (character_indexer::numbered_char_index): Return a glyph_t without a
2023         name.
2024         (character_indexer::named_char_index): Return a glyph_t with a name.
2025         (font::number_to_index, font::name_to_index): Update.
2027         * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
2028         the glyph's name.
2030 2006-02-11  Bruno Haible  <bruno@clisp.org>
2032         * src/devices/grotty/tty.cpp (output_character_t): New type.
2033         (tty_printer::make_bold, tty_printer::add_char,
2034         tty_printer::put_char): Change argument type to output_character_t.
2035         (crossings): Change element type to output_character_t.
2037 2006-02-11  Bruno Haible  <bruno@clisp.org>
2039         Make the glyph data type abstract.
2041         * src/include/font.h (glyph_t): New class.
2042         (name_to_index, number_to_index): Change return type to glyph_t.
2043         (font::contains, font::get_width, font::get_height, font::get_depth,
2044         font::get_character_type, font::get_kern, font::get_skew,
2045         font::get_italic_correction, font::get_left_italic_correction,
2046         font::get_subscript_correction, font::get_code,
2047         font::get_special_device_encoding, font::add_entry,
2048         font::copy_entry, font::add_kern, font::hash_kern): Change argument
2049         type to glyph_t.
2051         * src/libs/libgroff/font.cpp (font_kern_list): Change members
2052         type and constructor argument types to glyph_t.
2053         (font::contains, font::get_width, font::get_height, font::get_depth,
2054         font::get_character_type, font::get_kern, font::get_skew,
2055         font::get_italic_correction, font::get_left_italic_correction,
2056         font::get_subscript_correction, font::get_code,
2057         font::get_special_device_encoding, font::add_entry,
2058         font::copy_entry, font::add_kern, font::hash_kern): Change argument
2059         type to glyph_t.
2060         (font::load): Use glyph_t variables.
2062         * src/libs/libgroff/nametoindex.cpp (name_to_index,
2063         number_to_index): Change return type to glyph_t.
2065         * src/roff/troff/charinfo.h (charinfo::index): Change type to
2066         glyph_t.
2067         (charinfo::get_index): Change return type to glyph_t.
2069         * src/roff/troff/env.cpp: Include font.h.
2071         * src/roff/troff/node.cpp: Include font.h before charinfo.h.
2073         * src/roff/troff/input.cpp: Include font.h before charinfo.h.
2074         (charinfo::charinfo): Update.
2075         (name_to_index, number_to_index): Change return type to glyph_t.
2077         * src/include/printer.h (printer::set_char_and_width): Change return
2078         type to glyph_t.
2080         * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
2081         Change return type to glyph_t.
2083         * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
2084         argument type to glyph_t.
2086         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
2087         (html_printer::space_glyph): Renamed from space_char_index.
2088         (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
2089         html_printer::overstrike, html_printer::set_char): Change argument
2090         type to glyph_t.
2091         (html_printer::set_char_and_width): Change return type to glyph_t.
2093         * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
2094         argument type to glyph_t.
2096         * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
2097         argument type to glyph_t.
2099         * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
2100         space_char_index.
2101         (ps_printer::set_subencoding, ps_printer::set_char): Change argument
2102         type to glyph_t.
2104         * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
2105         argument type to glyph_t.
2107 2006-02-11  Bruno Haible  <bruno@clisp.org>
2109         * src/roff/troff/input.cpp (font::name_to_index): Never return a
2110         negative value.
2112         * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
2113         font::name_to_index.
2115 2006-02-10  Werner LEMBERG  <wl@gnu.org>
2117         * doc/groff.texinfo (Assigning Formats): Number registers are always
2118         interpolated.
2119         Apply some rephrasing, contributed by Michael Burt.
2121 2006-02-07  Werner LEMBERG  <wl@gnu.org>
2123         * tmac/fr.tmac <ms>: Set `HY' register.
2125 2006-02-07  Werner LEMBERG  <wl@gnu.org>
2127         Add framework for simple adaptation of the main macro packages (mm,
2128         me, ms, mom) to different locales.  In particular, add support for
2129         French.  For activation, simply use `-mfr' as the last macro
2130         package.  This feature has been contributed by Fabrice Ménard
2131         <menard.fabrice@wanadoo.fr>.
2133         * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
2134         New files.
2135         * tmac/README: Mention hyphen.fr.
2136         * man/groff_tmac.man: Mention fr.tmac.
2137         * NEWS: Updated.
2139 2006-01-27  Werner LEMBERG  <wl@gnu.org>
2141         * man/groff_font.man: Updated documentation of `entity_name' field.
2142         Avoid future tense.
2144 2006-01-27  Bruno Haible  <bruno@clisp.org>
2146         * font/devhtml/R.proto: Remove the entity names from the font's
2147         special_encoding_encoding column.
2148         * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
2149         handling the entity names here.
2150         (get_html_translation): Use it.  Change return type to `const
2151         char *'.
2152         (page::add_and_encode): Update, removing a useless cast.
2154 2006-01-26  Werner LEMBERG  <wl@gnu.org>
2156         This change is based on a patch by Bruno Haible <bruno@clisp.org>.
2158         * src/include/device.h: Add comments.
2159         * src/include/font.h: Add comments.
2160         * src/include/unicode.h: Likewise.
2161         * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
2163 2006-01-26  Keith Marshall  <keith.d.marshall@ntlworld.com>
2165         Suppress `.st' request emission by `grn'.
2167         * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
2168         (conv): Use it.
2170 2006-01-22  Werner LEMBERG  <wl@gnu.org>
2172         * install-sh: New version; taken from texinfo CVS.
2174 2006-01-21  Werner LEMBERG  <wl@gnu.org>
2176         * src/preproc/preconv/preconv.cpp (main): Set program_name.  Bug
2177         reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
2179 2006-01-19  Bruno Haible  <bruno@clisp.org>
2181         Let `make -k install' install more files.
2183         * Makefile.in (MAKE_K_FLAG): New variable.  Use it everywhere where
2184         $(MAKE) and $(MDEFINES) are used.
2185         (CPROGDIRS): Remove $(XPROGDIRS).  Treat $(XPROGDIRS) like
2186         $(CPROGDIRS) everywhere.
2187         ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
2188         on $(XPROGDIRS).
2189         ($(OTHERDIRS)): Likewise.
2192         * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
2193         failure test for font::name_to_index -- it can never fail.
2195 2006-01-19  Werner LEMBERG  <wl@gnu.org>
2197         * src/devices/grops/grops.man: Fix section on creating EPS files.
2198         Don't use future time in manual.
2199         Other minor fixes.
2201 2006-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2203         * tmac/www.tmac: New macro LINKSTYLE which allows users to set
2204         various typographical URL attributes for non-HTML devices.
2206         * tmac/groff_www.man: Document LINKSTYLE.
2208 2006-01-11  Werner LEMBERG  <wl@gnu.org>
2210         * configure.ac: Test for getc_unlocked (needed for localcharset).
2211         * configure, src/include/config.hin: Regenerated.
2213         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
2214         ENABLE_RELOCATABLE.
2216         * src/libs/libgroff/relocatable.h: New dummy header file for
2217         localcharset.c.
2219         * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
2220         gnulib version.
2222 2006-01-10  Bruno Haible  <bruno@clisp.org>
2224         Work around unportability of nl_langinfo(CODESET).
2226         * m4/glibc21.m4: New file, from gnulib.
2227         * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
2228         * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
2229         * Makefile.in (HOST, GLIBC21): New variables.
2230         (MDEFINES): Pass them to subdirectories.
2231         * src/include/relocate.h (relocatep): Define with C linkage.
2232         * src/include/localcharset.h: New file, from gnulib.
2233         * src/libs/libgroff/localcharset.c: New file, from gnulib with a
2234         modification for relocate().
2235         * src/libs/libgroff/config.charset: New file, from gnulib.
2236         * src/libs/libgroff/ref-add.sin: New file, from gnulib.
2237         * src/libs/libgroff/ref-del.sin: New file, from gnulib.
2238         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
2239         (OBJS): Add localcharset.o.
2240         (CSRCS): Add localcharset.c.
2241         (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
2242         (charset.alias): New rule.
2243         (PACKAGE): New variable.
2244         (ref-add.sed, ref-del.sed): New rules.
2245         (MKINSTALLDIRS): New variable.
2246         (install_data): Depend on install_charset_data.
2247         (install_charset_data): New rule for creating or updating
2248         charset.alias.
2249         (uninstall_sub): Depend on uninstall_charset_data.
2250         (uninstall_charset_data): New rule for uninstalling or updating
2251         charset.alias.
2252         * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
2253         of <langinfo.h>.
2254         (main): Initialize default_encoding from locale_charset() instead of
2255         nl_langinfo(CODESET).
2257         * aclocal.m4, configure, src/include/config.hin: Regenerated.
2259 2006-01-10  Werner LEMBERG  <wl@gnu.org>
2261         * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
2262         ICONV_CONST in call to iconv.  Reported by Robert Goulding.
2264 2006-01-07  Werner LEMBERG  <wl@gnu.org>
2266         * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2267         fontforge version.
2268         Bump font version to 001.001.
2270         * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2271         Call fontforge, not pfaedit.
2273         * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2275 2006-01-05  Ruslan Ermilov  <ru@FreeBSD.org>
2277         * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2278         * tmac/groff_mdoc.man: Updated.
2280 2006-01-05  Werner LEMBERG  <wl@gnu.org>
2282         * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2283         (raw_flag): New global variable.
2284         (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2285         Don't pass BOM to `conversion_utf8'.
2286         (usage): Updated.
2287         (main): Handle `-r' command line switch to set `raw_flag'.
2288         (get_BOM): Fix encodings in `BOM_table'.
2290         * src/preproc/preconv/preconv.man: New file.  Not complete yet.
2291         * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2293 2006-01-04  Werner LEMBERG  <wl@gnu.org>
2295         * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2296         Bruno, comment out most encodings to support only a small set of
2297         coding tags, thus reducing potential problems with legacy encodings
2298         and character sets in the future.
2299         Add many XEmacs coding tags (now commented out).
2300         Add `cp1047'.
2301         (check_encoding_tag): Renamed to...
2302         (check_coding_tag): This.
2303         (get_BOM): Return encoding as specified by BOM.
2304         Test for UTF32-LE too.
2305         (do_file): Don't check for coding tag if a BOM has been found.
2307 2006-01-03  Bruno Haible  <bruno@clisp.org>
2309         * m4/groff.m4: Renamed from aclocal.m4.
2310         * m4/codeset.m4: New file, from gnulib.
2311         * m4/iconv.m4: New file, from gnulib.
2312         * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2313         gnulib.
2314         * config.rpath: New file, from gnulib.
2315         * config.guess, config.sub: New files, from gnulib.
2316         * Makefile.sub (M4MACROS): New variable.
2317         (configure): Fix typo.
2318         (aclocal.m4): New rule.
2319         (stamp-h.in): Depend on aclocal.m4.
2320         * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2321         * Makefile.in (LIBICONV): New variable.
2322         (MDEFINES): Pass it to recursive makes.
2323         * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2324         HAVE_ICONV instead of I18N macro.
2325         * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2327         * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2329 2006-01-03  Werner LEMBERG  <wl@gnu.org>
2331         * doc/Makefile.in (webpage.html): Simplify.
2332         * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2333         * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2335 2006-01-01  Werner LEMBERG  <wl@gnu.org>
2337         * tmac/doc-common (Os): Add some Darwin versions.
2338         * tmac/groff_mdoc.man: Document them.
2340 2006-01-01  Bruno Haible  <bruno@clisp.org>
2342         * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2343         corrections:
2344           . Don't map ascii to latin-1.
2345           . Don't use IBMxxx encodings but cpxxx for portability.
2346           . Map cp932, cp936, cp949, cp950 to itself.
2347         (emacs2mime): Protect calls to strcasecmp.
2348         (conversion_iconv): Add missing call to iconv_close.
2349         (do_file): Emit error message in case of unsupported encoding.
2351 2005-12-31  Werner LEMBERG  <wl@gnu.org>
2353         Integrate preconv into the groff binary.  Changes based on a patch
2354         from Michail Vidiassov.
2356         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2358         * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2359         (SOELIM_INDEX): Updated.
2360         (help, synopsis): Updated.
2361         (main): Add command line options `-k' and `-K enc' to select
2362         encoding.
2363         Add support for GROFF_ENCODING environment variable.
2365         * src/roff/groff/groff.man: Updated and revised.
2368         Start with autoconf support for preconv.
2370         * configure.ac: Call AC_C_BIGENDIAN.
2371         * configure, src/include/config.hin: Regenerated.
2373 2005-12-30  Werner LEMBERG  <wl@gnu.org>
2375         New preprocessor `preconv' to convert input encodings to something
2376         groff can understand.  Not yet integrated within groff.  Proper
2377         autoconf stuff is missing too.
2379         Tomohiro Kubota has written a first draft of this program, and some
2380         ideas have been reused (while almost no code has been taken
2381         actually).
2383         * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2384         New files.
2386         * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2387         (GROFF_BIN_PATH): Add preconv.
2389 2005-12-12  Werner LEMBERG  <wl@gnu.org>
2391         * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2392         In particular, don't use `\+' since it is a GNU sed extension.
2394         * configure: Regenerated.
2396 2005-12-09  Werner LEMBERG  <wl@gnu.org>
2398         * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp. 
2400         * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2401         4.1.0.
2404         * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2405         afmtodit.tables.
2407         * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2408         4.1.0 data.
2410         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2411         %AGL_to_unicode): Removed.  Replace it with a tag.
2413         * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2414         to replace tag with actual file contents.
2416 2005-12-08  Werner LEMBERG  <wl@gnu.org>
2418         The change 2005-06-20 can indeed cause problems, so we follow the
2419         advice by using marks.
2421         * font/devps/prologue.ps (PBEGIN): Use `mark'.
2422         (PEND): Use `cleartomark'.
2424 2005-12-07  Michail Vidiassov  <master@iaas.msu.ru>
2426         * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2427         glyphs which have kern values but aren't handled (glyph variants,
2428         for example).
2430 2005-12-02  Werner LEMBERG  <wl@gnu.org>
2432         * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2433         subfont index.  Reported by Michail Vidiassov <master@iaas.msu.ru>.
2435 2005-11-28  Gaius Mulley  <gaius@glam.ac.uk>
2437         * doc/Makefile.in: Separate rule for webpage.html so that extra
2438         command line options can be passed to grohtml.
2439         * doc/groff.css: Change all margins to 0%.
2440         * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2441         navigation is exploited.  Also update webpage to contain new
2442         sections on licenses, mailing lists, cvs/ftp access, groff
2443         dependencies, and bug reports.
2444         * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2445         * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2446         
2447 2005-11-25  Gaius Mulley  <gaius@glam.ac.uk>
2449         * src/devices/grohtml/post-html.cpp
2450         (html_printer::do_file_components): Add fputs calls to emit the
2451         head contents and shut down the head tag whenever a new file
2452         component is generated.
2454 2005-11-22  Gaius Mulley  <gaius@glam.ac.uk>
2456         * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2457         call to flush_text to flush any outstanding html tags on the
2458         paragraph stack.
2460 2005-11-18  Werner LEMBERG  <wl@gnu.org>
2462         * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2463         Announce makeinfo version.
2464         * configure: Regenerated.
2466 2005-11-18  Mike Frysinger <vapier@gentoo.org>
2468         * Makefile.in: Declare proper dependencies between make targets.
2470         * doc/Makefile.in: Rename groff info page to `groff.info'.
2471         * doc/Makefile.sub: Likewise.
2472         * doc/groff.texinfo: Likewise.
2474 2005-11-17  Peter O'Gorman  <mlists@thewrittenword.com>
2476         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2477         definition of __GETOPT_PREFIX to the beginning of file to ensure
2478         that it is defined even on platforms where getopt.h is already
2479         included by other header files.
2481 2005-11-10  Gaius Mulley  <gaius@glam.ac.uk>
2483         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2484         Reset font to NULL to ensure that a font block is recreated during
2485         the next paragraph.
2487 2005-11-04  Werner LEMBERG  <wl@gnu.org>
2489         * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2490         * configure: Regenerated.
2492 2005-10-27  Werner LEMBERG  <wl@gnu.org>
2494         * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2495         makeinfo 4.8 or newer is available.
2496         * configure.ac: Call GROFF_MAKEINFO.
2497         * configure: Regenerated.
2499         * Makefile.in (MAKEINFO): Use autoconf variable.
2500         (MDEFINES): Add MAKEINFO.
2502         * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2503         * doc/Makefile.sub (MAKEINFO): Remove.
2505 2005-10-26  Werner LEMBERG  <wl@gnu.org>
2507         * REVISION: Set to 3.
2509 2005-10-17  Werner LEMBERG  <wl@gnu.org>
2511         Mention $MANPAGER variable used with some `man' systems.
2513         * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2515 2005-09-13  Werner LEMBERG  <wl@gnu.org>
2517         * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2519 2005-09-04  Werner LEMBERG  <wl@gnu.org>
2521 Version 1.19.2 released
2522 =======================
2524         * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2526         * doc/webpage.ms: Updated.
2528         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2530 2005-09-04  Jörgen Grahn <jgrahn@algonet.se>
2532         * tmac/groff_ms.man: Document `PO' better.
2534 2005-09-03  Werner LEMBERG  <wl@gnu.org>
2536         * NEWS: Document grotty changes.
2538 2005-09-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2540         Backward compatibility support for `man' program.
2542         * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2543         assignment, prior `.ll' request and then package defaults, in this
2544         specified order of decreasing priority.
2546         * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2547         altered `LL' register initialization priorities.
2549 2005-08-29  Gary W. Swearingen  <garys@opusnet.com>
2551         * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2552         section should look like.
2554 2005-08-29  Werner LEMBERG  <wl@gnu.org>
2556         * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2557         be abbreviated.
2559 2005-08-27  Bernd Warken
2561         * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2562         fixes.
2564 2005-08-11  Bernd Warken
2566         * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
2568 2005-08-09  Bernd Warken
2570         * tmac/www.tmac (URL, MTO): Use bold series if color support is
2571         deactivated.
2573 2005-08-02  Bernd Warken
2575         * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
2576         as argument to $(INSTALL_INFO).  The latter isn't portable.
2577         Remove $(HTMLEXAMPLEFILES) too.
2579         * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
2580         $(datadir)/doc too.
2581         Suppress warning messages and return always true.
2583         * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
2585 2005-07-02  Bernd Warken
2587         * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
2588         * man/groff_out.man: More markup and minor improvements.
2589         * src/roff/groff/groff.man: Minor improvements.
2591 2005-06-28  Werner LEMBERG  <wl@gnu.org>
2593         * ChangeLog: Split off older entries into...
2594         * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
2595         files.
2597 2005-06-26  Bernd Warken
2599         * src/devices/xditview/gxditview.man: More minor fixes.
2601 2005-06-24  Werner LEMBERG  <wl@gnu.org>
2603         * src/preproc/pic/troff.cpp (troff_output::set_fill,
2604         troff_output::set_color, troff_output::reset_color): Use .bcolor and
2605         .fcolor instead of \m and \M, respectively.
2607 2005-06-23  Bernd Warken
2609         * src/devices/xditview/gxditview.man: More minor fixes.
2610         * README: Formatting issues.
2611         Mention some problems with Debian.
2613 2005-06-23  Bernd Warken
2615         * src/devices/xditview/gxditview.man: Revised and improved.
2617 2005-06-22  Werner LEMBERG  <wl@gnu.org>
2619         Another round in fixing getopt problems.  Hopefully the last one!
2620         This time we use the getopt stuff from gnulib and define a prefix
2621         unconditionally so that there are no collisions with any other
2622         getopt implementations.  This is a slight waste of space in case
2623         we already use a GNU getopt implementation, but on
2624         the other hand it really simplifies life.
2626         * src/include/getopt.h: Use gnulib version.
2628         * src/include/getopt_int.h: Use gnulib version.
2630         * src/include/groff-getopt.h: Removed.  Obsolete now.
2632         * src/include/lib.h: Regarding getopt, don't handle any platform
2633         specially; just include getopt.h.
2634         (__GETOPT_PREFIX): Define (before getopt.h).
2636         * src/include/Makefile.sub (HDRS): Updated.
2638         * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
2639         gnulib version.
2641         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
2642         __GETOPT_PREFIX.
2644         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
2645         (__GETOPT_PREFIX): Define (before getopt.h).
2647 2005-06-21  Werner LEMBERG  <wl@gnu.org>
2649         * src/include/lib.h: Provide a fix for Mac OS X to not include
2650         groff-getopt.h.
2652 2005-06-20  Denis M. Wilson  <dmw@oxytropis.plus.com>
2654         * font/devps/prologue.ps (EP): Dont' use `bind'.  Reason: Using
2655         `bind' to define a procedure which contains `showpage' means that an
2656         invocation of `showpage' may execute wrongly (the exact effect
2657         depending on the interpreter).  Not usually a problem except under
2658         transformations, such as combining pages.
2659         (PEND): Don't call `clear'.  Reason: Using `clear' in the definition
2660         of /PEND means that stack underflow will occur if the stack is
2661         deliberately non-empty before document inclusion.  If included
2662         files are found to be generally badly behaved, we could replace the
2663         `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
2664         never found this necessary).
2666 2005-06-20  Jörgen Grahn  <jgrahn@algonet.se>
2668         * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
2669         earlier to get correct error message.
2671 2005-06-16  Bernd Warken
2672         * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
2674 2005-06-15  Werner LEMBERG  <wl@gnu.org>
2676         Another try to update getopt files.  This time we add a dummy
2677         gettext.h file to satisfy the dependency.
2679         * src/include/getopt.h, src/libs/libgroff/getopt.c,
2680         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2682         * src/include/getopt_int.h: New file (from GNU libc CVS).
2684         * src/include/gettext.h: Dummy file which just defines a gettext()
2685         macro.
2687         * src/include/groff-getopt.h: Updated.
2689         * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
2692         * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
2693         `const' keywords in return value.
2695         * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
2696         Remove redundant variable `old'.
2697         (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
2699         * src/preproc/tbl/main.cpp (process_table): Remove redundant
2700         variable `c'.
2703         Fix more friend name injection problems since modern C++ compilers
2704         fail otherwise.  We simply provide (global) declarations for all
2705         functions declared as friends.  This is not really necessary but
2706         doesn't harm.
2708         * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
2709         peek_char, and get_location.
2711         * src/preproc/refer/ref.h: Provide declarations for
2712         compare_reference, same_reference, same_year, same_date,
2713         same_author_last_name, and same_author_name.
2715         * src/roff/troff/div.h: Provide declarations for do_divert and
2716         page_offset.
2718         * src/roff/troff/env.h: Provide declarations for title_length,
2719         space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
2720         vertical_spacing, post_vertical_spacing, line_spacing, line_length,
2721         indent, temporary_indent, do_underline, do_input_trap, set_tabs,
2722         margin_character, no_number, number_lines, leader_character,
2723         tab_character, hyphenate_request, no_hyphenate,
2724         hyphen_line_max_request, hyphenation_space_request,
2725         hyphenation_margin_request, line_width, tabs_save, tabs_restore,
2726         line_tabs_request, widow_control_request, and do_divert.
2728         * src/roff/troff/input.cpp: Provide declaration for chop_macro.
2730         * src/roff/troff/node.cpp: Provide declarations for class
2731         tfont_spec.
2732         Provide declaration for make_tfont.
2734 2005-05-29  Werner LEMBERG  <wl@gnu.org>
2736         * doc/fdl.texi: Updated to version 1.2.  Reported by Bernd Warken.
2738 2005-05-28  Werner LEMBERG  <wl@gnu.org>
2740         * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
2741         redundant semicolons.
2743         * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
2744         src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
2745         Define `MLIB'.  Some compilers need this for linking with libgroff.
2747 2005-05-27  Werner LEMBERG  <wl@gnu.org>
2749         * MANIFEST, README, doc/webpage.ms: Updated.
2751 2005-05-26  Werner LEMBERG  <wl@gnu.org>
2753         * All affected files: Update postal address of FSF.
2755 2005-05-25  Keith Marshall  <keith.d.marshall@ntlworld.com>
2756             Bernd Warken
2758         * README: More fixes.
2760         * README.CVS: Removed.  Its contents is now part of the README file.
2762 2005-05-21  Werner LEMBERG  <wl@gnu.org>
2764         * README: Updated.  Based on a patch from Bernd Warken.
2766 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2768         Miscellaneous script portability enhancements.
2770         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
2771         generated conftest.sh script, conforming to portability
2772         recommendation in autoconf docs.
2773         * configure: Likewise, for code generated by GROFF_CSH_HACK.
2774         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
2775         to portability recommendation in autoconf docs.
2776         * contrib/grap2graph/grap2graph.sh: Likewise.
2777         * contrib/pic2graph/pic2graph.sh: Likewise.
2778         * font/devps/generate/afmname: Likewise.
2779         * src/devices/xditview/ad2c: Likewise.
2780         * src/preproc/eqn/neqn.sh: Likewise.
2781         * src/roff/grog/grog.pl: Likewise.
2782         * src/roff/grog/grog.sh: Likewise.
2783         * src/roff/nroff/nroff.sh: Likewise.
2784         * PROBLEMS: Likewise, in embedded script examples.
2786 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2788         Improve portability of `pdfroff' shell script.
2790         * arch/misc/shdeps.sh: Add space in shebang, conforming to
2791         portability guidelines in `autoconf' docs.
2792         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
2793         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
2794         `searchpath' function.
2796 2005-05-14  Werner LEMBERG  <wl@gnu.org>
2798         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
2799         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
2800         needed for newer ImageMagick versions.
2802 2005-05-07  Werner LEMBERG  <wl@gnu.org>
2804         * src/preproc/refer/refer.man: Many small typographic fixes.
2806 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
2808         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
2809         Use `char *' cast for a_delete.
2811 2005-05-03  Werner LEMBERG  <wl@gnu.org>
2813         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
2814         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
2816 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
2818         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
2819         `a_delete' for `const char *'.
2821 2005-05-03  Werner LEMBERG  <wl@gnu.org>
2823         * src/devices/grohtml/post-html.cpp,
2824         src/devices/grohtml/html-table.cpp,
2825         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
2826         Replace malloc/free with new/delete/a_delete.
2828         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
2829         are prohibited with ANSI C++.
2830         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
2831         function has a variable number of arguments).
2833         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
2834         Simplify function and update all callers.
2836 2005-05-02  Werner LEMBERG  <wl@gnu.org>
2838         Undo getopt changes from 2005-04-30.  We don't want a dependency
2839         on gettext.
2841         * src/include/getopt_int.h: Removed.
2843         * src/include/getopt.h, src/include/groff-getopt.h,
2844         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
2845         src/libs/libgroff/getopt1.c: Revert to previous version.
2848         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
2850         * src/include/posix.h (F_OK): Define conditionally.
2852         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
2853         different variable name in second `for' loop to avoid MSVC compiler
2854         problem.
2856 2005-04-30  Werner LEMBERG  <wl@gnu.org>
2858         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
2860         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
2861         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
2862         * configure, src/include/config.hin: Regenerated.
2864         * PROBLEMS: Updated.
2867         Update getopt files.
2869         * src/include/getopt.h, src/libs/libgroff/getopt.c,
2870         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2872         * src/include/getopt_int.h: New file (from GNU libc CVS).
2874         * src/include/groff-getopt.h: Updated.
2876         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
2879         * font/devutf8/NOTES: Updated.
2881 2005-04-28  Werner LEMBERG  <wl@gnu.org>
2883         Bug fix for Win32 relocatable code.  Based on a patch from Keith
2884         Marshall.
2886         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
2887         also.
2889         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
2890         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
2892 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
2894         Correct `gnu.eps' handling for build from distribution tarball, with
2895         separate source and build directories.
2897         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
2898         grnexmpl.g, groff.css and gnu.eps from source to build directory;
2899         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
2900         (prepare_examples): Make it depend on examples.stamp.
2901         (CLEANADD): Add examples.stamp.
2903 2005-04-27  Werner LEMBERG  <wl@gnu.org>
2905         Implement the rule
2907           position: `(' position `)'
2909         in pic.
2911         * src/preproc/pic/pic.y (position, position_not_place): Handle
2912         additional parentheses.
2914         * doc/pic.ms: Updated.
2916 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
2918         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
2920 2005-04-18  Werner LEMBERG  <wl@gnu.org>
2922         * src/roff/groff/pipeline.c: Don't include ctype.h.
2924 2005-04-13  Werner LEMBERG  <wl@gnu.org>
2926         * src/roff/nroff/nroff.man: Document option `-M'.
2928 2005-04-13  Bruce Lilly  <blilly@erols.com>
2930         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
2932 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
2933             Werner LEMBERG  <wl@gnu.org>
2935         Add binary relocation support for Windows platforms.
2937         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
2939         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
2941         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
2942         (search_path::search_path, search_path::open_file_cautious): Use
2943         `relocate'.
2945         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2946         src/include/Makefile.sub (HDRS): Updated.
2948 2005-04-01  Werner LEMBERG  <wl@gnu.org>
2950         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
2951         strsave/a_delete.
2953         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
2955         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
2956         lib.h already does it.
2958         * src/libs/libgroff/maxpathname.cpp: New file, defining
2959         path_name_max.
2961         * src/include/lib.h: Add prototype for path_name_max.
2963         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
2965         * src/include/nonposix.h (PATH_EXT): New macro.
2967 2005-03-28  Werner LEMBERG  <wl@gnu.org>
2969         Add support for double- and zero-width characters in grotty.
2971         * src/devices/grotty/tty.cpp (glyph): Add width.
2972         (tty_printer::make_underline, tty_printer::make_bold,
2973         tty_printer::add_character): Add parameter to pass character width.
2974         Update all callers.
2975         (tty_printer::end_page): Increase hpos by actual character width.
2977         * font/devutf8/R.proto: Specify zero width for non-spacing
2978         characters.
2980         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
2982         * Makefile.comm (extraclean): Remove more junk files.
2984 2005-03-25  Werner LEMBERG  <wl@gnu.org>
2986         * configure.ac: Undo change from 2005-03-24.
2987         * configure: Regenerated.
2989 2005-03-24  Werner LEMBERG  <wl@gnu.org>
2991         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
2992         (dist): Search Makefile while descending into $(EXTRADIRS).
2994         * doc/Makefile.in (.PHONY): Add.
2995         (clean): Don't remove *.png and *.eps.
2996         Don't handle *.gif.
2997         (realclean): Remove *.png and *.eps.
2998         (extraclean): Depend on distclean.
3000         * configure.ac: Add copyright.
3001         Handle contrib/pdfmark/Makefile.
3003         * configure: Regenerated.
3005 2005-03-18  Larry Kollar  <kollar@alltel.net>
3007         Add numbered and definition lists to www.tmac.
3009         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
3010         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
3011         auxiliary string registers.
3012         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
3013         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
3014         (www-level): Removed.
3015         (www-level1, www-level2, www-level3): Initialize to empty.
3016         (www-level0, www-level4, www-level5, www-level6, www-level7,
3017         www-level8, www-level9): New string registers.
3018         (www-push-li, www-pop-li): New macros.
3019         (www-push-level, www-pop-level): Renamed to...
3020         (www-push-ul-level, www-pop-ul-level): This.
3021         Updated.
3022         (www-push-ol-level, www-pop-ol-level): New macros.
3023         (ULS, ULE): Updated.
3024         (OLS, OLE, DLS, DLE): New user macros.
3025         (LI): Removed.  It is aliased to one of...
3026         (www-li-ul, www-li-ol, www-li-dl): New macros.
3028         * tmac/groff_www.man: Document new macros.
3030         * NEWS: Updated.
3032 2005-03-18  Werner LEMBERG  <wl@gnu.org>
3034         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
3035         doc-operating-system-NetBSD-2.0.2): New strings.
3037         * tmac/groff_mdoc.man: Updated.
3039 2005-03-17  Werner LEMBERG  <wl@gnu.org>
3041         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
3043 2005-03-17  Werner LEMBERG  <wl@gnu.org>
3045         * src/libs/libgroff/hypot.c: Renamed to...
3046         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
3048         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
3050         * src/include/lib.h: Updated.
3052 2005-03-16  Werner LEMBERG  <wl@gnu.org>
3054         Add workaround for broken hypot() on Interix.
3056         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
3058         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
3059         (CSRCS): Add `hypot.c'.
3061         * src/include/lib.h: Declare `groff_hypot'.
3063         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
3064         Use `groff_hypot'.
3066         * src/preproc/pic/pic.h: Don't declare `hypot'.
3068         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
3070 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
3072         * src/devices/grohtml/post-html.cpp
3073         (html_printer::lookahead_for_tables): End .ce properly to avoid a
3074         segfault.
3076 2005-03-15  Werner LEMBERG  <wl@gnu.org>
3078         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
3080         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
3082         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
3084 2005-03-14  Werner LEMBERG  <wl@gnu.org>
3086         Add Cyrillic support to devutf8 and devhtml.
3088         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
3090         * tmac/unicode.tmac: New file.
3092         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
3094         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
3096         * NEWS: Updated.
3098 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
3100         * src/libs/libdriver/printer.cpp (check_for_output_error): New
3101         function.  It has been introduced to catch peculiar error contexts
3102         on MS-Windows platforms.
3104 2005-02-28  Werner LEMBERG  <wl@gnu.org>
3106         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
3107         null pointer.
3109         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
3111         * configure: Regenerated.
3113         * NEWS: Updated.
3115 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
3117         Integrate `pdfmark' into normal groff build system;
3118         install macro `pdfmark' packages, build and install `pdfroff',
3119         and PDF format documentation.
3121         * Makefile.comm: Add PDFDOCDIR.
3123         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
3124         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
3125         (unstall_dirs): Add pdfdocdir.
3127         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
3128         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
3129         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
3130         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
3131         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
3132         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
3133         set ALT_AWK_PROGS.
3134         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
3135         use of GROFF_AWK_PREFS.
3136         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
3137         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
3139         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
3140         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
3141         also by modified GROFF_HTML_PROGRAMS).
3143 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
3145         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
3146         paragraph spacing.
3147         (html_text::done_para): Unset `start_space'.
3148         (html_text::remove_para_align): Call `retrieve_para_space' for the
3149         spacing.
3151         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
3152         `seen_space'.
3153         (html_printer::do_check_center): Emit vertical space if necessary.
3155         * src/roff/troff/env.cpp (environment_switch): Preserve
3156         `seen_space', `seen_eol', and `suppress_next_eol' while switching
3157         environments.
3159         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
3160         `is_special'.
3162 2005-02-20  Werner LEMBERG  <wl@gnu.org>
3164         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
3165         eqn.
3167 2005-02-17  Werner LEMBERG  <wl@gnu.org>
3169         * doc/pic.ms, man/groff.man: Fix typos.
3171         * doc/groff.texinfo: Fix typos.
3172         (\LEmacro): Get proper mathematical spacing.
3174 2005-02-16  Werner LEMBERG  <wl@gnu.org>
3176         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
3177         * configure: Regenerated with autoconf 2.59b.
3179 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
3181         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
3182         html_printer::start_font): Fix handling of preformatted text.
3184 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
3186         These patches modify the indentation implementation to use `<p
3187         style=margin-left: n%>'.  Many thanks to Peter and Larry for
3188         suggesting this solution.  Grohtml only uses tables for `.IP' and
3189         related tags when the first operand has a short width.
3191         Similarly, they modify all vertical space code.  By default, grohtml
3192         sets up a style sheet which uses no vertical space between `table',
3193         `pre', and `p' tags.  It forces spaces when it needs them using
3194         `style="margin-top: 1em"'.
3196         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
3197         (html_table::emit_table_header, html_table::emit_new_row):
3198         Rewritten.
3199         (html_table::set_space): New function.
3200         (html_indent::html_indent): Don't set `is_used'.
3201         (html_indent::begin): Rewritten.
3202         (html_indent::end): Remove code in function.
3204         * src/devices/grohtml/html-table.h: Updated.
3205         (html_table): Make `out' public.
3207         * src/devices/grohtml/html-text.cpp (html_text::html_text):
3208         Initialize `start_space' with FALSE.
3209         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
3210         (html_text::issue_tag): Add argument to handle space style.
3211         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
3212         (html_text::flush_text): Don't set `start_space'.
3213         (html_text::push_para): Don't set `p->really_issued'.
3214         (html_text::do_emittext): Updated.
3215         (html_text::do_para): Add paremeter to handle space.
3216         Update all callers.
3217         (html_text::retrieve_para_space): New function.
3219         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
3220         (tag_definition): Remove `really_issued'.
3221         (html_text): Updated.
3223         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
3224         `current_column' and `row_space'.
3225         Update constructor.
3226         (html_printer::emit_raw, html_printer::write_header,
3227         html_printer::do_indent, html_printer::do_check_center,
3228         html_printer::do_tab_ts): Handle vertical space.
3229         (html_printer:do_tab_te, html_printer::do_end_para): Call
3230         `remove_para_space'.
3231         (html_printer::do_col): Rewritten.
3232         (html_printer::flush_globs): Remove debugging code.
3233         (html_printer::is_line_start): New function.
3234         (html_printer::start_font): Use `is_line_start'.
3235         (html_printer::writeHeadMetaStyle): New function.
3236         (html_printer::do_file_components, html_printer::~html_printer):
3237         Call `writeHeadMetaStyle'.
3239         * tmac/www.tmac (www-handle-percent): New macro.
3240         (MPIMG): Handle percent values for width and height parameters.
3241         (DC): Updated.
3243         * tmac/groff_www.man: Updated.
3245 2005-02-14  Werner LEMBERG  <wl@gnu.org>
3247         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
3248         $psname and $italic_angle.
3249         Immediately restart file input loops if `split' returns an empty
3250         array.
3252 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
3253             Werner LEMBERG  <wl@gnu.org>
3255         Update afmtodit to better support Unicode (Michail).
3256         Update afmtodit to use Perl 5 syntax (Werner).
3258         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
3259         `Getopts::Std'.
3260         Decorate variables with `my' where necessary.
3261         Use `defined' where necessary to avoid warnings.
3262         Don't use `do' for subroutine calls.
3263         Other minor syntax updates.
3264         Check for both `uXXXX[X[X]]' and `uniXXXX'.
3265         Handle glyph variants properly.
3266         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3267         strings.
3269         * src/utils/afmtodit/afmtodit.man: Updated.
3271 2005-02-13  Werner LEMBERG  <wl@gnu.org>
3273         Make groff.texinfo work with texinfo 4.8.
3275         * doc/groff.texinfo (@Var): Use @r and @slanted.
3276         (@defdummy, @Def*): Use @c to avoid empty lines.
3277         (\angles): Replaced with...
3278         (\Langlemacro, \Ranglemacro): New TeX macros.
3279         (@Langlemacro, @Ranglemacro): New variables defined with @set.
3280         (@angles): Use @Langlemacro and @Ranglemacro.
3281         (\LE): Replaced with...
3282         (\LEmacro): New TeX macro.
3283         (@LEmacro): New variable defined with @set.
3284         (@LE): Use @LEmacro.
3285         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3286         variables defined with @set.
3287         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3288         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3289         Update all callers.
3291         Other minor updates.
3293         * doc/texinfo.tex: Update to texinfo version 4.8.
3295         * README.CVS: Updated.
3297 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3299         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3300         and `FAM' registers.
3302 2005-02-05  Werner LEMBERG  <wl@gnu.org>
3304         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3305         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3306         Update BSD license.
3308 2005-02-01  Werner LEMBERG  <wl@gnu.org>
3310         * src/roff/groff/groff.man: Add information about paper size.
3312 2005-01-25  Werner LEMBERG  <wl@gnu.org>
3314         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
3315         NetBSD bin/29114.
3317 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
3319         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
3320         cases.
3321         (Re): Emit a warning if called without `.Rs'.
3322         (doc-finish-reference): Use parameter for decreasing
3323         `doc-reference-count'.
3324         (doc-print-reference): Pass specific count parameters to
3325         `doc-finish-reference'.
3327 2005-01-21  Werner LEMBERG  <wl@gnu.org>
3329         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3330         Reset pointers to zero after deallocation.  This fixes a crash
3331         if a driver is called with multiple input files.  Reported by
3332         Ken Chilton <ken@chiltonfamily.org>.
3334         * src/devices/grops/grops.man: Add more info on DSC.
3336 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
3338         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3339         Remove dead code.
3341 2005-01-17  Werner LEMBERG  <wl@gnu.org>
3343         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3344         against division by zero.
3346 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
3348         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3350 2004-12-19  Werner LEMBERG  <wl@gnu.org>
3352         * install-sh: New version; taken from texinfo CVS.
3354 2004-12-17  Werner LEMBERG  <wl@gnu.org>
3356         * tmac/devtag.tmac: Protect against loading twice.
3357         Protect agains compatibility mode.
3358         * tmac/www.tmac: Protect against loading twice.
3359         Load `devtag.tmac' before switching off compatibility mode.
3360         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3362 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
3364         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3365         * configure: Updated.
3367 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
3369         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3371 2004-12-15  Werner LEMBERG  <wl@gnu.org>
3373         Make `test-groff' work again -- previously, wrong paths have been
3374         used.  Additionally, it can now be called from anywhere.
3376         * test-groff.in: Don't test for groff binary.  This is no longer
3377         necessary since the proper paths are determined by `configure'.
3378         (EXEEXT): Removed.  No longer used.
3379         (srcdir, builddir): Use values provided by the configure script.
3380         (XENVIRONMENT): Updated.
3382         * INSTALL: Updated.
3384 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
3386         Make .tag and .taga work for all devices (but only grohtml actually
3387         handles them).
3389         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3390         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3391         html_printer::handle_assertion): Don't use hard-coded string
3392         lengths.
3393         (html_printer::lookahead_for_table): Reset `tbl' properly if
3394         necessary.
3395         (html_printer::devtag): New function, handling `devtag'.
3396         (html_printer::special): Don't handle `html-tag'.
3398         * src/include/printer.h, src/libs/libdriver/printer.cpp
3399         (printer::devtag): New virtual function.
3401         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3402         `devtag'.
3404         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3405         src/roff/troff/node.cpp: s/html-tag/devtag/.
3407         * src/roff/troff/input.cpp (tag, taga): Always call
3408         curenv->add_node.
3410         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3411         macros instead of HTML-TAG*.
3413         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3415         * tmac/www.tmac: Load devtag.tmac.
3416         Replace HTML-TAG* macros with DEVTAG* macros.
3417         (HTML, HTML-NS): Changed definitions.
3418         (URL): Use HTML-NS.
3419         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3421         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3423 2004-12-10  Werner LEMBERG  <wl@gnu.org>
3425         Import Mike's `gdiffmk' package.
3427         * contrib/gdiffmk/*: New files.
3428         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3429         * NEWS: Updated.
3431 2004-12-08  Werner LEMBERG  <wl@gnu.org>
3433         Import Keith's `pdfmark' package.  Integration is very preliminary.
3435         * contrib/pdfmark/*: New files.
3436         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3437         * NEWS: Updated.
3439 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
3441         Fix a bug with title handling in HTML.
3443         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3444         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3445         length.
3446         (html_printer::handle_tag_within_title): New function.
3447         (html_printer::do_title): Use it.
3449         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3450         (cov*tl-au-print): Emit `.eo.tl' tag.
3452 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
3454         * man/groff_char.man: Minor imrovements.
3456 2004-12-04  Werner LEMBERG  <wl@gnu.org>
3458         * src/preproc/eqn/eqn.man: Revised.
3460 2004-11-25  Werner LEMBERG  <wl@gnu.org>
3462         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3463         groff source files.
3464         Include config.h.
3465         Include limits.h.
3466         Remove X_NOT_STDC_ENV conditional.
3467         (Version_string, program_name): New global variables.
3468         (groff_flag): Removed.
3469         (MapFont): Updated.
3470         (usage): Take a stream as argument.
3471         Use `program_name'.
3472         Update all callers.
3473         (main): Add `long_options' array for `--help' and `--version'.
3474         Make `-g' a dummy option.
3475         Handle `-v' and unknown options.
3476         Remove unused `position' variable.
3478         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3479         (XLIBS): Add LIBGROFF.
3481         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3482         New files.
3484         * src/devices/xditview/Dvi.c (default_font_map): Split into three
3485         parts to avoid compiler warning.
3486         (resources): Don't initialize with `default_font_map'.
3487         (ClassInitialize): Initialize first element of `resources'.
3489         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3490         Removed.
3492         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3493         src/utils/pfbtops/pfbtops.man: Revised, updated.
3495         * configure.ac: Generate src/utils/xtotroff/Makefile.
3496         * configure: Regenerated.
3498 2004-11-24  Werner LEMBERG  <wl@gnu.org>
3500         First fixes to get produce HTML.
3502         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3503         attribute.
3505         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3506         (HR, LI): Use `HTML</p>', not `HTML'.
3508         * doc/webpage.ms: Minor updates.
3510 2004-11-23  Larry Kollar  <kollar@alltel.net>
3512         Add option -S grohtml to determine the file split level.
3514         * src/devices/grohtml/post-html.cpp (split_level): New global
3515         variable.
3516         (html_header::determine_header_level): Use split_level.
3517         (main): Handle `-S' command line option.
3518         Sort options.
3520         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3522         * src/devices/grohtml/grohtml.man: Document it.
3523         Sort options.
3525         * NEWS: Document it.
3527 2004-11-23  Y T  <doarhop@hotmail.com>
3529         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3530         the volume and number refer entries.
3532 2004-11-22  Werner LEMBERG  <wl@gnu.org>
3534         * src/devices/grohtml/html-table.cpp
3535         (html_table::emit_table_header): Don't emit `cols' attribute which
3536         doesn't exist in HTML 4.0 and is thus invalid.
3538         * NEWS: More minor fixes and updates.
3540 2004-11-18  Werner LEMBERG  <wl@gnu.org>
3542         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3543         (HTML</p>): Minor clean-up.
3545         * tmac/groff_www.man: Updated.
3547         * src/devices/grohtml/grohtml.man: Revised and updated.
3549         * NEWS: Updated.
3551 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
3553         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3554         Fix space insertion.
3555         (html_printer::do_links): Fix rules generation around automatic
3556         heading links.
3558         * tmac/www.tmac (LK): Use HTML-TAG-NS.
3559         (HR): Simplify.
3560         No longer emit empty line for non-HTML devices.
3562 2004-11-17  Werner LEMBERG  <wl@gnu.org>
3564         * doc/Makefile.in (prepare_examples, webpage.html): Handle
3565         `groff.css'.
3567         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
3568         prepare_examples, webpage.html): Handle `groff.css'.
3570 2004-11-15  Werner LEMBERG  <wl@gnu.org>
3572         * NEWS, README, doc/webpage.ms: Updated.
3574         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
3576 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
3578         * src/include/printer.h (printer): Remove virtual function
3579         `round_width'.
3580         Update all source files.
3582         * src/devices/grohtml/post-html.cpp (html_printer): New member
3583         function `round_width'.
3585 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3587         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
3588         column key letter suffix.
3590 2004-10-14  Werner LEMBERG  <wl@gnu.org>
3592         * Makefile.in (check): Depend on `site.exp' and `docheck'.
3593         (docheck): Run dejagnu's `runtest' if it exists.
3594         (site.exp): Create dejagnu configuration file.
3596         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
3598 2004-10-13  Werner LEMBERG  <wl@gnu.org>
3600         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
3601         src/devices/grohtml/post-html.cpp (make_val,
3602         html_printer::handle_state_assertion): Fix compiler warnings.
3604         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
3605         (diversion::diversion): Fix order of initializers.
3607         * src/roff/troff/div.h: Don't include `mtsm.h'.
3609         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
3610         (environment::environment): Fix order of initializers.
3611         (environment::make_tag, environment::construct_format_state): Fix
3612         compiler warnings.
3614         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
3615         (input_iterator::input_iterator, macro::macro): Fix order of
3616         initializers.
3618         * src/roff/troff/mtsm.cpp: Include only necessary header files.
3619         (state_set::add, state_set::val): Fix compiler warnings.
3621         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
3622         (bool_value_state, int_value_state, units_value_state,
3623         string_value_state): Remove comma after last element which causes
3624         an error with g++ 3.3.3.
3626         * src/roff/troff/node.cpp: Include `stringclass.h'.
3627         (hline_node::hline_node, vline_node::vline_node,
3628         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
3629         warnings.
3630         (zero_width_node::zero_width_node): Fix order of initializers.
3632         * src/roff/troff/node.h: Don't include `mtsm.h'.
3633         (hmotion_node): Fix compiler warnings.
3635         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
3637 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
3639         * doc/groff.css: New file.
3641         * doc/webpage.ms: Use `groff.css'.
3642         Other small fixes.
3644         * tmac/an-old.tmac (need_eo_h): New number register.
3645         (TH): Emit `.eo.tl' tag after title.
3646         (SH): Set `need_eo_h'.
3647         (an-trap): Handle `need_eo_h'.
3648         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
3650         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
3651         (TL): Always start diversion.
3652         Updated.
3653         (@AI): Always call `par@reset'.
3654         (@AB): Update code for -Thtml.
3655         (cov*tl-au-print): Handle -Thtml.
3656         (par@reset): Handle `need_eo_tl', `need_eo_h'.
3657         (@IP): Simplified.
3658         (@IT-html): Removed.
3659         (@SH): Set `need_eo_h' for -Thtml.
3660         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
3661         Set `need_eo_tl'.
3662         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
3663         Set `need_eo_h' for -Thtml.
3664         (@EQ, @EN): Don't handle -Thtml specially.
3665         (par@load-init): Don't handle -Thtml specially.
3667         * tmac/www.tmac (www:paraspace): New macro.
3668         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
3669         (HTML</p>, HTML-TAG-NEXT): New macros.
3670         (HnE): Emit tag `.eo.h' instead of break.
3671         (HR): s/HTML-NS/HTML/.
3672         (www-end-nowhere): End diversion only if `www-html' not set.
3673         Emit `.eo.tl' tag.
3674         (ULS, ULE): s|HTML|HTML</p>|.
3675         (LI): Call `www:paraspace'.
3676         (HEAD): New macro.
3678 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
3680         * src/roff/troff/request.h (macro): Make `p' public.
3681         New variable `is_a_diversion'.
3682         New member function `is_diversion'.
3685         * src/devices/grohtml/html.h (simple_output): New member function
3686         `force_nl'.
3688         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
3689         computation of `total'.
3690         (tabs::check_init): New function.
3691         (html_table::emit_table_header): Emit style data.
3692         (html_table::insert_column): Improved.
3694         * src/devices/grohtml/html-table.h: Updated.
3696         * src/devices/grohtml/html-text.cpp (html_text::html_text):
3697         Initialize `start_space' with TRUE.
3698         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
3699         cases.
3700         (html_text::flush_text): Set `start_space' flag.
3701         (html_text::uses_indent, html_text::remove_para_space,
3702         html_text::get_alignment): New functions.
3703         (html_text::push_para): Updated.
3704         (html_text::do_para): Check for empty argument.
3705         Don't set `space_emitted'.
3706         (html_text::do_space, html_text::emit_space): Updated.
3708         * src/devices/grohtml/html-text.h (tag_definition): New variable
3709         `really_issued'.
3710         (html_text): New member function `uses_indent', `remove_para_space',
3711         `get_alignment'.
3713         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
3714         function.
3715         (simple_output:nl): Always emit `\n'.
3717         * src/devices/grohtml/post-html.cpp: Include `string.h'.
3718         (BASE_POINT_SIZE): Removed.
3719         (base_point_size, head_info): New global variables.
3720         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
3721         `is_eo_h'.
3722         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
3723         tags, respectively.
3724         (page::add_and_encode): Pass additional parameter for tag flag.
3725         (assert_pos): New structure.
3726         (assert_state): New class.
3727         (html_printer): Remove `indentation', `prev_indent'.
3728         Add variables `troff_indent', `device_indent', `temp_indent'.
3729         Add variables `seen_indent', `next_indent', `seen_pageoffset',
3730         `next_pageoffset', `seen_linelenght', `next_linelength',
3731         `seen_center', `next_center', `seen_space', `seen_break', `as'.
3732         Add member functions `do_check_center', `do_space', `do_head',
3733         `get_troff_indent', `restore_troff_indent', `handle_assertion',
3734         `handle_state_assertion', `do_end_para', `set_char_and_width'.
3735         Change argument to `do_fill' to `char *'.
3736         Update constructor.
3737         (html_printer::emit_raw): Call `shutdown_table'.
3738         Use new functions.
3739         (html_printer::do_center): Simplified.
3740         (html_printer::do_title): Improved.
3741         (html_printer::write_header): Emit one more newline.
3742         Use new functions.
3743         (html_printer::do_heading, html_printer::do_indent,
3744         html_printer::do_eol, html_printer::do_tab_ts,
3745         html_printer::do_tab, html_printer::do_tab0,
3746         html_printer::calc_po_in, html_printer::next_horiz_pos,
3747         html_printer::remove_courier_tabs,
3748         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
3749         Updated.
3750         (html_printer::do_linelength, html_printer::do_pageoffset,
3751         html_printer::do_indentation, html_printer::do_tempindent,
3752         html_printer::do_tab_te): Simplified.
3753         (html_printer::do_pointsize): Check whether point size is really
3754         associated a `.tl' tag.
3755         (html_printer::do_break): Rewritten.
3756         (html_printer::troff_tag): Improved.
3757         (html_printer::flush_globs): Updated.
3758         (html_printer::lookahead_for_tables): Handle `is_br'.
3759         Use new functions.
3760         (html_printer::set_char): Check `sbuf_style.f'.
3761         (html_printer::write_navigation): Use string comparison.
3762         (html_printer::~html_printer): Emit `head_info'.
3763         (html_printer::special): Rewritten.
3764         (get_str, make_val): New functions.
3765         (main): New option `s' to set the base point size.
3767         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
3769 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
3771         * src/roff/troff/node.cpp: New extern `debug_state'.
3772         Include `stringclass.h' and `mtsm.h'.
3773         Implement new classes and class members from `node.h'.
3774         (real_output_file): Make `fp' public.
3775         (troff_output_file): New variables `cur_div_level' and `tag_list'.
3776         Update constructors.
3777         (troff_output_file::really_print_line): Check whether we should push
3778         the current troff state and use the state at the start of the
3779         invocation of this diversion.
3780         (troff_output_file::add_to_tag_list): New member function.
3781         (node::add_char): Handle `glyph_comp_np'.
3783         * src/roff/troff/node.h: Include `mtsm.h'.
3784         (node): New variables `state', `push_state', `div_nest_level',
3785         `is_special'.  Update constructors, all descendants.
3786         Pass additional argument to `add_char' member function.
3787         New virtual member functions `is_tag', `debug_node',
3788         `debug_node_list'.  Update all descendants.
3789         (tag_node): New class for handling tags.
3790         (output_file): Add variable `state'.
3792 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
3794         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
3795         providing a minimal troff state machine to emit meta tags for the
3796         post-grohtml device driver.
3798         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
3799         files.
3801 2004-10-09  Werner LEMBERG  <wl@gnu.org>
3803         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
3805 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
3807         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
3809         * src/roff/troff/div.h: Include `mtsm.h'.
3810         (diversion): New variables `any_chars_added', `needs_push',
3811         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
3812         `saved_suppress_next_eol', `modified_tag'.
3813         New virtual member function `is_diversion'.  Update all descendants.
3815         * src/roff/troff/div.cpp (diversion::diversion,
3816         macro_diversion::macro_diversion): Updated.
3817         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
3818         `suppress_next_eol'.
3819         (top_level_diversion::space): Handle `curenv->seen_space'.
3820         (page_offset): Update tag handling.
3821         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
3823         * src/roff/troff/env.h (environment): Make `tabs' public.
3824         Remove `ignore_next_eol', `emitted_node'.
3825         Update `output_line', `output'.
3826         New variables `seen_space', `seen_eol', `suppress_next_eol',
3827         `seen_break'.
3828         New member functions `construct_state', `make_tag',
3829         `construct_format_state, `construct_new_line_state,
3830         `dump_troff_state'.
3831         Remove `add_html_tag', `make_html_tag'.
3833         * src/roff/troff/env.cpp: New externs `suppress_push',
3834         `get_diversion_state', `global_diverted_space'.
3835         (pending_output_line): New variable `was_centered'.
3836         Update constructor and all callers.
3837         (pending_output_line::output): Call `curenv->construct_format_state'.
3838         (environment::environment, environment::copy): Updated.
3839         (environment::output): Handle `was_centered'.
3840         (environment::add_char): Handle construct and diversion state.
3841         (environment::add_node): Handle construct state.
3842         (environment::newline): Handle `was_centered'.
3843         (environment::output_line): Updated.
3844         (environment::possibly_break_line): Updated.
3845         Update tag handling.
3846         (environment::add_html_tag): Replaced with...
3847         (environment::make_tag): New function.
3848         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
3849         (environment::dump_troff_state): New debugging function.
3850         (environment::construct_state, environment::construct_format_state,
3851         environment::construct_new_line_state): New functions.
3852         (environment::do_break): Updated.
3853         Handle `global_diverted_space'.
3854         (environment::handle_tag): Update tag handling.
3855         (point_size, fill, do_break_request): Don't call `add_html_tag'.
3856         (no_fill): Don't call `add_html_tag'.
3857         Set `suppress_next_eol'.
3858         (center, right_justify, line_length, indent, temporary_indent,
3859         set_tabs):
3860         Update tag handling.
3862         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
3863         (input_iterator): New variables `is_diversion', `diversion_state'.
3864         Update constructors.
3865         (input_stack): New member functions `get_div_level',
3866         `get_diversion_state', `check_end_diversion'.
3867         New variables `div_level', `diversion_state'.  Initialize them.
3868         (suppress_push, global_diverted_space): New global variables.
3869         (input_stack::finish_get, input_stack::finish_peek,
3870         input_stack::remove_boundary, input_stack::end_file,
3871         input_stack::clear, input_stack::pop_macro): Call
3872         `check_end_diversion'.
3873         (input_stack::push): Handle `div_level' and `diversion_state'.
3874         (get_diversion_state): New function.
3875         (diverted_space_node::reread): Handle `global_diverted_space'.
3876         (macro::macro): Update constructors.
3877         (macro::is_diversion): New function.
3878         (macro::operator=): Set `is_a_diversion'.
3879         (string_iterator): New member function `is_diversion'.
3880         (string_iterator::string_iterator): Update constructors.
3881         (string_iterator::fill): Set `div_nest_level'.
3882         (macro_iterator): New member function `is_diversion'.
3883         (do_if_request): Handle `suppress_push'.
3884         (tag, taga): New functions.
3885         (init_input_requests): Add `tag' and `taga' requests.
3887 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
3889         * src/include/font.h (font): New member function
3890         `get_image_generator'.
3891         New variables `unscaled_charwidths' and `image_generator'.
3893         * src/libs/libgroff/font.cpp (font::get_width): Always return the
3894         character's unscaled width if `font::unscaled_charwidths' is set.
3895         (font::get_image_generator): New function.
3896         (font::load_desc): Check the `unscaled_charwidths' and
3897         `image_generator' keywords.
3899         * src/libs/libgroff/fontfile.cpp: Initialize
3900         `font::unscaled_charwidths' and `font::image_generator'.
3902         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
3904         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
3906         * man/groff_font.man: Document `unscaled_charwidths' and
3907         `image_generator'.
3909         * src/preproc/html/pre-html.cpp: Include `device.h'.
3910         (image_gen): New global variable.
3911         (imageList::createPage): Use `image_gen'.
3912         (main): Use `image_generator' keyword.
3914 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3916         * tmac/html.tmac: Handle \[sqrtex].
3918 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3920         * src/include/printer.h (printer): New virtual method `round_width'.
3922         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
3923         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
3924         src/devices/grotty/tty.cpp (printer::round_width): New function
3925         member.
3927         * src/devices/grohtml/post-html.cpp (printer::round_width): New
3928         function member.
3929         (html_printer::set_numbered_char): Use it.
3931 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
3933         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
3935         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
3937         * configure: Regenerated.
3939         * Makefile.in (GHOSTSCRIPT): New variable.
3940         (MDEFINES): Add GHOSTSCRIPT.
3942 2004-10-03  Werner LEMBERG  <wl@gnu.org>
3944         * INSTALL.gen: Updated (taken from texinfo CVS).
3946 2004-09-28  Werner LEMBERG  <wl@gnu.org>
3948         * NEWS: Updated.
3950 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3952         * tmac/groff_www.man: Revised and updated.
3954 2004-09-26  Werner LEMBERG  <wl@gnu.org>
3956         Fix \$@ and \$* to handle any number of arguments.
3958         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
3959         characters.
3961         * src/roff/troff/input.cpp (input_iterator::internal_level):
3962         Removed.
3963         (input_stack): New member functions `increase_level' and
3964         `decrease_level'.
3965         (input_stack::get_level): Don't use `internal_level'.
3966         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
3967         (end_quote_iterator): Completely removed.
3968         (interpolate_arg): Build string for \$@ and \$* which is then
3969         pushed onto the input stack.
3971 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
3973         * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
3974         Registers): Document changes from 2004-09-19.
3976 2004-09-23  Werner LEMBERG  <wl@gnu.org>
3978         * tmac/an-old.tmac (ne): Using default scaling operator.
3980 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
3982         This change implements the following features:
3984         PORPHANS
3985           New numeric register: Defines number of lines following LP, PP,
3986           QP, IP or XP, which must be kept together, before any automatic
3987           page break.  If insufficient space remains on the current page, a
3988           page break is forced before the new paragraph begins.
3990         HORPHANS
3991           New numeric register: Sets number of lines of following paragraph
3992           which must be kept with a heading, defined by NH or SH, before any
3993           automatic page break.  If insufficient space remains on the
3994           current page, a page break is forced before the heading.
3996         GROWPS
3997           (Thanks to Joerg van den Hoff, for this idea).
3999           New numeric register: Sets the first level of heading (set with
4000           NH), which will keep the same point size as body text; e.g. if
4001           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
4002           point size specified by \n[PS], but .NH 2 and .NH 1 will have
4003           progressively larger point sizes, determined by \n[PSINCR] (see
4004           below).
4006         PSINCR
4007           New numeric register: Sets the point size increment for each level
4008           of heading, (set with NH), below the threshold level set by
4009           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
4010           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
4011           and all other levels will remain at 10pt, (because \n[PS] = 10).
4013         SH
4014           Existing macro now accepts a numeric argument, to make heading
4015           size match that of NH with same argument value, when the
4016           GROWPS/PSINCR feature is enabled.
4018         SN-DOT
4019           New string, set by NH macro, replaces the existing (undocumented)
4020           use of SN, to represent the assigned section number.
4022         SN-NO-DOT
4023           New string, set by NH macro, represents the assigned section
4024           number, but omits the terminal period (periods at intermediate
4025           levels are retained).
4027         SN
4028           String set by NH macro, originally undocumented, now implemented
4029           as an alias for SN-DOT (which reproduces original behaviour).
4031         * tmac/s.tmac (PORPHANS): New register.
4032         (par*start): Use it.
4033         (HORPHANS, GROWPS, PSINCR): New registers.
4034         (SH-NO-TAG, @SH): Use them.
4035         (@NH): Improved.
4037 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
4039         * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
4040         Document the deletion of `Ds' and `De' macros.
4042 2004-09-10  Werner LEMBERG  <wl@gnu.org>
4044         In tbl, handle \a as an interpreted leader character if in
4045         compatibility mode.
4047         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
4048         LEADER_CHAR): New macros.
4049         (compatible_flag): New declaration.
4051         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
4052         LEADER_3, and LEADER_4 to `state'.
4053         (table_input::get): Handle `\a'.
4055         * src/preproc/tbl/table.cpp (PREFIX): Removed.
4056         (LEADER_REG): New macro.
4057         (table::init_output): Define LEADER_REG string register if in
4058         compatibility mode.
4060         * src/preproc/tbl/tbl.man: Document it.
4062 2004-08-18  Werner LEMBERG  <wl@gnu.org>
4064         * tmac/doc.tmac (An): Fix error message.
4066 2004-08-06  Werner LEMBERG  <wl@gnu.org>
4068         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
4069         file can't be opened.  UNIX tbl has the same behaviour.
4071 2004-08-05  Y T  <doarhop@hotmail.com>
4073         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
4074         (DBRead): If in compatibility mode, take into account the text
4075         when computing figure boundaries.
4077 2004-08-05  Werner LEMBERG  <wl@gnu.org>
4079         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
4080         from Tadziu Hoffmann.
4082 2004-08-03  Werner LEMBERG  <wl@gnu.org>
4084         * doc/meref.me: Document `_M' register.
4086 2004-08-03  Martin Husemann  <martin@duskware.de>
4088         Make hpftodit work correctly on big-endian systems.
4090         * src/utils/hpftodit/hpftodit.cpp (File): New method
4091         `get_uint32(char *)'.
4092         (entry): New member `orig_value'.
4093         (read_tags): Use new method.
4094         (output_font_name, read_and_output_pcltypeface, dump_ascii):
4095         Updated.
4097 2004-08-01  Werner LEMBERG  <wl@gnu.org>
4099         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
4100         are already in X11's `macros.t' file.
4102 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
4104         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
4105         Fix casting bug.
4106         (read_and_output_pcltypeface): Handle strings with length <= 4.
4108 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
4110         * tmac/s.tmac (pg@top): Don't save `PO' register.
4111         (pg*end-col, pg*end-page): Directly use `PO' register.
4113 2004-07-27  Werner LEMBERG  <wl@gnu.org>
4115         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
4117         * src/preproc/refer/refer.cpp (output_references): Check for
4118         empty hash table.
4119         * src/preproc/refer/refer.man: Improve documentation of
4120         `bibliography' command.
4122 2004-07-26  Werner LEMBERG  <wl@gnu.org>
4124         Add requests `fcolor' and `gcolor'.
4126         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
4127         New functions.
4128         (init_env_requests): Add `fcolor' and `gcolor'.
4130         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
4132         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
4133         (Colors): Document new requests.
4135 2004-07-24  Werner LEMBERG  <wl@gnu.org>
4137         Add support for fractional point sizes in ms macros.  A value for
4138         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
4139         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
4141         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
4142         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
4144         * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
4145         Registers), NEWS: Document it.
4147 2004-07-19  Werner LEMBERG  <wl@gnu.org>
4149         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
4150         Update constructor.
4151         (do_for, for_input::get, for_input::peek): Handle negative `by'.
4152         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
4154 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
4156         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4157         * tmac/groff_mdoc.man: Updated.
4159 2004-07-05  Werner LEMBERG  <wl@gnu.org>
4161         * doc/groff.texinfo (Manipulating Hyphenation): Further improve
4162         documentation of `hcode'.
4164 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
4166         Improve appearance of arrows in pic.
4168         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
4169         arrow head thin.
4170         Use two line segments for drawing non-filled arrow head.
4171         (line_object::print, spline_object::print): Shorten line length to
4172         avoid arrow sticking.
4173         (arc_object::print): Take arrow direction into account.
4175 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
4177         * tmac/groff_www.man: Update documentation of .MPIMG.
4179 2004-07-03  Werner LEMBERG  <wl@gnu.org>
4181         * tmac/an-old.tmac (RI): Always start with font `R'.
4182         (RI, IR): Properly end with font `R'.
4184 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4186         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
4187         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
4188         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
4189         Don't pass more than six arguments to .R, .I, .B, etc., for
4190         compatibility with traditional troff macros.
4192 2004-07-02  Werner LEMBERG  <wl@gnu.org>
4194         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4195         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
4196         Update all users.
4197         (PUSH_COMP_MODE): New internal character constant.
4198         Update all users.
4200         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
4201         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
4202         (token::next, macro::append): Handle PUSH_COMP_MODE.
4203         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
4204         POP_GROFFCOMP after each of the decoded arguments to make them
4205         independent from the compatibility mode status.
4206         (comp_mode): Add `COMP_ENABLE'.
4207         (do_define_string, do_define_macro): Handle COMP_ENABLE.
4208         (define_string, append_string, define_macro, define_indirect_macro,
4209         append_macro, append_indirect_macro): Handle `compatible_flag'.
4210         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
4212         * man/groff_diff.man, doc/groff.texinfo: Updated.
4214 2004-07-01  Werner LEMBERG  <wl@gnu.org>
4216         * doc/groff.texinfo: Improve documentation of `hcode'.
4217         Use @documentencoding and convert document to latin-1; to do that
4218         make latin characters active and assign proper macros (within a
4219         @tex...@end tex environment).
4220         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
4221         * doc/Makefile.sub (groff): Ditto.
4223 2004-06-29  Werner LEMBERG  <wl@gnu.org>
4225         Implement two new conditional operators `F <name>' and `S <name>'
4226         which check whether <name> is a valid font or style, respectively.
4228         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
4229         (text_file::text_file): Updated.
4230         (text_file::error): Don't emit message if `silent' is set.
4231         (font::load_font): Add optional third argument (which is directly
4232         passed to `load'.
4233         (font::load): Add optional second argument to check the header of
4234         a font only, without emitting warning or error messages.
4235         * src/include/font.h (font): Updated.
4237         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
4238         conditionals.
4239         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
4240         fourth argument to check a font without mounting.
4241         (check_font, check_style): New functions.
4242         * src/roff/troff/node.h: Updated.
4244         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4245         Updated.
4247 2004-06-27  Werner LEMBERG  <wl@gnu.org>
4249         Implement new string-valued register `.sty' to return the current
4250         style name.
4252         * env.cpp (environment::get_style_name_string): New function.
4253         (init_env_requests): Add `.sty' register.
4254         * env.h (environment): Updated.
4255         * node.cpp (font_info): Make `get_style_name' a friend.
4256         (get_style_name): New function.
4257         * node.h: Updated.
4259         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4260         Updated.
4262 2004-06-15  Werner LEMBERG  <wl@gnu.org>
4264         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4265         `nospaces' option.
4267 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
4269         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4270         and \n[mo] to avoid dependency on current date.
4272 2004-06-08  Werner LEMBERG  <wl@gnu.org>
4274         * Makefile.sub (install_data): New target.
4276 2004-06-04  Werner LEMBERG  <wl@gnu.org>
4278         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4280 2004-06-03  Werner LEMBERG  <wl@gnu.org>
4282         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4283         order of libraries.
4284         (install_data): Add $(srcdir).
4286         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4287         libraries.
4289 2004-06-02  Werner LEMBERG  <wl@gnu.org>
4291         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4292         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4293         Add test for Xmu library.
4294         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4295         GROFF_APPRESDIR_DEFAULT): New macros.
4297         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4298         and GROFF_APPRESDIR_DEFAULT.
4300         * configure: Regenerated.
4302         * Makefile.in (appresdir): New variable.
4303         (MDEFINES): Add appresdir.
4305         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4306         -Xt.
4307         (install_data, uninstall_sub): New targets to handle GXditview.ad.
4309         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4310         `$(srcdir)/eign', not `eign'.
4312         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4314         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4315         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4316         Protect (g)xditview with `\%' to avoid hyphenation.
4317         Other minor formatting.
4319 2004-06-01  Werner LEMBERG  <wl@gnu.org>
4321         Integrate gxditview into groff's standard directory hierarchy.
4323         * src/xditview/*: Moved to ...
4324         * src/devices/xditview/*: Here.
4325         Moved DviChar.h and XFontName.h to src/include.
4326         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4327         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4328         Moved xtotroff.c to new directory src/utils/xtotroff.
4329         Provide proper Makefile.sub files (reusing the stuff from
4330         Imakefile.in).
4331         DESC renamed to DESC.in.
4332         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4333         Converted everything from K&R to ANSI C.
4334         Decorated with const where appropriate.
4335         Cast string constants with `String' and `char *' where appropriate.
4336         Made it compile with C++ (used as a C compiler).
4337         Removed other minor compiler warnings.
4339         * src/devices/xditview/device.c: Include config.h, string.h, and
4340         defs.h.
4341         Don't declare `exit', `strtok', `strchr', and `getenv'.
4342         (FONTPATH): Remove.
4344         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4345         `XFormatFontName'.
4347         * src/devices/xditview/xditview.c: Include config.h.
4348         Include stdio.h earlier.
4349         Protect declaration of `popen' and `pclose' with
4350         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4351         Replace `caddr_t' with `XtPointer'.
4352         (MakePromptFunc): New typedef.
4353         (DoPrint): Use RETSIGTYPE.
4354         (promptfunction): Change type to MakePromptFunc.
4355         (MakePrompt): Use MakePromptFunc for third argument.
4356         (xmalloc): Removed.
4358         * src/devices/xditview/ad2c: Add casts to `String'.
4360         * src/include/XFontName.h (XFontNameString): Don't use array
4361         notation.
4362         Add prototypes for `XParseFontName', `XFormatFontName',
4363         `XCompareFontName', and `XCopyFontName'.
4365         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4366         `XFontName.h'.
4368         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4369         Don't declare `XParseFontName' and `XFormatFontName'.
4370         (xmalloc): Removed.
4371         (main): Remove `optind' and `optarg'.
4373         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4374         (to select programs which need X).
4375         Make XDEVIDIRS depend on `FORCE'.
4376         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4377         X support).
4378         (MDEFINES): Updated.
4379         (LIBDIRS): Use XLIBDIRS.
4380         (CPROGDIRS): Use XPROGDIRS.
4381         (DEVDIRS): Remove font directories for gxditview.
4382         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4383         (EXTRADIRS): Remove src/xditview.
4385         * Makefile.sub (DISCLEANFILES): Updated.
4387         * Makefile.comm (LIBXUTIL): New variable.
4388         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4389         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4391         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4393         * aclocal.m4 (GROFF_X11): New function.
4395         * configure.ac: Call GROFF_X11.
4396         Don't create src/xditview/Imakefile.
4397         Don't emit notice how to build gxditview.
4399         * configure: Regenerated.
4401         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4403 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
4405         * Makefile.in (CPPFLAGS): Define.
4406         (MDEFINES): Add CPPFLAGS.
4408 2004-05-27  Werner LEMBERG  <wl@gnu.org>
4410         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4412 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
4414         Fix problems with `friend name injections'.
4416         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4417         make_script_box), src/roff/troff/div.h (end_diversions),
4418         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4419         change 2004-04-08.
4421 2004-05-25  Bernd Warken  <bwarken@mayn.de>
4423         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4425 2004-05-25  Werner LEMBERG  <wl@gnu.org>
4427         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4428         src/libs/libgroff/color.cpp: Include lib.h.
4430 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4432         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4433         through Forte 6u1, and for how to get GNU make on Solaris.
4435 2004-05-24  Werner LEMBERG  <wl@gnu.org>
4437         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
4438         by Paul Eggert.
4440 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
4442         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4443         rule.
4445 2004-05-14  Werner LEMBERG  <wl@gnu.org>
4447         * REVISION: Set to 2.
4449         * aclocal.m4 (GROFF_STDINT_H): Removed.
4450         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4452         * configure.ac: Updated.
4453         * configure, src/include/config.hin: Regenerated.
4455         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4456         inttypes.h conditionally.
4458 2004-05-13  Werner LEMBERG  <wl@gnu.org>
4460 Version 1.19.1 released
4461 =======================
4463 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
4465         * src/preproc/refer/label.y (same_author_last_name,
4466         same_author_name): Handle empty sort keys.
4468 2004-05-10  Werner LEMBERG  <wl@gnu.org>
4470         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4471         tmac/TODO: Updated.
4473         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4474         doc-str-Lb-librt): Reset font.
4475         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4476         Provide `doc-str-Lb' to reset font.
4477         * tmac/groff_mdoc.man: Updated.
4479 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
4481         * src/preproc/html/pre-html.cpp (make_message): Make it work for
4482         snprintf versions which don't conform to ANSI C 99 (this is,
4483         counting the string's trailing null byte in the return value).
4485 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
4487         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4488         that all implementations of sprintf handle null pointers correctly.
4490 2004-05-04  Werner LEMBERG  <wl@gnu.org>
4492         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4493         Document `.U' register.
4495         * src/roff/troff/env.cpp (environment::mark_last_line)
4496         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4498 2004-05-04  Larry Kollar  <kollar@alltel.net>
4500         New read-only register `.U'; it returns 1 in safer mode and 0
4501         otherwise.
4503         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4504         register.
4506 2004-05-03  Werner LEMBERG  <wl@gnu.org>
4508         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4510 2004-04-17  Werner LEMBERG  <wl@gnu.org>
4512         * src/include/font.h (font): Use `int' for ch_index.
4513         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4514         font::compact): Updated.
4516         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4517         warnings.
4519         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4520         (hyphen_word): Fix compiler warnings.
4521         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4522         `char'.
4523         Update all callers.
4524         (get_delim_number, get_line_arg): Change second argument type to
4525         `unsigned char'.
4526         (macro_header::copy, token::next, do_define_string,
4527         do_define_character, substring_request, asciify_macro,
4528         unformat_macro, read_size, non_interpreted_node::interpret,
4529         while_request, main: Fix compiler warnings.
4530         (read_color_draw_node): Initialize `col'.
4532         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4533         `start_col' and `end_col' of type `int'.
4534         (vertical_rule): Make `col' of type `int'.
4536         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4537         for EOF.
4539         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4540         New arrays.
4541         (format_serial): Use them to remove dependency on ASCII.
4543         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4544         compiler warning.
4545         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4546         Ditto.
4548         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4549         compiler warnings.
4550         (glyph): Change type of `hpos' to `int'.
4552         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
4553         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4555         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4557         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4559 2004-04-16  Werner LEMBERG  <wl@gnu.org>
4561         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4562         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4563         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4564         `double' instead of `float' everywhere.
4565         * src/preproc/grn/main.cpp: Use `double' instead of `float'
4566         everywhere.
4567         (main): Add return value.
4568         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
4569         everywhere.
4570         Update all user functions.
4572         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
4573         src/preproc/eqn/box.h, src/preproc/pic/object.h,
4574         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
4575         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
4576         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
4577         src/roff/troff/input.cpp, src/roff/troff/request.h,
4578         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
4579         declarations.
4581         * src/utils/indxbib/signal.c: Include stdlib.h.
4583 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
4585         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
4586         before the first page.
4588 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
4590         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
4591         (doc-operating-system-*): Updated.
4592         * tmac/doc-syms (doc-str-St-*): Various small fixes.
4593         (doc-str-Lb-*): Add more library names.
4595 2004-04-10  Art Haas  <ahaas@airmail.net>
4597         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
4598         use anonymous type.
4600 2004-04-09  Art Haas  <ahaas@airmail.net>
4602         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
4604 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
4606         * arch/misc/shdeps.sh: Generate better comment for sed script.
4608 2004-04-08  Art Haas  <ahaas@airmail.net>
4610         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
4611         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
4612         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
4613         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
4614         (polyfill), src/preproc/grn/main.cpp (polyfill),
4615         src/preproc/refer/command.cpp (command_table),
4616         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
4617         gcc 3.5 doesn't like).
4619 2004-04-08  Werner LEMBERG  <wl@gnu.org>
4621         Removing many compiler warnings.  groff should now compile with
4622         a C++ compiler used for C files also.  [Simple variable renamings
4623         to avoid shadowing aren't logged in detail.]
4625         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
4626         (draw_dvi_printer::draw) ['c']: Enclose in block.
4628         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
4629         (page::add_line): Fix typos.
4630         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
4632         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
4633         Some local variable renamings.
4634         * src/devices/grolbp/lbp.h: Some local variable renamings.
4636         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
4637         variable renamings.
4639         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
4640         Remove redundant local variable declaration.
4641         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
4642         Don't use `caddr_t' but `void *'.
4643         Enclose functions with `extern "C"' for C++.
4645         * src/libs/libdriver/input.cpp (remember_filename,
4646         remember_source_filename): Use cast for string constant.
4648         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
4649         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
4650         src/libs/libgroff/geometry.cpp: Some local variable renamings.
4651         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
4652         style.
4653         Enclose functions with `extern "C"' for C++.
4654         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
4655         (needs_quoting): Return `int'.
4656         (quote_arg): Add proper casts to malloc and realloc.
4657         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
4658         various MS Windows environments.
4659         (spawnvp_wrapper): Add proper cast to malloc.
4661         * src/preproc/eqn/box.h: Remove redundant declarations of
4662         `make_script_box', `make_mark_box' and `make_lineup_box'.
4663         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
4664         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
4665         variable renamings.
4667         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
4668         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
4669         (dx, dy): Renamed functions to...
4670         (deltax, deltay): This.
4671         * src/preproc/grn/main.cpp: Some local variable renamings.
4672         (deffont): Add `const'.
4673         (initpic, conv): Use cast for string constant.
4675         * src/preproc/html/pre-html.cpp: Some local variable renamings.
4676         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
4677         (char_buffer::run_output_filter): Second argument is unused.
4678         * src/preproc/html/pushback.cpp: Some local variable renamings.
4680         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
4681         * src/preproc/pic/object.cpp: Some local variable renamings.
4683         * src/preproc/refer/label.y (lookup_label): Remove redundant
4684         declaration of local variable.
4686         * src/preproc/soelim.cpp: Remove redundant declaration of
4687         `interpret_lf_args'.
4689         * src/preproc/tbl/main.cpp: Some local variable renamings.
4691         * src/roff/groff/groff.cpp (main): Use cast for string constant.
4692         * src/roff/groff/pipeline.c: Enclose declarations of `error',
4693         `c_fatal', and `i_to_a' with `extern "C"' for C++.
4694         Don't use C++-style comments.
4696         * src/roff/troff/env.h: Remove redundant declaration of `title'.
4697         * src/roff/troff/node.h, src/roff/troff/env.cpp,
4698         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
4699         renamings.
4700         * src/roff/troff/div.h: Remove redundant declaration of
4701         `end_diversions'.
4702         * src/roff/troff/troff.h: Remove redundant declaration of
4703         `cleanup_and_exit'
4704         * src/roff/troff/input.cpp: Remove redundant declaration of
4705         `handle_first_page_transition' and `process_input_stack'.
4707         * src/utils/hpftodit.cpp: Some local variable renamings.
4709         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
4710         for C++.
4711         Don't define RETSIGTYPE.
4712         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
4714         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
4715         (error): Use `const' in argument.
4716         (main): Remove redundant declaration of `optind'.
4717         Move declaration of `Version_string' to top-level.
4719         * PROBLEMS: Document difficulties compiling signal.c if a C++
4720         compiler is used for C.
4722 2004-04-07  Werner LEMBERG  <wl@gnu.org>
4724         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
4726 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
4728         Make scripts like nroff.sh and neqn.sh portable across various
4729         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
4730         non-POSIX path separators.  The idea is to extend those scripts to
4731         decide at run-time (of the script) which path separator to use.
4733         * arch/misc/Makefile.sub: New file.
4734         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
4735         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
4736         a proper definition of the variable `GROFF_RUNTIME'.
4738         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
4739         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
4740         (PROGDEPDIRS): New variable.
4741         `FORCE' it.
4742         (PROGDIRS): Add PROGDEPDIRS.
4744         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
4745         Don't substitute @SEP@ and @BINDIR@.
4746         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
4747         (PATH): Use GROFF_RUNTIME.
4749         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
4750         Don't substitute @SEP@ and @BINDIR@.
4751         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
4752         (PATH): Use GROFF_RUNTIME.
4754 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4756         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
4757         Cygwin which doesn't handle stderr correctly.
4759 2004-03-08  Werner LEMBERG  <wl@gnu.org>
4761         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
4762         against empty argument.  Problem reported by <cgd@broadcom.com>.
4764 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4766         * Makefile.in (SEP): Replaced with...
4767         (RT_SEP, SH_SEP): Separators for the target platform's native path
4768         separator and the build environment, respectively.
4769         (fontpath, tmacpath): Use RT_SEP.
4770         (MDEFINES): Updated.
4772         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
4773         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
4774         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
4776 2004-03-05  Werner LEMBERG  <wl@gnu.org>
4778         * font/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
4779         reduce alignment problems with newer printers which use built-in
4780         TrueType fonts (instead of the older Intellifonts).  The ideal
4781         solution is to provide a second set of groff metric files, but this
4782         is extremely time-consuming to produce, given that HP's metric
4783         files are very rudimentary.
4785 2004-03-01  Werner LEMBERG  <wl@gnu.org>
4787         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
4788         s/operand/argument/ in error message.
4790 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
4792         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
4793         is in use.
4795 2004-03-01  Antti Kantee  <pooka@netbsd.org>
4797         * tmac/s.tmac (XE): Fix error message.
4799 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
4801         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
4802         New macros.
4804         * src/roff/groff/pipeline.c: Declare strcasecmp.
4805         (run_pipeline) [_WIN32]: Use function name variants which don't
4806         start with `_'.
4807         Fix stream handling.
4809 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
4811         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
4812         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
4813         for platforms which use the native Win32 runtime libraries.
4814         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
4816         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
4817         QUOTE_ARG_REALLOC_ERROR): Fix string.
4819         * src/preproc/html/pre-html.cpp: Remove declaration of
4820         `spawnvp_wrapper'.
4821         Don't use __MINGW32__.
4822         s/DEBUG_FILE/DEBUG_FILE_DIR/.
4823         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
4824         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
4825         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
4826         calls to `set_redirection' and `WAIT'.
4827         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
4828         Fix calls to `set_redirection' and `save_and_redirect'.
4829         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
4830         to `set_redirection' and `save_and_redirect'.
4831         (usage): Fix message.
4832         (makeTempFiles, main): Use `DEBUG_FILE'.
4834 2004-02-21  Werner LEMBERG  <wl@gnu.org>
4836         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
4838 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
4840         * src/libs/libgroff/quotearg.c: New file, providing proper argument
4841         quoting for MSVC's spawn* and exec* functions.
4842         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
4843         spawnvp with proper quoting for MSVC.
4845         * src/libs/libgroff/assert.cpp (program_name),
4846         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
4847         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
4849         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
4851         * src/include/error.h (program_name): Declare as `extern "C"'.
4852         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
4854 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
4856         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
4857         spawnvp_wrapper.
4858         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
4860 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
4862         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
4863         variable.
4864         (sbasename) [__MSDOS__ || ...]: New function.
4865         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
4866         generic algorithm.
4867         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
4868         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
4869         of XXX.
4870         Use STDOUT_FILENO instead of hardcoded file handle.
4871         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
4873 2004-02-19  Werner LEMBERG  <wl@gnu.org>
4875         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
4876         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
4878 2004-02-18  Werner LEMBERG  <wl@gnu.org>
4880         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
4881         new font and mapping files.
4883 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
4884             Keith Marshall  <keith.d.marshall@ntlworld.com>
4886         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
4887         an input pipe.  This is needed for the MSVC compiler to make troff's
4888         `-o' option work.
4890         * src/roff/troff/div.cpp: Include nonposix.h.
4891         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
4893 2004-02-17  Werner LEMBERG  <wl@gnu.org>
4895         * font/devlj4/generate/special.awk: New script.
4896         * font/devlj4/generate/Makefile (S): Use special.awk.
4897         * font/devlj4/*: Regenerated, including the following new files:
4898         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
4899         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
4900         * NEWS: Document new lj4 fonts and revised hpftodit.
4902 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
4904         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
4906 2004-01-25  Werner LEMBERG  <wl@gnu.org>
4908         * src/libs/libgroff/progname.cpp: Replaced with...
4909         * src/libs/libgroff/progname.c: New file.
4910         * src/libs/libgroff/Makefile.sub: Updated accordingly.
4912 2004-01-17  Werner LEMBERG  <wl@gnu.org>
4914         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
4916 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
4918         * font/devlj4/generate/wingdings.map,
4919         font/devlj4/generate/symbol.map: Include unnamed glyphs.
4920         Use groff glyph names where possible.
4921         * src/devices/grolj4/lj4_font.man: Minor updates.
4923 2004-01-13  Werner LEMBERG  <wl@gnu.org>
4925         * tmac/www.tmac (DC): Handle TTY devices.
4927         * doc/webpage.ms: Document viewCVS from ffii.org.
4928         * NEWS, README: Updated.
4930         * src/roff/groff/groff.man: Mention lj4_font man page.
4932         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
4933         variables.
4934         (FONTS): Add SYMBOL and WINGDINGS.
4935         (SYMBOL, WINGDINGS): New targets.
4937 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
4939         * src/devices/grolj4/lj4_font.man: New man page.
4940         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
4941         * src/devices/grolj4.man: Mention lj4_font man page.
4943         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
4944         * src/utils/hpftodit/hpftodit.man: Document it.
4945         (CW): New macro.
4946         Remove details about fonts (which are now in lj4_font.man).
4948         * font/devlj4/generate/symbol.map,
4949         font/devlj4/generate/wingdings.map: New files.
4951 2004-01-12  Werner LEMBERG  <wl@gnu.org>
4953         * README: Mention ffii's viewcvs access.
4955 2004-01-09  Werner LEMBERG  <wl@gnu.org>
4957         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
4959 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
4961         Revert most of the change from 2004-01-03 to better control used
4962         symbol sets.
4964         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
4965         (text_symbol_sets, special_symbol_sets): New arrays.
4966         (symbol_set_table): New global variable.
4967         (read_symbol_sets): Use search order given in the text_symbol_sets
4968         and special_symbol_sets arrays.  If command line flag -a is not
4969         given, search both arrays.
4970         (output_charset): Require x_height_tag only for command line flag -i.
4972 2004-01-06  Werner LEMBERG  <wl@gnu.org>
4974         Implement string-valued registers \n[.m] and \n[.M] to return the
4975         name of the current drawing and background color, respectively.
4977         * src/roff/troff/symbol.h: Moved to...
4978         * src/include/symbol.h: Here.
4979         Small fixes to make it work outside of the `troff' directory.
4980         * src/roff/troff/symbol.cpp: Moved to...
4981         * src/libs/libgroff/symbol.cpp: Here.
4982         Small fixes to make it work outside of the `troff' directory.
4984         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
4985         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
4986         Updated.
4988         * src/include/color.h: Include symbol.h.
4989         (color): Add new field `nm'.
4990         * src/libs/libgroff/color.cpp (color::color): Updated.
4992         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
4993         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
4994         src/roff/troff/reg.cpp: Don't include symbol.h.
4996         * src/roff/troff/env.cpp: Don't include symbol.h.
4997         (environment::get_glyph_color_string,
4998         environment_get_fill_color_string): New member functions.
4999         (init_env_requests): Handle `.m' and `.M' registers.
5000         * src/roff/troff/input.cpp: Don't include symbol.h.
5001         (default_symbol): Moved to symbol.cpp/symbol.h.
5002         (do_glyph_color, do_fill_color, define_color): Pass symbol name
5003         to color constructor.
5004         * src/roff/troff/env.h: Updated.
5006         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5007         Document new registers.
5009 2004-01-05  Werner LEMBERG  <wl@gnu.org>
5011         * src/roff/troff/node.cpp (space_node::get_breakpoints,
5012         space_node::nbreaks): Protect against zero `next' field.
5014 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
5016         In hpftodit, use the symbol sets offered in the TFM.
5018         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
5019         (symbol_set, text_symbol_sets, special_symbol_sets,
5020         symbol_set_table): Removed.
5021         (get_printcode): Removed.
5022         (read_symbol_sets): Initialize `symbol_set' field with
5023         `NO_SYMBOL_SET'.
5024         Simplify code to just use the `kind' value.
5025         (output_charset): Improve output formatting.
5026         (dump_symbols): Simplified.
5028 2004-01-02  Werner LEMBERG  <wl@gnu.org>
5030         * font/devlj4/generate/text.map: Add more MSL numbers.
5032 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
5034         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
5035         (text_symbol_sets): Add more symbol sets.
5036         (debug_flag): New static variable (moved from `main').
5037         (get_printcode, show_symset): New functions.
5038         (main): Remove `debug_flag'.
5039         (output_charset): Use `show_symset'.
5040         (dump_symbols):  Use `show_symset'.
5041         Print symsets for all glyphs.
5042         (read_map): Actually call `unicode_to_ucode_make' but this time
5043         correctly.
5045 2004-01-01  Werner LEMBERG  <wl@gnu.org>
5047         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
5048         Fix placement of comments.
5050 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
5052         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
5053         option `-d' is given.
5054         (output_charset): Improve warning messages to give more information.
5055         (dump_symbols): Make information more precise.
5056         (usage): Updated.
5057         (read_map): Don't call unicode_to_ucode_name; the glyph names must
5058         appear as-is and shouldn't be decomposed.
5060 2003-12-31  Werner LEMBERG  <wl@gnu.org>
5062         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
5063         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
5064         (FONTS): Add TrueType font families Arial and Times New Roman.
5065         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
5066         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
5067         `fl'.
5069 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
5071         * test-groff.in (SEP): Quote value.
5072         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
5073         `tem' to `char*' to avoid deallocation of a pointer to a constant
5074         object which some compilers don't like.
5076 2003-12-31  Werner LEMBERG  <wl@gnu.org>
5078         * font/devlj4/generate (text.map, special.map): Rewritten to work
5079         with the new hpftodit version.
5081 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
5083         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
5084         set and 8bit character code for all glyphs also.
5086 2003-12-30  Werner LEMBERG  <wl@gnu.org>
5088         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
5090 2003-12-29  Werner LEMBERG  <wl@gnu.org>
5092         More fixes for MSVC compiler.
5094         * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
5096         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
5097         STDERR_FILENO) [_MSC_VER]: Define conditionally.
5098         (getpid) [_MSC_VER]: Remove.
5099         Include direct.h and process.h conditionally.
5101         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
5102         parentheses for a_delete.
5104         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
5106         * test-groff: Replaced with...
5107         * test-groff.in: This new template to handle path separator
5108         properly.
5110         * configure.ac: Check for direct.h and process.h.
5111         Generate test-groff script.
5112         * configure, src/include/config.hin: Regenerated.
5114 2003-12-28  Werner LEMBERG  <wl@gnu.org>
5116         Add integral extension glyph.
5117         Add new option `-x' to afmtodit to suppress use of built-in AGL.
5119         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
5121         * font/devps/generate/textmap: Provide entry for `integralex' to
5122         override (old) PUA value of the AGL.
5123         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
5124         * font/devps/*: Regenerated.
5126         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
5127         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
5129 2003-12-27  Werner LEMBERG  <wl@gnu.org>
5131         Add forgotten `coproduct' symbol (already available for DVI).
5133         * font/devhtml/R.proto, font/devps/generate/textmap,
5134         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
5135         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
5136         U+2210 (\[coproduct]).
5138 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
5140         hpftodit has been extended to handle TrueType metric files and
5141         more glyphs.  See hpftodit.man for more details.
5143         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
5144         ctype.h, and unicode.h.
5145         s/msl/charcode/ everywhere since we now handle Unicode values also.
5146         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
5147         Use it where appropriate.
5148         (MULTIPLIER): Replaced with...
5149         (multiplier): New global static variable.
5150         (scale): Updated.
5151         (tag_type): Add more TFM tags.
5152         (tag_name): New array.
5153         (ENUM_TYPE, FLOAT_TYPE): Removed.
5154         (BYTE_TYPE): New value assigned.
5155         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
5156         (text_symbol_sets, special_symbol_sets): Extended to cover more
5157         sets.
5158         (check_type): Add return value.
5159         (check_units): Add parameters to get ppi and upem values.
5160         Handle TrueType TFM data.
5161         (output_font_name): New function.
5162         (output_charset): Add parameter to handle TFM type.
5163         Handle TrueType TFMs also.
5164         (em_fract): New macro.
5165         (dump_tags): Be much more verbose and handle more tags.
5166         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
5167         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
5168         functions.
5169         (read_map): Add parameter to handle TFM type.
5170         Handle both MSL and Unicode mappings.
5171         (main): Add two new command line options `-a' and `-q'.
5172         Updated to make use of new functions.
5173         (usage): Updated.
5175         * src/utils/hpftodit/hpuni.cpp: New file.
5177         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
5178         Updated.
5180 2003-12-25  Werner LEMBERG  <wl@gnu.org>
5182         * src/include/nonposix.h (read) [_MSC_VER]: Define.
5184 2003-12-24  Werner LEMBERG  <wl@gnu.org>
5186         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
5187         by Michail Vidiassov <master@iaas.msu.ru>.
5189 2003-12-20  Werner LEMBERG  <wl@gnu.org>
5191         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5192         and u0049_0307.
5193         Add missing latin-2 glyphs.
5194         * font/devutf8/R.proto: Add missing latin-2 glyphs.
5196         * tmac/troffrc: Load `composite.tmac' earlier.
5198         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
5199         u00{53,73}_0327, and u0049_0307.
5200         * tmac/X.tmac: Add u00{47,67}_0306.
5201         * tmac/tty-char.tmac: Use composite glyph names for readability.
5203         * NEWS: Updated.
5205         * src/include/unicode.h: Remove `extern' keywords.
5207 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
5209         * tmac/latin5.tmac: New file.
5211 2003-12-19  Werner LEMBERG  <wl@gnu.org>
5213         Add some glyphs needed for Turkish.
5215         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5216         and u0049_0307.
5218         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
5219         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
5220         u00{53,73}_0327, and u0049_0307.
5222 2003-12-18  Werner LEMBERG  <wl@gnu.org>
5224         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
5225         from 2001-10-04.
5226         Remove trailing zeros.
5228 2003-12-17  Werner LEMBERG  <wl@gnu.org>
5230         Make \? transparent to end-of-sentence recognition.
5232         * src/roff/troff/input.cc (non_interpreted_node): Add
5233         `ends_sentence' member function.
5235 2003-12-16  Werner LEMBERG  <wl@gnu.org>
5237         * doc/groff.texinfo: Document `dt' request correctly.
5238         Other minor typographical improvements.
5240 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
5242         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5244 2003-12-10  Richard Stallman  <rms@gnu.org>
5246         * LICENSE: Better wording.
5248 2003-12-09  Werner LEMBERG  <wl@gnu.org>
5250         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
5251         * configure, NEWS: Updated.
5253 2003-12-08  Werner LEMBERG  <wl@gnu.org>
5255         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
5257 2003-12-07  Bernd Warken  <bwarken@mayn.de>
5259         * LICENSE: Updated.
5261 2003-12-07  Werner LEMBERG  <wl@gnu.org>
5263         * INSTALL: Improved.
5265 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
5267         Use path separator character of target platform for compiled-in
5268         default paths.
5270         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5271         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5272         * configure: Regenerated.
5273         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5275 2003-12-05  Werner LEMBERG  <wl@gnu.org>
5277         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5278         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5280 2003-12-04  Bernd Warken  <bwarken@mayn.de>
5282         * LICENSE: New file.
5284 2003-12-03  Werner LEMBERG  <wl@gnu.org>
5286         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5287         ligatures present in AFM files since groff currently only
5288         understands some standard ligatures and nothing else.
5290 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
5292         * src/roff/groff/groff.cpp (main): Don't run the spooler if
5293         option -v is given.
5295         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5296         messages.
5297         Close stdout copy.
5298         Don't use Unix wait flags.
5300 2003-12-02  Werner LEMBERG  <wl@gnu.org>
5302         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5303         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5304         src/roff/troff/uniuni.cpp: Moved to...
5305         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5306         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5307         src/libs/libgroff/uniuni.cpp: Here.
5309         * src/include/Makefile.sub.old (HDRS),
5310         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5311         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5313 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
5315         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5316         `DEBUG_FILE'.
5317         Updated all users.
5319 2003-12-01  Werner LEMBERG  <wl@gnu.org>
5321         * groff.texinfo: Document special behaviour of `.vs 0'.
5322         Improve documentation of `cflags' request.
5323         * NEWS: Updated.
5325 2003-11-29  Werner LEMBERG  <wl@gnu.org>
5327         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5328         * font/devlj4/CORONET: Regenerated.
5330 2003-11-24  Werner LEMBERG  <wl@gnu.org>
5332         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5333         if processing hyphenation patterns in traditional mode.
5334         Improve error messages.
5336 2003-11-20  Werner LEMBERG  <wl@gnu.org>
5338         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5339         troff_output_file::put_char): Fix type of local variable `c'.
5341 2003-11-19  Werner LEMBERG  <wl@gnu.org>
5343         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
5344         declarations.
5345         (i_to_a): Removed.  libgroff already provides this function.
5346         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5348 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
5350         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5351         HAVE_DECL_SYS_LIST.
5353 2003-11-17  Werner LEMBERG  <wl@gnu.org>
5355         * COPYING: Use correct version.
5357 2003-11-11  Werner LEMBERG  <wl@gnu.org>
5359         LynxOS 4.0.0 doesn't declare vfprintf.
5361         * configure.ac: Check for vfprintf.
5362         * configure: Regenerated.
5363         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5364         * src/include/config.hin: Regenerated.
5366 2003-11-10  Werner LEMBERG  <wl@gnu.org>
5368         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5370         * configure.ac: Check for vsnprintf.
5371         * configure: Regenerated.
5372         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5373         `HAVE_VSNPRINTF'.
5374         * src/include/config.hin: Regenerated.
5376 2003-11-09  Werner LEMBERG  <wl@gnu.org>
5378         * aclocal.m4: Updated syntax to autoconf 2.59.
5379         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5380         Don't check for gsos2.
5381         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
5382         working abs_top_srcdir and abs_top_builddir.
5384         * configure.ac: Updated syntax to autoconf 2.59.
5385         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5386         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5387         * configure: Regenerated.
5389         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5390         s/@groff_top_builddir@/@abs_top_builddir@/.
5392         * src/roff/groff/pipeline.c (xstrsignal):
5393         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5395 2003-11-07  Werner LEMBERG  <wl@gnu.org>
5397         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5398         make start angle smaller than end angle to circumvent a bug in tpic
5399         handling of some versions of dvipdfm (and dvipdfmx).
5401 2003-10-30  Werner LEMBERG  <wl@gnu.org>
5403         * src/devices/grops/grops.man: Improve section on creating EPS.
5405 2003-10-29  Werner LEMBERG  <wl@gnu.org>
5407         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5408         -P-pletter).
5410 2003-10-28  Werner LEMBERG  <wl@gnu.org>
5412         * doc/groff.texinfo: Fix documentation of `.if'.
5414 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
5416         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5417         the form `uniXXXX' also.
5419 2003-10-27  Werner LEMBERG  <wl@gnu.org>
5421         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5422         contrib/pic2graph/pic2graph.sh: Implement secure management of
5423         temporary files.
5424         Pass `-P-pletter' to groff to avoid data outside of the converted
5425         area -- some versions of `convert' (for example 5.3.8) don't check
5426         the bounding box of the image but always use a fixed image size
5427         (letter paper format).
5428         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5429         contrib/pic2graph/pic2graph.man: Updated.
5431         * src/roff/groff/groff.man: Document $TMP and $TEMP.
5433 2003-10-26  Werner LEMBERG  <wl@gnu.org>
5435         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5436         troff_output::simple_ellipse, troff_output::simple_arc,
5437         troff_output::simple_line, troff_output::simple_spline,
5438         troff_output::simple_polygon): Insert a space before arguments.
5439         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5440         latter doesn't produce a node, so the following `.sp -1' would do
5441         the wrong thing.
5442         Don't emit `.sp -1' after \M.  This also doesn't produce a token
5443         (and we don't have to care about compatibility mode).
5444         (troff_output::set_color, troff_output::reset_color): Don't emit
5445         `.sp -1' after \M and \m.
5447         * src/roff/troff/input.cpp (old_have_input): New global variable.
5448         (input_stack::get): Handle `old_have_input'.
5449         (process_input_stack) <token::TOKEN_NEWLINE>: Call
5450         `trapping_blank_line' depending on `old_have_input', not
5451         `have_input'.
5453 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
5455         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5456         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5457         default directory names for temporary files.
5458         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5460         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5461         [__MSDOS__] (run_pipeline): Honour environment variables.
5462         Don't use `tmpnam' but `tempnam' to work around messy
5463         implementation.
5465         * README.MinGW: New file.
5467 2003-10-16  Werner LEMBERG  <wl@gnu.org>
5469         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5470         `(*t)->next' without testing validity of `*t'.
5471         (usage): Make it more readable.
5473 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
5475         Make html device run under both MS-DOS and Win32.
5477         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5478         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5479         spawn or fork+exec has to be used, and whether parent must sleep
5480         until the child process terminates.  Used in
5481         `char_buffer::run_output_filter'.
5482         (copyofstdoutfd): Removed.
5483         (char_buffer): Replace `write_file_html' and `write_file_troff'
5484         member functions with `emit_troff_output' and `run_output_filter'.
5485         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5486         macros.
5487         (replaceFd): Replaced with...
5488         (set_redirection): New auxiliary function.
5489         (waitForChild): Replaced with...
5490         (save_and_redirect): New auxiliary function for.
5492         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5493         functions.
5495 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
5497         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5498         (GROFF_LIBC): New function.
5499         * configure.ac: Call GROFF_LIBC.
5500         Check for `kill'.
5501         * configure: Regenerated.
5503         * src/include/lib.h: Handle __MINGW32__.
5504         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5505         Add macro for `pipe'.
5506         Define P_tmpdir.
5508         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5509         correctly.
5511         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5512         Implement.
5514 2003-10-12  Werner LEMBERG  <wl@gnu.org>
5516         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5517         src/roff/troff/input.cc (usage): Updated.
5519         * NEWS, doc/groff.texinfo: Updated.
5521 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
5523         * src/libs/libgroff/searchpath.cpp
5524         (search_path::open_file_cautious): New function which also handles
5525         `-' as stdin and stdout depending on the access mode.
5526         * src/include/searchpath.h (search_path): Updated.
5528         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5529         * src/devices/grops/ps.h: Include `searchpath.h'.
5530         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5531         Open resource file with `include_search_path.open_file_cautious'.
5532         * src/devices/grops/grops.man: Document new `-I' switch.
5534         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5535         (main), src/devices/grolj4/lj4.cpp (main),
5536         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5538         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5539         Replaced with...
5540         (include_search_path): New global variable.
5541         (include_path_append): Removed.
5542         (main): Use `include_search_path.command_line_dir' to handle `-I'.
5543         (do_file): Simplify, using new
5544         `include_search_path.open_file_cautious'.
5546         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5547         parameter.
5548         (main): Pass arguments to `-I' to both troff and devices.
5549         Improve handling of `-V'.
5550         * src/roff/groff/groff.man: Document changes to -I and -V.
5552         * src/roff/troff/input.cpp (include_search_path): New global
5553         variable.
5554         (next_file, source, ps_bbox_request, transparent_file,
5555         process_input_file): Use new
5556         `include_search_path.open_file_cautious'.
5557         (main) Handle `-I' switch.
5558         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5559         Use new `include_search_path.open_file_cautious'.
5560         * src/roff/troff/node.h: New extern symbol `include_search_path'.
5561         * src/roff/troff/troff.man: Document new `-I' switch.
5563 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
5565         Support multiple calls of .Lb in LIBRARY section.
5567         * tmac/doc-common (doc-in-library-section): New register.
5568         (doc-section-library): New string.
5569         (Sh): Set `doc-in-library-section'.
5570         (Rd): Updated.
5571         * tmac/doc-syms (Lb): Insert breaks before and after arguments
5572         if in LIBRARY section.
5573         * tmac/doc.tmac (doc-save-global-vars): Updated.
5574         * NEWS, tmac/groff_mdoc.man: Updated.
5576 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
5578         * tmac/doc-common (doc-default-operating-system): New variable.
5579         (Os): Use it.
5581 2003-09-08  Werner LEMBERG  <wl@gnu.org>
5583         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
5585 2003-08-31  Werner LEMBERG  <wl@gnu.org>
5587         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
5588         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
5589         $(DEVFILES) are not empty.
5590         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
5592 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
5594         * src/preproc/refer/ref.cpp (reference::compute_sort_key): Always
5595         insert SORT_SEP.  With certain combinations of sort specifications,
5596         refer sorted entries in the wrong order.  In particular, entries
5597         with a missing field should be be sorted before all entries that
5598         have that field, before refer looks to the next field.
5600 2003-08-23  Werner LEMBERG  <wl@gnu.org>
5602         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
5603         g++ linker is used.  Reported by Mark J. Reed
5604         <mark.reed@turner.com>.
5606 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5608         Add key character `x' to tbl which makes tbl call a user-defined
5609         macro on a table cell.
5611         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
5612         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
5613         `set_modifier' after printing the compatibility request.
5614         (set_modifier): Print call to `m->macro' if not empty.
5615         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
5616         `macro'.
5617         (process_format): Implement cases `x' and `X'.
5618         * src/preproc/tbl/tbl.man, NEWS: Updated.
5620 2003-08-15  Werner LEMBERG  <wl@gnu.org>
5622         * doc/groff.texinfo: Minor fixes.
5624 2003-08-09  Werner LEMBERG  <wl@gnu.org>
5626         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
5628 2003-08-07  Werner LEMBERG  <wl@gnu.org>
5630         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
5631         argument list to nothing if there is no file to match.  Use `ls' as
5632         a protection, similar to autoconf.
5634         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
5635         empty argument lists.
5637         * doc/groff.texinfo: Improve documentation how vertical spacing
5638         and line breaks interact.
5639         Other minor fixes.
5641         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
5643 2003-08-03  Werner LEMBERG  <wl@gnu.org>
5645         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
5646         EPS (using eps2eps or similar programs to compute the bounding box).
5648 2003-07-24  Werner LEMBERG  <wl@gnu.org>
5650         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
5651         * doc/texinfo.tex: Updated from texinfo 4.6.
5652         * README.CVS: From now on we need texinfo 4.6.
5654 2003-07-23  Werner LEMBERG  <wl@gnu.org>
5656         Add requests `dei1' and `ami1' for completeness.
5658         * src/roff/troff/input.cc (calling_mode): Remove
5659         CALLING_DISABLE_COMP.
5660         (comp_mode): New enumeration.
5661         (do_define_string, define_string, define_nocomp_string,
5662         append_string, append_nocomp_string): Updated.
5663         (do_define_macro): Add third parameter.
5664         (define_macro, define_nocomp_macro, define_indirect_macro,
5665         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
5666         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
5667         functions.
5668         (ignore): Updated.
5669         (init_input_requests): Add `dei1' and `ami1'.
5671         * tmac/trace.tmac: Handle de1 and am1.
5672         (de): Improve tracing message.
5673         (am): Add missing `do'.
5674         (return): Use de1.
5676         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5677         Document new requests.
5679 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5681         Add option -G to .MPIMG to insert a gap between text and the image.
5683         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
5684         www-finish-left-ll): Updated.
5685         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
5686         (MPIMG): Make option -L and -R optional.
5687         Implement option -G.
5689 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
5691         * src/devices/grohtml/post-html.cpp
5692         (html_printer::do_file_components): Don't use `stdout' as lvalue
5693         since it can be a macro.
5695 2003-07-22  Werner LEMBERG  <wl@gnu.org>
5697         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
5698         the corresponding test in aclocal.m4.
5700 2003-07-21  Werner LEMBERG  <wl@gnu.org>
5702         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
5703         names but RGB values directly.  Otherwise pnmtopng depends on
5704         an external file `rgb.txt' which maps colour names to values.
5706 2003-07-20  Werner LEMBERG  <wl@gnu.org>
5708         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
5709         * configure, src/include/config.hin: Regenerated.
5711         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
5713 2003-07-19  Werner LEMBERG  <wl@gnu.org>
5715         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
5717 2003-07-18  Werner LEMBERG  <wl@gnu.org>
5719         * *.man: Switch to non-compatibility mode temporarily if GNU
5720         syntax extensions are used in the particular man page.
5722         * PROBLEMS: Add solutions for SGR problems.
5724 2003-07-17  Werner LEMBERG  <wl@gnu.org>
5726         Don't ignore grotty's command line options if \X'tty: sgr ...' is
5727         used to change the drawing scheme.
5729         * src/devives/grotty/tty.cpp (bold_flag_option,
5730         underline_flag_option, italic_flag_option, reverse_flag_option,
5731         bold_underline_mode_option): New global variables.
5732         (update_options): New function.
5733         (tty_printer::special): Call update_options.
5734         (main): Don't set xxx_flag but xxx_flag_option, then call
5735         update_options.
5737 2003-07-14  Werner LEMBERG  <wl@gnu.org>
5739         Make grotty emit proper Unicode box drawing characters for -Tutf8.
5741         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
5742         values.
5743         (hline_char, vline_char): New global variables.
5744         (tty_printer::tty_printer): Initialize them.
5745         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
5746         horizontal and vertical lines.
5747         (crossings): New global array.
5748         (tty_printer::end_page): Use it to determine the proper crossing
5749         character for -Tutf8.
5751 2003-07-12  Werner LEMBERG  <wl@gnu.org>
5753         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
5754         (HTMLDOCFILES): Revert to `pic.html'.
5755         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
5757 2003-07-11  Werner LEMBERG  <wl@gnu.org>
5759         * doc/pic.ms: Improve documentation of absolute coordinates.
5760         Document absolute positioning of pictures.
5762         * NEWS: Add new pic capability.
5764 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
5766         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
5767         Rewritten.
5769 2003-07-07  Werner LEMBERG  <wl@gnu.org>
5771         Implement support for dashed and dotted ellipses in pic.  Based on
5772         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
5774         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
5775         common_output::dashed_ellipse, common_output::dotted_ellipse): New
5776         functions.  Ellipse arcs are approximated with circle arcs.
5777         * src/preproc/pic/common.h (common_output): Updated.
5778         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
5779         functions.
5780         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
5782         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
5784 2003-07-06  Werner LEMBERG  <wl@gnu.org>
5786         Make grotty work on platforms which have unsigned char as the
5787         default for char.  Based on a patch by Thomas Klausner
5788         <wiz@netbsd.org>.
5790         * src/devices/grotty/tty.cpp (schar): New typedef.
5791         Updated calls to declare_ptable and implement_ptable.
5792         (glyph): Use schar for back_color_idx and fore_color_idx.
5793         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
5794         (tty_printer::tty_color, tty_printer::tty_printer,
5795         tty_printer::color_to_idx, tty_printer::put_color): Updated.
5797 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5799         * src/roff/nroff/nroff.sh: Add option -d for completeness.
5800         * src/roff/nroff/nroff.man: Updated.
5802 2003-07-05  Werner LEMBERG  <wl@gnu.org>
5804         * NEWS, tmac/groff_www.man: Updated.
5805         * doc/Makefile.sub: Updated.
5807 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
5809         Implement support for multiple HTML output files.
5811         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
5812         -j command line option.
5814         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
5815         global variables.
5816         (file): New fields `new_output_file', `require_links',
5817         `output_file_name'.
5818         (file::file): Updated.
5819         (files::set_file_name, files::set_links_required,
5820         files::are_links_required, files::is_new_output_file,
5821         files::file_name, files::next_file_name): New functions.
5822         (header_desc): New fields `no_of_level_one_headings',
5823         `header_filename'.
5824         (header_desc::header_desc): Updated.
5825         (header_desc::write_headings): Handle multiple files.
5826         (html_printer::write_header): Save file name in which header occurs.
5827         (html_printer::determine_header_level): Possibly split files on
5828         level one headings.
5829         (html_printer::do_links, html_printer::troff_tag): Updated.
5830         (html_printer::insert_split_file, html_printer::do_job_name,
5831         html_printer::emit_link, html_printer::write_navigation,
5832         html_printer::do_file_components): New functions.
5833         (html_printer::~html_printer): Handle multiple files.
5834         (main): Handle command line option `-j'.
5836         * src/devices/grohtml/grohtml.man: Updated.
5838         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
5839         which splits file.
5841         * tmac/www.tmac (JOBNAME): New macro.
5842         * tmac/s.tmac (SH-NO-TAG): New macro.
5843         (@SH): Call SH-NO-TAG.
5844         (@NH): Updated.
5846 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5848         * tmac/groff_mdoc.man: Improve documentation of punctuation
5849         characters.
5851 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
5853         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
5855 2003-07-03  Werner LEMBERG  <wl@gnu.org>
5857         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
5859 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
5861         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
5862         after `/*' and `*/'.
5863         Fix spacing.
5864         (Fn, Fo): Reduce indentation in synopsis.
5866         * tmac/doc-common (doc-check-depth): New macro.
5867         (doc-end-macro, Sh, Ss): Use it.
5868         (Cd): Fix behaviour in synopsis.
5869         (In): Make it parsed and callable.
5870         If not in the synopsis, represent the C header file enclosed in
5871         angle brackets.
5872         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
5873         Use minus, not hyphen.
5875         * tmac/groff_mdoc.man: Updated.
5877 2003-07-01  Werner LEMBERG  <wl@gnu.org>
5879         Integrated grap2graph, contributed by Eric S. Raymond.
5881         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
5882         New files.
5883         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
5884         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
5886 2003-07-01  Colin Watson  <cjwatson@debian.org>
5888         * src/xditview/*.c: Add prototypes, fix return types, add includes.
5889         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
5891 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
5893         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
5895 2003-06-31  Werner LEMBERG  <wl@gnu.org>
5897         * doc/Makefile.sub (CLEANADD): Remove all files created by
5898         running `make groff.{pdf,dvi}'.
5900         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
5901         src/xditview also.
5903 2003-06-30  Werner LEMBERG  <wl@gnu.org>
5905         * Makefile.in (SHELL): Define as @SHELL@.
5906         (mkinstalldirs): Use $(SHELL).
5907         (MDEFINES): Add $(SHELL).
5908         * Makefile.comm (SHELL): Removed.
5910 2003-06-29  Werner LEMBERG  <wl@gnu.org>
5912         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
5913         The X11 documentation files use them.
5914         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
5916 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
5918         * tmac/e.tmac (@C): Handle .ad also.
5920 2003-06-12  Werner LEMBERG  <wl@gnu.org>
5922         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
5924         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
5925         Assign `n' even here.  It is possible to construct a node
5926         immediately following an escape character:
5928           .di xx
5929           \?\\\?a
5930           .br
5931           .di
5932           .xx
5934 2003-06-10  Werner LEMBERG  <wl@gnu.org>
5936         * README.WIN32: Removed.
5937         * MANIFEST: Updated.
5939 2003-06-07  Werner LEMBERG  <wl@gnu.org>
5941         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
5943 2003-06-05  Werner LEMBERG  <wl@gnu.org>
5945         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
5946         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
5948 2003-06-03  Werner LEMBERG  <wl@gnu.org>
5950         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
5951         is done by the calling function.
5953 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
5955         * tmac/X.tmac: Fix definition of `em'.
5957 2003-05-22  Werner LEMBERG  <wl@gnu.org>
5959         * src/roff/troff/input.cc (return_macro_request): Fix detection of
5960         argument.
5962 2003-05-18  Werner LEMBERG  <wl@gnu.org>
5964         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
5965         to make items work which consist only of a tag.
5967 2003-05-17  Werner LEMBERG  <wl@gnu.org>
5969         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
5970         aren't stretched in a tag (this can fail with unformatted boxes).
5971         Instead, insert a break and go back one line.
5973 2003-05-16  Werner LEMBERG  <wl@gnu.org>
5975         * src/roff/troff/input.cc (return_macro_request): If called with
5976         argument pop macro twice.  We need this to trace `return'.
5978         * tmac/trace.tmac: Handle `return'.
5979         Fix typos.
5981         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5982         Document.
5984 2003-05-15  Larry Kollar  <kollar@alltel.net>
5986         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
5987         registers `FPS', `FVS', and `FPD'.
5989 2003-05-15  Werner LEMBERG  <wl@gnu.org>
5991         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
5992         correctly.
5994 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
5996         * tmac/groff_mdoc.man: Slight improvements.
5998 2003-05-03  Werner LEMBERG  <wl@gnu.org>
6000         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
6001         `doc-header-space' after header line if register `cR' is set.
6003 2003-05-02  Werner LEMBERG  <wl@gnu.org>
6005         * TODO: Updated.
6007 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
6009         * tmac/doc-common (Nd): Use \[em].
6011 2003-05-01  Werner LEMBERG  <wl@gnu.org>
6013         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
6014         doc-footer-space): Initialize to 0.5i.
6015         (doc-setup-page-layout): Don't set doc-header-space and
6016         doc-footer-space.
6018 2003-04-30  Werner LEMBERG  <wl@gnu.org>
6020         * REVISION: Set to 1.
6022         * doc/pic.ms: Document possible problems with `figname'.
6024 2003-04-29  Werner LEMBERG  <wl@gnu.org>
6026 Version 1.19 released
6027 =====================
6029         * VERSION: Set to 1.19.
6030         * REVISION: Set to 0.
6031         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
6033         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6034         Define charset as `US-ASCII' in html output.
6036         * tmac/www.tmac (ULE): Add missing scaling indicator.
6038         * win32-diffs: Removed.
6040 2003-04-28  Werner LEMBERG  <wl@gnu.org>
6042         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
6043         `.da' and `.boxa'.
6044         Document how to insert discardable whitespace with `.ss'.
6046 2003-04-27  Werner LEMBERG  <wl@gnu.org>
6048         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
6049         work with plain TeX also.
6051         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
6053 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
6055         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6056         Use a loose DTD.
6058 2003-04-24  Werner LEMBERG  <wl@gnu.org>
6060         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
6061         vbox with positive height and zero depth if in TeX mode.
6063         * NEWS: Document glyph name changes for grodvi and grolj4.
6065 2003-04-23  Werner LEMBERG  <wl@gnu.org>
6067         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
6068         * doc/pic.ms: Fixed.
6070 2003-04-21  Werner LEMBERG  <wl@gnu.org>
6072         HP-UX 10.20 has `snprintf' but it isn't declared.
6074         * configure.ac: Add declaration test for snprintf.
6075         * configure: Regenerated.
6076         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
6077         * src/include/config.hin: Regenerated.
6079 2003-04-19  Werner LEMBERG  <wl@gnu.org>
6081         Add keyword `figname' to pic, specifying the name of the picture
6082         box in TeX mode.  Based on a patch from William J Poser
6083         <wjposer@unagi.cis.upenn.edu>.
6085         * src/preproc/pic/pic.y: New token `FIGNAME'.
6086         (macro_name): New rule of type <str>.
6087         (placeless_element): Handle `FIGNAME'.
6088         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
6089         * src/preproc/pic/main.cpp (graphname): New global variable.
6090         (do_picture): Initialize `graphname'.
6091         * src/preproc/pic/pic.h: Updated.
6092         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
6093         `graphname'.
6094         Simplify TeX code.
6095         (tex_output::text): Beautify output.
6096         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
6097         `shaded' and `outlined' unconditionally.
6098         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
6099         Minor improvements.
6101         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
6102         greater is necessary.
6104 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
6106         Add option -r to soelim to avoid emission of `.lf' lines.
6107         Add option -t to produces TeX comment lines instead of `.lf' lines.
6109         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
6110         and `tex_flag'.
6111         (usage): Updated.
6112         (main): Handle `-r' and `-t'.
6113         (set_location): Handle `raw_flag' and `tex_flag'.
6114         * src/preproc/soelim/soelim.man, NEWS: Updated.
6116 2003-04-17  Werner LEMBERG  <wl@gnu.org>
6118         * tmac/hyphenex.sh: Replaced with...
6119         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
6120         nightmares.
6122         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
6123         if --quiet is used for the configure script.
6124         * configure: Regenerated.
6126 2003-04-16  Werner LEMBERG  <wl@gnu.org>
6128         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
6129         Add `const' to second argument.
6130         (html_printer::add_table_end): Add `const' to argument.
6131         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
6132         `const' to arguments.
6133         * src/devices/grohtml/html-text.h: Updated.
6135         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
6136         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
6137         argument.
6139         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
6140         cast for integer constant.
6142         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
6143         (writeNbytes): Add `const' to first argument.
6144         (writeString): Add `const' to argument.
6145         (char_buffer::can_see): Add `const' to third argument.
6146         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
6147         `const' to argument.
6148         * src/preproc/html/pushback.h: Updated.
6150         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
6151         (include_path_append): Add `const' to argument.
6152         (do_file): Updated.
6154         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
6155         for `value'.
6156         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
6157         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
6158         for `value'.
6159         (unicode_decompose_init::unicode_decompose_init): Updated.
6160         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
6161         for `value'.
6162         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
6163         * src/roff/troff/input.cc (process_startup_file): Add `const' to
6164         argument.
6166         * tmac/hyphenex.sh: Make script more portable by using a here
6167         document.
6169 2003-04-15  Werner LEMBERG  <wl@gnu.org>
6171         Renamed all `*.cc' files to `*.cpp'.
6172         Updated all configuration files, makefiles, and documentation.
6174 2003-04-14  Werner LEMBERG  <wl@gnu.org>
6176         * tmac/hyphenex.sh: Slight improvements.
6178 2003-04-13  Werner LEMBERG  <wl@gnu.org>
6180         * font/devascii/R.proto, font/devcp1037/R.proto,
6181         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
6182         character slots with unnamed glyphs.
6184         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
6185         (an-first): New global variable.
6186         (an-header): Emit vertical space between multiple man pages.
6188 2003-04-11  Werner LEMBERG  <wl@gnu.org>
6190         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
6191         values.
6193 2003-04-10  Werner LEMBERG  <wl@gnu.org>
6195         * PROBLEMS: Revised.
6197 2003-04-10  Bernd Warken  <bwarken@mayn.de>
6199         * doc/webpage.ms: Improved.
6201 2003-04-09  Werner LEMBERG  <wl@gnu.org>
6203         Add register \n[.height] which returns the value of \H.
6204         Add register \n[.slant] which returns the value of \S.
6206         * src/roff/troff/env.cc (init_env_requests): Implement.
6207         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6208         Document.
6210 2003-04-08  Werner LEMBERG  <wl@gnu.org>
6212         * tmac/html.tmac: Move some of the data into html-end.tmac.
6213         Remove most of the character translations for eqn since html fonts
6214         now cover those characters.
6215         Load www.tmac.
6216         * tmac/html-end.tmac: New file.
6217         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
6218         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
6219         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
6221 2003-04-07  Werner LEMBERG  <wl@gnu.org>
6223         * man/groff_out.man: Document negative values of `N' if -Thtml is
6224         used.
6226 2003-04-06  Werner LEMBERG  <wl@gnu.org>
6228         * Makefile.comm (depend.temp): Check location of YTABC.
6230 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6232         * doc/Makefile.in (TROFFBIN): New variable for troff
6233         binary path.
6234         (GROFFBIN): New variable for groff binary path.
6235         (groff_bin_path): Rename to GROFF_BIN_PATH.
6236         (TROFF): Use TROFFBIN.
6237         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6238         * doc/Makefile.sub (GROFFBIN): New variable for groff
6239         binary path.
6240         (groff_bin_path): Rename to GROFF_BIN_PATH.
6241         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6243         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
6244         with INSTALL_SCRIPT.
6245         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
6246         * Makefile.dev (all): Depend on DEVSCRIPTS.
6247         (install_dev): Likewise.
6248         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
6249         scripts.
6250         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
6251         (DEVGENSCRIPTS): New variable to hold generated scripts.
6253 2003-04-05  Werner LEMBERG  <wl@gnu.org>
6255         * src/libs/libdriver/input.cc (IntArray::operator[],
6256         IntArray::get_data): Remove meaningless `const' in return value.
6258         * README.CVS: New file.
6260 2003-04-04  Werner LEMBERG  <wl@gnu.org>
6262         Check for stdint.h in C++, not in C.
6264         * aclocal.m4 (GROFF_STDINT_H): New function,
6265         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6266         AC_CHECK_HEADERS.
6267         * configure, src/include/config.hin: Regenerated.
6268         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6271         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
6272         with a negative value, representing the width of the unbreakable
6273         space (only for -Thtml).  grohtml then converts this back to
6274         &nbsp; and uses the value of N as its width.
6276         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6277         unbreakable_space_node::tprint): Emit `N-<width>'.
6278         * src/include/printer.h (printer::set_numbered_char): Make it
6279         virtual.
6280         Make members `font_table' and `nfonts' protected instead of private.
6281         * src/devices/grohtml/post-html.cc
6282         (html_printer::set_numbered_char): New member function.
6285         * src/libs/libgroff/maxfilename.cc:
6286         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6288         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6289         emit word marker.
6291 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
6293         * man/roff.man: Small fixes.
6295 2003-04-03  Werner LEMBERG  <wl@gnu.org>
6297         Make groff independent from locale's numeric settings.
6299         * configure.ac: Check for `setlocale'.
6300         * configure, src/include/config.hin: Regenerated.
6302         * src/include/lib.h: Handle HAVE_SETLOCALE.
6304         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6305         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6306         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6309         * doc/groff.texinfo: Change dir category to `Typesetting'.
6310         (Man font macros): Mention that there is no space between arguments
6311         of .BI and friends.
6313         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6314         (*printer::change_color, *printer::change_fill_color): Add missing
6315         `const'.
6317 2003-04-02  Werner LEMBERG  <wl@gnu.org>
6319         * src/devices/grohtml/html-table.cc (html_table::emit_col,
6320         html_table::is_gap): Compute table widths after converting border
6321         positions to avoid rounding errors.
6323 2003-04-01  Werner LEMBERG  <wl@gnu.org>
6325         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6326         `space_emitted' properly.
6328 2003-03-31  Werner LEMBERG  <wl@gnu.org>
6330         * src/devices/grohtml/html-table.cc: Fix column width calculation.
6331         (html_table::set_linelength): Don't add 1.
6332         (html_table::add_indent): Don't subtract 1.
6334         * tmac/html.tmac: Set default page offset to zero.
6336 2003-03-30  Werner LEMBERG  <wl@gnu.org>
6338         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
6340         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6341         unbreakable_space_node::tprint): New functions.
6342         (troff_output_file): Make space_char_hmotion_mode::tprint and
6343         unbreakable_space_node::tprint to friends.
6344         * src/roff/troff/node.h: Updated.
6346         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
6347         in the HTML standard).
6349 2003-03-29  Werner LEMBERG  <wl@gnu.org>
6351         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6352         Otherwise, the following code
6354           .di xxx
6355           .ps 10
6356           a
6357           .br
6358           .di
6359           x\*[xxx]
6361         produces `x a' instead of `xa'.  This is a temporary fix, disabling
6362         font changes in diversions for -Thtml.
6364         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6365         `HTML-TAG'.
6366         (an-do-tag-html): Merge with ...
6367         (an-do-tag): This macro.
6368         Change code slightly to circumvent grohtml bug.
6369         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6371         * src/devices/grohtml/html-table.cc (html_table::emit_col,
6372         html_table::is_gap): Round `width' properly.
6374         * tmac/html.tmac: Provide some default layout parameters for
6375         grohtml.
6377         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6378         command.
6380 2003-03-28  Werner LEMBERG  <wl@gnu.org>
6382         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6384 2003-03-27  Werner LEMBERG  <wl@gnu.org>
6386         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6387         defined.
6389 2003-03-20  Werner LEMBERG  <wl@gnu.org>
6391         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6392         `.vs'.
6393         * doc/groff.texinfo: Updated.
6395 2003-03-19  Werner LEMBERG  <wl@gnu.org>
6397         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6398         TOKEN_END_TRAP>: Reset `have_input'.
6400 2003-03-18  Werner LEMBERG  <wl@gnu.org>
6402         * src/roff/groff/groff.man: Mention groff_trace man page.
6404 2003-03-16  Werner LEMBERG  <wl@gnu.org>
6406         * Makefile.in (LIBEXT): New variable to indicate the file extension
6407         of library files.  Computed heuristically from $(OBJEXT).
6408         (MDEFINES): Add $(LIBEXT).
6409         * Makefile.lib, Makefile.comm: Use it.
6411         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
6412         overlong lines into smaller chunks.
6413         (get_binary): New function.
6414         (main): Use them.
6415         * src/utils/pfbtops/pfbtops.man: Updated.
6417 2003-03-15  Colin Watson  <cjwatson@debian.org>
6419         * src/roff/groff/groff.man: Minor syntax fix.
6421 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
6423         * src/devices/grops/ps.cc (ps_printer::media_set,
6424         ps_printer::~ps_printer): Handle zero paper width and length.
6426 2003-03-13  Werner LEMBERG  <wl@gnu.org>
6428         Add options -p and -l to grodvi.
6430         * src/devices/grodvi/dvi.cc: Include paper.h.
6431         (landscape_flag, user_paper_length, user_paper_width): New global
6432         variables.
6433         (dvi_printer::begin_page): Emit `papersize' special.
6434         Set color after initialization of `cur_h' and `cur_v'.
6435         (main): Add options `-l' and `-p'.
6436         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6437         * src/devices/grodvi/grodvi.man, NEWS: Updated.
6439         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6441 2003-03-12  Werner LEMBERG  <wl@gnu.org>
6443         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6444         * man/groff_tmac.man: This man page.
6445         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6446         deprecated.
6448         * tmac/X.tmac: Don't load pspic.tmac.
6450 2003-03-11  Werner LEMBERG  <wl@gnu.org>
6452         Make variable `pr' local to libdriver/input.cc.  Based on a patch
6453         by Bernd Warken <bwarken@mayn.de>.
6455         * src/include/driver.h (pr): Removed.
6457         * src/libs/libdriver/input.cc (pr): New global variable.
6458         (do_file): Deallocate `pr'.
6459         * src/libs/libdriver/printer.cc (pr): Removed.
6461         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6462         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6463         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6464         (main): Don't delete `pr'.
6466 2003-03-10  Werner LEMBERG  <wl@gnu.org>
6468         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6469         * tmac/papersize.tmac: New file.
6470         * tmac/troffrc: Include `papersize.tmac'.
6471         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6472         * tmac/an-old.tmac: Set LT to LL by default.
6474         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6475         doc/groff.texinfo: Updated.
6477         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6478         bug which caused all odd iso papers to have wrong dimensions.
6480         * src/devices/grops/ps.cc (user_paper_width): New global variable.
6481         (main) <'p'>: Set `user_paper_width' also.
6482         (ps_printer::media_width, ps_printer::media_height): Use values
6483         given with option `-p'.
6485 2003-03-09  Werner LEMBERG  <wl@gnu.org>
6487         * src/include/nonposix.h: Provide default for SET_BINARY.
6489         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6490         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6491         unconditionally.
6493         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6494         (main): Treat \r\n as \n.
6496 2003-03-08  Werner LEMBERG  <wl@gnu.org>
6498         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6499         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6501 2003-03-07  Werner LEMBERG  <wl@gnu.org>
6503         Added support to access more than 256 glyphs in Type 1 fonts.
6505         * src/devices/grops/ps.cc (subencoding): New structure.
6506         (style): Add `sub' field.
6507         Updated all users.
6508         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6509         Add `set_subencoding', `get_subfont' and `encode_subfont' member
6510         functions.
6511         Updated all users.
6512         (ps_printer::set_char): Use `set_subencoding'.
6513         (make_subencoding_name): New function.
6514         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6515         (ps_printer::~ps_printer): Emit subencoding definitions.
6517         * src/devices/grops/psrm.cc (valid_input_table): New array to
6518         properly support EBCDIC.
6519         (white_space): Add `\f'.
6520         (ps_get_line): Change first argument to be of type `string &'.
6521         Updated all callers.
6522         This allows to get lines of arbitrary length.
6523         Use `valid_input_table'.
6524         Remove warning about non-conforming PS line length.  This seems
6525         not to be of great importance -- for example, dvips don't emit
6526         a warning either.
6527         (PS_LINE_MAX): Removed.
6528         (matches_comment): Change first argument to be of type `string &'.
6530         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6532         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6533         %AGL_to_unicode, %default_ligatures): New hash tables.
6534         Read all map entries.
6535         Add unencoded characters.
6536         Check for default ligatures if there are no `L' entries.
6537         Print all kern entries.
6538         Print all characters in charset.
6539         * src/utils/afmtodit/afmtodit.man: Updated.
6541         * font/devps/*: Regerated all fonts.
6543         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6544         of characters, just use `.trin'.  Otherwise the mapping depends
6545         on the font encoding.
6546         * tmac/ps.tmac: Add `fi' and `fl'.
6547         Improve `Fi' and `Fl'.
6548         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6549         * tmac/Xps.tmac: Fix `em'.
6551         * NEWS: Updated.
6553 2003-03-04  Werner LEMBERG  <wl@gnu.org>
6555         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6556         `have_input'.
6558 2003-03-03  Werner LEMBERG  <wl@gnu.org>
6560         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6562         * font/devps/generate/textmap: Remove entry `similarequal'.
6563         * font/devps/symbolmap: Updated.
6565 2003-03-02  Werner LEMBERG  <wl@gnu.org>
6567         * src/libs/libgroff/font.cc (font::load): Fix error message for
6568         bad character type.
6570         * src/devices/grops/grops.man: Improve documentation of the -b
6571         flag.
6573         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
6574         `ascii' and `cp1047'.
6576 2003-03-01  Werner LEMBERG  <wl@gnu.org>
6578         Document composite glyphs and the `composite' request.
6580         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
6582 2003-02-28  Werner LEMBERG  <wl@gnu.org>
6584         * font/devdvi/generate/ec.map: Add some more Unicode entities.
6585         * font/devdvi/*EC: Updated.
6587         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
6588         * tmac/latin1 (latin1-tr): Undo any previous mapping.
6589         * tmac/troffrc: Load `composite.tmac'.
6590         * tmac/Makefile.sub (NORMALFILES): Updated.
6592         * doc/groff.texinfo (Input Encodings): New section.
6593         * NEWS: Updated.
6595 2003-02-27  Werner LEMBERG  <wl@gnu.org>
6597         * doc/texinfo.tex: New version 2003-02-11.06.
6599         * tmac/doc-common (Dt): Don't emit warning for unknown section.
6600         * tmac/groff_mdoc.man: Fix description of `Dt'.
6602 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
6604         * font/devps/prologue.ps: Fix for included Postscript that does
6605         a setpagedevice -- which is now safely ignored.
6607         * NEWS: Updated.
6609         * src/devices/grops/ps.cc: Now sets the page size in the generated
6610         document.  This is done in two ways: Via a %%-comment for gv and
6611         the like, and via a PageSize and setpagedevice for programs that
6612         understands Postscript proper, like ps2pdf.
6614         * src/devices/grops/ps.h: New broken-flag to avoid page size
6615         definition, if required.
6617         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
6619         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
6620         Not really necessary due to the fix in prologue.ps, but cleaner:
6621         Such information does not belong in an .eps file.
6623         * doc/Makefile.sub: See doc/Makefile.in.
6625 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
6627         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
6628         instead of P1 since the latter is broken in some versions of netpbm.
6629         * configure: Updated.
6631 2003-02-26  Larry Kollar  <kollar@alltel.net>
6633         Make man pages more customizable.
6635         * tmac/an-old.tmac (FT): New register holding footer distance from
6636         bottom.
6637         (HF): New string holding the default heading font.
6638         (TH): Handle registers `IN' and `SN' set on the command line.
6639         Use `FT'.
6640         (PT, BT): New strings to customize header and footer lines.
6641         (an-header, an-footer): Use them.
6642         (SH, SS): Use `HF'.
6643         * tmac/groff_man.man: Document changes.
6645         * doc/groff.texinfo: Document man changes.
6646         Document Ultrix extensions of man.
6648 2003-02-26  Werner LEMBERG  <wl@gnu.org>
6650         * src/roff/troff/input.cc (do_width, do_if_request): Reset
6651         `have_input' after changing back to old environment.
6653         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
6654         function up to be defined before first call.  This is necessary to
6655         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
6657         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
6658         the default font directory also.  Based on a patch from James
6659         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
6660         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
6661         * src/utils/afmtodit/afmtodit.man: Document it.
6663         * NEWS: Updated.
6665         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
6667 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
6669         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
6670         (GROFF_PNMTOPS_NOSETPAGE): New macro.
6671         * configure.ac: Use it.
6672         * configure: Regenerated.
6673         * Makefile.in: Updated.
6675         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
6676         (CLEANADD): Add www.tmac-sed.
6677         (pnmtops_nosetpage): Define default.
6678         (install_data): Handle www.tmac-sed and substitute
6679         @PNMTOPS_NOSETPAGE@.
6680         (stamp-sed): Add www.tmac.
6681         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
6682         It now breaks URLs at suitable places.
6683         (www:substring_ok): New register set by...
6684         (www:@test_substring): New macro.
6685         (www:error): New alias to www-error.
6686         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
6687         New macros.
6688         (URL): Use www:url_breaks.
6689         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
6690         (CDS, CDE): New macros.
6692 2003-02-25  Werner LEMBERG  <wl@gnu.org>
6694         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
6695         buffer overflow.
6697 2003-02-24  Werner LEMBERG  <wl@gnu.org>
6699         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
6700         can be negative also.
6702         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
6703         `int16'.
6704         (read_char_table): Avoid negative ascenders.
6705         (output_charset): Add cast.
6706         * font/devlj4/*: Regenerated.
6708         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
6709         possible.
6711         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
6712         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
6713         of `<>'.
6714         * font/devdvi/*: Regenerated.
6716         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
6717         normal width, while the previously used characters (U+2329 and
6718         U+232A) are classified as wide due to canonical equivalence with the
6719         CJK punctuation characters U+3008 and U+3009.
6721         * font/devutf8/R.proto: Updated.
6722         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
6724         * man/groff_char.man: Simplify handling of table traps by
6725         introducing `start block' and `end block' macros.
6726         (Ns, Ne, 2s, 2e, Ds, De): New macros.
6727         (DL): Make it work with Unix troff also.
6728         Fix code values of `la' and `ra'.
6730         * tmac/dvi.tmac: Define `<>' for CW and CWI.
6732 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
6734         * src/devices/grohtml/post-html.cc (element_list::~element_list):
6735         New destructor, fixing a major memory leak.
6737 2003-02-22  Werner LEMBERG  <wl@gnu.org>
6739         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
6740         to be in conformance with Unicode 3.0 and newer.
6742         * font/devlj4/generate/text.map: Add `Eu'.
6743         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
6744         * font/devlj4/S: Regenerated.
6746         * man/groff_char.man: Completely rewritten.
6748         * doc/groff.texinfo: Fix description of request and macro arguments.
6750 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
6752         Valgrind fixes.
6754         * src/devices/grohtml/html-table.cc (html_table::~html_table):
6755         Deallocate `columns' list.
6756         * src/devices/grohtml/post-html.cc (char_block::~char_block):
6757         New destructor.
6758         (text_glob::text_glob_html, text_glob::text_glob_special,
6759         text_glob::text_glob_line, text_glob::text_glob_auto_image,
6760         text_glob::text_glob_tag): Avoid memory leaks.
6761         (text_glob::remember_table): Free memory before reassigning.
6763 2003-02-19  Werner LEMBERG  <wl@gnu.org>
6765         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
6766         alias `hbar'), the Planck constant over two pi.
6768         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
6769         `+e' for position 34.
6770         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
6771         `u2662' and `u2661'.
6772         * font/devdvi/{MI,S}: Regenerated.
6773         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
6774         * font/devlbp/*: Add `hbar' alias.
6775         * font/devlj4/generate/special.map: Ditto.
6776         * font/devlj4/S: Regenerated.
6777         * font/devps/generate/symbolchars: Add `+e'.
6778         * font/devps/generate/textmap: Fix PS name for `-h'.
6779         Add `hbar' alias.
6780         * font/devps/symbolmap: Regenerated.
6782         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
6784         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
6785         `-h', `hbar'.
6786         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
6787         `-h'.
6789         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
6790         `hbar'.
6791         * tmac/tty-char.tmac: Add `+e'.
6793 2003-02-17  Werner LEMBERG  <wl@gnu.org>
6795         Another round trying to really fix problems with `have_input'.
6797         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
6798         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
6800         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
6801         handling if both foreground and background colors are default.
6803         * doc/groff.texinfo (Debugging): Document .lf differences to
6804         AT&T troff.
6806 2003-02-16  Werner LEMBERG  <wl@gnu.org>
6808         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
6809         null-bytes in created string.
6811         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
6812         alias_macro, lookup_request): Improve warning messages.
6814         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
6815         not `strdup'.
6816         Free `last_image_filename'.
6818         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
6819         `buffer'.
6820         (imageList::createPage, imageList::createImage): Use `free', not
6821         `a_delete'.
6822         (imageItem::~imageItem): Free `imageName'.
6823         (addRegDef): Use `strsave', not `strdup'.
6824         (get_resolution): Free `pathp'.
6826 2003-02-15  Werner LEMBERG  <wl@gnu.org>
6828         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
6829         to `dummy'.
6831 2003-02-14  Werner LEMBERG  <wl@gnu.org>
6833         Add memory management for colors to deallocate unnamed colors
6834         properly.
6836         * src/include/color.h (color): New members `free_list' and `next'.
6837         New member functions `new' and `delete'.
6838         Add destructor.
6839         * src/libs/libgroff/color.cc: Implement it.
6841         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
6842         for array size of new operator.
6844         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
6845         redundant comparison.
6847         * src/roff/troff/input.cc (word_space_node::reread,
6848         hmotion_node::reread): Avoid warning about unused parameter.
6849         (reset_output_registers): Remove redundant parameter.
6850         (define_color): Undo change 2003-02-12.
6852         * src/roff/troff/reg.h: Updated.
6854         * src/roff/troff/node.cc (troff_output_file::really_print_line,
6855         output_file::put_filename, real_output_file::really_put_filename,
6856         ascii_output_file::really_print_line,
6857         break_char_node::get_hyphen_list): Avoid warning about unused
6858         parameter.
6859         (suppress_node::tprint): Updated.
6861         * configure.ac: Check declaration for rand() and srand().
6862         * configure: Regenerated.
6864         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
6865         conditionally.
6866         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
6867         and srand().
6869         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
6870         to avoid compiler warnings.
6872         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
6873         unused.
6875         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
6876         is unused.
6877         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
6878         (unused) parameter.
6879         Updated all callers.
6881         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
6882         is unused.
6883         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
6884         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
6886         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
6887         Parameter is unused.
6888         (html_printer::add_table_end): Define parameter conditionally.
6889         * src/devices/grohtml/output.cc (simple_output::special): Parameter
6890         is unused.
6892         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
6893         (lbp_printer::set_char): Last parameter is unused.
6895         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
6897 2003-02-13  Werner LEMBERG  <wl@gnu.org>
6899         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
6900         Make \D'f ...' move horizontally again for backwards compatibility.
6901         Replace it with \D'Fg ...' where appropriate to avoid dependency
6902         on horizontal resolution.
6904         * src/roff/troff/input.cc (do_get_long_name): New function.
6905         (get_long_name): Call it.
6907         (read_draw_node): Handle `\D'Fx ...' by calling ...
6908         (read_color_draw_node): New function.
6910         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
6911         `end'.
6912         Pass it to `do_get_long_name' which is used instead of
6913         `get_long_name'.
6915         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
6916         unnecessary value guard.
6917         (parse_D_command) <'f'>: Add horizontal shift.
6919         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
6920         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6921         (FILL_MAX): Removed.
6923         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6924         Updated.
6926 2003-02-12  Werner LEMBERG  <wl@gnu.org>
6928         * src/roff/troff/input.cc (do_name_test, do_expr_test,
6929         do_zero_width): Push `\n' if closing delimiter is missing.
6931         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
6932         <'F'>: Make \F non-transparent at the beginning of line.
6933         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
6934         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
6935         `have_input'.
6937         (define_color): Free color in case of reassignment.
6939         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
6940         @DefescListEnd): Use @Var, not @var.
6941         Fix all calls.
6943         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
6945         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
6946         `shaded' and `outlined' arrays.
6947         (object_spec::object_spec): Initialize `shaded' and `outlined'.
6948         (graphic_object::set_fill_color, graphic_object::set_outline_color):
6949         Use strsave.
6950         (closed_object::set_fill_color): Ditto.
6951         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
6952         instead of strdup.
6953         (troff_output::reset_color): Use a_delete instead of free.
6954         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
6956 2003-02-11  Werner LEMBERG  <wl@gnu.org>
6958         * doc/groff.texinfo: Improve documentation of `ad'.
6959         Document that \D'f...' is dependent on the horizontal resolution.
6960         * man/groff_diff.man: Improve documentation of \D'f...'.
6962         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
6963         compensating \h'...' for \D'f ...' since the latter no longer moves
6964         current position.
6965         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6967 2003-02-10  Werner LEMBERG  <wl@gnu.org>
6969         Improve error messages for `x F' (and `F') commands.
6971         * src/include/error.h: Add declaration for
6972         `current_source_filename'.
6973         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
6974         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
6975         parameter for source file string.
6976         Updated all callers.
6978         * src/libs/libdriver/input.cc: Add `current_source_filename'.
6979         (remember_source_filename): New function.
6980         (parse_x_command <'F'>, do_file <'F'>): Use it.
6982 2003-02-09  Werner LEMBERG  <wl@gnu.org>
6984         Make grotty not emit warnings about unknown colors more than
6985         necessary.
6987         * src/devices/grotty/tty.cc: Include `ptable.h'.
6988         (TTY_MAX_COLORS): Removed.
6989         (DEFAULT_COLOR_IDX): Defined to -1.
6990         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
6991         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
6992         Change `tty_colors' to be a ptable.
6993         First arg of `put_color' is now `char'.
6994         New functions `make_rgb_string' and `tty_color'.
6995         (tty_printer::tty_printer): Use `tty_color'.
6996         (tty_printer::color_to_idx): Return value is now `char'.
6997         Use `tty_color'.
6999         * src/include/color.h (color): Add `print_color' member function.
7000         * src/libs/libgroff/color.cc (color::print_color): Implement it.
7002 2003-02-08  Werner LEMBERG  <wl@gnu.org>
7004         Valgrind fixes.
7006         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
7007         encoding file.
7009         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
7010         assume that value has been allocated with `new[]', thus use
7011         `a_delete' for deallocation.
7013         * src/libs/libdriver/input.cc (get_integer_arg,
7014         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
7015         where appropriate.
7017         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
7018         * src/libs/libgroff/nametoindex.cc
7019         (character_indexer::named_char_index): Use `new <type>[1]'.
7021         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
7022         <type>[1]'.
7023         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
7024         (split_text): Use `a_delete'.
7026         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
7027         <type>[1]'.
7029         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
7030         harmless memory leak.
7031         (hyphen_trie::read_patterns_file): Initialize `buf'.
7032         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
7033         Initialize `current_fill_color'and `current_glyph_color'.
7034         * src/roff/troff/glyphuni.cc
7035         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
7036         * src/roff/troff/uniuni.cc
7037         (unicode_decompose_init::unicode_decompose_init): Ditto.
7038         * src/roff/troff/uniglyph.cc
7039         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
7041 2003-01-26  Werner LEMBERG  <wl@gnu.org>
7043         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
7044         `access' before calling `unlink'.
7045         (do_file): Handle __EMX__.
7047         * src/include/nonposix.h: Handle __EMX__.
7049         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
7050         (fontpath,tmacpath): Use it.
7051         (MDEFINES): Add it.
7052         Sorted alphabetically.
7054         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
7055         @SEP@.
7056         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
7057         @SEP@.
7059 2003-01-27  Werner LEMBERG  <wl@gnu.org>
7061         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
7062         New files, copied from gnulib.
7063         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
7064         * configure.ac: Updated.
7065         * configure: Regenerated.
7067         * src/include/config.hin: Regenerated.
7068         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
7069         Don't define `strcasecmp' as `strcmp'.
7070         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
7071         Dont define `strncasecmp' as `strncmp'.
7073         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
7074         Removed.
7076 2003-01-26  Werner LEMBERG  <wl@gnu.org>
7078         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
7079         s/unline/unlink/.
7081 2003-01-25  Werner LEMBERG  <wl@gnu.org>
7083         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
7085 2003-01-24  Werner LEMBERG  <wl@gnu.org>
7087         Add US-english hyphenation exceptions (converted from Barbara
7088         Beeton's hyphenation exception log reports which appear irregularly
7089         in TUGBoat).
7091         * tmac/hyphen.us: Updated to latest version.
7092         * tmac/README: Updated.
7093         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
7094         * tmac/troffrc: Load `hyphenex.us'.
7095         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
7096         * doc/groff.texinfo: Updated.
7098 2003-01-23  Werner LEMBERG  <wl@gnu.org>
7100         Improve hyphenation slightly.  This is a first step in redesigning
7101         the hyphenation algorithm to make it more flexible (e.g. allowing
7102         kerns and ligatures between the hyphenation character and the
7103         following character -- while not used normally in English, other
7104         languages like German would benefit).
7106         * src/roff/troff/env.cc (environment::hyphenate_line): Use
7107         assertion instead of if-clause.
7108         Let `get_hyphen_list' return the number of involved characters in
7109         the hyphenation pattern instead of computing it directly (which
7110         often yields too small values).
7111         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
7112         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
7113         parameter.
7115 2003-01-22  Werner LEMBERG  <wl@gnu.org>
7117         Fixing a bug which caused groff to hang if the hyphenation exception
7118         dictionary tried to grow.
7120         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
7121         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
7122         pointer to dictionary.
7124 2003-01-20  Werner LEMBERG  <wl@gnu.org>
7126         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
7127         negative left italic correction.
7128         * src/utils/afmtodit/afmtodit.man: Document it.
7130         * font/devps/generate/Makefile (RFLAG): Add `-m'.
7131         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
7132         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
7134         * NEWS: Updated.
7136 2003-01-16  Werner LEMBERG  <wl@gnu.org>
7138         * NEWS: Updated.
7140 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
7142         * src/preproc/refer/refer.man: Mention REFER environment variable.
7144 2003-01-05  Werner LEMBERG  <wl@gnu.org>
7146         Similar to \[is], the square root glyph (\[sr]) and the square root
7147         extension glyph (\[radicalex]) are now text symbols.  The new
7148         mathematical versions are called \[sqrt] and \[sqrtex],
7149         respectively.
7151         * font/devX*/S: Regenerated.
7152         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
7153         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
7154         * font/devdvi/EX, font/devdvi/S: Regenerated.
7155         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
7156         * font/devlj4/generate/special.map: Add `sqrt'.
7157         * font/devlj4/S: Regenerated.
7158         * font/devps/generate/textmap: Add `sqrt'.
7159         * font/devps/S, font/devps/symbolmap: Regenerated.
7161         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
7162         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
7163         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
7164         overlap horizontally.
7166         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
7167         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
7168         Fix `radicalex'.
7170         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
7171         and `sqrtex' are overlapping glyphs.
7173 2003-01-04  Werner LEMBERG  <wl@gnu.org>
7175         * font/devdvi/generate/texsy.map: Add `is'.
7176         * font/devps/symbolmap: Regenerated.
7177         * font/devdvi/*TC, MI, S: Regenerated.
7179         * tmac/dvi.tmac: Remove `is'.
7181 2003-01-03  Werner LEMBERG  <wl@gnu.org>
7183         `is' is now a text symbol (only relevant for dvi).  The math variant
7184         can be accessed with `integral'.
7186         * font/devX*/S: Regenerated.
7187         * font/devdvi/generate/texex.map: Remove `is'.
7188         * font/devdvi/EX: Updated.
7189         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
7190         * font/devlj4/generate/special.map: Ditto.
7191         * font/devlj4/S: Regenerated.
7192         * font/devps/generate/textmap: Add `integral'.
7193         * font/devps/S: Regenerated.
7195         * tmac/dvi.tmac: Define `is'.
7197         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
7199         * src/preproc/tbl/main.cc (process_format): Fix error message.
7201 2003-01-02  Werner LEMBERG  <wl@gnu.org>
7203         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
7204         * font/devps/textmap: Fix entries for `ne' and `nc'.
7205         * font/devps/symbolmap: Regenerated.
7207         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
7208         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
7209         `38', `58', `78', `-+', `|=', `nc', `ne'.
7211         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
7212         Use `schar' for `aq'.
7213         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
7214         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
7215         * tmac/tty.tmac: Add `ne'.
7217         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
7218         for fallback glyphs.
7220 2002-12-29  Werner LEMBERG  <wl@gnu.org>
7222         Add glyph `|='.
7224         * font/devX*/*: Regenerated.
7225         * font/devdvi/generate/ec.map: Remove `eq'.
7226         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
7227         Assign `|=' to position 39.
7228         * font/devdvi/*EC, S: Regenerated.
7229         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
7230         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
7231         Assign `|=' to position 549.
7232         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
7233         `equalmath'.
7234         Add `uni2243' for `|='.
7236         * tmac/ec.tmac: Add `eq'.
7237         * tmac/dvi.tmac: Add `=~'.
7238         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
7239         `|='.
7241 2002-12-21  Werner LEMBERG  <wl@gnu.org>
7243         * font/devdvi/generate/tc.map: Remove `**'.
7244         * font/devdvi/*TC: Regenerated.
7245         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
7246         `78', `<<', `>>'.
7247         * font/devutf8/NOTES: Updated.
7249         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
7250         Don't give default parameter to `set_macro'.
7251         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
7252         instead of `set_macro'.
7253         (charinfo::setx_macro): Implement it.
7254         (charinfo::set_macro): Don't change `mode'.
7256         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
7257         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
7258         * tmac/dvi.tmac: Define `!=' with `.schar'.
7260 2002-12-20  Werner LEMBERG  <wl@gnu.org>
7262         * font/devX*/S: Regenerated.
7263         * font/devdvi/generate/ec.map: Remove `pl'.
7264         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7265         * font/devdvi/*{TC,EC}: Regenerated.
7266         * font/devhtml/R.proto: Add `-+'.
7267         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7268         * font/devlbp/*: Remove `or'.
7269         * font/devlj4/generate/special.map: Remove `or'.
7270         * font/devlj4/S: Regenerated.
7271         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7272         `seveneighths', `threeeighths'.
7273         Remove `plusmath'.
7274         Replace `minusplus' with `uni2213'.
7275         * font/devps/symbolmap: Regenerated.
7276         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7277         Add `-+'.
7279         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7280         function.
7281         * src/roff/troff/node.cc (troff_output_file::put_char_width):
7282         Call glyph_color and fill_color even if tcommand_flag isn't set.
7283         (make_node, node::add_char): Check not ci->is_fallback but
7284         ci->is_normal.
7286         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7287         * tmac/ec.tmac: Add .rchar entry for `f/'.
7288         Don't remove `12', `14', `34'.
7289         Define `pl' to be always roman.
7290         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7291         Define `18', `38', `58', `78'.
7292         * tmac/tty.tmac: Add `-+'.
7293         * tmac/dvi.tmac: Define `f/'.
7294         (dvi-frac): Use `f/'.
7295         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7296         Define `18', `38', `58', `78'.
7298 2002-12-15  Colin Watson  <cjwatson@debian.org>
7300         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7302 2002-12-10  Werner LEMBERG  <wl@gnu.org>
7304         Add glyph `tno', a textual variant of `no'.
7306         * font/devX*/*: Regenerated.
7307         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7308         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7309         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7310         * font/devdvi/*: Regenerated.
7311         * font/devlbp/*: Add `tno'.
7312         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7313         * font/devlj4/*: Regenerated.
7314         * font/devps/generate/textmap: Replace `no' with `tno'.
7315         * font/devps/generate/symbolchars: Add `no'.
7316         * font/devps/*: Regenerated.
7318         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7320         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7321         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7323         * NEWS: Updated.
7325         * tmac/dvi.tmac: Replace most `\\' with `\E'.
7326         Add definition for `sd'.
7327         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7329         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7331 2002-12-08  Werner LEMBERG  <wl@gnu.org>
7333         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7334         mode to avoid rounding errors.
7335         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7337         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7338         src/roff/troff/troff.man: Improve documentation of -T.
7340 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
7342         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7343         (run_pipeline) [_WIN32]: Provide working function without `fork'.
7345 2002-12-06  Werner LEMBERG  <wl@gnu.org>
7347         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7348         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7349         Scaling Euro.sansserif glyphs down to have the same height as
7350         digits.
7351         Removed unnecessary points; added some extrema.
7353         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7354         Regenerated.
7356 2002-12-04  Werner LEMBERG  <wl@gnu.org>
7358         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7359         and `Euro.symbol.bold.slanted'.
7360         Improve some glyph offsets and widths.
7361         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7362         Regenerated.
7363         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7364         typo.
7365         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7366         direcory.
7368         * tmac/europs.tmac: Updated to new glyph indices.
7369         Use Euro.symbol for font familiy `A'.
7371         * doc/groff.texinfo: Minor improvements.
7373 2002-12-02  Werner LEMBERG  <wl@gnu.org>
7375         * font/devdvi/generate.tc.map: s/%O/%0/.
7376         * font/devdvi/*TC: Regenerated.
7378         * src/roff/troff/div.cc (init_div_requests): Sorted.
7380         * tmac/dvi.tmac: Remove `Ye'.
7381         * tmac/ec.tmac: Remove `Ye'.
7382         Add .rchar entry for `de'.
7384         * man/groff.man, man/groff_diff.man: Document register `.pe'.
7385         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7386         * NEWS: Updated.
7388 2002-11-30  Werner LEMBERG  <wl@gnu.org>
7390         Add PS font for various Euro glyphs.
7392         * font/devps/generate/freeeuro.sfd: New master font file for
7393         pfaedit.
7394         * font/devps/generate/sfdtopfa.pe: New conversion script for
7395         pfaedit.
7396         * font/devps/generate/Makefile (FONTS): Add `EURO'.
7397         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7398         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7399         `freeeuro.sfd'.
7400         * font/devps/EURO: Generated from `freeeuro.afm'.
7401         * font/devps/download: Add `freeuro.pfa'.
7402         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7403         `freeeuro.pfa'.
7405         * tmac/europs.tmac: New file.
7406         * tmac/ps.tmac: Include `europs.tmac'.
7407         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7409 2002-11-29  Werner LEMBERG  <wl@gnu.org>
7411         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7412         * font/devdvi/S: Regenerated.
7413         * font/devhtml/R.proto: Fix `CR' and `ci'.
7414         Add `OK'.
7415         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7416         Remove `bs'.
7417         * font/devps/symbolmap: Regenerated.
7418         * font/devutf8/R.proto: Fix `CR' and `ci'.
7419         Add `OK'.
7420         * font/devutf8/NOTES: Updated.
7422         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7423         `ci'.
7424         Add `OK'.
7425         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7427         * tmac/dvi.tmac: Add `lh' and `rh'.
7428         * tmac/Xps.tmac: Fix `lh' and `rh'.
7429         * tmac/X.tmac: Add `OK'.
7430         * tmac/lj4.tmac: Ditto.
7432 2002-11-24  Werner LEMBERG  <wl@gnu.org>
7434         * font/devX*/S: Regenerated.
7435         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7436         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7437         * font/devdvi/generate/texsy.map: Remove `or' glyph.
7438         * font/devdvi/S: Regenerated.
7439         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7440         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7441         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7442         `bracketleftbt', `bracketrighttp', `bracketrightex',
7443         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7444         `braceex', `braceleftex', `bracerightex', `bracerighttp',
7445         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7446         `rb', and `bv'.
7447         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7448         * font/devutf8/NOTES: Updated.
7449         * font/devlj4/generate/special.map: Add glyph `braceex'.
7450         * font/devlj4/S: Regenerated.
7452         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7454 2002-11-14  Werner LEMBERG  <wl@gnu.org>
7456         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7457         and `vA'.
7458         Fix code for `an'.
7459         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7461         * doc/texinfo.tex: New version from texinfo 4.3.
7462         * doc/groff.texinfo: Updated for texinfo 4.3.
7463         Use @tie{} where appropriate.
7464         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7465         * font/devdvi/generate/tc.map: Remove `rn'.
7466         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7467         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7468         Fix code for `an'.
7469         * font/devX100/*, font/devX100-12/*, font/devX75/*,
7470         font/devX75-12/*: Regenerated.
7472         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7473         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7474         Improve definition of `an'.
7475         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7476         `ru'.
7477         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7478         * tmac/X.tmac: Add definition for `or'.
7479         * tmac/Xps.tmac: Undo change 2002-11-05.
7480         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7482 2002-11-11  Werner LEMBERG  <wl@gnu.org>
7484         * src/roff/troff/node.cc (troff_output_file::put_char): Always
7485         call flush_tbuf.
7487 2002-11-10  Werner LEMBERG  <wl@gnu.org>
7489         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
7490         defines a glyph which is searched after the check for fonts declared
7491         with `.special' (and before the check for all mounted special
7492         fonts).  `fschar' defines a glyph for a particular font which is
7493         searched after the check for fonts declared with `.fspecial' (and
7494         before the check for fonts declared with `.special').  `rfschar'
7495         removes glyphs defined with `fschar'.
7497         * src/roff/troff/token.h (char_mode): New enum.
7498         Declare do_define_character.
7499         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7500         `mode'.
7501         (charinfo::is_fallback): Updated.
7502         (charinfo::is_special): New method.
7503         * src/roff/troff/input.cc (do_define_character): Add and use
7504         optional second parameter used as a prefix for font-specific glyph
7505         names.
7506         (define_character, define_fallback_character): Updated.
7507         (define_special_character): New function.
7508         (init_input_requests): Add `schar'.
7509         (charinfo::charinfo, charinfo::set_macro): Updated.
7510         * src/roff/troff/node.cc: Include `stringclass.h'.
7511         (make_glyph_node): Handle special glyphs defined with `.schar' and
7512         `.fschar'.
7513         (define_font_special_character, remove_font_special_character): New
7514         functions.
7515         (init_node_requests): Sorted.
7516         Add `fschar' and `rfschar'.
7517         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7518         Document new requests.
7520         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7521         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7523 2002-11-08  Werner LEMBERG  <wl@gnu.org>
7525         Added new font `SC' (cmtex10) to devdvi.
7527         * devdvi/generate/Makefile (FONTS): Add `SC'.
7528         (SC): New rule.
7529         * devdvi/generate/textex.map: New map file for cmtex.
7530         * devdvi/SC: New.
7531         * devdvi/Makefile.sub (DEVFILES): Updated.
7532         * tmac/dvi.tmac: Add fspecial entries for SC.
7533         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
7534         found before `S' since the font position of `SC' is lower due to the
7535         gaps in DESC's `font' line.
7536         * tmac/ec.tmac: Add a `special' call.
7537         * NEWS: Updated.
7539         * font/devhtml/R.proto: Remove double entry for `ti'.
7540         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7541         * tmac/tty-char.tmac: Remove entry for `bq'.
7542         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7543         * tmac/ec.tmac: Don't remove `aq' glyph.
7544         * tmac/X.tmac: Fix entry for `em'.
7545         Add entries for `fo' and `fc'.
7546         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7548         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7549         documentation of `special' and `fspecial' requests.
7551 2002-11-05  Werner LEMBERG  <wl@gnu.org>
7553         * font/devascii/R.proto, font/devcp1047/R.proto,
7554         font/devlatin1/R.proto: Remove entry for `.i'.
7555         * font/devdvi/generate/textt.map: Add entry for `ad'.
7556         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7557         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7558         We need this for getting kerning values to compose `/l' and `/L'.
7559         * font/devdvi: Regenerated font definition files for CM fonts.
7560         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7561         * font/devutf8/R.proto: Ditto.
7562         Remove double entry for `ti'.
7564         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
7565         for (groff) ligatures, `la', and `ra'.
7566         Add "'C", "'c", `IJ', and `ij'.
7567         Remove double entry for `ti'.
7568         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
7569         double entries.
7570         Add "'C", "'c", `IJ', and `ij'.
7571         Fix entries for (groff) ligatures, `la', and `ra'.
7573         * tmac/ps.tmac (ps-achar): New macro.
7574         Define "'c" and "'C".
7575         * tmac/tty.tmac: Add entry for `.i'.
7576         * tmac/X.tmac (X-achar): New macro.
7577         Define "'c", "'C", and `:Y'.
7578         Add entries for `IJ' and `ij'.
7579         * tmac/Xps.tmac (Xps-achar): New macro.
7580         Define "'c" and "'C".
7581         Add entries for `IJ' and `ij'.
7582         * tmac/lbp.tmac (lbp-achar): New macro.
7583         Add fallback characters for all groff ligatures and many other
7584         glyphs.
7585         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
7586         Add entries for `/l' and `/L'.
7587         Define "'c" and "'C".
7588         Add entries for `IJ' and `ij'.
7590 2002-11-02  Larry Kollar  <kollar@alltel.net>
7592         * PROBLEMS: Document how to solve Mac OS X compilation problems.
7594 2002-11-02  Werner LEMBERG  <wl@gnu.org>
7596         Adding support for composite glyphs: \[xxx yyy ...] and the
7597         `composite' request.
7599         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
7600         to Unicode-based glyph names.
7601         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
7602         glyph names to groff glyph names.
7603         * src/roff/troff/uniuni.cc: New file for canonically decomposing
7604         Unicode-based glyph names.
7605         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
7606         for handling Unicode glyph names.
7607         * src/roff/troff/input.cc: Include unicode.h.
7608         (composite_glyph_name): New function.
7609         (token::next) <'['>: Handle Unicode glyph names and composite
7610         glyphs.
7611         (composite_dictionary): New dictionary for the `composite' request.
7612         (composite_request): Implement `composite' request.
7613         (init_input_requests): Add `composite'.
7614         Alphabetically sorted.
7615         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
7616         commented out).
7617         (init_env_requests): Alphabetically sorted.
7618         Removed `tas' and `tar' (already commented out).
7619         * src/roff/troff/Makefile.sub: Updated.
7621 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
7623         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
7624         of options.
7626 2002-10-29  Werner LEMBERG  <wl@gnu.org>
7628         Fix computation of .trunc register.  Additionally, its value (and
7629         the value of the .ne register) is now always set before entering the
7630         trap.
7632         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
7633         `needed_space' before calling `space'.
7634         (top_level_diversion::space): Remove special code for 'sp before the
7635         first page.
7636         Call `begin_page' with the discarded space as a parameter.
7637         (top_level_diversion::begin_page): Add optional parameter to set
7638         `truncated_space'.
7639         * src/roff/troff/div.h: Updated.
7641         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
7642         \n[.ne].
7644         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
7645         (LP): Remove superfluous call to `br'.
7646         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
7647         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7649 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7651         * tmac/doc-ditroff: Remove useless switch/variable -rC.
7652         (doc-setup-header): Don't set page register `%'.
7653         * tmac/doc-nroff: Remove variable `C'.
7654         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
7655         (doc-setup-header): Don't set page register `%'.
7656         Don't call `bp'.
7657         * tmac/doc-common (doc-header): Call `ns'.
7658         (doc-paragraph): Protect .sp with .br so that it survives traps
7659         possibly set by the user.
7660         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7662         * tmac/doc*: Replace ' with . for consistency if no effect.
7664 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7666         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
7667         so that it survives traps possibly set by the user.
7669         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
7670         (troff_output_file::set_font): Call flush_tbuf if necessary.
7671         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
7672         flush_tbuf and do_motion only if necessary.
7673         (troff_output_file::start_special,
7674         troff_output_file::put_char_width, troff_output_file::put_char,
7675         troff_output_file::draw): Updated.
7676         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7677         vmotion_node::tprint): Undo change 2002-10-23.
7679 2002-10-25  Werner LEMBERG  <wl@gnu.org>
7681         * tmac/www.tmac (DC): Fix case of overlapping images.
7683 2002-10-23  Werner LEMBERG  <wl@gnu.org>
7685         * src/roff/troff/node.cc (troff_output_file::fill_color,
7686         troff_output_file::glyph_color): Set current color before testing
7687         color_flag.
7688         (troff_output_file::put_char_width, troff_output_file::put_char,
7689         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
7690         before glyph_color.
7691         (troff_output_file::file_color, troff_output_file::glyph_color):
7692         Call do_motion.
7693         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7694         vmotion_node::tprint): Move first, then call fill_color.
7696 2002-10-20  Werner LEMBERG  <wl@gnu.org>
7698         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
7699         possible to use multiple main macro packages.
7701 2002-10-19  Werner LEMBERG  <wl@gnu.org>
7703         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
7704         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
7705         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
7706         is set.
7707         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
7708         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
7710 2002-10-16  Werner LEMBERG  <wl@gnu.org>
7712         * NEWS, doc/webpage.ms: Updated.
7714 2002-10-14  Werner LEMBERG  <wl@gnu.org>
7716         * src/roff/troff/node.cc (troff_output_file::put_char_width,
7717         troff_output_file::put_char, troff_output_file::fill_color,
7718         troff_output_file::glyph_color): Handle case where color pointer
7719         is null.
7721 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
7723         Add the new -r option to grotty.  It is similar to the -i option
7724         except it tells grotty(1) to use the `reverse video' attribute to
7725         render italic fonts.
7727         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
7728         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
7729         (tty_printer::make_underline, tty_printer::put_color,
7730         tty_printer::end_page): Use it.
7731         (main): Add -r switch.
7732         (usage): Updated.
7733         * src/devices/grotty/grotty.man: Document it.
7735 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
7737         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
7738         cast to `unsigned char' to properly read patterns with 8bit
7739         characters.
7741 2002-10-08  Werner LEMBERG  <wl@gnu.org>
7743         * REVISION: Increased to 2.
7745 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008
7746   Free Software Foundation, Inc.
7748 Copying and distribution of this file, with or without modification,
7749 are permitted in any medium without royalty provided the copyright
7750 notice and this notice are preserved.
7752 Local Variables:
7753 version-control: never
7754 coding: latin-1
7755 End: