From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Wed, 21 Dec 2005 23:48:24 +0100 Message-ID: <43A9DBB8.3010204@student.lu.se> References: <1134660719.186074.250590@z14g2000cwz.googlegroups.com> <43A8842E.5090204@student.lu.se> <43A908F9.1070304@student.lu.se> <43A9B6D5.9010205@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135205462 5815 80.91.229.2 (21 Dec 2005 22:51:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2005 22:51:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 21 23:50:57 2005 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EpCnJ-00031Y-C7 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2005 23:50:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpCoH-0003qd-DJ for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2005 17:51:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EpCm1-0002lb-8b for help-gnu-emacs@gnu.org; Wed, 21 Dec 2005 17:49:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EpCm0-0002kO-Ef for help-gnu-emacs@gnu.org; Wed, 21 Dec 2005 17:49:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpCm0-0002kD-7o for help-gnu-emacs@gnu.org; Wed, 21 Dec 2005 17:49:28 -0500 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EpCpM-0004lf-AG; Wed, 21 Dec 2005 17:52:56 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn2.hy.skanova.net (7.2.069.1) id 43A9215400042816; Wed, 21 Dec 2005 23:48:25 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Eli Zaretskii In-Reply-To: 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:32149 Archived-At: Eli Zaretskii wrote: >>Actually the printer processor first calls GDI which produces EMF >>that is send to the printer driver. >> >> > >I don;t think we should worry about what the printer processor does: >it's part of the OS. What matters is what it accepts, not what it >does with that. > > I think we need all information we got to get the pieces together here. Unfortunately we have to go into a guessing game since none of us seem to be able to find all information we need here. > > >>So this can print text (only ASCII actually if I remember >>correctly). >> >> > >You probably mean ANSI (which includes 8-bit non-ASCII characters in >addition to ASCII), but I think it's more general than that. Why >would the mechanism I described be limited to ANSI text? Why cannot >it work for Unicode as well? > > No. I mean ASCII. Please look at the description of how the Text type is handled. That is the description I gave above where the GDI converts to EMF. In this process only ASCII is accepted according to the manuals at MS. > > >>That should mean that the above "copy" should work. >> >> > >I don't see how these two issues are related; perhaps I'm missing >something. If they are NOT related, then the fact that COPY doesn't >work and the inner workings of the Windows printing mechanism are two >almost unrelated subjects, and we are wasting our time talking about >the latter when we are interested in the former. > > I am not sure they are unrelated. It might have to do with what the process above accepts, but I am not at all sure. I am just trying to keep all doors open at the moment. It make things a bit more complicated of course, but we are looking for some facts we have not found yet. We may well be in a part of the system that sometimes work, but for reasons we do not know yet. I tend to work this way in cases like this. Please do not assume that I am not aware that they may not be related. I am. > > >>However I do not remember that I saw anything about exactly when this >>works. Do you have an exact link where you found this? >> >> > >Here, for example: > > Sorry, I think you did not send that. > > >>Last time I looked into this I stopped about here because I thought it >>was not worth the trouble. As far as I can see it will only handle ASCII >>text when it works. I have seen very little that makes me believe that >>GDI can handle PostScript and convert that to EMF in the above scenario. >> >> > >There's no need to convert PostScript to EMF, since a PostScript >printer will be happy accepting the PostScript program as plain text. > > What do you mean? How can you assume that it is a PostScript printer? I have not been talking about any such. And if it where, how can you assume that it is in a state where it accepts PostScript? That depends on the behaviour of the specific printer driver. I do not believe we can assume anything about that - except that it will behave (reasonably) well if we are using the MS Windows printing interface in the way it is recommended in the documentation.