Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site opus.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!hao!cires!nbires!opus!rcd From: rcd@opus.UUCP (Dick Dunn) Newsgroups: net.unix-wizards,net.text Subject: Re: (more) nroff questions on italics/underscore Message-ID: <926@opus.UUCP> Date: Tue, 30-Oct-84 02:08:03 EST Article-I.D.: opus.926 Posted: Tue Oct 30 02:08:03 1984 Date-Received: Fri, 2-Nov-84 04:54:31 EST References: <925@opus.UUCP> Organization: NBI,Inc, Boulder CO Lines: 39 Xref: godot net.unix-wizards:3414 net.text:165 (Anyone have experience with variable-width characters in nroff--a "poor man's" proportional font?) The parent article is mine, asking why nroff uses literal '_' for underscoring for the underlined font. I actually have a slightly larger problem here - not only does it use the literal character, but it assumes that it has width t.Char (the value of "Char" in the header part of the driving table). This has confounded my efforts to make any sort of non- uniform character width, since the underlining is immediately thrown off. [Example: Suppose I try to set up for a 12-pitch (NOT point) font--I would set Char to INCH/12. However, say I wanted some characters to be half-width (for the sake of illustration)--I would then set Char to INCH/24 and set the widths of full-width characters to 2. However, the underscoring is wired in to assume that _ and \b have width Char, so underscoring a full- width character produces __\b\b before the character.] I'm trying to figure out if I'm missing something in the way the tables work, or if it's just a code fix that I ought to make. Ideas? > I recently discovered that nroff underscores text (as when it's doing its > "italic" font) with '_' followed by \b followed by the character. The > thing that seems odd is that it uses, literally, '_'. It DOESN'T use the > character given for '_' in the mapping table (in /usr/lib/term/tabxyzzy), > nor does it use \(ru (rule) or \(ul (underrule)--the char constant is > hardwired into the code. > > (This is on a 4.2 system, to the extent that might matter.) > > Any idea why it's done this way? In particular, any idea whether it was > intentional or just lazy? > > -- > Dick Dunn {hao,ucbvax,allegra}!nbires!rcd (303)444-5710 x3086 > ...Simpler is better. *** REPLACE THIS LINE WITH YOUR MESSAGE *** -- Dick Dunn {hao,ucbvax,allegra}!nbires!rcd (303)444-5710 x3086 ...Simpler is better.