summaryrefslogtreecommitdiff
path: root/man/groff_diff.man
diff options
context:
space:
mode:
authorwlemb <wlemb>2002-05-22 21:51:16 +0000
committerwlemb <wlemb>2002-05-22 21:51:16 +0000
commit0aff73492920c1981a51fc6f4443736197a5666f (patch)
tree7dd5cc17b8294af19e5230c0a3ff4f4b8482cc00 /man/groff_diff.man
parente83cbb022e9bf35bdf651e30eac64513f4598db8 (diff)
downloadgroff-0aff73492920c1981a51fc6f4443736197a5666f.tar.gz
Change syntax of \O: \O[0] suppresses output, \O[1] enables output
if at outer level; at start-up we are at outer level. * src/roff/troff/input.cc (do_suppress): Implement it. Simplify \O[3]. Add option -p to show progress information. pre-grohtml will now render only one page at a time, reducing the size of needed disk resources enormously. * src/preproc/html/pre-html.cc (imagePageStem): Replaced with... (imagePageName): New global variable. (psPageName, show_progress, currentPageNo): New global variables. (html_system): Close saved stderr and stdout handles. (write_end_image): Accept a parameter to control \O escape. (write_start_image): Adapted to new \O meaning. (char_buffer::write_upto_newline): Updated. (createAllPages): Replaced with... (createPage): This new function to create a single page for images. It uses `psselect' from the psutils package. (removeAllPages): Removed. (createImage): Updated. Handle progress display. (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed. (scanArguments): Add option -p. (makeTempFiles): Updated to create temp files for psPageName and imagePageName. (removeTempFiles): Removed. (main): Updated. * src/devices/grohtml/post-html.cc (header_desc::write_headings, html_printer::write_header): Append `\0' to `buffer'. (html_printer::do_eol): Depend on `current_paragraph->emitted_text'. (main): Handle -p. * src/devices/grohtml/html-text.cc (html_text::dump_stack_element): Handle `text_emitted'. (html_text::table_is_void): Slightly rewritten. (stop): New external symbol. (html_text::do_push) [DEBUGGING]: Use it and simplify. (html_text::shutdown): Call `dump_stack'. (html_text::do_space): Rewritten. * src/devices/grohtml/grohtml.man: Document -p and the need of `psselect'. * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to new \O syntax. Call \O[0] if `ps4html' is active. * tmac/s.tmac (@EQ, @EN): Handle html better. (@TS, TE): Ditto. * tmac/html.tmac: Don't use black for background colour. * src/roff/troff/node.cc: Include `div.h'. (troff_output_file::really_print_line): Don't use `is_on'. (troff_output_file::word_marker, troff_output_file::flush_tbuf troff_output_file::check_charinfo, troff_output_file::put_char_width, troff_output_file::put_char, troff_output_file::determine_line_limits, troff_output_file::draw, real_output_file::begin_page, glyph_color_node::tprintf, fill_color_node::tprint, hline_node::tprint, vline_node::tprint): Use `is_on'. (troff_output_file::really_on): Call `do_motion'. (suppress_node::tprint): Use `get_page_number' instead of `%' register. Call `reset_output_registers' conditionally on `is_on'. * doc/groff.texinfo: Document new syntax of \O. * NEWS, man/groff_diff.man: Updated.
Diffstat (limited to 'man/groff_diff.man')
-rw-r--r--man/groff_diff.man20
1 files changed, 16 insertions, 4 deletions
diff --git a/man/groff_diff.man b/man/groff_diff.man
index 8944c260..6cec4a5a 100644
--- a/man/groff_diff.man
+++ b/man/groff_diff.man
@@ -3,7 +3,7 @@
.ig
groff_diff.man
-Last update : 11 May 2002
+Last update : 22 May 2002
This file is part of groff, the GNU roff type-setting system.
It is the source of the man-page groff_diff(7).
@@ -495,6 +495,8 @@ escape sequence is the only way to use these.
.
.TP
.BI \[rs]O n
+.TQ
+.BI \[rs]O[ n ]
Suppressing troff output.
.
The escapes
@@ -545,12 +547,20 @@ encompassing the glyphs previously written since the last call to
.B \[rs]O3
Begin a nesting level.
.
+At start-up,
+.B troff
+is at outer level.
+.
This is really an internal mechanism for
.B \%grohtml
while producing images.
.
-They are generated by running the troff source through troff to the
-postscript device and ghostscript to produce images in PNG format.
+They are generated by running the troff source through
+.B troff
+to the postscript device and
+.B ghostscript
+to produce images in PNG format.
+.
The
.B \[rs]O3
escape will start a new page if the device is not html (to reduce the
@@ -559,6 +569,7 @@ possibility of images crossing a page boundary).
.TP
.B \[rs]O4
End a nesting level.
+.
.TP
.BI \[rs]O5[ Pfilename ]
This escape is
@@ -571,8 +582,9 @@ to stderr.
.
The position of the image,
.IR P ,
-must be specified and must be one of l, r, c or i (left, right,
+must be specified and must be one of l, r, c, or i (left, right,
centered, inline).
+.
.I filename
will be associated with the production of the next inline image.
.RE