From ef0c12c03523dc1118e1aedf95ea477327b2c1cd Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 25 Jan 2011 01:12:02 +0000 Subject: Ignore .ns (no-space mode), .ps (change point size), .ta (tab control) for now. All of these just cause a bit too much or too little whitespace, but no serious formatting problems. Triggered by reports from brad@. --- roff.7 | 14 ++++++++++++++ roff.c | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/roff.7 b/roff.7 index 2b323442..0cea7f84 100644 --- a/roff.7 +++ b/roff.7 @@ -537,6 +537,16 @@ section with the .Cm \&Sh macro will reset this register. .El +.Ss \&ns +Turn on no-space mode. +This line-scoped request is intended to take no arguments. +Currently, it is ignored including its arguments, +and the number of arguments is not checked. +.Ss \&ps +Change point size. +This line-scoped request is intended to take one numerical argument. +Currently, it is ignored including its arguments, +and the number of arguments is not checked. .Ss \&so Include a source file. Its syntax is as follows: @@ -554,6 +564,10 @@ only accepts relative paths not containing the strings .Qq ../ and .Qq /.. . +.Ss \&ta +Set tab stops. +This line-scoped request can take an arbitrary number of arguments. +Currently, it is ignored including its arguments. .Ss \&tr Output character translation. This request is intended to have one argument, diff --git a/roff.c b/roff.c index 73365293..b885a5f2 100644 --- a/roff.c +++ b/roff.c @@ -55,8 +55,11 @@ enum rofft { ROFF_ne, ROFF_nh, ROFF_nr, + ROFF_ns, + ROFF_ps, ROFF_rm, ROFF_so, + ROFF_ta, ROFF_tr, ROFF_TS, ROFF_TE, @@ -177,8 +180,11 @@ static struct roffmac roffs[ROFF_MAX] = { { "ne", roff_line_ignore, NULL, NULL, 0, NULL }, { "nh", roff_line_ignore, NULL, NULL, 0, NULL }, { "nr", roff_nr, NULL, NULL, 0, NULL }, + { "ns", roff_line_ignore, NULL, NULL, 0, NULL }, + { "ps", roff_line_ignore, NULL, NULL, 0, NULL }, { "rm", roff_rm, NULL, NULL, 0, NULL }, { "so", roff_so, NULL, NULL, 0, NULL }, + { "ta", roff_line_ignore, NULL, NULL, 0, NULL }, { "tr", roff_line_ignore, NULL, NULL, 0, NULL }, { "TS", roff_TS, NULL, NULL, 0, NULL }, { "TE", roff_TE, NULL, NULL, 0, NULL }, -- cgit