From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Penton Newsgroups: gmane.emacs.help Subject: Re: ps-print question Date: Sun, 2 Jan 2011 16:20:54 -0500 Message-ID: <47A0F9E5-9581-4484-99DA-71B1D2E54DF2@arqux.com> References: <9E47A63C-3337-4CF9-AC0E-C91082557375@arqux.com> <97BBE33A-D586-4CFA-BE9C-96C6ABBD22A3@Web.DE> <63E6A495-DFCF-4791-B39A-9B9893228275@Freenet.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/alternative; boundary=Apple-Mail-2-15958818 X-Trace: dough.gmane.org 1294003314 31067 80.91.229.12 (2 Jan 2011 21:21:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Jan 2011 21:21:54 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 02 22:21:49 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZVMz-00043e-OC for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jan 2011 22:21:49 +0100 Original-Received: from localhost ([127.0.0.1]:45836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZVMu-0004Ws-6k for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jan 2011 16:21:36 -0500 Original-Received: from [140.186.70.92] (port=38580 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZVMX-0004W4-MG for help-gnu-emacs@gnu.org; Sun, 02 Jan 2011 16:21:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZVMM-0005K0-Hj for help-gnu-emacs@gnu.org; Sun, 02 Jan 2011 16:21:03 -0500 Original-Received: from smtp.cogeco.net ([216.221.81.25]:45436 helo=fipsb03.cogeco.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZVMM-0005Js-Da for help-gnu-emacs@gnu.org; Sun, 02 Jan 2011 16:21:02 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApEBAJh6IE0Y4iwk/2dsb2JhbAAM31KFSgSEZYYf X-IronPort-AV: E=Sophos;i="4.60,265,1291611600"; d="scan'208,217";a="224248252" Original-Received: from d226-44-36.home.cgocable.net (HELO [10.0.1.5]) ([24.226.44.36]) by fipsb03.cogeco.net with ESMTP; 02 Jan 2011 16:20:56 -0500 In-Reply-To: <63E6A495-DFCF-4791-B39A-9B9893228275@Freenet.DE> X-Mailer: Apple Mail (2.1082) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78069 Archived-At: --Apple-Mail-2-15958818 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Pete: Thanks for sending me some sample postscript files. More developments on my end: The error generated by ps2pdf when converting a file using added = Bitstream fonts as described in an earlier post is caused by the use of = the -dSAFER option being passed to ghostscript by ps2pdf and related = shell scripts. I made a copy of the script ps2pdfwr (which is ultimately = invoked by ps2pdf on my system) and removed the gs command line option = -dSAFER. I also removed the -q command line option so that I could get = verbose output. My version of the ps2pdfwr script reported that it was = loading the Bitstream Vera fonts when converting. Using my altered version of ps2pdfwr, the conversion from postscript = from pdf occurred without reporting any errors. However, the output is = still wrong. In the output from ps-print, I am still getting a right = single quote instead of a left single quote. As far as I can tell, it is = otherwise in the correct Bitstream Vera fond. I suppose the only way to = understand this is to dig around in the postscript file. The left single quote should work. I converted the following postscript = using my altered version of ps2pdfwr, and the left single quote come = through fine: /BitstreamVeraSansMono-Roman findfont 15 scalefont setfont 72 200 moveto (This is in `Bitstream Vera Sans Mono Roman) show The problem must be somewhere in the setup postscript generated by = ps-print. I am not that expert at postscript, so it will not be easy to = figure out. However, in the ps-print generated file, here is the line = that actually prints the text with a left single quote: (This is in `Bitstream Vera Sans Mono Roman) That is, it is identical to my simple example, but when converted to pdf = the ps-print version shows a right single quote in front of the word = Bitstream. That's why I think something in the setup part of the = ps-print postscript must be causing this. - Dave -= --Apple-Mail-2-15958818 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii BitstreamVeraSansMono-Roman = findfont
15 scalefont
setfont
72 200 = moveto
(This is in `Bitstream Vera Sans Mono Roman) = show

The problem must be somewhere in = the setup postscript generated by ps-print. I am not that expert at = postscript, so it will not be easy to figure out. However, in the = ps-print generated file, here is the line that actually prints the text = with a left single quote:

(This is in `Bitstream Vera = Sans Mono Roman)

That is, it is = identical to my simple example, but when converted to pdf the ps-print = version shows a right single quote in front of the word Bitstream. = That's why I think something in the setup part of the ps-print = postscript must be causing this.

- Dave = -
= --Apple-Mail-2-15958818--