Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site gitpyr.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!gatech!gitpyr!robert From: robert@gitpyr.UUCP (Robert Viduya) Newsgroups: net.unix-wizards,net.text Subject: Re: (more) nroff questions on italics/underscore Message-ID: <345@gitpyr.UUCP> Date: Tue, 13-Nov-84 10:40:02 EST Article-I.D.: gitpyr.345 Posted: Tue Nov 13 10:40:02 1984 Date-Received: Wed, 14-Nov-84 05:11:16 EST References: <925@opus.UUCP> <926@opus.UUCP> <263@hwcs.UUCP> Organization: Georgia Tech, Atlanta Lines: 36 Xref: gatech net.unix-wizards:7473 net.text:240 [] I've been using nroff and working on ways to interface it with a Xerox 9700 laser printer (with bold and italics fonts). I've discovered a few things in being able to differentiate between italicized words and under- lined words. First off, we are running a Pyramid 90x with both SystemV and 4.2BSD. The 4.2 nroff does not overstrike emboldened characters nor does it do anything to differentiate bold characters from normal characters. That led me to use SystemV's nroff, which does overstrike emboldened characters. Further investigation showed that SysV nroff underlined character 'x' with '_^Hx'. It also treated italicized characters the same way. However, using the '-me' macros showed that italicization was done with '_^Hx' (as before) but that word 'xyz' was underlined as 'xyz^H^H^H___'. The 'col' command will translate sequences of 'xyz^H^H^H___' to 'x^H_y^H_z^H_'. Based on this, I was able to write a filter that translates sequences of 'x^Hx' into a bold 'x', '_^Hx' into an italicized 'x' and 'x^H_' into an underlined 'x'. Of course, the output from the filter is specifically for our Xerox laser printer (in fixed pitch fonts only, we're hoping to get ditroff to handle proportional fonts). However, I'm all in favor of the above becoming some kind of standard as the output on a standard printer will be identical, yet it gives people who want to try to interface nroff to a printer with different font capabilities a way to differentiate italicized words from underlined words. Question: Does anyone know why 4.2 nroff does not overstrike characters that are supposed to be emboldened? robert -- Robert Viduya Office of Computing Services Georgia Institute of Technology, Atlanta GA 30332 Phone: (404) 894-4669 ...!{akgua,allegra,amd,hplabs,ihnp4,masscomp,ut-ngp}!gatech!gitpyr!robert ...!{rlgvax,sb1,uf-cgrl,unmvax,ut-sally}!gatech!gitpyr!robert