From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Print to PDF? Configure fonts used when printing? Date: Fri, 7 Oct 2005 01:35:02 +0200 Message-ID: <7a36a24dfa3ae0c1baf54833c0d80453@Web.DE> References: <049C03ED-EFE8-4B00-8072-177CE759D951@gmail.com> <7f4cc4751a2de252e7c0b96996f3d672@Web.DE> <48DB080E-6790-4302-8124-4E343FEC53B5@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1128641821 9752 80.91.229.2 (6 Oct 2005 23:37:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2005 23:37:01 +0000 (UTC) Cc: Emacs help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 01:36:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENfH7-0005es-J4 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 01:35:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENfH6-0005CQ-Tx for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Oct 2005 19:35:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENfGX-0005CE-Pm for help-gnu-emacs@gnu.org; Thu, 06 Oct 2005 19:35:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENfGW-0005Bm-52 for Help-gnu-emacs@gnu.org; Thu, 06 Oct 2005 19:35:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENfGW-0005Bj-0A for Help-gnu-emacs@gnu.org; Thu, 06 Oct 2005 19:35:08 -0400 Original-Received: from [217.72.192.226] (helo=smtp08.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ENfGW-00018Q-28 for Help-gnu-emacs@gnu.org; Thu, 06 Oct 2005 19:35:08 -0400 Original-Received: from [84.245.189.165] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #317) id 1ENfGT-0002Lx-00; Fri, 07 Oct 2005 01:35:05 +0200 In-Reply-To: <48DB080E-6790-4302-8124-4E343FEC53B5@gmail.com> Original-To: David Reitter X-Mailer: Apple Mail (2.623) X-Sender: Peter_Dyballa@web.de 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:30007 Archived-At: Am 07.10.2005 um 00:11 schrieb David Reitter: > The problem with a2pdf as I see it is that I won't get syntax=20 > highlighting from Emacs. I mean, there's really no point in offering a=20= > print function if it doesn't relate to what's shown on the screen,=20 > because otherwise one could just fire up Textedit or whatever and=20 > copy&paste the buffer over. > Yes, that's true! My PostScript printer is b&w. On Monday, we had a holiday, I experimented with a2ps. Its output is=20 *often* Apple compliant, meaning it can be converted to PDF with=20 pstopdf. The problems are with the ISO Latin-{2,3,4,5,6,9,10}=20 encodings. The Slavic ones can't be converted because of the a2ps=20 internal use of the ogonkify engine. For the latter encodings a2ps does=20= not seem to understand that many 8 bit characters are correct and=20 printable ... GNU enscript and a2ps are two utilities that convert text to PostScript=20= with syntax highlighting. Their developers are not easily accessible,=20 and their products are more kind of a workaround than a useful utility=20= when your printer has the =80 built-in. I hope that in a2ps is a means = to=20 switch off ogonkify! Then it would be worth ... Beside Perl there could be too a programmatic solution based on C and=20 PDFlib. http://www.inf.enst.fr/~demaille/a2ps/ http://directory.fsf.org/GNU/enscript.html http://www.pdflib.com/products/pdflib/index.html -- Mit friedvollen Gr=FC=DFen Pete There is no national science just as there is no national multiplication table; what is national is no longer science. -- Anton Checov