From owner-freebsd-questions Mon Jan 12 19:27:37 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA21134 for questions-outgoing; Mon, 12 Jan 1998 19:27:37 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from shell6.ba.best.com (jkb@shell6.ba.best.com [206.184.139.137]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA21120 for ; Mon, 12 Jan 1998 19:27:34 -0800 (PST) (envelope-from jkb@best.com) Received: from localhost (jkb@localhost) by shell6.ba.best.com (8.8.8/8.8.BEST) with SMTP id TAA26139; Mon, 12 Jan 1998 19:27:24 -0800 (PST) X-Authentication-Warning: shell6.ba.best.com: jkb owned process doing -bs Date: Mon, 12 Jan 1998 19:27:24 -0800 (PST) From: Jan Koum X-Sender: jkb@shell6.ba.best.com To: Patrick Gardella cc: questions@freebsd.org Subject: Re: ASCII to PS In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Next time you print an ASCII file try: a2ps -1 -a -p -l70 -ns -nu -nL -nH -q works on our printer.. however, I dont' recall I ever tried to print anything that needed line wrap. -- Yan On Mon, 12 Jan 1998, Patrick Gardella wrote: >Greetings once again! > >I need some help on postscript. I am trying to translate ascii into postscript >so that it wraps the line correctly. I've used a2ps and GNU enscript, as well >as textfmt. None of them do it right. > >The postscript always comes out as full justified text. The right edge gets >wrapped wherever the margin is, not at word boundaries. > >Is there some application that I can find to wrap the words to the next line >instead of splitting them in the middle of a word? > >I'll write one myself if needed, but why recreate the wheel? > >(It would vary based on the font used, of course, so it's not so simple as >wrapping at 80 characters or the nearest word break. I'd need to compute the >amount of space the characters would use.) > >Thanks, > >Patrick > > >+-------------------------------------------------------------------+ >|Patrick S. Gardella Director of Web Development | >| The Creative Group 1-800-804-0783 606-858-9054 (fax) | >|-------------------------------------------------------------------| >| http://www.cre8tivegroup.com | >|-------------------------------------------------------------------| >| Patrick@cre8tivegroup.com PGP Key ID 0xEE2D47A9 | >+-------------------------------------------------------------------+ >