From 3462e5c39305980fec342dea2242aabc8ac4cbc5 Mon Sep 17 00:00:00 2001 From: wlemb Date: Sat, 7 Oct 2000 11:44:37 +0000 Subject: 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. --- NEWS | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 3313e99d..1bf93170 100644 --- a/NEWS +++ b/NEWS @@ -28,6 +28,18 @@ Two new requests `tm1' and `tmc' have been added to improve writing messages to the terminal. `tm1' is similar to `tm' but allows leading whitespace. `tmc' is similar to `tm1' but doesn't emit a final newline. +A new request `dei' (define indirect) has been added. 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). + +It is now possible to save and restore the escape character with two new +requests `ecs' and `ecr'. + +The new escape sequence \B'...' is an analogon to `\A': If the string within +the delimiters is a valid numeric expression, return character `1', and `0' +otherwise. + grops ----- -- cgit v1.2.1