From 5d66739b249d811455e368f2eb74af651ba8ffac Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 23 Jan 2015 00:42:00 +0000 Subject: Wonders of roff(7): Integer numbers in numerical expressions can carry scaling units, and some manuals (e.g. in devel/grcs) actually use that, so let's support it. Missing feature reported by naddy@. --- roff.7 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'roff.7') diff --git a/roff.7 b/roff.7 index a5fbe9d4..64a43bcd 100644 --- a/roff.7 +++ b/roff.7 @@ -1,4 +1,4 @@ -.\" $Id: roff.7,v 1.66 2015/01/22 00:09:03 schwarze Exp $ +.\" $Id: roff.7,v 1.67 2015/01/23 00:42:00 schwarze Exp $ .\" .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons .\" Copyright (c) 2010, 2011, 2013, 2014 Ingo Schwarze @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 22 2015 $ +.Dd $Mdocdate: January 23 2015 $ .Dt ROFF 7 .Os .Sh NAME @@ -1715,6 +1715,14 @@ prefixed by an optional sign .Sq + or .Sq - . +Each number may be followed by one optional scaling unit described below +.Sx Scaling Widths . +The following equations hold: +.Bd -literal -offset indent +1i = 6v = 6P = 10m = 10n = 72p = 1000M = 240u = 240 +254c = 100i = 24000u = 24000 +1f = 65536u = 65536 +.Ed .Pp The following binary operators are implemented. Unless otherwise stated, they behave as in the C language: -- cgit v1.2.3-56-ge451