diff options
author | wlemb <wlemb> | 2000-10-07 11:44:37 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2000-10-07 11:44:37 +0000 |
commit | 3462e5c39305980fec342dea2242aabc8ac4cbc5 (patch) | |
tree | 67a8be729df9e78b8f08675c2cbce5447840b25b /man | |
parent | c0787c77c7100d97e296fbe8fff2f30d475e71bb (diff) | |
download | groff-3462e5c39305980fec342dea2242aabc8ac4cbc5.tar.gz |
Adding a new escape sequence B'...': If the string between
the delimiters is a valid numeric expression, return the character
`1', and `0' otherwise. This is an analogon to A.
* src/roff/troff/input.cc (do_expr_test): Implement it.
(token::next): Use it.
* src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
* tmac/tmac.trace: Made independent from escape character.
Adding a new request .dei: define indirect. The first and second
parameter of .dei are taken from string registers instead directly;
this very special request is needed to make tmac.trace independent
from the escape character (which might even be disabled).
* src/roff/troff/input.cc (do_define_macro): Implement it.
(define_macro_indirect): New function.
(init_input_requests): Use it.
Adding two requests .ecs and .ecr: Save and restore the escape
character. These two requests are needed to make tmac.trace
independent from the escape character (which might even be
disabled).
* src/roff/troff/input.cc (save_escape_char, restore_escape_char):
Implement it.
(init_input_requests): Use it.
* src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
Diffstat (limited to 'man')
-rw-r--r-- | man/groff.man | 42 |
1 files changed, 37 insertions, 5 deletions
diff --git a/man/groff.man b/man/groff.man index c13f1f7d..09b4f6ea 100644 --- a/man/groff.man +++ b/man/groff.man @@ -1010,6 +1010,21 @@ until .request .end is called. . +.REQ .dei macro +Define or redefine a macro whose name is contained in the string register +.argument macro +until +.request .. +is called. +. +.REQ .dei macro end +Define or redefine a macro indirectly. +.argument macro +and +.argument end +are string registers whose contents are interpolated for the macro name +and the end macro, respectively. +. .REQ .di End current diversion. . @@ -1042,6 +1057,13 @@ Reset escape character to Set escape character to .argument c . . +.REQ .ecs +Save current escape character. +. +.REQ .ecr +Restore escape character saved with +.request .ecs . +. .REQ .el anything Else part for if-else (\c .argument .ie ) @@ -1947,15 +1969,25 @@ Non-interpreted leader character. .ESCq A anything If .argument anything -acceptable as name of a string, macro, diversion, register, -environment or font it is -.number 1 -otherwise -.number 0 . +is acceptable as a name of a string, macro, diversion, register, +environment or font it expands to +.number 1 , +and +.number 0 +otherwise. . .ESCq b abc... Bracket building function. . +.ESCq B anything +If +.argument anything +is acceptable as a valid numeric expression it expands to +.number 1 , +and +.number 0 +otherwise. +. .ESC c Interrupt text processing. . |