summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-02-04 20:54:00 +0000
committerwlemb <wlemb>2001-02-04 20:54:00 +0000
commit59cc1a8224a6f530f1729fe13bca59a99dea6455 (patch)
tree17fe5bf8f9783fe9653b867ff9220977d853bd03 /man
parente0835044631da844a7dc0127b7222eec6e5340f4 (diff)
downloadgroff-59cc1a8224a6f530f1729fe13bca59a99dea6455.tar.gz
A new escape sequence `:', inserting a zero-width break point.
* src/roff/troff/input.h: Adding `ESCAPE_COLON'. * src/roff/troff/input.cc (get_copy, token::next, asciify): Implement it. * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual method. (space_node): Add `was_escape_colon' member. Add `is_escape_colon()' and `asciify()' methods. * src/roff/troff/node.cc (space_node::space_node): Updated. (space_node::asciify): Handle `was_escape_colon'. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it. Handle `~' similar to other comparable requests. * src/roff/troff/input.cc (process_input_stack): Remove now obsolete label. (token::next): Move creation of an unbreakable_space_node to... (token::add_to_node_list): Here. Fix a bug which sometimes prevented hyphenation of words connected with `~' or ` ' (and other escape sequences handled as TOKEN_NODE). This also fixes a hyphenation problem with boxes (after a call to the `unformat' request). * src/roff/troff/env.h (environment::possibly_break_line, environment::hyphenate_line): Introducing `start_here' parameter. * src/roff/troff/env.cc (environment::space_newline, environment::space): Use it. (environment::possibly_break_line, environment::hyphenate_line): Implement it. * src/roff/troff/input.cc (process_input_stack): Use it. * src/roff/troff/node.h (unbreakable_space_node, hmotion_node, space_char_hmotion_node, overstrike_node): Add `get_hyphenation_type()' method. * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify if `unformat_only' is active. Implemented new read-only number register `.linetabs' which returns 1 if in line-tabs mode, 0 otherwise. * src/roff/troff/env.h (environment): Add get_line_tabs() member. * src/roff/troff/env.cc (get_line_tabs): New function. (init_env_requests): Use it.
Diffstat (limited to 'man')
-rw-r--r--man/groff.man5
1 files changed, 5 insertions, 0 deletions
diff --git a/man/groff.man b/man/groff.man
index 540ae831..15332a5a 100644
--- a/man/groff.man
+++ b/man/groff.man
@@ -1968,6 +1968,11 @@ preceding character is a roman character.
Unbreakable space that stretches like a normal inter-word space when a
line is adjusted.
.
+.ESC :
+Inserts a zero-width break point (similar to
+.esc %
+but without a soft hyphen character).
+.
.ESC \& newline
Ignored newline, for continuation lines.
.