🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.text
Article #934

Re: (ti)troff question - horizontal motion and drawing arguments

#934
From: Robert Stroud
Date: Tue, 17 Jun 1986 19:34
40 lines
2473 bytes
On the subject of the delimiters used by pic (and tbl) in complex
motion commands, Guy Harris writes:

>Not only that, but you can use control characters as delimiters; I think
>"mm" (and maybe some other macro packages) use ^G (control-G, ASCII BEL,
>'\007') as a delimiter.  Why they chose \(ts, I dunno, unless they were
>afraid that some macro package had usurped ^G, in which chase whey they
>didn't choose ^A or some other control character, I dunno....
>-- 
>	Guy Harris
>	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
>	guy@sun.com (or guy@sun.arpa)

I found out about \(ts when I got "out of range" error messages from
troff caused by apparently bogus tbl output. After looking at the raw
troff commands, it took me ages to work out (a) what \(ts meant! (b) where
it was coming from.

We were using the device independent version of the formatting tools
(ditroff et al) and had written our own device driver for a dot matrix 
printer, missing out most of the greek characters for obvious reasons!

It turns out that if you *don't* have an entry for \(ts in your device
driving table (the -T option), these expressions don't work correctly,
even though the \(ts is being used purely as a delimiter and you have
no intention of ever using it. (Not speaking Greek, I have no idea
when a terminal sigma might be preferred over a mere sigma :-)

I don't know if this is a bug or a feature, but the problem goes away
if you add a dummy entry to your device table saying that the \(ts 
character has zero width.

I thought this was a real Gotcha - you have been warned!!

Robert Stroud,
Computing Laboratory,
University of Newcastle upon Tyne.

ARPA robert%cheviot.newcastle@ucl-cs.ARPA
UUCP ...!ukc!cheviot!robert
Technical Details
Message-ID: <849@cheviot.newcastle.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!husc6!harvard!seismo!mcvax!ukc!cheviot!robert
References: <274@rtech.UUCP> <157@cs.qmc.ac.uk> <4147@sun.uucp>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!husc6!harvard!seismo!mcvax!ukc!cheviot!robert
From: robert@cheviot.newcastle.ac.uk (Robert Stroud)
Newsgroups: net.text,net.unix
Subject: Re: (ti)troff question - horizontal motion and drawing arguments
Message-ID: <849@cheviot.newcastle.ac.uk>
Date: Tue, 17-Jun-86 15:34:00 EDT
Article-I.D.: cheviot.849
Posted: Tue Jun 17 15:34:00 1986
Date-Received: Fri, 20-Jun-86 01:28:52 EDT
References: <274@rtech.UUCP> <157@cs.qmc.ac.uk> <4147@sun.uucp>
Reply-To: robert@cheviot.newcastle.ac.uk (Robert Stroud)
Distribution: net
Organization: U. of Newcastle upon Tyne, U.K.
Lines: 40