1 2008-10-04 Werner LEMBERG <wl@gnu.org>
3 * src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], and
4 \O[5] non-transparent w.r.t. beginning-of-line recognition (similar
5 to the other \O variants).
7 * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting up
8 default macros. This causes endless loops (at least for TE).
10 2008-10-03 Werner LEMBERG <wl@gnu.org>
12 * src/devices/grops/grops.man, src/roff/troff/troff.man,
13 src/preproc/soelim/soelim.man: Correct documentation of -I switch.
14 Reported by Larry Kollar.
15 Other minor formatting issues.
17 2008-10-02 Werner LEMBERG <wl@gnu.org>
19 * tmac/trace.tmac: Much improved.
20 (trace-full): New register to be set on the command line; it
21 controls whether number and string register assignments get traced
23 (!!c): New macro for comments.
24 (rm): New traced macro.
25 (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to
26 `!!xxx'; this makes doc.tmac completely traceable.
27 Trace call of .de and friends also.
29 * tmac/groff_tmac.man, NEWS: Update.
31 2008-09-30 Werner LEMBERG <wl@gnu.org>
33 Restore behaviour of \$0 if a macro is called with string syntax
34 (problem caused by change on 2008-09-29).
36 * src/roff/troff/input.cpp (input_iterator, input_stack,
37 macro_iterator): Add `get_macro_name' member function.
38 (interpolate_string): Use it.
40 2008-09-29 Werner LEMBERG <wl@gnu.org>
42 Make \\*[xxx]\\ within a macro (with `xxx' a macro too) work as
43 expected. Without the patch,
54 prints `2 3' instead of `1 2 3'.
56 * src/roff/troff/input.cpp (input_iterator, input_stack,
57 macro_iterator): Add `get_arg_list' member function.
58 (macro): Add `is_a_string', `is_string', and `clear_string_flag'
60 Update constructors and operators.
61 (arg_list): Add copy constructor.
62 (macro_iterator): Add optional argument to constructor to indicate
63 whether arguments shall be inherited from calling macro.
64 (interpolate_string): If string argument is a macro, push a macro
65 iterator on the stack.
66 (do_define_macro): Call clear_string_flag if macro data contains a
69 * src/roff/troff/request.h: Updated.
71 2008-09-29 Eric S. Raymond <esr@snark.thyrsus.com>
73 * doc/pic.ms: Fold in documentation of pic2plot(1) capabilities.
74 Improve the documentation of text objects.
76 2008-09-28 Eric S. Raymond <esr@snark.thyrsus.com>
78 * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph,
79 contrib/eqn2graph.man: Tweak scripts to cope with incompatible
80 changes in ImageMagick crop options. Document the bugs.
82 2008-09-28 Werner LEMBERG <wl@gnu.org>
84 If a macro is called as a string, inherit value of \n[.br] from the
85 caller. This is useful for `trace.tmac'.
87 * src/roff/troff/input.cpp (string_iterator): New members
88 `with_break' and `get_break_flag'.
89 (string_iterator::string_iterator): Updated.
91 * doc/groff.texinfo: Improve documentation of \$0 and string syntax
93 Document behaviour of \n[.br] within strings.
95 2008-09-26 Werner LEMBERG <wl@gnu.org>
97 * tmac/trace.tmac: Add copyright message.
98 Use `.de1' where possible to make source code more readable.
99 (so, mso, als, rn): Restore escape character before executing the
101 (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'.
103 2008-09-24 Werner LEMBERG <wl@gnu.org>
105 Fix incompatibility between `.de1' and `.do'. Without this change,
106 the following snippet
114 prints 1 instead of 0.
116 * src/roff/troff/input.cc (do_request): If a macro gets processed,
118 (interpolate_macro): Add optional argument. Update callers.
119 (request::invoke): Add optional argument.
120 (macro::invoke): Add optional argument to delay call of tok.next().
122 * src/roff/troff/request.h (request_or_macro): Add argument to
123 `invoke' member. Update all derived classes.
125 * doc/groff.texinfo: Improve documentation of .do request.
127 2008-09-09 Werner LEMBERG <wl@gnu.org>
129 * tmac/an-old.tmac (FT): Initialize properly. Reported by Tadziu
132 2008-09-06 Werner LEMBERG <wl@gnu.org>
134 * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to make
135 `.Nm' work properly if next manual page is printed.
137 2008-08-20 Werner LEMBERG <wl@gnu.org>
139 * src/preproc/tbl/tbl.man: Document computation of element widths.
141 2008-08-20 Alexey Gladkov <legion@altlinux.ru>
142 Werner LEMBERG <wl@gnu.org>
144 Add default encoding option -D to preconv and groff.
146 * src/preproc/preconv/preconv.cpp (default_encoding): Make it an
149 (main): Handle new option -D.
151 * src/preproc/preconv/preconv.man: Updated.
153 * src/roff/groff/groff.cpp (main): Handle new option -D.
154 (synopsis, help): Updated.
155 * src/roff/groff/groff.man: Updated.
157 2008-07-26 Werner LEMBERG <wl@gnu.org>
159 * tmac/eqnrc (.EQ, .EN): Provide default definitions. Reported
162 * tmac/www.tmac (.EQ, .EN, .TS, .TE): Fix definitions.
164 2008-07-24 Denis M. Wilson <dmw@oxytropis.plus.com>
166 New options -f and -k for afmtodit.
168 * src/afmtodit/afmtodit.pl: New options `-f NAME' sets the internal
169 name of the groff font.
170 New option `-k' disables output of kerning data.
171 * src/afmtodit/afmtodit.man, NEWS: Document new options.
173 2008-07-18 Werner LEMBERG <wl@gnu.org>
175 * src/preproc/tbl/table.cpp (table::compute_separation_factor): Emit
176 warning messages if table gets squeezed.
177 (table::compute_widths): Fix computation of AVAILABLE_REG.
178 Emit warning if table is wider than line length.
180 * src/preproc/tbl/tbl.man: Minor improvements.
182 2008-05-02 Larry Jones <lawrence.jones@siemens.com>
184 * contrib/chem/Makefile.sub (README, examples/README): In makefiles,
185 the `$<' macro is only guaranteed to be defined in inference rules,
186 not in explicit target rules. Since there is only one input file in
187 the places where it is used, the `$?' macro (which is guaranteed to be
188 defined for both kinds of rules) is a suitable replacement.
190 * hdtbl/examples/fonts_n.in, hdtbl/examples/fonts_n.in: Most
191 versions of ls don't have a `--color' option.
193 2008-04-30 Larry Jones <lawrence.jones@siemens.com>
195 * Makefile.comm (depend.temp): Add `EXTRA_CCFLAGS'.
197 2008-04-29 Larry Jones <lawrence.jones@siemens.com>
199 * src/eqn/script.cpp (script_box::output): Portability fix.
201 2008-04-05 Dorai Sitaram <ds26gte@yahoo.com>
203 Add better support for `.TAG #<label>' in non-HTML documents: In
204 case of a forward reference in a call to .URL, write `(see below)'.
205 In case of a backwards reference use the page number instead. The
206 reference gets stored in a string `TAG_<label>' and can be
207 overridden while calling `.TAG' with its new optional argument --
208 this is useful for a second-pass system which resolves forward
211 * tmac/www.tmac (www:url_check_tag): New function.
213 (TAG): Add optional argument to define string `TAG_<label>'.
215 2008-03-24 Werner LEMBERG <wl@gnu.org>
217 * tmac/trace.tmac (so, mso): Added.
219 * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'.
220 If used with -mtrace, and this clause was active, the macro was
223 * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality.
224 This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML
226 * man/groff_tmac.man: Document it.
228 2008-02-26 Werner LEMBERG <wl@gnu.org>
230 * src/roff/troff/input.cpp: s/safer_flag/unsafe_flag/.
231 Update all occurrences so that \n[.U] works as advertised. Bug
232 reported by Dorai Sitaram.
234 2008-02-17 Werner LEMBERG <wl@gnu.org>
236 * doc/groff.texinfo: Improve documentation of .cf request.
238 2008-01-19 Werner LEMBERG <wl@gnu.org>
240 * src/preproc/html/pre-html.cpp (usage): Don't describe options but
241 mention that it should never be called stand-alone.
243 * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man,
244 man/groff_tmac.man, man/groff_out.man, README, README.MinGW,
245 src/roff/groff/groff.man: Mention -Txhtml.
247 * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.
249 2008-01-16 Werner LEMBERG <wl@gnu.org>
251 * src/libs/libgroff/font.cpp (font::contains, font::get_code):
252 Handle single-letter names correctly.
254 * doc/groff.texinfo, man/groff_diff.man: Extend documentation of \^
258 2008-01-15 Werner LEMBERG <wl@gnu.org>
260 * man/groff_font.man: Revised.
262 2008-01-14 Werner LEMBERG <wl@gnu.org>
264 * man/groff.man: Mention glyph and characters.
266 * man/groff_char.man: Minor updates.
267 * man/groff_diff.man: Better clarification between characters and
270 2008-01-12 Werner LEMBERG <wl@gnu.org>
272 * doc/groff.texinfo: Fix top-level structure to make it compilable
273 again with all texinfo modes. Reported by Jörg van den Hoff
274 <j.van_den_hoff@fzd.de>.
276 2008-01-11 Werner LEMBERG <wl@gnu.org>
278 * doc/pic.ms: Mention that compass points of line objects are
281 2008-01-06 Werner LEMBERG <wl@gnu.org>
283 * src/roff/troff/node.cpp (left_italic_corrected_node::add_self):
284 Don't remove itself if there is no glyph associated with the node
285 yet. This happens, for example, in this situation:
292 2008-01-05 Werner LEMBERG <wl@gnu.org>
294 * man/groff_char.man, man/groff.man: Revised.
296 * src/preproc/eqn/lex.cpp (troff_defs): Fix typo.
298 2008-01-04 Werner LEMBERG <wl@gnu.org>
299 * */*: s/Osanna/Ossanna/.
301 * */*.man: Replace .URL with .UR/.UE (except in groff_www.tmac).
302 Replace .MTO with .MT/.ME (except in groff_www.tmac).
303 Insert `\:' in URLs where appropriate.
304 Don't include www.tmac (except in groff_www.tmac).
306 * man/groff.man (.ESC[]): Fix font of closing bracket.
307 (.ESCq): Fix font of closing quote character.
308 Many other improvements.
310 2007-12-30 Bernhard Fisseni <bfi@ikp.uni-bonn.de
312 * src/devices/grohtml/post-html.cc
313 (html_printer::writeHeadMetaStyle): Fix CSS output.
315 2007-12-29 Werner LEMBERG <wl@gnu.org>
317 * tmac/ec.tmac: Add CM fonts to the .fspecial lines; those fonts
318 contain additional glyphs (like some uppercase Greek letters).
320 2007-12-06 Werner LEMBERG <wl@gnu.org>
324 2007-12-06 Colin Watson <cjwatson@debian.org>
326 * src/roff/nroff/nroff.sh: Add options -w and -W.
327 * src/roff/nroff/nroff.man: Document them.
329 2007-12-06 Karl Berry <karl@freefriends.org>
331 * tmac/hyphenex.pl: Update header output.
333 2007-11-29 Werner LEMBERG <wl@gnu.org>
335 * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
337 2007-11-20 Werner LEMBERG <wl@gnu.org>
339 * doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
341 2007-11-17 Werner LEMBERG <wl@gnu.org>
343 * src/roff/nroff/nroff.sh: Handle GROFF_TYPESETTER environment
344 variable. Problem reported by Michael G Schwern
347 * src/roff/nroff/nroff.man: Document it.
350 2007-11-17 Heinz-Jürgen Oertel <hj.oertel@t-online.de>
352 * src/groff/preproc/pic/lex.cpp (table): Add box attributes
353 `xslanted' and `yslanted'.
355 * src/groff/preproc/pic/object.cpp (object_spec::object_spec):
356 Initialize `xslanted' and `yslanted'.
357 (graphic_object): Add methods `set_xlanted' and `set_yslanted'.
358 (closed_object): Ditto.
359 Add members `xslanted' and `yslanted'.
360 (box_object::print): Use them.
361 (object_spec::make_object): Handle slant values.
362 * src/groff/preproc/pic/object.h (IS_XSLANTED, IS_YSLANTED): New
364 (object_spec): Add members `xslanted' and `yslanted'.
365 * src/groff/preproc/pic/pic.y (XSLANTED, YSLANTED): New left-valued
369 * src/groff/preproc/pic/pic.man, NEWS, doc/pic.ms: Document above
372 2007-11-16 Werner LEMBERG <wl@gnu.org>
374 * tmac/hyphenex.pl: Generate copyright notice (this has been
375 approved by Barbara Beeton).
376 * tmac/hyphenex.us: Updated.
378 2007-11-10 Michail Vidiassov <master@iaas.msu.ru>
380 * tmac/doc-syms (doc-str-St--susv3): New string.
381 * tmac/groff_mdoc.man: Document it.
383 2007-11-08 Werner LEMBERG <wl@gnu.org>
385 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be'
386 `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'.
387 (is_comment_line): Handle '\" and '\# also.
389 * src/preproc/preconv/preconv.man: Revise and make complete.
391 2007-10-25 Werner LEMBERG <wl@gnu.org>
393 * tmac/cs.tmac: New file holding Czech strings, contributed by
394 Marcela Maslanova <mmaslano@redhat.com>.
395 * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files
396 for Czech, taken from CTAN.
398 * tmac/Makefile (NORMALFILES): Add Czech stuff.
399 * doc/groff_tmac.man: Mention cs.tmac.
401 2007-10-21 Werner LEMBERG <wl@gnu.org>
403 * src/roff/troff/input.cpp (do_ps_file): Handle `%X' in header
404 comments correctly. Reported by Frank Jahnke
405 <jahnke@sonatabio.com>.
407 2007-10-02 Ruslan Ermilov <ru@FreeBSD.org>
409 * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
412 * tmac/doc-syms: Give better names for System V releases.
414 2007-09-25 Gaius Mulley <gaius@glam.ac.uk>
416 * doc/Makefile.in, doc/Makefile.sub (.ms.html): Add -P-V switch to
417 the production of html files.
419 Remove background colour switch.
420 (.SUFFIXES, clean): Handle *.xhtml files.
422 * src/devices/grohtml/grohtml.man: Document that -V option now
423 generates an HTML-4.01 validator or XHTML validator.
425 * src/devices/grohtml/html-text.cpp (html_text::end_tag,
426 html_text::start_tag): Suppress <small>, <big>, and <color> tags if
427 we are inside a <pre> block.
429 * src/devices/grohtml/post-html.cpp
430 (html_printer::handle_valid_flag): Add a parameter to indicate
431 whether it needs to generate a paragraph block.
432 (html_printer::write_navigation): Updated.
433 (html_printer::do_file_components): Generate an HTML-4.01 blue
434 validator button also.
436 2007-09-23 Axel Kielhorn <A.Kielhorn@web.de>
438 * man/groff.man: Fix URL of CSTR 54.
440 2007-09-23 Werner LEMBERG <wl@gnu.org>
442 * man/groff_char.man: Normalize character set names as defined
443 by IANA. Based on a patch from Axel Kielhorn.
445 * src/preproc/refer/label.y: Undo change from 2007-09-19.
447 2007-09-19 Werner LEMBERG <wl@gnu.org>
449 * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
452 * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
453 Remove compiler warning.
455 * src/preproc/refer/label.y: Remove compiler warning.
457 * src/preproc/pic/pic.y: Remove doubled token entries.
459 2007-09-19 Gaius Mulley <gaius@glam.ac.uk>
461 * doc/groff.texinfo: Document new .O register and add cross
466 * src/devices/grohtml/grohtml.man: Document new -V and -y options.
468 * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
469 (html_table:: emit_colspan, html_table::emit_td): New methods.
470 (html_table::emit_col): Use html_table::emit_td.
471 (html_table::emit_table_header): Use html_table::emit_colspan if
472 dialect xhtml is specified.
473 (html_table::finish_row): Updated.
475 * src/devices/grohtml/html-table.h (html_table): Declare
476 emit_colspan, emit_td.
478 * src/devices/grohtml/html-text.cpp: Modified tags to comply with
479 xhtml if this dialect was requested.
481 * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
482 (html_text): Add new variable `dialect'.
484 * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
486 (valid_flag, groff_sig, dialect): New global variables.
487 (html_printer::handle_valid_flag, html_printer::do_math,
488 html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
489 html_printer::do_math, html_printer::handle_valid_flag): New
491 (html_printer::emit_line, html_printer::emit_raw,
492 html_printer::do_check_center, html_printer::write_title,
493 write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
494 html_printer::begin_page): Altered to be XHTML compliant.
495 (html_printer::write_header): Updated.
496 (html_printer::troff_tag): Call do_math.
497 (html_printer::insert_split_file, html_printer::do_file_components,
498 html_printer::write_navigation): Create XHTML file components if
499 necessary and also produces a groff signature if requested.
500 (~html_printer): Call writeHeadMetaStyle at appropriate places
501 depending upon html_dialect.
502 (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
503 (main): Added options -x, -V, and -y.
506 * src/preproc/eqn/box.cpp: Create a distinction between
507 the MathML device and the XHTML device.
508 (do_text): Issue a newline at the end of the equation if XHTML was
510 (box::top_level): Prefix the output of an equation by the .MATHML
512 (output_string): Suppress \n if XHTML was specified.
514 * src/preproc/eqn/main.cpp (xhtml): New global flag.
515 (inline_equation): Skip leading spaces after inline equation for
517 (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
519 * src/preproc/eqn/eqn.h (xhtml): New external flag.
521 * src/preproc/eqn/text.cpp (entity_table): Fix typo.
523 * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
524 (dialect, eqn_flag): New global variables.
525 (html_system): Improve debugging support.
526 (alterDeviceTo): Test for -Txhtml when altering device to the image
527 device and reset to -Txhtml.
528 (addZ): Renamed to...
530 Introducea a general parameter.
531 (print_args): New debugging function.
532 (char_buffer::run_output_filter): Use print_args and addArg rather
534 (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
535 line parameter as an argument to the html generation of text when
536 xhtml is needed. Include -e on the command line if mathml is
538 (scanArguments): Allow -e, -V, -y and -x options.
539 -V, -y are handled by the back end. -e sets `eqn_flag'.
540 -x determines HTML dialect.
542 * src/roff/groff/groff.cpp (possible_command): New method
544 (main): Set eflag if -e is present on command line.
545 Set is_xhtml if -Txhtml is present.
546 Pass `-x x' to the HTML pre and post processors.
547 Pass `-e' to the HTML pre processor if required.
548 Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
550 * src/roff/troff/input.cpp (init_input_requests): Introduce new
551 number register `\n[.O]'.
553 * tmac/s.tmac: (LP): Use .nop for semantic sugar.
554 (cov*ab-init) reformat.
555 (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
556 (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
557 <cite></cite> for the html device rather than generate images for
560 * tmac/troffrc-end: Define EQN-HTML-IMAGE,
561 EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
562 EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
563 EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
565 * tmac/www.tmac: (HTML<?p>): New macro.
566 (MATH<?p>): New macro.
567 (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
568 (www-emit-ltag): New macro.
569 (www-push-li): Updated.
570 (ULS): Ensure that tags are balanced in order by use of
572 (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
574 (OLS, OLE, DLS, DLE): Ditto.
575 <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
577 (www-li-ul, www-li-ol, www-li-dl): Updated.
578 (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
579 EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
582 2007-09-17 Werner LEMBERG <wl@gnu.org>
584 * man/groff_font.man: Document `unicode' keyword.
585 * doc/groff.texinfo (DESC File Format): Synchronize with
588 2007-09-15 Werner LEMBERG <wl@nu.org>
590 * man/groff.man: Document `\_'.
591 * doc/groff.texinfo: Ditto.
592 Remove references to `\@' which isn't a valid escape sequence in
596 * tmac/unicode.tmac: Add ` and '.
597 * tmac/html.tmac: Load unicode.tmac.
599 2007-09-14 Werner LEMBERG <wl@gnu.org>
601 * tmac/unicode.tmac: Make `-' a pure input character by mapping it
604 * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
606 2007-09-11 Werner LEMBERG <wl@gnu.org>
608 * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
611 * src/preproc/tbl/table.cpp (table::allocate): Initialize
614 2007-09-10 Keith Marshall <keith.d.marshall@ntlworld.com>
616 * README.MinGW: Add warnings about use of MSYS-RXVT, and about
617 defective GnuWin32 versions of netpbm/libpng.
619 2007-07-15 Keith Marshall <keith.d.marshall@ntlworld.com>
621 * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
624 2007-07-11 Werner LEMBERG <wl@gnu.org>
626 * gendef.sh: Add shebang.
628 2007-07-05 Werner LEMBERG <wl@gnu.org>
630 * tmac/papersize.tmac: Fix dimensions of executive paper format.
631 Reported by John Rupley <rupley@u.arizona.edu>.
633 2007-07-02 Keith Marshall <keith.d.marshall@ntlworld.com>
635 * tmac/s.tmac (cov*first-page-init): Emit error message if not in
636 top-level environment.
638 2007-06-12 Werner LEMBERG <wl@gnu.org>
640 * src/devices/xditview/TODO, NEWS: Updated.
641 * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
642 Handle `GXditview-color'.
643 * src/devices/xditview/gxditview.man: Updated.
645 * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
646 * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
647 from `gnulib' git repository.
649 * configure.ac: Updated.
650 * configure: Regenerated (using autoconf 2.61).
652 * config.guess, config.sub: Updated from `config' CVS repository.
653 * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
656 2007-06-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
658 * src/devices/xditview/GXditview.ad: Split off color definitions
660 * src/devices/xditview/GXditview-color.ad: This new file.
662 2007-06-08 Fabrice Ménard <menard.fabrice@wanadoo.fr>.
664 * tmac/fr.tmac: Handle chapter system for `me'.
666 2007-06-05 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
668 * src/devices/xditview/xditview.c (main): Add support for
671 * src/devices/xditview/GXditview.ad: Updated.
672 Make widget more colourful.
674 2007-05-30 Werner LEMBERG <wl@gnu.org>
676 * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
677 Recommend `tbl' instead of `-column' lists for more complicated
680 2007-05-21 Werner LEMBERG <wl@gnu.org>
682 * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
685 2007-04-10 Werner LEMBERG <wl@gnu.org>
687 In pic, make rounded boxes work with colors. Reported by Urs Eggli
688 <Urs.Eggli@zuerich.ch>.
690 * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
691 (output): Add color parameter to `rounded_box' member function.
693 * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
695 * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
696 to `out->rounded_box'.
698 2007-04-09 Michail Vidiassov <master@iaas.msu.ru>
700 * font/devps/generate/textmap: Add Greek letters and some more.
702 * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
703 `Omega', and `mu' to the ones from aglfn.txt.
705 2007-04-08 Keith Marshall <keith.d.marshall@ntlworld.com>
707 * tmac/s.tmac (SN): Define unconditionally.
708 (SN-STYLE): New string; define.
710 * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
712 2007-03-22 Werner LEMBERG <wl@gnu.org>
714 * tmac/pspic.tmac: Fix harmless numeric overflow warning. Reported
715 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
717 2007-03-20 Werner LEMBERG <wl@gnu.org>
719 * tmac/trace.tmac (rn): Added.
720 (nr, ds, ds1, as, as1, substring): Restore escape character while
722 (nr): Remove dead code.
724 * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
725 definitions to make them traceable.
727 2007-03-19 Werner LEMBERG <wl@gnu.org>
729 * src/roff/troff/input.cpp (get_copy): Add third argument to control
730 whether \E shall be expanded.
731 (get_char_for_escape_name): Allow \E.
733 2007-03-15 Werner LEMBERG <wl@gnu.org>
735 * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
736 par*define-font-macro, \[hooko]): Use \E to make it traceable.
738 (ref*field): Add argument to control the space between previous and
741 (ref*add-N): Fix handling of opening parenthesis. Problem reported
742 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
744 2007-03-14 Werner LEMBERG <wl@gnu.org>
746 * tmac/trace.tmac (als): Added.
747 (de, de1, am, am1): Make traced macros aliased with .als work.
749 2007-02-25 Werner LEMBERG <wl@gnu.org>
751 * src/devices/xditview/TODO: Add some more items.
753 * Makefile.comm (.man.n): Add @APPRESDIR@.
756 * src/devices/xditview/gxditview.man: Document GXditview resource
758 Other documentation enhancements based on a patch from Jörg.
760 2007-02-25 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
761 Joerg van den Hoff <j.van_den_hoff@fzd.de>
763 * src/devices/xditview/GXditview.ad: Make all keys work regardless
764 of the current mouse position.
766 2007-02-20 Werner LEMBERG <wl@gnu.org>
768 * tmac/groff_man.man: Revised to improve visual appearance.
769 Reduce use of future tense.
771 * tmac/groff_trace.man: Revosed to improve visual appearance.
773 2007-02-19 Eric S. Raymond <esr@snark.thyrsus.com>
775 Make groff.man viewer-portable.
777 * tmac/groff.man: Eliminate use of .eo/.ec.
778 (.REQ): Surround args 2 through N with quotes. This will enable us
779 not to rely on the shift request, which is nonportable.
780 (ExecFF): Remove. The code is simpler without it.
782 2007-02-18 Eric S. Raymond <esr@snark.thyrsus.com>
784 * tmac/groff_www.man: Viewer-portability fixes.
786 2007-02-16 Eric S. Raymond <esr@snark.thyrsus.com>
788 * man/groff.man: Remove some unneeded code and a no-longer-used
789 inclusion of the www macros.
791 2007-02-12 Werner LEMBERG <wl@gnu.org>
793 * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
795 (table::compute_widths): Simplify.
797 2007-02-11 Werner LEMBERG <wl@gnu.org>
799 * src/preproc/tbl/table.h: Don't include `stdbool.h'.
800 (table): Replace `bool' type with `char' for orthogonality.
803 * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
804 AVAILABLE_REG and COLCOUNT_REG.
805 (table::table): Fix order call of initializers.
806 (table::~table): Deallocate `blockflag'.
808 2007-02-09 Eric S. Raymond <esr@snark.thyrsus.com>
810 A try at the new rule for block column allocation is now enabled by
811 the new `experimental' global option: The horizontal space up to the
812 right margin which is not used by columns without text blocks is
813 evenly distributed to the columns with text blocks.
815 It doesn't work right as yet; there appears to be some error in the
816 computation of `3avail', the available line length. The purpose of
817 this patch is (a) to make experimenting with other formulas easy,
818 and (b) leave the infrastructure for flag `experimental' in place
819 for future experiments. Do not document any behavior associated
822 * src/preproc/tbl/table.h: Include `stdbool.h'.
823 (table): Make `flags' public.
824 Add `count_block_columns' function.
825 Add `blockflag' array.
826 Add `EXPERIMENTAL' enumeration value.
828 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
830 (table_entry): New member `parent' so that class and subclass
831 members can set a parent field. Update all users.
832 (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
833 (block_entry::do_width): Set the parent's `blockflag'.
834 (table::allocate): Handle `blockflag'.
835 (table::count_block_columns): New function.
836 (compute_span_width): Adjust AVAILABLE_REG.
837 (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
839 * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
842 2007-02-08 Zhao, Yu (William) <yzhao2@alcatel-lucent.com>
844 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
847 2007-02-08 Werner LEMBERG <wl@gnu.org>
849 * man/groff_out.man (offset): Make it work reliably.
851 2007-02-07 Eric S. Raymond <esr@snark.thyrsus.com>
853 * man/groff_out.man: Simplify some font changes so \fP is less
854 likely to do something surprising.
856 * man/groff_out.man: We can simplify the command macros still
857 further if we stop trying to hide structural requests inside them.
858 Also, fix some instances of \} at start of line without a dot, and
859 make some font changes explicit in strings.
861 * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
864 * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
865 calls and fix macros to do without them. File should now be
868 * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
869 micromotions that produce the same visual result and can be lifted
872 * man/groff_out.man: Third step: Reduce Da-comand, fix a
873 call-sequence bug in the original.
875 * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
876 move font-change escapes to portable form.
878 * man/groff_out.man: First step in macro simplification; eliminate
879 list1..n, simplify .offset and .index_offset so they no longer
880 require groff-specific features or eqn (instead, use troff
881 micromotions for subscripting).
883 2007-02-06 Eric S. Raymond <esr@snark.thyrsus.com>
885 * src/preproc/eqn/eqn.man: Minor corrections.
887 * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
888 longer takes a second argument that is pasted to the end of the
889 generated text. Instead, the end macro takes an argument that does
892 * man/ditroff.man, man/groff_diff.man, man/groff.man,
893 man/groff_out.man, man/groff_tmac.man, man/roff.man,
894 src/roff/groff/groff.man, src/roff/grog/grog.man,
895 tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
897 * src/roff/troff/troff.man: .SY and .YS are canned macros now,
898 so we can use them here.
900 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
902 * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
903 By popular demand, make ... set three lower dots again
904 and introduce a new predefined macro 'cdots' to set
907 2007-02-05 Werner LEMBERG <wl@gnu.org>
909 * src/preproc/eqn/eqn.man: Revised.
911 * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
913 (spacing_type): Fix typo.
914 (special_to_entity): Use `const'.
915 Remove unused variable.
916 * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
918 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
920 * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
921 which is a shame as the effect was cute.
923 2007-02-04 Eric S. Raymond <esr@snark.thyrsus.com>
925 * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
926 rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
927 possible, remove preamble declarations and macros that are no
928 longer needed. Conversion checked using the protocol described in
931 2007-02-03 Werner LEMBERG <wl@gnu.org>
933 * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
936 2007-02-03 Eric S. Raymond <esr@snark.thyrsus.com>
938 * tmac/groff_man.man: Documented the extension macros, and
939 added portability advice.
941 * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
944 Add support for MathML output to eqn.
946 The strategy used is very simple and relies on the fact that the box
947 models of eqn and Presentation MathML differ in only trivial ways.
948 It leaves the grammar and existing internal object structures
949 unchanged. A new global, `output_format', is defined as an
950 enumerated type with values {troff, mathml}. Most of the functions
951 and methods that emit actual output acquire a top-level conditional,
952 dispatching on this global, which has one arm for troff mode and one
953 for MathML mode. In most cases the MathML arm is drastically
956 (This strategy could be easily generalized to support other output
957 formats. TeX is a possibility that leaps to mind.)
959 The only even moderately tricky changes are in the lexer. Some of
960 the predefined macros used constructs like `up', `down', `fwd',
961 `back', and `vcenter' that have no equivalents in MathML. I
962 attacked this problem in these ways:
964 1. I eliminated three uses of `back' to compose characters in favor
965 of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
966 that did not exist when these macros were written. (This will be
967 a quality improvement for troff users.)
969 2. I eliminated one use of `vcenter' by using \\(md. (Likewise...)
971 3. I then split the table of pre-definitions in three; one large
972 common table and two small troff-specific and MathML-specific
973 tables. Use of troff-only operations (up, down, back, fwd,
974 vcenter) is now confined to the former. The latter now uses
975 `size big' and drops out the explicit positioning operations,
976 counting on MathML processors to do them.
978 POTENTIAL TROUBLE SPOTS:
980 Here are notes for reviewers on places I'm not 100% sure I've done
983 * In the process of preparing the troff table, I translated three
984 definitions (dot_def, dotdot_def, and utilde def) that previously
985 used explicit \v escapes to use `up' and `down' instead. I
986 modeled the new definitions on the way `vec' and `dyad' work, but
987 it's possible I got something subtle wrong.
989 * I'm not certain the MathML implementation of font_box::output() is
990 right, because I don't quite get what the switcheroo between
991 `current_roman_font' and `old_roman_font' is supposed to
992 accomplish. It does seem to generare good MathML, though.
994 Finally, I made one purely cosmetic change in `text.cpp'; I replaced
995 with an enum some magic numbers for spacing types that I thought
996 were too ugly to live.
1000 The entirety of eqn is translated when `-TMathML' is specified,
1001 with the following exceptions...
1003 Limitations that cannot be fixed include non-support for special,
1004 up/down/fwd/back, and vcenter.
1006 Limitations that might be fixable include non-support for mark and
1007 lineup. I will investigate further, but if these can be implemented
1008 at all it's going to be in a very complicated and nasty way.
1010 The way character boxes are output means that each digit of a
1011 multi-digit number gets its own <mn></mn> tag pair in the MathHTML.
1012 While this is not technically wrong for Presentation MathML, it is
1013 ugly and inefficient. Fixing this will require implementing a
1014 little state machine in the `text.cpp' output method.
1016 * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp,
1017 src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man,
1018 src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
1019 src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp,
1020 src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp,
1021 src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
1022 src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
1023 src/preproc/eqn/eqn.man: MathML output mode.
1025 * NEWS: Document it.
1027 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1029 * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
1030 and for cross-viewer portability. Conversion checked
1031 using the protocol described in tmac/TESTING-HINTS.
1033 2007-02-02 Werner LEMBERG <wl@gnu.org>
1035 * tmac/an-ext.tmac (ME): Don't use `\:'.
1037 * src/roff/grog/grog.man: Further refinements and normalizations.
1039 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1041 * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
1042 cross-viewer portability. Conversion checked using the protocol
1043 described in tmac/TESTING-HINTS.
1045 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1047 * tmac/TESTING-HINTS: Added.
1049 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1051 Enable the support for Bell archaisms on .SC, so the `-r bell'
1052 switch is no longer needed to format old AT&T papers like
1055 * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
1057 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
1059 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1061 Add some Bell labs extensions to the -ms macros.
1063 * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
1065 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
1067 2007-01-30 Werner LEMBERG <wl@gnu.org>
1069 * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
1070 (\n[mH]): New register (set if grohtml is used).
1071 (\n[SY]): Rename to \n[mS].
1072 (\n[a]): Rename to \n[mA].
1073 (\n[i]): Rename to \n[mI].
1074 (mU): New auxiliary input trap macro.
1075 (UR, UE): Replace stub with real definition.
1077 (MT, ME): New macros.
1079 (EX, EE): Don't insert vertical space.
1080 Use a register to store (and restore) the current font.
1082 * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
1083 on patches from Eric Raymond.
1086 2007-01-22 Gaius Mulley <gaius@glam.ac.uk>
1088 * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
1090 2007-01-22 Werner LEMBERG <wl@gnu.org>
1092 * tmac/an-ext.tmac: Protect against being sourced twice.
1093 (URL, EE): Use always two backslashes.
1096 2007-01-16 Werner LEMBERG <wl@gnu.org>
1098 * tmac/an-ext.tmac: Remove code for grodvi.
1100 Don't insert empty line.
1101 (URL, TQ): Fix typos.
1103 2007-01-14 Werner LEMBERG <wl@gnu.org>
1105 * tmac/an-ext.tmac: New file, containing extension macros
1106 for -man. See discussion on the groff mailing list for
1107 background information.
1108 * tmac/an-old.tmac: Load an-ext.tmac.
1109 Decorate .ds and as with comment escapes where appropriate.
1110 * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
1112 2007-01-05 Werner LEMBERG <wl@gnu.org>
1114 * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
1116 2007-01-04 Gaius Mulley <gaius@glam.ac.uk>
1118 Make -me macros ready for grohtml.
1120 * tmac/e.tmac: Load devtag.tmac.
1121 (need_eo_h, need_eo_tl, need_tl): New registers.
1122 (check_need_title, (x-html, )x-html, xp-html): New macros.
1123 (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
1124 b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
1125 (bp): Rename to @b only if output device is not html.
1127 2007-01-01 Werner LEMBERG <wl@gnu.org>
1129 * man/groff_font.man: Document empty lines.
1131 * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
1132 the very beginning of the output.
1133 [!$opt_x]: Fix typo.
1135 * font/devps/*: Regenerate font definition files.
1137 2007-01-01 Werner LEMBERG <wl@gnu.org>
1139 * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
1141 * font/devps/*: Regenerate font definition files.
1143 2006-12-31 Werner LEMBERG <wl@gnu.org>
1145 * Makefile.in (oldfontdir): New variable.
1146 (MDEFINES): Add $(oldfontdir).
1147 (uninstall_dirs): Remove `current' link.
1148 Remove $(oldfontdir).
1150 * Makefile.comm (oldfontsubdir): New variable.
1151 (install_dev): Install files collected in $(OLDDEVFILES) into
1153 (uninstall_dev): Remove data in $(oldfontsubdir).
1154 (.man.n): Handle @OLDFONTDIR@.
1156 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1157 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1158 src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
1159 Document GROFF_FONT_PATH.
1161 * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
1162 old font description files.
1164 * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
1167 * font/devps/old/*: New directory, holding the previous version
1168 of the 35 Adobe core font description files.
1170 * font/devps/*: Regenerated the 35 Adobe core fonts, using the
1171 Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
1173 * NEWS: Document font update.
1175 2006-12-31 Werner LEMBERG <wl@gnu.org>
1177 * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
1179 * Makefile.comm (fonts): New (empty) target.
1180 * Makefile.in (TARGETS): Add `fonts'.
1182 * MANIFEST: Add `chem'.
1184 * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
1187 2006-12-26 Werner LEMBERG <wl@gnu.org>
1189 * src/preproc/grn/hdb.cpp: Include gprint.h later. From NetBSD.
1191 2006-12-19 Werner LEMBERG <wl@gnu.org>
1193 Add support for German. For activation, simply use -mde or -mden
1194 (for traditional and new orthgraphy, respectively) as the last
1197 * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
1198 tmac/hyphenex.det: New files, partly taken from CTAN.
1199 * LICENSES: Updated list of hyphenation patterns.
1200 * man/groff_tmac.man: Mention de.tmac and den.tmac.
1203 2006-12-11 Werner LEMBERG <wl@gnu.org>
1205 Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
1208 * src/preproc/pic/lex.cpp (ARG1): Redefine. Update all users.
1209 (MAX_ARG): New macro. Use it everywhere to replace hard-coded
1210 limit of 9 arguments.
1211 (process_body): Handle argument numbers with more than a single
1213 (interpolate_macro_with_args): Protect against exceeding number of
1216 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
1218 2006-12-10 Werner LEMBERG <wl@gnu.org>
1220 * Makefile.in (site.exp, docheck): Commented out. Not working
1222 (check): Just emit dummy message.
1224 2006-12-08 Werner LEMBERG <wl@gnu.org>
1226 During installation, create soft link from <version> to `current' in
1229 * Makefile.comm (install): Renamed to...
1231 (prefix_must_exist): Removed. Code moved to Makefile.in.
1233 * Makefile.in (TARGETS): Remove `install'.
1235 (install): New target which first creates the directory given by
1236 --prefix, then calling `make' to do the installation, and finishing
1237 with the creation of the soft link.
1239 2006-11-21 Werner LEMBERG <wl@gnu.org>
1241 * doc/Makefile.sub (uninstall_sub): Fix names for info files.
1243 2006-11-18 Werner LEMBERG <wl@gnu.org>
1245 * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
1246 information from Tom Van Vleck <thvv@multicians.org>.
1248 2006-11-16 Werner LEMBERG <wl@gnu.org>
1250 * tmac/62bit.tmac: New macro package.
1251 * tmac/Makefile.sub (NORMALFILES): Add it.
1252 * NEWS: Document it.
1254 * tmac/trace.tmac: Protect against being loaded again.
1255 (nr): Always show result.
1257 * doc/groff.texinfo (Input Encodings): Document latin-5.
1259 * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
1261 2006-11-13 Werner LEMBERG <wl@gnu.org>
1263 * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
1264 on negative trap positions.
1266 2006-11-10 Werner LEMBERG <wl@gnu.org>
1268 * Makefile.comm (.man.n): Handle @DATASUBDIR@.
1270 2006-11-09 Werner LEMBERG <wl@gnu.org>
1272 * INSTALL: Move information about external installation from
1273 INSTALL.gen into this file.
1276 * INSTALL.gen: Update to new version (from texinfo CVS).
1278 2006-11-09 Bernd Warken
1280 * INSTALL.gen: Extend the file by information on `external
1281 installation'. Reorder the installation instruction as `normal
1284 2006-11-08 Werner LEMBERG <wl@gnu.org>
1286 * doc/Makefile.sub (install_data): Take care of proper paths while
1287 installing info files. Bug reported by Bernd Warken.
1289 2006-11-06 Bernd Warken
1291 * src/roff/grog/grog.pl: Rewrite.
1292 - Call by `#! /usr/bin/env perl'. That isn't replaced.
1293 - Rename usage() to version().
1295 - For `use strict', start all global variables with an upper case
1296 character. Use `my' for all variables. Use several new variables.
1298 - Add copyright to GPL and Emacs comment.
1299 - Handle several `-m*' options.
1300 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1301 - Allow options after file names.
1302 - Allow only one `-' parameter (standard input).
1303 - Add option abbreviations.
1304 - Expand the usage information.
1306 - Add single quote "'" as additional first character and allow
1307 arbitrary space after the first character.
1309 * src/roff/grog/grog.sh: Rewrite.
1310 - Remove option `-e' of `sed'.
1311 - Allow file names with space characters.
1313 - Add copyright to GPL.
1314 - Handle several `-m*' options.
1315 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1316 - Allow options after file names.
1317 - Allow only one `-' parameter (standard input).
1318 - Add option abbreviations.
1319 - Expand the usage information.
1321 - Add single quote "'" as additional first character and allow
1322 arbitrary space after the first character.
1324 * src/roff/grog/Makefile.sub:
1325 - Add copyright to GPL.
1326 - Remove `grog:'. Move `grog.old:' to `grog:' in order to have a
1327 fair chance to choose between the shell version and the Perl
1328 version of `grog'. This is now again comparable to grog in groff
1331 * src/roff/grog/grog.man: Rewrite.
1332 - Move the license to GPL.
1333 - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
1334 - Take over some setup and macros from `groffer'.
1335 - Add information on options.
1337 2006-10-28 Werner LEMBERG <wl@gnu.org>
1339 * tmac/trace.tmac: Improve tracing of `.nr'.
1340 Trace `.substring' also.
1344 2006-10-28 Bernd Warken
1346 * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
1347 of groff development site, fix fonts.
1349 * News: Add information on `chem' and `groffer'.
1351 2006-10-26 Bernd Warken
1353 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
1355 2006-10-26 Werner LEMBERG <wl@gnu.org>
1357 Add `\$^' escape to handle the parameters to a macro as a string
1360 * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
1362 * src/roff/troff/input.cpp (input_iterator, input_stack,
1363 macro_iterator): Add `space_follows_arg' member function.
1364 (macro_iterator::add_arg): Add parameter to set the `space_follows'
1366 (arg_list): Add member `space_follows'.
1367 Update constructor and all callers.
1368 (decode_args): Store discarded double quotes.
1369 (interpolate_args): Handle DOUBLE_QUOTE.
1371 (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
1373 * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
1375 * docs/groff.texinfo (Parameters), man/groff.man,
1376 man/groff_diff.man, NEWS: Document it.
1378 2006-10-24 Bernd Warken
1380 * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
1382 2006-10-24 Werner LEMBERG <wl@gnu.org>
1384 * tmac/groff_trace.man: Mention problem with `\\\\'.
1386 2006-10-23 Werner LEMBERG <wl@gnu.org>
1388 * doc/groff.texinfo (Expressions): Improve documentation of `!'.
1390 * tmac/trace.tmac (return): Don't call `substring'.
1392 2006-09-10 Werner LEMBERG <wl@gnu.org>
1394 * src/roff/troff/input.cpp (read_size): Revert previous change
1397 * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
1399 2006-09-09 Werner LEMBERG <wl@gnu.org>
1401 * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
1402 behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
1403 point size to 1). Reported by Gunnar Ritter.
1404 Also catch `\s-[-...]' and friends (causing an error).
1406 2006-09-06 Werner LEMBERG <wl@gnu.org>
1408 * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
1409 space only if there is no previous space. This fixes a bug which
1410 caused unwanted filling of the last line in a paragraph. Thanks to
1411 Gunnar Ritter for an analysis.
1413 2006-09-03 Werner LEMBERG <wl@gnu.org>
1415 * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
1416 Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
1418 2006-09-01 Nick Stoughton <nick@msbit.com>
1419 Werner LEMBERG <wl@gnu.org>
1421 Add a request `pev' to print environment information (similar to
1422 `pnr' and `ptr' to print number registers and traps).
1424 * src/roff/troff/env.h (environment): Add member function print_env.
1426 * src/roff/troff/env.cpp: (environment::print_env): New function to
1427 print a given environment state.
1428 (print_env): New global function to iterate through the
1429 environments, printing each one.
1430 (init_env_requests): Register `pev'.
1432 * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
1433 NEWS: Document `pev' request.
1435 2006-09-01 Bernd Warken
1437 * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
1440 2006-09-01 Werner LEMBERG <wl@gnu.org>
1442 * src/preproc/pic/main.cpp (usage): Add missing options.
1444 2006-08-25 Werner LEMBERG <wl@gnu.org>
1446 * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1449 2006-08-19 Werner LEMBERG <wl@gnu.org>
1451 * configure: Regenerated.
1453 2006-08-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1455 * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1456 logic; it previously caused an `expr' syntax error, if no version of
1457 `makinfo' was present. Also, remove dependency on `makeinfo' in VPATH
1458 builds, if an up to date `groff.info' is present in either `builddir'
1461 2006-08-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1463 * font/devps/prologue.ps: Add BPhook.
1465 * src/devices/grops/grops.man: Document BPHook.
1466 Reorder some sections for better readability.
1468 2006-08-12 Werner LEMBERG <wl@gnu.org>
1470 * src/include/lib.h (getlocale): New macro.
1471 (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1474 * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1476 2006-08-11 Werner LEMBERG <wl@gnu.org>
1478 Add new flag to .cflags to enable hyphenation without looking at
1481 * src/roff/troff/charinfo.h (charinfo): New enumeration value
1483 New member function `ignore_hcodes'.
1485 * src/roff/troff/node.cpp (break_char_node::add_self,
1486 node::add_char): Updated.
1488 * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1490 2006-08-09 Werner LEMBERG <wl@gnu.org>
1492 Support composite Unicode characters again. Reported by Colin.
1494 * font/devhtml/R.proto: Renamed to...
1495 * font/devhtml/R.in: This.
1497 * font/devutf8/R.proto: Renamed to...
1498 * font/devutf8/R.in: This.
1501 * font/make-Rproto: New script.
1502 * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1504 2006-07-26 Werner LEMBERG <wl@gnu.org>
1506 * README: Fix description of CVS access. Reported by Joachim.
1508 2006-07-11 Werner LEMBERG <wl@gnu.org>
1510 Add a request `.fzoom' and a number register `.zoom' to magnify
1513 * src/include/font.h (font): Add member variable `zoom'.
1514 Add member functions `set_zoom' and `get_zoom'.
1515 Remove `static' attribute from `scale' member function.
1517 * src/libs/libgroff/font.cpp (font::font): Updated.
1518 (scale_round): New version with three parameters to handle zoom
1520 (font::scale, font::get_width): Handle zoom factor.
1521 (font::set_zoom, font::get_zoom): New functions.
1522 (font::load): Handle `zoom' while computing `space_width'.
1524 * src/roff/troff/env.h: Declare `env_get_zoom'.
1525 (environment): Add member function `get_zoom'.
1527 * src/roff/troff/env.cpp (environment::get_zoom): New function.
1528 (init_env_requests): Initialize `.zoom' register.
1530 * src/roff/troff/node.cpp (font_info): New member functions
1531 `set_zoom' and `get_zoom'.
1532 (tfont): New member function `get_zoom'.
1533 (env_get_zoom): New function.
1534 (troff_output_file::set_font): Handle zoom factor.
1535 (font_zoom_request): New function.
1536 (init_node_requests): Initialize `fzoom' request.
1538 * docs/groff.texinfo (Changing Fonts), man/groff.man,
1539 man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1542 * src/roff/troff/TODO: Updated.
1544 2006-07-10 Werner LEMBERG <wl@gnu.org>
1546 * doc/groff.texinfo (Drawing Requests): Improve documentation of
1549 2006-07-02 Werner LEMBERG <wl@gnu.org>
1551 * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1553 2006-07-01 Werner LEMBERG <wl@gnu.org>
1555 * tmac/pspic.tmac: Make .PSPIC work for all devices.
1556 Print image file name for devices which don't support PS image
1558 Handle multiple inclusions.
1559 Add lots of comments.
1561 * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1564 * tmac/troffrc: Load pspic.tmac.
1566 * man/groff_tmac.man: Update .PSPIC documentation.
1570 2006-06-29 Werner LEMBERG <wl@gnu.org>
1572 * src/roff/troff/input.cpp (interpolate_macro):
1573 s/probably/possibly/, as suggested by Keith.
1575 2006-06-28 Werner LEMBERG <wl@gnu.org>
1577 Add support for \D'p...' to grotty.
1579 * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1581 (tty_printer::line): This function.
1582 (tty_printer::draw): Rewritten; just call either draw_line or
1584 (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1586 * src/devices/grotty/grotty.man, NEWS: Document it.
1588 2006-06-27 Werner LEMBERG <wl@gnu.org>
1590 * src/preproc/refer/command.h (have_bibliography): New variable
1593 * src/preproc/refer/command.cpp (bibliography_command): Set
1594 `have_bibliography'.
1596 * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1597 (output_references): Emit warning only if `have_bibliography' is
1600 2006-06-15 Michail Vidiassov <master@iaas.msu.ru>
1602 * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1603 * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1606 2006-06-15 Werner LEMBERG <wl@gnu.org>
1608 * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1609 macro (as suggested by Tadziu Hoffmann).
1611 2006-06-12 Werner LEMBERG <wl@gnu.org>
1613 * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1614 macro (as suggested by Tadziu Hoffmann).
1616 2006-06-05 Werner LEMBERG <wl@gnu.org>
1618 * tmac/strip.sed: Strip `\#' also.
1620 * doc/groff.texinfo (Operators in Conditionals): Document usage of
1621 \? for string comparison.
1623 2006-06-04 Werner LEMBERG <wl@gnu.org>
1625 * doc/groff.texinfo: Add more index entries for copy-in mode.
1626 (Changing Fonts) <.ft>: Document that a font definition file must
1627 not be called `DESC'.
1629 2006-05-31 Werner LEMBERG <wl@gnu.org>
1631 * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1634 * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1635 (PROCESSEDEXAMPLEFILES): Here.
1637 2006-05-30 Werner LEMBERG <wl@gnu.org>
1639 * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1641 Reduce number of false positives for `.if F ...' conditionals.
1642 Improve warning messages.
1644 2006-05-29 Werner LEMBERG <wl@gnu.org>
1646 * tmac/Makefile.sub: Add copyright notice.
1647 (NORMALFILES): Add man.tmac and ms.tmac.
1648 (SPECIALFILES): Remove man.tmac and ms.tmac.
1649 (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1650 (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1652 (stamp-sed): Don't handle man.tmac and ms.tmac.
1653 Remove obsolete components in sed's regexp.
1655 * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1657 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1659 2006-05-28 Werner LEMBERG <wl@gnu.org>
1661 * doc/groff.texinfo (History): Correct death circumstances of Joe
1664 2006-05-27 Werner LEMBERG <wl@gnu.org>
1666 * tmac/an-old.tmac (an-do-tag): Simplify.
1668 2006-05-26 Werner LEMBERG <wl@gnu.org>
1670 * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1671 (an-header, an-p-footer): Use named environment.
1673 * src/roff/troff/env.cpp (environment::copy): Copy margin character
1676 2006-05-21 Werner LEMBERG <wl@gnu.org>
1678 * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1681 2006-05-11 Keith Marshall <keith.d.marshall@ntlworld.com>
1683 * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1685 2006-05-10 Keith Marshall <keith.d.marshall@ntlworld.com>
1687 * src/roff/groff/groff.man: Update copyright notice.
1688 Improved wording to describe effect of `-Z' option.
1690 2006-05-06 Werner LEMBERG <wl@gnu.org>
1692 * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1693 Normalize handling of `"' in arguments.
1694 (PIMG): Remove debug message.
1697 2006-05-05 Werner LEMBERG <wl@gnu.org>
1699 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1700 swallow character immediately after `\[...]'.
1703 2006-05-02 Gaius Mulley <gaius@glam.ac.uk>
1705 * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1707 2006-05-02 Larry Kollar <kollar@alltel.net>
1709 * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1712 2006-04-30 Michail Vidiassov <master@iaas.msu.ru>
1714 * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1715 information as a comment in output.
1716 * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1718 2006-04-26 Werner LEMBERG <wl@gnu.org>
1720 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1721 Handle current_paragraph only if it is non-NULL.
1723 * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1724 <'F'>): Use `get_extended_arg' to behave as documented. Reported by
1725 Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1728 Surround the (pseudo) file name for the .pso request with `<' and
1731 * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1732 second parameter to `really_put_filename' and `put_filename'.
1733 (troff_output_file::really_put_filename): Emit `<' and `>' around
1734 filename if second argument is set.
1735 * src/roff/troff/node.h: Updated.
1737 * src/roff/troff/input.cpp (file_iterator::file_iterator,
1738 file_iterator::set_location): Update to changes in node.cpp.
1740 2006-04-25 Tetsurou Okazaki <okazaki@FreeBSD.org>
1742 * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1743 preprocessor expression (I18N -> HAVE_ICONV).
1744 (main): Fix handling of option `-h'.
1745 Fix conditional preprocessor expression.
1747 2006-04-04 Werner LEMBERG <wl@gnu.org>
1749 Implement new number register `.br' which is set to 1 if a macro has
1750 been called as .foo and to 0 if called as 'bar. This is useful for
1751 -mtrace so that requests can be reliably traced too.
1753 * src/roff/troff/input.cpp (input_iterator): Add virtual function
1755 (macro_iterator): Add `with_break' member and `get_break_flag'
1757 Update constructors.
1758 (input_stack): Add function `get_break_flag'.
1759 (break_flag_reg): New number register class.
1760 (input_init_requests): Register `.br'.
1762 * src/roff/troff/TODO: Updated.
1764 * tmac/trace.tmac: s/!!sp/!!!sp/.
1765 Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
1767 * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
1770 2006-03-29 Werner LEMBERG <wl@gnu.org>
1772 * src/devices/grops/ps.cpp: s/must not/should not/ in warning
1773 messages where appropriate.
1775 2006-03-28 Werner LEMBERG <wl@gnu.org>
1777 * configure.ac: Call AC_PROG_EGREP.
1778 * configure: Regenerated.
1780 * Makefile.in (EGREP): New variable.
1781 (MDEFINES): Add $(EGREP).
1783 * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
1784 (bug reported by Robert Goulding <Goulding.2@nd.edu>).
1787 * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
1789 2006-03-27 Werner LEMBERG <wl@gnu.org>
1791 Add two requests `.device' and `.devicem' which are equivalent to
1792 `\X' and `\Y', respectively.
1794 * src/roff/troff/input.cpp (device_request, device_macro_request):
1796 (init_input_requests): Register them.
1798 * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
1799 man/groff.man, NEWS: Document them.
1801 2006-03-27 Gaius Mulley <gaius@glam.ac.uk>
1803 * src/roff/troff/input.cpp (encode_char): Emit special characters
1804 for -Thtml as `\[...]'.
1805 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
1807 * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
1809 2006-03-27 Werner LEMBERG <wl@gnu.org>
1811 * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
1814 2006-03-26 Werner LEMBERG <wl@gnu.org>
1816 * doc/groff.texinfo (Writing Macros): More documentation on
1817 end-of-macro symbol of `.de'.
1818 (Diversions): Minor addition to `.di' description.
1820 * src/devices/grops/grops.man: Some clarifications regarding
1821 insertion of PostScript snippets.
1823 2006-03-25 Michail Vidiassov <master@iaas.msu.ru>
1825 Add rules to generate `symbolsl.afm'.
1827 * font/devps/generate/zapfdr.sed,
1828 font/devps/generate/symbolsl.awk: New files.
1830 * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
1832 (SS, clean): Updated.
1833 (freeeuro.afm): Use $(srcdir).
1834 (symbolsl.afm): New rule.
1835 (zapfdr.afm): Use zapfdr.sed.
1837 2006-03-22 Dwight Aplevich <aplevich@uwaterloo.ca>
1839 * src/preproc/pic/pic.y (expr <INT>): Fix code.
1841 2006-03-22 Jörgen Grahn <jgrahn@algonet.se>
1843 * tmac/sv.tmac: Add missing translations and activate support for
1844 other macro packages.
1846 2006-03-21 Francis GUDIN <fgudin@nerim.net>
1848 * tmac/doc-syms (Dx): New macro to identify DragonFly.
1849 (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
1850 doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
1852 (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
1853 doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
1854 doc-operating-system-DragonFly-*): New operating system strings.
1856 * tmac/groff_mdoc.man, NEWS: Document `Dx'.
1858 2006-03-21 Werner LEMBERG <wl@gnu.org>
1860 * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
1861 both DWB pic and dpic, make
1869 line right then down;
1876 * doc/pic.ms: Document this.
1878 2006-03-20 Werner LEMBERG <wl@gnu.org>
1880 * doc/pic.ms: With permission of Eric Raymond, put it under the
1885 2006-03-19 Werner LEMBERG <wl@gnu.org>
1887 * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
1889 * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
1890 attribute in combination with `with'. Bug reported by Jennifer
1891 Sayers <jenjen@mail.usyd.edu.au>.
1893 2006-03-19 Miklos Somogyi <msom@netspace.net.au>
1895 * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
1898 2006-03-18 Werner LEMBERG <wl@gnu.org>
1900 * LICENSE: Renamed to...
1901 * LICENSES: This. Collect all licensing information in this file.
1902 * tmac/README, src/libs/snprintf/README: Removed.
1904 * src/devices/grops/grops.man: Add section how to install fonts.
1906 * src/utils/xtotroff/xtotroff.c: Add GPL.
1908 2006-03-17 Werner LEMBERG <wl@gnu.org>
1910 * Makefile.comm (.y.cpp): Fix #line arguments in output.
1912 2006-03-13 Werner LEMBERG <wl@gnu.org>
1914 * src/preproc/tbl/tbl.man: Mention default length of text blocks.
1916 * tmac/doc-common (Os): Add more Darwin versions.
1917 * tmac/groff_mdoc.man: Document them.
1919 * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
1920 works with \N'...' also.
1921 * man/groff_diff.man: Ditto. Remove use of future tense where
1924 2006-03-12 Michail Vidiassov <master@iaas.msu.ru>
1926 * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
1927 font/devps/zapfdr.ps: Add `%%EndComments' line.
1929 2006-03-10 Larry Kollar <kollar@alltel.net>
1931 * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
1933 2006-03-10 Werner LEMBERG <wl@gnu.org>
1935 * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
1936 ps_printer::do_mdef): Overlong lines now cause a warning message,
1939 2006-03-09 Werner LEMBERG <wl@gnu.org>
1941 * font/devps/generate/make-zapfdr: New script for generating
1944 2006-03-08 Werner LEMBERG <wl@gnu.org>
1946 * doc/groff.css (pre): Fix `background-color' value.
1948 2006-03-04 Larry Kollar <kollar@alltel.net>
1950 * tmac/groff_ms.man: Document PT, HD, and BT.
1952 2006-03-04 Werner LEMBERG <wl@gnu.org>
1954 * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
1955 for single-letter glyph names.
1957 2006-03-02 Werner LEMBERG <wl@gnu.org>
1959 * tmac/sv.tmac: New file; currently holding only the Swedish strings
1961 * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
1963 * tmac/README: Updated.
1965 2006-02-27 Werner LEMBERG <wl@gnu.org>
1967 * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
1968 * tmac/fr.tmac: Add French translations.
1970 * tmac/composite.tmac: Add entry for `:'.
1972 2006-02-26 Werner LEMBERG <wl@gnu.org>
1974 * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
1976 (install_html, uninstall_sub): Updated.
1978 2006-02-26 Bruno Haible <bruno@clisp.org>
1980 Introduce Unicode fonts.
1982 * font/devhtml/DESC.proto: Mark as unicode.
1983 * font/devhtml/R.proto: Remove all charset entries that are already
1985 * font/devutf8/DESC.proto: Mark as unicode.
1986 * font/devutf8/R.proto: Remove all charset entries.
1987 * src/include/font.h (font): New static field `is_unicode'.
1988 Change order of fields.
1989 * src/libs/libgroff/font.cpp: Include unicode.h.
1990 (font::font): Update for changed order of fields.
1991 (font::contains, font::get_width, font::get_height, font::get_depth,
1992 font::get_italic_correction, font::get_left_italic_correction,
1993 font::get_subscript_correction, font::get_character_type,
1994 font::get_code, font::get_special_device_encoding): Handle both the
1995 explicitly enumerated glyphs and use general code for Unicode fonts.
1996 (font::load): Make the charset section optional when the font is
1998 (font::load_desc): Recognize the `unicode' attribute.
1999 * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
2001 2006-02-26 Claudio Fontana <claudio@gnu.org>
2003 * Makefile.in: Add comment about DESTDIR.
2005 * Makefile.sub: Add DESTDIR to install and uninstall targets
2006 to support staged installations.
2007 * Makefile.comm: Likewise.
2008 * doc/Makefile.sub: Likewise.
2009 * contrib/eqn2graph/Makefile.sub: Likewise.
2010 * contrib/grap2graph/Makefile.sub: Likewise.
2011 * contrib/pic2graph/Makefile.sub: Likewise.
2012 * src/devices/xditview/Makefile.sub: Likewise.
2013 * src/preproc/eqn/Makefile.sub: Likewise.
2014 * src/roff/grog/Makefile.sub: Likewise.
2015 * src/roff/nroff/Makefile.sub: Likewise.
2016 * src/utils/afmtodit/Makefile.sub: Likewise.
2017 * src/utils/indxbib/Makefile.sub: Likewise.
2018 * tmac/Makefile.sub: Likewise.
2020 2006-02-24 Werner LEMBERG <wl@gnu.org>
2022 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2024 Remove commented out entries for \' and \` (there are no such glyph
2027 * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2028 commented out entries for \' and \`.
2031 * */*: s/legal/valid/ where appropriate.
2033 2006-06-23 Werner LEMBERG <wl@gnu.org>
2035 * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
2038 2006-02-22 Werner LEMBERG <wl@gnu.org>
2040 Remove all remaining traces from the `shc' glyph.
2042 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2043 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2046 * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
2047 entry with unnamed glyph.
2049 * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
2051 * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
2054 2006-02-22 Bruno Haible <bruno@clisp.org>
2056 Concretize the `glyph' datatype.
2058 * src/include/font.h (glyph): Remove class.
2059 (glyph): Renamed from struct `glyphinfo'.
2060 (glyph_to_index): New inline function.
2061 (glyph_to_name): Make extern, not inline.
2062 (glyph_to_number): Update.
2063 (font): Use `glyph *' instead of `glyph'.
2065 * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
2066 `glyph'. Make `name' field public.
2067 (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
2069 (glyph_to_name): Renamed from `glyph::glyph_name'.
2071 * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
2072 Use `glyph *' instead of `glyph'.
2074 * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
2075 `glyph *' instead of `glyph'.
2076 (glyph_to_name): Renamed from `glyph::glyph_name'.
2078 * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
2079 and `glyph_to_index' instead of `glyph::glyph_index'.
2081 * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
2082 * src/libs/libdriver/printer.cpp: Likewise.
2083 * src/devices/grodvi/dvi.cpp: Likewise.
2084 * src/devices/grohtml/post-html.cpp: Likewise.
2085 * src/devices/grolbp/lbp.cpp: Likewise.
2086 * src/devices/grolj4/lj4.cpp: Likewise.
2087 * src/devices/grops/ps.cpp: Likewise.
2088 * src/devices/grotty/tty.cpp: Likewise.
2090 2006-02-22 Werner LEMBERG <wl@gnu.org>
2092 * font/devdvi/generate/tc.map: Add `sr' glyph.
2093 * font/devdvi/*TC: Regenerated.
2095 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2098 2006-02-21 Werner LEMBERG <wl@gnu.org>
2100 * man/groff_char.man: Explain `***' marker.
2102 2006-02-17 Bruno Haible <bruno@clisp.org>
2104 * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
2105 methods and fields from *_index to *_glyph.
2106 (character_indexer::named_char_glyph): Test for `charNNN' name
2108 (name_to_glyph): ... not here.
2110 2006-02-17 Bruno Haible <bruno@clisp.org>
2112 * src/include/font.h (name_to_glyph): Renamed from
2113 font::name_to_index.
2114 (number_to_glyph): Renamed from font::number_to_index.
2115 (glyph_to_name): Renamed from font::index_to_name.
2116 (glyph_to_number): Renamed from font::index_to_number.
2117 * src/libs/libgroff/nametoindex.cpp: Likewise.
2118 * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
2119 charinfo::get_index.
2121 * src/roff/troff/input.cpp: All callers changed.
2122 * src/roff/troff/node.cpp: Likewise.
2123 * src/libs/libgroff/font.cpp: Likewise.
2124 * src/devices/grops/ps.cpp: Likewise.
2125 * src/devices/grohtml/post-html.cpp: Likewise.
2126 * src/libs/libdriver/printer.cpp: Likewise.
2128 2006-02-17 Werner LEMBERG <wl@gnu.org>
2130 * src/include/ptable.h, src/include/itable.h
2131 (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
2132 of external symbol `next_ptable_size' (used by both header files).
2134 2006-02-15 Bruno Haible <bruno@clisp.org>
2136 * src/include/font.h (glyphinfo): New class.
2137 (glyph): Change internal representation.
2138 Change constructor signature.
2139 New method glyph::glyph_number().
2140 (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
2141 glyph::operator==, glyph::operator!=): Update.
2142 (font::index_to_name, font::index_to_number): New functions.
2144 * src/include/itable.h: New file, based on src/include/ptable.h.
2146 * src/libs/libgroff/nametoindex.cpp: Include itable.h.
2147 (class charinfo): New class.
2148 (class character_indexer): Change table result type from `int' to
2150 Add table with integer key.
2151 (character_indexer::character_indexer): Update.
2152 (character_indexer::ascii_char_index): Update.
2153 (character_indexer::numbered_char_index): Use NULL as name, not a
2154 string starting with a space.
2155 (character_indexer::named_char_index): Update.
2156 (font::number_to_index, font::name_to_index): Remove no-op cast.
2157 (glyph::glyph_name): New method.
2158 * src/roff/troff/charinfo.h (class charinfo): Inherit from class
2160 (NUMBERED): Remove flag bit.
2161 (charinfo::numbered, charinfo::get_index): Update.
2163 * src/roff/troff/input.cpp (charinfo::charinfo): Update.
2164 (charinfo::set_number, charinfo::get_number): Update.
2165 (glyph::glyph_name): New method.
2167 2006-02-15 Werner LEMBERG <wl@gnu.org>
2169 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
2170 entries for `>>', `<<', `*f', and `+f'. Reported by Bruno.
2172 2006-02-13 Werner LEMBERG <wl@gnu.org>
2174 * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
2177 2006-02-11 Werner LEMBERG <wl@gnu.org>
2179 * src/include/font.h: s/glyph_t/glyph/.
2182 * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
2183 s/output_character_t/output_character/.
2185 2006-02-11 Bruno Haible <bruno@clisp.org>
2187 New accessor method glyph_t::glyph_name().
2189 * src/include/ptable.h (declare_ptable): Add a return value to the
2190 `define' method, and declare a `lookupassoc' method.
2191 (implement_ptable): Return the stored key in `define'. Implement
2193 * src/include/font.h (glyph_t): Add `name' field. Add an argument
2195 (glyph_t::glyph_name): New method.
2197 * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
2198 return type of methods and field member type to glyph_t.
2199 (character_indexer::character_indexer): Update.
2200 (character_indexer::ascii_char_index): Allocate a name for the
2202 Return a glyph_t with name.
2203 (character_indexer::numbered_char_index): Return a glyph_t without a
2205 (character_indexer::named_char_index): Return a glyph_t with a name.
2206 (font::number_to_index, font::name_to_index): Update.
2208 * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
2211 2006-02-11 Bruno Haible <bruno@clisp.org>
2213 * src/devices/grotty/tty.cpp (output_character_t): New type.
2214 (tty_printer::make_bold, tty_printer::add_char,
2215 tty_printer::put_char): Change argument type to output_character_t.
2216 (crossings): Change element type to output_character_t.
2218 2006-02-11 Bruno Haible <bruno@clisp.org>
2220 Make the glyph data type abstract.
2222 * src/include/font.h (glyph_t): New class.
2223 (name_to_index, number_to_index): Change return type to glyph_t.
2224 (font::contains, font::get_width, font::get_height, font::get_depth,
2225 font::get_character_type, font::get_kern, font::get_skew,
2226 font::get_italic_correction, font::get_left_italic_correction,
2227 font::get_subscript_correction, font::get_code,
2228 font::get_special_device_encoding, font::add_entry,
2229 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2232 * src/libs/libgroff/font.cpp (font_kern_list): Change members
2233 type and constructor argument types to glyph_t.
2234 (font::contains, font::get_width, font::get_height, font::get_depth,
2235 font::get_character_type, font::get_kern, font::get_skew,
2236 font::get_italic_correction, font::get_left_italic_correction,
2237 font::get_subscript_correction, font::get_code,
2238 font::get_special_device_encoding, font::add_entry,
2239 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2241 (font::load): Use glyph_t variables.
2243 * src/libs/libgroff/nametoindex.cpp (name_to_index,
2244 number_to_index): Change return type to glyph_t.
2246 * src/roff/troff/charinfo.h (charinfo::index): Change type to
2248 (charinfo::get_index): Change return type to glyph_t.
2250 * src/roff/troff/env.cpp: Include font.h.
2252 * src/roff/troff/node.cpp: Include font.h before charinfo.h.
2254 * src/roff/troff/input.cpp: Include font.h before charinfo.h.
2255 (charinfo::charinfo): Update.
2256 (name_to_index, number_to_index): Change return type to glyph_t.
2258 * src/include/printer.h (printer::set_char_and_width): Change return
2261 * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
2262 Change return type to glyph_t.
2264 * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
2265 argument type to glyph_t.
2267 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
2268 (html_printer::space_glyph): Renamed from space_char_index.
2269 (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
2270 html_printer::overstrike, html_printer::set_char): Change argument
2272 (html_printer::set_char_and_width): Change return type to glyph_t.
2274 * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
2275 argument type to glyph_t.
2277 * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
2278 argument type to glyph_t.
2280 * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
2282 (ps_printer::set_subencoding, ps_printer::set_char): Change argument
2285 * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
2286 argument type to glyph_t.
2288 2006-02-11 Bruno Haible <bruno@clisp.org>
2290 * src/roff/troff/input.cpp (font::name_to_index): Never return a
2293 * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
2294 font::name_to_index.
2296 2006-02-10 Werner LEMBERG <wl@gnu.org>
2298 * doc/groff.texinfo (Assigning Formats): Number registers are always
2300 Apply some rephrasing, contributed by Michael Burt.
2302 2006-02-07 Werner LEMBERG <wl@gnu.org>
2304 * tmac/fr.tmac <ms>: Set `HY' register.
2306 2006-02-07 Werner LEMBERG <wl@gnu.org>
2308 Add framework for simple adaptation of the main macro packages (mm,
2309 me, ms, mom) to different locales. In particular, add support for
2310 French. For activation, simply use `-mfr' as the last macro
2311 package. This feature has been contributed by Fabrice Ménard
2312 <menard.fabrice@wanadoo.fr>.
2314 * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
2316 * tmac/README: Mention hyphen.fr.
2317 * man/groff_tmac.man: Mention fr.tmac.
2320 2006-01-27 Werner LEMBERG <wl@gnu.org>
2322 * man/groff_font.man: Updated documentation of `entity_name' field.
2325 2006-01-27 Bruno Haible <bruno@clisp.org>
2327 * font/devhtml/R.proto: Remove the entity names from the font's
2328 special_encoding_encoding column.
2329 * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
2330 handling the entity names here.
2331 (get_html_translation): Use it. Change return type to `const
2333 (page::add_and_encode): Update, removing a useless cast.
2335 2006-01-26 Werner LEMBERG <wl@gnu.org>
2337 This change is based on a patch by Bruno Haible <bruno@clisp.org>.
2339 * src/include/device.h: Add comments.
2340 * src/include/font.h: Add comments.
2341 * src/include/unicode.h: Likewise.
2342 * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
2344 2006-01-26 Keith Marshall <keith.d.marshall@ntlworld.com>
2346 Suppress `.st' request emission by `grn'.
2348 * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
2351 2006-01-22 Werner LEMBERG <wl@gnu.org>
2353 * install-sh: New version; taken from texinfo CVS.
2355 2006-01-21 Werner LEMBERG <wl@gnu.org>
2357 * src/preproc/preconv/preconv.cpp (main): Set program_name. Bug
2358 reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
2360 2006-01-19 Bruno Haible <bruno@clisp.org>
2362 Let `make -k install' install more files.
2364 * Makefile.in (MAKE_K_FLAG): New variable. Use it everywhere where
2365 $(MAKE) and $(MDEFINES) are used.
2366 (CPROGDIRS): Remove $(XPROGDIRS). Treat $(XPROGDIRS) like
2367 $(CPROGDIRS) everywhere.
2368 ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
2370 ($(OTHERDIRS)): Likewise.
2373 * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
2374 failure test for font::name_to_index -- it can never fail.
2376 2006-01-19 Werner LEMBERG <wl@gnu.org>
2378 * src/devices/grops/grops.man: Fix section on creating EPS files.
2379 Don't use future time in manual.
2382 2006-01-15 Gaius Mulley <gaius@glam.ac.uk>
2384 * tmac/www.tmac: New macro LINKSTYLE which allows users to set
2385 various typographical URL attributes for non-HTML devices.
2387 * tmac/groff_www.man: Document LINKSTYLE.
2389 2006-01-11 Werner LEMBERG <wl@gnu.org>
2391 * configure.ac: Test for getc_unlocked (needed for localcharset).
2392 * configure, src/include/config.hin: Regenerated.
2394 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
2397 * src/libs/libgroff/relocatable.h: New dummy header file for
2400 * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
2403 2006-01-10 Bruno Haible <bruno@clisp.org>
2405 Work around unportability of nl_langinfo(CODESET).
2407 * m4/glibc21.m4: New file, from gnulib.
2408 * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
2409 * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
2410 * Makefile.in (HOST, GLIBC21): New variables.
2411 (MDEFINES): Pass them to subdirectories.
2412 * src/include/relocate.h (relocatep): Define with C linkage.
2413 * src/include/localcharset.h: New file, from gnulib.
2414 * src/libs/libgroff/localcharset.c: New file, from gnulib with a
2415 modification for relocate().
2416 * src/libs/libgroff/config.charset: New file, from gnulib.
2417 * src/libs/libgroff/ref-add.sin: New file, from gnulib.
2418 * src/libs/libgroff/ref-del.sin: New file, from gnulib.
2419 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
2420 (OBJS): Add localcharset.o.
2421 (CSRCS): Add localcharset.c.
2422 (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
2423 (charset.alias): New rule.
2424 (PACKAGE): New variable.
2425 (ref-add.sed, ref-del.sed): New rules.
2426 (MKINSTALLDIRS): New variable.
2427 (install_data): Depend on install_charset_data.
2428 (install_charset_data): New rule for creating or updating
2430 (uninstall_sub): Depend on uninstall_charset_data.
2431 (uninstall_charset_data): New rule for uninstalling or updating
2433 * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
2435 (main): Initialize default_encoding from locale_charset() instead of
2436 nl_langinfo(CODESET).
2438 * aclocal.m4, configure, src/include/config.hin: Regenerated.
2440 2006-01-10 Werner LEMBERG <wl@gnu.org>
2442 * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
2443 ICONV_CONST in call to iconv. Reported by Robert Goulding.
2445 2006-01-07 Werner LEMBERG <wl@gnu.org>
2447 * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2449 Bump font version to 001.001.
2451 * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2452 Call fontforge, not pfaedit.
2454 * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2456 2006-01-05 Ruslan Ermilov <ru@FreeBSD.org>
2458 * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2459 * tmac/groff_mdoc.man: Updated.
2461 2006-01-05 Werner LEMBERG <wl@gnu.org>
2463 * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2464 (raw_flag): New global variable.
2465 (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2466 Don't pass BOM to `conversion_utf8'.
2468 (main): Handle `-r' command line switch to set `raw_flag'.
2469 (get_BOM): Fix encodings in `BOM_table'.
2471 * src/preproc/preconv/preconv.man: New file. Not complete yet.
2472 * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2474 2006-01-04 Werner LEMBERG <wl@gnu.org>
2476 * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2477 Bruno, comment out most encodings to support only a small set of
2478 coding tags, thus reducing potential problems with legacy encodings
2479 and character sets in the future.
2480 Add many XEmacs coding tags (now commented out).
2482 (check_encoding_tag): Renamed to...
2483 (check_coding_tag): This.
2484 (get_BOM): Return encoding as specified by BOM.
2485 Test for UTF32-LE too.
2486 (do_file): Don't check for coding tag if a BOM has been found.
2488 2006-01-03 Bruno Haible <bruno@clisp.org>
2490 * m4/groff.m4: Renamed from aclocal.m4.
2491 * m4/codeset.m4: New file, from gnulib.
2492 * m4/iconv.m4: New file, from gnulib.
2493 * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2495 * config.rpath: New file, from gnulib.
2496 * config.guess, config.sub: New files, from gnulib.
2497 * Makefile.sub (M4MACROS): New variable.
2498 (configure): Fix typo.
2499 (aclocal.m4): New rule.
2500 (stamp-h.in): Depend on aclocal.m4.
2501 * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2502 * Makefile.in (LIBICONV): New variable.
2503 (MDEFINES): Pass it to recursive makes.
2504 * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2505 HAVE_ICONV instead of I18N macro.
2506 * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2508 * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2510 2006-01-03 Werner LEMBERG <wl@gnu.org>
2512 * doc/Makefile.in (webpage.html): Simplify.
2513 * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2514 * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2516 2006-01-01 Werner LEMBERG <wl@gnu.org>
2518 * tmac/doc-common (Os): Add some Darwin versions.
2519 * tmac/groff_mdoc.man: Document them.
2521 2006-01-01 Bruno Haible <bruno@clisp.org>
2523 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2525 . Don't map ascii to latin-1.
2526 . Don't use IBMxxx encodings but cpxxx for portability.
2527 . Map cp932, cp936, cp949, cp950 to itself.
2528 (emacs2mime): Protect calls to strcasecmp.
2529 (conversion_iconv): Add missing call to iconv_close.
2530 (do_file): Emit error message in case of unsupported encoding.
2532 2005-12-31 Werner LEMBERG <wl@gnu.org>
2534 Integrate preconv into the groff binary. Changes based on a patch
2535 from Michail Vidiassov.
2537 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2539 * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2540 (SOELIM_INDEX): Updated.
2541 (help, synopsis): Updated.
2542 (main): Add command line options `-k' and `-K enc' to select
2544 Add support for GROFF_ENCODING environment variable.
2546 * src/roff/groff/groff.man: Updated and revised.
2549 Start with autoconf support for preconv.
2551 * configure.ac: Call AC_C_BIGENDIAN.
2552 * configure, src/include/config.hin: Regenerated.
2554 2005-12-30 Werner LEMBERG <wl@gnu.org>
2556 New preprocessor `preconv' to convert input encodings to something
2557 groff can understand. Not yet integrated within groff. Proper
2558 autoconf stuff is missing too.
2560 Tomohiro Kubota has written a first draft of this program, and some
2561 ideas have been reused (while almost no code has been taken
2564 * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2567 * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2568 (GROFF_BIN_PATH): Add preconv.
2570 2005-12-12 Werner LEMBERG <wl@gnu.org>
2572 * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2573 In particular, don't use `\+' since it is a GNU sed extension.
2575 * configure: Regenerated.
2577 2005-12-09 Werner LEMBERG <wl@gnu.org>
2579 * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp.
2581 * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2585 * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2588 * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2591 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2592 %AGL_to_unicode): Removed. Replace it with a tag.
2594 * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2595 to replace tag with actual file contents.
2597 2005-12-08 Werner LEMBERG <wl@gnu.org>
2599 The change 2005-06-20 can indeed cause problems, so we follow the
2600 advice by using marks.
2602 * font/devps/prologue.ps (PBEGIN): Use `mark'.
2603 (PEND): Use `cleartomark'.
2605 2005-12-07 Michail Vidiassov <master@iaas.msu.ru>
2607 * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2608 glyphs which have kern values but aren't handled (glyph variants,
2611 2005-12-02 Werner LEMBERG <wl@gnu.org>
2613 * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2614 subfont index. Reported by Michail Vidiassov <master@iaas.msu.ru>.
2616 2005-11-28 Gaius Mulley <gaius@glam.ac.uk>
2618 * doc/Makefile.in: Separate rule for webpage.html so that extra
2619 command line options can be passed to grohtml.
2620 * doc/groff.css: Change all margins to 0%.
2621 * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2622 navigation is exploited. Also update webpage to contain new
2623 sections on licenses, mailing lists, cvs/ftp access, groff
2624 dependencies, and bug reports.
2625 * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2626 * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2628 2005-11-25 Gaius Mulley <gaius@glam.ac.uk>
2630 * src/devices/grohtml/post-html.cpp
2631 (html_printer::do_file_components): Add fputs calls to emit the
2632 head contents and shut down the head tag whenever a new file
2633 component is generated.
2635 2005-11-22 Gaius Mulley <gaius@glam.ac.uk>
2637 * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2638 call to flush_text to flush any outstanding html tags on the
2641 2005-11-18 Werner LEMBERG <wl@gnu.org>
2643 * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2644 Announce makeinfo version.
2645 * configure: Regenerated.
2647 2005-11-18 Mike Frysinger <vapier@gentoo.org>
2649 * Makefile.in: Declare proper dependencies between make targets.
2651 * doc/Makefile.in: Rename groff info page to `groff.info'.
2652 * doc/Makefile.sub: Likewise.
2653 * doc/groff.texinfo: Likewise.
2655 2005-11-17 Peter O'Gorman <mlists@thewrittenword.com>
2657 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2658 definition of __GETOPT_PREFIX to the beginning of file to ensure
2659 that it is defined even on platforms where getopt.h is already
2660 included by other header files.
2662 2005-11-10 Gaius Mulley <gaius@glam.ac.uk>
2664 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2665 Reset font to NULL to ensure that a font block is recreated during
2668 2005-11-04 Werner LEMBERG <wl@gnu.org>
2670 * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2671 * configure: Regenerated.
2673 2005-10-27 Werner LEMBERG <wl@gnu.org>
2675 * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2676 makeinfo 4.8 or newer is available.
2677 * configure.ac: Call GROFF_MAKEINFO.
2678 * configure: Regenerated.
2680 * Makefile.in (MAKEINFO): Use autoconf variable.
2681 (MDEFINES): Add MAKEINFO.
2683 * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2684 * doc/Makefile.sub (MAKEINFO): Remove.
2686 2005-10-26 Werner LEMBERG <wl@gnu.org>
2688 * REVISION: Set to 3.
2690 2005-10-17 Werner LEMBERG <wl@gnu.org>
2692 Mention $MANPAGER variable used with some `man' systems.
2694 * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2696 2005-09-13 Werner LEMBERG <wl@gnu.org>
2698 * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2700 2005-09-04 Werner LEMBERG <wl@gnu.org>
2702 Version 1.19.2 released
2703 =======================
2705 * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2707 * doc/webpage.ms: Updated.
2709 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2711 2005-09-04 Jörgen Grahn <jgrahn@algonet.se>
2713 * tmac/groff_ms.man: Document `PO' better.
2715 2005-09-03 Werner LEMBERG <wl@gnu.org>
2717 * NEWS: Document grotty changes.
2719 2005-09-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2721 Backward compatibility support for `man' program.
2723 * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2724 assignment, prior `.ll' request and then package defaults, in this
2725 specified order of decreasing priority.
2727 * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2728 altered `LL' register initialization priorities.
2730 2005-08-29 Gary W. Swearingen <garys@opusnet.com>
2732 * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2733 section should look like.
2735 2005-08-29 Werner LEMBERG <wl@gnu.org>
2737 * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2740 2005-08-27 Bernd Warken
2742 * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2745 2005-08-11 Bernd Warken
2747 * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
2749 2005-08-09 Bernd Warken
2751 * tmac/www.tmac (URL, MTO): Use bold series if color support is
2754 2005-08-02 Bernd Warken
2756 * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
2757 as argument to $(INSTALL_INFO). The latter isn't portable.
2758 Remove $(HTMLEXAMPLEFILES) too.
2760 * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
2762 Suppress warning messages and return always true.
2764 * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
2766 2005-07-02 Bernd Warken
2768 * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
2769 * man/groff_out.man: More markup and minor improvements.
2770 * src/roff/groff/groff.man: Minor improvements.
2772 2005-06-28 Werner LEMBERG <wl@gnu.org>
2774 * ChangeLog: Split off older entries into...
2775 * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
2778 2005-06-26 Bernd Warken
2780 * src/devices/xditview/gxditview.man: More minor fixes.
2782 2005-06-24 Werner LEMBERG <wl@gnu.org>
2784 * src/preproc/pic/troff.cpp (troff_output::set_fill,
2785 troff_output::set_color, troff_output::reset_color): Use .bcolor and
2786 .fcolor instead of \m and \M, respectively.
2788 2005-06-23 Bernd Warken
2790 * src/devices/xditview/gxditview.man: More minor fixes.
2791 * README: Formatting issues.
2792 Mention some problems with Debian.
2794 2005-06-23 Bernd Warken
2796 * src/devices/xditview/gxditview.man: Revised and improved.
2798 2005-06-22 Werner LEMBERG <wl@gnu.org>
2800 Another round in fixing getopt problems. Hopefully the last one!
2801 This time we use the getopt stuff from gnulib and define a prefix
2802 unconditionally so that there are no collisions with any other
2803 getopt implementations. This is a slight waste of space in case
2804 we already use a GNU getopt implementation, but on
2805 the other hand it really simplifies life.
2807 * src/include/getopt.h: Use gnulib version.
2809 * src/include/getopt_int.h: Use gnulib version.
2811 * src/include/groff-getopt.h: Removed. Obsolete now.
2813 * src/include/lib.h: Regarding getopt, don't handle any platform
2814 specially; just include getopt.h.
2815 (__GETOPT_PREFIX): Define (before getopt.h).
2817 * src/include/Makefile.sub (HDRS): Updated.
2819 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
2822 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
2825 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
2826 (__GETOPT_PREFIX): Define (before getopt.h).
2828 2005-06-21 Werner LEMBERG <wl@gnu.org>
2830 * src/include/lib.h: Provide a fix for Mac OS X to not include
2833 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
2835 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
2836 `bind' to define a procedure which contains `showpage' means that an
2837 invocation of `showpage' may execute wrongly (the exact effect
2838 depending on the interpreter). Not usually a problem except under
2839 transformations, such as combining pages.
2840 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
2841 of /PEND means that stack underflow will occur if the stack is
2842 deliberately non-empty before document inclusion. If included
2843 files are found to be generally badly behaved, we could replace the
2844 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
2845 never found this necessary).
2847 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
2849 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
2850 earlier to get correct error message.
2852 2005-06-16 Bernd Warken
2853 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
2855 2005-06-15 Werner LEMBERG <wl@gnu.org>
2857 Another try to update getopt files. This time we add a dummy
2858 gettext.h file to satisfy the dependency.
2860 * src/include/getopt.h, src/libs/libgroff/getopt.c,
2861 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2863 * src/include/getopt_int.h: New file (from GNU libc CVS).
2865 * src/include/gettext.h: Dummy file which just defines a gettext()
2868 * src/include/groff-getopt.h: Updated.
2870 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
2873 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
2874 `const' keywords in return value.
2876 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
2877 Remove redundant variable `old'.
2878 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
2880 * src/preproc/tbl/main.cpp (process_table): Remove redundant
2884 Fix more friend name injection problems since modern C++ compilers
2885 fail otherwise. We simply provide (global) declarations for all
2886 functions declared as friends. This is not really necessary but
2889 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
2890 peek_char, and get_location.
2892 * src/preproc/refer/ref.h: Provide declarations for
2893 compare_reference, same_reference, same_year, same_date,
2894 same_author_last_name, and same_author_name.
2896 * src/roff/troff/div.h: Provide declarations for do_divert and
2899 * src/roff/troff/env.h: Provide declarations for title_length,
2900 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
2901 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
2902 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
2903 margin_character, no_number, number_lines, leader_character,
2904 tab_character, hyphenate_request, no_hyphenate,
2905 hyphen_line_max_request, hyphenation_space_request,
2906 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
2907 line_tabs_request, widow_control_request, and do_divert.
2909 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
2911 * src/roff/troff/node.cpp: Provide declarations for class
2913 Provide declaration for make_tfont.
2915 2005-05-29 Werner LEMBERG <wl@gnu.org>
2917 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
2919 2005-05-28 Werner LEMBERG <wl@gnu.org>
2921 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
2922 redundant semicolons.
2924 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
2925 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
2926 Define `MLIB'. Some compilers need this for linking with libgroff.
2928 2005-05-27 Werner LEMBERG <wl@gnu.org>
2930 * MANIFEST, README, doc/webpage.ms: Updated.
2932 2005-05-26 Werner LEMBERG <wl@gnu.org>
2934 * All affected files: Update postal address of FSF.
2936 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
2939 * README: More fixes.
2941 * README.CVS: Removed. Its contents is now part of the README file.
2943 2005-05-21 Werner LEMBERG <wl@gnu.org>
2945 * README: Updated. Based on a patch from Bernd Warken.
2947 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2949 Miscellaneous script portability enhancements.
2951 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
2952 generated conftest.sh script, conforming to portability
2953 recommendation in autoconf docs.
2954 * configure: Likewise, for code generated by GROFF_CSH_HACK.
2955 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
2956 to portability recommendation in autoconf docs.
2957 * contrib/grap2graph/grap2graph.sh: Likewise.
2958 * contrib/pic2graph/pic2graph.sh: Likewise.
2959 * font/devps/generate/afmname: Likewise.
2960 * src/devices/xditview/ad2c: Likewise.
2961 * src/preproc/eqn/neqn.sh: Likewise.
2962 * src/roff/grog/grog.pl: Likewise.
2963 * src/roff/grog/grog.sh: Likewise.
2964 * src/roff/nroff/nroff.sh: Likewise.
2965 * PROBLEMS: Likewise, in embedded script examples.
2967 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2969 Improve portability of `pdfroff' shell script.
2971 * arch/misc/shdeps.sh: Add space in shebang, conforming to
2972 portability guidelines in `autoconf' docs.
2973 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
2974 initialization code. Used by contrib/pdfmark/pdfroff.sh's
2975 `searchpath' function.
2977 2005-05-14 Werner LEMBERG <wl@gnu.org>
2979 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
2980 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
2981 needed for newer ImageMagick versions.
2983 2005-05-07 Werner LEMBERG <wl@gnu.org>
2985 * src/preproc/refer/refer.man: Many small typographic fixes.
2987 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
2989 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
2990 Use `char *' cast for a_delete.
2992 2005-05-03 Werner LEMBERG <wl@gnu.org>
2994 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
2995 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
2997 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
2999 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
3000 `a_delete' for `const char *'.
3002 2005-05-03 Werner LEMBERG <wl@gnu.org>
3004 * src/devices/grohtml/post-html.cpp,
3005 src/devices/grohtml/html-table.cpp,
3006 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
3007 Replace malloc/free with new/delete/a_delete.
3009 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
3010 are prohibited with ANSI C++.
3011 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
3012 function has a variable number of arguments).
3014 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
3015 Simplify function and update all callers.
3017 2005-05-02 Werner LEMBERG <wl@gnu.org>
3019 Undo getopt changes from 2005-04-30. We don't want a dependency
3022 * src/include/getopt_int.h: Removed.
3024 * src/include/getopt.h, src/include/groff-getopt.h,
3025 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
3026 src/libs/libgroff/getopt1.c: Revert to previous version.
3029 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
3031 * src/include/posix.h (F_OK): Define conditionally.
3033 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
3034 different variable name in second `for' loop to avoid MSVC compiler
3037 2005-04-30 Werner LEMBERG <wl@gnu.org>
3039 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
3041 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
3042 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
3043 * configure, src/include/config.hin: Regenerated.
3045 * PROBLEMS: Updated.
3048 Update getopt files.
3050 * src/include/getopt.h, src/libs/libgroff/getopt.c,
3051 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
3053 * src/include/getopt_int.h: New file (from GNU libc CVS).
3055 * src/include/groff-getopt.h: Updated.
3057 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
3060 * font/devutf8/NOTES: Updated.
3062 2005-04-28 Werner LEMBERG <wl@gnu.org>
3064 Bug fix for Win32 relocatable code. Based on a patch from Keith
3067 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
3070 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
3071 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
3073 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3075 Correct `gnu.eps' handling for build from distribution tarball, with
3076 separate source and build directories.
3078 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
3079 grnexmpl.g, groff.css and gnu.eps from source to build directory;
3080 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
3081 (prepare_examples): Make it depend on examples.stamp.
3082 (CLEANADD): Add examples.stamp.
3084 2005-04-27 Werner LEMBERG <wl@gnu.org>
3088 position: `(' position `)'
3092 * src/preproc/pic/pic.y (position, position_not_place): Handle
3093 additional parentheses.
3095 * doc/pic.ms: Updated.
3097 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
3099 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
3101 2005-04-18 Werner LEMBERG <wl@gnu.org>
3103 * src/roff/groff/pipeline.c: Don't include ctype.h.
3105 2005-04-13 Werner LEMBERG <wl@gnu.org>
3107 * src/roff/nroff/nroff.man: Document option `-M'.
3109 2005-04-13 Bruce Lilly <blilly@erols.com>
3111 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
3113 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
3114 Werner LEMBERG <wl@gnu.org>
3116 Add binary relocation support for Windows platforms.
3118 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
3120 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
3122 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
3123 (search_path::search_path, search_path::open_file_cautious): Use
3126 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
3127 src/include/Makefile.sub (HDRS): Updated.
3129 2005-04-01 Werner LEMBERG <wl@gnu.org>
3131 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
3134 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
3136 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
3137 lib.h already does it.
3139 * src/libs/libgroff/maxpathname.cpp: New file, defining
3142 * src/include/lib.h: Add prototype for path_name_max.
3144 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
3146 * src/include/nonposix.h (PATH_EXT): New macro.
3148 2005-03-28 Werner LEMBERG <wl@gnu.org>
3150 Add support for double- and zero-width characters in grotty.
3152 * src/devices/grotty/tty.cpp (glyph): Add width.
3153 (tty_printer::make_underline, tty_printer::make_bold,
3154 tty_printer::add_character): Add parameter to pass character width.
3156 (tty_printer::end_page): Increase hpos by actual character width.
3158 * font/devutf8/R.proto: Specify zero width for non-spacing
3161 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
3163 * Makefile.comm (extraclean): Remove more junk files.
3165 2005-03-25 Werner LEMBERG <wl@gnu.org>
3167 * configure.ac: Undo change from 2005-03-24.
3168 * configure: Regenerated.
3170 2005-03-24 Werner LEMBERG <wl@gnu.org>
3172 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
3173 (dist): Search Makefile while descending into $(EXTRADIRS).
3175 * doc/Makefile.in (.PHONY): Add.
3176 (clean): Don't remove *.png and *.eps.
3178 (realclean): Remove *.png and *.eps.
3179 (extraclean): Depend on distclean.
3181 * configure.ac: Add copyright.
3182 Handle contrib/pdfmark/Makefile.
3184 * configure: Regenerated.
3186 2005-03-18 Larry Kollar <kollar@alltel.net>
3188 Add numbered and definition lists to www.tmac.
3190 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
3191 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
3192 auxiliary string registers.
3193 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
3194 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
3195 (www-level): Removed.
3196 (www-level1, www-level2, www-level3): Initialize to empty.
3197 (www-level0, www-level4, www-level5, www-level6, www-level7,
3198 www-level8, www-level9): New string registers.
3199 (www-push-li, www-pop-li): New macros.
3200 (www-push-level, www-pop-level): Renamed to...
3201 (www-push-ul-level, www-pop-ul-level): This.
3203 (www-push-ol-level, www-pop-ol-level): New macros.
3204 (ULS, ULE): Updated.
3205 (OLS, OLE, DLS, DLE): New user macros.
3206 (LI): Removed. It is aliased to one of...
3207 (www-li-ul, www-li-ol, www-li-dl): New macros.
3209 * tmac/groff_www.man: Document new macros.
3213 2005-03-18 Werner LEMBERG <wl@gnu.org>
3215 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
3216 doc-operating-system-NetBSD-2.0.2): New strings.
3218 * tmac/groff_mdoc.man: Updated.
3220 2005-03-17 Werner LEMBERG <wl@gnu.org>
3222 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
3224 2005-03-17 Werner LEMBERG <wl@gnu.org>
3226 * src/libs/libgroff/hypot.c: Renamed to...
3227 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
3229 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
3231 * src/include/lib.h: Updated.
3233 2005-03-16 Werner LEMBERG <wl@gnu.org>
3235 Add workaround for broken hypot() on Interix.
3237 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
3239 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
3240 (CSRCS): Add `hypot.c'.
3242 * src/include/lib.h: Declare `groff_hypot'.
3244 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
3247 * src/preproc/pic/pic.h: Don't declare `hypot'.
3249 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
3251 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
3253 * src/devices/grohtml/post-html.cpp
3254 (html_printer::lookahead_for_tables): End .ce properly to avoid a
3257 2005-03-15 Werner LEMBERG <wl@gnu.org>
3259 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
3261 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
3263 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
3265 2005-03-14 Werner LEMBERG <wl@gnu.org>
3267 Add Cyrillic support to devutf8 and devhtml.
3269 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
3271 * tmac/unicode.tmac: New file.
3273 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
3275 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
3279 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
3281 * src/libs/libdriver/printer.cpp (check_for_output_error): New
3282 function. It has been introduced to catch peculiar error contexts
3283 on MS-Windows platforms.
3285 2005-02-28 Werner LEMBERG <wl@gnu.org>
3287 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
3290 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
3292 * configure: Regenerated.
3296 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3298 Integrate `pdfmark' into normal groff build system;
3299 install macro `pdfmark' packages, build and install `pdfroff',
3300 and PDF format documentation.
3302 * Makefile.comm: Add PDFDOCDIR.
3304 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
3305 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
3306 (unstall_dirs): Add pdfdocdir.
3308 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
3309 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
3310 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
3311 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
3312 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
3313 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
3315 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
3316 use of GROFF_AWK_PREFS.
3317 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
3318 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
3320 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
3321 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
3322 also by modified GROFF_HTML_PROGRAMS).
3324 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
3326 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
3328 (html_text::done_para): Unset `start_space'.
3329 (html_text::remove_para_align): Call `retrieve_para_space' for the
3332 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
3334 (html_printer::do_check_center): Emit vertical space if necessary.
3336 * src/roff/troff/env.cpp (environment_switch): Preserve
3337 `seen_space', `seen_eol', and `suppress_next_eol' while switching
3340 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
3343 2005-02-20 Werner LEMBERG <wl@gnu.org>
3345 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
3348 2005-02-17 Werner LEMBERG <wl@gnu.org>
3350 * doc/pic.ms, man/groff.man: Fix typos.
3352 * doc/groff.texinfo: Fix typos.
3353 (\LEmacro): Get proper mathematical spacing.
3355 2005-02-16 Werner LEMBERG <wl@gnu.org>
3357 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
3358 * configure: Regenerated with autoconf 2.59b.
3360 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
3362 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
3363 html_printer::start_font): Fix handling of preformatted text.
3365 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
3367 These patches modify the indentation implementation to use `<p
3368 style=margin-left: n%>'. Many thanks to Peter and Larry for
3369 suggesting this solution. Grohtml only uses tables for `.IP' and
3370 related tags when the first operand has a short width.
3372 Similarly, they modify all vertical space code. By default, grohtml
3373 sets up a style sheet which uses no vertical space between `table',
3374 `pre', and `p' tags. It forces spaces when it needs them using
3375 `style="margin-top: 1em"'.
3377 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
3378 (html_table::emit_table_header, html_table::emit_new_row):
3380 (html_table::set_space): New function.
3381 (html_indent::html_indent): Don't set `is_used'.
3382 (html_indent::begin): Rewritten.
3383 (html_indent::end): Remove code in function.
3385 * src/devices/grohtml/html-table.h: Updated.
3386 (html_table): Make `out' public.
3388 * src/devices/grohtml/html-text.cpp (html_text::html_text):
3389 Initialize `start_space' with FALSE.
3390 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
3391 (html_text::issue_tag): Add argument to handle space style.
3392 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
3393 (html_text::flush_text): Don't set `start_space'.
3394 (html_text::push_para): Don't set `p->really_issued'.
3395 (html_text::do_emittext): Updated.
3396 (html_text::do_para): Add paremeter to handle space.
3398 (html_text::retrieve_para_space): New function.
3400 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
3401 (tag_definition): Remove `really_issued'.
3402 (html_text): Updated.
3404 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
3405 `current_column' and `row_space'.
3407 (html_printer::emit_raw, html_printer::write_header,
3408 html_printer::do_indent, html_printer::do_check_center,
3409 html_printer::do_tab_ts): Handle vertical space.
3410 (html_printer:do_tab_te, html_printer::do_end_para): Call
3411 `remove_para_space'.
3412 (html_printer::do_col): Rewritten.
3413 (html_printer::flush_globs): Remove debugging code.
3414 (html_printer::is_line_start): New function.
3415 (html_printer::start_font): Use `is_line_start'.
3416 (html_printer::writeHeadMetaStyle): New function.
3417 (html_printer::do_file_components, html_printer::~html_printer):
3418 Call `writeHeadMetaStyle'.
3420 * tmac/www.tmac (www-handle-percent): New macro.
3421 (MPIMG): Handle percent values for width and height parameters.
3424 * tmac/groff_www.man: Updated.
3426 2005-02-14 Werner LEMBERG <wl@gnu.org>
3428 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
3429 $psname and $italic_angle.
3430 Immediately restart file input loops if `split' returns an empty
3433 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
3434 Werner LEMBERG <wl@gnu.org>
3436 Update afmtodit to better support Unicode (Michail).
3437 Update afmtodit to use Perl 5 syntax (Werner).
3439 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
3441 Decorate variables with `my' where necessary.
3442 Use `defined' where necessary to avoid warnings.
3443 Don't use `do' for subroutine calls.
3444 Other minor syntax updates.
3445 Check for both `uXXXX[X[X]]' and `uniXXXX'.
3446 Handle glyph variants properly.
3447 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3450 * src/utils/afmtodit/afmtodit.man: Updated.
3452 2005-02-13 Werner LEMBERG <wl@gnu.org>
3454 Make groff.texinfo work with texinfo 4.8.
3456 * doc/groff.texinfo (@Var): Use @r and @slanted.
3457 (@defdummy, @Def*): Use @c to avoid empty lines.
3458 (\angles): Replaced with...
3459 (\Langlemacro, \Ranglemacro): New TeX macros.
3460 (@Langlemacro, @Ranglemacro): New variables defined with @set.
3461 (@angles): Use @Langlemacro and @Ranglemacro.
3462 (\LE): Replaced with...
3463 (\LEmacro): New TeX macro.
3464 (@LEmacro): New variable defined with @set.
3465 (@LE): Use @LEmacro.
3466 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3467 variables defined with @set.
3468 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3469 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3472 Other minor updates.
3474 * doc/texinfo.tex: Update to texinfo version 4.8.
3476 * README.CVS: Updated.
3478 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3480 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3481 and `FAM' registers.
3483 2005-02-05 Werner LEMBERG <wl@gnu.org>
3485 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3486 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3489 2005-02-01 Werner LEMBERG <wl@gnu.org>
3491 * src/roff/groff/groff.man: Add information about paper size.
3493 2005-01-25 Werner LEMBERG <wl@gnu.org>
3495 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
3498 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
3500 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
3502 (Re): Emit a warning if called without `.Rs'.
3503 (doc-finish-reference): Use parameter for decreasing
3504 `doc-reference-count'.
3505 (doc-print-reference): Pass specific count parameters to
3506 `doc-finish-reference'.
3508 2005-01-21 Werner LEMBERG <wl@gnu.org>
3510 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3511 Reset pointers to zero after deallocation. This fixes a crash
3512 if a driver is called with multiple input files. Reported by
3513 Ken Chilton <ken@chiltonfamily.org>.
3515 * src/devices/grops/grops.man: Add more info on DSC.
3517 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3519 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3522 2005-01-17 Werner LEMBERG <wl@gnu.org>
3524 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3525 against division by zero.
3527 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
3529 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3531 2004-12-19 Werner LEMBERG <wl@gnu.org>
3533 * install-sh: New version; taken from texinfo CVS.
3535 2004-12-17 Werner LEMBERG <wl@gnu.org>
3537 * tmac/devtag.tmac: Protect against loading twice.
3538 Protect agains compatibility mode.
3539 * tmac/www.tmac: Protect against loading twice.
3540 Load `devtag.tmac' before switching off compatibility mode.
3541 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3543 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
3545 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3546 * configure: Updated.
3548 2004-12-15 Thomas Klausner <wiz@netbsd.org>
3550 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3552 2004-12-15 Werner LEMBERG <wl@gnu.org>
3554 Make `test-groff' work again -- previously, wrong paths have been
3555 used. Additionally, it can now be called from anywhere.
3557 * test-groff.in: Don't test for groff binary. This is no longer
3558 necessary since the proper paths are determined by `configure'.
3559 (EXEEXT): Removed. No longer used.
3560 (srcdir, builddir): Use values provided by the configure script.
3561 (XENVIRONMENT): Updated.
3565 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
3567 Make .tag and .taga work for all devices (but only grohtml actually
3570 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3571 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3572 html_printer::handle_assertion): Don't use hard-coded string
3574 (html_printer::lookahead_for_table): Reset `tbl' properly if
3576 (html_printer::devtag): New function, handling `devtag'.
3577 (html_printer::special): Don't handle `html-tag'.
3579 * src/include/printer.h, src/libs/libdriver/printer.cpp
3580 (printer::devtag): New virtual function.
3582 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3585 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3586 src/roff/troff/node.cpp: s/html-tag/devtag/.
3588 * src/roff/troff/input.cpp (tag, taga): Always call
3591 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3592 macros instead of HTML-TAG*.
3594 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3596 * tmac/www.tmac: Load devtag.tmac.
3597 Replace HTML-TAG* macros with DEVTAG* macros.
3598 (HTML, HTML-NS): Changed definitions.
3600 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3602 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3604 2004-12-10 Werner LEMBERG <wl@gnu.org>
3606 Import Mike's `gdiffmk' package.
3608 * contrib/gdiffmk/*: New files.
3609 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3612 2004-12-08 Werner LEMBERG <wl@gnu.org>
3614 Import Keith's `pdfmark' package. Integration is very preliminary.
3616 * contrib/pdfmark/*: New files.
3617 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3620 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
3622 Fix a bug with title handling in HTML.
3624 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3625 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3627 (html_printer::handle_tag_within_title): New function.
3628 (html_printer::do_title): Use it.
3630 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3631 (cov*tl-au-print): Emit `.eo.tl' tag.
3633 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
3635 * man/groff_char.man: Minor imrovements.
3637 2004-12-04 Werner LEMBERG <wl@gnu.org>
3639 * src/preproc/eqn/eqn.man: Revised.
3641 2004-11-25 Werner LEMBERG <wl@gnu.org>
3643 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3647 Remove X_NOT_STDC_ENV conditional.
3648 (Version_string, program_name): New global variables.
3649 (groff_flag): Removed.
3651 (usage): Take a stream as argument.
3654 (main): Add `long_options' array for `--help' and `--version'.
3655 Make `-g' a dummy option.
3656 Handle `-v' and unknown options.
3657 Remove unused `position' variable.
3659 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3660 (XLIBS): Add LIBGROFF.
3662 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3665 * src/devices/xditview/Dvi.c (default_font_map): Split into three
3666 parts to avoid compiler warning.
3667 (resources): Don't initialize with `default_font_map'.
3668 (ClassInitialize): Initialize first element of `resources'.
3670 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3673 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3674 src/utils/pfbtops/pfbtops.man: Revised, updated.
3676 * configure.ac: Generate src/utils/xtotroff/Makefile.
3677 * configure: Regenerated.
3679 2004-11-24 Werner LEMBERG <wl@gnu.org>
3681 First fixes to get produce HTML.
3683 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3686 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3687 (HR, LI): Use `HTML</p>', not `HTML'.
3689 * doc/webpage.ms: Minor updates.
3691 2004-11-23 Larry Kollar <kollar@alltel.net>
3693 Add option -S grohtml to determine the file split level.
3695 * src/devices/grohtml/post-html.cpp (split_level): New global
3697 (html_header::determine_header_level): Use split_level.
3698 (main): Handle `-S' command line option.
3701 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3703 * src/devices/grohtml/grohtml.man: Document it.
3706 * NEWS: Document it.
3708 2004-11-23 Y T <doarhop@hotmail.com>
3710 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3711 the volume and number refer entries.
3713 2004-11-22 Werner LEMBERG <wl@gnu.org>
3715 * src/devices/grohtml/html-table.cpp
3716 (html_table::emit_table_header): Don't emit `cols' attribute which
3717 doesn't exist in HTML 4.0 and is thus invalid.
3719 * NEWS: More minor fixes and updates.
3721 2004-11-18 Werner LEMBERG <wl@gnu.org>
3723 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3724 (HTML</p>): Minor clean-up.
3726 * tmac/groff_www.man: Updated.
3728 * src/devices/grohtml/grohtml.man: Revised and updated.
3732 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
3734 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3735 Fix space insertion.
3736 (html_printer::do_links): Fix rules generation around automatic
3739 * tmac/www.tmac (LK): Use HTML-TAG-NS.
3741 No longer emit empty line for non-HTML devices.
3743 2004-11-17 Werner LEMBERG <wl@gnu.org>
3745 * doc/Makefile.in (prepare_examples, webpage.html): Handle
3748 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
3749 prepare_examples, webpage.html): Handle `groff.css'.
3751 2004-11-15 Werner LEMBERG <wl@gnu.org>
3753 * NEWS, README, doc/webpage.ms: Updated.
3755 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
3757 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
3759 * src/include/printer.h (printer): Remove virtual function
3761 Update all source files.
3763 * src/devices/grohtml/post-html.cpp (html_printer): New member
3764 function `round_width'.
3766 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3768 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
3769 column key letter suffix.
3771 2004-10-14 Werner LEMBERG <wl@gnu.org>
3773 * Makefile.in (check): Depend on `site.exp' and `docheck'.
3774 (docheck): Run dejagnu's `runtest' if it exists.
3775 (site.exp): Create dejagnu configuration file.
3777 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
3779 2004-10-13 Werner LEMBERG <wl@gnu.org>
3781 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
3782 src/devices/grohtml/post-html.cpp (make_val,
3783 html_printer::handle_state_assertion): Fix compiler warnings.
3785 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
3786 (diversion::diversion): Fix order of initializers.
3788 * src/roff/troff/div.h: Don't include `mtsm.h'.
3790 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
3791 (environment::environment): Fix order of initializers.
3792 (environment::make_tag, environment::construct_format_state): Fix
3795 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
3796 (input_iterator::input_iterator, macro::macro): Fix order of
3799 * src/roff/troff/mtsm.cpp: Include only necessary header files.
3800 (state_set::add, state_set::val): Fix compiler warnings.
3802 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
3803 (bool_value_state, int_value_state, units_value_state,
3804 string_value_state): Remove comma after last element which causes
3805 an error with g++ 3.3.3.
3807 * src/roff/troff/node.cpp: Include `stringclass.h'.
3808 (hline_node::hline_node, vline_node::vline_node,
3809 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
3811 (zero_width_node::zero_width_node): Fix order of initializers.
3813 * src/roff/troff/node.h: Don't include `mtsm.h'.
3814 (hmotion_node): Fix compiler warnings.
3816 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
3818 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
3820 * doc/groff.css: New file.
3822 * doc/webpage.ms: Use `groff.css'.
3825 * tmac/an-old.tmac (need_eo_h): New number register.
3826 (TH): Emit `.eo.tl' tag after title.
3827 (SH): Set `need_eo_h'.
3828 (an-trap): Handle `need_eo_h'.
3829 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
3831 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
3832 (TL): Always start diversion.
3834 (@AI): Always call `par@reset'.
3835 (@AB): Update code for -Thtml.
3836 (cov*tl-au-print): Handle -Thtml.
3837 (par@reset): Handle `need_eo_tl', `need_eo_h'.
3839 (@IT-html): Removed.
3840 (@SH): Set `need_eo_h' for -Thtml.
3841 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
3843 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
3844 Set `need_eo_h' for -Thtml.
3845 (@EQ, @EN): Don't handle -Thtml specially.
3846 (par@load-init): Don't handle -Thtml specially.
3848 * tmac/www.tmac (www:paraspace): New macro.
3849 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
3850 (HTML</p>, HTML-TAG-NEXT): New macros.
3851 (HnE): Emit tag `.eo.h' instead of break.
3852 (HR): s/HTML-NS/HTML/.
3853 (www-end-nowhere): End diversion only if `www-html' not set.
3855 (ULS, ULE): s|HTML|HTML</p>|.
3856 (LI): Call `www:paraspace'.
3859 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
3861 * src/roff/troff/request.h (macro): Make `p' public.
3862 New variable `is_a_diversion'.
3863 New member function `is_diversion'.
3866 * src/devices/grohtml/html.h (simple_output): New member function
3869 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
3870 computation of `total'.
3871 (tabs::check_init): New function.
3872 (html_table::emit_table_header): Emit style data.
3873 (html_table::insert_column): Improved.
3875 * src/devices/grohtml/html-table.h: Updated.
3877 * src/devices/grohtml/html-text.cpp (html_text::html_text):
3878 Initialize `start_space' with TRUE.
3879 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
3881 (html_text::flush_text): Set `start_space' flag.
3882 (html_text::uses_indent, html_text::remove_para_space,
3883 html_text::get_alignment): New functions.
3884 (html_text::push_para): Updated.
3885 (html_text::do_para): Check for empty argument.
3886 Don't set `space_emitted'.
3887 (html_text::do_space, html_text::emit_space): Updated.
3889 * src/devices/grohtml/html-text.h (tag_definition): New variable
3891 (html_text): New member function `uses_indent', `remove_para_space',
3894 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
3896 (simple_output:nl): Always emit `\n'.
3898 * src/devices/grohtml/post-html.cpp: Include `string.h'.
3899 (BASE_POINT_SIZE): Removed.
3900 (base_point_size, head_info): New global variables.
3901 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
3903 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
3905 (page::add_and_encode): Pass additional parameter for tag flag.
3906 (assert_pos): New structure.
3907 (assert_state): New class.
3908 (html_printer): Remove `indentation', `prev_indent'.
3909 Add variables `troff_indent', `device_indent', `temp_indent'.
3910 Add variables `seen_indent', `next_indent', `seen_pageoffset',
3911 `next_pageoffset', `seen_linelenght', `next_linelength',
3912 `seen_center', `next_center', `seen_space', `seen_break', `as'.
3913 Add member functions `do_check_center', `do_space', `do_head',
3914 `get_troff_indent', `restore_troff_indent', `handle_assertion',
3915 `handle_state_assertion', `do_end_para', `set_char_and_width'.
3916 Change argument to `do_fill' to `char *'.
3918 (html_printer::emit_raw): Call `shutdown_table'.
3920 (html_printer::do_center): Simplified.
3921 (html_printer::do_title): Improved.
3922 (html_printer::write_header): Emit one more newline.
3924 (html_printer::do_heading, html_printer::do_indent,
3925 html_printer::do_eol, html_printer::do_tab_ts,
3926 html_printer::do_tab, html_printer::do_tab0,
3927 html_printer::calc_po_in, html_printer::next_horiz_pos,
3928 html_printer::remove_courier_tabs,
3929 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
3931 (html_printer::do_linelength, html_printer::do_pageoffset,
3932 html_printer::do_indentation, html_printer::do_tempindent,
3933 html_printer::do_tab_te): Simplified.
3934 (html_printer::do_pointsize): Check whether point size is really
3935 associated a `.tl' tag.
3936 (html_printer::do_break): Rewritten.
3937 (html_printer::troff_tag): Improved.
3938 (html_printer::flush_globs): Updated.
3939 (html_printer::lookahead_for_tables): Handle `is_br'.
3941 (html_printer::set_char): Check `sbuf_style.f'.
3942 (html_printer::write_navigation): Use string comparison.
3943 (html_printer::~html_printer): Emit `head_info'.
3944 (html_printer::special): Rewritten.
3945 (get_str, make_val): New functions.
3946 (main): New option `s' to set the base point size.
3948 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
3950 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
3952 * src/roff/troff/node.cpp: New extern `debug_state'.
3953 Include `stringclass.h' and `mtsm.h'.
3954 Implement new classes and class members from `node.h'.
3955 (real_output_file): Make `fp' public.
3956 (troff_output_file): New variables `cur_div_level' and `tag_list'.
3957 Update constructors.
3958 (troff_output_file::really_print_line): Check whether we should push
3959 the current troff state and use the state at the start of the
3960 invocation of this diversion.
3961 (troff_output_file::add_to_tag_list): New member function.
3962 (node::add_char): Handle `glyph_comp_np'.
3964 * src/roff/troff/node.h: Include `mtsm.h'.
3965 (node): New variables `state', `push_state', `div_nest_level',
3966 `is_special'. Update constructors, all descendants.
3967 Pass additional argument to `add_char' member function.
3968 New virtual member functions `is_tag', `debug_node',
3969 `debug_node_list'. Update all descendants.
3970 (tag_node): New class for handling tags.
3971 (output_file): Add variable `state'.
3973 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
3975 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
3976 providing a minimal troff state machine to emit meta tags for the
3977 post-grohtml device driver.
3979 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
3982 2004-10-09 Werner LEMBERG <wl@gnu.org>
3984 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
3986 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
3988 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
3990 * src/roff/troff/div.h: Include `mtsm.h'.
3991 (diversion): New variables `any_chars_added', `needs_push',
3992 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
3993 `saved_suppress_next_eol', `modified_tag'.
3994 New virtual member function `is_diversion'. Update all descendants.
3996 * src/roff/troff/div.cpp (diversion::diversion,
3997 macro_diversion::macro_diversion): Updated.
3998 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
3999 `suppress_next_eol'.
4000 (top_level_diversion::space): Handle `curenv->seen_space'.
4001 (page_offset): Update tag handling.
4002 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
4004 * src/roff/troff/env.h (environment): Make `tabs' public.
4005 Remove `ignore_next_eol', `emitted_node'.
4006 Update `output_line', `output'.
4007 New variables `seen_space', `seen_eol', `suppress_next_eol',
4009 New member functions `construct_state', `make_tag',
4010 `construct_format_state, `construct_new_line_state,
4012 Remove `add_html_tag', `make_html_tag'.
4014 * src/roff/troff/env.cpp: New externs `suppress_push',
4015 `get_diversion_state', `global_diverted_space'.
4016 (pending_output_line): New variable `was_centered'.
4017 Update constructor and all callers.
4018 (pending_output_line::output): Call `curenv->construct_format_state'.
4019 (environment::environment, environment::copy): Updated.
4020 (environment::output): Handle `was_centered'.
4021 (environment::add_char): Handle construct and diversion state.
4022 (environment::add_node): Handle construct state.
4023 (environment::newline): Handle `was_centered'.
4024 (environment::output_line): Updated.
4025 (environment::possibly_break_line): Updated.
4026 Update tag handling.
4027 (environment::add_html_tag): Replaced with...
4028 (environment::make_tag): New function.
4029 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
4030 (environment::dump_troff_state): New debugging function.
4031 (environment::construct_state, environment::construct_format_state,
4032 environment::construct_new_line_state): New functions.
4033 (environment::do_break): Updated.
4034 Handle `global_diverted_space'.
4035 (environment::handle_tag): Update tag handling.
4036 (point_size, fill, do_break_request): Don't call `add_html_tag'.
4037 (no_fill): Don't call `add_html_tag'.
4038 Set `suppress_next_eol'.
4039 (center, right_justify, line_length, indent, temporary_indent,
4041 Update tag handling.
4043 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
4044 (input_iterator): New variables `is_diversion', `diversion_state'.
4045 Update constructors.
4046 (input_stack): New member functions `get_div_level',
4047 `get_diversion_state', `check_end_diversion'.
4048 New variables `div_level', `diversion_state'. Initialize them.
4049 (suppress_push, global_diverted_space): New global variables.
4050 (input_stack::finish_get, input_stack::finish_peek,
4051 input_stack::remove_boundary, input_stack::end_file,
4052 input_stack::clear, input_stack::pop_macro): Call
4053 `check_end_diversion'.
4054 (input_stack::push): Handle `div_level' and `diversion_state'.
4055 (get_diversion_state): New function.
4056 (diverted_space_node::reread): Handle `global_diverted_space'.
4057 (macro::macro): Update constructors.
4058 (macro::is_diversion): New function.
4059 (macro::operator=): Set `is_a_diversion'.
4060 (string_iterator): New member function `is_diversion'.
4061 (string_iterator::string_iterator): Update constructors.
4062 (string_iterator::fill): Set `div_nest_level'.
4063 (macro_iterator): New member function `is_diversion'.
4064 (do_if_request): Handle `suppress_push'.
4065 (tag, taga): New functions.
4066 (init_input_requests): Add `tag' and `taga' requests.
4068 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
4070 * src/include/font.h (font): New member function
4071 `get_image_generator'.
4072 New variables `unscaled_charwidths' and `image_generator'.
4074 * src/libs/libgroff/font.cpp (font::get_width): Always return the
4075 character's unscaled width if `font::unscaled_charwidths' is set.
4076 (font::get_image_generator): New function.
4077 (font::load_desc): Check the `unscaled_charwidths' and
4078 `image_generator' keywords.
4080 * src/libs/libgroff/fontfile.cpp: Initialize
4081 `font::unscaled_charwidths' and `font::image_generator'.
4083 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
4085 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
4087 * man/groff_font.man: Document `unscaled_charwidths' and
4090 * src/preproc/html/pre-html.cpp: Include `device.h'.
4091 (image_gen): New global variable.
4092 (imageList::createPage): Use `image_gen'.
4093 (main): Use `image_generator' keyword.
4095 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4097 * tmac/html.tmac: Handle \[sqrtex].
4099 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4101 * src/include/printer.h (printer): New virtual method `round_width'.
4103 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
4104 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
4105 src/devices/grotty/tty.cpp (printer::round_width): New function
4108 * src/devices/grohtml/post-html.cpp (printer::round_width): New
4110 (html_printer::set_numbered_char): Use it.
4112 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
4114 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
4116 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
4118 * configure: Regenerated.
4120 * Makefile.in (GHOSTSCRIPT): New variable.
4121 (MDEFINES): Add GHOSTSCRIPT.
4123 2004-10-03 Werner LEMBERG <wl@gnu.org>
4125 * INSTALL.gen: Updated (taken from texinfo CVS).
4127 2004-09-28 Werner LEMBERG <wl@gnu.org>
4131 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4133 * tmac/groff_www.man: Revised and updated.
4135 2004-09-26 Werner LEMBERG <wl@gnu.org>
4137 Fix \$@ and \$* to handle any number of arguments.
4139 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
4142 * src/roff/troff/input.cpp (input_iterator::internal_level):
4144 (input_stack): New member functions `increase_level' and
4146 (input_stack::get_level): Don't use `internal_level'.
4147 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
4148 (end_quote_iterator): Completely removed.
4149 (interpolate_arg): Build string for \$@ and \$* which is then
4150 pushed onto the input stack.
4152 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
4154 * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
4155 Registers): Document changes from 2004-09-19.
4157 2004-09-23 Werner LEMBERG <wl@gnu.org>
4159 * tmac/an-old.tmac (ne): Using default scaling operator.
4161 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4163 This change implements the following features:
4166 New numeric register: Defines number of lines following LP, PP,
4167 QP, IP or XP, which must be kept together, before any automatic
4168 page break. If insufficient space remains on the current page, a
4169 page break is forced before the new paragraph begins.
4172 New numeric register: Sets number of lines of following paragraph
4173 which must be kept with a heading, defined by NH or SH, before any
4174 automatic page break. If insufficient space remains on the
4175 current page, a page break is forced before the heading.
4178 (Thanks to Joerg van den Hoff, for this idea).
4180 New numeric register: Sets the first level of heading (set with
4181 NH), which will keep the same point size as body text; e.g. if
4182 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
4183 point size specified by \n[PS], but .NH 2 and .NH 1 will have
4184 progressively larger point sizes, determined by \n[PSINCR] (see
4188 New numeric register: Sets the point size increment for each level
4189 of heading, (set with NH), below the threshold level set by
4190 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
4191 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
4192 and all other levels will remain at 10pt, (because \n[PS] = 10).
4195 Existing macro now accepts a numeric argument, to make heading
4196 size match that of NH with same argument value, when the
4197 GROWPS/PSINCR feature is enabled.
4200 New string, set by NH macro, replaces the existing (undocumented)
4201 use of SN, to represent the assigned section number.
4204 New string, set by NH macro, represents the assigned section
4205 number, but omits the terminal period (periods at intermediate
4206 levels are retained).
4209 String set by NH macro, originally undocumented, now implemented
4210 as an alias for SN-DOT (which reproduces original behaviour).
4212 * tmac/s.tmac (PORPHANS): New register.
4213 (par*start): Use it.
4214 (HORPHANS, GROWPS, PSINCR): New registers.
4215 (SH-NO-TAG, @SH): Use them.
4218 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4220 * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
4221 Document the deletion of `Ds' and `De' macros.
4223 2004-09-10 Werner LEMBERG <wl@gnu.org>
4225 In tbl, handle \a as an interpreted leader character if in
4228 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
4229 LEADER_CHAR): New macros.
4230 (compatible_flag): New declaration.
4232 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
4233 LEADER_3, and LEADER_4 to `state'.
4234 (table_input::get): Handle `\a'.
4236 * src/preproc/tbl/table.cpp (PREFIX): Removed.
4237 (LEADER_REG): New macro.
4238 (table::init_output): Define LEADER_REG string register if in
4241 * src/preproc/tbl/tbl.man: Document it.
4243 2004-08-18 Werner LEMBERG <wl@gnu.org>
4245 * tmac/doc.tmac (An): Fix error message.
4247 2004-08-06 Werner LEMBERG <wl@gnu.org>
4249 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
4250 file can't be opened. UNIX tbl has the same behaviour.
4252 2004-08-05 Y T <doarhop@hotmail.com>
4254 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
4255 (DBRead): If in compatibility mode, take into account the text
4256 when computing figure boundaries.
4258 2004-08-05 Werner LEMBERG <wl@gnu.org>
4260 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
4261 from Tadziu Hoffmann.
4263 2004-08-03 Werner LEMBERG <wl@gnu.org>
4265 * doc/meref.me: Document `_M' register.
4267 2004-08-03 Martin Husemann <martin@duskware.de>
4269 Make hpftodit work correctly on big-endian systems.
4271 * src/utils/hpftodit/hpftodit.cpp (File): New method
4272 `get_uint32(char *)'.
4273 (entry): New member `orig_value'.
4274 (read_tags): Use new method.
4275 (output_font_name, read_and_output_pcltypeface, dump_ascii):
4278 2004-08-01 Werner LEMBERG <wl@gnu.org>
4280 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
4281 are already in X11's `macros.t' file.
4283 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
4285 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
4287 (read_and_output_pcltypeface): Handle strings with length <= 4.
4289 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
4291 * tmac/s.tmac (pg@top): Don't save `PO' register.
4292 (pg*end-col, pg*end-page): Directly use `PO' register.
4294 2004-07-27 Werner LEMBERG <wl@gnu.org>
4296 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
4298 * src/preproc/refer/refer.cpp (output_references): Check for
4300 * src/preproc/refer/refer.man: Improve documentation of
4301 `bibliography' command.
4303 2004-07-26 Werner LEMBERG <wl@gnu.org>
4305 Add requests `fcolor' and `gcolor'.
4307 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
4309 (init_env_requests): Add `fcolor' and `gcolor'.
4311 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
4313 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
4314 (Colors): Document new requests.
4316 2004-07-24 Werner LEMBERG <wl@gnu.org>
4318 Add support for fractional point sizes in ms macros. A value for
4319 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
4320 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
4322 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
4323 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
4325 * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
4326 Registers), NEWS: Document it.
4328 2004-07-19 Werner LEMBERG <wl@gnu.org>
4330 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
4332 (do_for, for_input::get, for_input::peek): Handle negative `by'.
4333 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
4335 2004-07-08 Thomas Klausner <wiz@netbsd.org>
4337 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4338 * tmac/groff_mdoc.man: Updated.
4340 2004-07-05 Werner LEMBERG <wl@gnu.org>
4342 * doc/groff.texinfo (Manipulating Hyphenation): Further improve
4343 documentation of `hcode'.
4345 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
4347 Improve appearance of arrows in pic.
4349 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
4351 Use two line segments for drawing non-filled arrow head.
4352 (line_object::print, spline_object::print): Shorten line length to
4353 avoid arrow sticking.
4354 (arc_object::print): Take arrow direction into account.
4356 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4358 * tmac/groff_www.man: Update documentation of .MPIMG.
4360 2004-07-03 Werner LEMBERG <wl@gnu.org>
4362 * tmac/an-old.tmac (RI): Always start with font `R'.
4363 (RI, IR): Properly end with font `R'.
4365 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
4367 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
4368 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
4369 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
4370 Don't pass more than six arguments to .R, .I, .B, etc., for
4371 compatibility with traditional troff macros.
4373 2004-07-02 Werner LEMBERG <wl@gnu.org>
4375 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4376 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
4378 (PUSH_COMP_MODE): New internal character constant.
4381 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
4382 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
4383 (token::next, macro::append): Handle PUSH_COMP_MODE.
4384 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
4385 POP_GROFFCOMP after each of the decoded arguments to make them
4386 independent from the compatibility mode status.
4387 (comp_mode): Add `COMP_ENABLE'.
4388 (do_define_string, do_define_macro): Handle COMP_ENABLE.
4389 (define_string, append_string, define_macro, define_indirect_macro,
4390 append_macro, append_indirect_macro): Handle `compatible_flag'.
4391 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
4393 * man/groff_diff.man, doc/groff.texinfo: Updated.
4395 2004-07-01 Werner LEMBERG <wl@gnu.org>
4397 * doc/groff.texinfo: Improve documentation of `hcode'.
4398 Use @documentencoding and convert document to latin-1; to do that
4399 make latin characters active and assign proper macros (within a
4400 @tex...@end tex environment).
4401 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
4402 * doc/Makefile.sub (groff): Ditto.
4404 2004-06-29 Werner LEMBERG <wl@gnu.org>
4406 Implement two new conditional operators `F <name>' and `S <name>'
4407 which check whether <name> is a valid font or style, respectively.
4409 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
4410 (text_file::text_file): Updated.
4411 (text_file::error): Don't emit message if `silent' is set.
4412 (font::load_font): Add optional third argument (which is directly
4414 (font::load): Add optional second argument to check the header of
4415 a font only, without emitting warning or error messages.
4416 * src/include/font.h (font): Updated.
4418 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
4420 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
4421 fourth argument to check a font without mounting.
4422 (check_font, check_style): New functions.
4423 * src/roff/troff/node.h: Updated.
4425 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4428 2004-06-27 Werner LEMBERG <wl@gnu.org>
4430 Implement new string-valued register `.sty' to return the current
4433 * env.cpp (environment::get_style_name_string): New function.
4434 (init_env_requests): Add `.sty' register.
4435 * env.h (environment): Updated.
4436 * node.cpp (font_info): Make `get_style_name' a friend.
4437 (get_style_name): New function.
4440 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4443 2004-06-15 Werner LEMBERG <wl@gnu.org>
4445 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4448 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
4450 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4451 and \n[mo] to avoid dependency on current date.
4453 2004-06-08 Werner LEMBERG <wl@gnu.org>
4455 * Makefile.sub (install_data): New target.
4457 2004-06-04 Werner LEMBERG <wl@gnu.org>
4459 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4461 2004-06-03 Werner LEMBERG <wl@gnu.org>
4463 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4465 (install_data): Add $(srcdir).
4467 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4470 2004-06-02 Werner LEMBERG <wl@gnu.org>
4472 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4473 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4474 Add test for Xmu library.
4475 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4476 GROFF_APPRESDIR_DEFAULT): New macros.
4478 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4479 and GROFF_APPRESDIR_DEFAULT.
4481 * configure: Regenerated.
4483 * Makefile.in (appresdir): New variable.
4484 (MDEFINES): Add appresdir.
4486 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4488 (install_data, uninstall_sub): New targets to handle GXditview.ad.
4490 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4491 `$(srcdir)/eign', not `eign'.
4493 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4495 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4496 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4497 Protect (g)xditview with `\%' to avoid hyphenation.
4498 Other minor formatting.
4500 2004-06-01 Werner LEMBERG <wl@gnu.org>
4502 Integrate gxditview into groff's standard directory hierarchy.
4504 * src/xditview/*: Moved to ...
4505 * src/devices/xditview/*: Here.
4506 Moved DviChar.h and XFontName.h to src/include.
4507 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4508 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4509 Moved xtotroff.c to new directory src/utils/xtotroff.
4510 Provide proper Makefile.sub files (reusing the stuff from
4512 DESC renamed to DESC.in.
4513 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4514 Converted everything from K&R to ANSI C.
4515 Decorated with const where appropriate.
4516 Cast string constants with `String' and `char *' where appropriate.
4517 Made it compile with C++ (used as a C compiler).
4518 Removed other minor compiler warnings.
4520 * src/devices/xditview/device.c: Include config.h, string.h, and
4522 Don't declare `exit', `strtok', `strchr', and `getenv'.
4525 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4528 * src/devices/xditview/xditview.c: Include config.h.
4529 Include stdio.h earlier.
4530 Protect declaration of `popen' and `pclose' with
4531 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4532 Replace `caddr_t' with `XtPointer'.
4533 (MakePromptFunc): New typedef.
4534 (DoPrint): Use RETSIGTYPE.
4535 (promptfunction): Change type to MakePromptFunc.
4536 (MakePrompt): Use MakePromptFunc for third argument.
4539 * src/devices/xditview/ad2c: Add casts to `String'.
4541 * src/include/XFontName.h (XFontNameString): Don't use array
4543 Add prototypes for `XParseFontName', `XFormatFontName',
4544 `XCompareFontName', and `XCopyFontName'.
4546 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4549 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4550 Don't declare `XParseFontName' and `XFormatFontName'.
4552 (main): Remove `optind' and `optarg'.
4554 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4555 (to select programs which need X).
4556 Make XDEVIDIRS depend on `FORCE'.
4557 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4559 (MDEFINES): Updated.
4560 (LIBDIRS): Use XLIBDIRS.
4561 (CPROGDIRS): Use XPROGDIRS.
4562 (DEVDIRS): Remove font directories for gxditview.
4563 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4564 (EXTRADIRS): Remove src/xditview.
4566 * Makefile.sub (DISCLEANFILES): Updated.
4568 * Makefile.comm (LIBXUTIL): New variable.
4569 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4570 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4572 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4574 * aclocal.m4 (GROFF_X11): New function.
4576 * configure.ac: Call GROFF_X11.
4577 Don't create src/xditview/Imakefile.
4578 Don't emit notice how to build gxditview.
4580 * configure: Regenerated.
4582 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4584 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
4586 * Makefile.in (CPPFLAGS): Define.
4587 (MDEFINES): Add CPPFLAGS.
4589 2004-05-27 Werner LEMBERG <wl@gnu.org>
4591 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4593 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
4595 Fix problems with `friend name injections'.
4597 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4598 make_script_box), src/roff/troff/div.h (end_diversions),
4599 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4602 2004-05-25 Bernd Warken <bwarken@mayn.de>
4604 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4606 2004-05-25 Werner LEMBERG <wl@gnu.org>
4608 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4609 src/libs/libgroff/color.cpp: Include lib.h.
4611 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
4613 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4614 through Forte 6u1, and for how to get GNU make on Solaris.
4616 2004-05-24 Werner LEMBERG <wl@gnu.org>
4618 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
4621 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
4623 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4626 2004-05-14 Werner LEMBERG <wl@gnu.org>
4628 * REVISION: Set to 2.
4630 * aclocal.m4 (GROFF_STDINT_H): Removed.
4631 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4633 * configure.ac: Updated.
4634 * configure, src/include/config.hin: Regenerated.
4636 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4637 inttypes.h conditionally.
4639 2004-05-13 Werner LEMBERG <wl@gnu.org>
4641 Version 1.19.1 released
4642 =======================
4644 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
4646 * src/preproc/refer/label.y (same_author_last_name,
4647 same_author_name): Handle empty sort keys.
4649 2004-05-10 Werner LEMBERG <wl@gnu.org>
4651 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4654 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4655 doc-str-Lb-librt): Reset font.
4656 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4657 Provide `doc-str-Lb' to reset font.
4658 * tmac/groff_mdoc.man: Updated.
4660 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
4662 * src/preproc/html/pre-html.cpp (make_message): Make it work for
4663 snprintf versions which don't conform to ANSI C 99 (this is,
4664 counting the string's trailing null byte in the return value).
4666 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
4668 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4669 that all implementations of sprintf handle null pointers correctly.
4671 2004-05-04 Werner LEMBERG <wl@gnu.org>
4673 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4674 Document `.U' register.
4676 * src/roff/troff/env.cpp (environment::mark_last_line)
4677 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4679 2004-05-04 Larry Kollar <kollar@alltel.net>
4681 New read-only register `.U'; it returns 1 in safer mode and 0
4684 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4687 2004-05-03 Werner LEMBERG <wl@gnu.org>
4689 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4691 2004-04-17 Werner LEMBERG <wl@gnu.org>
4693 * src/include/font.h (font): Use `int' for ch_index.
4694 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4695 font::compact): Updated.
4697 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4700 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4701 (hyphen_word): Fix compiler warnings.
4702 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4705 (get_delim_number, get_line_arg): Change second argument type to
4707 (macro_header::copy, token::next, do_define_string,
4708 do_define_character, substring_request, asciify_macro,
4709 unformat_macro, read_size, non_interpreted_node::interpret,
4710 while_request, main: Fix compiler warnings.
4711 (read_color_draw_node): Initialize `col'.
4713 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4714 `start_col' and `end_col' of type `int'.
4715 (vertical_rule): Make `col' of type `int'.
4717 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4720 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4722 (format_serial): Use them to remove dependency on ASCII.
4724 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4726 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4729 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4731 (glyph): Change type of `hpos' to `int'.
4733 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
4734 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4736 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4738 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4740 2004-04-16 Werner LEMBERG <wl@gnu.org>
4742 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4743 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4744 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4745 `double' instead of `float' everywhere.
4746 * src/preproc/grn/main.cpp: Use `double' instead of `float'
4748 (main): Add return value.
4749 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
4751 Update all user functions.
4753 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
4754 src/preproc/eqn/box.h, src/preproc/pic/object.h,
4755 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
4756 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
4757 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
4758 src/roff/troff/input.cpp, src/roff/troff/request.h,
4759 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
4762 * src/utils/indxbib/signal.c: Include stdlib.h.
4764 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
4766 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
4767 before the first page.
4769 2004-04-14 Thomas Klausner <wiz@netbsd.org>
4771 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
4772 (doc-operating-system-*): Updated.
4773 * tmac/doc-syms (doc-str-St-*): Various small fixes.
4774 (doc-str-Lb-*): Add more library names.
4776 2004-04-10 Art Haas <ahaas@airmail.net>
4778 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
4781 2004-04-09 Art Haas <ahaas@airmail.net>
4783 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
4785 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
4787 * arch/misc/shdeps.sh: Generate better comment for sed script.
4789 2004-04-08 Art Haas <ahaas@airmail.net>
4791 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
4792 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
4793 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
4794 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
4795 (polyfill), src/preproc/grn/main.cpp (polyfill),
4796 src/preproc/refer/command.cpp (command_table),
4797 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
4798 gcc 3.5 doesn't like).
4800 2004-04-08 Werner LEMBERG <wl@gnu.org>
4802 Removing many compiler warnings. groff should now compile with
4803 a C++ compiler used for C files also. [Simple variable renamings
4804 to avoid shadowing aren't logged in detail.]
4806 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
4807 (draw_dvi_printer::draw) ['c']: Enclose in block.
4809 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
4810 (page::add_line): Fix typos.
4811 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
4813 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
4814 Some local variable renamings.
4815 * src/devices/grolbp/lbp.h: Some local variable renamings.
4817 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
4820 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
4821 Remove redundant local variable declaration.
4822 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
4823 Don't use `caddr_t' but `void *'.
4824 Enclose functions with `extern "C"' for C++.
4826 * src/libs/libdriver/input.cpp (remember_filename,
4827 remember_source_filename): Use cast for string constant.
4829 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
4830 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
4831 src/libs/libgroff/geometry.cpp: Some local variable renamings.
4832 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
4834 Enclose functions with `extern "C"' for C++.
4835 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
4836 (needs_quoting): Return `int'.
4837 (quote_arg): Add proper casts to malloc and realloc.
4838 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
4839 various MS Windows environments.
4840 (spawnvp_wrapper): Add proper cast to malloc.
4842 * src/preproc/eqn/box.h: Remove redundant declarations of
4843 `make_script_box', `make_mark_box' and `make_lineup_box'.
4844 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
4845 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
4848 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
4849 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
4850 (dx, dy): Renamed functions to...
4851 (deltax, deltay): This.
4852 * src/preproc/grn/main.cpp: Some local variable renamings.
4853 (deffont): Add `const'.
4854 (initpic, conv): Use cast for string constant.
4856 * src/preproc/html/pre-html.cpp: Some local variable renamings.
4857 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
4858 (char_buffer::run_output_filter): Second argument is unused.
4859 * src/preproc/html/pushback.cpp: Some local variable renamings.
4861 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
4862 * src/preproc/pic/object.cpp: Some local variable renamings.
4864 * src/preproc/refer/label.y (lookup_label): Remove redundant
4865 declaration of local variable.
4867 * src/preproc/soelim.cpp: Remove redundant declaration of
4868 `interpret_lf_args'.
4870 * src/preproc/tbl/main.cpp: Some local variable renamings.
4872 * src/roff/groff/groff.cpp (main): Use cast for string constant.
4873 * src/roff/groff/pipeline.c: Enclose declarations of `error',
4874 `c_fatal', and `i_to_a' with `extern "C"' for C++.
4875 Don't use C++-style comments.
4877 * src/roff/troff/env.h: Remove redundant declaration of `title'.
4878 * src/roff/troff/node.h, src/roff/troff/env.cpp,
4879 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
4881 * src/roff/troff/div.h: Remove redundant declaration of
4883 * src/roff/troff/troff.h: Remove redundant declaration of
4885 * src/roff/troff/input.cpp: Remove redundant declaration of
4886 `handle_first_page_transition' and `process_input_stack'.
4888 * src/utils/hpftodit.cpp: Some local variable renamings.
4890 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
4892 Don't define RETSIGTYPE.
4893 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
4895 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
4896 (error): Use `const' in argument.
4897 (main): Remove redundant declaration of `optind'.
4898 Move declaration of `Version_string' to top-level.
4900 * PROBLEMS: Document difficulties compiling signal.c if a C++
4901 compiler is used for C.
4903 2004-04-07 Werner LEMBERG <wl@gnu.org>
4905 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
4907 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
4909 Make scripts like nroff.sh and neqn.sh portable across various
4910 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
4911 non-POSIX path separators. The idea is to extend those scripts to
4912 decide at run-time (of the script) which path separator to use.
4914 * arch/misc/Makefile.sub: New file.
4915 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
4916 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
4917 a proper definition of the variable `GROFF_RUNTIME'.
4919 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
4920 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
4921 (PROGDEPDIRS): New variable.
4923 (PROGDIRS): Add PROGDEPDIRS.
4925 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
4926 Don't substitute @SEP@ and @BINDIR@.
4927 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
4928 (PATH): Use GROFF_RUNTIME.
4930 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
4931 Don't substitute @SEP@ and @BINDIR@.
4932 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
4933 (PATH): Use GROFF_RUNTIME.
4935 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
4937 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
4938 Cygwin which doesn't handle stderr correctly.
4940 2004-03-08 Werner LEMBERG <wl@gnu.org>
4942 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
4943 against empty argument. Problem reported by <cgd@broadcom.com>.
4945 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
4947 * Makefile.in (SEP): Replaced with...
4948 (RT_SEP, SH_SEP): Separators for the target platform's native path
4949 separator and the build environment, respectively.
4950 (fontpath, tmacpath): Use RT_SEP.
4951 (MDEFINES): Updated.
4953 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
4954 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
4955 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
4957 2004-03-05 Werner LEMBERG <wl@gnu.org>
4959 * font/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
4960 reduce alignment problems with newer printers which use built-in
4961 TrueType fonts (instead of the older Intellifonts). The ideal
4962 solution is to provide a second set of groff metric files, but this
4963 is extremely time-consuming to produce, given that HP's metric
4964 files are very rudimentary.
4966 2004-03-01 Werner LEMBERG <wl@gnu.org>
4968 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
4969 s/operand/argument/ in error message.
4971 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
4973 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
4976 2004-03-01 Antti Kantee <pooka@netbsd.org>
4978 * tmac/s.tmac (XE): Fix error message.
4980 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
4982 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
4985 * src/roff/groff/pipeline.c: Declare strcasecmp.
4986 (run_pipeline) [_WIN32]: Use function name variants which don't
4988 Fix stream handling.
4990 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
4992 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
4993 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
4994 for platforms which use the native Win32 runtime libraries.
4995 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
4997 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
4998 QUOTE_ARG_REALLOC_ERROR): Fix string.
5000 * src/preproc/html/pre-html.cpp: Remove declaration of
5002 Don't use __MINGW32__.
5003 s/DEBUG_FILE/DEBUG_FILE_DIR/.
5004 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
5005 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
5006 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
5007 calls to `set_redirection' and `WAIT'.
5008 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
5009 Fix calls to `set_redirection' and `save_and_redirect'.
5010 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
5011 to `set_redirection' and `save_and_redirect'.
5012 (usage): Fix message.
5013 (makeTempFiles, main): Use `DEBUG_FILE'.
5015 2004-02-21 Werner LEMBERG <wl@gnu.org>
5017 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
5019 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
5021 * src/libs/libgroff/quotearg.c: New file, providing proper argument
5022 quoting for MSVC's spawn* and exec* functions.
5023 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
5024 spawnvp with proper quoting for MSVC.
5026 * src/libs/libgroff/assert.cpp (program_name),
5027 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
5028 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
5030 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
5032 * src/include/error.h (program_name): Declare as `extern "C"'.
5033 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
5035 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
5037 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
5039 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
5041 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
5043 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
5045 (sbasename) [__MSDOS__ || ...]: New function.
5046 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
5048 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
5049 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
5051 Use STDOUT_FILENO instead of hardcoded file handle.
5052 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
5054 2004-02-19 Werner LEMBERG <wl@gnu.org>
5056 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
5057 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
5059 2004-02-18 Werner LEMBERG <wl@gnu.org>
5061 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
5062 new font and mapping files.
5064 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
5065 Keith Marshall <keith.d.marshall@ntlworld.com>
5067 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
5068 an input pipe. This is needed for the MSVC compiler to make troff's
5071 * src/roff/troff/div.cpp: Include nonposix.h.
5072 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
5074 2004-02-17 Werner LEMBERG <wl@gnu.org>
5076 * font/devlj4/generate/special.awk: New script.
5077 * font/devlj4/generate/Makefile (S): Use special.awk.
5078 * font/devlj4/*: Regenerated, including the following new files:
5079 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
5080 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
5081 * NEWS: Document new lj4 fonts and revised hpftodit.
5083 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
5085 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
5087 2004-01-25 Werner LEMBERG <wl@gnu.org>
5089 * src/libs/libgroff/progname.cpp: Replaced with...
5090 * src/libs/libgroff/progname.c: New file.
5091 * src/libs/libgroff/Makefile.sub: Updated accordingly.
5093 2004-01-17 Werner LEMBERG <wl@gnu.org>
5095 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
5097 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
5099 * font/devlj4/generate/wingdings.map,
5100 font/devlj4/generate/symbol.map: Include unnamed glyphs.
5101 Use groff glyph names where possible.
5102 * src/devices/grolj4/lj4_font.man: Minor updates.
5104 2004-01-13 Werner LEMBERG <wl@gnu.org>
5106 * tmac/www.tmac (DC): Handle TTY devices.
5108 * doc/webpage.ms: Document viewCVS from ffii.org.
5109 * NEWS, README: Updated.
5111 * src/roff/groff/groff.man: Mention lj4_font man page.
5113 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
5115 (FONTS): Add SYMBOL and WINGDINGS.
5116 (SYMBOL, WINGDINGS): New targets.
5118 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
5120 * src/devices/grolj4/lj4_font.man: New man page.
5121 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
5122 * src/devices/grolj4.man: Mention lj4_font man page.
5124 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
5125 * src/utils/hpftodit/hpftodit.man: Document it.
5127 Remove details about fonts (which are now in lj4_font.man).
5129 * font/devlj4/generate/symbol.map,
5130 font/devlj4/generate/wingdings.map: New files.
5132 2004-01-12 Werner LEMBERG <wl@gnu.org>
5134 * README: Mention ffii's viewcvs access.
5136 2004-01-09 Werner LEMBERG <wl@gnu.org>
5138 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
5140 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
5142 Revert most of the change from 2004-01-03 to better control used
5145 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
5146 (text_symbol_sets, special_symbol_sets): New arrays.
5147 (symbol_set_table): New global variable.
5148 (read_symbol_sets): Use search order given in the text_symbol_sets
5149 and special_symbol_sets arrays. If command line flag -a is not
5150 given, search both arrays.
5151 (output_charset): Require x_height_tag only for command line flag -i.
5153 2004-01-06 Werner LEMBERG <wl@gnu.org>
5155 Implement string-valued registers \n[.m] and \n[.M] to return the
5156 name of the current drawing and background color, respectively.
5158 * src/roff/troff/symbol.h: Moved to...
5159 * src/include/symbol.h: Here.
5160 Small fixes to make it work outside of the `troff' directory.
5161 * src/roff/troff/symbol.cpp: Moved to...
5162 * src/libs/libgroff/symbol.cpp: Here.
5163 Small fixes to make it work outside of the `troff' directory.
5165 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
5166 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
5169 * src/include/color.h: Include symbol.h.
5170 (color): Add new field `nm'.
5171 * src/libs/libgroff/color.cpp (color::color): Updated.
5173 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
5174 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
5175 src/roff/troff/reg.cpp: Don't include symbol.h.
5177 * src/roff/troff/env.cpp: Don't include symbol.h.
5178 (environment::get_glyph_color_string,
5179 environment_get_fill_color_string): New member functions.
5180 (init_env_requests): Handle `.m' and `.M' registers.
5181 * src/roff/troff/input.cpp: Don't include symbol.h.
5182 (default_symbol): Moved to symbol.cpp/symbol.h.
5183 (do_glyph_color, do_fill_color, define_color): Pass symbol name
5184 to color constructor.
5185 * src/roff/troff/env.h: Updated.
5187 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5188 Document new registers.
5190 2004-01-05 Werner LEMBERG <wl@gnu.org>
5192 * src/roff/troff/node.cpp (space_node::get_breakpoints,
5193 space_node::nbreaks): Protect against zero `next' field.
5195 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
5197 In hpftodit, use the symbol sets offered in the TFM.
5199 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
5200 (symbol_set, text_symbol_sets, special_symbol_sets,
5201 symbol_set_table): Removed.
5202 (get_printcode): Removed.
5203 (read_symbol_sets): Initialize `symbol_set' field with
5205 Simplify code to just use the `kind' value.
5206 (output_charset): Improve output formatting.
5207 (dump_symbols): Simplified.
5209 2004-01-02 Werner LEMBERG <wl@gnu.org>
5211 * font/devlj4/generate/text.map: Add more MSL numbers.
5213 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
5215 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
5216 (text_symbol_sets): Add more symbol sets.
5217 (debug_flag): New static variable (moved from `main').
5218 (get_printcode, show_symset): New functions.
5219 (main): Remove `debug_flag'.
5220 (output_charset): Use `show_symset'.
5221 (dump_symbols): Use `show_symset'.
5222 Print symsets for all glyphs.
5223 (read_map): Actually call `unicode_to_ucode_make' but this time
5226 2004-01-01 Werner LEMBERG <wl@gnu.org>
5228 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
5229 Fix placement of comments.
5231 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
5233 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
5234 option `-d' is given.
5235 (output_charset): Improve warning messages to give more information.
5236 (dump_symbols): Make information more precise.
5238 (read_map): Don't call unicode_to_ucode_name; the glyph names must
5239 appear as-is and shouldn't be decomposed.
5241 2003-12-31 Werner LEMBERG <wl@gnu.org>
5243 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
5244 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
5245 (FONTS): Add TrueType font families Arial and Times New Roman.
5246 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
5247 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
5250 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
5252 * test-groff.in (SEP): Quote value.
5253 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
5254 `tem' to `char*' to avoid deallocation of a pointer to a constant
5255 object which some compilers don't like.
5257 2003-12-31 Werner LEMBERG <wl@gnu.org>
5259 * font/devlj4/generate (text.map, special.map): Rewritten to work
5260 with the new hpftodit version.
5262 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
5264 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
5265 set and 8bit character code for all glyphs also.
5267 2003-12-30 Werner LEMBERG <wl@gnu.org>
5269 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
5271 2003-12-29 Werner LEMBERG <wl@gnu.org>
5273 More fixes for MSVC compiler.
5275 * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
5277 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
5278 STDERR_FILENO) [_MSC_VER]: Define conditionally.
5279 (getpid) [_MSC_VER]: Remove.
5280 Include direct.h and process.h conditionally.
5282 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
5283 parentheses for a_delete.
5285 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
5287 * test-groff: Replaced with...
5288 * test-groff.in: This new template to handle path separator
5291 * configure.ac: Check for direct.h and process.h.
5292 Generate test-groff script.
5293 * configure, src/include/config.hin: Regenerated.
5295 2003-12-28 Werner LEMBERG <wl@gnu.org>
5297 Add integral extension glyph.
5298 Add new option `-x' to afmtodit to suppress use of built-in AGL.
5300 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
5302 * font/devps/generate/textmap: Provide entry for `integralex' to
5303 override (old) PUA value of the AGL.
5304 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
5305 * font/devps/*: Regenerated.
5307 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
5308 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
5310 2003-12-27 Werner LEMBERG <wl@gnu.org>
5312 Add forgotten `coproduct' symbol (already available for DVI).
5314 * font/devhtml/R.proto, font/devps/generate/textmap,
5315 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
5316 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
5317 U+2210 (\[coproduct]).
5319 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
5321 hpftodit has been extended to handle TrueType metric files and
5322 more glyphs. See hpftodit.man for more details.
5324 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
5325 ctype.h, and unicode.h.
5326 s/msl/charcode/ everywhere since we now handle Unicode values also.
5327 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
5328 Use it where appropriate.
5329 (MULTIPLIER): Replaced with...
5330 (multiplier): New global static variable.
5332 (tag_type): Add more TFM tags.
5333 (tag_name): New array.
5334 (ENUM_TYPE, FLOAT_TYPE): Removed.
5335 (BYTE_TYPE): New value assigned.
5336 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
5337 (text_symbol_sets, special_symbol_sets): Extended to cover more
5339 (check_type): Add return value.
5340 (check_units): Add parameters to get ppi and upem values.
5341 Handle TrueType TFM data.
5342 (output_font_name): New function.
5343 (output_charset): Add parameter to handle TFM type.
5344 Handle TrueType TFMs also.
5345 (em_fract): New macro.
5346 (dump_tags): Be much more verbose and handle more tags.
5347 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
5348 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
5350 (read_map): Add parameter to handle TFM type.
5351 Handle both MSL and Unicode mappings.
5352 (main): Add two new command line options `-a' and `-q'.
5353 Updated to make use of new functions.
5356 * src/utils/hpftodit/hpuni.cpp: New file.
5358 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
5361 2003-12-25 Werner LEMBERG <wl@gnu.org>
5363 * src/include/nonposix.h (read) [_MSC_VER]: Define.
5365 2003-12-24 Werner LEMBERG <wl@gnu.org>
5367 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
5368 by Michail Vidiassov <master@iaas.msu.ru>.
5370 2003-12-20 Werner LEMBERG <wl@gnu.org>
5372 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5374 Add missing latin-2 glyphs.
5375 * font/devutf8/R.proto: Add missing latin-2 glyphs.
5377 * tmac/troffrc: Load `composite.tmac' earlier.
5379 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
5380 u00{53,73}_0327, and u0049_0307.
5381 * tmac/X.tmac: Add u00{47,67}_0306.
5382 * tmac/tty-char.tmac: Use composite glyph names for readability.
5386 * src/include/unicode.h: Remove `extern' keywords.
5388 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
5390 * tmac/latin5.tmac: New file.
5392 2003-12-19 Werner LEMBERG <wl@gnu.org>
5394 Add some glyphs needed for Turkish.
5396 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5399 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
5400 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
5401 u00{53,73}_0327, and u0049_0307.
5403 2003-12-18 Werner LEMBERG <wl@gnu.org>
5405 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
5407 Remove trailing zeros.
5409 2003-12-17 Werner LEMBERG <wl@gnu.org>
5411 Make \? transparent to end-of-sentence recognition.
5413 * src/roff/troff/input.cc (non_interpreted_node): Add
5414 `ends_sentence' member function.
5416 2003-12-16 Werner LEMBERG <wl@gnu.org>
5418 * doc/groff.texinfo: Document `dt' request correctly.
5419 Other minor typographical improvements.
5421 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
5423 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5425 2003-12-10 Richard Stallman <rms@gnu.org>
5427 * LICENSE: Better wording.
5429 2003-12-09 Werner LEMBERG <wl@gnu.org>
5431 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
5432 * configure, NEWS: Updated.
5434 2003-12-08 Werner LEMBERG <wl@gnu.org>
5436 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
5438 2003-12-07 Bernd Warken <bwarken@mayn.de>
5442 2003-12-07 Werner LEMBERG <wl@gnu.org>
5444 * INSTALL: Improved.
5446 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5448 Use path separator character of target platform for compiled-in
5451 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5452 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5453 * configure: Regenerated.
5454 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5456 2003-12-05 Werner LEMBERG <wl@gnu.org>
5458 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5459 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5461 2003-12-04 Bernd Warken <bwarken@mayn.de>
5463 * LICENSE: New file.
5465 2003-12-03 Werner LEMBERG <wl@gnu.org>
5467 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5468 ligatures present in AFM files since groff currently only
5469 understands some standard ligatures and nothing else.
5471 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
5473 * src/roff/groff/groff.cpp (main): Don't run the spooler if
5476 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5479 Don't use Unix wait flags.
5481 2003-12-02 Werner LEMBERG <wl@gnu.org>
5483 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5484 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5485 src/roff/troff/uniuni.cpp: Moved to...
5486 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5487 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5488 src/libs/libgroff/uniuni.cpp: Here.
5490 * src/include/Makefile.sub.old (HDRS),
5491 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5492 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5494 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5496 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5500 2003-12-01 Werner LEMBERG <wl@gnu.org>
5502 * groff.texinfo: Document special behaviour of `.vs 0'.
5503 Improve documentation of `cflags' request.
5506 2003-11-29 Werner LEMBERG <wl@gnu.org>
5508 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5509 * font/devlj4/CORONET: Regenerated.
5511 2003-11-24 Werner LEMBERG <wl@gnu.org>
5513 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5514 if processing hyphenation patterns in traditional mode.
5515 Improve error messages.
5517 2003-11-20 Werner LEMBERG <wl@gnu.org>
5519 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5520 troff_output_file::put_char): Fix type of local variable `c'.
5522 2003-11-19 Werner LEMBERG <wl@gnu.org>
5524 * src/roff/groff/pipeline.c (P): Removed. Updated all function
5526 (i_to_a): Removed. libgroff already provides this function.
5527 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5529 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
5531 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5534 2003-11-17 Werner LEMBERG <wl@gnu.org>
5536 * COPYING: Use correct version.
5538 2003-11-11 Werner LEMBERG <wl@gnu.org>
5540 LynxOS 4.0.0 doesn't declare vfprintf.
5542 * configure.ac: Check for vfprintf.
5543 * configure: Regenerated.
5544 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5545 * src/include/config.hin: Regenerated.
5547 2003-11-10 Werner LEMBERG <wl@gnu.org>
5549 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5551 * configure.ac: Check for vsnprintf.
5552 * configure: Regenerated.
5553 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5555 * src/include/config.hin: Regenerated.
5557 2003-11-09 Werner LEMBERG <wl@gnu.org>
5559 * aclocal.m4: Updated syntax to autoconf 2.59.
5560 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5561 Don't check for gsos2.
5562 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
5563 working abs_top_srcdir and abs_top_builddir.
5565 * configure.ac: Updated syntax to autoconf 2.59.
5566 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5567 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5568 * configure: Regenerated.
5570 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5571 s/@groff_top_builddir@/@abs_top_builddir@/.
5573 * src/roff/groff/pipeline.c (xstrsignal):
5574 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5576 2003-11-07 Werner LEMBERG <wl@gnu.org>
5578 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5579 make start angle smaller than end angle to circumvent a bug in tpic
5580 handling of some versions of dvipdfm (and dvipdfmx).
5582 2003-10-30 Werner LEMBERG <wl@gnu.org>
5584 * src/devices/grops/grops.man: Improve section on creating EPS.
5586 2003-10-29 Werner LEMBERG <wl@gnu.org>
5588 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5591 2003-10-28 Werner LEMBERG <wl@gnu.org>
5593 * doc/groff.texinfo: Fix documentation of `.if'.
5595 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
5597 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5598 the form `uniXXXX' also.
5600 2003-10-27 Werner LEMBERG <wl@gnu.org>
5602 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5603 contrib/pic2graph/pic2graph.sh: Implement secure management of
5605 Pass `-P-pletter' to groff to avoid data outside of the converted
5606 area -- some versions of `convert' (for example 5.3.8) don't check
5607 the bounding box of the image but always use a fixed image size
5608 (letter paper format).
5609 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5610 contrib/pic2graph/pic2graph.man: Updated.
5612 * src/roff/groff/groff.man: Document $TMP and $TEMP.
5614 2003-10-26 Werner LEMBERG <wl@gnu.org>
5616 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5617 troff_output::simple_ellipse, troff_output::simple_arc,
5618 troff_output::simple_line, troff_output::simple_spline,
5619 troff_output::simple_polygon): Insert a space before arguments.
5620 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5621 latter doesn't produce a node, so the following `.sp -1' would do
5623 Don't emit `.sp -1' after \M. This also doesn't produce a token
5624 (and we don't have to care about compatibility mode).
5625 (troff_output::set_color, troff_output::reset_color): Don't emit
5626 `.sp -1' after \M and \m.
5628 * src/roff/troff/input.cpp (old_have_input): New global variable.
5629 (input_stack::get): Handle `old_have_input'.
5630 (process_input_stack) <token::TOKEN_NEWLINE>: Call
5631 `trapping_blank_line' depending on `old_have_input', not
5634 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
5636 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5637 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5638 default directory names for temporary files.
5639 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5641 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5642 [__MSDOS__] (run_pipeline): Honour environment variables.
5643 Don't use `tmpnam' but `tempnam' to work around messy
5646 * README.MinGW: New file.
5648 2003-10-16 Werner LEMBERG <wl@gnu.org>
5650 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5651 `(*t)->next' without testing validity of `*t'.
5652 (usage): Make it more readable.
5654 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
5656 Make html device run under both MS-DOS and Win32.
5658 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5659 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5660 spawn or fork+exec has to be used, and whether parent must sleep
5661 until the child process terminates. Used in
5662 `char_buffer::run_output_filter'.
5663 (copyofstdoutfd): Removed.
5664 (char_buffer): Replace `write_file_html' and `write_file_troff'
5665 member functions with `emit_troff_output' and `run_output_filter'.
5666 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5668 (replaceFd): Replaced with...
5669 (set_redirection): New auxiliary function.
5670 (waitForChild): Replaced with...
5671 (save_and_redirect): New auxiliary function for.
5673 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5676 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
5678 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5679 (GROFF_LIBC): New function.
5680 * configure.ac: Call GROFF_LIBC.
5682 * configure: Regenerated.
5684 * src/include/lib.h: Handle __MINGW32__.
5685 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5686 Add macro for `pipe'.
5689 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5692 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5695 2003-10-12 Werner LEMBERG <wl@gnu.org>
5697 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5698 src/roff/troff/input.cc (usage): Updated.
5700 * NEWS, doc/groff.texinfo: Updated.
5702 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
5704 * src/libs/libgroff/searchpath.cpp
5705 (search_path::open_file_cautious): New function which also handles
5706 `-' as stdin and stdout depending on the access mode.
5707 * src/include/searchpath.h (search_path): Updated.
5709 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5710 * src/devices/grops/ps.h: Include `searchpath.h'.
5711 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5712 Open resource file with `include_search_path.open_file_cautious'.
5713 * src/devices/grops/grops.man: Document new `-I' switch.
5715 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5716 (main), src/devices/grolj4/lj4.cpp (main),
5717 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5719 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5721 (include_search_path): New global variable.
5722 (include_path_append): Removed.
5723 (main): Use `include_search_path.command_line_dir' to handle `-I'.
5724 (do_file): Simplify, using new
5725 `include_search_path.open_file_cautious'.
5727 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5729 (main): Pass arguments to `-I' to both troff and devices.
5730 Improve handling of `-V'.
5731 * src/roff/groff/groff.man: Document changes to -I and -V.
5733 * src/roff/troff/input.cpp (include_search_path): New global
5735 (next_file, source, ps_bbox_request, transparent_file,
5736 process_input_file): Use new
5737 `include_search_path.open_file_cautious'.
5738 (main) Handle `-I' switch.
5739 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5740 Use new `include_search_path.open_file_cautious'.
5741 * src/roff/troff/node.h: New extern symbol `include_search_path'.
5742 * src/roff/troff/troff.man: Document new `-I' switch.
5744 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
5746 Support multiple calls of .Lb in LIBRARY section.
5748 * tmac/doc-common (doc-in-library-section): New register.
5749 (doc-section-library): New string.
5750 (Sh): Set `doc-in-library-section'.
5752 * tmac/doc-syms (Lb): Insert breaks before and after arguments
5753 if in LIBRARY section.
5754 * tmac/doc.tmac (doc-save-global-vars): Updated.
5755 * NEWS, tmac/groff_mdoc.man: Updated.
5757 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
5759 * tmac/doc-common (doc-default-operating-system): New variable.
5762 2003-09-08 Werner LEMBERG <wl@gnu.org>
5764 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
5766 2003-08-31 Werner LEMBERG <wl@gnu.org>
5768 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
5769 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
5770 $(DEVFILES) are not empty.
5771 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
5773 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
5775 * src/preproc/refer/ref.cpp (reference::compute_sort_key): Always
5776 insert SORT_SEP. With certain combinations of sort specifications,
5777 refer sorted entries in the wrong order. In particular, entries
5778 with a missing field should be be sorted before all entries that
5779 have that field, before refer looks to the next field.
5781 2003-08-23 Werner LEMBERG <wl@gnu.org>
5783 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
5784 g++ linker is used. Reported by Mark J. Reed
5785 <mark.reed@turner.com>.
5787 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
5789 Add key character `x' to tbl which makes tbl call a user-defined
5790 macro on a table cell.
5792 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
5793 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
5794 `set_modifier' after printing the compatibility request.
5795 (set_modifier): Print call to `m->macro' if not empty.
5796 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
5798 (process_format): Implement cases `x' and `X'.
5799 * src/preproc/tbl/tbl.man, NEWS: Updated.
5801 2003-08-15 Werner LEMBERG <wl@gnu.org>
5803 * doc/groff.texinfo: Minor fixes.
5805 2003-08-09 Werner LEMBERG <wl@gnu.org>
5807 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
5809 2003-08-07 Werner LEMBERG <wl@gnu.org>
5811 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
5812 argument list to nothing if there is no file to match. Use `ls' as
5813 a protection, similar to autoconf.
5815 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
5816 empty argument lists.
5818 * doc/groff.texinfo: Improve documentation how vertical spacing
5819 and line breaks interact.
5822 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
5824 2003-08-03 Werner LEMBERG <wl@gnu.org>
5826 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
5827 EPS (using eps2eps or similar programs to compute the bounding box).
5829 2003-07-24 Werner LEMBERG <wl@gnu.org>
5831 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
5832 * doc/texinfo.tex: Updated from texinfo 4.6.
5833 * README.CVS: From now on we need texinfo 4.6.
5835 2003-07-23 Werner LEMBERG <wl@gnu.org>
5837 Add requests `dei1' and `ami1' for completeness.
5839 * src/roff/troff/input.cc (calling_mode): Remove
5840 CALLING_DISABLE_COMP.
5841 (comp_mode): New enumeration.
5842 (do_define_string, define_string, define_nocomp_string,
5843 append_string, append_nocomp_string): Updated.
5844 (do_define_macro): Add third parameter.
5845 (define_macro, define_nocomp_macro, define_indirect_macro,
5846 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
5847 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
5850 (init_input_requests): Add `dei1' and `ami1'.
5852 * tmac/trace.tmac: Handle de1 and am1.
5853 (de): Improve tracing message.
5854 (am): Add missing `do'.
5857 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5858 Document new requests.
5860 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
5862 Add option -G to .MPIMG to insert a gap between text and the image.
5864 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
5865 www-finish-left-ll): Updated.
5866 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
5867 (MPIMG): Make option -L and -R optional.
5868 Implement option -G.
5870 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
5872 * src/devices/grohtml/post-html.cpp
5873 (html_printer::do_file_components): Don't use `stdout' as lvalue
5874 since it can be a macro.
5876 2003-07-22 Werner LEMBERG <wl@gnu.org>
5878 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
5879 the corresponding test in aclocal.m4.
5881 2003-07-21 Werner LEMBERG <wl@gnu.org>
5883 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
5884 names but RGB values directly. Otherwise pnmtopng depends on
5885 an external file `rgb.txt' which maps colour names to values.
5887 2003-07-20 Werner LEMBERG <wl@gnu.org>
5889 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
5890 * configure, src/include/config.hin: Regenerated.
5892 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
5894 2003-07-19 Werner LEMBERG <wl@gnu.org>
5896 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
5898 2003-07-18 Werner LEMBERG <wl@gnu.org>
5900 * *.man: Switch to non-compatibility mode temporarily if GNU
5901 syntax extensions are used in the particular man page.
5903 * PROBLEMS: Add solutions for SGR problems.
5905 2003-07-17 Werner LEMBERG <wl@gnu.org>
5907 Don't ignore grotty's command line options if \X'tty: sgr ...' is
5908 used to change the drawing scheme.
5910 * src/devives/grotty/tty.cpp (bold_flag_option,
5911 underline_flag_option, italic_flag_option, reverse_flag_option,
5912 bold_underline_mode_option): New global variables.
5913 (update_options): New function.
5914 (tty_printer::special): Call update_options.
5915 (main): Don't set xxx_flag but xxx_flag_option, then call
5918 2003-07-14 Werner LEMBERG <wl@gnu.org>
5920 Make grotty emit proper Unicode box drawing characters for -Tutf8.
5922 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
5924 (hline_char, vline_char): New global variables.
5925 (tty_printer::tty_printer): Initialize them.
5926 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
5927 horizontal and vertical lines.
5928 (crossings): New global array.
5929 (tty_printer::end_page): Use it to determine the proper crossing
5930 character for -Tutf8.
5932 2003-07-12 Werner LEMBERG <wl@gnu.org>
5934 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
5935 (HTMLDOCFILES): Revert to `pic.html'.
5936 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
5938 2003-07-11 Werner LEMBERG <wl@gnu.org>
5940 * doc/pic.ms: Improve documentation of absolute coordinates.
5941 Document absolute positioning of pictures.
5943 * NEWS: Add new pic capability.
5945 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
5947 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
5950 2003-07-07 Werner LEMBERG <wl@gnu.org>
5952 Implement support for dashed and dotted ellipses in pic. Based on
5953 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
5955 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
5956 common_output::dashed_ellipse, common_output::dotted_ellipse): New
5957 functions. Ellipse arcs are approximated with circle arcs.
5958 * src/preproc/pic/common.h (common_output): Updated.
5959 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
5961 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
5963 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
5965 2003-07-06 Werner LEMBERG <wl@gnu.org>
5967 Make grotty work on platforms which have unsigned char as the
5968 default for char. Based on a patch by Thomas Klausner
5971 * src/devices/grotty/tty.cpp (schar): New typedef.
5972 Updated calls to declare_ptable and implement_ptable.
5973 (glyph): Use schar for back_color_idx and fore_color_idx.
5974 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
5975 (tty_printer::tty_color, tty_printer::tty_printer,
5976 tty_printer::color_to_idx, tty_printer::put_color): Updated.
5978 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
5980 * src/roff/nroff/nroff.sh: Add option -d for completeness.
5981 * src/roff/nroff/nroff.man: Updated.
5983 2003-07-05 Werner LEMBERG <wl@gnu.org>
5985 * NEWS, tmac/groff_www.man: Updated.
5986 * doc/Makefile.sub: Updated.
5988 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
5990 Implement support for multiple HTML output files.
5992 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
5993 -j command line option.
5995 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
5997 (file): New fields `new_output_file', `require_links',
5999 (file::file): Updated.
6000 (files::set_file_name, files::set_links_required,
6001 files::are_links_required, files::is_new_output_file,
6002 files::file_name, files::next_file_name): New functions.
6003 (header_desc): New fields `no_of_level_one_headings',
6005 (header_desc::header_desc): Updated.
6006 (header_desc::write_headings): Handle multiple files.
6007 (html_printer::write_header): Save file name in which header occurs.
6008 (html_printer::determine_header_level): Possibly split files on
6010 (html_printer::do_links, html_printer::troff_tag): Updated.
6011 (html_printer::insert_split_file, html_printer::do_job_name,
6012 html_printer::emit_link, html_printer::write_navigation,
6013 html_printer::do_file_components): New functions.
6014 (html_printer::~html_printer): Handle multiple files.
6015 (main): Handle command line option `-j'.
6017 * src/devices/grohtml/grohtml.man: Updated.
6019 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
6022 * tmac/www.tmac (JOBNAME): New macro.
6023 * tmac/s.tmac (SH-NO-TAG): New macro.
6024 (@SH): Call SH-NO-TAG.
6027 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6029 * tmac/groff_mdoc.man: Improve documentation of punctuation
6032 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
6034 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
6036 2003-07-03 Werner LEMBERG <wl@gnu.org>
6038 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
6040 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
6042 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
6043 after `/*' and `*/'.
6045 (Fn, Fo): Reduce indentation in synopsis.
6047 * tmac/doc-common (doc-check-depth): New macro.
6048 (doc-end-macro, Sh, Ss): Use it.
6049 (Cd): Fix behaviour in synopsis.
6050 (In): Make it parsed and callable.
6051 If not in the synopsis, represent the C header file enclosed in
6053 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
6054 Use minus, not hyphen.
6056 * tmac/groff_mdoc.man: Updated.
6058 2003-07-01 Werner LEMBERG <wl@gnu.org>
6060 Integrated grap2graph, contributed by Eric S. Raymond.
6062 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
6064 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
6065 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
6067 2003-07-01 Colin Watson <cjwatson@debian.org>
6069 * src/xditview/*.c: Add prototypes, fix return types, add includes.
6070 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
6072 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
6074 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
6076 2003-06-31 Werner LEMBERG <wl@gnu.org>
6078 * doc/Makefile.sub (CLEANADD): Remove all files created by
6079 running `make groff.{pdf,dvi}'.
6081 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
6084 2003-06-30 Werner LEMBERG <wl@gnu.org>
6086 * Makefile.in (SHELL): Define as @SHELL@.
6087 (mkinstalldirs): Use $(SHELL).
6088 (MDEFINES): Add $(SHELL).
6089 * Makefile.comm (SHELL): Removed.
6091 2003-06-29 Werner LEMBERG <wl@gnu.org>
6093 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
6094 The X11 documentation files use them.
6095 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
6097 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
6099 * tmac/e.tmac (@C): Handle .ad also.
6101 2003-06-12 Werner LEMBERG <wl@gnu.org>
6103 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
6105 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
6106 Assign `n' even here. It is possible to construct a node
6107 immediately following an escape character:
6115 2003-06-10 Werner LEMBERG <wl@gnu.org>
6117 * README.WIN32: Removed.
6118 * MANIFEST: Updated.
6120 2003-06-07 Werner LEMBERG <wl@gnu.org>
6122 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
6124 2003-06-05 Werner LEMBERG <wl@gnu.org>
6126 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
6127 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
6129 2003-06-03 Werner LEMBERG <wl@gnu.org>
6131 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
6132 is done by the calling function.
6134 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
6136 * tmac/X.tmac: Fix definition of `em'.
6138 2003-05-22 Werner LEMBERG <wl@gnu.org>
6140 * src/roff/troff/input.cc (return_macro_request): Fix detection of
6143 2003-05-18 Werner LEMBERG <wl@gnu.org>
6145 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
6146 to make items work which consist only of a tag.
6148 2003-05-17 Werner LEMBERG <wl@gnu.org>
6150 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
6151 aren't stretched in a tag (this can fail with unformatted boxes).
6152 Instead, insert a break and go back one line.
6154 2003-05-16 Werner LEMBERG <wl@gnu.org>
6156 * src/roff/troff/input.cc (return_macro_request): If called with
6157 argument pop macro twice. We need this to trace `return'.
6159 * tmac/trace.tmac: Handle `return'.
6162 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6165 2003-05-15 Larry Kollar <kollar@alltel.net>
6167 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
6168 registers `FPS', `FVS', and `FPD'.
6170 2003-05-15 Werner LEMBERG <wl@gnu.org>
6172 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
6175 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
6177 * tmac/groff_mdoc.man: Slight improvements.
6179 2003-05-03 Werner LEMBERG <wl@gnu.org>
6181 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
6182 `doc-header-space' after header line if register `cR' is set.
6184 2003-05-02 Werner LEMBERG <wl@gnu.org>
6188 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
6190 * tmac/doc-common (Nd): Use \[em].
6192 2003-05-01 Werner LEMBERG <wl@gnu.org>
6194 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
6195 doc-footer-space): Initialize to 0.5i.
6196 (doc-setup-page-layout): Don't set doc-header-space and
6199 2003-04-30 Werner LEMBERG <wl@gnu.org>
6201 * REVISION: Set to 1.
6203 * doc/pic.ms: Document possible problems with `figname'.
6205 2003-04-29 Werner LEMBERG <wl@gnu.org>
6207 Version 1.19 released
6208 =====================
6210 * VERSION: Set to 1.19.
6211 * REVISION: Set to 0.
6212 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
6214 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6215 Define charset as `US-ASCII' in html output.
6217 * tmac/www.tmac (ULE): Add missing scaling indicator.
6219 * win32-diffs: Removed.
6221 2003-04-28 Werner LEMBERG <wl@gnu.org>
6223 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
6225 Document how to insert discardable whitespace with `.ss'.
6227 2003-04-27 Werner LEMBERG <wl@gnu.org>
6229 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
6230 work with plain TeX also.
6232 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
6234 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
6236 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6239 2003-04-24 Werner LEMBERG <wl@gnu.org>
6241 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
6242 vbox with positive height and zero depth if in TeX mode.
6244 * NEWS: Document glyph name changes for grodvi and grolj4.
6246 2003-04-23 Werner LEMBERG <wl@gnu.org>
6248 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
6249 * doc/pic.ms: Fixed.
6251 2003-04-21 Werner LEMBERG <wl@gnu.org>
6253 HP-UX 10.20 has `snprintf' but it isn't declared.
6255 * configure.ac: Add declaration test for snprintf.
6256 * configure: Regenerated.
6257 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
6258 * src/include/config.hin: Regenerated.
6260 2003-04-19 Werner LEMBERG <wl@gnu.org>
6262 Add keyword `figname' to pic, specifying the name of the picture
6263 box in TeX mode. Based on a patch from William J Poser
6264 <wjposer@unagi.cis.upenn.edu>.
6266 * src/preproc/pic/pic.y: New token `FIGNAME'.
6267 (macro_name): New rule of type <str>.
6268 (placeless_element): Handle `FIGNAME'.
6269 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
6270 * src/preproc/pic/main.cpp (graphname): New global variable.
6271 (do_picture): Initialize `graphname'.
6272 * src/preproc/pic/pic.h: Updated.
6273 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
6276 (tex_output::text): Beautify output.
6277 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
6278 `shaded' and `outlined' unconditionally.
6279 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
6282 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
6283 greater is necessary.
6285 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
6287 Add option -r to soelim to avoid emission of `.lf' lines.
6288 Add option -t to produces TeX comment lines instead of `.lf' lines.
6290 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
6293 (main): Handle `-r' and `-t'.
6294 (set_location): Handle `raw_flag' and `tex_flag'.
6295 * src/preproc/soelim/soelim.man, NEWS: Updated.
6297 2003-04-17 Werner LEMBERG <wl@gnu.org>
6299 * tmac/hyphenex.sh: Replaced with...
6300 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
6303 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
6304 if --quiet is used for the configure script.
6305 * configure: Regenerated.
6307 2003-04-16 Werner LEMBERG <wl@gnu.org>
6309 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
6310 Add `const' to second argument.
6311 (html_printer::add_table_end): Add `const' to argument.
6312 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
6313 `const' to arguments.
6314 * src/devices/grohtml/html-text.h: Updated.
6316 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
6317 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
6320 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
6321 cast for integer constant.
6323 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
6324 (writeNbytes): Add `const' to first argument.
6325 (writeString): Add `const' to argument.
6326 (char_buffer::can_see): Add `const' to third argument.
6327 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
6328 `const' to argument.
6329 * src/preproc/html/pushback.h: Updated.
6331 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
6332 (include_path_append): Add `const' to argument.
6335 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
6337 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
6338 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
6340 (unicode_decompose_init::unicode_decompose_init): Updated.
6341 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
6343 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
6344 * src/roff/troff/input.cc (process_startup_file): Add `const' to
6347 * tmac/hyphenex.sh: Make script more portable by using a here
6350 2003-04-15 Werner LEMBERG <wl@gnu.org>
6352 Renamed all `*.cc' files to `*.cpp'.
6353 Updated all configuration files, makefiles, and documentation.
6355 2003-04-14 Werner LEMBERG <wl@gnu.org>
6357 * tmac/hyphenex.sh: Slight improvements.
6359 2003-04-13 Werner LEMBERG <wl@gnu.org>
6361 * font/devascii/R.proto, font/devcp1037/R.proto,
6362 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
6363 character slots with unnamed glyphs.
6365 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
6366 (an-first): New global variable.
6367 (an-header): Emit vertical space between multiple man pages.
6369 2003-04-11 Werner LEMBERG <wl@gnu.org>
6371 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
6374 2003-04-10 Werner LEMBERG <wl@gnu.org>
6376 * PROBLEMS: Revised.
6378 2003-04-10 Bernd Warken <bwarken@mayn.de>
6380 * doc/webpage.ms: Improved.
6382 2003-04-09 Werner LEMBERG <wl@gnu.org>
6384 Add register \n[.height] which returns the value of \H.
6385 Add register \n[.slant] which returns the value of \S.
6387 * src/roff/troff/env.cc (init_env_requests): Implement.
6388 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6391 2003-04-08 Werner LEMBERG <wl@gnu.org>
6393 * tmac/html.tmac: Move some of the data into html-end.tmac.
6394 Remove most of the character translations for eqn since html fonts
6395 now cover those characters.
6397 * tmac/html-end.tmac: New file.
6398 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
6399 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
6400 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
6402 2003-04-07 Werner LEMBERG <wl@gnu.org>
6404 * man/groff_out.man: Document negative values of `N' if -Thtml is
6407 2003-04-06 Werner LEMBERG <wl@gnu.org>
6409 * Makefile.comm (depend.temp): Check location of YTABC.
6411 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6413 * doc/Makefile.in (TROFFBIN): New variable for troff
6415 (GROFFBIN): New variable for groff binary path.
6416 (groff_bin_path): Rename to GROFF_BIN_PATH.
6417 (TROFF): Use TROFFBIN.
6418 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6419 * doc/Makefile.sub (GROFFBIN): New variable for groff
6421 (groff_bin_path): Rename to GROFF_BIN_PATH.
6422 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6424 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
6425 with INSTALL_SCRIPT.
6426 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
6427 * Makefile.dev (all): Depend on DEVSCRIPTS.
6428 (install_dev): Likewise.
6429 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
6431 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
6432 (DEVGENSCRIPTS): New variable to hold generated scripts.
6434 2003-04-05 Werner LEMBERG <wl@gnu.org>
6436 * src/libs/libdriver/input.cc (IntArray::operator[],
6437 IntArray::get_data): Remove meaningless `const' in return value.
6439 * README.CVS: New file.
6441 2003-04-04 Werner LEMBERG <wl@gnu.org>
6443 Check for stdint.h in C++, not in C.
6445 * aclocal.m4 (GROFF_STDINT_H): New function,
6446 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6448 * configure, src/include/config.hin: Regenerated.
6449 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6452 Fix handling of in grohtml. To do this, troff emits `N'
6453 with a negative value, representing the width of the unbreakable
6454 space (only for -Thtml). grohtml then converts this back to
6455 and uses the value of N as its width.
6457 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6458 unbreakable_space_node::tprint): Emit `N-<width>'.
6459 * src/include/printer.h (printer::set_numbered_char): Make it
6461 Make members `font_table' and `nfonts' protected instead of private.
6462 * src/devices/grohtml/post-html.cc
6463 (html_printer::set_numbered_char): New member function.
6466 * src/libs/libgroff/maxfilename.cc:
6467 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6469 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6472 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
6474 * man/roff.man: Small fixes.
6476 2003-04-03 Werner LEMBERG <wl@gnu.org>
6478 Make groff independent from locale's numeric settings.
6480 * configure.ac: Check for `setlocale'.
6481 * configure, src/include/config.hin: Regenerated.
6483 * src/include/lib.h: Handle HAVE_SETLOCALE.
6485 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6486 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6487 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6490 * doc/groff.texinfo: Change dir category to `Typesetting'.
6491 (Man font macros): Mention that there is no space between arguments
6494 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6495 (*printer::change_color, *printer::change_fill_color): Add missing
6498 2003-04-02 Werner LEMBERG <wl@gnu.org>
6500 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6501 html_table::is_gap): Compute table widths after converting border
6502 positions to avoid rounding errors.
6504 2003-04-01 Werner LEMBERG <wl@gnu.org>
6506 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6507 `space_emitted' properly.
6509 2003-03-31 Werner LEMBERG <wl@gnu.org>
6511 * src/devices/grohtml/html-table.cc: Fix column width calculation.
6512 (html_table::set_linelength): Don't add 1.
6513 (html_table::add_indent): Don't subtract 1.
6515 * tmac/html.tmac: Set default page offset to zero.
6517 2003-03-30 Werner LEMBERG <wl@gnu.org>
6519 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
6521 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6522 unbreakable_space_node::tprint): New functions.
6523 (troff_output_file): Make space_char_hmotion_mode::tprint and
6524 unbreakable_space_node::tprint to friends.
6525 * src/roff/troff/node.h: Updated.
6527 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
6528 in the HTML standard).
6530 2003-03-29 Werner LEMBERG <wl@gnu.org>
6532 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6533 Otherwise, the following code
6542 produces `x a' instead of `xa'. This is a temporary fix, disabling
6543 font changes in diversions for -Thtml.
6545 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6547 (an-do-tag-html): Merge with ...
6548 (an-do-tag): This macro.
6549 Change code slightly to circumvent grohtml bug.
6550 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6552 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6553 html_table::is_gap): Round `width' properly.
6555 * tmac/html.tmac: Provide some default layout parameters for
6558 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6561 2003-03-28 Werner LEMBERG <wl@gnu.org>
6563 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6565 2003-03-27 Werner LEMBERG <wl@gnu.org>
6567 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6570 2003-03-20 Werner LEMBERG <wl@gnu.org>
6572 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6574 * doc/groff.texinfo: Updated.
6576 2003-03-19 Werner LEMBERG <wl@gnu.org>
6578 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6579 TOKEN_END_TRAP>: Reset `have_input'.
6581 2003-03-18 Werner LEMBERG <wl@gnu.org>
6583 * src/roff/groff/groff.man: Mention groff_trace man page.
6585 2003-03-16 Werner LEMBERG <wl@gnu.org>
6587 * Makefile.in (LIBEXT): New variable to indicate the file extension
6588 of library files. Computed heuristically from $(OBJEXT).
6589 (MDEFINES): Add $(LIBEXT).
6590 * Makefile.lib, Makefile.comm: Use it.
6592 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
6593 overlong lines into smaller chunks.
6594 (get_binary): New function.
6596 * src/utils/pfbtops/pfbtops.man: Updated.
6598 2003-03-15 Colin Watson <cjwatson@debian.org>
6600 * src/roff/groff/groff.man: Minor syntax fix.
6602 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
6604 * src/devices/grops/ps.cc (ps_printer::media_set,
6605 ps_printer::~ps_printer): Handle zero paper width and length.
6607 2003-03-13 Werner LEMBERG <wl@gnu.org>
6609 Add options -p and -l to grodvi.
6611 * src/devices/grodvi/dvi.cc: Include paper.h.
6612 (landscape_flag, user_paper_length, user_paper_width): New global
6614 (dvi_printer::begin_page): Emit `papersize' special.
6615 Set color after initialization of `cur_h' and `cur_v'.
6616 (main): Add options `-l' and `-p'.
6617 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6618 * src/devices/grodvi/grodvi.man, NEWS: Updated.
6620 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6622 2003-03-12 Werner LEMBERG <wl@gnu.org>
6624 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6625 * man/groff_tmac.man: This man page.
6626 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6629 * tmac/X.tmac: Don't load pspic.tmac.
6631 2003-03-11 Werner LEMBERG <wl@gnu.org>
6633 Make variable `pr' local to libdriver/input.cc. Based on a patch
6634 by Bernd Warken <bwarken@mayn.de>.
6636 * src/include/driver.h (pr): Removed.
6638 * src/libs/libdriver/input.cc (pr): New global variable.
6639 (do_file): Deallocate `pr'.
6640 * src/libs/libdriver/printer.cc (pr): Removed.
6642 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6643 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6644 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6645 (main): Don't delete `pr'.
6647 2003-03-10 Werner LEMBERG <wl@gnu.org>
6649 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6650 * tmac/papersize.tmac: New file.
6651 * tmac/troffrc: Include `papersize.tmac'.
6652 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6653 * tmac/an-old.tmac: Set LT to LL by default.
6655 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6656 doc/groff.texinfo: Updated.
6658 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6659 bug which caused all odd iso papers to have wrong dimensions.
6661 * src/devices/grops/ps.cc (user_paper_width): New global variable.
6662 (main) <'p'>: Set `user_paper_width' also.
6663 (ps_printer::media_width, ps_printer::media_height): Use values
6664 given with option `-p'.
6666 2003-03-09 Werner LEMBERG <wl@gnu.org>
6668 * src/include/nonposix.h: Provide default for SET_BINARY.
6670 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6671 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6674 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6675 (main): Treat \r\n as \n.
6677 2003-03-08 Werner LEMBERG <wl@gnu.org>
6679 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6680 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6682 2003-03-07 Werner LEMBERG <wl@gnu.org>
6684 Added support to access more than 256 glyphs in Type 1 fonts.
6686 * src/devices/grops/ps.cc (subencoding): New structure.
6687 (style): Add `sub' field.
6689 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6690 Add `set_subencoding', `get_subfont' and `encode_subfont' member
6693 (ps_printer::set_char): Use `set_subencoding'.
6694 (make_subencoding_name): New function.
6695 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6696 (ps_printer::~ps_printer): Emit subencoding definitions.
6698 * src/devices/grops/psrm.cc (valid_input_table): New array to
6699 properly support EBCDIC.
6700 (white_space): Add `\f'.
6701 (ps_get_line): Change first argument to be of type `string &'.
6702 Updated all callers.
6703 This allows to get lines of arbitrary length.
6704 Use `valid_input_table'.
6705 Remove warning about non-conforming PS line length. This seems
6706 not to be of great importance -- for example, dvips don't emit
6708 (PS_LINE_MAX): Removed.
6709 (matches_comment): Change first argument to be of type `string &'.
6711 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6713 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6714 %AGL_to_unicode, %default_ligatures): New hash tables.
6715 Read all map entries.
6716 Add unencoded characters.
6717 Check for default ligatures if there are no `L' entries.
6718 Print all kern entries.
6719 Print all characters in charset.
6720 * src/utils/afmtodit/afmtodit.man: Updated.
6722 * font/devps/*: Regerated all fonts.
6724 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6725 of characters, just use `.trin'. Otherwise the mapping depends
6726 on the font encoding.
6727 * tmac/ps.tmac: Add `fi' and `fl'.
6728 Improve `Fi' and `Fl'.
6729 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6730 * tmac/Xps.tmac: Fix `em'.
6734 2003-03-04 Werner LEMBERG <wl@gnu.org>
6736 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6739 2003-03-03 Werner LEMBERG <wl@gnu.org>
6741 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6743 * font/devps/generate/textmap: Remove entry `similarequal'.
6744 * font/devps/symbolmap: Updated.
6746 2003-03-02 Werner LEMBERG <wl@gnu.org>
6748 * src/libs/libgroff/font.cc (font::load): Fix error message for
6751 * src/devices/grops/grops.man: Improve documentation of the -b
6754 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
6755 `ascii' and `cp1047'.
6757 2003-03-01 Werner LEMBERG <wl@gnu.org>
6759 Document composite glyphs and the `composite' request.
6761 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
6763 2003-02-28 Werner LEMBERG <wl@gnu.org>
6765 * font/devdvi/generate/ec.map: Add some more Unicode entities.
6766 * font/devdvi/*EC: Updated.
6768 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
6769 * tmac/latin1 (latin1-tr): Undo any previous mapping.
6770 * tmac/troffrc: Load `composite.tmac'.
6771 * tmac/Makefile.sub (NORMALFILES): Updated.
6773 * doc/groff.texinfo (Input Encodings): New section.
6776 2003-02-27 Werner LEMBERG <wl@gnu.org>
6778 * doc/texinfo.tex: New version 2003-02-11.06.
6780 * tmac/doc-common (Dt): Don't emit warning for unknown section.
6781 * tmac/groff_mdoc.man: Fix description of `Dt'.
6783 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
6785 * font/devps/prologue.ps: Fix for included Postscript that does
6786 a setpagedevice -- which is now safely ignored.
6790 * src/devices/grops/ps.cc: Now sets the page size in the generated
6791 document. This is done in two ways: Via a %%-comment for gv and
6792 the like, and via a PageSize and setpagedevice for programs that
6793 understands Postscript proper, like ps2pdf.
6795 * src/devices/grops/ps.h: New broken-flag to avoid page size
6796 definition, if required.
6798 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
6800 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
6801 Not really necessary due to the fix in prologue.ps, but cleaner:
6802 Such information does not belong in an .eps file.
6804 * doc/Makefile.sub: See doc/Makefile.in.
6806 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
6808 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
6809 instead of P1 since the latter is broken in some versions of netpbm.
6810 * configure: Updated.
6812 2003-02-26 Larry Kollar <kollar@alltel.net>
6814 Make man pages more customizable.
6816 * tmac/an-old.tmac (FT): New register holding footer distance from
6818 (HF): New string holding the default heading font.
6819 (TH): Handle registers `IN' and `SN' set on the command line.
6821 (PT, BT): New strings to customize header and footer lines.
6822 (an-header, an-footer): Use them.
6824 * tmac/groff_man.man: Document changes.
6826 * doc/groff.texinfo: Document man changes.
6827 Document Ultrix extensions of man.
6829 2003-02-26 Werner LEMBERG <wl@gnu.org>
6831 * src/roff/troff/input.cc (do_width, do_if_request): Reset
6832 `have_input' after changing back to old environment.
6834 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
6835 function up to be defined before first call. This is necessary to
6836 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
6838 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
6839 the default font directory also. Based on a patch from James
6840 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
6841 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
6842 * src/utils/afmtodit/afmtodit.man: Document it.
6846 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
6848 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
6850 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
6851 (GROFF_PNMTOPS_NOSETPAGE): New macro.
6852 * configure.ac: Use it.
6853 * configure: Regenerated.
6854 * Makefile.in: Updated.
6856 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
6857 (CLEANADD): Add www.tmac-sed.
6858 (pnmtops_nosetpage): Define default.
6859 (install_data): Handle www.tmac-sed and substitute
6860 @PNMTOPS_NOSETPAGE@.
6861 (stamp-sed): Add www.tmac.
6862 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
6863 It now breaks URLs at suitable places.
6864 (www:substring_ok): New register set by...
6865 (www:@test_substring): New macro.
6866 (www:error): New alias to www-error.
6867 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
6869 (URL): Use www:url_breaks.
6870 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
6871 (CDS, CDE): New macros.
6873 2003-02-25 Werner LEMBERG <wl@gnu.org>
6875 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
6878 2003-02-24 Werner LEMBERG <wl@gnu.org>
6880 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
6881 can be negative also.
6883 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
6885 (read_char_table): Avoid negative ascenders.
6886 (output_charset): Add cast.
6887 * font/devlj4/*: Regenerated.
6889 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
6892 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
6893 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
6895 * font/devdvi/*: Regenerated.
6897 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
6898 normal width, while the previously used characters (U+2329 and
6899 U+232A) are classified as wide due to canonical equivalence with the
6900 CJK punctuation characters U+3008 and U+3009.
6902 * font/devutf8/R.proto: Updated.
6903 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
6905 * man/groff_char.man: Simplify handling of table traps by
6906 introducing `start block' and `end block' macros.
6907 (Ns, Ne, 2s, 2e, Ds, De): New macros.
6908 (DL): Make it work with Unix troff also.
6909 Fix code values of `la' and `ra'.
6911 * tmac/dvi.tmac: Define `<>' for CW and CWI.
6913 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
6915 * src/devices/grohtml/post-html.cc (element_list::~element_list):
6916 New destructor, fixing a major memory leak.
6918 2003-02-22 Werner LEMBERG <wl@gnu.org>
6920 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
6921 to be in conformance with Unicode 3.0 and newer.
6923 * font/devlj4/generate/text.map: Add `Eu'.
6924 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
6925 * font/devlj4/S: Regenerated.
6927 * man/groff_char.man: Completely rewritten.
6929 * doc/groff.texinfo: Fix description of request and macro arguments.
6931 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
6935 * src/devices/grohtml/html-table.cc (html_table::~html_table):
6936 Deallocate `columns' list.
6937 * src/devices/grohtml/post-html.cc (char_block::~char_block):
6939 (text_glob::text_glob_html, text_glob::text_glob_special,
6940 text_glob::text_glob_line, text_glob::text_glob_auto_image,
6941 text_glob::text_glob_tag): Avoid memory leaks.
6942 (text_glob::remember_table): Free memory before reassigning.
6944 2003-02-19 Werner LEMBERG <wl@gnu.org>
6946 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
6947 alias `hbar'), the Planck constant over two pi.
6949 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
6950 `+e' for position 34.
6951 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
6952 `u2662' and `u2661'.
6953 * font/devdvi/{MI,S}: Regenerated.
6954 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
6955 * font/devlbp/*: Add `hbar' alias.
6956 * font/devlj4/generate/special.map: Ditto.
6957 * font/devlj4/S: Regenerated.
6958 * font/devps/generate/symbolchars: Add `+e'.
6959 * font/devps/generate/textmap: Fix PS name for `-h'.
6961 * font/devps/symbolmap: Regenerated.
6963 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
6965 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
6967 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
6970 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
6972 * tmac/tty-char.tmac: Add `+e'.
6974 2003-02-17 Werner LEMBERG <wl@gnu.org>
6976 Another round trying to really fix problems with `have_input'.
6978 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
6979 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
6981 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
6982 handling if both foreground and background colors are default.
6984 * doc/groff.texinfo (Debugging): Document .lf differences to
6987 2003-02-16 Werner LEMBERG <wl@gnu.org>
6989 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
6990 null-bytes in created string.
6992 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
6993 alias_macro, lookup_request): Improve warning messages.
6995 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
6997 Free `last_image_filename'.
6999 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
7001 (imageList::createPage, imageList::createImage): Use `free', not
7003 (imageItem::~imageItem): Free `imageName'.
7004 (addRegDef): Use `strsave', not `strdup'.
7005 (get_resolution): Free `pathp'.
7007 2003-02-15 Werner LEMBERG <wl@gnu.org>
7009 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
7012 2003-02-14 Werner LEMBERG <wl@gnu.org>
7014 Add memory management for colors to deallocate unnamed colors
7017 * src/include/color.h (color): New members `free_list' and `next'.
7018 New member functions `new' and `delete'.
7020 * src/libs/libgroff/color.cc: Implement it.
7022 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
7023 for array size of new operator.
7025 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
7026 redundant comparison.
7028 * src/roff/troff/input.cc (word_space_node::reread,
7029 hmotion_node::reread): Avoid warning about unused parameter.
7030 (reset_output_registers): Remove redundant parameter.
7031 (define_color): Undo change 2003-02-12.
7033 * src/roff/troff/reg.h: Updated.
7035 * src/roff/troff/node.cc (troff_output_file::really_print_line,
7036 output_file::put_filename, real_output_file::really_put_filename,
7037 ascii_output_file::really_print_line,
7038 break_char_node::get_hyphen_list): Avoid warning about unused
7040 (suppress_node::tprint): Updated.
7042 * configure.ac: Check declaration for rand() and srand().
7043 * configure: Regenerated.
7045 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
7047 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
7050 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
7051 to avoid compiler warnings.
7053 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
7056 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
7058 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
7060 Updated all callers.
7062 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
7064 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
7065 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
7067 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
7068 Parameter is unused.
7069 (html_printer::add_table_end): Define parameter conditionally.
7070 * src/devices/grohtml/output.cc (simple_output::special): Parameter
7073 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
7074 (lbp_printer::set_char): Last parameter is unused.
7076 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
7078 2003-02-13 Werner LEMBERG <wl@gnu.org>
7080 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
7081 Make \D'f ...' move horizontally again for backwards compatibility.
7082 Replace it with \D'Fg ...' where appropriate to avoid dependency
7083 on horizontal resolution.
7085 * src/roff/troff/input.cc (do_get_long_name): New function.
7086 (get_long_name): Call it.
7088 (read_draw_node): Handle `\D'Fx ...' by calling ...
7089 (read_color_draw_node): New function.
7091 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
7093 Pass it to `do_get_long_name' which is used instead of
7096 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
7097 unnecessary value guard.
7098 (parse_D_command) <'f'>: Add horizontal shift.
7100 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
7101 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7102 (FILL_MAX): Removed.
7104 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7107 2003-02-12 Werner LEMBERG <wl@gnu.org>
7109 * src/roff/troff/input.cc (do_name_test, do_expr_test,
7110 do_zero_width): Push `\n' if closing delimiter is missing.
7112 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
7113 <'F'>: Make \F non-transparent at the beginning of line.
7114 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
7115 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
7118 (define_color): Free color in case of reassignment.
7120 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
7121 @DefescListEnd): Use @Var, not @var.
7124 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
7126 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
7127 `shaded' and `outlined' arrays.
7128 (object_spec::object_spec): Initialize `shaded' and `outlined'.
7129 (graphic_object::set_fill_color, graphic_object::set_outline_color):
7131 (closed_object::set_fill_color): Ditto.
7132 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
7134 (troff_output::reset_color): Use a_delete instead of free.
7135 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
7137 2003-02-11 Werner LEMBERG <wl@gnu.org>
7139 * doc/groff.texinfo: Improve documentation of `ad'.
7140 Document that \D'f...' is dependent on the horizontal resolution.
7141 * man/groff_diff.man: Improve documentation of \D'f...'.
7143 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
7144 compensating \h'...' for \D'f ...' since the latter no longer moves
7146 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7148 2003-02-10 Werner LEMBERG <wl@gnu.org>
7150 Improve error messages for `x F' (and `F') commands.
7152 * src/include/error.h: Add declaration for
7153 `current_source_filename'.
7154 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
7155 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
7156 parameter for source file string.
7157 Updated all callers.
7159 * src/libs/libdriver/input.cc: Add `current_source_filename'.
7160 (remember_source_filename): New function.
7161 (parse_x_command <'F'>, do_file <'F'>): Use it.
7163 2003-02-09 Werner LEMBERG <wl@gnu.org>
7165 Make grotty not emit warnings about unknown colors more than
7168 * src/devices/grotty/tty.cc: Include `ptable.h'.
7169 (TTY_MAX_COLORS): Removed.
7170 (DEFAULT_COLOR_IDX): Defined to -1.
7171 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
7172 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
7173 Change `tty_colors' to be a ptable.
7174 First arg of `put_color' is now `char'.
7175 New functions `make_rgb_string' and `tty_color'.
7176 (tty_printer::tty_printer): Use `tty_color'.
7177 (tty_printer::color_to_idx): Return value is now `char'.
7180 * src/include/color.h (color): Add `print_color' member function.
7181 * src/libs/libgroff/color.cc (color::print_color): Implement it.
7183 2003-02-08 Werner LEMBERG <wl@gnu.org>
7187 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
7190 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
7191 assume that value has been allocated with `new[]', thus use
7192 `a_delete' for deallocation.
7194 * src/libs/libdriver/input.cc (get_integer_arg,
7195 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
7198 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
7199 * src/libs/libgroff/nametoindex.cc
7200 (character_indexer::named_char_index): Use `new <type>[1]'.
7202 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
7204 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
7205 (split_text): Use `a_delete'.
7207 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
7210 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
7211 harmless memory leak.
7212 (hyphen_trie::read_patterns_file): Initialize `buf'.
7213 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
7214 Initialize `current_fill_color'and `current_glyph_color'.
7215 * src/roff/troff/glyphuni.cc
7216 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
7217 * src/roff/troff/uniuni.cc
7218 (unicode_decompose_init::unicode_decompose_init): Ditto.
7219 * src/roff/troff/uniglyph.cc
7220 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
7222 2003-01-26 Werner LEMBERG <wl@gnu.org>
7224 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
7225 `access' before calling `unlink'.
7226 (do_file): Handle __EMX__.
7228 * src/include/nonposix.h: Handle __EMX__.
7230 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
7231 (fontpath,tmacpath): Use it.
7233 Sorted alphabetically.
7235 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
7237 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
7240 2003-01-27 Werner LEMBERG <wl@gnu.org>
7242 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
7243 New files, copied from gnulib.
7244 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
7245 * configure.ac: Updated.
7246 * configure: Regenerated.
7248 * src/include/config.hin: Regenerated.
7249 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
7250 Don't define `strcasecmp' as `strcmp'.
7251 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
7252 Dont define `strncasecmp' as `strncmp'.
7254 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
7257 2003-01-26 Werner LEMBERG <wl@gnu.org>
7259 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
7262 2003-01-25 Werner LEMBERG <wl@gnu.org>
7264 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
7266 2003-01-24 Werner LEMBERG <wl@gnu.org>
7268 Add US-english hyphenation exceptions (converted from Barbara
7269 Beeton's hyphenation exception log reports which appear irregularly
7272 * tmac/hyphen.us: Updated to latest version.
7273 * tmac/README: Updated.
7274 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
7275 * tmac/troffrc: Load `hyphenex.us'.
7276 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
7277 * doc/groff.texinfo: Updated.
7279 2003-01-23 Werner LEMBERG <wl@gnu.org>
7281 Improve hyphenation slightly. This is a first step in redesigning
7282 the hyphenation algorithm to make it more flexible (e.g. allowing
7283 kerns and ligatures between the hyphenation character and the
7284 following character -- while not used normally in English, other
7285 languages like German would benefit).
7287 * src/roff/troff/env.cc (environment::hyphenate_line): Use
7288 assertion instead of if-clause.
7289 Let `get_hyphen_list' return the number of involved characters in
7290 the hyphenation pattern instead of computing it directly (which
7291 often yields too small values).
7292 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
7293 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
7296 2003-01-22 Werner LEMBERG <wl@gnu.org>
7298 Fixing a bug which caused groff to hang if the hyphenation exception
7299 dictionary tried to grow.
7301 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
7302 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
7303 pointer to dictionary.
7305 2003-01-20 Werner LEMBERG <wl@gnu.org>
7307 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
7308 negative left italic correction.
7309 * src/utils/afmtodit/afmtodit.man: Document it.
7311 * font/devps/generate/Makefile (RFLAG): Add `-m'.
7312 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
7313 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
7317 2003-01-16 Werner LEMBERG <wl@gnu.org>
7321 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
7323 * src/preproc/refer/refer.man: Mention REFER environment variable.
7325 2003-01-05 Werner LEMBERG <wl@gnu.org>
7327 Similar to \[is], the square root glyph (\[sr]) and the square root
7328 extension glyph (\[radicalex]) are now text symbols. The new
7329 mathematical versions are called \[sqrt] and \[sqrtex],
7332 * font/devX*/S: Regenerated.
7333 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
7334 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
7335 * font/devdvi/EX, font/devdvi/S: Regenerated.
7336 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
7337 * font/devlj4/generate/special.map: Add `sqrt'.
7338 * font/devlj4/S: Regenerated.
7339 * font/devps/generate/textmap: Add `sqrt'.
7340 * font/devps/S, font/devps/symbolmap: Regenerated.
7342 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
7343 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
7344 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
7345 overlap horizontally.
7347 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
7348 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
7351 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
7352 and `sqrtex' are overlapping glyphs.
7354 2003-01-04 Werner LEMBERG <wl@gnu.org>
7356 * font/devdvi/generate/texsy.map: Add `is'.
7357 * font/devps/symbolmap: Regenerated.
7358 * font/devdvi/*TC, MI, S: Regenerated.
7360 * tmac/dvi.tmac: Remove `is'.
7362 2003-01-03 Werner LEMBERG <wl@gnu.org>
7364 `is' is now a text symbol (only relevant for dvi). The math variant
7365 can be accessed with `integral'.
7367 * font/devX*/S: Regenerated.
7368 * font/devdvi/generate/texex.map: Remove `is'.
7369 * font/devdvi/EX: Updated.
7370 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
7371 * font/devlj4/generate/special.map: Ditto.
7372 * font/devlj4/S: Regenerated.
7373 * font/devps/generate/textmap: Add `integral'.
7374 * font/devps/S: Regenerated.
7376 * tmac/dvi.tmac: Define `is'.
7378 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
7380 * src/preproc/tbl/main.cc (process_format): Fix error message.
7382 2003-01-02 Werner LEMBERG <wl@gnu.org>
7384 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
7385 * font/devps/textmap: Fix entries for `ne' and `nc'.
7386 * font/devps/symbolmap: Regenerated.
7388 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
7389 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
7390 `38', `58', `78', `-+', `|=', `nc', `ne'.
7392 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
7393 Use `schar' for `aq'.
7394 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
7395 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
7396 * tmac/tty.tmac: Add `ne'.
7398 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
7399 for fallback glyphs.
7401 2002-12-29 Werner LEMBERG <wl@gnu.org>
7405 * font/devX*/*: Regenerated.
7406 * font/devdvi/generate/ec.map: Remove `eq'.
7407 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
7408 Assign `|=' to position 39.
7409 * font/devdvi/*EC, S: Regenerated.
7410 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
7411 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
7412 Assign `|=' to position 549.
7413 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
7415 Add `uni2243' for `|='.
7417 * tmac/ec.tmac: Add `eq'.
7418 * tmac/dvi.tmac: Add `=~'.
7419 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
7422 2002-12-21 Werner LEMBERG <wl@gnu.org>
7424 * font/devdvi/generate/tc.map: Remove `**'.
7425 * font/devdvi/*TC: Regenerated.
7426 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
7428 * font/devutf8/NOTES: Updated.
7430 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
7431 Don't give default parameter to `set_macro'.
7432 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
7433 instead of `set_macro'.
7434 (charinfo::setx_macro): Implement it.
7435 (charinfo::set_macro): Don't change `mode'.
7437 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
7438 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
7439 * tmac/dvi.tmac: Define `!=' with `.schar'.
7441 2002-12-20 Werner LEMBERG <wl@gnu.org>
7443 * font/devX*/S: Regenerated.
7444 * font/devdvi/generate/ec.map: Remove `pl'.
7445 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7446 * font/devdvi/*{TC,EC}: Regenerated.
7447 * font/devhtml/R.proto: Add `-+'.
7448 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7449 * font/devlbp/*: Remove `or'.
7450 * font/devlj4/generate/special.map: Remove `or'.
7451 * font/devlj4/S: Regenerated.
7452 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7453 `seveneighths', `threeeighths'.
7455 Replace `minusplus' with `uni2213'.
7456 * font/devps/symbolmap: Regenerated.
7457 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7460 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7462 * src/roff/troff/node.cc (troff_output_file::put_char_width):
7463 Call glyph_color and fill_color even if tcommand_flag isn't set.
7464 (make_node, node::add_char): Check not ci->is_fallback but
7467 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7468 * tmac/ec.tmac: Add .rchar entry for `f/'.
7469 Don't remove `12', `14', `34'.
7470 Define `pl' to be always roman.
7471 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7472 Define `18', `38', `58', `78'.
7473 * tmac/tty.tmac: Add `-+'.
7474 * tmac/dvi.tmac: Define `f/'.
7475 (dvi-frac): Use `f/'.
7476 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7477 Define `18', `38', `58', `78'.
7479 2002-12-15 Colin Watson <cjwatson@debian.org>
7481 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7483 2002-12-10 Werner LEMBERG <wl@gnu.org>
7485 Add glyph `tno', a textual variant of `no'.
7487 * font/devX*/*: Regenerated.
7488 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7489 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7490 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7491 * font/devdvi/*: Regenerated.
7492 * font/devlbp/*: Add `tno'.
7493 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7494 * font/devlj4/*: Regenerated.
7495 * font/devps/generate/textmap: Replace `no' with `tno'.
7496 * font/devps/generate/symbolchars: Add `no'.
7497 * font/devps/*: Regenerated.
7499 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7501 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7502 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7506 * tmac/dvi.tmac: Replace most `\\' with `\E'.
7507 Add definition for `sd'.
7508 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7510 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7512 2002-12-08 Werner LEMBERG <wl@gnu.org>
7514 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7515 mode to avoid rounding errors.
7516 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7518 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7519 src/roff/troff/troff.man: Improve documentation of -T.
7521 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
7523 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7524 (run_pipeline) [_WIN32]: Provide working function without `fork'.
7526 2002-12-06 Werner LEMBERG <wl@gnu.org>
7528 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7529 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7530 Scaling Euro.sansserif glyphs down to have the same height as
7532 Removed unnecessary points; added some extrema.
7534 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7537 2002-12-04 Werner LEMBERG <wl@gnu.org>
7539 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7540 and `Euro.symbol.bold.slanted'.
7541 Improve some glyph offsets and widths.
7542 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7544 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7546 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7549 * tmac/europs.tmac: Updated to new glyph indices.
7550 Use Euro.symbol for font familiy `A'.
7552 * doc/groff.texinfo: Minor improvements.
7554 2002-12-02 Werner LEMBERG <wl@gnu.org>
7556 * font/devdvi/generate.tc.map: s/%O/%0/.
7557 * font/devdvi/*TC: Regenerated.
7559 * src/roff/troff/div.cc (init_div_requests): Sorted.
7561 * tmac/dvi.tmac: Remove `Ye'.
7562 * tmac/ec.tmac: Remove `Ye'.
7563 Add .rchar entry for `de'.
7565 * man/groff.man, man/groff_diff.man: Document register `.pe'.
7566 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7569 2002-11-30 Werner LEMBERG <wl@gnu.org>
7571 Add PS font for various Euro glyphs.
7573 * font/devps/generate/freeeuro.sfd: New master font file for
7575 * font/devps/generate/sfdtopfa.pe: New conversion script for
7577 * font/devps/generate/Makefile (FONTS): Add `EURO'.
7578 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7579 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7581 * font/devps/EURO: Generated from `freeeuro.afm'.
7582 * font/devps/download: Add `freeuro.pfa'.
7583 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7586 * tmac/europs.tmac: New file.
7587 * tmac/ps.tmac: Include `europs.tmac'.
7588 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7590 2002-11-29 Werner LEMBERG <wl@gnu.org>
7592 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7593 * font/devdvi/S: Regenerated.
7594 * font/devhtml/R.proto: Fix `CR' and `ci'.
7596 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7598 * font/devps/symbolmap: Regenerated.
7599 * font/devutf8/R.proto: Fix `CR' and `ci'.
7601 * font/devutf8/NOTES: Updated.
7603 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7606 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7608 * tmac/dvi.tmac: Add `lh' and `rh'.
7609 * tmac/Xps.tmac: Fix `lh' and `rh'.
7610 * tmac/X.tmac: Add `OK'.
7611 * tmac/lj4.tmac: Ditto.
7613 2002-11-24 Werner LEMBERG <wl@gnu.org>
7615 * font/devX*/S: Regenerated.
7616 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7617 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7618 * font/devdvi/generate/texsy.map: Remove `or' glyph.
7619 * font/devdvi/S: Regenerated.
7620 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7621 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7622 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7623 `bracketleftbt', `bracketrighttp', `bracketrightex',
7624 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7625 `braceex', `braceleftex', `bracerightex', `bracerighttp',
7626 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7628 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7629 * font/devutf8/NOTES: Updated.
7630 * font/devlj4/generate/special.map: Add glyph `braceex'.
7631 * font/devlj4/S: Regenerated.
7633 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7635 2002-11-14 Werner LEMBERG <wl@gnu.org>
7637 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7640 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7642 * doc/texinfo.tex: New version from texinfo 4.3.
7643 * doc/groff.texinfo: Updated for texinfo 4.3.
7644 Use @tie{} where appropriate.
7645 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7646 * font/devdvi/generate/tc.map: Remove `rn'.
7647 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7648 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7650 * font/devX100/*, font/devX100-12/*, font/devX75/*,
7651 font/devX75-12/*: Regenerated.
7653 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7654 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7655 Improve definition of `an'.
7656 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7658 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7659 * tmac/X.tmac: Add definition for `or'.
7660 * tmac/Xps.tmac: Undo change 2002-11-05.
7661 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7663 2002-11-11 Werner LEMBERG <wl@gnu.org>
7665 * src/roff/troff/node.cc (troff_output_file::put_char): Always
7668 2002-11-10 Werner LEMBERG <wl@gnu.org>
7670 Added three new requests `schar', `fschar', and `rfschar'. `schar'
7671 defines a glyph which is searched after the check for fonts declared
7672 with `.special' (and before the check for all mounted special
7673 fonts). `fschar' defines a glyph for a particular font which is
7674 searched after the check for fonts declared with `.fspecial' (and
7675 before the check for fonts declared with `.special'). `rfschar'
7676 removes glyphs defined with `fschar'.
7678 * src/roff/troff/token.h (char_mode): New enum.
7679 Declare do_define_character.
7680 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7682 (charinfo::is_fallback): Updated.
7683 (charinfo::is_special): New method.
7684 * src/roff/troff/input.cc (do_define_character): Add and use
7685 optional second parameter used as a prefix for font-specific glyph
7687 (define_character, define_fallback_character): Updated.
7688 (define_special_character): New function.
7689 (init_input_requests): Add `schar'.
7690 (charinfo::charinfo, charinfo::set_macro): Updated.
7691 * src/roff/troff/node.cc: Include `stringclass.h'.
7692 (make_glyph_node): Handle special glyphs defined with `.schar' and
7694 (define_font_special_character, remove_font_special_character): New
7696 (init_node_requests): Sorted.
7697 Add `fschar' and `rfschar'.
7698 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7699 Document new requests.
7701 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7702 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7704 2002-11-08 Werner LEMBERG <wl@gnu.org>
7706 Added new font `SC' (cmtex10) to devdvi.
7708 * devdvi/generate/Makefile (FONTS): Add `SC'.
7710 * devdvi/generate/textex.map: New map file for cmtex.
7712 * devdvi/Makefile.sub (DEVFILES): Updated.
7713 * tmac/dvi.tmac: Add fspecial entries for SC.
7714 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
7715 found before `S' since the font position of `SC' is lower due to the
7716 gaps in DESC's `font' line.
7717 * tmac/ec.tmac: Add a `special' call.
7720 * font/devhtml/R.proto: Remove double entry for `ti'.
7721 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7722 * tmac/tty-char.tmac: Remove entry for `bq'.
7723 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7724 * tmac/ec.tmac: Don't remove `aq' glyph.
7725 * tmac/X.tmac: Fix entry for `em'.
7726 Add entries for `fo' and `fc'.
7727 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7729 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7730 documentation of `special' and `fspecial' requests.
7732 2002-11-05 Werner LEMBERG <wl@gnu.org>
7734 * font/devascii/R.proto, font/devcp1047/R.proto,
7735 font/devlatin1/R.proto: Remove entry for `.i'.
7736 * font/devdvi/generate/textt.map: Add entry for `ad'.
7737 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7738 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7739 We need this for getting kerning values to compose `/l' and `/L'.
7740 * font/devdvi: Regenerated font definition files for CM fonts.
7741 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7742 * font/devutf8/R.proto: Ditto.
7743 Remove double entry for `ti'.
7745 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
7746 for (groff) ligatures, `la', and `ra'.
7747 Add "'C", "'c", `IJ', and `ij'.
7748 Remove double entry for `ti'.
7749 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
7751 Add "'C", "'c", `IJ', and `ij'.
7752 Fix entries for (groff) ligatures, `la', and `ra'.
7754 * tmac/ps.tmac (ps-achar): New macro.
7755 Define "'c" and "'C".
7756 * tmac/tty.tmac: Add entry for `.i'.
7757 * tmac/X.tmac (X-achar): New macro.
7758 Define "'c", "'C", and `:Y'.
7759 Add entries for `IJ' and `ij'.
7760 * tmac/Xps.tmac (Xps-achar): New macro.
7761 Define "'c" and "'C".
7762 Add entries for `IJ' and `ij'.
7763 * tmac/lbp.tmac (lbp-achar): New macro.
7764 Add fallback characters for all groff ligatures and many other
7766 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
7767 Add entries for `/l' and `/L'.
7768 Define "'c" and "'C".
7769 Add entries for `IJ' and `ij'.
7771 2002-11-02 Larry Kollar <kollar@alltel.net>
7773 * PROBLEMS: Document how to solve Mac OS X compilation problems.
7775 2002-11-02 Werner LEMBERG <wl@gnu.org>
7777 Adding support for composite glyphs: \[xxx yyy ...] and the
7778 `composite' request.
7780 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
7781 to Unicode-based glyph names.
7782 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
7783 glyph names to groff glyph names.
7784 * src/roff/troff/uniuni.cc: New file for canonically decomposing
7785 Unicode-based glyph names.
7786 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
7787 for handling Unicode glyph names.
7788 * src/roff/troff/input.cc: Include unicode.h.
7789 (composite_glyph_name): New function.
7790 (token::next) <'['>: Handle Unicode glyph names and composite
7792 (composite_dictionary): New dictionary for the `composite' request.
7793 (composite_request): Implement `composite' request.
7794 (init_input_requests): Add `composite'.
7795 Alphabetically sorted.
7796 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
7798 (init_env_requests): Alphabetically sorted.
7799 Removed `tas' and `tar' (already commented out).
7800 * src/roff/troff/Makefile.sub: Updated.
7802 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
7804 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
7807 2002-10-29 Werner LEMBERG <wl@gnu.org>
7809 Fix computation of .trunc register. Additionally, its value (and
7810 the value of the .ne register) is now always set before entering the
7813 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
7814 `needed_space' before calling `space'.
7815 (top_level_diversion::space): Remove special code for 'sp before the
7817 Call `begin_page' with the discarded space as a parameter.
7818 (top_level_diversion::begin_page): Add optional parameter to set
7820 * src/roff/troff/div.h: Updated.
7822 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
7825 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
7826 (LP): Remove superfluous call to `br'.
7827 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
7828 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7830 2002-10-26 Werner LEMBERG <wl@gnu.org>
7832 * tmac/doc-ditroff: Remove useless switch/variable -rC.
7833 (doc-setup-header): Don't set page register `%'.
7834 * tmac/doc-nroff: Remove variable `C'.
7835 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
7836 (doc-setup-header): Don't set page register `%'.
7838 * tmac/doc-common (doc-header): Call `ns'.
7839 (doc-paragraph): Protect .sp with .br so that it survives traps
7840 possibly set by the user.
7841 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7843 * tmac/doc*: Replace ' with . for consistency if no effect.
7845 2002-10-26 Werner LEMBERG <wl@gnu.org>
7847 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
7848 so that it survives traps possibly set by the user.
7850 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
7851 (troff_output_file::set_font): Call flush_tbuf if necessary.
7852 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
7853 flush_tbuf and do_motion only if necessary.
7854 (troff_output_file::start_special,
7855 troff_output_file::put_char_width, troff_output_file::put_char,
7856 troff_output_file::draw): Updated.
7857 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7858 vmotion_node::tprint): Undo change 2002-10-23.
7860 2002-10-25 Werner LEMBERG <wl@gnu.org>
7862 * tmac/www.tmac (DC): Fix case of overlapping images.
7864 2002-10-23 Werner LEMBERG <wl@gnu.org>
7866 * src/roff/troff/node.cc (troff_output_file::fill_color,
7867 troff_output_file::glyph_color): Set current color before testing
7869 (troff_output_file::put_char_width, troff_output_file::put_char,
7870 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
7872 (troff_output_file::file_color, troff_output_file::glyph_color):
7874 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7875 vmotion_node::tprint): Move first, then call fill_color.
7877 2002-10-20 Werner LEMBERG <wl@gnu.org>
7879 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
7880 possible to use multiple main macro packages.
7882 2002-10-19 Werner LEMBERG <wl@gnu.org>
7884 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
7885 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
7886 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
7888 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
7889 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
7891 2002-10-16 Werner LEMBERG <wl@gnu.org>
7893 * NEWS, doc/webpage.ms: Updated.
7895 2002-10-14 Werner LEMBERG <wl@gnu.org>
7897 * src/roff/troff/node.cc (troff_output_file::put_char_width,
7898 troff_output_file::put_char, troff_output_file::fill_color,
7899 troff_output_file::glyph_color): Handle case where color pointer
7902 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
7904 Add the new -r option to grotty. It is similar to the -i option
7905 except it tells grotty(1) to use the `reverse video' attribute to
7906 render italic fonts.
7908 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
7909 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
7910 (tty_printer::make_underline, tty_printer::put_color,
7911 tty_printer::end_page): Use it.
7912 (main): Add -r switch.
7914 * src/devices/grotty/grotty.man: Document it.
7916 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
7918 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
7919 cast to `unsigned char' to properly read patterns with 8bit
7922 2002-10-08 Werner LEMBERG <wl@gnu.org>
7924 * REVISION: Increased to 2.
7926 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008
7927 Free Software Foundation, Inc.
7929 Copying and distribution of this file, with or without modification,
7930 are permitted in any medium without royalty provided the copyright
7931 notice and this notice are preserved.
7934 version-control: never