1 2009-01-04 Werner LEMBERG <wl@gnu.org>
3 * Makefile.in (dist): Don't use soft links but copy files to
4 preserve the file's time stamps.
5 * Makefile.sub (configure): Remove `autom4te.cache'.
7 2009-01-04 Werner LEMBERG <wl@gnu.org>
9 * tmac/de.tmac: Fix German date strings. Reported by Axel Kielhorn.
11 2009-01-04 Werner LEMBERG <wl@gnu.org>
13 * doc/texinfo.tex: Updated from `texinfo' CVS repository.
14 * doc/txi-en.tex: New file from `texinfo' CVS repository.
16 2009-01-04 Werner LEMBERG <wl@gnu.org>
18 * font/make-Rproto: Moved to...
19 * font/util/make-Rproto: Here.
21 * Makefile.in (NOMAKEDIRS): Add `m4', `font/devps/old', and
24 2009-01-04 Werner LEMBERG <wl@gnu.org>
26 * src/roff/troff/TODO: Mention local variables.
28 2009-01-03 Werner LEMBERG <wl@gnu.org>
30 * contrib/hdtbl/examples/col_rowspan_colors.roff,
31 contrib/hdtbl/examples/color_boxes.roff,
32 contrib/hdtbl/examples/color_nested_tables.roff,
33 contrib/hdtbl/examples/color_table_cells.roff,
34 contrib/hdtbl/examples/color_transitions.roff,
35 contrib/hdtbl/examples/short_reference.roff: Minor improvements.
37 2009-01-03 Werner LEMBERG <wl@gnu.org>
39 * doc/webpage.ms: Updated.
41 2009-01-03 Werner LEMBERG <wl@gnu.org>
43 * NEWS, groff.texinfo, font/devps/*, VERSION, REVISION: Prepare for
46 2009-01-03 Werner LEMBERG <wl@gnu.org>
48 * src/preproc/tbl/table.cpp (table::compute_expand_width,
49 table::compute_separation_factor): In warning messages, don't refer
50 to pages but to input line numbers.
52 2009-01-03 Werner LEMBERG <wl@gnu.org>
54 * tmac/groff_ms.man: Improve formatting of tables.
56 2009-01-03 Werner LEMBERG <wl@gnu.org>
58 * tmac/www.tmac (www->): Handle XHTML.
59 (HTML</p>): Handle non-HTML devices.
60 (www:url_check_tag): Avoid warnings.
62 2009-01-03 Werner LEMBERG <wl@gnu.org>
64 * tmac/an-old.tmac, tmac/doc.tmac: For -Tutf8, map \-, -, ', and `
65 conservatively to ASCII for the sake of easy cut and paste.
67 2009-01-03 Werner LEMBERG <wl@gnu.org>
69 * NEWS: Mention hdtbl.
71 2009-01-02 Werner LEMBERG <wl@gnu.org>
73 * tmac/groff_mdoc.man: Update OS version string listing.
75 2009-01-02 Werner LEMBERG <wl@gnu.org>
77 * config.rpath, m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4,
78 m4/lib-link.m4, m4/lib-prefix.m4, src/include/localcharset.h,
79 src/libs/libgroff/config.charset, src/libs/libgroff/localcharset.c,
80 src/libs/libgroff/ref-add.sin, src/libs/libgroff/ref-del.sin:
81 Updated from `gnulib' git repository.
83 * configure: Regenerated.
85 2009-01-02 Werner LEMBERG <wl@gnu.org>
87 * tmac/ptx.tmac: New file.
89 * NEWS, man/groff_tmac: man: Document it.
91 2008-12-30 Werner LEMBERG <wl@gnu.org>
93 Fix more quoting issues.
95 * tmac/www.tmac (BCL, BGIMG, PIMG, MPIMG, LNS): For the sake of
96 XHTML, quote more arguments.
99 2008-12-30 Werner LEMBERG <wl@gnu.org>
101 Fix quoting issues in www.tmac.
103 * tmac/www.tmac (www:url_breaks_splitted): Renamed to...
104 (www:url_breaks_split): This.
105 (www->): New string to close tag singletons like <img> or <hr>. In
106 XHTML mode (not implemented yet), this has to be changed from `>' to
108 (IMG): Don't use </img>
110 (PIMG, MPIMG): Don't use </img>
112 Fix doublequote issues.
113 (HR): Don't use </hr>.
115 (LNS): Fix doublequote issues.
117 2008-12-24 Michail Vidiassov <master@iaas.msu.ru>
119 * tmac/doc-common: Add entries for Mac OS X and FreeBSD.
121 2008-12-22 Alexey Gladkov <legion@altlinux.ru>
123 * contrib/groffer/perl/roff2.pl: Fix syntax error.
125 2008-12-15 Werner LEMBERG <wl@gnu.org>
127 * NEWS: Mention `preconv'.
129 2008-11-12 Werner LEMBERG <wl@gnu.org>
131 Implement `x' specifier for expanded columns. Contrary to old DWB
132 tbl, more than a single `x' specifier can be used. At the same
133 time, remove most of the code from change 2007-02-09 which collides
134 with the new implementation.
136 * src/preproc/tbl/main.cpp (format): Add `expand' array.
137 (format::format, format::~format): Updated.
138 (input_entry_format): Add `expand' field.
139 (input_entry_format::input_entry_format): Updated.
140 (input_entry_format::debug_print): Handle `expand'.
141 (process_format): Handle `x' specifier.
142 (process_data): Updated.
144 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): Remove.
145 (EXPAND_REG): New macro.
146 (table_entry::divert, block_entry::divert,
147 alphabetic_block_entry::divert): Add parameter to control whether
148 expanded columns shall be handled.
149 (block_entry::do_width): Remove.
150 (block_entry::do_divert): Add parameter to control whether expanded
151 columns shall be handled.
152 Treat expanded columns like columns with a minimum width.
153 Remove `experimental' code.
154 (table::table, table::~table, table::allocate): Updated.
155 (table::set_expand_column): New function.
156 (table::count_block_columns): Replace with...
157 (table::count_expand_columns): This function.
158 (table::divide_span): Handle expanded columns the same as equal
160 (table::sum_columns): Add parameter to control whether expanded
161 columns shall be handled.
162 (table::compute_available_block_width): Replace with...
163 (table::compute_expand_width): This function.
164 (table::compute_total_separation): New function, taking code from
165 `compute_separation_factor'.
166 (table::compute_separation_factor): Simpler code. The check for the
167 `EXPAND' flag has been moved to the caller.
168 (table::compute_widths): Add `top-level' changes to handle expanded
171 * src/preproc/tbl/table.h (table): New field `total_separation'.
172 Remove `blockflag' array.
174 Update member function declarations.
176 * src/preproc/tbl/tbl.man: Document `x' specifier.
177 Expand documentation to cover all aspects of Lesk's tbl reference.
179 * NEWS: Document `x' specifier.
181 2008-11-08 Werner LEMBERG <wl@gnu.org>
183 * src/preproc/tbl/tbl.man: Restructuring.
184 Improve text block documentation.
186 2008-11-07 Werner LEMBERG <wl@gnu.org>
188 * src/preproc/tbl/table.cpp (table::compute_widths): Use default
189 scaling operator for minimum width. Without this fix, `lw3' (or
190 `lw(3)' would be handled as a column with a minimum width of 3u
193 2008-11-05 Werner LEMBERG <wl@gnu.org>
195 * tmac/doc-common (Dt): Start a new page if necessary and set up
198 * tmac/andoc.tmac (reload-doc): Simplify due to change in
203 2008-10-18 Werner LEMBERG <wl@gnu.org>
205 * src/preproc/tbl/main.cpp (process_format): Rename `x' and `X' to
206 `m' and `M', respectively.
207 Sort entries in `switch' block.
208 * src/preproc/tbl/tbl.man: Updated.
209 Sort key entries; other minor improvements.
211 2008-10-17 Werner LEMBERG <wl@gnu.org>
213 * src/preproc/tbl/table.cpp (table::compute_available_block_width):
215 (table::compute_widths): Replace some code with new function
216 (shifted to a more appropriate place).
217 * src/preproc/tbl/table.h: Updated.
219 2008-10-16 Werner LEMBERG <wl@gnu.org>
221 * tmac/doc-common (doc-operating-system-*), tmac/groff_mdoc.man: Add
224 2008-10-13 Werner LEMBERG <wl@gnu.org>
226 * tmac/groff_mdoc.man: Update documentation on BSD-like OS string
229 2008-10-10 Werner LEMBERG <wl@gnu.org>
231 * man/roff.man, doc/groff.texinfo: Improve the history part. This
232 is based on input from Tom Van Vleck <thvv@multicians.org>.
235 * src/preproc/eqn/sqrt.cpp (sqrt_box::compute_metrics): Assure that
236 value of `rst' register is not zero, as can happen for the HTML
237 output device. Otherwise, there are too many loops, and we get a
238 stack overflow because of recursion.
240 2008-10-05 Stephen Gildea <http://www.gildea.com/stephen/>
242 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Do
243 not insert SORT_SEP before the first field, so that sort_key
244 has the same format as before the patch of 2003-08-23.
246 2008-10-04 Werner LEMBERG <wl@gnu.org>
248 * tmac/doc-common (doc-operating-system-*): Update releases.
250 * tmac/an-old.tmac (an-extra1, an-extra2, an-extra3): Initialize.
252 * tmac/andoc.tmac: Rewritten, based on a preliminary version from
253 Tadziu Hoffmann. It can now process multiple man pages with both
254 man and mdoc formats intermixed.
256 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
257 man/groff_tmac.man: Document it.
259 2008-10-04 Werner LEMBERG <wl@gnu.org>
261 * src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], and
262 \O[5] non-transparent w.r.t. beginning-of-line recognition (similar
263 to the other \O variants).
265 * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting up
266 default macros. This causes endless loops (at least for TE).
268 * doc/groff.texinfo: Improve documentation of `.als'.
270 2008-10-03 Werner LEMBERG <wl@gnu.org>
272 * src/devices/grops/grops.man, src/roff/troff/troff.man,
273 src/preproc/soelim/soelim.man: Correct documentation of -I switch.
274 Reported by Larry Kollar.
275 Other minor formatting issues.
277 2008-10-02 Werner LEMBERG <wl@gnu.org>
279 * tmac/trace.tmac: Much improved.
280 (trace-full): New register to be set on the command line; it
281 controls whether number and string register assignments get traced
283 (!!c): New macro for comments.
284 (rm): New traced macro.
285 (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to
286 `!!xxx'; this makes doc.tmac completely traceable.
287 Trace call of .de and friends also.
289 * tmac/groff_tmac.man, NEWS: Update.
291 2008-09-30 Werner LEMBERG <wl@gnu.org>
293 Restore behaviour of \$0 if a macro is called with string syntax
294 (problem caused by change on 2008-09-29).
296 * src/roff/troff/input.cpp (input_iterator, input_stack,
297 macro_iterator): Add `get_macro_name' member function.
298 (interpolate_string): Use it.
300 2008-09-29 Werner LEMBERG <wl@gnu.org>
302 Make \\*[xxx]\\ within a macro (with `xxx' a macro too) work as
303 expected. Without the patch,
314 prints `2 3' instead of `1 2 3'.
316 * src/roff/troff/input.cpp (input_iterator, input_stack,
317 macro_iterator): Add `get_arg_list' member function.
318 (macro): Add `is_a_string', `is_string', and `clear_string_flag'
320 Update constructors and operators.
321 (arg_list): Add copy constructor.
322 (macro_iterator): Add optional argument to constructor to indicate
323 whether arguments shall be inherited from calling macro.
324 (interpolate_string): If string argument is a macro, push a macro
325 iterator on the stack.
326 (do_define_macro): Call clear_string_flag if macro data contains a
329 * src/roff/troff/request.h: Updated.
331 2008-09-29 Eric S. Raymond <esr@snark.thyrsus.com>
333 * doc/pic.ms: Fold in documentation of pic2plot(1) capabilities.
334 Improve the documentation of text objects.
336 2008-09-28 Eric S. Raymond <esr@snark.thyrsus.com>
338 * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph,
339 contrib/eqn2graph.man: Tweak scripts to cope with incompatible
340 changes in ImageMagick crop options. Document the bugs.
342 2008-09-28 Werner LEMBERG <wl@gnu.org>
344 If a macro is called as a string, inherit value of \n[.br] from the
345 caller. This is useful for `trace.tmac'.
347 * src/roff/troff/input.cpp (string_iterator): New members
348 `with_break' and `get_break_flag'.
349 (string_iterator::string_iterator): Updated.
351 * doc/groff.texinfo: Improve documentation of \$0 and string syntax
353 Document behaviour of \n[.br] within strings.
355 2008-09-26 Werner LEMBERG <wl@gnu.org>
357 * tmac/trace.tmac: Add copyright message.
358 Use `.de1' where possible to make source code more readable.
359 (so, mso, als, rn): Restore escape character before executing the
361 (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'.
363 2008-09-24 Werner LEMBERG <wl@gnu.org>
365 Fix incompatibility between `.de1' and `.do'. Without this change,
366 the following snippet
374 prints 1 instead of 0.
376 * src/roff/troff/input.cc (do_request): If a macro gets processed,
378 (interpolate_macro): Add optional argument. Update callers.
379 (request::invoke): Add optional argument.
380 (macro::invoke): Add optional argument to delay call of tok.next().
382 * src/roff/troff/request.h (request_or_macro): Add argument to
383 `invoke' member. Update all derived classes.
385 * doc/groff.texinfo: Improve documentation of .do request.
387 2008-09-09 Werner LEMBERG <wl@gnu.org>
389 * tmac/an-old.tmac (FT): Initialize properly. Reported by Tadziu
392 2008-09-06 Werner LEMBERG <wl@gnu.org>
394 * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to make
395 `.Nm' work properly if next manual page is printed.
397 2008-08-20 Werner LEMBERG <wl@gnu.org>
399 * src/preproc/tbl/tbl.man: Document computation of element widths.
401 2008-08-20 Alexey Gladkov <legion@altlinux.ru>
402 Werner LEMBERG <wl@gnu.org>
404 Add default encoding option -D to preconv and groff.
406 * src/preproc/preconv/preconv.cpp (default_encoding): Make it an
409 (main): Handle new option -D.
411 * src/preproc/preconv/preconv.man: Updated.
413 * src/roff/groff/groff.cpp (main): Handle new option -D.
414 (synopsis, help): Updated.
415 * src/roff/groff/groff.man: Updated.
417 2008-07-26 Werner LEMBERG <wl@gnu.org>
419 * tmac/eqnrc (.EQ, .EN): Provide default definitions. Reported
422 * tmac/www.tmac (.EQ, .EN, .TS, .TE): Fix definitions.
424 2008-07-24 Denis M. Wilson <dmw@oxytropis.plus.com>
426 New options -f and -k for afmtodit.
428 * src/afmtodit/afmtodit.pl: New options `-f NAME' sets the internal
429 name of the groff font.
430 New option `-k' disables output of kerning data.
431 * src/afmtodit/afmtodit.man, NEWS: Document new options.
433 2008-07-18 Werner LEMBERG <wl@gnu.org>
435 * src/preproc/tbl/table.cpp (table::compute_separation_factor): Emit
436 warning messages if table gets squeezed.
437 (table::compute_widths): Fix computation of AVAILABLE_REG.
438 Emit warning if table is wider than line length.
440 * src/preproc/tbl/tbl.man: Minor improvements.
442 2008-05-02 Larry Jones <lawrence.jones@siemens.com>
444 * contrib/chem/Makefile.sub (README, examples/README): In makefiles,
445 the `$<' macro is only guaranteed to be defined in inference rules,
446 not in explicit target rules. Since there is only one input file in
447 the places where it is used, the `$?' macro (which is guaranteed to be
448 defined for both kinds of rules) is a suitable replacement.
450 * hdtbl/examples/fonts_n.in, hdtbl/examples/fonts_n.in: Most
451 versions of ls don't have a `--color' option.
453 2008-04-30 Larry Jones <lawrence.jones@siemens.com>
455 * Makefile.comm (depend.temp): Add `EXTRA_CCFLAGS'.
457 2008-04-29 Larry Jones <lawrence.jones@siemens.com>
459 * src/eqn/script.cpp (script_box::output): Portability fix.
461 2008-04-05 Dorai Sitaram <ds26gte@yahoo.com>
463 Add better support for `.TAG #<label>' in non-HTML documents: In
464 case of a forward reference in a call to .URL, write `(see below)'.
465 In case of a backwards reference use the page number instead. The
466 reference gets stored in a string `TAG_<label>' and can be
467 overridden while calling `.TAG' with its new optional argument --
468 this is useful for a second-pass system which resolves forward
471 * tmac/www.tmac (www:url_check_tag): New function.
473 (TAG): Add optional argument to define string `TAG_<label>'.
475 2008-03-24 Werner LEMBERG <wl@gnu.org>
477 * tmac/trace.tmac (so, mso): Added.
479 * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'.
480 If used with -mtrace, and this clause was active, the macro was
483 * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality.
484 This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML
486 * man/groff_tmac.man: Document it.
488 2008-02-26 Werner LEMBERG <wl@gnu.org>
490 * src/roff/troff/input.cpp: s/safer_flag/unsafe_flag/.
491 Update all occurrences so that \n[.U] works as advertised. Bug
492 reported by Dorai Sitaram.
494 2008-02-17 Werner LEMBERG <wl@gnu.org>
496 * doc/groff.texinfo: Improve documentation of .cf request.
498 2008-01-19 Werner LEMBERG <wl@gnu.org>
500 * src/preproc/html/pre-html.cpp (usage): Don't describe options but
501 mention that it should never be called stand-alone.
503 * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man,
504 man/groff_tmac.man, man/groff_out.man, README, README.MinGW,
505 src/roff/groff/groff.man: Mention -Txhtml.
507 * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.
509 2008-01-16 Werner LEMBERG <wl@gnu.org>
511 * src/libs/libgroff/font.cpp (font::contains, font::get_code):
512 Handle single-letter names correctly.
514 * doc/groff.texinfo, man/groff_diff.man: Extend documentation of \^
518 2008-01-15 Werner LEMBERG <wl@gnu.org>
520 * man/groff_font.man: Revised.
522 2008-01-14 Werner LEMBERG <wl@gnu.org>
524 * man/groff.man: Mention glyph and characters.
526 * man/groff_char.man: Minor updates.
527 * man/groff_diff.man: Better clarification between characters and
530 2008-01-12 Werner LEMBERG <wl@gnu.org>
532 * doc/groff.texinfo: Fix top-level structure to make it compilable
533 again with all texinfo modes. Reported by Jörg van den Hoff
534 <j.van_den_hoff@fzd.de>.
536 2008-01-11 Werner LEMBERG <wl@gnu.org>
538 * doc/pic.ms: Mention that compass points of line objects are
541 2008-01-06 Werner LEMBERG <wl@gnu.org>
543 * src/roff/troff/node.cpp (left_italic_corrected_node::add_self):
544 Don't remove itself if there is no glyph associated with the node
545 yet. This happens, for example, in this situation:
552 2008-01-05 Werner LEMBERG <wl@gnu.org>
554 * man/groff_char.man, man/groff.man: Revised.
556 * src/preproc/eqn/lex.cpp (troff_defs): Fix typo.
558 2008-01-04 Werner LEMBERG <wl@gnu.org>
559 * */*: s/Osanna/Ossanna/.
561 * */*.man: Replace .URL with .UR/.UE (except in groff_www.tmac).
562 Replace .MTO with .MT/.ME (except in groff_www.tmac).
563 Insert `\:' in URLs where appropriate.
564 Don't include www.tmac (except in groff_www.tmac).
566 * man/groff.man (.ESC[]): Fix font of closing bracket.
567 (.ESCq): Fix font of closing quote character.
568 Many other improvements.
570 2007-12-30 Bernhard Fisseni <bfi@ikp.uni-bonn.de>
572 * src/devices/grohtml/post-html.cc
573 (html_printer::writeHeadMetaStyle): Fix CSS output.
575 2007-12-29 Werner LEMBERG <wl@gnu.org>
577 * tmac/ec.tmac: Add CM fonts to the .fspecial lines; those fonts
578 contain additional glyphs (like some uppercase Greek letters).
580 2007-12-06 Werner LEMBERG <wl@gnu.org>
584 2007-12-06 Colin Watson <cjwatson@debian.org>
586 * src/roff/nroff/nroff.sh: Add options -w and -W.
587 * src/roff/nroff/nroff.man: Document them.
589 2007-12-06 Karl Berry <karl@freefriends.org>
591 * tmac/hyphenex.pl: Update header output.
593 2007-11-29 Werner LEMBERG <wl@gnu.org>
595 * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
597 2007-11-20 Werner LEMBERG <wl@gnu.org>
599 * doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
601 2007-11-17 Werner LEMBERG <wl@gnu.org>
603 * src/roff/nroff/nroff.sh: Handle GROFF_TYPESETTER environment
604 variable. Problem reported by Michael G Schwern
607 * src/roff/nroff/nroff.man: Document it.
610 2007-11-17 Heinz-Jürgen Oertel <hj.oertel@t-online.de>
612 * src/groff/preproc/pic/lex.cpp (table): Add box attributes
613 `xslanted' and `yslanted'.
615 * src/groff/preproc/pic/object.cpp (object_spec::object_spec):
616 Initialize `xslanted' and `yslanted'.
617 (graphic_object): Add methods `set_xlanted' and `set_yslanted'.
618 (closed_object): Ditto.
619 Add members `xslanted' and `yslanted'.
620 (box_object::print): Use them.
621 (object_spec::make_object): Handle slant values.
622 * src/groff/preproc/pic/object.h (IS_XSLANTED, IS_YSLANTED): New
624 (object_spec): Add members `xslanted' and `yslanted'.
625 * src/groff/preproc/pic/pic.y (XSLANTED, YSLANTED): New left-valued
629 * src/groff/preproc/pic/pic.man, NEWS, doc/pic.ms: Document above
632 2007-11-16 Werner LEMBERG <wl@gnu.org>
634 * tmac/hyphenex.pl: Generate copyright notice (this has been
635 approved by Barbara Beeton).
636 * tmac/hyphenex.us: Updated.
638 2007-11-10 Michail Vidiassov <master@iaas.msu.ru>
640 * tmac/doc-syms (doc-str-St--susv3): New string.
641 * tmac/groff_mdoc.man: Document it.
643 2007-11-08 Werner LEMBERG <wl@gnu.org>
645 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be',
646 `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'.
647 (is_comment_line): Handle '\" and '\# also.
649 * src/preproc/preconv/preconv.man: Revise and make complete.
651 2007-10-25 Werner LEMBERG <wl@gnu.org>
653 * tmac/cs.tmac: New file holding Czech strings, contributed by
654 Marcela Maslanova <mmaslano@redhat.com>.
655 * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files
656 for Czech, taken from CTAN.
658 * tmac/Makefile (NORMALFILES): Add Czech stuff.
659 * doc/groff_tmac.man: Mention cs.tmac.
661 2007-10-21 Werner LEMBERG <wl@gnu.org>
663 * src/roff/troff/input.cpp (do_ps_file): Handle `%X' in header
664 comments correctly. Reported by Frank Jahnke
665 <jahnke@sonatabio.com>.
667 2007-10-02 Ruslan Ermilov <ru@FreeBSD.org>
669 * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
672 * tmac/doc-syms: Give better names for System V releases.
674 2007-09-25 Gaius Mulley <gaius@glam.ac.uk>
676 * doc/Makefile.in, doc/Makefile.sub (.ms.html): Add -P-V switch to
677 the production of html files.
679 Remove background colour switch.
680 (.SUFFIXES, clean): Handle *.xhtml files.
682 * src/devices/grohtml/grohtml.man: Document that -V option now
683 generates an HTML-4.01 validator or XHTML validator.
685 * src/devices/grohtml/html-text.cpp (html_text::end_tag,
686 html_text::start_tag): Suppress <small>, <big>, and <color> tags if
687 we are inside a <pre> block.
689 * src/devices/grohtml/post-html.cpp
690 (html_printer::handle_valid_flag): Add a parameter to indicate
691 whether it needs to generate a paragraph block.
692 (html_printer::write_navigation): Updated.
693 (html_printer::do_file_components): Generate an HTML-4.01 blue
694 validator button also.
696 2007-09-23 Axel Kielhorn <A.Kielhorn@web.de>
698 * man/groff.man: Fix URL of CSTR 54.
700 2007-09-23 Werner LEMBERG <wl@gnu.org>
702 * man/groff_char.man: Normalize character set names as defined
703 by IANA. Based on a patch from Axel Kielhorn.
705 * src/preproc/refer/label.y: Undo change from 2007-09-19.
707 2007-09-19 Werner LEMBERG <wl@gnu.org>
709 * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
712 * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
713 Remove compiler warning.
715 * src/preproc/refer/label.y: Remove compiler warning.
717 * src/preproc/pic/pic.y: Remove doubled token entries.
719 2007-09-19 Gaius Mulley <gaius@glam.ac.uk>
721 * doc/groff.texinfo: Document new .O register and add cross
726 * src/devices/grohtml/grohtml.man: Document new -V and -y options.
728 * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
729 (html_table:: emit_colspan, html_table::emit_td): New methods.
730 (html_table::emit_col): Use html_table::emit_td.
731 (html_table::emit_table_header): Use html_table::emit_colspan if
732 dialect xhtml is specified.
733 (html_table::finish_row): Updated.
735 * src/devices/grohtml/html-table.h (html_table): Declare
736 emit_colspan, emit_td.
738 * src/devices/grohtml/html-text.cpp: Modified tags to comply with
739 xhtml if this dialect was requested.
741 * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
742 (html_text): Add new variable `dialect'.
744 * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
746 (valid_flag, groff_sig, dialect): New global variables.
747 (html_printer::handle_valid_flag, html_printer::do_math,
748 html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
749 html_printer::do_math, html_printer::handle_valid_flag): New
751 (html_printer::emit_line, html_printer::emit_raw,
752 html_printer::do_check_center, html_printer::write_title,
753 write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
754 html_printer::begin_page): Altered to be XHTML compliant.
755 (html_printer::write_header): Updated.
756 (html_printer::troff_tag): Call do_math.
757 (html_printer::insert_split_file, html_printer::do_file_components,
758 html_printer::write_navigation): Create XHTML file components if
759 necessary and also produces a groff signature if requested.
760 (~html_printer): Call writeHeadMetaStyle at appropriate places
761 depending upon html_dialect.
762 (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
763 (main): Added options -x, -V, and -y.
766 * src/preproc/eqn/box.cpp: Create a distinction between
767 the MathML device and the XHTML device.
768 (do_text): Issue a newline at the end of the equation if XHTML was
770 (box::top_level): Prefix the output of an equation by the .MATHML
772 (output_string): Suppress \n if XHTML was specified.
774 * src/preproc/eqn/main.cpp (xhtml): New global flag.
775 (inline_equation): Skip leading spaces after inline equation for
777 (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
779 * src/preproc/eqn/eqn.h (xhtml): New external flag.
781 * src/preproc/eqn/text.cpp (entity_table): Fix typo.
783 * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
784 (dialect, eqn_flag): New global variables.
785 (html_system): Improve debugging support.
786 (alterDeviceTo): Test for -Txhtml when altering device to the image
787 device and reset to -Txhtml.
788 (addZ): Renamed to...
790 Introducea a general parameter.
791 (print_args): New debugging function.
792 (char_buffer::run_output_filter): Use print_args and addArg rather
794 (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
795 line parameter as an argument to the html generation of text when
796 xhtml is needed. Include -e on the command line if mathml is
798 (scanArguments): Allow -e, -V, -y and -x options.
799 -V, -y are handled by the back end. -e sets `eqn_flag'.
800 -x determines HTML dialect.
802 * src/roff/groff/groff.cpp (possible_command): New method
804 (main): Set eflag if -e is present on command line.
805 Set is_xhtml if -Txhtml is present.
806 Pass `-x x' to the HTML pre and post processors.
807 Pass `-e' to the HTML pre processor if required.
808 Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
810 * src/roff/troff/input.cpp (init_input_requests): Introduce new
811 number register `\n[.O]'.
813 * tmac/s.tmac: (LP): Use .nop for semantic sugar.
814 (cov*ab-init) reformat.
815 (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
816 (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
817 <cite></cite> for the html device rather than generate images for
820 * tmac/troffrc-end: Define EQN-HTML-IMAGE,
821 EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
822 EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
823 EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
825 * tmac/www.tmac: (HTML<?p>): New macro.
826 (MATH<?p>): New macro.
827 (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
828 (www-emit-ltag): New macro.
829 (www-push-li): Updated.
830 (ULS): Ensure that tags are balanced in order by use of
832 (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
834 (OLS, OLE, DLS, DLE): Ditto.
835 <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
837 (www-li-ul, www-li-ol, www-li-dl): Updated.
838 (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
839 EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
842 2007-09-17 Werner LEMBERG <wl@gnu.org>
844 * man/groff_font.man: Document `unicode' keyword.
845 * doc/groff.texinfo (DESC File Format): Synchronize with
848 2007-09-15 Werner LEMBERG <wl@nu.org>
850 * man/groff.man: Document `\_'.
851 * doc/groff.texinfo: Ditto.
852 Remove references to `\@' which isn't a valid escape sequence in
856 * tmac/unicode.tmac: Add ` and '.
857 * tmac/html.tmac: Load unicode.tmac.
859 2007-09-14 Werner LEMBERG <wl@gnu.org>
861 * tmac/unicode.tmac: Make `-' a pure input character by mapping it
864 * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
866 2007-09-11 Werner LEMBERG <wl@gnu.org>
868 * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
871 * src/preproc/tbl/table.cpp (table::allocate): Initialize
874 2007-09-10 Keith Marshall <keith.d.marshall@ntlworld.com>
876 * README.MinGW: Add warnings about use of MSYS-RXVT, and about
877 defective GnuWin32 versions of netpbm/libpng.
879 2007-07-15 Keith Marshall <keith.d.marshall@ntlworld.com>
881 * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
884 2007-07-11 Werner LEMBERG <wl@gnu.org>
886 * gendef.sh: Add shebang.
888 2007-07-05 Werner LEMBERG <wl@gnu.org>
890 * tmac/papersize.tmac: Fix dimensions of executive paper format.
891 Reported by John Rupley <rupley@u.arizona.edu>.
893 2007-07-02 Keith Marshall <keith.d.marshall@ntlworld.com>
895 * tmac/s.tmac (cov*first-page-init): Emit error message if not in
896 top-level environment.
898 2007-06-12 Werner LEMBERG <wl@gnu.org>
900 * src/devices/xditview/TODO, NEWS: Updated.
901 * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
902 Handle `GXditview-color'.
903 * src/devices/xditview/gxditview.man: Updated.
905 * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
906 * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
907 from `gnulib' git repository.
909 * configure.ac: Updated.
910 * configure: Regenerated (using autoconf 2.61).
912 * config.guess, config.sub: Updated from `config' CVS repository.
913 * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
916 2007-06-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
918 * src/devices/xditview/GXditview.ad: Split off color definitions
920 * src/devices/xditview/GXditview-color.ad: This new file.
922 2007-06-08 Fabrice Ménard <menard.fabrice@wanadoo.fr>
924 * tmac/fr.tmac: Handle chapter system for `me'.
926 2007-06-05 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
928 * src/devices/xditview/xditview.c (main): Add support for
931 * src/devices/xditview/GXditview.ad: Updated.
932 Make widget more colourful.
934 2007-05-30 Werner LEMBERG <wl@gnu.org>
936 * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
937 Recommend `tbl' instead of `-column' lists for more complicated
940 2007-05-21 Werner LEMBERG <wl@gnu.org>
942 * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
945 2007-04-10 Werner LEMBERG <wl@gnu.org>
947 In pic, make rounded boxes work with colors. Reported by Urs Eggli
948 <Urs.Eggli@zuerich.ch>.
950 * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
951 (output): Add color parameter to `rounded_box' member function.
953 * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
955 * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
956 to `out->rounded_box'.
958 2007-04-09 Michail Vidiassov <master@iaas.msu.ru>
960 * font/devps/generate/textmap: Add Greek letters and some more.
962 * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
963 `Omega', and `mu' to the ones from aglfn.txt.
965 2007-04-08 Keith Marshall <keith.d.marshall@ntlworld.com>
967 * tmac/s.tmac (SN): Define unconditionally.
968 (SN-STYLE): New string; define.
970 * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
972 2007-03-22 Werner LEMBERG <wl@gnu.org>
974 * tmac/pspic.tmac: Fix harmless numeric overflow warning. Reported
975 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
977 2007-03-20 Werner LEMBERG <wl@gnu.org>
979 * tmac/trace.tmac (rn): Added.
980 (nr, ds, ds1, as, as1, substring): Restore escape character while
982 (nr): Remove dead code.
984 * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
985 definitions to make them traceable.
987 2007-03-19 Werner LEMBERG <wl@gnu.org>
989 * src/roff/troff/input.cpp (get_copy): Add third argument to control
990 whether \E shall be expanded.
991 (get_char_for_escape_name): Allow \E.
993 2007-03-15 Werner LEMBERG <wl@gnu.org>
995 * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
996 par*define-font-macro, \[hooko]): Use \E to make it traceable.
998 (ref*field): Add argument to control the space between previous and
1001 (ref*add-N): Fix handling of opening parenthesis. Problem reported
1002 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
1004 2007-03-14 Werner LEMBERG <wl@gnu.org>
1006 * tmac/trace.tmac (als): Added.
1007 (de, de1, am, am1): Make traced macros aliased with .als work.
1009 2007-02-25 Werner LEMBERG <wl@gnu.org>
1011 * src/devices/xditview/TODO: Add some more items.
1013 * Makefile.comm (.man.n): Add @APPRESDIR@.
1016 * src/devices/xditview/gxditview.man: Document GXditview resource
1018 Other documentation enhancements based on a patch from Jörg.
1020 2007-02-25 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1021 Joerg van den Hoff <j.van_den_hoff@fzd.de>
1023 * src/devices/xditview/GXditview.ad: Make all keys work regardless
1024 of the current mouse position.
1026 2007-02-20 Werner LEMBERG <wl@gnu.org>
1028 * tmac/groff_man.man: Revised to improve visual appearance.
1029 Reduce use of future tense.
1031 * tmac/groff_trace.man: Revosed to improve visual appearance.
1033 2007-02-19 Eric S. Raymond <esr@snark.thyrsus.com>
1035 Make groff.man viewer-portable.
1037 * tmac/groff.man: Eliminate use of .eo/.ec.
1038 (.REQ): Surround args 2 through N with quotes. This will enable us
1039 not to rely on the shift request, which is nonportable.
1040 (ExecFF): Remove. The code is simpler without it.
1042 2007-02-18 Eric S. Raymond <esr@snark.thyrsus.com>
1044 * tmac/groff_www.man: Viewer-portability fixes.
1046 2007-02-16 Eric S. Raymond <esr@snark.thyrsus.com>
1048 * man/groff.man: Remove some unneeded code and a no-longer-used
1049 inclusion of the www macros.
1051 2007-02-12 Werner LEMBERG <wl@gnu.org>
1053 * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
1055 (table::compute_widths): Simplify.
1057 2007-02-11 Werner LEMBERG <wl@gnu.org>
1059 * src/preproc/tbl/table.h: Don't include `stdbool.h'.
1060 (table): Replace `bool' type with `char' for orthogonality.
1063 * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
1064 AVAILABLE_REG and COLCOUNT_REG.
1065 (table::table): Fix order call of initializers.
1066 (table::~table): Deallocate `blockflag'.
1068 2007-02-09 Eric S. Raymond <esr@snark.thyrsus.com>
1070 A try at the new rule for block column allocation is now enabled by
1071 the new `experimental' global option: The horizontal space up to the
1072 right margin which is not used by columns without text blocks is
1073 evenly distributed to the columns with text blocks.
1075 It doesn't work right as yet; there appears to be some error in the
1076 computation of `3avail', the available line length. The purpose of
1077 this patch is (a) to make experimenting with other formulas easy,
1078 and (b) leave the infrastructure for flag `experimental' in place
1079 for future experiments. Do not document any behavior associated
1082 * src/preproc/tbl/table.h: Include `stdbool.h'.
1083 (table): Make `flags' public.
1084 Add `count_block_columns' function.
1085 Add `blockflag' array.
1086 Add `EXPERIMENTAL' enumeration value.
1088 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
1090 (table_entry): New member `parent' so that class and subclass
1091 members can set a parent field. Update all users.
1092 (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
1093 (block_entry::do_width): Set the parent's `blockflag'.
1094 (table::allocate): Handle `blockflag'.
1095 (table::count_block_columns): New function.
1096 (compute_span_width): Adjust AVAILABLE_REG.
1097 (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
1099 * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
1102 2007-02-08 Zhao, Yu (William) <yzhao2@alcatel-lucent.com>
1104 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
1107 2007-02-08 Werner LEMBERG <wl@gnu.org>
1109 * man/groff_out.man (offset): Make it work reliably.
1111 2007-02-07 Eric S. Raymond <esr@snark.thyrsus.com>
1113 * man/groff_out.man: Simplify some font changes so \fP is less
1114 likely to do something surprising.
1116 * man/groff_out.man: We can simplify the command macros still
1117 further if we stop trying to hide structural requests inside them.
1118 Also, fix some instances of \} at start of line without a dot, and
1119 make some font changes explicit in strings.
1121 * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
1124 * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
1125 calls and fix macros to do without them. File should now be
1128 * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
1129 micromotions that produce the same visual result and can be lifted
1132 * man/groff_out.man: Third step: Reduce Da-comand, fix a
1133 call-sequence bug in the original.
1135 * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
1136 move font-change escapes to portable form.
1138 * man/groff_out.man: First step in macro simplification; eliminate
1139 list1..n, simplify .offset and .index_offset so they no longer
1140 require groff-specific features or eqn (instead, use troff
1141 micromotions for subscripting).
1143 2007-02-06 Eric S. Raymond <esr@snark.thyrsus.com>
1145 * src/preproc/eqn/eqn.man: Minor corrections.
1147 * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
1148 longer takes a second argument that is pasted to the end of the
1149 generated text. Instead, the end macro takes an argument that does
1152 * man/ditroff.man, man/groff_diff.man, man/groff.man,
1153 man/groff_out.man, man/groff_tmac.man, man/roff.man,
1154 src/roff/groff/groff.man, src/roff/grog/grog.man,
1155 tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
1157 * src/roff/troff/troff.man: .SY and .YS are canned macros now,
1158 so we can use them here.
1160 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
1162 * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
1163 By popular demand, make ... set three lower dots again
1164 and introduce a new predefined macro 'cdots' to set
1165 three centered dots.
1167 2007-02-05 Werner LEMBERG <wl@gnu.org>
1169 * src/preproc/eqn/eqn.man: Revised.
1171 * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
1173 (spacing_type): Fix typo.
1174 (special_to_entity): Use `const'.
1175 Remove unused variable.
1176 * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
1178 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
1180 * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
1181 which is a shame as the effect was cute.
1183 2007-02-04 Eric S. Raymond <esr@snark.thyrsus.com>
1185 * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
1186 rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
1187 possible, remove preamble declarations and macros that are no
1188 longer needed. Conversion checked using the protocol described in
1191 2007-02-03 Werner LEMBERG <wl@gnu.org>
1193 * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
1196 2007-02-03 Eric S. Raymond <esr@snark.thyrsus.com>
1198 * tmac/groff_man.man: Documented the extension macros, and
1199 added portability advice.
1201 * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
1204 Add support for MathML output to eqn.
1206 The strategy used is very simple and relies on the fact that the box
1207 models of eqn and Presentation MathML differ in only trivial ways.
1208 It leaves the grammar and existing internal object structures
1209 unchanged. A new global, `output_format', is defined as an
1210 enumerated type with values {troff, mathml}. Most of the functions
1211 and methods that emit actual output acquire a top-level conditional,
1212 dispatching on this global, which has one arm for troff mode and one
1213 for MathML mode. In most cases the MathML arm is drastically
1216 (This strategy could be easily generalized to support other output
1217 formats. TeX is a possibility that leaps to mind.)
1219 The only even moderately tricky changes are in the lexer. Some of
1220 the predefined macros used constructs like `up', `down', `fwd',
1221 `back', and `vcenter' that have no equivalents in MathML. I
1222 attacked this problem in these ways:
1224 1. I eliminated three uses of `back' to compose characters in favor
1225 of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
1226 that did not exist when these macros were written. (This will be
1227 a quality improvement for troff users.)
1229 2. I eliminated one use of `vcenter' by using \\(md. (Likewise...)
1231 3. I then split the table of pre-definitions in three; one large
1232 common table and two small troff-specific and MathML-specific
1233 tables. Use of troff-only operations (up, down, back, fwd,
1234 vcenter) is now confined to the former. The latter now uses
1235 `size big' and drops out the explicit positioning operations,
1236 counting on MathML processors to do them.
1238 POTENTIAL TROUBLE SPOTS:
1240 Here are notes for reviewers on places I'm not 100% sure I've done
1243 * In the process of preparing the troff table, I translated three
1244 definitions (dot_def, dotdot_def, and utilde def) that previously
1245 used explicit \v escapes to use `up' and `down' instead. I
1246 modeled the new definitions on the way `vec' and `dyad' work, but
1247 it's possible I got something subtle wrong.
1249 * I'm not certain the MathML implementation of font_box::output() is
1250 right, because I don't quite get what the switcheroo between
1251 `current_roman_font' and `old_roman_font' is supposed to
1252 accomplish. It does seem to generare good MathML, though.
1254 Finally, I made one purely cosmetic change in `text.cpp'; I replaced
1255 with an enum some magic numbers for spacing types that I thought
1256 were too ugly to live.
1260 The entirety of eqn is translated when `-TMathML' is specified,
1261 with the following exceptions...
1263 Limitations that cannot be fixed include non-support for special,
1264 up/down/fwd/back, and vcenter.
1266 Limitations that might be fixable include non-support for mark and
1267 lineup. I will investigate further, but if these can be implemented
1268 at all it's going to be in a very complicated and nasty way.
1270 The way character boxes are output means that each digit of a
1271 multi-digit number gets its own <mn></mn> tag pair in the MathHTML.
1272 While this is not technically wrong for Presentation MathML, it is
1273 ugly and inefficient. Fixing this will require implementing a
1274 little state machine in the `text.cpp' output method.
1276 * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp,
1277 src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man,
1278 src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
1279 src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp,
1280 src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp,
1281 src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
1282 src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
1283 src/preproc/eqn/eqn.man: MathML output mode.
1285 * NEWS: Document it.
1287 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1289 * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
1290 and for cross-viewer portability. Conversion checked
1291 using the protocol described in tmac/TESTING-HINTS.
1293 2007-02-02 Werner LEMBERG <wl@gnu.org>
1295 * tmac/an-ext.tmac (ME): Don't use `\:'.
1297 * src/roff/grog/grog.man: Further refinements and normalizations.
1299 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1301 * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
1302 cross-viewer portability. Conversion checked using the protocol
1303 described in tmac/TESTING-HINTS.
1305 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1307 * tmac/TESTING-HINTS: Added.
1309 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1311 Enable the support for Bell archaisms on .SC, so the `-r bell'
1312 switch is no longer needed to format old AT&T papers like
1315 * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
1317 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
1319 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1321 Add some Bell labs extensions to the -ms macros.
1323 * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
1325 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
1327 2007-01-30 Werner LEMBERG <wl@gnu.org>
1329 * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
1330 (\n[mH]): New register (set if grohtml is used).
1331 (\n[SY]): Rename to \n[mS].
1332 (\n[a]): Rename to \n[mA].
1333 (\n[i]): Rename to \n[mI].
1334 (mU): New auxiliary input trap macro.
1335 (UR, UE): Replace stub with real definition.
1337 (MT, ME): New macros.
1339 (EX, EE): Don't insert vertical space.
1340 Use a register to store (and restore) the current font.
1342 * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
1343 on patches from Eric Raymond.
1346 2007-01-22 Gaius Mulley <gaius@glam.ac.uk>
1348 * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
1350 2007-01-22 Werner LEMBERG <wl@gnu.org>
1352 * tmac/an-ext.tmac: Protect against being sourced twice.
1353 (URL, EE): Use always two backslashes.
1356 2007-01-16 Werner LEMBERG <wl@gnu.org>
1358 * tmac/an-ext.tmac: Remove code for grodvi.
1360 Don't insert empty line.
1361 (URL, TQ): Fix typos.
1363 2007-01-14 Werner LEMBERG <wl@gnu.org>
1365 * tmac/an-ext.tmac: New file, containing extension macros
1366 for -man. See discussion on the groff mailing list for
1367 background information.
1368 * tmac/an-old.tmac: Load an-ext.tmac.
1369 Decorate .ds and as with comment escapes where appropriate.
1370 * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
1372 2007-01-05 Werner LEMBERG <wl@gnu.org>
1374 * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
1376 2007-01-04 Gaius Mulley <gaius@glam.ac.uk>
1378 Make -me macros ready for grohtml.
1380 * tmac/e.tmac: Load devtag.tmac.
1381 (need_eo_h, need_eo_tl, need_tl): New registers.
1382 (check_need_title, (x-html, )x-html, xp-html): New macros.
1383 (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
1384 b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
1385 (bp): Rename to @b only if output device is not html.
1387 2007-01-01 Werner LEMBERG <wl@gnu.org>
1389 * man/groff_font.man: Document empty lines.
1391 * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
1392 the very beginning of the output.
1393 [!$opt_x]: Fix typo.
1395 * font/devps/*: Regenerate font definition files.
1397 2007-01-01 Werner LEMBERG <wl@gnu.org>
1399 * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
1401 * font/devps/*: Regenerate font definition files.
1403 2006-12-31 Werner LEMBERG <wl@gnu.org>
1405 * Makefile.in (oldfontdir): New variable.
1406 (MDEFINES): Add $(oldfontdir).
1407 (uninstall_dirs): Remove `current' link.
1408 Remove $(oldfontdir).
1410 * Makefile.comm (oldfontsubdir): New variable.
1411 (install_dev): Install files collected in $(OLDDEVFILES) into
1413 (uninstall_dev): Remove data in $(oldfontsubdir).
1414 (.man.n): Handle @OLDFONTDIR@.
1416 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1417 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1418 src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
1419 Document GROFF_FONT_PATH.
1421 * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
1422 old font description files.
1424 * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
1427 * font/devps/old/*: New directory, holding the previous version
1428 of the 35 Adobe core font description files.
1430 * font/devps/*: Regenerated the 35 Adobe core fonts, using the
1431 Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
1433 * NEWS: Document font update.
1435 2006-12-31 Werner LEMBERG <wl@gnu.org>
1437 * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
1439 * Makefile.comm (fonts): New (empty) target.
1440 * Makefile.in (TARGETS): Add `fonts'.
1442 * MANIFEST: Add `chem'.
1444 * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
1447 2006-12-26 Werner LEMBERG <wl@gnu.org>
1449 * src/preproc/grn/hdb.cpp: Include gprint.h later. From NetBSD.
1451 2006-12-19 Werner LEMBERG <wl@gnu.org>
1453 Add support for German. For activation, simply use -mde or -mden
1454 (for traditional and new orthgraphy, respectively) as the last
1457 * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
1458 tmac/hyphenex.det: New files, partly taken from CTAN.
1459 * LICENSES: Updated list of hyphenation patterns.
1460 * man/groff_tmac.man: Mention de.tmac and den.tmac.
1463 2006-12-11 Werner LEMBERG <wl@gnu.org>
1465 Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
1468 * src/preproc/pic/lex.cpp (ARG1): Redefine. Update all users.
1469 (MAX_ARG): New macro. Use it everywhere to replace hard-coded
1470 limit of 9 arguments.
1471 (process_body): Handle argument numbers with more than a single
1473 (interpolate_macro_with_args): Protect against exceeding number of
1476 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
1478 2006-12-10 Werner LEMBERG <wl@gnu.org>
1480 * Makefile.in (site.exp, docheck): Commented out. Not working
1482 (check): Just emit dummy message.
1484 2006-12-08 Werner LEMBERG <wl@gnu.org>
1486 During installation, create soft link from <version> to `current' in
1489 * Makefile.comm (install): Renamed to...
1491 (prefix_must_exist): Removed. Code moved to Makefile.in.
1493 * Makefile.in (TARGETS): Remove `install'.
1495 (install): New target which first creates the directory given by
1496 --prefix, then calling `make' to do the installation, and finishing
1497 with the creation of the soft link.
1499 2006-11-21 Werner LEMBERG <wl@gnu.org>
1501 * doc/Makefile.sub (uninstall_sub): Fix names for info files.
1503 2006-11-18 Werner LEMBERG <wl@gnu.org>
1505 * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
1506 information from Tom Van Vleck <thvv@multicians.org>.
1508 2006-11-16 Werner LEMBERG <wl@gnu.org>
1510 * tmac/62bit.tmac: New macro package.
1511 * tmac/Makefile.sub (NORMALFILES): Add it.
1512 * NEWS: Document it.
1514 * tmac/trace.tmac: Protect against being loaded again.
1515 (nr): Always show result.
1517 * doc/groff.texinfo (Input Encodings): Document latin-5.
1519 * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
1521 2006-11-13 Werner LEMBERG <wl@gnu.org>
1523 * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
1524 on negative trap positions.
1526 2006-11-10 Werner LEMBERG <wl@gnu.org>
1528 * Makefile.comm (.man.n): Handle @DATASUBDIR@.
1530 2006-11-09 Werner LEMBERG <wl@gnu.org>
1532 * INSTALL: Move information about external installation from
1533 INSTALL.gen into this file.
1536 * INSTALL.gen: Update to new version (from texinfo CVS).
1538 2006-11-09 Bernd Warken
1540 * INSTALL.gen: Extend the file by information on `external
1541 installation'. Reorder the installation instruction as `normal
1544 2006-11-08 Werner LEMBERG <wl@gnu.org>
1546 * doc/Makefile.sub (install_data): Take care of proper paths while
1547 installing info files. Bug reported by Bernd Warken.
1549 2006-11-06 Bernd Warken
1551 * src/roff/grog/grog.pl: Rewrite.
1552 - Call by `#! /usr/bin/env perl'. That isn't replaced.
1553 - Rename usage() to version().
1555 - For `use strict', start all global variables with an upper case
1556 character. Use `my' for all variables. Use several new variables.
1558 - Add copyright to GPL and Emacs comment.
1559 - Handle several `-m*' options.
1560 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1561 - Allow options after file names.
1562 - Allow only one `-' parameter (standard input).
1563 - Add option abbreviations.
1564 - Expand the usage information.
1566 - Add single quote "'" as additional first character and allow
1567 arbitrary space after the first character.
1569 * src/roff/grog/grog.sh: Rewrite.
1570 - Remove option `-e' of `sed'.
1571 - Allow file names with space characters.
1573 - Add copyright to GPL.
1574 - Handle several `-m*' options.
1575 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1576 - Allow options after file names.
1577 - Allow only one `-' parameter (standard input).
1578 - Add option abbreviations.
1579 - Expand the usage information.
1581 - Add single quote "'" as additional first character and allow
1582 arbitrary space after the first character.
1584 * src/roff/grog/Makefile.sub:
1585 - Add copyright to GPL.
1586 - Remove `grog:'. Move `grog.old:' to `grog:' in order to have a
1587 fair chance to choose between the shell version and the Perl
1588 version of `grog'. This is now again comparable to grog in groff
1591 * src/roff/grog/grog.man: Rewrite.
1592 - Move the license to GPL.
1593 - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
1594 - Take over some setup and macros from `groffer'.
1595 - Add information on options.
1597 2006-10-28 Werner LEMBERG <wl@gnu.org>
1599 * tmac/trace.tmac: Improve tracing of `.nr'.
1600 Trace `.substring' also.
1604 2006-10-28 Bernd Warken
1606 * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
1607 of groff development site, fix fonts.
1609 * News: Add information on `chem' and `groffer'.
1611 2006-10-26 Bernd Warken
1613 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
1615 2006-10-26 Werner LEMBERG <wl@gnu.org>
1617 Add `\$^' escape to handle the parameters to a macro as a string
1620 * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
1622 * src/roff/troff/input.cpp (input_iterator, input_stack,
1623 macro_iterator): Add `space_follows_arg' member function.
1624 (macro_iterator::add_arg): Add parameter to set the `space_follows'
1626 (arg_list): Add member `space_follows'.
1627 Update constructor and all callers.
1628 (decode_args): Store discarded double quotes.
1629 (interpolate_args): Handle DOUBLE_QUOTE.
1631 (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
1633 * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
1635 * docs/groff.texinfo (Parameters), man/groff.man,
1636 man/groff_diff.man, NEWS: Document it.
1638 2006-10-24 Bernd Warken
1640 * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
1642 2006-10-24 Werner LEMBERG <wl@gnu.org>
1644 * tmac/groff_trace.man: Mention problem with `\\\\'.
1646 2006-10-23 Werner LEMBERG <wl@gnu.org>
1648 * doc/groff.texinfo (Expressions): Improve documentation of `!'.
1650 * tmac/trace.tmac (return): Don't call `substring'.
1652 2006-09-10 Werner LEMBERG <wl@gnu.org>
1654 * src/roff/troff/input.cpp (read_size): Revert previous change
1657 * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
1659 2006-09-09 Werner LEMBERG <wl@gnu.org>
1661 * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
1662 behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
1663 point size to 1). Reported by Gunnar Ritter.
1664 Also catch `\s-[-...]' and friends (causing an error).
1666 2006-09-06 Werner LEMBERG <wl@gnu.org>
1668 * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
1669 space only if there is no previous space. This fixes a bug which
1670 caused unwanted filling of the last line in a paragraph. Thanks to
1671 Gunnar Ritter for an analysis.
1673 2006-09-03 Werner LEMBERG <wl@gnu.org>
1675 * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
1676 Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
1678 2006-09-01 Nick Stoughton <nick@msbit.com>
1679 Werner LEMBERG <wl@gnu.org>
1681 Add a request `pev' to print environment information (similar to
1682 `pnr' and `ptr' to print number registers and traps).
1684 * src/roff/troff/env.h (environment): Add member function print_env.
1686 * src/roff/troff/env.cpp: (environment::print_env): New function to
1687 print a given environment state.
1688 (print_env): New global function to iterate through the
1689 environments, printing each one.
1690 (init_env_requests): Register `pev'.
1692 * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
1693 NEWS: Document `pev' request.
1695 2006-09-01 Bernd Warken
1697 * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
1700 2006-09-01 Werner LEMBERG <wl@gnu.org>
1702 * src/preproc/pic/main.cpp (usage): Add missing options.
1704 2006-08-25 Werner LEMBERG <wl@gnu.org>
1706 * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1709 2006-08-19 Werner LEMBERG <wl@gnu.org>
1711 * configure: Regenerated.
1713 2006-08-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1715 * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1716 logic; it previously caused an `expr' syntax error, if no version of
1717 `makinfo' was present. Also, remove dependency on `makeinfo' in VPATH
1718 builds, if an up to date `groff.info' is present in either `builddir'
1721 2006-08-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1723 * font/devps/prologue.ps: Add BPhook.
1725 * src/devices/grops/grops.man: Document BPHook.
1726 Reorder some sections for better readability.
1728 2006-08-12 Werner LEMBERG <wl@gnu.org>
1730 * src/include/lib.h (getlocale): New macro.
1731 (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1734 * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1736 2006-08-11 Werner LEMBERG <wl@gnu.org>
1738 Add new flag to .cflags to enable hyphenation without looking at
1741 * src/roff/troff/charinfo.h (charinfo): New enumeration value
1743 New member function `ignore_hcodes'.
1745 * src/roff/troff/node.cpp (break_char_node::add_self,
1746 node::add_char): Updated.
1748 * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1750 2006-08-09 Werner LEMBERG <wl@gnu.org>
1752 Support composite Unicode characters again. Reported by Colin.
1754 * font/devhtml/R.proto: Renamed to...
1755 * font/devhtml/R.in: This.
1757 * font/devutf8/R.proto: Renamed to...
1758 * font/devutf8/R.in: This.
1761 * font/make-Rproto: New script.
1762 * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1764 2006-07-26 Werner LEMBERG <wl@gnu.org>
1766 * README: Fix description of CVS access. Reported by Joachim.
1768 2006-07-11 Werner LEMBERG <wl@gnu.org>
1770 Add a request `.fzoom' and a number register `.zoom' to magnify
1773 * src/include/font.h (font): Add member variable `zoom'.
1774 Add member functions `set_zoom' and `get_zoom'.
1775 Remove `static' attribute from `scale' member function.
1777 * src/libs/libgroff/font.cpp (font::font): Updated.
1778 (scale_round): New version with three parameters to handle zoom
1780 (font::scale, font::get_width): Handle zoom factor.
1781 (font::set_zoom, font::get_zoom): New functions.
1782 (font::load): Handle `zoom' while computing `space_width'.
1784 * src/roff/troff/env.h: Declare `env_get_zoom'.
1785 (environment): Add member function `get_zoom'.
1787 * src/roff/troff/env.cpp (environment::get_zoom): New function.
1788 (init_env_requests): Initialize `.zoom' register.
1790 * src/roff/troff/node.cpp (font_info): New member functions
1791 `set_zoom' and `get_zoom'.
1792 (tfont): New member function `get_zoom'.
1793 (env_get_zoom): New function.
1794 (troff_output_file::set_font): Handle zoom factor.
1795 (font_zoom_request): New function.
1796 (init_node_requests): Initialize `fzoom' request.
1798 * docs/groff.texinfo (Changing Fonts), man/groff.man,
1799 man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1802 * src/roff/troff/TODO: Updated.
1804 2006-07-10 Werner LEMBERG <wl@gnu.org>
1806 * doc/groff.texinfo (Drawing Requests): Improve documentation of
1809 2006-07-02 Werner LEMBERG <wl@gnu.org>
1811 * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1813 2006-07-01 Werner LEMBERG <wl@gnu.org>
1815 * tmac/pspic.tmac: Make .PSPIC work for all devices.
1816 Print image file name for devices which don't support PS image
1818 Handle multiple inclusions.
1819 Add lots of comments.
1821 * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1824 * tmac/troffrc: Load pspic.tmac.
1826 * man/groff_tmac.man: Update .PSPIC documentation.
1830 2006-06-29 Werner LEMBERG <wl@gnu.org>
1832 * src/roff/troff/input.cpp (interpolate_macro):
1833 s/probably/possibly/, as suggested by Keith.
1835 2006-06-28 Werner LEMBERG <wl@gnu.org>
1837 Add support for \D'p...' to grotty.
1839 * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1841 (tty_printer::line): This function.
1842 (tty_printer::draw): Rewritten; just call either draw_line or
1844 (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1846 * src/devices/grotty/grotty.man, NEWS: Document it.
1848 2006-06-27 Werner LEMBERG <wl@gnu.org>
1850 * src/preproc/refer/command.h (have_bibliography): New variable
1853 * src/preproc/refer/command.cpp (bibliography_command): Set
1854 `have_bibliography'.
1856 * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1857 (output_references): Emit warning only if `have_bibliography' is
1860 2006-06-15 Michail Vidiassov <master@iaas.msu.ru>
1862 * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1863 * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1866 2006-06-15 Werner LEMBERG <wl@gnu.org>
1868 * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1869 macro (as suggested by Tadziu Hoffmann).
1871 2006-06-12 Werner LEMBERG <wl@gnu.org>
1873 * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1874 macro (as suggested by Tadziu Hoffmann).
1876 2006-06-05 Werner LEMBERG <wl@gnu.org>
1878 * tmac/strip.sed: Strip `\#' also.
1880 * doc/groff.texinfo (Operators in Conditionals): Document usage of
1881 \? for string comparison.
1883 2006-06-04 Werner LEMBERG <wl@gnu.org>
1885 * doc/groff.texinfo: Add more index entries for copy-in mode.
1886 (Changing Fonts) <.ft>: Document that a font definition file must
1887 not be called `DESC'.
1889 2006-05-31 Werner LEMBERG <wl@gnu.org>
1891 * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1894 * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1895 (PROCESSEDEXAMPLEFILES): Here.
1897 2006-05-30 Werner LEMBERG <wl@gnu.org>
1899 * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1901 Reduce number of false positives for `.if F ...' conditionals.
1902 Improve warning messages.
1904 2006-05-29 Werner LEMBERG <wl@gnu.org>
1906 * tmac/Makefile.sub: Add copyright notice.
1907 (NORMALFILES): Add man.tmac and ms.tmac.
1908 (SPECIALFILES): Remove man.tmac and ms.tmac.
1909 (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1910 (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1912 (stamp-sed): Don't handle man.tmac and ms.tmac.
1913 Remove obsolete components in sed's regexp.
1915 * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1917 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1919 2006-05-28 Werner LEMBERG <wl@gnu.org>
1921 * doc/groff.texinfo (History): Correct death circumstances of Joe
1924 2006-05-27 Werner LEMBERG <wl@gnu.org>
1926 * tmac/an-old.tmac (an-do-tag): Simplify.
1928 2006-05-26 Werner LEMBERG <wl@gnu.org>
1930 * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1931 (an-header, an-p-footer): Use named environment.
1933 * src/roff/troff/env.cpp (environment::copy): Copy margin character
1936 2006-05-21 Werner LEMBERG <wl@gnu.org>
1938 * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1941 2006-05-11 Keith Marshall <keith.d.marshall@ntlworld.com>
1943 * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1945 2006-05-10 Keith Marshall <keith.d.marshall@ntlworld.com>
1947 * src/roff/groff/groff.man: Update copyright notice.
1948 Improved wording to describe effect of `-Z' option.
1950 2006-05-06 Werner LEMBERG <wl@gnu.org>
1952 * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1953 Normalize handling of `"' in arguments.
1954 (PIMG): Remove debug message.
1957 2006-05-05 Werner LEMBERG <wl@gnu.org>
1959 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1960 swallow character immediately after `\[...]'.
1963 2006-05-02 Gaius Mulley <gaius@glam.ac.uk>
1965 * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1967 2006-05-02 Larry Kollar <kollar@alltel.net>
1969 * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1972 2006-04-30 Michail Vidiassov <master@iaas.msu.ru>
1974 * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1975 information as a comment in output.
1976 * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1978 2006-04-26 Werner LEMBERG <wl@gnu.org>
1980 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1981 Handle current_paragraph only if it is non-NULL.
1983 * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1984 <'F'>): Use `get_extended_arg' to behave as documented. Reported by
1985 Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1988 Surround the (pseudo) file name for the .pso request with `<' and
1991 * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1992 second parameter to `really_put_filename' and `put_filename'.
1993 (troff_output_file::really_put_filename): Emit `<' and `>' around
1994 filename if second argument is set.
1995 * src/roff/troff/node.h: Updated.
1997 * src/roff/troff/input.cpp (file_iterator::file_iterator,
1998 file_iterator::set_location): Update to changes in node.cpp.
2000 2006-04-25 Tetsurou Okazaki <okazaki@FreeBSD.org>
2002 * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
2003 preprocessor expression (I18N -> HAVE_ICONV).
2004 (main): Fix handling of option `-h'.
2005 Fix conditional preprocessor expression.
2007 2006-04-04 Werner LEMBERG <wl@gnu.org>
2009 Implement new number register `.br' which is set to 1 if a macro has
2010 been called as .foo and to 0 if called as 'bar. This is useful for
2011 -mtrace so that requests can be reliably traced too.
2013 * src/roff/troff/input.cpp (input_iterator): Add virtual function
2015 (macro_iterator): Add `with_break' member and `get_break_flag'
2017 Update constructors.
2018 (input_stack): Add function `get_break_flag'.
2019 (break_flag_reg): New number register class.
2020 (input_init_requests): Register `.br'.
2022 * src/roff/troff/TODO: Updated.
2024 * tmac/trace.tmac: s/!!sp/!!!sp/.
2025 Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
2027 * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
2030 2006-03-29 Werner LEMBERG <wl@gnu.org>
2032 * src/devices/grops/ps.cpp: s/must not/should not/ in warning
2033 messages where appropriate.
2035 2006-03-28 Werner LEMBERG <wl@gnu.org>
2037 * configure.ac: Call AC_PROG_EGREP.
2038 * configure: Regenerated.
2040 * Makefile.in (EGREP): New variable.
2041 (MDEFINES): Add $(EGREP).
2043 * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
2044 (bug reported by Robert Goulding <Goulding.2@nd.edu>).
2047 * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
2049 2006-03-27 Werner LEMBERG <wl@gnu.org>
2051 Add two requests `.device' and `.devicem' which are equivalent to
2052 `\X' and `\Y', respectively.
2054 * src/roff/troff/input.cpp (device_request, device_macro_request):
2056 (init_input_requests): Register them.
2058 * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
2059 man/groff.man, NEWS: Document them.
2061 2006-03-27 Gaius Mulley <gaius@glam.ac.uk>
2063 * src/roff/troff/input.cpp (encode_char): Emit special characters
2064 for -Thtml as `\[...]'.
2065 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
2067 * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
2069 2006-03-27 Werner LEMBERG <wl@gnu.org>
2071 * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
2074 2006-03-26 Werner LEMBERG <wl@gnu.org>
2076 * doc/groff.texinfo (Writing Macros): More documentation on
2077 end-of-macro symbol of `.de'.
2078 (Diversions): Minor addition to `.di' description.
2080 * src/devices/grops/grops.man: Some clarifications regarding
2081 insertion of PostScript snippets.
2083 2006-03-25 Michail Vidiassov <master@iaas.msu.ru>
2085 Add rules to generate `symbolsl.afm'.
2087 * font/devps/generate/zapfdr.sed,
2088 font/devps/generate/symbolsl.awk: New files.
2090 * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
2092 (SS, clean): Updated.
2093 (freeeuro.afm): Use $(srcdir).
2094 (symbolsl.afm): New rule.
2095 (zapfdr.afm): Use zapfdr.sed.
2097 2006-03-22 Dwight Aplevich <aplevich@uwaterloo.ca>
2099 * src/preproc/pic/pic.y (expr <INT>): Fix code.
2101 2006-03-22 Jörgen Grahn <jgrahn@algonet.se>
2103 * tmac/sv.tmac: Add missing translations and activate support for
2104 other macro packages.
2106 2006-03-21 Francis GUDIN <fgudin@nerim.net>
2108 * tmac/doc-syms (Dx): New macro to identify DragonFly.
2109 (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
2110 doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
2112 (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
2113 doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
2114 doc-operating-system-DragonFly-*): New operating system strings.
2116 * tmac/groff_mdoc.man, NEWS: Document `Dx'.
2118 2006-03-21 Werner LEMBERG <wl@gnu.org>
2120 * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
2121 both DWB pic and dpic, make
2129 line right then down;
2136 * doc/pic.ms: Document this.
2138 2006-03-20 Werner LEMBERG <wl@gnu.org>
2140 * doc/pic.ms: With permission of Eric Raymond, put it under the
2145 2006-03-19 Werner LEMBERG <wl@gnu.org>
2147 * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
2149 * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
2150 attribute in combination with `with'. Bug reported by Jennifer
2151 Sayers <jenjen@mail.usyd.edu.au>.
2153 2006-03-19 Miklos Somogyi <msom@netspace.net.au>
2155 * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
2158 2006-03-18 Werner LEMBERG <wl@gnu.org>
2160 * LICENSE: Renamed to...
2161 * LICENSES: This. Collect all licensing information in this file.
2162 * tmac/README, src/libs/snprintf/README: Removed.
2164 * src/devices/grops/grops.man: Add section how to install fonts.
2166 * src/utils/xtotroff/xtotroff.c: Add GPL.
2168 2006-03-17 Werner LEMBERG <wl@gnu.org>
2170 * Makefile.comm (.y.cpp): Fix #line arguments in output.
2172 2006-03-13 Werner LEMBERG <wl@gnu.org>
2174 * src/preproc/tbl/tbl.man: Mention default length of text blocks.
2176 * tmac/doc-common (Os): Add more Darwin versions.
2177 * tmac/groff_mdoc.man: Document them.
2179 * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
2180 works with \N'...' also.
2181 * man/groff_diff.man: Ditto. Remove use of future tense where
2184 2006-03-12 Michail Vidiassov <master@iaas.msu.ru>
2186 * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
2187 font/devps/zapfdr.ps: Add `%%EndComments' line.
2189 2006-03-10 Larry Kollar <kollar@alltel.net>
2191 * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
2193 2006-03-10 Werner LEMBERG <wl@gnu.org>
2195 * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
2196 ps_printer::do_mdef): Overlong lines now cause a warning message,
2199 2006-03-09 Werner LEMBERG <wl@gnu.org>
2201 * font/devps/generate/make-zapfdr: New script for generating
2204 2006-03-08 Werner LEMBERG <wl@gnu.org>
2206 * doc/groff.css (pre): Fix `background-color' value.
2208 2006-03-04 Larry Kollar <kollar@alltel.net>
2210 * tmac/groff_ms.man: Document PT, HD, and BT.
2212 2006-03-04 Werner LEMBERG <wl@gnu.org>
2214 * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
2215 for single-letter glyph names.
2217 2006-03-02 Werner LEMBERG <wl@gnu.org>
2219 * tmac/sv.tmac: New file; currently holding only the Swedish strings
2221 * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
2223 * tmac/README: Updated.
2225 2006-02-27 Werner LEMBERG <wl@gnu.org>
2227 * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
2228 * tmac/fr.tmac: Add French translations.
2230 * tmac/composite.tmac: Add entry for `:'.
2232 2006-02-26 Werner LEMBERG <wl@gnu.org>
2234 * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
2236 (install_html, uninstall_sub): Updated.
2238 2006-02-26 Bruno Haible <bruno@clisp.org>
2240 Introduce Unicode fonts.
2242 * font/devhtml/DESC.proto: Mark as unicode.
2243 * font/devhtml/R.proto: Remove all charset entries that are already
2245 * font/devutf8/DESC.proto: Mark as unicode.
2246 * font/devutf8/R.proto: Remove all charset entries.
2247 * src/include/font.h (font): New static field `is_unicode'.
2248 Change order of fields.
2249 * src/libs/libgroff/font.cpp: Include unicode.h.
2250 (font::font): Update for changed order of fields.
2251 (font::contains, font::get_width, font::get_height, font::get_depth,
2252 font::get_italic_correction, font::get_left_italic_correction,
2253 font::get_subscript_correction, font::get_character_type,
2254 font::get_code, font::get_special_device_encoding): Handle both the
2255 explicitly enumerated glyphs and use general code for Unicode fonts.
2256 (font::load): Make the charset section optional when the font is
2258 (font::load_desc): Recognize the `unicode' attribute.
2259 * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
2261 2006-02-26 Claudio Fontana <claudio@gnu.org>
2263 * Makefile.in: Add comment about DESTDIR.
2265 * Makefile.sub: Add DESTDIR to install and uninstall targets
2266 to support staged installations.
2267 * Makefile.comm: Likewise.
2268 * doc/Makefile.sub: Likewise.
2269 * contrib/eqn2graph/Makefile.sub: Likewise.
2270 * contrib/grap2graph/Makefile.sub: Likewise.
2271 * contrib/pic2graph/Makefile.sub: Likewise.
2272 * src/devices/xditview/Makefile.sub: Likewise.
2273 * src/preproc/eqn/Makefile.sub: Likewise.
2274 * src/roff/grog/Makefile.sub: Likewise.
2275 * src/roff/nroff/Makefile.sub: Likewise.
2276 * src/utils/afmtodit/Makefile.sub: Likewise.
2277 * src/utils/indxbib/Makefile.sub: Likewise.
2278 * tmac/Makefile.sub: Likewise.
2280 2006-02-24 Werner LEMBERG <wl@gnu.org>
2282 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2284 Remove commented out entries for \' and \` (there are no such glyph
2287 * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2288 commented out entries for \' and \`.
2291 * */*: s/legal/valid/ where appropriate.
2293 2006-06-23 Werner LEMBERG <wl@gnu.org>
2295 * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
2298 2006-02-22 Werner LEMBERG <wl@gnu.org>
2300 Remove all remaining traces from the `shc' glyph.
2302 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2303 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2306 * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
2307 entry with unnamed glyph.
2309 * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
2311 * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
2314 2006-02-22 Bruno Haible <bruno@clisp.org>
2316 Concretize the `glyph' datatype.
2318 * src/include/font.h (glyph): Remove class.
2319 (glyph): Renamed from struct `glyphinfo'.
2320 (glyph_to_index): New inline function.
2321 (glyph_to_name): Make extern, not inline.
2322 (glyph_to_number): Update.
2323 (font): Use `glyph *' instead of `glyph'.
2325 * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
2326 `glyph'. Make `name' field public.
2327 (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
2329 (glyph_to_name): Renamed from `glyph::glyph_name'.
2331 * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
2332 Use `glyph *' instead of `glyph'.
2334 * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
2335 `glyph *' instead of `glyph'.
2336 (glyph_to_name): Renamed from `glyph::glyph_name'.
2338 * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
2339 and `glyph_to_index' instead of `glyph::glyph_index'.
2341 * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
2342 * src/libs/libdriver/printer.cpp: Likewise.
2343 * src/devices/grodvi/dvi.cpp: Likewise.
2344 * src/devices/grohtml/post-html.cpp: Likewise.
2345 * src/devices/grolbp/lbp.cpp: Likewise.
2346 * src/devices/grolj4/lj4.cpp: Likewise.
2347 * src/devices/grops/ps.cpp: Likewise.
2348 * src/devices/grotty/tty.cpp: Likewise.
2350 2006-02-22 Werner LEMBERG <wl@gnu.org>
2352 * font/devdvi/generate/tc.map: Add `sr' glyph.
2353 * font/devdvi/*TC: Regenerated.
2355 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2358 2006-02-21 Werner LEMBERG <wl@gnu.org>
2360 * man/groff_char.man: Explain `***' marker.
2362 2006-02-17 Bruno Haible <bruno@clisp.org>
2364 * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
2365 methods and fields from *_index to *_glyph.
2366 (character_indexer::named_char_glyph): Test for `charNNN' name
2368 (name_to_glyph): ... not here.
2370 2006-02-17 Bruno Haible <bruno@clisp.org>
2372 * src/include/font.h (name_to_glyph): Renamed from
2373 font::name_to_index.
2374 (number_to_glyph): Renamed from font::number_to_index.
2375 (glyph_to_name): Renamed from font::index_to_name.
2376 (glyph_to_number): Renamed from font::index_to_number.
2377 * src/libs/libgroff/nametoindex.cpp: Likewise.
2378 * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
2379 charinfo::get_index.
2381 * src/roff/troff/input.cpp: All callers changed.
2382 * src/roff/troff/node.cpp: Likewise.
2383 * src/libs/libgroff/font.cpp: Likewise.
2384 * src/devices/grops/ps.cpp: Likewise.
2385 * src/devices/grohtml/post-html.cpp: Likewise.
2386 * src/libs/libdriver/printer.cpp: Likewise.
2388 2006-02-17 Werner LEMBERG <wl@gnu.org>
2390 * src/include/ptable.h, src/include/itable.h
2391 (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
2392 of external symbol `next_ptable_size' (used by both header files).
2394 2006-02-15 Bruno Haible <bruno@clisp.org>
2396 * src/include/font.h (glyphinfo): New class.
2397 (glyph): Change internal representation.
2398 Change constructor signature.
2399 New method glyph::glyph_number().
2400 (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
2401 glyph::operator==, glyph::operator!=): Update.
2402 (font::index_to_name, font::index_to_number): New functions.
2404 * src/include/itable.h: New file, based on src/include/ptable.h.
2406 * src/libs/libgroff/nametoindex.cpp: Include itable.h.
2407 (class charinfo): New class.
2408 (class character_indexer): Change table result type from `int' to
2410 Add table with integer key.
2411 (character_indexer::character_indexer): Update.
2412 (character_indexer::ascii_char_index): Update.
2413 (character_indexer::numbered_char_index): Use NULL as name, not a
2414 string starting with a space.
2415 (character_indexer::named_char_index): Update.
2416 (font::number_to_index, font::name_to_index): Remove no-op cast.
2417 (glyph::glyph_name): New method.
2418 * src/roff/troff/charinfo.h (class charinfo): Inherit from class
2420 (NUMBERED): Remove flag bit.
2421 (charinfo::numbered, charinfo::get_index): Update.
2423 * src/roff/troff/input.cpp (charinfo::charinfo): Update.
2424 (charinfo::set_number, charinfo::get_number): Update.
2425 (glyph::glyph_name): New method.
2427 2006-02-15 Werner LEMBERG <wl@gnu.org>
2429 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
2430 entries for `>>', `<<', `*f', and `+f'. Reported by Bruno.
2432 2006-02-13 Werner LEMBERG <wl@gnu.org>
2434 * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
2437 2006-02-11 Werner LEMBERG <wl@gnu.org>
2439 * src/include/font.h: s/glyph_t/glyph/.
2442 * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
2443 s/output_character_t/output_character/.
2445 2006-02-11 Bruno Haible <bruno@clisp.org>
2447 New accessor method glyph_t::glyph_name().
2449 * src/include/ptable.h (declare_ptable): Add a return value to the
2450 `define' method, and declare a `lookupassoc' method.
2451 (implement_ptable): Return the stored key in `define'. Implement
2453 * src/include/font.h (glyph_t): Add `name' field. Add an argument
2455 (glyph_t::glyph_name): New method.
2457 * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
2458 return type of methods and field member type to glyph_t.
2459 (character_indexer::character_indexer): Update.
2460 (character_indexer::ascii_char_index): Allocate a name for the
2462 Return a glyph_t with name.
2463 (character_indexer::numbered_char_index): Return a glyph_t without a
2465 (character_indexer::named_char_index): Return a glyph_t with a name.
2466 (font::number_to_index, font::name_to_index): Update.
2468 * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
2471 2006-02-11 Bruno Haible <bruno@clisp.org>
2473 * src/devices/grotty/tty.cpp (output_character_t): New type.
2474 (tty_printer::make_bold, tty_printer::add_char,
2475 tty_printer::put_char): Change argument type to output_character_t.
2476 (crossings): Change element type to output_character_t.
2478 2006-02-11 Bruno Haible <bruno@clisp.org>
2480 Make the glyph data type abstract.
2482 * src/include/font.h (glyph_t): New class.
2483 (name_to_index, number_to_index): Change return type to glyph_t.
2484 (font::contains, font::get_width, font::get_height, font::get_depth,
2485 font::get_character_type, font::get_kern, font::get_skew,
2486 font::get_italic_correction, font::get_left_italic_correction,
2487 font::get_subscript_correction, font::get_code,
2488 font::get_special_device_encoding, font::add_entry,
2489 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2492 * src/libs/libgroff/font.cpp (font_kern_list): Change members
2493 type and constructor argument types to glyph_t.
2494 (font::contains, font::get_width, font::get_height, font::get_depth,
2495 font::get_character_type, font::get_kern, font::get_skew,
2496 font::get_italic_correction, font::get_left_italic_correction,
2497 font::get_subscript_correction, font::get_code,
2498 font::get_special_device_encoding, font::add_entry,
2499 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2501 (font::load): Use glyph_t variables.
2503 * src/libs/libgroff/nametoindex.cpp (name_to_index,
2504 number_to_index): Change return type to glyph_t.
2506 * src/roff/troff/charinfo.h (charinfo::index): Change type to
2508 (charinfo::get_index): Change return type to glyph_t.
2510 * src/roff/troff/env.cpp: Include font.h.
2512 * src/roff/troff/node.cpp: Include font.h before charinfo.h.
2514 * src/roff/troff/input.cpp: Include font.h before charinfo.h.
2515 (charinfo::charinfo): Update.
2516 (name_to_index, number_to_index): Change return type to glyph_t.
2518 * src/include/printer.h (printer::set_char_and_width): Change return
2521 * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
2522 Change return type to glyph_t.
2524 * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
2525 argument type to glyph_t.
2527 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
2528 (html_printer::space_glyph): Renamed from space_char_index.
2529 (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
2530 html_printer::overstrike, html_printer::set_char): Change argument
2532 (html_printer::set_char_and_width): Change return type to glyph_t.
2534 * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
2535 argument type to glyph_t.
2537 * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
2538 argument type to glyph_t.
2540 * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
2542 (ps_printer::set_subencoding, ps_printer::set_char): Change argument
2545 * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
2546 argument type to glyph_t.
2548 2006-02-11 Bruno Haible <bruno@clisp.org>
2550 * src/roff/troff/input.cpp (font::name_to_index): Never return a
2553 * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
2554 font::name_to_index.
2556 2006-02-10 Werner LEMBERG <wl@gnu.org>
2558 * doc/groff.texinfo (Assigning Formats): Number registers are always
2560 Apply some rephrasing, contributed by Michael Burt.
2562 2006-02-07 Werner LEMBERG <wl@gnu.org>
2564 * tmac/fr.tmac <ms>: Set `HY' register.
2566 2006-02-07 Werner LEMBERG <wl@gnu.org>
2568 Add framework for simple adaptation of the main macro packages (mm,
2569 me, ms, mom) to different locales. In particular, add support for
2570 French. For activation, simply use `-mfr' as the last macro
2571 package. This feature has been contributed by Fabrice Ménard
2572 <menard.fabrice@wanadoo.fr>.
2574 * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
2576 * tmac/README: Mention hyphen.fr.
2577 * man/groff_tmac.man: Mention fr.tmac.
2580 2006-01-27 Werner LEMBERG <wl@gnu.org>
2582 * man/groff_font.man: Updated documentation of `entity_name' field.
2585 2006-01-27 Bruno Haible <bruno@clisp.org>
2587 * font/devhtml/R.proto: Remove the entity names from the font's
2588 special_encoding_encoding column.
2589 * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
2590 handling the entity names here.
2591 (get_html_translation): Use it. Change return type to `const
2593 (page::add_and_encode): Update, removing a useless cast.
2595 2006-01-26 Werner LEMBERG <wl@gnu.org>
2597 This change is based on a patch by Bruno Haible <bruno@clisp.org>.
2599 * src/include/device.h: Add comments.
2600 * src/include/font.h: Add comments.
2601 * src/include/unicode.h: Likewise.
2602 * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
2604 2006-01-26 Keith Marshall <keith.d.marshall@ntlworld.com>
2606 Suppress `.st' request emission by `grn'.
2608 * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
2611 2006-01-22 Werner LEMBERG <wl@gnu.org>
2613 * install-sh: New version; taken from texinfo CVS.
2615 2006-01-21 Werner LEMBERG <wl@gnu.org>
2617 * src/preproc/preconv/preconv.cpp (main): Set program_name. Bug
2618 reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
2620 2006-01-19 Bruno Haible <bruno@clisp.org>
2622 Let `make -k install' install more files.
2624 * Makefile.in (MAKE_K_FLAG): New variable. Use it everywhere where
2625 $(MAKE) and $(MDEFINES) are used.
2626 (CPROGDIRS): Remove $(XPROGDIRS). Treat $(XPROGDIRS) like
2627 $(CPROGDIRS) everywhere.
2628 ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
2630 ($(OTHERDIRS)): Likewise.
2633 * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
2634 failure test for font::name_to_index -- it can never fail.
2636 2006-01-19 Werner LEMBERG <wl@gnu.org>
2638 * src/devices/grops/grops.man: Fix section on creating EPS files.
2639 Don't use future time in manual.
2642 2006-01-15 Gaius Mulley <gaius@glam.ac.uk>
2644 * tmac/www.tmac: New macro LINKSTYLE which allows users to set
2645 various typographical URL attributes for non-HTML devices.
2647 * tmac/groff_www.man: Document LINKSTYLE.
2649 2006-01-11 Werner LEMBERG <wl@gnu.org>
2651 * configure.ac: Test for getc_unlocked (needed for localcharset).
2652 * configure, src/include/config.hin: Regenerated.
2654 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
2657 * src/libs/libgroff/relocatable.h: New dummy header file for
2660 * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
2663 2006-01-10 Bruno Haible <bruno@clisp.org>
2665 Work around unportability of nl_langinfo(CODESET).
2667 * m4/glibc21.m4: New file, from gnulib.
2668 * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
2669 * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
2670 * Makefile.in (HOST, GLIBC21): New variables.
2671 (MDEFINES): Pass them to subdirectories.
2672 * src/include/relocate.h (relocatep): Define with C linkage.
2673 * src/include/localcharset.h: New file, from gnulib.
2674 * src/libs/libgroff/localcharset.c: New file, from gnulib with a
2675 modification for relocate().
2676 * src/libs/libgroff/config.charset: New file, from gnulib.
2677 * src/libs/libgroff/ref-add.sin: New file, from gnulib.
2678 * src/libs/libgroff/ref-del.sin: New file, from gnulib.
2679 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
2680 (OBJS): Add localcharset.o.
2681 (CSRCS): Add localcharset.c.
2682 (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
2683 (charset.alias): New rule.
2684 (PACKAGE): New variable.
2685 (ref-add.sed, ref-del.sed): New rules.
2686 (MKINSTALLDIRS): New variable.
2687 (install_data): Depend on install_charset_data.
2688 (install_charset_data): New rule for creating or updating
2690 (uninstall_sub): Depend on uninstall_charset_data.
2691 (uninstall_charset_data): New rule for uninstalling or updating
2693 * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
2695 (main): Initialize default_encoding from locale_charset() instead of
2696 nl_langinfo(CODESET).
2698 * aclocal.m4, configure, src/include/config.hin: Regenerated.
2700 2006-01-10 Werner LEMBERG <wl@gnu.org>
2702 * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
2703 ICONV_CONST in call to iconv. Reported by Robert Goulding.
2705 2006-01-07 Werner LEMBERG <wl@gnu.org>
2707 * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2709 Bump font version to 001.001.
2711 * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2712 Call fontforge, not pfaedit.
2714 * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2716 2006-01-05 Ruslan Ermilov <ru@FreeBSD.org>
2718 * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2719 * tmac/groff_mdoc.man: Updated.
2721 2006-01-05 Werner LEMBERG <wl@gnu.org>
2723 * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2724 (raw_flag): New global variable.
2725 (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2726 Don't pass BOM to `conversion_utf8'.
2728 (main): Handle `-r' command line switch to set `raw_flag'.
2729 (get_BOM): Fix encodings in `BOM_table'.
2731 * src/preproc/preconv/preconv.man: New file. Not complete yet.
2732 * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2734 2006-01-04 Werner LEMBERG <wl@gnu.org>
2736 * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2737 Bruno, comment out most encodings to support only a small set of
2738 coding tags, thus reducing potential problems with legacy encodings
2739 and character sets in the future.
2740 Add many XEmacs coding tags (now commented out).
2742 (check_encoding_tag): Renamed to...
2743 (check_coding_tag): This.
2744 (get_BOM): Return encoding as specified by BOM.
2745 Test for UTF32-LE too.
2746 (do_file): Don't check for coding tag if a BOM has been found.
2748 2006-01-03 Bruno Haible <bruno@clisp.org>
2750 * m4/groff.m4: Renamed from aclocal.m4.
2751 * m4/codeset.m4: New file, from gnulib.
2752 * m4/iconv.m4: New file, from gnulib.
2753 * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2755 * config.rpath: New file, from gnulib.
2756 * config.guess, config.sub: New files, from gnulib.
2757 * Makefile.sub (M4MACROS): New variable.
2758 (configure): Fix typo.
2759 (aclocal.m4): New rule.
2760 (stamp-h.in): Depend on aclocal.m4.
2761 * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2762 * Makefile.in (LIBICONV): New variable.
2763 (MDEFINES): Pass it to recursive makes.
2764 * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2765 HAVE_ICONV instead of I18N macro.
2766 * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2768 * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2770 2006-01-03 Werner LEMBERG <wl@gnu.org>
2772 * doc/Makefile.in (webpage.html): Simplify.
2773 * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2774 * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2776 2006-01-01 Werner LEMBERG <wl@gnu.org>
2778 * tmac/doc-common (Os): Add some Darwin versions.
2779 * tmac/groff_mdoc.man: Document them.
2781 2006-01-01 Bruno Haible <bruno@clisp.org>
2783 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2785 . Don't map ascii to latin-1.
2786 . Don't use IBMxxx encodings but cpxxx for portability.
2787 . Map cp932, cp936, cp949, cp950 to itself.
2788 (emacs2mime): Protect calls to strcasecmp.
2789 (conversion_iconv): Add missing call to iconv_close.
2790 (do_file): Emit error message in case of unsupported encoding.
2792 2005-12-31 Werner LEMBERG <wl@gnu.org>
2794 Integrate preconv into the groff binary. Changes based on a patch
2795 from Michail Vidiassov.
2797 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2799 * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2800 (SOELIM_INDEX): Updated.
2801 (help, synopsis): Updated.
2802 (main): Add command line options `-k' and `-K enc' to select
2804 Add support for GROFF_ENCODING environment variable.
2806 * src/roff/groff/groff.man: Updated and revised.
2809 Start with autoconf support for preconv.
2811 * configure.ac: Call AC_C_BIGENDIAN.
2812 * configure, src/include/config.hin: Regenerated.
2814 2005-12-30 Werner LEMBERG <wl@gnu.org>
2816 New preprocessor `preconv' to convert input encodings to something
2817 groff can understand. Not yet integrated within groff. Proper
2818 autoconf stuff is missing too.
2820 Tomohiro Kubota has written a first draft of this program, and some
2821 ideas have been reused (while almost no code has been taken
2824 * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2827 * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2828 (GROFF_BIN_PATH): Add preconv.
2830 2005-12-12 Werner LEMBERG <wl@gnu.org>
2832 * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2833 In particular, don't use `\+' since it is a GNU sed extension.
2835 * configure: Regenerated.
2837 2005-12-09 Werner LEMBERG <wl@gnu.org>
2839 * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp.
2841 * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2845 * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2848 * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2851 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2852 %AGL_to_unicode): Removed. Replace it with a tag.
2854 * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2855 to replace tag with actual file contents.
2857 2005-12-08 Werner LEMBERG <wl@gnu.org>
2859 The change 2005-06-20 can indeed cause problems, so we follow the
2860 advice by using marks.
2862 * font/devps/prologue.ps (PBEGIN): Use `mark'.
2863 (PEND): Use `cleartomark'.
2865 2005-12-07 Michail Vidiassov <master@iaas.msu.ru>
2867 * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2868 glyphs which have kern values but aren't handled (glyph variants,
2871 2005-12-02 Werner LEMBERG <wl@gnu.org>
2873 * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2874 subfont index. Reported by Michail Vidiassov <master@iaas.msu.ru>.
2876 2005-11-28 Gaius Mulley <gaius@glam.ac.uk>
2878 * doc/Makefile.in: Separate rule for webpage.html so that extra
2879 command line options can be passed to grohtml.
2880 * doc/groff.css: Change all margins to 0%.
2881 * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2882 navigation is exploited. Also update webpage to contain new
2883 sections on licenses, mailing lists, cvs/ftp access, groff
2884 dependencies, and bug reports.
2885 * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2886 * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2888 2005-11-25 Gaius Mulley <gaius@glam.ac.uk>
2890 * src/devices/grohtml/post-html.cpp
2891 (html_printer::do_file_components): Add fputs calls to emit the
2892 head contents and shut down the head tag whenever a new file
2893 component is generated.
2895 2005-11-22 Gaius Mulley <gaius@glam.ac.uk>
2897 * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2898 call to flush_text to flush any outstanding html tags on the
2901 2005-11-18 Werner LEMBERG <wl@gnu.org>
2903 * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2904 Announce makeinfo version.
2905 * configure: Regenerated.
2907 2005-11-18 Mike Frysinger <vapier@gentoo.org>
2909 * Makefile.in: Declare proper dependencies between make targets.
2911 * doc/Makefile.in: Rename groff info page to `groff.info'.
2912 * doc/Makefile.sub: Likewise.
2913 * doc/groff.texinfo: Likewise.
2915 2005-11-17 Peter O'Gorman <mlists@thewrittenword.com>
2917 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2918 definition of __GETOPT_PREFIX to the beginning of file to ensure
2919 that it is defined even on platforms where getopt.h is already
2920 included by other header files.
2922 2005-11-10 Gaius Mulley <gaius@glam.ac.uk>
2924 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2925 Reset font to NULL to ensure that a font block is recreated during
2928 2005-11-04 Werner LEMBERG <wl@gnu.org>
2930 * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2931 * configure: Regenerated.
2933 2005-10-27 Werner LEMBERG <wl@gnu.org>
2935 * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2936 makeinfo 4.8 or newer is available.
2937 * configure.ac: Call GROFF_MAKEINFO.
2938 * configure: Regenerated.
2940 * Makefile.in (MAKEINFO): Use autoconf variable.
2941 (MDEFINES): Add MAKEINFO.
2943 * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2944 * doc/Makefile.sub (MAKEINFO): Remove.
2946 2005-10-26 Werner LEMBERG <wl@gnu.org>
2948 * REVISION: Set to 3.
2950 2005-10-17 Werner LEMBERG <wl@gnu.org>
2952 Mention $MANPAGER variable used with some `man' systems.
2954 * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2956 2005-09-13 Werner LEMBERG <wl@gnu.org>
2958 * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2960 2005-09-04 Werner LEMBERG <wl@gnu.org>
2962 Version 1.19.2 released
2963 =======================
2965 * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2967 * doc/webpage.ms: Updated.
2969 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2971 2005-09-04 Jörgen Grahn <jgrahn@algonet.se>
2973 * tmac/groff_ms.man: Document `PO' better.
2975 2005-09-03 Werner LEMBERG <wl@gnu.org>
2977 * NEWS: Document grotty changes.
2979 2005-09-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2981 Backward compatibility support for `man' program.
2983 * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2984 assignment, prior `.ll' request and then package defaults, in this
2985 specified order of decreasing priority.
2987 * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2988 altered `LL' register initialization priorities.
2990 2005-08-29 Gary W. Swearingen <garys@opusnet.com>
2992 * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2993 section should look like.
2995 2005-08-29 Werner LEMBERG <wl@gnu.org>
2997 * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
3000 2005-08-27 Bernd Warken
3002 * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
3005 2005-08-11 Bernd Warken
3007 * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
3009 2005-08-09 Bernd Warken
3011 * tmac/www.tmac (URL, MTO): Use bold series if color support is
3014 2005-08-02 Bernd Warken
3016 * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
3017 as argument to $(INSTALL_INFO). The latter isn't portable.
3018 Remove $(HTMLEXAMPLEFILES) too.
3020 * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
3022 Suppress warning messages and return always true.
3024 * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
3026 2005-07-02 Bernd Warken
3028 * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
3029 * man/groff_out.man: More markup and minor improvements.
3030 * src/roff/groff/groff.man: Minor improvements.
3032 2005-06-28 Werner LEMBERG <wl@gnu.org>
3034 * ChangeLog: Split off older entries into...
3035 * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
3038 2005-06-26 Bernd Warken
3040 * src/devices/xditview/gxditview.man: More minor fixes.
3042 2005-06-24 Werner LEMBERG <wl@gnu.org>
3044 * src/preproc/pic/troff.cpp (troff_output::set_fill,
3045 troff_output::set_color, troff_output::reset_color): Use .bcolor and
3046 .fcolor instead of \m and \M, respectively.
3048 2005-06-23 Bernd Warken
3050 * src/devices/xditview/gxditview.man: More minor fixes.
3051 * README: Formatting issues.
3052 Mention some problems with Debian.
3054 2005-06-23 Bernd Warken
3056 * src/devices/xditview/gxditview.man: Revised and improved.
3058 2005-06-22 Werner LEMBERG <wl@gnu.org>
3060 Another round in fixing getopt problems. Hopefully the last one!
3061 This time we use the getopt stuff from gnulib and define a prefix
3062 unconditionally so that there are no collisions with any other
3063 getopt implementations. This is a slight waste of space in case
3064 we already use a GNU getopt implementation, but on
3065 the other hand it really simplifies life.
3067 * src/include/getopt.h: Use gnulib version.
3069 * src/include/getopt_int.h: Use gnulib version.
3071 * src/include/groff-getopt.h: Removed. Obsolete now.
3073 * src/include/lib.h: Regarding getopt, don't handle any platform
3074 specially; just include getopt.h.
3075 (__GETOPT_PREFIX): Define (before getopt.h).
3077 * src/include/Makefile.sub (HDRS): Updated.
3079 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
3082 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
3085 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
3086 (__GETOPT_PREFIX): Define (before getopt.h).
3088 2005-06-21 Werner LEMBERG <wl@gnu.org>
3090 * src/include/lib.h: Provide a fix for Mac OS X to not include
3093 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
3095 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
3096 `bind' to define a procedure which contains `showpage' means that an
3097 invocation of `showpage' may execute wrongly (the exact effect
3098 depending on the interpreter). Not usually a problem except under
3099 transformations, such as combining pages.
3100 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
3101 of /PEND means that stack underflow will occur if the stack is
3102 deliberately non-empty before document inclusion. If included
3103 files are found to be generally badly behaved, we could replace the
3104 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
3105 never found this necessary).
3107 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
3109 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
3110 earlier to get correct error message.
3112 2005-06-16 Bernd Warken
3113 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
3115 2005-06-15 Werner LEMBERG <wl@gnu.org>
3117 Another try to update getopt files. This time we add a dummy
3118 gettext.h file to satisfy the dependency.
3120 * src/include/getopt.h, src/libs/libgroff/getopt.c,
3121 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
3123 * src/include/getopt_int.h: New file (from GNU libc CVS).
3125 * src/include/gettext.h: Dummy file which just defines a gettext()
3128 * src/include/groff-getopt.h: Updated.
3130 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
3133 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
3134 `const' keywords in return value.
3136 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
3137 Remove redundant variable `old'.
3138 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
3140 * src/preproc/tbl/main.cpp (process_table): Remove redundant
3144 Fix more friend name injection problems since modern C++ compilers
3145 fail otherwise. We simply provide (global) declarations for all
3146 functions declared as friends. This is not really necessary but
3149 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
3150 peek_char, and get_location.
3152 * src/preproc/refer/ref.h: Provide declarations for
3153 compare_reference, same_reference, same_year, same_date,
3154 same_author_last_name, and same_author_name.
3156 * src/roff/troff/div.h: Provide declarations for do_divert and
3159 * src/roff/troff/env.h: Provide declarations for title_length,
3160 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
3161 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
3162 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
3163 margin_character, no_number, number_lines, leader_character,
3164 tab_character, hyphenate_request, no_hyphenate,
3165 hyphen_line_max_request, hyphenation_space_request,
3166 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
3167 line_tabs_request, widow_control_request, and do_divert.
3169 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
3171 * src/roff/troff/node.cpp: Provide declarations for class
3173 Provide declaration for make_tfont.
3175 2005-05-29 Werner LEMBERG <wl@gnu.org>
3177 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
3179 2005-05-28 Werner LEMBERG <wl@gnu.org>
3181 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
3182 redundant semicolons.
3184 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
3185 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
3186 Define `MLIB'. Some compilers need this for linking with libgroff.
3188 2005-05-27 Werner LEMBERG <wl@gnu.org>
3190 * MANIFEST, README, doc/webpage.ms: Updated.
3192 2005-05-26 Werner LEMBERG <wl@gnu.org>
3194 * All affected files: Update postal address of FSF.
3196 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
3199 * README: More fixes.
3201 * README.CVS: Removed. Its contents is now part of the README file.
3203 2005-05-21 Werner LEMBERG <wl@gnu.org>
3205 * README: Updated. Based on a patch from Bernd Warken.
3207 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
3209 Miscellaneous script portability enhancements.
3211 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
3212 generated conftest.sh script, conforming to portability
3213 recommendation in autoconf docs.
3214 * configure: Likewise, for code generated by GROFF_CSH_HACK.
3215 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
3216 to portability recommendation in autoconf docs.
3217 * contrib/grap2graph/grap2graph.sh: Likewise.
3218 * contrib/pic2graph/pic2graph.sh: Likewise.
3219 * font/devps/generate/afmname: Likewise.
3220 * src/devices/xditview/ad2c: Likewise.
3221 * src/preproc/eqn/neqn.sh: Likewise.
3222 * src/roff/grog/grog.pl: Likewise.
3223 * src/roff/grog/grog.sh: Likewise.
3224 * src/roff/nroff/nroff.sh: Likewise.
3225 * PROBLEMS: Likewise, in embedded script examples.
3227 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
3229 Improve portability of `pdfroff' shell script.
3231 * arch/misc/shdeps.sh: Add space in shebang, conforming to
3232 portability guidelines in `autoconf' docs.
3233 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
3234 initialization code. Used by contrib/pdfmark/pdfroff.sh's
3235 `searchpath' function.
3237 2005-05-14 Werner LEMBERG <wl@gnu.org>
3239 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
3240 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
3241 needed for newer ImageMagick versions.
3243 2005-05-07 Werner LEMBERG <wl@gnu.org>
3245 * src/preproc/refer/refer.man: Many small typographic fixes.
3247 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
3249 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
3250 Use `char *' cast for a_delete.
3252 2005-05-03 Werner LEMBERG <wl@gnu.org>
3254 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
3255 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
3257 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
3259 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
3260 `a_delete' for `const char *'.
3262 2005-05-03 Werner LEMBERG <wl@gnu.org>
3264 * src/devices/grohtml/post-html.cpp,
3265 src/devices/grohtml/html-table.cpp,
3266 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
3267 Replace malloc/free with new/delete/a_delete.
3269 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
3270 are prohibited with ANSI C++.
3271 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
3272 function has a variable number of arguments).
3274 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
3275 Simplify function and update all callers.
3277 2005-05-02 Werner LEMBERG <wl@gnu.org>
3279 Undo getopt changes from 2005-04-30. We don't want a dependency
3282 * src/include/getopt_int.h: Removed.
3284 * src/include/getopt.h, src/include/groff-getopt.h,
3285 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
3286 src/libs/libgroff/getopt1.c: Revert to previous version.
3289 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
3291 * src/include/posix.h (F_OK): Define conditionally.
3293 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
3294 different variable name in second `for' loop to avoid MSVC compiler
3297 2005-04-30 Werner LEMBERG <wl@gnu.org>
3299 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
3301 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
3302 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
3303 * configure, src/include/config.hin: Regenerated.
3305 * PROBLEMS: Updated.
3308 Update getopt files.
3310 * src/include/getopt.h, src/libs/libgroff/getopt.c,
3311 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
3313 * src/include/getopt_int.h: New file (from GNU libc CVS).
3315 * src/include/groff-getopt.h: Updated.
3317 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
3320 * font/devutf8/NOTES: Updated.
3322 2005-04-28 Werner LEMBERG <wl@gnu.org>
3324 Bug fix for Win32 relocatable code. Based on a patch from Keith
3327 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
3330 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
3331 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
3333 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3335 Correct `gnu.eps' handling for build from distribution tarball, with
3336 separate source and build directories.
3338 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
3339 grnexmpl.g, groff.css and gnu.eps from source to build directory;
3340 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
3341 (prepare_examples): Make it depend on examples.stamp.
3342 (CLEANADD): Add examples.stamp.
3344 2005-04-27 Werner LEMBERG <wl@gnu.org>
3348 position: `(' position `)'
3352 * src/preproc/pic/pic.y (position, position_not_place): Handle
3353 additional parentheses.
3355 * doc/pic.ms: Updated.
3357 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
3359 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
3361 2005-04-18 Werner LEMBERG <wl@gnu.org>
3363 * src/roff/groff/pipeline.c: Don't include ctype.h.
3365 2005-04-13 Werner LEMBERG <wl@gnu.org>
3367 * src/roff/nroff/nroff.man: Document option `-M'.
3369 2005-04-13 Bruce Lilly <blilly@erols.com>
3371 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
3373 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
3374 Werner LEMBERG <wl@gnu.org>
3376 Add binary relocation support for Windows platforms.
3378 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
3380 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
3382 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
3383 (search_path::search_path, search_path::open_file_cautious): Use
3386 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
3387 src/include/Makefile.sub (HDRS): Updated.
3389 2005-04-01 Werner LEMBERG <wl@gnu.org>
3391 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
3394 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
3396 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
3397 lib.h already does it.
3399 * src/libs/libgroff/maxpathname.cpp: New file, defining
3402 * src/include/lib.h: Add prototype for path_name_max.
3404 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
3406 * src/include/nonposix.h (PATH_EXT): New macro.
3408 2005-03-28 Werner LEMBERG <wl@gnu.org>
3410 Add support for double- and zero-width characters in grotty.
3412 * src/devices/grotty/tty.cpp (glyph): Add width.
3413 (tty_printer::make_underline, tty_printer::make_bold,
3414 tty_printer::add_character): Add parameter to pass character width.
3416 (tty_printer::end_page): Increase hpos by actual character width.
3418 * font/devutf8/R.proto: Specify zero width for non-spacing
3421 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
3423 * Makefile.comm (extraclean): Remove more junk files.
3425 2005-03-25 Werner LEMBERG <wl@gnu.org>
3427 * configure.ac: Undo change from 2005-03-24.
3428 * configure: Regenerated.
3430 2005-03-24 Werner LEMBERG <wl@gnu.org>
3432 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
3433 (dist): Search Makefile while descending into $(EXTRADIRS).
3435 * doc/Makefile.in (.PHONY): Add.
3436 (clean): Don't remove *.png and *.eps.
3438 (realclean): Remove *.png and *.eps.
3439 (extraclean): Depend on distclean.
3441 * configure.ac: Add copyright.
3442 Handle contrib/pdfmark/Makefile.
3444 * configure: Regenerated.
3446 2005-03-18 Larry Kollar <kollar@alltel.net>
3448 Add numbered and definition lists to www.tmac.
3450 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
3451 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
3452 auxiliary string registers.
3453 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
3454 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
3455 (www-level): Removed.
3456 (www-level1, www-level2, www-level3): Initialize to empty.
3457 (www-level0, www-level4, www-level5, www-level6, www-level7,
3458 www-level8, www-level9): New string registers.
3459 (www-push-li, www-pop-li): New macros.
3460 (www-push-level, www-pop-level): Renamed to...
3461 (www-push-ul-level, www-pop-ul-level): This.
3463 (www-push-ol-level, www-pop-ol-level): New macros.
3464 (ULS, ULE): Updated.
3465 (OLS, OLE, DLS, DLE): New user macros.
3466 (LI): Removed. It is aliased to one of...
3467 (www-li-ul, www-li-ol, www-li-dl): New macros.
3469 * tmac/groff_www.man: Document new macros.
3473 2005-03-18 Werner LEMBERG <wl@gnu.org>
3475 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
3476 doc-operating-system-NetBSD-2.0.2): New strings.
3478 * tmac/groff_mdoc.man: Updated.
3480 2005-03-17 Werner LEMBERG <wl@gnu.org>
3482 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
3484 2005-03-17 Werner LEMBERG <wl@gnu.org>
3486 * src/libs/libgroff/hypot.c: Renamed to...
3487 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
3489 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
3491 * src/include/lib.h: Updated.
3493 2005-03-16 Werner LEMBERG <wl@gnu.org>
3495 Add workaround for broken hypot() on Interix.
3497 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
3499 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
3500 (CSRCS): Add `hypot.c'.
3502 * src/include/lib.h: Declare `groff_hypot'.
3504 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
3507 * src/preproc/pic/pic.h: Don't declare `hypot'.
3509 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
3511 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
3513 * src/devices/grohtml/post-html.cpp
3514 (html_printer::lookahead_for_tables): End .ce properly to avoid a
3517 2005-03-15 Werner LEMBERG <wl@gnu.org>
3519 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
3521 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
3523 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
3525 2005-03-14 Werner LEMBERG <wl@gnu.org>
3527 Add Cyrillic support to devutf8 and devhtml.
3529 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
3531 * tmac/unicode.tmac: New file.
3533 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
3535 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
3539 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
3541 * src/libs/libdriver/printer.cpp (check_for_output_error): New
3542 function. It has been introduced to catch peculiar error contexts
3543 on MS-Windows platforms.
3545 2005-02-28 Werner LEMBERG <wl@gnu.org>
3547 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
3550 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
3552 * configure: Regenerated.
3556 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3558 Integrate `pdfmark' into normal groff build system;
3559 install macro `pdfmark' packages, build and install `pdfroff',
3560 and PDF format documentation.
3562 * Makefile.comm: Add PDFDOCDIR.
3564 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
3565 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
3566 (unstall_dirs): Add pdfdocdir.
3568 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
3569 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
3570 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
3571 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
3572 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
3573 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
3575 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
3576 use of GROFF_AWK_PREFS.
3577 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
3578 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
3580 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
3581 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
3582 also by modified GROFF_HTML_PROGRAMS).
3584 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
3586 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
3588 (html_text::done_para): Unset `start_space'.
3589 (html_text::remove_para_align): Call `retrieve_para_space' for the
3592 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
3594 (html_printer::do_check_center): Emit vertical space if necessary.
3596 * src/roff/troff/env.cpp (environment_switch): Preserve
3597 `seen_space', `seen_eol', and `suppress_next_eol' while switching
3600 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
3603 2005-02-20 Werner LEMBERG <wl@gnu.org>
3605 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
3608 2005-02-17 Werner LEMBERG <wl@gnu.org>
3610 * doc/pic.ms, man/groff.man: Fix typos.
3612 * doc/groff.texinfo: Fix typos.
3613 (\LEmacro): Get proper mathematical spacing.
3615 2005-02-16 Werner LEMBERG <wl@gnu.org>
3617 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
3618 * configure: Regenerated with autoconf 2.59b.
3620 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
3622 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
3623 html_printer::start_font): Fix handling of preformatted text.
3625 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
3627 These patches modify the indentation implementation to use `<p
3628 style=margin-left: n%>'. Many thanks to Peter and Larry for
3629 suggesting this solution. Grohtml only uses tables for `.IP' and
3630 related tags when the first operand has a short width.
3632 Similarly, they modify all vertical space code. By default, grohtml
3633 sets up a style sheet which uses no vertical space between `table',
3634 `pre', and `p' tags. It forces spaces when it needs them using
3635 `style="margin-top: 1em"'.
3637 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
3638 (html_table::emit_table_header, html_table::emit_new_row):
3640 (html_table::set_space): New function.
3641 (html_indent::html_indent): Don't set `is_used'.
3642 (html_indent::begin): Rewritten.
3643 (html_indent::end): Remove code in function.
3645 * src/devices/grohtml/html-table.h: Updated.
3646 (html_table): Make `out' public.
3648 * src/devices/grohtml/html-text.cpp (html_text::html_text):
3649 Initialize `start_space' with FALSE.
3650 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
3651 (html_text::issue_tag): Add argument to handle space style.
3652 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
3653 (html_text::flush_text): Don't set `start_space'.
3654 (html_text::push_para): Don't set `p->really_issued'.
3655 (html_text::do_emittext): Updated.
3656 (html_text::do_para): Add paremeter to handle space.
3658 (html_text::retrieve_para_space): New function.
3660 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
3661 (tag_definition): Remove `really_issued'.
3662 (html_text): Updated.
3664 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
3665 `current_column' and `row_space'.
3667 (html_printer::emit_raw, html_printer::write_header,
3668 html_printer::do_indent, html_printer::do_check_center,
3669 html_printer::do_tab_ts): Handle vertical space.
3670 (html_printer:do_tab_te, html_printer::do_end_para): Call
3671 `remove_para_space'.
3672 (html_printer::do_col): Rewritten.
3673 (html_printer::flush_globs): Remove debugging code.
3674 (html_printer::is_line_start): New function.
3675 (html_printer::start_font): Use `is_line_start'.
3676 (html_printer::writeHeadMetaStyle): New function.
3677 (html_printer::do_file_components, html_printer::~html_printer):
3678 Call `writeHeadMetaStyle'.
3680 * tmac/www.tmac (www-handle-percent): New macro.
3681 (MPIMG): Handle percent values for width and height parameters.
3684 * tmac/groff_www.man: Updated.
3686 2005-02-14 Werner LEMBERG <wl@gnu.org>
3688 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
3689 $psname and $italic_angle.
3690 Immediately restart file input loops if `split' returns an empty
3693 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
3694 Werner LEMBERG <wl@gnu.org>
3696 Update afmtodit to better support Unicode (Michail).
3697 Update afmtodit to use Perl 5 syntax (Werner).
3699 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
3701 Decorate variables with `my' where necessary.
3702 Use `defined' where necessary to avoid warnings.
3703 Don't use `do' for subroutine calls.
3704 Other minor syntax updates.
3705 Check for both `uXXXX[X[X]]' and `uniXXXX'.
3706 Handle glyph variants properly.
3707 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3710 * src/utils/afmtodit/afmtodit.man: Updated.
3712 2005-02-13 Werner LEMBERG <wl@gnu.org>
3714 Make groff.texinfo work with texinfo 4.8.
3716 * doc/groff.texinfo (@Var): Use @r and @slanted.
3717 (@defdummy, @Def*): Use @c to avoid empty lines.
3718 (\angles): Replaced with...
3719 (\Langlemacro, \Ranglemacro): New TeX macros.
3720 (@Langlemacro, @Ranglemacro): New variables defined with @set.
3721 (@angles): Use @Langlemacro and @Ranglemacro.
3722 (\LE): Replaced with...
3723 (\LEmacro): New TeX macro.
3724 (@LEmacro): New variable defined with @set.
3725 (@LE): Use @LEmacro.
3726 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3727 variables defined with @set.
3728 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3729 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3732 Other minor updates.
3734 * doc/texinfo.tex: Update to texinfo version 4.8.
3736 * README.CVS: Updated.
3738 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3740 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3741 and `FAM' registers.
3743 2005-02-05 Werner LEMBERG <wl@gnu.org>
3745 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3746 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3749 2005-02-01 Werner LEMBERG <wl@gnu.org>
3751 * src/roff/groff/groff.man: Add information about paper size.
3753 2005-01-25 Werner LEMBERG <wl@gnu.org>
3755 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
3758 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
3760 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
3762 (Re): Emit a warning if called without `.Rs'.
3763 (doc-finish-reference): Use parameter for decreasing
3764 `doc-reference-count'.
3765 (doc-print-reference): Pass specific count parameters to
3766 `doc-finish-reference'.
3768 2005-01-21 Werner LEMBERG <wl@gnu.org>
3770 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3771 Reset pointers to zero after deallocation. This fixes a crash
3772 if a driver is called with multiple input files. Reported by
3773 Ken Chilton <ken@chiltonfamily.org>.
3775 * src/devices/grops/grops.man: Add more info on DSC.
3777 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3779 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3782 2005-01-17 Werner LEMBERG <wl@gnu.org>
3784 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3785 against division by zero.
3787 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
3789 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3791 2004-12-19 Werner LEMBERG <wl@gnu.org>
3793 * install-sh: New version; taken from texinfo CVS.
3795 2004-12-17 Werner LEMBERG <wl@gnu.org>
3797 * tmac/devtag.tmac: Protect against loading twice.
3798 Protect agains compatibility mode.
3799 * tmac/www.tmac: Protect against loading twice.
3800 Load `devtag.tmac' before switching off compatibility mode.
3801 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3803 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
3805 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3806 * configure: Updated.
3808 2004-12-15 Thomas Klausner <wiz@netbsd.org>
3810 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3812 2004-12-15 Werner LEMBERG <wl@gnu.org>
3814 Make `test-groff' work again -- previously, wrong paths have been
3815 used. Additionally, it can now be called from anywhere.
3817 * test-groff.in: Don't test for groff binary. This is no longer
3818 necessary since the proper paths are determined by `configure'.
3819 (EXEEXT): Removed. No longer used.
3820 (srcdir, builddir): Use values provided by the configure script.
3821 (XENVIRONMENT): Updated.
3825 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
3827 Make .tag and .taga work for all devices (but only grohtml actually
3830 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3831 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3832 html_printer::handle_assertion): Don't use hard-coded string
3834 (html_printer::lookahead_for_table): Reset `tbl' properly if
3836 (html_printer::devtag): New function, handling `devtag'.
3837 (html_printer::special): Don't handle `html-tag'.
3839 * src/include/printer.h, src/libs/libdriver/printer.cpp
3840 (printer::devtag): New virtual function.
3842 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3845 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3846 src/roff/troff/node.cpp: s/html-tag/devtag/.
3848 * src/roff/troff/input.cpp (tag, taga): Always call
3851 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3852 macros instead of HTML-TAG*.
3854 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3856 * tmac/www.tmac: Load devtag.tmac.
3857 Replace HTML-TAG* macros with DEVTAG* macros.
3858 (HTML, HTML-NS): Changed definitions.
3860 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3862 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3864 2004-12-10 Werner LEMBERG <wl@gnu.org>
3866 Import Mike's `gdiffmk' package.
3868 * contrib/gdiffmk/*: New files.
3869 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3872 2004-12-08 Werner LEMBERG <wl@gnu.org>
3874 Import Keith's `pdfmark' package. Integration is very preliminary.
3876 * contrib/pdfmark/*: New files.
3877 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3880 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
3882 Fix a bug with title handling in HTML.
3884 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3885 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3887 (html_printer::handle_tag_within_title): New function.
3888 (html_printer::do_title): Use it.
3890 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3891 (cov*tl-au-print): Emit `.eo.tl' tag.
3893 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
3895 * man/groff_char.man: Minor imrovements.
3897 2004-12-04 Werner LEMBERG <wl@gnu.org>
3899 * src/preproc/eqn/eqn.man: Revised.
3901 2004-11-25 Werner LEMBERG <wl@gnu.org>
3903 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3907 Remove X_NOT_STDC_ENV conditional.
3908 (Version_string, program_name): New global variables.
3909 (groff_flag): Removed.
3911 (usage): Take a stream as argument.
3914 (main): Add `long_options' array for `--help' and `--version'.
3915 Make `-g' a dummy option.
3916 Handle `-v' and unknown options.
3917 Remove unused `position' variable.
3919 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3920 (XLIBS): Add LIBGROFF.
3922 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3925 * src/devices/xditview/Dvi.c (default_font_map): Split into three
3926 parts to avoid compiler warning.
3927 (resources): Don't initialize with `default_font_map'.
3928 (ClassInitialize): Initialize first element of `resources'.
3930 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3933 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3934 src/utils/pfbtops/pfbtops.man: Revised, updated.
3936 * configure.ac: Generate src/utils/xtotroff/Makefile.
3937 * configure: Regenerated.
3939 2004-11-24 Werner LEMBERG <wl@gnu.org>
3941 First fixes to get produce HTML.
3943 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3946 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3947 (HR, LI): Use `HTML</p>', not `HTML'.
3949 * doc/webpage.ms: Minor updates.
3951 2004-11-23 Larry Kollar <kollar@alltel.net>
3953 Add option -S grohtml to determine the file split level.
3955 * src/devices/grohtml/post-html.cpp (split_level): New global
3957 (html_header::determine_header_level): Use split_level.
3958 (main): Handle `-S' command line option.
3961 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3963 * src/devices/grohtml/grohtml.man: Document it.
3966 * NEWS: Document it.
3968 2004-11-23 Y T <doarhop@hotmail.com>
3970 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3971 the volume and number refer entries.
3973 2004-11-22 Werner LEMBERG <wl@gnu.org>
3975 * src/devices/grohtml/html-table.cpp
3976 (html_table::emit_table_header): Don't emit `cols' attribute which
3977 doesn't exist in HTML 4.0 and is thus invalid.
3979 * NEWS: More minor fixes and updates.
3981 2004-11-18 Werner LEMBERG <wl@gnu.org>
3983 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3984 (HTML</p>): Minor clean-up.
3986 * tmac/groff_www.man: Updated.
3988 * src/devices/grohtml/grohtml.man: Revised and updated.
3992 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
3994 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3995 Fix space insertion.
3996 (html_printer::do_links): Fix rules generation around automatic
3999 * tmac/www.tmac (LK): Use HTML-TAG-NS.
4001 No longer emit empty line for non-HTML devices.
4003 2004-11-17 Werner LEMBERG <wl@gnu.org>
4005 * doc/Makefile.in (prepare_examples, webpage.html): Handle
4008 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
4009 prepare_examples, webpage.html): Handle `groff.css'.
4011 2004-11-15 Werner LEMBERG <wl@gnu.org>
4013 * NEWS, README, doc/webpage.ms: Updated.
4015 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
4017 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
4019 * src/include/printer.h (printer): Remove virtual function
4021 Update all source files.
4023 * src/devices/grohtml/post-html.cpp (html_printer): New member
4024 function `round_width'.
4026 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
4028 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
4029 column key letter suffix.
4031 2004-10-14 Werner LEMBERG <wl@gnu.org>
4033 * Makefile.in (check): Depend on `site.exp' and `docheck'.
4034 (docheck): Run dejagnu's `runtest' if it exists.
4035 (site.exp): Create dejagnu configuration file.
4037 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
4039 2004-10-13 Werner LEMBERG <wl@gnu.org>
4041 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
4042 src/devices/grohtml/post-html.cpp (make_val,
4043 html_printer::handle_state_assertion): Fix compiler warnings.
4045 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
4046 (diversion::diversion): Fix order of initializers.
4048 * src/roff/troff/div.h: Don't include `mtsm.h'.
4050 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
4051 (environment::environment): Fix order of initializers.
4052 (environment::make_tag, environment::construct_format_state): Fix
4055 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
4056 (input_iterator::input_iterator, macro::macro): Fix order of
4059 * src/roff/troff/mtsm.cpp: Include only necessary header files.
4060 (state_set::add, state_set::val): Fix compiler warnings.
4062 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
4063 (bool_value_state, int_value_state, units_value_state,
4064 string_value_state): Remove comma after last element which causes
4065 an error with g++ 3.3.3.
4067 * src/roff/troff/node.cpp: Include `stringclass.h'.
4068 (hline_node::hline_node, vline_node::vline_node,
4069 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
4071 (zero_width_node::zero_width_node): Fix order of initializers.
4073 * src/roff/troff/node.h: Don't include `mtsm.h'.
4074 (hmotion_node): Fix compiler warnings.
4076 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
4078 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
4080 * doc/groff.css: New file.
4082 * doc/webpage.ms: Use `groff.css'.
4085 * tmac/an-old.tmac (need_eo_h): New number register.
4086 (TH): Emit `.eo.tl' tag after title.
4087 (SH): Set `need_eo_h'.
4088 (an-trap): Handle `need_eo_h'.
4089 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
4091 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
4092 (TL): Always start diversion.
4094 (@AI): Always call `par@reset'.
4095 (@AB): Update code for -Thtml.
4096 (cov*tl-au-print): Handle -Thtml.
4097 (par@reset): Handle `need_eo_tl', `need_eo_h'.
4099 (@IT-html): Removed.
4100 (@SH): Set `need_eo_h' for -Thtml.
4101 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
4103 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
4104 Set `need_eo_h' for -Thtml.
4105 (@EQ, @EN): Don't handle -Thtml specially.
4106 (par@load-init): Don't handle -Thtml specially.
4108 * tmac/www.tmac (www:paraspace): New macro.
4109 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
4110 (HTML</p>, HTML-TAG-NEXT): New macros.
4111 (HnE): Emit tag `.eo.h' instead of break.
4112 (HR): s/HTML-NS/HTML/.
4113 (www-end-nowhere): End diversion only if `www-html' not set.
4115 (ULS, ULE): s|HTML|HTML</p>|.
4116 (LI): Call `www:paraspace'.
4119 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
4121 * src/roff/troff/request.h (macro): Make `p' public.
4122 New variable `is_a_diversion'.
4123 New member function `is_diversion'.
4126 * src/devices/grohtml/html.h (simple_output): New member function
4129 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
4130 computation of `total'.
4131 (tabs::check_init): New function.
4132 (html_table::emit_table_header): Emit style data.
4133 (html_table::insert_column): Improved.
4135 * src/devices/grohtml/html-table.h: Updated.
4137 * src/devices/grohtml/html-text.cpp (html_text::html_text):
4138 Initialize `start_space' with TRUE.
4139 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
4141 (html_text::flush_text): Set `start_space' flag.
4142 (html_text::uses_indent, html_text::remove_para_space,
4143 html_text::get_alignment): New functions.
4144 (html_text::push_para): Updated.
4145 (html_text::do_para): Check for empty argument.
4146 Don't set `space_emitted'.
4147 (html_text::do_space, html_text::emit_space): Updated.
4149 * src/devices/grohtml/html-text.h (tag_definition): New variable
4151 (html_text): New member function `uses_indent', `remove_para_space',
4154 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
4156 (simple_output:nl): Always emit `\n'.
4158 * src/devices/grohtml/post-html.cpp: Include `string.h'.
4159 (BASE_POINT_SIZE): Removed.
4160 (base_point_size, head_info): New global variables.
4161 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
4163 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
4165 (page::add_and_encode): Pass additional parameter for tag flag.
4166 (assert_pos): New structure.
4167 (assert_state): New class.
4168 (html_printer): Remove `indentation', `prev_indent'.
4169 Add variables `troff_indent', `device_indent', `temp_indent'.
4170 Add variables `seen_indent', `next_indent', `seen_pageoffset',
4171 `next_pageoffset', `seen_linelenght', `next_linelength',
4172 `seen_center', `next_center', `seen_space', `seen_break', `as'.
4173 Add member functions `do_check_center', `do_space', `do_head',
4174 `get_troff_indent', `restore_troff_indent', `handle_assertion',
4175 `handle_state_assertion', `do_end_para', `set_char_and_width'.
4176 Change argument to `do_fill' to `char *'.
4178 (html_printer::emit_raw): Call `shutdown_table'.
4180 (html_printer::do_center): Simplified.
4181 (html_printer::do_title): Improved.
4182 (html_printer::write_header): Emit one more newline.
4184 (html_printer::do_heading, html_printer::do_indent,
4185 html_printer::do_eol, html_printer::do_tab_ts,
4186 html_printer::do_tab, html_printer::do_tab0,
4187 html_printer::calc_po_in, html_printer::next_horiz_pos,
4188 html_printer::remove_courier_tabs,
4189 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
4191 (html_printer::do_linelength, html_printer::do_pageoffset,
4192 html_printer::do_indentation, html_printer::do_tempindent,
4193 html_printer::do_tab_te): Simplified.
4194 (html_printer::do_pointsize): Check whether point size is really
4195 associated a `.tl' tag.
4196 (html_printer::do_break): Rewritten.
4197 (html_printer::troff_tag): Improved.
4198 (html_printer::flush_globs): Updated.
4199 (html_printer::lookahead_for_tables): Handle `is_br'.
4201 (html_printer::set_char): Check `sbuf_style.f'.
4202 (html_printer::write_navigation): Use string comparison.
4203 (html_printer::~html_printer): Emit `head_info'.
4204 (html_printer::special): Rewritten.
4205 (get_str, make_val): New functions.
4206 (main): New option `s' to set the base point size.
4208 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
4210 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
4212 * src/roff/troff/node.cpp: New extern `debug_state'.
4213 Include `stringclass.h' and `mtsm.h'.
4214 Implement new classes and class members from `node.h'.
4215 (real_output_file): Make `fp' public.
4216 (troff_output_file): New variables `cur_div_level' and `tag_list'.
4217 Update constructors.
4218 (troff_output_file::really_print_line): Check whether we should push
4219 the current troff state and use the state at the start of the
4220 invocation of this diversion.
4221 (troff_output_file::add_to_tag_list): New member function.
4222 (node::add_char): Handle `glyph_comp_np'.
4224 * src/roff/troff/node.h: Include `mtsm.h'.
4225 (node): New variables `state', `push_state', `div_nest_level',
4226 `is_special'. Update constructors, all descendants.
4227 Pass additional argument to `add_char' member function.
4228 New virtual member functions `is_tag', `debug_node',
4229 `debug_node_list'. Update all descendants.
4230 (tag_node): New class for handling tags.
4231 (output_file): Add variable `state'.
4233 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
4235 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
4236 providing a minimal troff state machine to emit meta tags for the
4237 post-grohtml device driver.
4239 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
4242 2004-10-09 Werner LEMBERG <wl@gnu.org>
4244 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
4246 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
4248 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
4250 * src/roff/troff/div.h: Include `mtsm.h'.
4251 (diversion): New variables `any_chars_added', `needs_push',
4252 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
4253 `saved_suppress_next_eol', `modified_tag'.
4254 New virtual member function `is_diversion'. Update all descendants.
4256 * src/roff/troff/div.cpp (diversion::diversion,
4257 macro_diversion::macro_diversion): Updated.
4258 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
4259 `suppress_next_eol'.
4260 (top_level_diversion::space): Handle `curenv->seen_space'.
4261 (page_offset): Update tag handling.
4262 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
4264 * src/roff/troff/env.h (environment): Make `tabs' public.
4265 Remove `ignore_next_eol', `emitted_node'.
4266 Update `output_line', `output'.
4267 New variables `seen_space', `seen_eol', `suppress_next_eol',
4269 New member functions `construct_state', `make_tag',
4270 `construct_format_state, `construct_new_line_state,
4272 Remove `add_html_tag', `make_html_tag'.
4274 * src/roff/troff/env.cpp: New externs `suppress_push',
4275 `get_diversion_state', `global_diverted_space'.
4276 (pending_output_line): New variable `was_centered'.
4277 Update constructor and all callers.
4278 (pending_output_line::output): Call `curenv->construct_format_state'.
4279 (environment::environment, environment::copy): Updated.
4280 (environment::output): Handle `was_centered'.
4281 (environment::add_char): Handle construct and diversion state.
4282 (environment::add_node): Handle construct state.
4283 (environment::newline): Handle `was_centered'.
4284 (environment::output_line): Updated.
4285 (environment::possibly_break_line): Updated.
4286 Update tag handling.
4287 (environment::add_html_tag): Replaced with...
4288 (environment::make_tag): New function.
4289 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
4290 (environment::dump_troff_state): New debugging function.
4291 (environment::construct_state, environment::construct_format_state,
4292 environment::construct_new_line_state): New functions.
4293 (environment::do_break): Updated.
4294 Handle `global_diverted_space'.
4295 (environment::handle_tag): Update tag handling.
4296 (point_size, fill, do_break_request): Don't call `add_html_tag'.
4297 (no_fill): Don't call `add_html_tag'.
4298 Set `suppress_next_eol'.
4299 (center, right_justify, line_length, indent, temporary_indent,
4301 Update tag handling.
4303 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
4304 (input_iterator): New variables `is_diversion', `diversion_state'.
4305 Update constructors.
4306 (input_stack): New member functions `get_div_level',
4307 `get_diversion_state', `check_end_diversion'.
4308 New variables `div_level', `diversion_state'. Initialize them.
4309 (suppress_push, global_diverted_space): New global variables.
4310 (input_stack::finish_get, input_stack::finish_peek,
4311 input_stack::remove_boundary, input_stack::end_file,
4312 input_stack::clear, input_stack::pop_macro): Call
4313 `check_end_diversion'.
4314 (input_stack::push): Handle `div_level' and `diversion_state'.
4315 (get_diversion_state): New function.
4316 (diverted_space_node::reread): Handle `global_diverted_space'.
4317 (macro::macro): Update constructors.
4318 (macro::is_diversion): New function.
4319 (macro::operator=): Set `is_a_diversion'.
4320 (string_iterator): New member function `is_diversion'.
4321 (string_iterator::string_iterator): Update constructors.
4322 (string_iterator::fill): Set `div_nest_level'.
4323 (macro_iterator): New member function `is_diversion'.
4324 (do_if_request): Handle `suppress_push'.
4325 (tag, taga): New functions.
4326 (init_input_requests): Add `tag' and `taga' requests.
4328 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
4330 * src/include/font.h (font): New member function
4331 `get_image_generator'.
4332 New variables `unscaled_charwidths' and `image_generator'.
4334 * src/libs/libgroff/font.cpp (font::get_width): Always return the
4335 character's unscaled width if `font::unscaled_charwidths' is set.
4336 (font::get_image_generator): New function.
4337 (font::load_desc): Check the `unscaled_charwidths' and
4338 `image_generator' keywords.
4340 * src/libs/libgroff/fontfile.cpp: Initialize
4341 `font::unscaled_charwidths' and `font::image_generator'.
4343 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
4345 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
4347 * man/groff_font.man: Document `unscaled_charwidths' and
4350 * src/preproc/html/pre-html.cpp: Include `device.h'.
4351 (image_gen): New global variable.
4352 (imageList::createPage): Use `image_gen'.
4353 (main): Use `image_generator' keyword.
4355 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4357 * tmac/html.tmac: Handle \[sqrtex].
4359 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4361 * src/include/printer.h (printer): New virtual method `round_width'.
4363 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
4364 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
4365 src/devices/grotty/tty.cpp (printer::round_width): New function
4368 * src/devices/grohtml/post-html.cpp (printer::round_width): New
4370 (html_printer::set_numbered_char): Use it.
4372 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
4374 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
4376 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
4378 * configure: Regenerated.
4380 * Makefile.in (GHOSTSCRIPT): New variable.
4381 (MDEFINES): Add GHOSTSCRIPT.
4383 2004-10-03 Werner LEMBERG <wl@gnu.org>
4385 * INSTALL.gen: Updated (taken from texinfo CVS).
4387 2004-09-28 Werner LEMBERG <wl@gnu.org>
4391 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4393 * tmac/groff_www.man: Revised and updated.
4395 2004-09-26 Werner LEMBERG <wl@gnu.org>
4397 Fix \$@ and \$* to handle any number of arguments.
4399 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
4402 * src/roff/troff/input.cpp (input_iterator::internal_level):
4404 (input_stack): New member functions `increase_level' and
4406 (input_stack::get_level): Don't use `internal_level'.
4407 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
4408 (end_quote_iterator): Completely removed.
4409 (interpolate_arg): Build string for \$@ and \$* which is then
4410 pushed onto the input stack.
4412 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
4414 * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
4415 Registers): Document changes from 2004-09-19.
4417 2004-09-23 Werner LEMBERG <wl@gnu.org>
4419 * tmac/an-old.tmac (ne): Using default scaling operator.
4421 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4423 This change implements the following features:
4426 New numeric register: Defines number of lines following LP, PP,
4427 QP, IP or XP, which must be kept together, before any automatic
4428 page break. If insufficient space remains on the current page, a
4429 page break is forced before the new paragraph begins.
4432 New numeric register: Sets number of lines of following paragraph
4433 which must be kept with a heading, defined by NH or SH, before any
4434 automatic page break. If insufficient space remains on the
4435 current page, a page break is forced before the heading.
4438 (Thanks to Joerg van den Hoff, for this idea).
4440 New numeric register: Sets the first level of heading (set with
4441 NH), which will keep the same point size as body text; e.g. if
4442 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
4443 point size specified by \n[PS], but .NH 2 and .NH 1 will have
4444 progressively larger point sizes, determined by \n[PSINCR] (see
4448 New numeric register: Sets the point size increment for each level
4449 of heading, (set with NH), below the threshold level set by
4450 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
4451 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
4452 and all other levels will remain at 10pt, (because \n[PS] = 10).
4455 Existing macro now accepts a numeric argument, to make heading
4456 size match that of NH with same argument value, when the
4457 GROWPS/PSINCR feature is enabled.
4460 New string, set by NH macro, replaces the existing (undocumented)
4461 use of SN, to represent the assigned section number.
4464 New string, set by NH macro, represents the assigned section
4465 number, but omits the terminal period (periods at intermediate
4466 levels are retained).
4469 String set by NH macro, originally undocumented, now implemented
4470 as an alias for SN-DOT (which reproduces original behaviour).
4472 * tmac/s.tmac (PORPHANS): New register.
4473 (par*start): Use it.
4474 (HORPHANS, GROWPS, PSINCR): New registers.
4475 (SH-NO-TAG, @SH): Use them.
4478 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4480 * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
4481 Document the deletion of `Ds' and `De' macros.
4483 2004-09-10 Werner LEMBERG <wl@gnu.org>
4485 In tbl, handle \a as an interpreted leader character if in
4488 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
4489 LEADER_CHAR): New macros.
4490 (compatible_flag): New declaration.
4492 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
4493 LEADER_3, and LEADER_4 to `state'.
4494 (table_input::get): Handle `\a'.
4496 * src/preproc/tbl/table.cpp (PREFIX): Removed.
4497 (LEADER_REG): New macro.
4498 (table::init_output): Define LEADER_REG string register if in
4501 * src/preproc/tbl/tbl.man: Document it.
4503 2004-08-18 Werner LEMBERG <wl@gnu.org>
4505 * tmac/doc.tmac (An): Fix error message.
4507 2004-08-06 Werner LEMBERG <wl@gnu.org>
4509 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
4510 file can't be opened. UNIX tbl has the same behaviour.
4512 2004-08-05 Y T <doarhop@hotmail.com>
4514 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
4515 (DBRead): If in compatibility mode, take into account the text
4516 when computing figure boundaries.
4518 2004-08-05 Werner LEMBERG <wl@gnu.org>
4520 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
4521 from Tadziu Hoffmann.
4523 2004-08-03 Werner LEMBERG <wl@gnu.org>
4525 * doc/meref.me: Document `_M' register.
4527 2004-08-03 Martin Husemann <martin@duskware.de>
4529 Make hpftodit work correctly on big-endian systems.
4531 * src/utils/hpftodit/hpftodit.cpp (File): New method
4532 `get_uint32(char *)'.
4533 (entry): New member `orig_value'.
4534 (read_tags): Use new method.
4535 (output_font_name, read_and_output_pcltypeface, dump_ascii):
4538 2004-08-01 Werner LEMBERG <wl@gnu.org>
4540 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
4541 are already in X11's `macros.t' file.
4543 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
4545 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
4547 (read_and_output_pcltypeface): Handle strings with length <= 4.
4549 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
4551 * tmac/s.tmac (pg@top): Don't save `PO' register.
4552 (pg*end-col, pg*end-page): Directly use `PO' register.
4554 2004-07-27 Werner LEMBERG <wl@gnu.org>
4556 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
4558 * src/preproc/refer/refer.cpp (output_references): Check for
4560 * src/preproc/refer/refer.man: Improve documentation of
4561 `bibliography' command.
4563 2004-07-26 Werner LEMBERG <wl@gnu.org>
4565 Add requests `fcolor' and `gcolor'.
4567 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
4569 (init_env_requests): Add `fcolor' and `gcolor'.
4571 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
4573 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
4574 (Colors): Document new requests.
4576 2004-07-24 Werner LEMBERG <wl@gnu.org>
4578 Add support for fractional point sizes in ms macros. A value for
4579 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
4580 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
4582 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
4583 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
4585 * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
4586 Registers), NEWS: Document it.
4588 2004-07-19 Werner LEMBERG <wl@gnu.org>
4590 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
4592 (do_for, for_input::get, for_input::peek): Handle negative `by'.
4593 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
4595 2004-07-08 Thomas Klausner <wiz@netbsd.org>
4597 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4598 * tmac/groff_mdoc.man: Updated.
4600 2004-07-05 Werner LEMBERG <wl@gnu.org>
4602 * doc/groff.texinfo (Manipulating Hyphenation): Further improve
4603 documentation of `hcode'.
4605 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
4607 Improve appearance of arrows in pic.
4609 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
4611 Use two line segments for drawing non-filled arrow head.
4612 (line_object::print, spline_object::print): Shorten line length to
4613 avoid arrow sticking.
4614 (arc_object::print): Take arrow direction into account.
4616 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4618 * tmac/groff_www.man: Update documentation of .MPIMG.
4620 2004-07-03 Werner LEMBERG <wl@gnu.org>
4622 * tmac/an-old.tmac (RI): Always start with font `R'.
4623 (RI, IR): Properly end with font `R'.
4625 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
4627 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
4628 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
4629 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
4630 Don't pass more than six arguments to .R, .I, .B, etc., for
4631 compatibility with traditional troff macros.
4633 2004-07-02 Werner LEMBERG <wl@gnu.org>
4635 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4636 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
4638 (PUSH_COMP_MODE): New internal character constant.
4641 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
4642 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
4643 (token::next, macro::append): Handle PUSH_COMP_MODE.
4644 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
4645 POP_GROFFCOMP after each of the decoded arguments to make them
4646 independent from the compatibility mode status.
4647 (comp_mode): Add `COMP_ENABLE'.
4648 (do_define_string, do_define_macro): Handle COMP_ENABLE.
4649 (define_string, append_string, define_macro, define_indirect_macro,
4650 append_macro, append_indirect_macro): Handle `compatible_flag'.
4651 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
4653 * man/groff_diff.man, doc/groff.texinfo: Updated.
4655 2004-07-01 Werner LEMBERG <wl@gnu.org>
4657 * doc/groff.texinfo: Improve documentation of `hcode'.
4658 Use @documentencoding and convert document to latin-1; to do that
4659 make latin characters active and assign proper macros (within a
4660 @tex...@end tex environment).
4661 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
4662 * doc/Makefile.sub (groff): Ditto.
4664 2004-06-29 Werner LEMBERG <wl@gnu.org>
4666 Implement two new conditional operators `F <name>' and `S <name>'
4667 which check whether <name> is a valid font or style, respectively.
4669 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
4670 (text_file::text_file): Updated.
4671 (text_file::error): Don't emit message if `silent' is set.
4672 (font::load_font): Add optional third argument (which is directly
4674 (font::load): Add optional second argument to check the header of
4675 a font only, without emitting warning or error messages.
4676 * src/include/font.h (font): Updated.
4678 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
4680 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
4681 fourth argument to check a font without mounting.
4682 (check_font, check_style): New functions.
4683 * src/roff/troff/node.h: Updated.
4685 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4688 2004-06-27 Werner LEMBERG <wl@gnu.org>
4690 Implement new string-valued register `.sty' to return the current
4693 * env.cpp (environment::get_style_name_string): New function.
4694 (init_env_requests): Add `.sty' register.
4695 * env.h (environment): Updated.
4696 * node.cpp (font_info): Make `get_style_name' a friend.
4697 (get_style_name): New function.
4700 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4703 2004-06-15 Werner LEMBERG <wl@gnu.org>
4705 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4708 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
4710 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4711 and \n[mo] to avoid dependency on current date.
4713 2004-06-08 Werner LEMBERG <wl@gnu.org>
4715 * Makefile.sub (install_data): New target.
4717 2004-06-04 Werner LEMBERG <wl@gnu.org>
4719 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4721 2004-06-03 Werner LEMBERG <wl@gnu.org>
4723 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4725 (install_data): Add $(srcdir).
4727 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4730 2004-06-02 Werner LEMBERG <wl@gnu.org>
4732 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4733 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4734 Add test for Xmu library.
4735 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4736 GROFF_APPRESDIR_DEFAULT): New macros.
4738 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4739 and GROFF_APPRESDIR_DEFAULT.
4741 * configure: Regenerated.
4743 * Makefile.in (appresdir): New variable.
4744 (MDEFINES): Add appresdir.
4746 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4748 (install_data, uninstall_sub): New targets to handle GXditview.ad.
4750 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4751 `$(srcdir)/eign', not `eign'.
4753 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4755 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4756 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4757 Protect (g)xditview with `\%' to avoid hyphenation.
4758 Other minor formatting.
4760 2004-06-01 Werner LEMBERG <wl@gnu.org>
4762 Integrate gxditview into groff's standard directory hierarchy.
4764 * src/xditview/*: Moved to ...
4765 * src/devices/xditview/*: Here.
4766 Moved DviChar.h and XFontName.h to src/include.
4767 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4768 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4769 Moved xtotroff.c to new directory src/utils/xtotroff.
4770 Provide proper Makefile.sub files (reusing the stuff from
4772 DESC renamed to DESC.in.
4773 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4774 Converted everything from K&R to ANSI C.
4775 Decorated with const where appropriate.
4776 Cast string constants with `String' and `char *' where appropriate.
4777 Made it compile with C++ (used as a C compiler).
4778 Removed other minor compiler warnings.
4780 * src/devices/xditview/device.c: Include config.h, string.h, and
4782 Don't declare `exit', `strtok', `strchr', and `getenv'.
4785 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4788 * src/devices/xditview/xditview.c: Include config.h.
4789 Include stdio.h earlier.
4790 Protect declaration of `popen' and `pclose' with
4791 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4792 Replace `caddr_t' with `XtPointer'.
4793 (MakePromptFunc): New typedef.
4794 (DoPrint): Use RETSIGTYPE.
4795 (promptfunction): Change type to MakePromptFunc.
4796 (MakePrompt): Use MakePromptFunc for third argument.
4799 * src/devices/xditview/ad2c: Add casts to `String'.
4801 * src/include/XFontName.h (XFontNameString): Don't use array
4803 Add prototypes for `XParseFontName', `XFormatFontName',
4804 `XCompareFontName', and `XCopyFontName'.
4806 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4809 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4810 Don't declare `XParseFontName' and `XFormatFontName'.
4812 (main): Remove `optind' and `optarg'.
4814 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4815 (to select programs which need X).
4816 Make XDEVIDIRS depend on `FORCE'.
4817 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4819 (MDEFINES): Updated.
4820 (LIBDIRS): Use XLIBDIRS.
4821 (CPROGDIRS): Use XPROGDIRS.
4822 (DEVDIRS): Remove font directories for gxditview.
4823 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4824 (EXTRADIRS): Remove src/xditview.
4826 * Makefile.sub (DISCLEANFILES): Updated.
4828 * Makefile.comm (LIBXUTIL): New variable.
4829 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4830 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4832 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4834 * aclocal.m4 (GROFF_X11): New function.
4836 * configure.ac: Call GROFF_X11.
4837 Don't create src/xditview/Imakefile.
4838 Don't emit notice how to build gxditview.
4840 * configure: Regenerated.
4842 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4844 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
4846 * Makefile.in (CPPFLAGS): Define.
4847 (MDEFINES): Add CPPFLAGS.
4849 2004-05-27 Werner LEMBERG <wl@gnu.org>
4851 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4853 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
4855 Fix problems with `friend name injections'.
4857 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4858 make_script_box), src/roff/troff/div.h (end_diversions),
4859 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4862 2004-05-25 Bernd Warken <bwarken@mayn.de>
4864 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4866 2004-05-25 Werner LEMBERG <wl@gnu.org>
4868 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4869 src/libs/libgroff/color.cpp: Include lib.h.
4871 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
4873 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4874 through Forte 6u1, and for how to get GNU make on Solaris.
4876 2004-05-24 Werner LEMBERG <wl@gnu.org>
4878 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
4881 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
4883 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4886 2004-05-14 Werner LEMBERG <wl@gnu.org>
4888 * REVISION: Set to 2.
4890 * aclocal.m4 (GROFF_STDINT_H): Removed.
4891 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4893 * configure.ac: Updated.
4894 * configure, src/include/config.hin: Regenerated.
4896 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4897 inttypes.h conditionally.
4899 2004-05-13 Werner LEMBERG <wl@gnu.org>
4901 Version 1.19.1 released
4902 =======================
4904 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
4906 * src/preproc/refer/label.y (same_author_last_name,
4907 same_author_name): Handle empty sort keys.
4909 2004-05-10 Werner LEMBERG <wl@gnu.org>
4911 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4914 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4915 doc-str-Lb-librt): Reset font.
4916 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4917 Provide `doc-str-Lb' to reset font.
4918 * tmac/groff_mdoc.man: Updated.
4920 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
4922 * src/preproc/html/pre-html.cpp (make_message): Make it work for
4923 snprintf versions which don't conform to ANSI C 99 (this is,
4924 counting the string's trailing null byte in the return value).
4926 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
4928 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4929 that all implementations of sprintf handle null pointers correctly.
4931 2004-05-04 Werner LEMBERG <wl@gnu.org>
4933 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4934 Document `.U' register.
4936 * src/roff/troff/env.cpp (environment::mark_last_line)
4937 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4939 2004-05-04 Larry Kollar <kollar@alltel.net>
4941 New read-only register `.U'; it returns 1 in safer mode and 0
4944 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4947 2004-05-03 Werner LEMBERG <wl@gnu.org>
4949 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4951 2004-04-17 Werner LEMBERG <wl@gnu.org>
4953 * src/include/font.h (font): Use `int' for ch_index.
4954 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4955 font::compact): Updated.
4957 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4960 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4961 (hyphen_word): Fix compiler warnings.
4962 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4965 (get_delim_number, get_line_arg): Change second argument type to
4967 (macro_header::copy, token::next, do_define_string,
4968 do_define_character, substring_request, asciify_macro,
4969 unformat_macro, read_size, non_interpreted_node::interpret,
4970 while_request, main: Fix compiler warnings.
4971 (read_color_draw_node): Initialize `col'.
4973 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4974 `start_col' and `end_col' of type `int'.
4975 (vertical_rule): Make `col' of type `int'.
4977 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4980 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4982 (format_serial): Use them to remove dependency on ASCII.
4984 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4986 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4989 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4991 (glyph): Change type of `hpos' to `int'.
4993 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
4994 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4996 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4998 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
5000 2004-04-16 Werner LEMBERG <wl@gnu.org>
5002 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
5003 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
5004 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
5005 `double' instead of `float' everywhere.
5006 * src/preproc/grn/main.cpp: Use `double' instead of `float'
5008 (main): Add return value.
5009 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
5011 Update all user functions.
5013 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
5014 src/preproc/eqn/box.h, src/preproc/pic/object.h,
5015 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
5016 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
5017 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
5018 src/roff/troff/input.cpp, src/roff/troff/request.h,
5019 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
5022 * src/utils/indxbib/signal.c: Include stdlib.h.
5024 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
5026 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
5027 before the first page.
5029 2004-04-14 Thomas Klausner <wiz@netbsd.org>
5031 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
5032 (doc-operating-system-*): Updated.
5033 * tmac/doc-syms (doc-str-St-*): Various small fixes.
5034 (doc-str-Lb-*): Add more library names.
5036 2004-04-10 Art Haas <ahaas@airmail.net>
5038 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
5041 2004-04-09 Art Haas <ahaas@airmail.net>
5043 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
5045 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
5047 * arch/misc/shdeps.sh: Generate better comment for sed script.
5049 2004-04-08 Art Haas <ahaas@airmail.net>
5051 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
5052 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
5053 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
5054 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
5055 (polyfill), src/preproc/grn/main.cpp (polyfill),
5056 src/preproc/refer/command.cpp (command_table),
5057 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
5058 gcc 3.5 doesn't like).
5060 2004-04-08 Werner LEMBERG <wl@gnu.org>
5062 Removing many compiler warnings. groff should now compile with
5063 a C++ compiler used for C files also. [Simple variable renamings
5064 to avoid shadowing aren't logged in detail.]
5066 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
5067 (draw_dvi_printer::draw) ['c']: Enclose in block.
5069 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
5070 (page::add_line): Fix typos.
5071 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
5073 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
5074 Some local variable renamings.
5075 * src/devices/grolbp/lbp.h: Some local variable renamings.
5077 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
5080 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
5081 Remove redundant local variable declaration.
5082 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
5083 Don't use `caddr_t' but `void *'.
5084 Enclose functions with `extern "C"' for C++.
5086 * src/libs/libdriver/input.cpp (remember_filename,
5087 remember_source_filename): Use cast for string constant.
5089 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
5090 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
5091 src/libs/libgroff/geometry.cpp: Some local variable renamings.
5092 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
5094 Enclose functions with `extern "C"' for C++.
5095 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
5096 (needs_quoting): Return `int'.
5097 (quote_arg): Add proper casts to malloc and realloc.
5098 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
5099 various MS Windows environments.
5100 (spawnvp_wrapper): Add proper cast to malloc.
5102 * src/preproc/eqn/box.h: Remove redundant declarations of
5103 `make_script_box', `make_mark_box' and `make_lineup_box'.
5104 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
5105 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
5108 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
5109 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
5110 (dx, dy): Renamed functions to...
5111 (deltax, deltay): This.
5112 * src/preproc/grn/main.cpp: Some local variable renamings.
5113 (deffont): Add `const'.
5114 (initpic, conv): Use cast for string constant.
5116 * src/preproc/html/pre-html.cpp: Some local variable renamings.
5117 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
5118 (char_buffer::run_output_filter): Second argument is unused.
5119 * src/preproc/html/pushback.cpp: Some local variable renamings.
5121 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
5122 * src/preproc/pic/object.cpp: Some local variable renamings.
5124 * src/preproc/refer/label.y (lookup_label): Remove redundant
5125 declaration of local variable.
5127 * src/preproc/soelim.cpp: Remove redundant declaration of
5128 `interpret_lf_args'.
5130 * src/preproc/tbl/main.cpp: Some local variable renamings.
5132 * src/roff/groff/groff.cpp (main): Use cast for string constant.
5133 * src/roff/groff/pipeline.c: Enclose declarations of `error',
5134 `c_fatal', and `i_to_a' with `extern "C"' for C++.
5135 Don't use C++-style comments.
5137 * src/roff/troff/env.h: Remove redundant declaration of `title'.
5138 * src/roff/troff/node.h, src/roff/troff/env.cpp,
5139 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
5141 * src/roff/troff/div.h: Remove redundant declaration of
5143 * src/roff/troff/troff.h: Remove redundant declaration of
5145 * src/roff/troff/input.cpp: Remove redundant declaration of
5146 `handle_first_page_transition' and `process_input_stack'.
5148 * src/utils/hpftodit.cpp: Some local variable renamings.
5150 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
5152 Don't define RETSIGTYPE.
5153 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
5155 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
5156 (error): Use `const' in argument.
5157 (main): Remove redundant declaration of `optind'.
5158 Move declaration of `Version_string' to top-level.
5160 * PROBLEMS: Document difficulties compiling signal.c if a C++
5161 compiler is used for C.
5163 2004-04-07 Werner LEMBERG <wl@gnu.org>
5165 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
5167 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
5169 Make scripts like nroff.sh and neqn.sh portable across various
5170 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
5171 non-POSIX path separators. The idea is to extend those scripts to
5172 decide at run-time (of the script) which path separator to use.
5174 * arch/misc/Makefile.sub: New file.
5175 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
5176 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
5177 a proper definition of the variable `GROFF_RUNTIME'.
5179 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
5180 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
5181 (PROGDEPDIRS): New variable.
5183 (PROGDIRS): Add PROGDEPDIRS.
5185 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
5186 Don't substitute @SEP@ and @BINDIR@.
5187 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
5188 (PATH): Use GROFF_RUNTIME.
5190 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
5191 Don't substitute @SEP@ and @BINDIR@.
5192 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
5193 (PATH): Use GROFF_RUNTIME.
5195 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5197 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
5198 Cygwin which doesn't handle stderr correctly.
5200 2004-03-08 Werner LEMBERG <wl@gnu.org>
5202 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
5203 against empty argument. Problem reported by <cgd@broadcom.com>.
5205 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5207 * Makefile.in (SEP): Replaced with...
5208 (RT_SEP, SH_SEP): Separators for the target platform's native path
5209 separator and the build environment, respectively.
5210 (fontpath, tmacpath): Use RT_SEP.
5211 (MDEFINES): Updated.
5213 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
5214 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
5215 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
5217 2004-03-05 Werner LEMBERG <wl@gnu.org>
5219 * font/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
5220 reduce alignment problems with newer printers which use built-in
5221 TrueType fonts (instead of the older Intellifonts). The ideal
5222 solution is to provide a second set of groff metric files, but this
5223 is extremely time-consuming to produce, given that HP's metric
5224 files are very rudimentary.
5226 2004-03-01 Werner LEMBERG <wl@gnu.org>
5228 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
5229 s/operand/argument/ in error message.
5231 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5233 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
5236 2004-03-01 Antti Kantee <pooka@netbsd.org>
5238 * tmac/s.tmac (XE): Fix error message.
5240 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
5242 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
5245 * src/roff/groff/pipeline.c: Declare strcasecmp.
5246 (run_pipeline) [_WIN32]: Use function name variants which don't
5248 Fix stream handling.
5250 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
5252 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
5253 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
5254 for platforms which use the native Win32 runtime libraries.
5255 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
5257 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
5258 QUOTE_ARG_REALLOC_ERROR): Fix string.
5260 * src/preproc/html/pre-html.cpp: Remove declaration of
5262 Don't use __MINGW32__.
5263 s/DEBUG_FILE/DEBUG_FILE_DIR/.
5264 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
5265 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
5266 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
5267 calls to `set_redirection' and `WAIT'.
5268 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
5269 Fix calls to `set_redirection' and `save_and_redirect'.
5270 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
5271 to `set_redirection' and `save_and_redirect'.
5272 (usage): Fix message.
5273 (makeTempFiles, main): Use `DEBUG_FILE'.
5275 2004-02-21 Werner LEMBERG <wl@gnu.org>
5277 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
5279 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
5281 * src/libs/libgroff/quotearg.c: New file, providing proper argument
5282 quoting for MSVC's spawn* and exec* functions.
5283 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
5284 spawnvp with proper quoting for MSVC.
5286 * src/libs/libgroff/assert.cpp (program_name),
5287 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
5288 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
5290 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
5292 * src/include/error.h (program_name): Declare as `extern "C"'.
5293 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
5295 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
5297 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
5299 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
5301 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
5303 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
5305 (sbasename) [__MSDOS__ || ...]: New function.
5306 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
5308 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
5309 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
5311 Use STDOUT_FILENO instead of hardcoded file handle.
5312 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
5314 2004-02-19 Werner LEMBERG <wl@gnu.org>
5316 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
5317 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
5319 2004-02-18 Werner LEMBERG <wl@gnu.org>
5321 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
5322 new font and mapping files.
5324 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
5325 Keith Marshall <keith.d.marshall@ntlworld.com>
5327 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
5328 an input pipe. This is needed for the MSVC compiler to make troff's
5331 * src/roff/troff/div.cpp: Include nonposix.h.
5332 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
5334 2004-02-17 Werner LEMBERG <wl@gnu.org>
5336 * font/devlj4/generate/special.awk: New script.
5337 * font/devlj4/generate/Makefile (S): Use special.awk.
5338 * font/devlj4/*: Regenerated, including the following new files:
5339 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
5340 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
5341 * NEWS: Document new lj4 fonts and revised hpftodit.
5343 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
5345 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
5347 2004-01-25 Werner LEMBERG <wl@gnu.org>
5349 * src/libs/libgroff/progname.cpp: Replaced with...
5350 * src/libs/libgroff/progname.c: New file.
5351 * src/libs/libgroff/Makefile.sub: Updated accordingly.
5353 2004-01-17 Werner LEMBERG <wl@gnu.org>
5355 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
5357 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
5359 * font/devlj4/generate/wingdings.map,
5360 font/devlj4/generate/symbol.map: Include unnamed glyphs.
5361 Use groff glyph names where possible.
5362 * src/devices/grolj4/lj4_font.man: Minor updates.
5364 2004-01-13 Werner LEMBERG <wl@gnu.org>
5366 * tmac/www.tmac (DC): Handle TTY devices.
5368 * doc/webpage.ms: Document viewCVS from ffii.org.
5369 * NEWS, README: Updated.
5371 * src/roff/groff/groff.man: Mention lj4_font man page.
5373 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
5375 (FONTS): Add SYMBOL and WINGDINGS.
5376 (SYMBOL, WINGDINGS): New targets.
5378 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
5380 * src/devices/grolj4/lj4_font.man: New man page.
5381 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
5382 * src/devices/grolj4.man: Mention lj4_font man page.
5384 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
5385 * src/utils/hpftodit/hpftodit.man: Document it.
5387 Remove details about fonts (which are now in lj4_font.man).
5389 * font/devlj4/generate/symbol.map,
5390 font/devlj4/generate/wingdings.map: New files.
5392 2004-01-12 Werner LEMBERG <wl@gnu.org>
5394 * README: Mention ffii's viewcvs access.
5396 2004-01-09 Werner LEMBERG <wl@gnu.org>
5398 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
5400 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
5402 Revert most of the change from 2004-01-03 to better control used
5405 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
5406 (text_symbol_sets, special_symbol_sets): New arrays.
5407 (symbol_set_table): New global variable.
5408 (read_symbol_sets): Use search order given in the text_symbol_sets
5409 and special_symbol_sets arrays. If command line flag -a is not
5410 given, search both arrays.
5411 (output_charset): Require x_height_tag only for command line flag -i.
5413 2004-01-06 Werner LEMBERG <wl@gnu.org>
5415 Implement string-valued registers \n[.m] and \n[.M] to return the
5416 name of the current drawing and background color, respectively.
5418 * src/roff/troff/symbol.h: Moved to...
5419 * src/include/symbol.h: Here.
5420 Small fixes to make it work outside of the `troff' directory.
5421 * src/roff/troff/symbol.cpp: Moved to...
5422 * src/libs/libgroff/symbol.cpp: Here.
5423 Small fixes to make it work outside of the `troff' directory.
5425 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
5426 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
5429 * src/include/color.h: Include symbol.h.
5430 (color): Add new field `nm'.
5431 * src/libs/libgroff/color.cpp (color::color): Updated.
5433 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
5434 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
5435 src/roff/troff/reg.cpp: Don't include symbol.h.
5437 * src/roff/troff/env.cpp: Don't include symbol.h.
5438 (environment::get_glyph_color_string,
5439 environment_get_fill_color_string): New member functions.
5440 (init_env_requests): Handle `.m' and `.M' registers.
5441 * src/roff/troff/input.cpp: Don't include symbol.h.
5442 (default_symbol): Moved to symbol.cpp/symbol.h.
5443 (do_glyph_color, do_fill_color, define_color): Pass symbol name
5444 to color constructor.
5445 * src/roff/troff/env.h: Updated.
5447 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5448 Document new registers.
5450 2004-01-05 Werner LEMBERG <wl@gnu.org>
5452 * src/roff/troff/node.cpp (space_node::get_breakpoints,
5453 space_node::nbreaks): Protect against zero `next' field.
5455 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
5457 In hpftodit, use the symbol sets offered in the TFM.
5459 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
5460 (symbol_set, text_symbol_sets, special_symbol_sets,
5461 symbol_set_table): Removed.
5462 (get_printcode): Removed.
5463 (read_symbol_sets): Initialize `symbol_set' field with
5465 Simplify code to just use the `kind' value.
5466 (output_charset): Improve output formatting.
5467 (dump_symbols): Simplified.
5469 2004-01-02 Werner LEMBERG <wl@gnu.org>
5471 * font/devlj4/generate/text.map: Add more MSL numbers.
5473 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
5475 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
5476 (text_symbol_sets): Add more symbol sets.
5477 (debug_flag): New static variable (moved from `main').
5478 (get_printcode, show_symset): New functions.
5479 (main): Remove `debug_flag'.
5480 (output_charset): Use `show_symset'.
5481 (dump_symbols): Use `show_symset'.
5482 Print symsets for all glyphs.
5483 (read_map): Actually call `unicode_to_ucode_make' but this time
5486 2004-01-01 Werner LEMBERG <wl@gnu.org>
5488 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
5489 Fix placement of comments.
5491 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
5493 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
5494 option `-d' is given.
5495 (output_charset): Improve warning messages to give more information.
5496 (dump_symbols): Make information more precise.
5498 (read_map): Don't call unicode_to_ucode_name; the glyph names must
5499 appear as-is and shouldn't be decomposed.
5501 2003-12-31 Werner LEMBERG <wl@gnu.org>
5503 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
5504 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
5505 (FONTS): Add TrueType font families Arial and Times New Roman.
5506 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
5507 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
5510 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
5512 * test-groff.in (SEP): Quote value.
5513 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
5514 `tem' to `char*' to avoid deallocation of a pointer to a constant
5515 object which some compilers don't like.
5517 2003-12-31 Werner LEMBERG <wl@gnu.org>
5519 * font/devlj4/generate (text.map, special.map): Rewritten to work
5520 with the new hpftodit version.
5522 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
5524 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
5525 set and 8bit character code for all glyphs also.
5527 2003-12-30 Werner LEMBERG <wl@gnu.org>
5529 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
5531 2003-12-29 Werner LEMBERG <wl@gnu.org>
5533 More fixes for MSVC compiler.
5535 * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
5537 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
5538 STDERR_FILENO) [_MSC_VER]: Define conditionally.
5539 (getpid) [_MSC_VER]: Remove.
5540 Include direct.h and process.h conditionally.
5542 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
5543 parentheses for a_delete.
5545 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
5547 * test-groff: Replaced with...
5548 * test-groff.in: This new template to handle path separator
5551 * configure.ac: Check for direct.h and process.h.
5552 Generate test-groff script.
5553 * configure, src/include/config.hin: Regenerated.
5555 2003-12-28 Werner LEMBERG <wl@gnu.org>
5557 Add integral extension glyph.
5558 Add new option `-x' to afmtodit to suppress use of built-in AGL.
5560 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
5562 * font/devps/generate/textmap: Provide entry for `integralex' to
5563 override (old) PUA value of the AGL.
5564 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
5565 * font/devps/*: Regenerated.
5567 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
5568 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
5570 2003-12-27 Werner LEMBERG <wl@gnu.org>
5572 Add forgotten `coproduct' symbol (already available for DVI).
5574 * font/devhtml/R.proto, font/devps/generate/textmap,
5575 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
5576 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
5577 U+2210 (\[coproduct]).
5579 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
5581 hpftodit has been extended to handle TrueType metric files and
5582 more glyphs. See hpftodit.man for more details.
5584 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
5585 ctype.h, and unicode.h.
5586 s/msl/charcode/ everywhere since we now handle Unicode values also.
5587 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
5588 Use it where appropriate.
5589 (MULTIPLIER): Replaced with...
5590 (multiplier): New global static variable.
5592 (tag_type): Add more TFM tags.
5593 (tag_name): New array.
5594 (ENUM_TYPE, FLOAT_TYPE): Removed.
5595 (BYTE_TYPE): New value assigned.
5596 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
5597 (text_symbol_sets, special_symbol_sets): Extended to cover more
5599 (check_type): Add return value.
5600 (check_units): Add parameters to get ppi and upem values.
5601 Handle TrueType TFM data.
5602 (output_font_name): New function.
5603 (output_charset): Add parameter to handle TFM type.
5604 Handle TrueType TFMs also.
5605 (em_fract): New macro.
5606 (dump_tags): Be much more verbose and handle more tags.
5607 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
5608 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
5610 (read_map): Add parameter to handle TFM type.
5611 Handle both MSL and Unicode mappings.
5612 (main): Add two new command line options `-a' and `-q'.
5613 Updated to make use of new functions.
5616 * src/utils/hpftodit/hpuni.cpp: New file.
5618 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
5621 2003-12-25 Werner LEMBERG <wl@gnu.org>
5623 * src/include/nonposix.h (read) [_MSC_VER]: Define.
5625 2003-12-24 Werner LEMBERG <wl@gnu.org>
5627 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
5628 by Michail Vidiassov <master@iaas.msu.ru>.
5630 2003-12-20 Werner LEMBERG <wl@gnu.org>
5632 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5634 Add missing latin-2 glyphs.
5635 * font/devutf8/R.proto: Add missing latin-2 glyphs.
5637 * tmac/troffrc: Load `composite.tmac' earlier.
5639 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
5640 u00{53,73}_0327, and u0049_0307.
5641 * tmac/X.tmac: Add u00{47,67}_0306.
5642 * tmac/tty-char.tmac: Use composite glyph names for readability.
5646 * src/include/unicode.h: Remove `extern' keywords.
5648 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
5650 * tmac/latin5.tmac: New file.
5652 2003-12-19 Werner LEMBERG <wl@gnu.org>
5654 Add some glyphs needed for Turkish.
5656 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5659 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
5660 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
5661 u00{53,73}_0327, and u0049_0307.
5663 2003-12-18 Werner LEMBERG <wl@gnu.org>
5665 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
5667 Remove trailing zeros.
5669 2003-12-17 Werner LEMBERG <wl@gnu.org>
5671 Make \? transparent to end-of-sentence recognition.
5673 * src/roff/troff/input.cc (non_interpreted_node): Add
5674 `ends_sentence' member function.
5676 2003-12-16 Werner LEMBERG <wl@gnu.org>
5678 * doc/groff.texinfo: Document `dt' request correctly.
5679 Other minor typographical improvements.
5681 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
5683 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5685 2003-12-10 Richard Stallman <rms@gnu.org>
5687 * LICENSE: Better wording.
5689 2003-12-09 Werner LEMBERG <wl@gnu.org>
5691 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
5692 * configure, NEWS: Updated.
5694 2003-12-08 Werner LEMBERG <wl@gnu.org>
5696 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
5698 2003-12-07 Bernd Warken <bwarken@mayn.de>
5702 2003-12-07 Werner LEMBERG <wl@gnu.org>
5704 * INSTALL: Improved.
5706 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5708 Use path separator character of target platform for compiled-in
5711 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5712 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5713 * configure: Regenerated.
5714 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5716 2003-12-05 Werner LEMBERG <wl@gnu.org>
5718 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5719 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5721 2003-12-04 Bernd Warken <bwarken@mayn.de>
5723 * LICENSE: New file.
5725 2003-12-03 Werner LEMBERG <wl@gnu.org>
5727 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5728 ligatures present in AFM files since groff currently only
5729 understands some standard ligatures and nothing else.
5731 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
5733 * src/roff/groff/groff.cpp (main): Don't run the spooler if
5736 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5739 Don't use Unix wait flags.
5741 2003-12-02 Werner LEMBERG <wl@gnu.org>
5743 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5744 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5745 src/roff/troff/uniuni.cpp: Moved to...
5746 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5747 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5748 src/libs/libgroff/uniuni.cpp: Here.
5750 * src/include/Makefile.sub.old (HDRS),
5751 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5752 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5754 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5756 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5760 2003-12-01 Werner LEMBERG <wl@gnu.org>
5762 * groff.texinfo: Document special behaviour of `.vs 0'.
5763 Improve documentation of `cflags' request.
5766 2003-11-29 Werner LEMBERG <wl@gnu.org>
5768 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5769 * font/devlj4/CORONET: Regenerated.
5771 2003-11-24 Werner LEMBERG <wl@gnu.org>
5773 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5774 if processing hyphenation patterns in traditional mode.
5775 Improve error messages.
5777 2003-11-20 Werner LEMBERG <wl@gnu.org>
5779 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5780 troff_output_file::put_char): Fix type of local variable `c'.
5782 2003-11-19 Werner LEMBERG <wl@gnu.org>
5784 * src/roff/groff/pipeline.c (P): Removed. Updated all function
5786 (i_to_a): Removed. libgroff already provides this function.
5787 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5789 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
5791 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5794 2003-11-17 Werner LEMBERG <wl@gnu.org>
5796 * COPYING: Use correct version.
5798 2003-11-11 Werner LEMBERG <wl@gnu.org>
5800 LynxOS 4.0.0 doesn't declare vfprintf.
5802 * configure.ac: Check for vfprintf.
5803 * configure: Regenerated.
5804 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5805 * src/include/config.hin: Regenerated.
5807 2003-11-10 Werner LEMBERG <wl@gnu.org>
5809 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5811 * configure.ac: Check for vsnprintf.
5812 * configure: Regenerated.
5813 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5815 * src/include/config.hin: Regenerated.
5817 2003-11-09 Werner LEMBERG <wl@gnu.org>
5819 * aclocal.m4: Updated syntax to autoconf 2.59.
5820 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5821 Don't check for gsos2.
5822 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
5823 working abs_top_srcdir and abs_top_builddir.
5825 * configure.ac: Updated syntax to autoconf 2.59.
5826 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5827 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5828 * configure: Regenerated.
5830 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5831 s/@groff_top_builddir@/@abs_top_builddir@/.
5833 * src/roff/groff/pipeline.c (xstrsignal):
5834 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5836 2003-11-07 Werner LEMBERG <wl@gnu.org>
5838 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5839 make start angle smaller than end angle to circumvent a bug in tpic
5840 handling of some versions of dvipdfm (and dvipdfmx).
5842 2003-10-30 Werner LEMBERG <wl@gnu.org>
5844 * src/devices/grops/grops.man: Improve section on creating EPS.
5846 2003-10-29 Werner LEMBERG <wl@gnu.org>
5848 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5851 2003-10-28 Werner LEMBERG <wl@gnu.org>
5853 * doc/groff.texinfo: Fix documentation of `.if'.
5855 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
5857 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5858 the form `uniXXXX' also.
5860 2003-10-27 Werner LEMBERG <wl@gnu.org>
5862 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5863 contrib/pic2graph/pic2graph.sh: Implement secure management of
5865 Pass `-P-pletter' to groff to avoid data outside of the converted
5866 area -- some versions of `convert' (for example 5.3.8) don't check
5867 the bounding box of the image but always use a fixed image size
5868 (letter paper format).
5869 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5870 contrib/pic2graph/pic2graph.man: Updated.
5872 * src/roff/groff/groff.man: Document $TMP and $TEMP.
5874 2003-10-26 Werner LEMBERG <wl@gnu.org>
5876 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5877 troff_output::simple_ellipse, troff_output::simple_arc,
5878 troff_output::simple_line, troff_output::simple_spline,
5879 troff_output::simple_polygon): Insert a space before arguments.
5880 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5881 latter doesn't produce a node, so the following `.sp -1' would do
5883 Don't emit `.sp -1' after \M. This also doesn't produce a token
5884 (and we don't have to care about compatibility mode).
5885 (troff_output::set_color, troff_output::reset_color): Don't emit
5886 `.sp -1' after \M and \m.
5888 * src/roff/troff/input.cpp (old_have_input): New global variable.
5889 (input_stack::get): Handle `old_have_input'.
5890 (process_input_stack) <token::TOKEN_NEWLINE>: Call
5891 `trapping_blank_line' depending on `old_have_input', not
5894 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
5896 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5897 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5898 default directory names for temporary files.
5899 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5901 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5902 [__MSDOS__] (run_pipeline): Honour environment variables.
5903 Don't use `tmpnam' but `tempnam' to work around messy
5906 * README.MinGW: New file.
5908 2003-10-16 Werner LEMBERG <wl@gnu.org>
5910 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5911 `(*t)->next' without testing validity of `*t'.
5912 (usage): Make it more readable.
5914 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
5916 Make html device run under both MS-DOS and Win32.
5918 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5919 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5920 spawn or fork+exec has to be used, and whether parent must sleep
5921 until the child process terminates. Used in
5922 `char_buffer::run_output_filter'.
5923 (copyofstdoutfd): Removed.
5924 (char_buffer): Replace `write_file_html' and `write_file_troff'
5925 member functions with `emit_troff_output' and `run_output_filter'.
5926 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5928 (replaceFd): Replaced with...
5929 (set_redirection): New auxiliary function.
5930 (waitForChild): Replaced with...
5931 (save_and_redirect): New auxiliary function for.
5933 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5936 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
5938 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5939 (GROFF_LIBC): New function.
5940 * configure.ac: Call GROFF_LIBC.
5942 * configure: Regenerated.
5944 * src/include/lib.h: Handle __MINGW32__.
5945 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5946 Add macro for `pipe'.
5949 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5952 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5955 2003-10-12 Werner LEMBERG <wl@gnu.org>
5957 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5958 src/roff/troff/input.cc (usage): Updated.
5960 * NEWS, doc/groff.texinfo: Updated.
5962 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
5964 * src/libs/libgroff/searchpath.cpp
5965 (search_path::open_file_cautious): New function which also handles
5966 `-' as stdin and stdout depending on the access mode.
5967 * src/include/searchpath.h (search_path): Updated.
5969 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5970 * src/devices/grops/ps.h: Include `searchpath.h'.
5971 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5972 Open resource file with `include_search_path.open_file_cautious'.
5973 * src/devices/grops/grops.man: Document new `-I' switch.
5975 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5976 (main), src/devices/grolj4/lj4.cpp (main),
5977 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5979 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5981 (include_search_path): New global variable.
5982 (include_path_append): Removed.
5983 (main): Use `include_search_path.command_line_dir' to handle `-I'.
5984 (do_file): Simplify, using new
5985 `include_search_path.open_file_cautious'.
5987 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5989 (main): Pass arguments to `-I' to both troff and devices.
5990 Improve handling of `-V'.
5991 * src/roff/groff/groff.man: Document changes to -I and -V.
5993 * src/roff/troff/input.cpp (include_search_path): New global
5995 (next_file, source, ps_bbox_request, transparent_file,
5996 process_input_file): Use new
5997 `include_search_path.open_file_cautious'.
5998 (main) Handle `-I' switch.
5999 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
6000 Use new `include_search_path.open_file_cautious'.
6001 * src/roff/troff/node.h: New extern symbol `include_search_path'.
6002 * src/roff/troff/troff.man: Document new `-I' switch.
6004 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
6006 Support multiple calls of .Lb in LIBRARY section.
6008 * tmac/doc-common (doc-in-library-section): New register.
6009 (doc-section-library): New string.
6010 (Sh): Set `doc-in-library-section'.
6012 * tmac/doc-syms (Lb): Insert breaks before and after arguments
6013 if in LIBRARY section.
6014 * tmac/doc.tmac (doc-save-global-vars): Updated.
6015 * NEWS, tmac/groff_mdoc.man: Updated.
6017 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
6019 * tmac/doc-common (doc-default-operating-system): New variable.
6022 2003-09-08 Werner LEMBERG <wl@gnu.org>
6024 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
6026 2003-08-31 Werner LEMBERG <wl@gnu.org>
6028 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
6029 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
6030 $(DEVFILES) are not empty.
6031 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
6033 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
6035 * src/preproc/refer/ref.cpp (reference::compute_sort_key): Always
6036 insert SORT_SEP. With certain combinations of sort specifications,
6037 refer sorted entries in the wrong order. In particular, entries
6038 with a missing field should be be sorted before all entries that
6039 have that field, before refer looks to the next field.
6041 2003-08-23 Werner LEMBERG <wl@gnu.org>
6043 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
6044 g++ linker is used. Reported by Mark J. Reed
6045 <mark.reed@turner.com>.
6047 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
6049 Add key character `x' to tbl which makes tbl call a user-defined
6050 macro on a table cell.
6052 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
6053 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
6054 `set_modifier' after printing the compatibility request.
6055 (set_modifier): Print call to `m->macro' if not empty.
6056 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
6058 (process_format): Implement cases `x' and `X'.
6059 * src/preproc/tbl/tbl.man, NEWS: Updated.
6061 2003-08-15 Werner LEMBERG <wl@gnu.org>
6063 * doc/groff.texinfo: Minor fixes.
6065 2003-08-09 Werner LEMBERG <wl@gnu.org>
6067 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
6069 2003-08-07 Werner LEMBERG <wl@gnu.org>
6071 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
6072 argument list to nothing if there is no file to match. Use `ls' as
6073 a protection, similar to autoconf.
6075 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
6076 empty argument lists.
6078 * doc/groff.texinfo: Improve documentation how vertical spacing
6079 and line breaks interact.
6082 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
6084 2003-08-03 Werner LEMBERG <wl@gnu.org>
6086 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
6087 EPS (using eps2eps or similar programs to compute the bounding box).
6089 2003-07-24 Werner LEMBERG <wl@gnu.org>
6091 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
6092 * doc/texinfo.tex: Updated from texinfo 4.6.
6093 * README.CVS: From now on we need texinfo 4.6.
6095 2003-07-23 Werner LEMBERG <wl@gnu.org>
6097 Add requests `dei1' and `ami1' for completeness.
6099 * src/roff/troff/input.cc (calling_mode): Remove
6100 CALLING_DISABLE_COMP.
6101 (comp_mode): New enumeration.
6102 (do_define_string, define_string, define_nocomp_string,
6103 append_string, append_nocomp_string): Updated.
6104 (do_define_macro): Add third parameter.
6105 (define_macro, define_nocomp_macro, define_indirect_macro,
6106 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
6107 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
6110 (init_input_requests): Add `dei1' and `ami1'.
6112 * tmac/trace.tmac: Handle de1 and am1.
6113 (de): Improve tracing message.
6114 (am): Add missing `do'.
6117 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6118 Document new requests.
6120 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
6122 Add option -G to .MPIMG to insert a gap between text and the image.
6124 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
6125 www-finish-left-ll): Updated.
6126 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
6127 (MPIMG): Make option -L and -R optional.
6128 Implement option -G.
6130 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
6132 * src/devices/grohtml/post-html.cpp
6133 (html_printer::do_file_components): Don't use `stdout' as lvalue
6134 since it can be a macro.
6136 2003-07-22 Werner LEMBERG <wl@gnu.org>
6138 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
6139 the corresponding test in aclocal.m4.
6141 2003-07-21 Werner LEMBERG <wl@gnu.org>
6143 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
6144 names but RGB values directly. Otherwise pnmtopng depends on
6145 an external file `rgb.txt' which maps colour names to values.
6147 2003-07-20 Werner LEMBERG <wl@gnu.org>
6149 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
6150 * configure, src/include/config.hin: Regenerated.
6152 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
6154 2003-07-19 Werner LEMBERG <wl@gnu.org>
6156 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
6158 2003-07-18 Werner LEMBERG <wl@gnu.org>
6160 * *.man: Switch to non-compatibility mode temporarily if GNU
6161 syntax extensions are used in the particular man page.
6163 * PROBLEMS: Add solutions for SGR problems.
6165 2003-07-17 Werner LEMBERG <wl@gnu.org>
6167 Don't ignore grotty's command line options if \X'tty: sgr ...' is
6168 used to change the drawing scheme.
6170 * src/devives/grotty/tty.cpp (bold_flag_option,
6171 underline_flag_option, italic_flag_option, reverse_flag_option,
6172 bold_underline_mode_option): New global variables.
6173 (update_options): New function.
6174 (tty_printer::special): Call update_options.
6175 (main): Don't set xxx_flag but xxx_flag_option, then call
6178 2003-07-14 Werner LEMBERG <wl@gnu.org>
6180 Make grotty emit proper Unicode box drawing characters for -Tutf8.
6182 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
6184 (hline_char, vline_char): New global variables.
6185 (tty_printer::tty_printer): Initialize them.
6186 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
6187 horizontal and vertical lines.
6188 (crossings): New global array.
6189 (tty_printer::end_page): Use it to determine the proper crossing
6190 character for -Tutf8.
6192 2003-07-12 Werner LEMBERG <wl@gnu.org>
6194 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
6195 (HTMLDOCFILES): Revert to `pic.html'.
6196 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
6198 2003-07-11 Werner LEMBERG <wl@gnu.org>
6200 * doc/pic.ms: Improve documentation of absolute coordinates.
6201 Document absolute positioning of pictures.
6203 * NEWS: Add new pic capability.
6205 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
6207 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
6210 2003-07-07 Werner LEMBERG <wl@gnu.org>
6212 Implement support for dashed and dotted ellipses in pic. Based on
6213 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
6215 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
6216 common_output::dashed_ellipse, common_output::dotted_ellipse): New
6217 functions. Ellipse arcs are approximated with circle arcs.
6218 * src/preproc/pic/common.h (common_output): Updated.
6219 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
6221 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
6223 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
6225 2003-07-06 Werner LEMBERG <wl@gnu.org>
6227 Make grotty work on platforms which have unsigned char as the
6228 default for char. Based on a patch by Thomas Klausner
6231 * src/devices/grotty/tty.cpp (schar): New typedef.
6232 Updated calls to declare_ptable and implement_ptable.
6233 (glyph): Use schar for back_color_idx and fore_color_idx.
6234 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
6235 (tty_printer::tty_color, tty_printer::tty_printer,
6236 tty_printer::color_to_idx, tty_printer::put_color): Updated.
6238 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6240 * src/roff/nroff/nroff.sh: Add option -d for completeness.
6241 * src/roff/nroff/nroff.man: Updated.
6243 2003-07-05 Werner LEMBERG <wl@gnu.org>
6245 * NEWS, tmac/groff_www.man: Updated.
6246 * doc/Makefile.sub: Updated.
6248 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
6250 Implement support for multiple HTML output files.
6252 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
6253 -j command line option.
6255 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
6257 (file): New fields `new_output_file', `require_links',
6259 (file::file): Updated.
6260 (files::set_file_name, files::set_links_required,
6261 files::are_links_required, files::is_new_output_file,
6262 files::file_name, files::next_file_name): New functions.
6263 (header_desc): New fields `no_of_level_one_headings',
6265 (header_desc::header_desc): Updated.
6266 (header_desc::write_headings): Handle multiple files.
6267 (html_printer::write_header): Save file name in which header occurs.
6268 (html_printer::determine_header_level): Possibly split files on
6270 (html_printer::do_links, html_printer::troff_tag): Updated.
6271 (html_printer::insert_split_file, html_printer::do_job_name,
6272 html_printer::emit_link, html_printer::write_navigation,
6273 html_printer::do_file_components): New functions.
6274 (html_printer::~html_printer): Handle multiple files.
6275 (main): Handle command line option `-j'.
6277 * src/devices/grohtml/grohtml.man: Updated.
6279 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
6282 * tmac/www.tmac (JOBNAME): New macro.
6283 * tmac/s.tmac (SH-NO-TAG): New macro.
6284 (@SH): Call SH-NO-TAG.
6287 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6289 * tmac/groff_mdoc.man: Improve documentation of punctuation
6292 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
6294 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
6296 2003-07-03 Werner LEMBERG <wl@gnu.org>
6298 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
6300 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
6302 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
6303 after `/*' and `*/'.
6305 (Fn, Fo): Reduce indentation in synopsis.
6307 * tmac/doc-common (doc-check-depth): New macro.
6308 (doc-end-macro, Sh, Ss): Use it.
6309 (Cd): Fix behaviour in synopsis.
6310 (In): Make it parsed and callable.
6311 If not in the synopsis, represent the C header file enclosed in
6313 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
6314 Use minus, not hyphen.
6316 * tmac/groff_mdoc.man: Updated.
6318 2003-07-01 Werner LEMBERG <wl@gnu.org>
6320 Integrated grap2graph, contributed by Eric S. Raymond.
6322 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
6324 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
6325 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
6327 2003-07-01 Colin Watson <cjwatson@debian.org>
6329 * src/xditview/*.c: Add prototypes, fix return types, add includes.
6330 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
6332 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
6334 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
6336 2003-06-31 Werner LEMBERG <wl@gnu.org>
6338 * doc/Makefile.sub (CLEANADD): Remove all files created by
6339 running `make groff.{pdf,dvi}'.
6341 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
6344 2003-06-30 Werner LEMBERG <wl@gnu.org>
6346 * Makefile.in (SHELL): Define as @SHELL@.
6347 (mkinstalldirs): Use $(SHELL).
6348 (MDEFINES): Add $(SHELL).
6349 * Makefile.comm (SHELL): Removed.
6351 2003-06-29 Werner LEMBERG <wl@gnu.org>
6353 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
6354 The X11 documentation files use them.
6355 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
6357 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
6359 * tmac/e.tmac (@C): Handle .ad also.
6361 2003-06-12 Werner LEMBERG <wl@gnu.org>
6363 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
6365 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
6366 Assign `n' even here. It is possible to construct a node
6367 immediately following an escape character:
6375 2003-06-10 Werner LEMBERG <wl@gnu.org>
6377 * README.WIN32: Removed.
6378 * MANIFEST: Updated.
6380 2003-06-07 Werner LEMBERG <wl@gnu.org>
6382 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
6384 2003-06-05 Werner LEMBERG <wl@gnu.org>
6386 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
6387 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
6389 2003-06-03 Werner LEMBERG <wl@gnu.org>
6391 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
6392 is done by the calling function.
6394 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
6396 * tmac/X.tmac: Fix definition of `em'.
6398 2003-05-22 Werner LEMBERG <wl@gnu.org>
6400 * src/roff/troff/input.cc (return_macro_request): Fix detection of
6403 2003-05-18 Werner LEMBERG <wl@gnu.org>
6405 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
6406 to make items work which consist only of a tag.
6408 2003-05-17 Werner LEMBERG <wl@gnu.org>
6410 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
6411 aren't stretched in a tag (this can fail with unformatted boxes).
6412 Instead, insert a break and go back one line.
6414 2003-05-16 Werner LEMBERG <wl@gnu.org>
6416 * src/roff/troff/input.cc (return_macro_request): If called with
6417 argument pop macro twice. We need this to trace `return'.
6419 * tmac/trace.tmac: Handle `return'.
6422 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6425 2003-05-15 Larry Kollar <kollar@alltel.net>
6427 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
6428 registers `FPS', `FVS', and `FPD'.
6430 2003-05-15 Werner LEMBERG <wl@gnu.org>
6432 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
6435 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
6437 * tmac/groff_mdoc.man: Slight improvements.
6439 2003-05-03 Werner LEMBERG <wl@gnu.org>
6441 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
6442 `doc-header-space' after header line if register `cR' is set.
6444 2003-05-02 Werner LEMBERG <wl@gnu.org>
6448 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
6450 * tmac/doc-common (Nd): Use \[em].
6452 2003-05-01 Werner LEMBERG <wl@gnu.org>
6454 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
6455 doc-footer-space): Initialize to 0.5i.
6456 (doc-setup-page-layout): Don't set doc-header-space and
6459 2003-04-30 Werner LEMBERG <wl@gnu.org>
6461 * REVISION: Set to 1.
6463 * doc/pic.ms: Document possible problems with `figname'.
6465 2003-04-29 Werner LEMBERG <wl@gnu.org>
6467 Version 1.19 released
6468 =====================
6470 * VERSION: Set to 1.19.
6471 * REVISION: Set to 0.
6472 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
6474 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6475 Define charset as `US-ASCII' in html output.
6477 * tmac/www.tmac (ULE): Add missing scaling indicator.
6479 * win32-diffs: Removed.
6481 2003-04-28 Werner LEMBERG <wl@gnu.org>
6483 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
6485 Document how to insert discardable whitespace with `.ss'.
6487 2003-04-27 Werner LEMBERG <wl@gnu.org>
6489 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
6490 work with plain TeX also.
6492 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
6494 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
6496 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6499 2003-04-24 Werner LEMBERG <wl@gnu.org>
6501 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
6502 vbox with positive height and zero depth if in TeX mode.
6504 * NEWS: Document glyph name changes for grodvi and grolj4.
6506 2003-04-23 Werner LEMBERG <wl@gnu.org>
6508 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
6509 * doc/pic.ms: Fixed.
6511 2003-04-21 Werner LEMBERG <wl@gnu.org>
6513 HP-UX 10.20 has `snprintf' but it isn't declared.
6515 * configure.ac: Add declaration test for snprintf.
6516 * configure: Regenerated.
6517 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
6518 * src/include/config.hin: Regenerated.
6520 2003-04-19 Werner LEMBERG <wl@gnu.org>
6522 Add keyword `figname' to pic, specifying the name of the picture
6523 box in TeX mode. Based on a patch from William J Poser
6524 <wjposer@unagi.cis.upenn.edu>.
6526 * src/preproc/pic/pic.y: New token `FIGNAME'.
6527 (macro_name): New rule of type <str>.
6528 (placeless_element): Handle `FIGNAME'.
6529 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
6530 * src/preproc/pic/main.cpp (graphname): New global variable.
6531 (do_picture): Initialize `graphname'.
6532 * src/preproc/pic/pic.h: Updated.
6533 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
6536 (tex_output::text): Beautify output.
6537 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
6538 `shaded' and `outlined' unconditionally.
6539 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
6542 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
6543 greater is necessary.
6545 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
6547 Add option -r to soelim to avoid emission of `.lf' lines.
6548 Add option -t to produces TeX comment lines instead of `.lf' lines.
6550 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
6553 (main): Handle `-r' and `-t'.
6554 (set_location): Handle `raw_flag' and `tex_flag'.
6555 * src/preproc/soelim/soelim.man, NEWS: Updated.
6557 2003-04-17 Werner LEMBERG <wl@gnu.org>
6559 * tmac/hyphenex.sh: Replaced with...
6560 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
6563 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
6564 if --quiet is used for the configure script.
6565 * configure: Regenerated.
6567 2003-04-16 Werner LEMBERG <wl@gnu.org>
6569 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
6570 Add `const' to second argument.
6571 (html_printer::add_table_end): Add `const' to argument.
6572 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
6573 `const' to arguments.
6574 * src/devices/grohtml/html-text.h: Updated.
6576 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
6577 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
6580 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
6581 cast for integer constant.
6583 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
6584 (writeNbytes): Add `const' to first argument.
6585 (writeString): Add `const' to argument.
6586 (char_buffer::can_see): Add `const' to third argument.
6587 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
6588 `const' to argument.
6589 * src/preproc/html/pushback.h: Updated.
6591 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
6592 (include_path_append): Add `const' to argument.
6595 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
6597 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
6598 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
6600 (unicode_decompose_init::unicode_decompose_init): Updated.
6601 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
6603 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
6604 * src/roff/troff/input.cc (process_startup_file): Add `const' to
6607 * tmac/hyphenex.sh: Make script more portable by using a here
6610 2003-04-15 Werner LEMBERG <wl@gnu.org>
6612 Renamed all `*.cc' files to `*.cpp'.
6613 Updated all configuration files, makefiles, and documentation.
6615 2003-04-14 Werner LEMBERG <wl@gnu.org>
6617 * tmac/hyphenex.sh: Slight improvements.
6619 2003-04-13 Werner LEMBERG <wl@gnu.org>
6621 * font/devascii/R.proto, font/devcp1037/R.proto,
6622 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
6623 character slots with unnamed glyphs.
6625 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
6626 (an-first): New global variable.
6627 (an-header): Emit vertical space between multiple man pages.
6629 2003-04-11 Werner LEMBERG <wl@gnu.org>
6631 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
6634 2003-04-10 Werner LEMBERG <wl@gnu.org>
6636 * PROBLEMS: Revised.
6638 2003-04-10 Bernd Warken <bwarken@mayn.de>
6640 * doc/webpage.ms: Improved.
6642 2003-04-09 Werner LEMBERG <wl@gnu.org>
6644 Add register \n[.height] which returns the value of \H.
6645 Add register \n[.slant] which returns the value of \S.
6647 * src/roff/troff/env.cc (init_env_requests): Implement.
6648 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6651 2003-04-08 Werner LEMBERG <wl@gnu.org>
6653 * tmac/html.tmac: Move some of the data into html-end.tmac.
6654 Remove most of the character translations for eqn since html fonts
6655 now cover those characters.
6657 * tmac/html-end.tmac: New file.
6658 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
6659 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
6660 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
6662 2003-04-07 Werner LEMBERG <wl@gnu.org>
6664 * man/groff_out.man: Document negative values of `N' if -Thtml is
6667 2003-04-06 Werner LEMBERG <wl@gnu.org>
6669 * Makefile.comm (depend.temp): Check location of YTABC.
6671 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6673 * doc/Makefile.in (TROFFBIN): New variable for troff
6675 (GROFFBIN): New variable for groff binary path.
6676 (groff_bin_path): Rename to GROFF_BIN_PATH.
6677 (TROFF): Use TROFFBIN.
6678 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6679 * doc/Makefile.sub (GROFFBIN): New variable for groff
6681 (groff_bin_path): Rename to GROFF_BIN_PATH.
6682 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6684 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
6685 with INSTALL_SCRIPT.
6686 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
6687 * Makefile.dev (all): Depend on DEVSCRIPTS.
6688 (install_dev): Likewise.
6689 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
6691 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
6692 (DEVGENSCRIPTS): New variable to hold generated scripts.
6694 2003-04-05 Werner LEMBERG <wl@gnu.org>
6696 * src/libs/libdriver/input.cc (IntArray::operator[],
6697 IntArray::get_data): Remove meaningless `const' in return value.
6699 * README.CVS: New file.
6701 2003-04-04 Werner LEMBERG <wl@gnu.org>
6703 Check for stdint.h in C++, not in C.
6705 * aclocal.m4 (GROFF_STDINT_H): New function,
6706 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6708 * configure, src/include/config.hin: Regenerated.
6709 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6712 Fix handling of in grohtml. To do this, troff emits `N'
6713 with a negative value, representing the width of the unbreakable
6714 space (only for -Thtml). grohtml then converts this back to
6715 and uses the value of N as its width.
6717 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6718 unbreakable_space_node::tprint): Emit `N-<width>'.
6719 * src/include/printer.h (printer::set_numbered_char): Make it
6721 Make members `font_table' and `nfonts' protected instead of private.
6722 * src/devices/grohtml/post-html.cc
6723 (html_printer::set_numbered_char): New member function.
6726 * src/libs/libgroff/maxfilename.cc:
6727 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6729 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6732 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
6734 * man/roff.man: Small fixes.
6736 2003-04-03 Werner LEMBERG <wl@gnu.org>
6738 Make groff independent from locale's numeric settings.
6740 * configure.ac: Check for `setlocale'.
6741 * configure, src/include/config.hin: Regenerated.
6743 * src/include/lib.h: Handle HAVE_SETLOCALE.
6745 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6746 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6747 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6750 * doc/groff.texinfo: Change dir category to `Typesetting'.
6751 (Man font macros): Mention that there is no space between arguments
6754 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6755 (*printer::change_color, *printer::change_fill_color): Add missing
6758 2003-04-02 Werner LEMBERG <wl@gnu.org>
6760 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6761 html_table::is_gap): Compute table widths after converting border
6762 positions to avoid rounding errors.
6764 2003-04-01 Werner LEMBERG <wl@gnu.org>
6766 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6767 `space_emitted' properly.
6769 2003-03-31 Werner LEMBERG <wl@gnu.org>
6771 * src/devices/grohtml/html-table.cc: Fix column width calculation.
6772 (html_table::set_linelength): Don't add 1.
6773 (html_table::add_indent): Don't subtract 1.
6775 * tmac/html.tmac: Set default page offset to zero.
6777 2003-03-30 Werner LEMBERG <wl@gnu.org>
6779 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
6781 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6782 unbreakable_space_node::tprint): New functions.
6783 (troff_output_file): Make space_char_hmotion_mode::tprint and
6784 unbreakable_space_node::tprint to friends.
6785 * src/roff/troff/node.h: Updated.
6787 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
6788 in the HTML standard).
6790 2003-03-29 Werner LEMBERG <wl@gnu.org>
6792 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6793 Otherwise, the following code
6802 produces `x a' instead of `xa'. This is a temporary fix, disabling
6803 font changes in diversions for -Thtml.
6805 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6807 (an-do-tag-html): Merge with ...
6808 (an-do-tag): This macro.
6809 Change code slightly to circumvent grohtml bug.
6810 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6812 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6813 html_table::is_gap): Round `width' properly.
6815 * tmac/html.tmac: Provide some default layout parameters for
6818 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6821 2003-03-28 Werner LEMBERG <wl@gnu.org>
6823 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6825 2003-03-27 Werner LEMBERG <wl@gnu.org>
6827 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6830 2003-03-20 Werner LEMBERG <wl@gnu.org>
6832 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6834 * doc/groff.texinfo: Updated.
6836 2003-03-19 Werner LEMBERG <wl@gnu.org>
6838 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6839 TOKEN_END_TRAP>: Reset `have_input'.
6841 2003-03-18 Werner LEMBERG <wl@gnu.org>
6843 * src/roff/groff/groff.man: Mention groff_trace man page.
6845 2003-03-16 Werner LEMBERG <wl@gnu.org>
6847 * Makefile.in (LIBEXT): New variable to indicate the file extension
6848 of library files. Computed heuristically from $(OBJEXT).
6849 (MDEFINES): Add $(LIBEXT).
6850 * Makefile.lib, Makefile.comm: Use it.
6852 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
6853 overlong lines into smaller chunks.
6854 (get_binary): New function.
6856 * src/utils/pfbtops/pfbtops.man: Updated.
6858 2003-03-15 Colin Watson <cjwatson@debian.org>
6860 * src/roff/groff/groff.man: Minor syntax fix.
6862 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
6864 * src/devices/grops/ps.cc (ps_printer::media_set,
6865 ps_printer::~ps_printer): Handle zero paper width and length.
6867 2003-03-13 Werner LEMBERG <wl@gnu.org>
6869 Add options -p and -l to grodvi.
6871 * src/devices/grodvi/dvi.cc: Include paper.h.
6872 (landscape_flag, user_paper_length, user_paper_width): New global
6874 (dvi_printer::begin_page): Emit `papersize' special.
6875 Set color after initialization of `cur_h' and `cur_v'.
6876 (main): Add options `-l' and `-p'.
6877 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6878 * src/devices/grodvi/grodvi.man, NEWS: Updated.
6880 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6882 2003-03-12 Werner LEMBERG <wl@gnu.org>
6884 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6885 * man/groff_tmac.man: This man page.
6886 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6889 * tmac/X.tmac: Don't load pspic.tmac.
6891 2003-03-11 Werner LEMBERG <wl@gnu.org>
6893 Make variable `pr' local to libdriver/input.cc. Based on a patch
6894 by Bernd Warken <bwarken@mayn.de>.
6896 * src/include/driver.h (pr): Removed.
6898 * src/libs/libdriver/input.cc (pr): New global variable.
6899 (do_file): Deallocate `pr'.
6900 * src/libs/libdriver/printer.cc (pr): Removed.
6902 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6903 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6904 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6905 (main): Don't delete `pr'.
6907 2003-03-10 Werner LEMBERG <wl@gnu.org>
6909 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6910 * tmac/papersize.tmac: New file.
6911 * tmac/troffrc: Include `papersize.tmac'.
6912 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6913 * tmac/an-old.tmac: Set LT to LL by default.
6915 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6916 doc/groff.texinfo: Updated.
6918 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6919 bug which caused all odd iso papers to have wrong dimensions.
6921 * src/devices/grops/ps.cc (user_paper_width): New global variable.
6922 (main) <'p'>: Set `user_paper_width' also.
6923 (ps_printer::media_width, ps_printer::media_height): Use values
6924 given with option `-p'.
6926 2003-03-09 Werner LEMBERG <wl@gnu.org>
6928 * src/include/nonposix.h: Provide default for SET_BINARY.
6930 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6931 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6934 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6935 (main): Treat \r\n as \n.
6937 2003-03-08 Werner LEMBERG <wl@gnu.org>
6939 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6940 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6942 2003-03-07 Werner LEMBERG <wl@gnu.org>
6944 Added support to access more than 256 glyphs in Type 1 fonts.
6946 * src/devices/grops/ps.cc (subencoding): New structure.
6947 (style): Add `sub' field.
6949 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6950 Add `set_subencoding', `get_subfont' and `encode_subfont' member
6953 (ps_printer::set_char): Use `set_subencoding'.
6954 (make_subencoding_name): New function.
6955 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6956 (ps_printer::~ps_printer): Emit subencoding definitions.
6958 * src/devices/grops/psrm.cc (valid_input_table): New array to
6959 properly support EBCDIC.
6960 (white_space): Add `\f'.
6961 (ps_get_line): Change first argument to be of type `string &'.
6962 Updated all callers.
6963 This allows to get lines of arbitrary length.
6964 Use `valid_input_table'.
6965 Remove warning about non-conforming PS line length. This seems
6966 not to be of great importance -- for example, dvips don't emit
6968 (PS_LINE_MAX): Removed.
6969 (matches_comment): Change first argument to be of type `string &'.
6971 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6973 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6974 %AGL_to_unicode, %default_ligatures): New hash tables.
6975 Read all map entries.
6976 Add unencoded characters.
6977 Check for default ligatures if there are no `L' entries.
6978 Print all kern entries.
6979 Print all characters in charset.
6980 * src/utils/afmtodit/afmtodit.man: Updated.
6982 * font/devps/*: Regerated all fonts.
6984 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6985 of characters, just use `.trin'. Otherwise the mapping depends
6986 on the font encoding.
6987 * tmac/ps.tmac: Add `fi' and `fl'.
6988 Improve `Fi' and `Fl'.
6989 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6990 * tmac/Xps.tmac: Fix `em'.
6994 2003-03-04 Werner LEMBERG <wl@gnu.org>
6996 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6999 2003-03-03 Werner LEMBERG <wl@gnu.org>
7001 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
7003 * font/devps/generate/textmap: Remove entry `similarequal'.
7004 * font/devps/symbolmap: Updated.
7006 2003-03-02 Werner LEMBERG <wl@gnu.org>
7008 * src/libs/libgroff/font.cc (font::load): Fix error message for
7011 * src/devices/grops/grops.man: Improve documentation of the -b
7014 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
7015 `ascii' and `cp1047'.
7017 2003-03-01 Werner LEMBERG <wl@gnu.org>
7019 Document composite glyphs and the `composite' request.
7021 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
7023 2003-02-28 Werner LEMBERG <wl@gnu.org>
7025 * font/devdvi/generate/ec.map: Add some more Unicode entities.
7026 * font/devdvi/*EC: Updated.
7028 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
7029 * tmac/latin1 (latin1-tr): Undo any previous mapping.
7030 * tmac/troffrc: Load `composite.tmac'.
7031 * tmac/Makefile.sub (NORMALFILES): Updated.
7033 * doc/groff.texinfo (Input Encodings): New section.
7036 2003-02-27 Werner LEMBERG <wl@gnu.org>
7038 * doc/texinfo.tex: New version 2003-02-11.06.
7040 * tmac/doc-common (Dt): Don't emit warning for unknown section.
7041 * tmac/groff_mdoc.man: Fix description of `Dt'.
7043 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
7045 * font/devps/prologue.ps: Fix for included Postscript that does
7046 a setpagedevice -- which is now safely ignored.
7050 * src/devices/grops/ps.cc: Now sets the page size in the generated
7051 document. This is done in two ways: Via a %%-comment for gv and
7052 the like, and via a PageSize and setpagedevice for programs that
7053 understands Postscript proper, like ps2pdf.
7055 * src/devices/grops/ps.h: New broken-flag to avoid page size
7056 definition, if required.
7058 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
7060 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
7061 Not really necessary due to the fix in prologue.ps, but cleaner:
7062 Such information does not belong in an .eps file.
7064 * doc/Makefile.sub: See doc/Makefile.in.
7066 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
7068 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
7069 instead of P1 since the latter is broken in some versions of netpbm.
7070 * configure: Updated.
7072 2003-02-26 Larry Kollar <kollar@alltel.net>
7074 Make man pages more customizable.
7076 * tmac/an-old.tmac (FT): New register holding footer distance from
7078 (HF): New string holding the default heading font.
7079 (TH): Handle registers `IN' and `SN' set on the command line.
7081 (PT, BT): New strings to customize header and footer lines.
7082 (an-header, an-footer): Use them.
7084 * tmac/groff_man.man: Document changes.
7086 * doc/groff.texinfo: Document man changes.
7087 Document Ultrix extensions of man.
7089 2003-02-26 Werner LEMBERG <wl@gnu.org>
7091 * src/roff/troff/input.cc (do_width, do_if_request): Reset
7092 `have_input' after changing back to old environment.
7094 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
7095 function up to be defined before first call. This is necessary to
7096 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
7098 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
7099 the default font directory also. Based on a patch from James
7100 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
7101 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
7102 * src/utils/afmtodit/afmtodit.man: Document it.
7106 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
7108 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
7110 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
7111 (GROFF_PNMTOPS_NOSETPAGE): New macro.
7112 * configure.ac: Use it.
7113 * configure: Regenerated.
7114 * Makefile.in: Updated.
7116 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
7117 (CLEANADD): Add www.tmac-sed.
7118 (pnmtops_nosetpage): Define default.
7119 (install_data): Handle www.tmac-sed and substitute
7120 @PNMTOPS_NOSETPAGE@.
7121 (stamp-sed): Add www.tmac.
7122 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
7123 It now breaks URLs at suitable places.
7124 (www:substring_ok): New register set by...
7125 (www:@test_substring): New macro.
7126 (www:error): New alias to www-error.
7127 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
7129 (URL): Use www:url_breaks.
7130 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
7131 (CDS, CDE): New macros.
7133 2003-02-25 Werner LEMBERG <wl@gnu.org>
7135 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
7138 2003-02-24 Werner LEMBERG <wl@gnu.org>
7140 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
7141 can be negative also.
7143 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
7145 (read_char_table): Avoid negative ascenders.
7146 (output_charset): Add cast.
7147 * font/devlj4/*: Regenerated.
7149 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
7152 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
7153 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
7155 * font/devdvi/*: Regenerated.
7157 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
7158 normal width, while the previously used characters (U+2329 and
7159 U+232A) are classified as wide due to canonical equivalence with the
7160 CJK punctuation characters U+3008 and U+3009.
7162 * font/devutf8/R.proto: Updated.
7163 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
7165 * man/groff_char.man: Simplify handling of table traps by
7166 introducing `start block' and `end block' macros.
7167 (Ns, Ne, 2s, 2e, Ds, De): New macros.
7168 (DL): Make it work with Unix troff also.
7169 Fix code values of `la' and `ra'.
7171 * tmac/dvi.tmac: Define `<>' for CW and CWI.
7173 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
7175 * src/devices/grohtml/post-html.cc (element_list::~element_list):
7176 New destructor, fixing a major memory leak.
7178 2003-02-22 Werner LEMBERG <wl@gnu.org>
7180 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
7181 to be in conformance with Unicode 3.0 and newer.
7183 * font/devlj4/generate/text.map: Add `Eu'.
7184 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
7185 * font/devlj4/S: Regenerated.
7187 * man/groff_char.man: Completely rewritten.
7189 * doc/groff.texinfo: Fix description of request and macro arguments.
7191 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
7195 * src/devices/grohtml/html-table.cc (html_table::~html_table):
7196 Deallocate `columns' list.
7197 * src/devices/grohtml/post-html.cc (char_block::~char_block):
7199 (text_glob::text_glob_html, text_glob::text_glob_special,
7200 text_glob::text_glob_line, text_glob::text_glob_auto_image,
7201 text_glob::text_glob_tag): Avoid memory leaks.
7202 (text_glob::remember_table): Free memory before reassigning.
7204 2003-02-19 Werner LEMBERG <wl@gnu.org>
7206 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
7207 alias `hbar'), the Planck constant over two pi.
7209 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
7210 `+e' for position 34.
7211 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
7212 `u2662' and `u2661'.
7213 * font/devdvi/{MI,S}: Regenerated.
7214 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
7215 * font/devlbp/*: Add `hbar' alias.
7216 * font/devlj4/generate/special.map: Ditto.
7217 * font/devlj4/S: Regenerated.
7218 * font/devps/generate/symbolchars: Add `+e'.
7219 * font/devps/generate/textmap: Fix PS name for `-h'.
7221 * font/devps/symbolmap: Regenerated.
7223 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
7225 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
7227 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
7230 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
7232 * tmac/tty-char.tmac: Add `+e'.
7234 2003-02-17 Werner LEMBERG <wl@gnu.org>
7236 Another round trying to really fix problems with `have_input'.
7238 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
7239 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
7241 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
7242 handling if both foreground and background colors are default.
7244 * doc/groff.texinfo (Debugging): Document .lf differences to
7247 2003-02-16 Werner LEMBERG <wl@gnu.org>
7249 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
7250 null-bytes in created string.
7252 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
7253 alias_macro, lookup_request): Improve warning messages.
7255 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
7257 Free `last_image_filename'.
7259 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
7261 (imageList::createPage, imageList::createImage): Use `free', not
7263 (imageItem::~imageItem): Free `imageName'.
7264 (addRegDef): Use `strsave', not `strdup'.
7265 (get_resolution): Free `pathp'.
7267 2003-02-15 Werner LEMBERG <wl@gnu.org>
7269 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
7272 2003-02-14 Werner LEMBERG <wl@gnu.org>
7274 Add memory management for colors to deallocate unnamed colors
7277 * src/include/color.h (color): New members `free_list' and `next'.
7278 New member functions `new' and `delete'.
7280 * src/libs/libgroff/color.cc: Implement it.
7282 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
7283 for array size of new operator.
7285 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
7286 redundant comparison.
7288 * src/roff/troff/input.cc (word_space_node::reread,
7289 hmotion_node::reread): Avoid warning about unused parameter.
7290 (reset_output_registers): Remove redundant parameter.
7291 (define_color): Undo change 2003-02-12.
7293 * src/roff/troff/reg.h: Updated.
7295 * src/roff/troff/node.cc (troff_output_file::really_print_line,
7296 output_file::put_filename, real_output_file::really_put_filename,
7297 ascii_output_file::really_print_line,
7298 break_char_node::get_hyphen_list): Avoid warning about unused
7300 (suppress_node::tprint): Updated.
7302 * configure.ac: Check declaration for rand() and srand().
7303 * configure: Regenerated.
7305 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
7307 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
7310 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
7311 to avoid compiler warnings.
7313 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
7316 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
7318 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
7320 Updated all callers.
7322 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
7324 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
7325 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
7327 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
7328 Parameter is unused.
7329 (html_printer::add_table_end): Define parameter conditionally.
7330 * src/devices/grohtml/output.cc (simple_output::special): Parameter
7333 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
7334 (lbp_printer::set_char): Last parameter is unused.
7336 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
7338 2003-02-13 Werner LEMBERG <wl@gnu.org>
7340 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
7341 Make \D'f ...' move horizontally again for backwards compatibility.
7342 Replace it with \D'Fg ...' where appropriate to avoid dependency
7343 on horizontal resolution.
7345 * src/roff/troff/input.cc (do_get_long_name): New function.
7346 (get_long_name): Call it.
7348 (read_draw_node): Handle `\D'Fx ...' by calling ...
7349 (read_color_draw_node): New function.
7351 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
7353 Pass it to `do_get_long_name' which is used instead of
7356 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
7357 unnecessary value guard.
7358 (parse_D_command) <'f'>: Add horizontal shift.
7360 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
7361 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7362 (FILL_MAX): Removed.
7364 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7367 2003-02-12 Werner LEMBERG <wl@gnu.org>
7369 * src/roff/troff/input.cc (do_name_test, do_expr_test,
7370 do_zero_width): Push `\n' if closing delimiter is missing.
7372 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
7373 <'F'>: Make \F non-transparent at the beginning of line.
7374 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
7375 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
7378 (define_color): Free color in case of reassignment.
7380 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
7381 @DefescListEnd): Use @Var, not @var.
7384 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
7386 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
7387 `shaded' and `outlined' arrays.
7388 (object_spec::object_spec): Initialize `shaded' and `outlined'.
7389 (graphic_object::set_fill_color, graphic_object::set_outline_color):
7391 (closed_object::set_fill_color): Ditto.
7392 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
7394 (troff_output::reset_color): Use a_delete instead of free.
7395 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
7397 2003-02-11 Werner LEMBERG <wl@gnu.org>
7399 * doc/groff.texinfo: Improve documentation of `ad'.
7400 Document that \D'f...' is dependent on the horizontal resolution.
7401 * man/groff_diff.man: Improve documentation of \D'f...'.
7403 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
7404 compensating \h'...' for \D'f ...' since the latter no longer moves
7406 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7408 2003-02-10 Werner LEMBERG <wl@gnu.org>
7410 Improve error messages for `x F' (and `F') commands.
7412 * src/include/error.h: Add declaration for
7413 `current_source_filename'.
7414 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
7415 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
7416 parameter for source file string.
7417 Updated all callers.
7419 * src/libs/libdriver/input.cc: Add `current_source_filename'.
7420 (remember_source_filename): New function.
7421 (parse_x_command <'F'>, do_file <'F'>): Use it.
7423 2003-02-09 Werner LEMBERG <wl@gnu.org>
7425 Make grotty not emit warnings about unknown colors more than
7428 * src/devices/grotty/tty.cc: Include `ptable.h'.
7429 (TTY_MAX_COLORS): Removed.
7430 (DEFAULT_COLOR_IDX): Defined to -1.
7431 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
7432 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
7433 Change `tty_colors' to be a ptable.
7434 First arg of `put_color' is now `char'.
7435 New functions `make_rgb_string' and `tty_color'.
7436 (tty_printer::tty_printer): Use `tty_color'.
7437 (tty_printer::color_to_idx): Return value is now `char'.
7440 * src/include/color.h (color): Add `print_color' member function.
7441 * src/libs/libgroff/color.cc (color::print_color): Implement it.
7443 2003-02-08 Werner LEMBERG <wl@gnu.org>
7447 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
7450 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
7451 assume that value has been allocated with `new[]', thus use
7452 `a_delete' for deallocation.
7454 * src/libs/libdriver/input.cc (get_integer_arg,
7455 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
7458 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
7459 * src/libs/libgroff/nametoindex.cc
7460 (character_indexer::named_char_index): Use `new <type>[1]'.
7462 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
7464 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
7465 (split_text): Use `a_delete'.
7467 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
7470 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
7471 harmless memory leak.
7472 (hyphen_trie::read_patterns_file): Initialize `buf'.
7473 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
7474 Initialize `current_fill_color'and `current_glyph_color'.
7475 * src/roff/troff/glyphuni.cc
7476 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
7477 * src/roff/troff/uniuni.cc
7478 (unicode_decompose_init::unicode_decompose_init): Ditto.
7479 * src/roff/troff/uniglyph.cc
7480 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
7482 2003-01-26 Werner LEMBERG <wl@gnu.org>
7484 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
7485 `access' before calling `unlink'.
7486 (do_file): Handle __EMX__.
7488 * src/include/nonposix.h: Handle __EMX__.
7490 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
7491 (fontpath,tmacpath): Use it.
7493 Sorted alphabetically.
7495 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
7497 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
7500 2003-01-27 Werner LEMBERG <wl@gnu.org>
7502 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
7503 New files, copied from gnulib.
7504 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
7505 * configure.ac: Updated.
7506 * configure: Regenerated.
7508 * src/include/config.hin: Regenerated.
7509 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
7510 Don't define `strcasecmp' as `strcmp'.
7511 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
7512 Dont define `strncasecmp' as `strncmp'.
7514 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
7517 2003-01-26 Werner LEMBERG <wl@gnu.org>
7519 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
7522 2003-01-25 Werner LEMBERG <wl@gnu.org>
7524 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
7526 2003-01-24 Werner LEMBERG <wl@gnu.org>
7528 Add US-english hyphenation exceptions (converted from Barbara
7529 Beeton's hyphenation exception log reports which appear irregularly
7532 * tmac/hyphen.us: Updated to latest version.
7533 * tmac/README: Updated.
7534 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
7535 * tmac/troffrc: Load `hyphenex.us'.
7536 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
7537 * doc/groff.texinfo: Updated.
7539 2003-01-23 Werner LEMBERG <wl@gnu.org>
7541 Improve hyphenation slightly. This is a first step in redesigning
7542 the hyphenation algorithm to make it more flexible (e.g. allowing
7543 kerns and ligatures between the hyphenation character and the
7544 following character -- while not used normally in English, other
7545 languages like German would benefit).
7547 * src/roff/troff/env.cc (environment::hyphenate_line): Use
7548 assertion instead of if-clause.
7549 Let `get_hyphen_list' return the number of involved characters in
7550 the hyphenation pattern instead of computing it directly (which
7551 often yields too small values).
7552 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
7553 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
7556 2003-01-22 Werner LEMBERG <wl@gnu.org>
7558 Fixing a bug which caused groff to hang if the hyphenation exception
7559 dictionary tried to grow.
7561 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
7562 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
7563 pointer to dictionary.
7565 2003-01-20 Werner LEMBERG <wl@gnu.org>
7567 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
7568 negative left italic correction.
7569 * src/utils/afmtodit/afmtodit.man: Document it.
7571 * font/devps/generate/Makefile (RFLAG): Add `-m'.
7572 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
7573 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
7577 2003-01-16 Werner LEMBERG <wl@gnu.org>
7581 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
7583 * src/preproc/refer/refer.man: Mention REFER environment variable.
7585 2003-01-05 Werner LEMBERG <wl@gnu.org>
7587 Similar to \[is], the square root glyph (\[sr]) and the square root
7588 extension glyph (\[radicalex]) are now text symbols. The new
7589 mathematical versions are called \[sqrt] and \[sqrtex],
7592 * font/devX*/S: Regenerated.
7593 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
7594 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
7595 * font/devdvi/EX, font/devdvi/S: Regenerated.
7596 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
7597 * font/devlj4/generate/special.map: Add `sqrt'.
7598 * font/devlj4/S: Regenerated.
7599 * font/devps/generate/textmap: Add `sqrt'.
7600 * font/devps/S, font/devps/symbolmap: Regenerated.
7602 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
7603 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
7604 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
7605 overlap horizontally.
7607 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
7608 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
7611 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
7612 and `sqrtex' are overlapping glyphs.
7614 2003-01-04 Werner LEMBERG <wl@gnu.org>
7616 * font/devdvi/generate/texsy.map: Add `is'.
7617 * font/devps/symbolmap: Regenerated.
7618 * font/devdvi/*TC, MI, S: Regenerated.
7620 * tmac/dvi.tmac: Remove `is'.
7622 2003-01-03 Werner LEMBERG <wl@gnu.org>
7624 `is' is now a text symbol (only relevant for dvi). The math variant
7625 can be accessed with `integral'.
7627 * font/devX*/S: Regenerated.
7628 * font/devdvi/generate/texex.map: Remove `is'.
7629 * font/devdvi/EX: Updated.
7630 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
7631 * font/devlj4/generate/special.map: Ditto.
7632 * font/devlj4/S: Regenerated.
7633 * font/devps/generate/textmap: Add `integral'.
7634 * font/devps/S: Regenerated.
7636 * tmac/dvi.tmac: Define `is'.
7638 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
7640 * src/preproc/tbl/main.cc (process_format): Fix error message.
7642 2003-01-02 Werner LEMBERG <wl@gnu.org>
7644 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
7645 * font/devps/textmap: Fix entries for `ne' and `nc'.
7646 * font/devps/symbolmap: Regenerated.
7648 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
7649 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
7650 `38', `58', `78', `-+', `|=', `nc', `ne'.
7652 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
7653 Use `schar' for `aq'.
7654 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
7655 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
7656 * tmac/tty.tmac: Add `ne'.
7658 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
7659 for fallback glyphs.
7661 2002-12-29 Werner LEMBERG <wl@gnu.org>
7665 * font/devX*/*: Regenerated.
7666 * font/devdvi/generate/ec.map: Remove `eq'.
7667 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
7668 Assign `|=' to position 39.
7669 * font/devdvi/*EC, S: Regenerated.
7670 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
7671 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
7672 Assign `|=' to position 549.
7673 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
7675 Add `uni2243' for `|='.
7677 * tmac/ec.tmac: Add `eq'.
7678 * tmac/dvi.tmac: Add `=~'.
7679 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
7682 2002-12-21 Werner LEMBERG <wl@gnu.org>
7684 * font/devdvi/generate/tc.map: Remove `**'.
7685 * font/devdvi/*TC: Regenerated.
7686 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
7688 * font/devutf8/NOTES: Updated.
7690 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
7691 Don't give default parameter to `set_macro'.
7692 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
7693 instead of `set_macro'.
7694 (charinfo::setx_macro): Implement it.
7695 (charinfo::set_macro): Don't change `mode'.
7697 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
7698 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
7699 * tmac/dvi.tmac: Define `!=' with `.schar'.
7701 2002-12-20 Werner LEMBERG <wl@gnu.org>
7703 * font/devX*/S: Regenerated.
7704 * font/devdvi/generate/ec.map: Remove `pl'.
7705 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7706 * font/devdvi/*{TC,EC}: Regenerated.
7707 * font/devhtml/R.proto: Add `-+'.
7708 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7709 * font/devlbp/*: Remove `or'.
7710 * font/devlj4/generate/special.map: Remove `or'.
7711 * font/devlj4/S: Regenerated.
7712 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7713 `seveneighths', `threeeighths'.
7715 Replace `minusplus' with `uni2213'.
7716 * font/devps/symbolmap: Regenerated.
7717 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7720 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7722 * src/roff/troff/node.cc (troff_output_file::put_char_width):
7723 Call glyph_color and fill_color even if tcommand_flag isn't set.
7724 (make_node, node::add_char): Check not ci->is_fallback but
7727 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7728 * tmac/ec.tmac: Add .rchar entry for `f/'.
7729 Don't remove `12', `14', `34'.
7730 Define `pl' to be always roman.
7731 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7732 Define `18', `38', `58', `78'.
7733 * tmac/tty.tmac: Add `-+'.
7734 * tmac/dvi.tmac: Define `f/'.
7735 (dvi-frac): Use `f/'.
7736 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7737 Define `18', `38', `58', `78'.
7739 2002-12-15 Colin Watson <cjwatson@debian.org>
7741 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7743 2002-12-10 Werner LEMBERG <wl@gnu.org>
7745 Add glyph `tno', a textual variant of `no'.
7747 * font/devX*/*: Regenerated.
7748 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7749 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7750 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7751 * font/devdvi/*: Regenerated.
7752 * font/devlbp/*: Add `tno'.
7753 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7754 * font/devlj4/*: Regenerated.
7755 * font/devps/generate/textmap: Replace `no' with `tno'.
7756 * font/devps/generate/symbolchars: Add `no'.
7757 * font/devps/*: Regenerated.
7759 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7761 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7762 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7766 * tmac/dvi.tmac: Replace most `\\' with `\E'.
7767 Add definition for `sd'.
7768 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7770 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7772 2002-12-08 Werner LEMBERG <wl@gnu.org>
7774 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7775 mode to avoid rounding errors.
7776 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7778 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7779 src/roff/troff/troff.man: Improve documentation of -T.
7781 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
7783 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7784 (run_pipeline) [_WIN32]: Provide working function without `fork'.
7786 2002-12-06 Werner LEMBERG <wl@gnu.org>
7788 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7789 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7790 Scaling Euro.sansserif glyphs down to have the same height as
7792 Removed unnecessary points; added some extrema.
7794 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7797 2002-12-04 Werner LEMBERG <wl@gnu.org>
7799 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7800 and `Euro.symbol.bold.slanted'.
7801 Improve some glyph offsets and widths.
7802 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7804 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7806 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7809 * tmac/europs.tmac: Updated to new glyph indices.
7810 Use Euro.symbol for font familiy `A'.
7812 * doc/groff.texinfo: Minor improvements.
7814 2002-12-02 Werner LEMBERG <wl@gnu.org>
7816 * font/devdvi/generate.tc.map: s/%O/%0/.
7817 * font/devdvi/*TC: Regenerated.
7819 * src/roff/troff/div.cc (init_div_requests): Sorted.
7821 * tmac/dvi.tmac: Remove `Ye'.
7822 * tmac/ec.tmac: Remove `Ye'.
7823 Add .rchar entry for `de'.
7825 * man/groff.man, man/groff_diff.man: Document register `.pe'.
7826 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7829 2002-11-30 Werner LEMBERG <wl@gnu.org>
7831 Add PS font for various Euro glyphs.
7833 * font/devps/generate/freeeuro.sfd: New master font file for
7835 * font/devps/generate/sfdtopfa.pe: New conversion script for
7837 * font/devps/generate/Makefile (FONTS): Add `EURO'.
7838 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7839 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7841 * font/devps/EURO: Generated from `freeeuro.afm'.
7842 * font/devps/download: Add `freeuro.pfa'.
7843 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7846 * tmac/europs.tmac: New file.
7847 * tmac/ps.tmac: Include `europs.tmac'.
7848 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7850 2002-11-29 Werner LEMBERG <wl@gnu.org>
7852 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7853 * font/devdvi/S: Regenerated.
7854 * font/devhtml/R.proto: Fix `CR' and `ci'.
7856 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7858 * font/devps/symbolmap: Regenerated.
7859 * font/devutf8/R.proto: Fix `CR' and `ci'.
7861 * font/devutf8/NOTES: Updated.
7863 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7866 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7868 * tmac/dvi.tmac: Add `lh' and `rh'.
7869 * tmac/Xps.tmac: Fix `lh' and `rh'.
7870 * tmac/X.tmac: Add `OK'.
7871 * tmac/lj4.tmac: Ditto.
7873 2002-11-24 Werner LEMBERG <wl@gnu.org>
7875 * font/devX*/S: Regenerated.
7876 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7877 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7878 * font/devdvi/generate/texsy.map: Remove `or' glyph.
7879 * font/devdvi/S: Regenerated.
7880 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7881 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7882 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7883 `bracketleftbt', `bracketrighttp', `bracketrightex',
7884 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7885 `braceex', `braceleftex', `bracerightex', `bracerighttp',
7886 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7888 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7889 * font/devutf8/NOTES: Updated.
7890 * font/devlj4/generate/special.map: Add glyph `braceex'.
7891 * font/devlj4/S: Regenerated.
7893 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7895 2002-11-14 Werner LEMBERG <wl@gnu.org>
7897 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7900 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7902 * doc/texinfo.tex: New version from texinfo 4.3.
7903 * doc/groff.texinfo: Updated for texinfo 4.3.
7904 Use @tie{} where appropriate.
7905 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7906 * font/devdvi/generate/tc.map: Remove `rn'.
7907 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7908 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7910 * font/devX100/*, font/devX100-12/*, font/devX75/*,
7911 font/devX75-12/*: Regenerated.
7913 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7914 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7915 Improve definition of `an'.
7916 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7918 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7919 * tmac/X.tmac: Add definition for `or'.
7920 * tmac/Xps.tmac: Undo change 2002-11-05.
7921 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7923 2002-11-11 Werner LEMBERG <wl@gnu.org>
7925 * src/roff/troff/node.cc (troff_output_file::put_char): Always
7928 2002-11-10 Werner LEMBERG <wl@gnu.org>
7930 Added three new requests `schar', `fschar', and `rfschar'. `schar'
7931 defines a glyph which is searched after the check for fonts declared
7932 with `.special' (and before the check for all mounted special
7933 fonts). `fschar' defines a glyph for a particular font which is
7934 searched after the check for fonts declared with `.fspecial' (and
7935 before the check for fonts declared with `.special'). `rfschar'
7936 removes glyphs defined with `fschar'.
7938 * src/roff/troff/token.h (char_mode): New enum.
7939 Declare do_define_character.
7940 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7942 (charinfo::is_fallback): Updated.
7943 (charinfo::is_special): New method.
7944 * src/roff/troff/input.cc (do_define_character): Add and use
7945 optional second parameter used as a prefix for font-specific glyph
7947 (define_character, define_fallback_character): Updated.
7948 (define_special_character): New function.
7949 (init_input_requests): Add `schar'.
7950 (charinfo::charinfo, charinfo::set_macro): Updated.
7951 * src/roff/troff/node.cc: Include `stringclass.h'.
7952 (make_glyph_node): Handle special glyphs defined with `.schar' and
7954 (define_font_special_character, remove_font_special_character): New
7956 (init_node_requests): Sorted.
7957 Add `fschar' and `rfschar'.
7958 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7959 Document new requests.
7961 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7962 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7964 2002-11-08 Werner LEMBERG <wl@gnu.org>
7966 Added new font `SC' (cmtex10) to devdvi.
7968 * devdvi/generate/Makefile (FONTS): Add `SC'.
7970 * devdvi/generate/textex.map: New map file for cmtex.
7972 * devdvi/Makefile.sub (DEVFILES): Updated.
7973 * tmac/dvi.tmac: Add fspecial entries for SC.
7974 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
7975 found before `S' since the font position of `SC' is lower due to the
7976 gaps in DESC's `font' line.
7977 * tmac/ec.tmac: Add a `special' call.
7980 * font/devhtml/R.proto: Remove double entry for `ti'.
7981 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7982 * tmac/tty-char.tmac: Remove entry for `bq'.
7983 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7984 * tmac/ec.tmac: Don't remove `aq' glyph.
7985 * tmac/X.tmac: Fix entry for `em'.
7986 Add entries for `fo' and `fc'.
7987 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7989 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7990 documentation of `special' and `fspecial' requests.
7992 2002-11-05 Werner LEMBERG <wl@gnu.org>
7994 * font/devascii/R.proto, font/devcp1047/R.proto,
7995 font/devlatin1/R.proto: Remove entry for `.i'.
7996 * font/devdvi/generate/textt.map: Add entry for `ad'.
7997 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7998 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7999 We need this for getting kerning values to compose `/l' and `/L'.
8000 * font/devdvi: Regenerated font definition files for CM fonts.
8001 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
8002 * font/devutf8/R.proto: Ditto.
8003 Remove double entry for `ti'.
8005 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
8006 for (groff) ligatures, `la', and `ra'.
8007 Add "'C", "'c", `IJ', and `ij'.
8008 Remove double entry for `ti'.
8009 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
8011 Add "'C", "'c", `IJ', and `ij'.
8012 Fix entries for (groff) ligatures, `la', and `ra'.
8014 * tmac/ps.tmac (ps-achar): New macro.
8015 Define "'c" and "'C".
8016 * tmac/tty.tmac: Add entry for `.i'.
8017 * tmac/X.tmac (X-achar): New macro.
8018 Define "'c", "'C", and `:Y'.
8019 Add entries for `IJ' and `ij'.
8020 * tmac/Xps.tmac (Xps-achar): New macro.
8021 Define "'c" and "'C".
8022 Add entries for `IJ' and `ij'.
8023 * tmac/lbp.tmac (lbp-achar): New macro.
8024 Add fallback characters for all groff ligatures and many other
8026 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
8027 Add entries for `/l' and `/L'.
8028 Define "'c" and "'C".
8029 Add entries for `IJ' and `ij'.
8031 2002-11-02 Larry Kollar <kollar@alltel.net>
8033 * PROBLEMS: Document how to solve Mac OS X compilation problems.
8035 2002-11-02 Werner LEMBERG <wl@gnu.org>
8037 Adding support for composite glyphs: \[xxx yyy ...] and the
8038 `composite' request.
8040 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
8041 to Unicode-based glyph names.
8042 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
8043 glyph names to groff glyph names.
8044 * src/roff/troff/uniuni.cc: New file for canonically decomposing
8045 Unicode-based glyph names.
8046 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
8047 for handling Unicode glyph names.
8048 * src/roff/troff/input.cc: Include unicode.h.
8049 (composite_glyph_name): New function.
8050 (token::next) <'['>: Handle Unicode glyph names and composite
8052 (composite_dictionary): New dictionary for the `composite' request.
8053 (composite_request): Implement `composite' request.
8054 (init_input_requests): Add `composite'.
8055 Alphabetically sorted.
8056 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
8058 (init_env_requests): Alphabetically sorted.
8059 Removed `tas' and `tar' (already commented out).
8060 * src/roff/troff/Makefile.sub: Updated.
8062 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
8064 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
8067 2002-10-29 Werner LEMBERG <wl@gnu.org>
8069 Fix computation of .trunc register. Additionally, its value (and
8070 the value of the .ne register) is now always set before entering the
8073 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
8074 `needed_space' before calling `space'.
8075 (top_level_diversion::space): Remove special code for 'sp before the
8077 Call `begin_page' with the discarded space as a parameter.
8078 (top_level_diversion::begin_page): Add optional parameter to set
8080 * src/roff/troff/div.h: Updated.
8082 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
8085 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
8086 (LP): Remove superfluous call to `br'.
8087 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
8088 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
8090 2002-10-26 Werner LEMBERG <wl@gnu.org>
8092 * tmac/doc-ditroff: Remove useless switch/variable -rC.
8093 (doc-setup-header): Don't set page register `%'.
8094 * tmac/doc-nroff: Remove variable `C'.
8095 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
8096 (doc-setup-header): Don't set page register `%'.
8098 * tmac/doc-common (doc-header): Call `ns'.
8099 (doc-paragraph): Protect .sp with .br so that it survives traps
8100 possibly set by the user.
8101 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
8103 * tmac/doc*: Replace ' with . for consistency if no effect.
8105 2002-10-26 Werner LEMBERG <wl@gnu.org>
8107 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
8108 so that it survives traps possibly set by the user.
8110 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
8111 (troff_output_file::set_font): Call flush_tbuf if necessary.
8112 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
8113 flush_tbuf and do_motion only if necessary.
8114 (troff_output_file::start_special,
8115 troff_output_file::put_char_width, troff_output_file::put_char,
8116 troff_output_file::draw): Updated.
8117 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
8118 vmotion_node::tprint): Undo change 2002-10-23.
8120 2002-10-25 Werner LEMBERG <wl@gnu.org>
8122 * tmac/www.tmac (DC): Fix case of overlapping images.
8124 2002-10-23 Werner LEMBERG <wl@gnu.org>
8126 * src/roff/troff/node.cc (troff_output_file::fill_color,
8127 troff_output_file::glyph_color): Set current color before testing
8129 (troff_output_file::put_char_width, troff_output_file::put_char,
8130 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
8132 (troff_output_file::file_color, troff_output_file::glyph_color):
8134 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
8135 vmotion_node::tprint): Move first, then call fill_color.
8137 2002-10-20 Werner LEMBERG <wl@gnu.org>
8139 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
8140 possible to use multiple main macro packages.
8142 2002-10-19 Werner LEMBERG <wl@gnu.org>
8144 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
8145 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
8146 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
8148 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
8149 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
8151 2002-10-16 Werner LEMBERG <wl@gnu.org>
8153 * NEWS, doc/webpage.ms: Updated.
8155 2002-10-14 Werner LEMBERG <wl@gnu.org>
8157 * src/roff/troff/node.cc (troff_output_file::put_char_width,
8158 troff_output_file::put_char, troff_output_file::fill_color,
8159 troff_output_file::glyph_color): Handle case where color pointer
8162 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
8164 Add the new -r option to grotty. It is similar to the -i option
8165 except it tells grotty(1) to use the `reverse video' attribute to
8166 render italic fonts.
8168 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
8169 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
8170 (tty_printer::make_underline, tty_printer::put_color,
8171 tty_printer::end_page): Use it.
8172 (main): Add -r switch.
8174 * src/devices/grotty/grotty.man: Document it.
8176 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
8178 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
8179 cast to `unsigned char' to properly read patterns with 8bit
8182 2002-10-08 Werner LEMBERG <wl@gnu.org>
8184 * REVISION: Increased to 2.
8186 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
8187 Free Software Foundation, Inc.
8189 Copying and distribution of this file, with or without modification,
8190 are permitted in any medium without royalty provided the copyright
8191 notice and this notice are preserved.
8194 version-control: never