From owner-freebsd-questions Thu Aug 23 7:19:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from isy.liu.se (isy.liu.se [130.236.48.10]) by hub.freebsd.org (Postfix) with ESMTP id D075C37B408 for ; Thu, 23 Aug 2001 07:19:25 -0700 (PDT) (envelope-from mj@isy.liu.se) Received: from lagrange.isy.liu.se (lagrange.isy.liu.se [130.236.49.127]) by isy.liu.se (8.11.4/8.11.4) with ESMTP id f7NEJOh29158; Thu, 23 Aug 2001 16:19:24 +0200 (MET DST) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 23 Aug 2001 16:19:25 +0200 (CEST) From: Micke Josefsson To: Micke Josefsson Subject: Re: Printing cyrillic chars Cc: freebsd-questions Cc: freebsd-questions , Isaac Mushinsky Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 23-Aug-01 Micke Josefsson wrote: > > On 23-Aug-01 Isaac Mushinsky wrote: >> You need to substitute the postscript fonts with the Russian ones. Download >> the fonts using russian/koi8r-ps in ports if you don't have them yet. >> >> In order to make the printer always print using these fonts, you may want to >> delete the old fonts and edit the aliases file to alias Times->TimesNRCyrMT, >> etc. >> >> However, this is not nice; if you only need to print Russian occasionally, >> run your document through a sed script like this: >> >> >>#!/bin/sh >> sed "s/Times-Roman/TimesNRCyrMT/g; \ >> s/Times-Bold/TimesNRCyrMT-Bold/g;\ >> s/Times-Italic/TimesNRCyrMT-Italic/g; \ >> s/Courier/CourierCyrPS/g;\ >> s/Helvetica/ArialCyrMT/g;" >> ... >> >> use >> >> cat yourfile.ps | the_script | lpr >> >> If you often print russian, you can make a print filter apply the script >> before sending the file to print. >> >> Good luck. > > OK, have done that. Now the pages look nice when in ghostscript but they are > still "encrypted" when printed. I have tried two different printers HP 4500 > and > HP 8500. > > Any tips? Ah! Found it! gs -sDEVICE=ljet4 -dNOPAUSE -sOutputFile=tmp.ps netscape.ps did the trick. However tmp.ps is not viewable in ghostview, but it really does print OK. Thanks. /Micke ---------------------------------- Michael Josefsson, MSEE mj@isy.liu.se This message was sent by XFMail running on FreeBSD 4.3-STABLE ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message