From groff-commit-admin Fri Oct  5 16:12:11 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECAtg007924
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:11 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECALl007918;
	Fri, 5 Oct 2001 16:12:10 +0200
Date: Fri, 5 Oct 2001 16:12:10 +0200
Message-Id: <200110051412.f95ECALl007918@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff
In directory genba:/vol5/tmp/cvs-serv7857

Modified Files:
	ChangeLog Makefile.sub NEWS test-groff 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:12 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECCtg007945
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:12 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECC6O007941;
	Fri, 5 Oct 2001 16:12:12 +0200
Date: Fri, 5 Oct 2001 16:12:12 +0200
Message-Id: <200110051412.f95ECC6O007941@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/doc
In directory genba:/vol5/tmp/cvs-serv7857/doc

Modified Files:
	groff.texinfo pic.ms 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:13 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECDtg007963
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:13 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECC24007958;
	Fri, 5 Oct 2001 16:12:12 +0200
Date: Fri, 5 Oct 2001 16:12:12 +0200
Message-Id: <200110051412.f95ECC24007958@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/font/devps
In directory genba:/vol5/tmp/cvs-serv7857/font/devps

Modified Files:
	prologue.ps 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:13 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECDtg007981
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:13 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECDx3007975;
	Fri, 5 Oct 2001 16:12:13 +0200
Date: Fri, 5 Oct 2001 16:12:13 +0200
Message-Id: <200110051412.f95ECDx3007975@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/man
In directory genba:/vol5/tmp/cvs-serv7857/man

Modified Files:
	groff.man groff_out.man 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:16 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECEtg007999
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:14 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECEKN007994;
	Fri, 5 Oct 2001 16:12:14 +0200
Date: Fri, 5 Oct 2001 16:12:14 +0200
Message-Id: <200110051412.f95ECEKN007994@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/devices/grodvi
In directory genba:/vol5/tmp/cvs-serv7857/src/devices/grodvi

Modified Files:
	dvi.cc 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:16 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECGtg008017
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:16 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECG5D008013;
	Fri, 5 Oct 2001 16:12:16 +0200
Date: Fri, 5 Oct 2001 16:12:16 +0200
Message-Id: <200110051412.f95ECG5D008013@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/devices/grohtml
In directory genba:/vol5/tmp/cvs-serv7857/src/devices/grohtml

Modified Files:
	grohtml.man html-text.cc html-text.h post-html.cc 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:17 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECHtg008035
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:17 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECGgi008029;
	Fri, 5 Oct 2001 16:12:16 +0200
Date: Fri, 5 Oct 2001 16:12:16 +0200
Message-Id: <200110051412.f95ECGgi008029@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/devices/grolbp
In directory genba:/vol5/tmp/cvs-serv7857/src/devices/grolbp

Modified Files:
	lbp.cc 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:17 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECHtg008053
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:17 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECHnT008047;
	Fri, 5 Oct 2001 16:12:17 +0200
Date: Fri, 5 Oct 2001 16:12:17 +0200
Message-Id: <200110051412.f95ECHnT008047@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/devices/grolj4
In directory genba:/vol5/tmp/cvs-serv7857/src/devices/grolj4

Modified Files:
	lj4.cc 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:18 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECItg008071
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:18 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECIeD008066;
	Fri, 5 Oct 2001 16:12:18 +0200
Date: Fri, 5 Oct 2001 16:12:18 +0200
Message-Id: <200110051412.f95ECIeD008066@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/devices/grops
In directory genba:/vol5/tmp/cvs-serv7857/src/devices/grops

Modified Files:
	ps.cc 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:19 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECJtg008089
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:19 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECIiv008083;
	Fri, 5 Oct 2001 16:12:18 +0200
Date: Fri, 5 Oct 2001 16:12:18 +0200
Message-Id: <200110051412.f95ECIiv008083@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/include
In directory genba:/vol5/tmp/cvs-serv7857/src/include

Modified Files:
	Makefile.sub driver.h printer.h 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:20 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECJtg008107
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:20 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECJa9008101;
	Fri, 5 Oct 2001 16:12:19 +0200
Date: Fri, 5 Oct 2001 16:12:19 +0200
Message-Id: <200110051412.f95ECJa9008101@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/libs/libdriver
In directory genba:/vol5/tmp/cvs-serv7857/src/libs/libdriver

Modified Files:
	input.cc printer.cc 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:21 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECLtg008125
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:21 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECL9Q008119;
	Fri, 5 Oct 2001 16:12:21 +0200
Date: Fri, 5 Oct 2001 16:12:21 +0200
Message-Id: <200110051412.f95ECL9Q008119@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/libs/libgroff
In directory genba:/vol5/tmp/cvs-serv7857/src/libs/libgroff

Modified Files:
	Makefile.sub font.cc 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:22 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECLtg008143
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:21 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECLvw008139;
	Fri, 5 Oct 2001 16:12:21 +0200
Date: Fri, 5 Oct 2001 16:12:21 +0200
Message-Id: <200110051412.f95ECLvw008139@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/preproc/eqn
In directory genba:/vol5/tmp/cvs-serv7857/src/preproc/eqn

Modified Files:
	eqn.man 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:22 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECMtg008161
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:22 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECMdL008155;
	Fri, 5 Oct 2001 16:12:22 +0200
Date: Fri, 5 Oct 2001 16:12:22 +0200
Message-Id: <200110051412.f95ECMdL008155@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/preproc/html
In directory genba:/vol5/tmp/cvs-serv7857/src/preproc/html

Modified Files:
	pre-html.cc 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:23 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECNtg008179
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:23 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECNgM008173;
	Fri, 5 Oct 2001 16:12:23 +0200
Date: Fri, 5 Oct 2001 16:12:23 +0200
Message-Id: <200110051412.f95ECNgM008173@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/preproc/pic
In directory genba:/vol5/tmp/cvs-serv7857/src/preproc/pic

Modified Files:
	common.cc common.h lex.cc object.cc object.h output.h pic.man 
	pic.y tex.cc troff.cc 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:24 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECOtg008197
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:24 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECNNX008193;
	Fri, 5 Oct 2001 16:12:23 +0200
Date: Fri, 5 Oct 2001 16:12:23 +0200
Message-Id: <200110051412.f95ECNNX008193@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/roff/groff
In directory genba:/vol5/tmp/cvs-serv7857/src/roff/groff

Modified Files:
	groff.cc groff.man 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:25 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECOtg008215
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:24 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECOMB008210;
	Fri, 5 Oct 2001 16:12:24 +0200
Date: Fri, 5 Oct 2001 16:12:24 +0200
Message-Id: <200110051412.f95ECOMB008210@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/roff/troff
In directory genba:/vol5/tmp/cvs-serv7857/src/roff/troff

Modified Files:
	dictionary.cc div.cc env.cc env.h input.cc node.cc node.h 
	number.cc troff.h troff.man 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 16:12:26 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95ECQtg008233
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 16:12:26 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95ECPsI008227;
	Fri, 5 Oct 2001 16:12:25 +0200
Date: Fri, 5 Oct 2001 16:12:25 +0200
Message-Id: <200110051412.f95ECPsI008227@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/tmac
In directory genba:/vol5/tmp/cvs-serv7857/tmac

Modified Files:
	Makefile.sub troffrc troffrc-end www.tmac 
Log Message:


Implementing color support in troff, pic, grops, and grohtml.  These
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.

New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.

New escapes: \m and \M for drawing and background color,
respectively.  This corresponds to the troff output commands `m'
and `DF'.

groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).

New scaling indicator `f' for fractions (1f = 65536u).

New conditional operator `m' to test for defined colors with `if'
and `ie'.

New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.

* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.

* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.

* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.

* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.

* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.

* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'.  New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.

* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.

* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.

* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.

* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.

* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.

Fix incorrect cropping of images and incorrect handling of special
characters.  Fix handling of file names in \O.

* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.

* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.

* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.



From groff-commit-admin Fri Oct  5 23:42:29 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95LgTtg012332
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 23:42:29 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95LgTxH012327;
	Fri, 5 Oct 2001 23:42:29 +0200
Date: Fri, 5 Oct 2001 23:42:29 +0200
Message-Id: <200110052142.f95LgTxH012327@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff
In directory genba:/vol5/tmp/cvs-serv12282

Modified Files:
	ChangeLog 
Log Message:


* doc/pic.ms: Minor fix.
* src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
as a valid command line switch.
* src/devices/grohtml/post-html.cc (main): Ditto.
(usage): Updated.
* src/devices/grohtml/grohtml.man: Updated.
* src/roff/groff/groff.cc (main): Pass `-v' to predriver also.


From groff-commit-admin Fri Oct  5 23:42:30 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95LgUtg012350
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 23:42:30 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95LgThB012345;
	Fri, 5 Oct 2001 23:42:29 +0200
Date: Fri, 5 Oct 2001 23:42:29 +0200
Message-Id: <200110052142.f95LgThB012345@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/doc
In directory genba:/vol5/tmp/cvs-serv12282/doc

Modified Files:
	pic.ms 
Log Message:


* doc/pic.ms: Minor fix.
* src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
as a valid command line switch.
* src/devices/grohtml/post-html.cc (main): Ditto.
(usage): Updated.
* src/devices/grohtml/grohtml.man: Updated.
* src/roff/groff/groff.cc (main): Pass `-v' to predriver also.


From groff-commit-admin Fri Oct  5 23:42:30 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95LgUtg012368
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 23:42:30 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95LgUp8012362;
	Fri, 5 Oct 2001 23:42:30 +0200
Date: Fri, 5 Oct 2001 23:42:30 +0200
Message-Id: <200110052142.f95LgUp8012362@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/devices/grohtml
In directory genba:/vol5/tmp/cvs-serv12282/src/devices/grohtml

Modified Files:
	post-html.cc 
Log Message:


* doc/pic.ms: Minor fix.
* src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
as a valid command line switch.
* src/devices/grohtml/post-html.cc (main): Ditto.
(usage): Updated.
* src/devices/grohtml/grohtml.man: Updated.
* src/roff/groff/groff.cc (main): Pass `-v' to predriver also.


From groff-commit-admin Fri Oct  5 23:42:31 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95LgVtg012386
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 23:42:31 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95LgVif012380;
	Fri, 5 Oct 2001 23:42:31 +0200
Date: Fri, 5 Oct 2001 23:42:31 +0200
Message-Id: <200110052142.f95LgVif012380@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/preproc/html
In directory genba:/vol5/tmp/cvs-serv12282/src/preproc/html

Modified Files:
	pre-html.cc 
Log Message:


* doc/pic.ms: Minor fix.
* src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
as a valid command line switch.
* src/devices/grohtml/post-html.cc (main): Ditto.
(usage): Updated.
* src/devices/grohtml/grohtml.man: Updated.
* src/roff/groff/groff.cc (main): Pass `-v' to predriver also.


From groff-commit-admin Fri Oct  5 23:42:32 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95LgWtg012404
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 23:42:32 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95LgVm3012399;
	Fri, 5 Oct 2001 23:42:31 +0200
Date: Fri, 5 Oct 2001 23:42:31 +0200
Message-Id: <200110052142.f95LgVm3012399@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/roff/groff
In directory genba:/vol5/tmp/cvs-serv12282/src/roff/groff

Modified Files:
	groff.cc 
Log Message:


* doc/pic.ms: Minor fix.
* src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
as a valid command line switch.
* src/devices/grohtml/post-html.cc (main): Ditto.
(usage): Updated.
* src/devices/grohtml/grohtml.man: Updated.
* src/roff/groff/groff.cc (main): Pass `-v' to predriver also.


From groff-commit-admin Fri Oct  5 23:45:24 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95LjNtg012550
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 23:45:23 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95LjNri012545;
	Fri, 5 Oct 2001 23:45:23 +0200
Date: Fri, 5 Oct 2001 23:45:23 +0200
Message-Id: <200110052145.f95LjNri012545@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/include
In directory genba:/vol5/tmp/cvs-serv12530/src/include

Added Files:
	color.h geometry.h 
Log Message:


New files.


From groff-commit-admin Fri Oct  5 23:45:24 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95LjOtg012568
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 23:45:24 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95LjOLO012563;
	Fri, 5 Oct 2001 23:45:24 +0200
Date: Fri, 5 Oct 2001 23:45:24 +0200
Message-Id: <200110052145.f95LjOLO012563@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/libs/libgroff
In directory genba:/vol5/tmp/cvs-serv12530/src/libs/libgroff

Added Files:
	color.cc geometry.cc 
Log Message:


New files.


From groff-commit-admin Fri Oct  5 23:45:25 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f95LjPtg012586
        for <groff-commit@genba.ffii.org>; Fri, 5 Oct 2001 23:45:25 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f95LjPAD012580;
	Fri, 5 Oct 2001 23:45:25 +0200
Date: Fri, 5 Oct 2001 23:45:25 +0200
Message-Id: <200110052145.f95LjPAD012580@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/tmac
In directory genba:/vol5/tmp/cvs-serv12530/tmac

Added Files:
	color-html.tmac color.tmac 
Log Message:


New files.


From groff-commit-admin Wed Oct 10 21:38:58 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f9AJcwVd030282
        for <groff-commit@genba.ffii.org>; Wed, 10 Oct 2001 21:38:58 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f9AJcvFX030276;
	Wed, 10 Oct 2001 21:38:57 +0200
Date: Wed, 10 Oct 2001 21:38:57 +0200
Message-Id: <200110101938.f9AJcvFX030276@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff
In directory genba:/vol5/tmp/cvs-serv30109

Modified Files:
	ChangeLog 
Log Message:

* src/roff/troff/input.cc (file_iterator): New members
`suppress_newline_flag' and `seen_escape'.
(file_iterator::next_file): Updated.
(file_iterator::fill): Use it.
(string_iterator): New member `suppress_newline_flag'.
(string_iterator::fill): Set it.
(get_color_element): Use MAX_COLOR_VAL.
* src/roff/troff/env.cc (environment): Remove `need_eol'.
(no_fill): Don't set `env->ignore_next_eol'.
(environment::newline): Handle `eol' tag properly.
Emit `eol.ce'.
(environment::add_html_tag): Set `env->ignore_next_eol'.
Don't handle `.ce'.
* src/roff/troff/env.h (environment): Updated.

* src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
member function.
(html_printer::outstanding_eol): New member function.
(html_printer::do_title): Use new functions.
(html_printer::troff_tag): Test `id_eol_ce'.

* tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
files work with -C also.


From groff-commit-admin Wed Oct 10 21:38:59 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f9AJcwVd030300
        for <groff-commit@genba.ffii.org>; Wed, 10 Oct 2001 21:38:58 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f9AJcwuB030295;
	Wed, 10 Oct 2001 21:38:58 +0200
Date: Wed, 10 Oct 2001 21:38:58 +0200
Message-Id: <200110101938.f9AJcwuB030295@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/devices/grohtml
In directory genba:/vol5/tmp/cvs-serv30109/src/devices/grohtml

Modified Files:
	post-html.cc 
Log Message:

* src/roff/troff/input.cc (file_iterator): New members
`suppress_newline_flag' and `seen_escape'.
(file_iterator::next_file): Updated.
(file_iterator::fill): Use it.
(string_iterator): New member `suppress_newline_flag'.
(string_iterator::fill): Set it.
(get_color_element): Use MAX_COLOR_VAL.
* src/roff/troff/env.cc (environment): Remove `need_eol'.
(no_fill): Don't set `env->ignore_next_eol'.
(environment::newline): Handle `eol' tag properly.
Emit `eol.ce'.
(environment::add_html_tag): Set `env->ignore_next_eol'.
Don't handle `.ce'.
* src/roff/troff/env.h (environment): Updated.

* src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
member function.
(html_printer::outstanding_eol): New member function.
(html_printer::do_title): Use new functions.
(html_printer::troff_tag): Test `id_eol_ce'.

* tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
files work with -C also.


From groff-commit-admin Wed Oct 10 21:38:59 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f9AJcxVd030318
        for <groff-commit@genba.ffii.org>; Wed, 10 Oct 2001 21:38:59 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f9AJcxW9030313;
	Wed, 10 Oct 2001 21:38:59 +0200
Date: Wed, 10 Oct 2001 21:38:59 +0200
Message-Id: <200110101938.f9AJcxW9030313@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/roff/troff
In directory genba:/vol5/tmp/cvs-serv30109/src/roff/troff

Modified Files:
	env.cc env.h input.cc 
Log Message:

* src/roff/troff/input.cc (file_iterator): New members
`suppress_newline_flag' and `seen_escape'.
(file_iterator::next_file): Updated.
(file_iterator::fill): Use it.
(string_iterator): New member `suppress_newline_flag'.
(string_iterator::fill): Set it.
(get_color_element): Use MAX_COLOR_VAL.
* src/roff/troff/env.cc (environment): Remove `need_eol'.
(no_fill): Don't set `env->ignore_next_eol'.
(environment::newline): Handle `eol' tag properly.
Emit `eol.ce'.
(environment::add_html_tag): Set `env->ignore_next_eol'.
Don't handle `.ce'.
* src/roff/troff/env.h (environment): Updated.

* src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
member function.
(html_printer::outstanding_eol): New member function.
(html_printer::do_title): Use new functions.
(html_printer::troff_tag): Test `id_eol_ce'.

* tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
files work with -C also.


From groff-commit-admin Wed Oct 10 21:39:00 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f9AJd0Vd030336
        for <groff-commit@genba.ffii.org>; Wed, 10 Oct 2001 21:39:00 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id f9AJd0Bk030330;
	Wed, 10 Oct 2001 21:39:00 +0200
Date: Wed, 10 Oct 2001 21:39:00 +0200
Message-Id: <200110101939.f9AJd0Bk030330@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/tmac
In directory genba:/vol5/tmp/cvs-serv30109/tmac

Modified Files:
	color-html.tmac color.tmac 
Log Message:

* src/roff/troff/input.cc (file_iterator): New members
`suppress_newline_flag' and `seen_escape'.
(file_iterator::next_file): Updated.
(file_iterator::fill): Use it.
(string_iterator): New member `suppress_newline_flag'.
(string_iterator::fill): Set it.
(get_color_element): Use MAX_COLOR_VAL.
* src/roff/troff/env.cc (environment): Remove `need_eol'.
(no_fill): Don't set `env->ignore_next_eol'.
(environment::newline): Handle `eol' tag properly.
Emit `eol.ce'.
(environment::add_html_tag): Set `env->ignore_next_eol'.
Don't handle `.ce'.
* src/roff/troff/env.h (environment): Updated.

* src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
member function.
(html_printer::outstanding_eol): New member function.
(html_printer::do_title): Use new functions.
(html_printer::troff_tag): Test `id_eol_ce'.

* tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
files work with -C also.


From groff-commit-admin Sat Oct 20 01:41:01 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f9JNf1MF023338
        for <groff-commit@genba.ffii.org>; Sat, 20 Oct 2001 01:41:01 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) id f9JNf1lt023332;
	Sat, 20 Oct 2001 01:41:01 +0200
Date: Sat, 20 Oct 2001 01:41:01 +0200
Message-Id: <200110192341.f9JNf1lt023332@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/tmac
In directory genba:/vol5/tmp/cvs-serv23322

Modified Files:
	doc.tmac 
Log Message:

* tmac/doc.tmac (doc-flag-recursion): Protect arguments against
being handled as end-of-sentence characters,


From groff-commit-admin Sat Oct 20 01:41:52 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f9JNfqMF023360
        for <groff-commit@genba.ffii.org>; Sat, 20 Oct 2001 01:41:52 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) id f9JNfqhA023355;
	Sat, 20 Oct 2001 01:41:52 +0200
Date: Sat, 20 Oct 2001 01:41:52 +0200
Message-Id: <200110192341.f9JNfqhA023355@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff
In directory genba:/vol5/tmp/cvs-serv23344

Modified Files:
	ChangeLog 
Log Message:



From groff-commit-admin Sun Oct 21 00:37:22 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f9KMbMMF009916
        for <groff-commit@genba.ffii.org>; Sun, 21 Oct 2001 00:37:22 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) id f9KMbMQh009910;
	Sun, 21 Oct 2001 00:37:22 +0200
Date: Sun, 21 Oct 2001 00:37:22 +0200
Message-Id: <200110202237.f9KMbMQh009910@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff
In directory genba:/vol5/tmp/cvs-serv9836

Modified Files:
	ChangeLog 
Log Message:


Undo change from 2001-08-28.

* src/roff/troff/input.cc (have_input): New global variable.
(token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
in compatibility mode.
(process_input_stack): Use it.


From groff-commit-admin Sun Oct 21 00:37:23 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f9KMbNMF009934
        for <groff-commit@genba.ffii.org>; Sun, 21 Oct 2001 00:37:23 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) id f9KMbNTS009930;
	Sun, 21 Oct 2001 00:37:23 +0200
Date: Sun, 21 Oct 2001 00:37:23 +0200
Message-Id: <200110202237.f9KMbNTS009930@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/roff/troff
In directory genba:/vol5/tmp/cvs-serv9836/src/roff/troff

Modified Files:
	input.cc token.h 
Log Message:


Undo change from 2001-08-28.

* src/roff/troff/input.cc (have_input): New global variable.
(token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
in compatibility mode.
(process_input_stack): Use it.


From groff-commit-admin Sat Oct 27 19:09:54 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f9RH9sMF001334
        for <groff-commit@genba.ffii.org>; Sat, 27 Oct 2001 19:09:54 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) id f9RH9sL0001329;
	Sat, 27 Oct 2001 19:09:54 +0200
Date: Sat, 27 Oct 2001 19:09:54 +0200
Message-Id: <200110271709.f9RH9sL0001329@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff
In directory genba:/vol5/tmp/cvs-serv1290

Modified Files:
	ChangeLog 
Log Message:


* src/roff/troff/input.cc (substring_macro): Fix computation of
boundary values.


From groff-commit-admin Sat Oct 27 19:09:55 2001
Received: from genba.ffii.org (wlemb@localhost [127.0.0.1])
        by localhost (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f9RH9tMF001353
        for <groff-commit@genba.ffii.org>; Sat, 27 Oct 2001 19:09:55 +0200
Received: (from wlemb@localhost)
        by genba.ffii.org (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) id f9RH9tQJ001346;
	Sat, 27 Oct 2001 19:09:55 +0200
Date: Sat, 27 Oct 2001 19:09:55 +0200
Message-Id: <200110271709.f9RH9tQJ001346@genba.ffii.org>
From: wlemb@ffii.org
To: groff-commit@genba.ffii.org
Subject: [Groff-commit] Changes to //var/cvs/groff
Sender: groff-commit-admin@ffii.org
Errors-To: groff-commit-admin@ffii.org
X-BeenThere: groff-commit@ffii.org
X-Mailman-Version: 2.0.local1
Precedence: bulk
List-Help: <mailto:groff-commit-request@ffii.org?subject=help>
List-Post: <mailto:groff-commit@ffii.org>
List-Subscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=subscribe>
List-Id: CVS commit list for groff <groff-commit.ffii.org>
List-Unsubscribe: <http://ffii.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@ffii.org?subject=unsubscribe>
List-Archive: <http://ffii.org/archive/mails/groff-commit/>

Log from commit: 

Update of /var/cvs/groff/src/roff/troff
In directory genba:/vol5/tmp/cvs-serv1290/src/roff/troff

Modified Files:
	input.cc 
Log Message:


* src/roff/troff/input.cc (substring_macro): Fix computation of
boundary values.


