diff options
author | wlemb <wlemb> | 2001-04-06 13:03:13 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2001-04-06 13:03:13 +0000 |
commit | d8d8cd42bf367a56b6c55d06fd94cd096bf9540f (patch) | |
tree | d7de980ae5cfa003f56b63a4b875b58f62b0b6fe /man | |
parent | 04387f3d81f90ff69dd1ca79803979ff3a8b205c (diff) | |
download | groff-d8d8cd42bf367a56b6c55d06fd94cd096bf9540f.tar.gz |
Implement continuous underlining for nroff mode. To do that, a new
request in the ditroff language has been added: `x u N' (N is 0
or 1).
X and Y are now transparent to end-of-sentence recognition.
* src/include/printer.h (printer): Add `type' parameter to `special'
method.
* src/libs/libdriver/printer.cc (printer::special): Updated.
* src/libs/libdriver/input.cc (do_file): Handle `x u N'.
* src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
specials of type `p'.
* src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
* src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
* src/devices/grops/ps.cc (ps_printer::special): Ditto.
* src/devices/grotty/tty.cc: Add new enum CU_MODE.
(glyph::order): New method.
(tty_printer::add_char): Use it.
(tty_printer::special): New method.
(tty_printer::end_page): Implement it.
* src/roff/troff/node.h (special_node): Add `no_init_string' member.
* src/roff/troff/node.cc (special_node::special_node): Add parameter
to set `no_init_string'.
(special_node::tprint_start): Use it.
(special_node::same, special_node::copy): Updated.
(special_node::ends_sentence): New method.
(troff_output_file::start_special): Add parameter to include
inititialization of special conditionally.
* src/roff/troff/env.h (environment): New member `underline_spaces'.
* src/roff/troff/env.cc (do_underline_special): New function.
(environment::set_font): Use it.
(do_underline): Use it. This was `underline()'.
(underline): Call `do_underline()'.
(continuous_underline): New function which calls `do_underline()'.
(environment::newline): Use `do_underline_special()'.
(init_env_requests): Updated.
* NEWS, man/troff_out.man: Updated.
* font/devutf8/R.proto: Fix code of 'shc'.
Diffstat (limited to 'man')
-rw-r--r-- | man/groff_out.man | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/man/groff_out.man b/man/groff_out.man index 5e4c9068..ae30f8d4 100644 --- a/man/groff_out.man +++ b/man/groff_out.man @@ -1,7 +1,7 @@ '\" e .\" The above line should force the use of eqn as a preprocessor .ig -Copyright (C) 1989-2000 Free Software Foundation, Inc. +Copyright (C) 1989-2000, 2001 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice @@ -87,6 +87,21 @@ Unlike device-independent troff, it is not necessary for drivers to search special fonts to find a character. .LP The +.B x +device control command has been extended. +.TP +\fBx u \fIn\fR +If +.I n +is\~1, start underlining of spaces. +If +.I n +is\~0, stop underlining of spaces. +This is needed for the +.B cu +request in nroff mode and is ignored otherwise. +.LP +The .B D drawing command has been extended. These extensions will not be used by GNU pic if the |