From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <25a9339a6f82a1e6cd5451d91a9e9175@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] troff -man prints poorly Date: Tue, 26 Feb 2008 15:19:49 -0500 From: Sape Mullender In-Reply-To: <20080226194652.GA2267@shodan.homeunix.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ncariywjchkssadhknjpaezzov" Topicbox-Message-UUID: 62a2a4a2-ead3-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-ncariywjchkssadhknjpaezzov Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit /sys/lib/tmac.an (troff -man) loads the LucidaSans fonts: .fp 1 R LucidaSans .fp 2 I LucidaSansI .fp 3 B LucidaSansB .fp 5 L LucidaCW If you don't have those, some other font is substituted and that'll make your output look ugly. (/sys/lib/tmac.s (troff -ms) doesn't load fonts (defaults to Times roman) Sape --upas-ncariywjchkssadhknjpaezzov Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Tue Feb 26 14:48:29 EST 2008 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id AA4551671B for <9fans-local@plan9.bell-labs.com>; Tue, 26 Feb 2008 14:48:10 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 51F6D1590A for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 14:47:04 -0500 (EST) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26547-01-52 for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 14:47:00 -0500 (EST) Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 1529512E1B for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 14:47:00 -0500 (EST) Received: from mail-in-12-z2.arcor-online.net (mail-in-12-z2.arcor-online.net [151.189.8.29]) by mail-in-09.arcor-online.net (Postfix) with ESMTP id A336D17B437 for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 20:46:54 +0100 (CET) Received: from mail-in-10.arcor-online.net (mail-in-10.arcor-online.net [151.189.21.50]) by mail-in-12-z2.arcor-online.net (Postfix) with ESMTP id 90DDB279452 for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 20:46:54 +0100 (CET) Received: from shodan.homeunix.net (dslb-088-070-229-021.pools.arcor-ip.net [88.70.229.21]) by mail-in-10.arcor-online.net (Postfix) with ESMTP id 59D582AD568 for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 20:46:53 +0100 (CET) Received: from shodan.homeunix.net (localhost [127.0.0.1]) by shodan.homeunix.net (8.14.2/8.14.2) with ESMTP id m1QJkqb4006857 for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 20:46:52 +0100 (CET) (envelope-from mn@shodan.anadrom.net) Received: (from mn@localhost) by shodan.homeunix.net (8.14.2/8.14.2/Submit) id m1QJkqas006856 for 9fans@cse.psu.edu; Tue, 26 Feb 2008 20:46:52 +0100 (CET) (envelope-from mn) Date: Tue, 26 Feb 2008 20:46:52 +0100 From: Martin Neubauer To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] troff -man prints poorly Message-ID: <20080226194652.GA2267@shodan.homeunix.net> References: <0497b4634bc7e790a2fd0adf29263215@csplan9.rit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0497b4634bc7e790a2fd0adf29263215@csplan9.rit.edu> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD/6.3-STABLE (i386) X-Uptime: 8:41pm up 9:50, 2 users, load averages: 0,23 0,19 0,17 X-Virus-Scanned: ClamAV 0.92.1/6004/Tue Feb 26 20:08:16 2008 on mail-in-10.arcor-online.net X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+9fans-local=plan9.bell-labs.com@cse.psu.edu Errors-To: 9fans-bounces+9fans-local=plan9.bell-labs.com@cse.psu.edu The problem most likely is the missing font informations. If you just use ``dpost -f'' (or the equivalent aux/download ... mentioned earlier) you should get just what you want. The reason the page display looks good is that you have access to the fonts as long as you don't leak the postscript outside a Plan 9 system. Martin * john@csplan9.rit.edu (john@csplan9.rit.edu) wrote: > I've been writing a man page and wanted to see how it looks > when formatted with troff and printed, so I tried: > troff -man | dpost | lp > only to find that the printout was extremely ugly. Words seem > to have run together in some very strange ways; if I had a scanner > handy I could show what I mean. Anyway, the same thing happens > when I do: > troff -man /sys/man/1/cat | dpost | lp > but not when I do: > troff -ms /sys/doc/asm.ms | dpost | lp > > Am I missing something simple and fundamental, or is troff/dpost > just broken? > > > John --upas-ncariywjchkssadhknjpaezzov--