From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: PostScript printing Latin-N (with N != 1) (was: Printing from WindowXP version of emacs) Date: Tue, 10 Jan 2006 18:37:54 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <534d19de0601031634o49dfd53dl7d701ff6512900f9@mail.gmail.com> <6FC795CC-C015-4A12-81DF-15E01A9E9EDA@Web.DE> <534d19de0601041756x783e8094v1f0397efaa7a6662@mail.gmail.com> <9610A538-831B-4CBD-97D3-93FDC4025A51@Web.DE> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1136918093 5408 80.91.229.2 (10 Jan 2006 18:34:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2006 18:34:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 10 19:34:45 2006 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 1EwOKK-00068p-1b for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jan 2006 19:34:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwOMJ-0001Rv-Bz for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jan 2006 13:36:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EwNn8-0005EJ-Ft for help-gnu-emacs@gnu.org; Tue, 10 Jan 2006 13:00:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EwNn6-0005Cz-2l for help-gnu-emacs@gnu.org; Tue, 10 Jan 2006 13:00:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwNn5-0005CY-GJ for help-gnu-emacs@gnu.org; Tue, 10 Jan 2006 13:00:15 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EwNpZ-0005L2-NM for help-gnu-emacs@gnu.org; Tue, 10 Jan 2006 13:02:50 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EwNkn-00056H-HJ for help-gnu-emacs@gnu.org; Tue, 10 Jan 2006 18:57:56 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2006 18:57:53 +0100 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2006 18:57:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-To: help-gnu-emacs@gnu.org Original-Lines: 137 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 1; h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm; %Od 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:32576 Archived-At: On Fri, Jan 06 2006, Eli Zaretskii wrote: > Your message to which I replied made it sound like Emacs PostScript > printing is broken for anything but Latin-1. Which is clearly not > true. All one needs is download and install the GNU Intlfonts > package and customize a few variables as documented in ps-mule.el. > In addition to BDF fonts, there are Type1 and TrueType fonts in that > package. I tried to setup printing from Emacs for buffers with the Euro sign (¤) several times (see e.g. , ), but I failed. Following you suggestion, now I tried: --8<---------------cut here---------------start------------->8--- (require 'ps-mule) (setq ;; Pick one: ps-multibyte-buffer 'bdf-font ;; ps-multibyte-buffer 'bdf-font-except-latin bdf-directory-list '("/usr/share/fonts/bdf")) (setq rs-tmp "¤uro, Umläüté, ... ÄÖÜ äöü ß ¡¿Ññ") (ps-print-buffer-with-faces "/tmp/ps-mule-bdf.ps") ;; Local Variables: ;; coding: iso-8859-15 ;; End: --8<---------------cut here---------------end--------------->8--- /usr/share/fonts/bdf$ rpm -qfi . Name : intlfonts-bdf [...] Version : 1.2.1 [...] URL : ftp://ftp.gnu.org/gnu/intlfonts/ Summary : Fonts from the GNU Intlfonts Package in BDF Format Description : Fonts from the GNU intlfonts package in the BDF format. These fonts are useful for printing exotic languages such as Thai, Tibetan, Vietnamese, Arabic, and more from within Emacs. [...] /usr/share/fonts/bdf$ ls thai24.bdf grk24-etl.bdf gulim24.bdf ethio24f-uni.bdf lt5-24-etl.bdf cyr24-etl.bdf gb24st.bdf cns6-40.bdf lt4-24-etl.bdf 12x24rk.bdf cns2-40.bdf cns5-40.bdf lt3-24-etl.bdf visc24-etl.bdf cns1-40.bdf cns4-40.bdf lt2-24-etl.bdf taipei24.bdf arab24-2-etl.bdf cns3-40.bdf lt1-24-etl.bdf sish24-etl.bdf arab24-1-etl.bdf ind24-mule.bdf lt1-16i-etl.bdf lao24-mule.bdf arab24-0-etl.bdf cns7-40.bdf lt1-16bi-etl.bdf jksp40.bdf tib24-mule.bdf fonts.cache-1 lt1-16b-etl.bdf jiskan24.bdf tib1c24-mule.bdf heb24-etl.bdf ipa24-etl.bdf ind1c24-mule.bdf ~$ emacs-cvs -Q /tmp/print-test.el [ emacs-cvs is thee CVS trunk of today. ] `M-x eval-buffer RET' gives "Font for some characters not found, continue anyway? (y or n) " and the following warning buffer: ,---- | These characters in the buffer can't be printed: | ¤ | Click them to jump to the buffer position, | or C-u C-x = will give information about them. `---- `C-u C-x =' says: character: ¤ (3876, #o7444, #xf24, U+20AC) charset: latin-iso8859-15 (The same with `ps-multibyte-buffer' to 'bdf-font or 'bdf-font-except-latin) When setting `ps-multibyte-buffer' to 'bdf-font-except-latin, I get a hollow square instead of the ¤ in the PS file. When setting `ps-multibyte-buffer' to 'bdf-font, the gs can't display the PS file: ~$ gs /tmp/ps-mule-bdf.ps ESP Ghostscript 7.07 (2003-07-12) Copyright 2003 artofcode LLC and Easy Software Products, all rights reserved. This software comes with NO WARRANTY: see the file COPYING for details. Loading NimbusMonL-Regu font from /usr/share/ghostscript/fonts/n022003l.pfb... 2767592 1340734 1713912 416094 0 done. Loading NimbusSanL-Bold font from /usr/share/ghostscript/fonts/n019004l.pfb... 2924672 1472136 1829848 515847 0 done. Loading NimbusSanL-Regu font from /usr/share/ghostscript/fonts/n019003l.pfb... 3032232 1519010 1805088 437391 0 done. Loading NimbusRomNo9L-ReguItal font from /usr/share/ghostscript/fonts/n021023l.pfb... 3196080 1687052 1829848 452324 0 done. Loading NimbusMonL-Bold font from /usr/share/ghostscript/fonts/n022004l.pfb... 3377920 1853484 1854608 450687 0 done. Loading NimbusMonL-ReguObli font from /usr/share/ghostscript/fonts/n022023l.pfb... 3535000 1998269 1854608 452887 0 done. Loading NimbusMonL-BoldObli font from /usr/share/ghostscript/fonts/n022024l.pfb... 3716840 2167266 1854608 463469 0 done. Unrecoverable error: typecheck in aload Operand stack: SpaceWidth --nostringval-- Unexpected interpreter error -20. Error object: (f80)op(560:aload)0x48e9e0 Operand stack at 0xeeb708: 0xed44c8: 0x0d name --S------ 0x1353 0x0102ca98 = SpaceWidth 0xed44d8: 0x0e null --F------ 0x00ea 0x00000001 Execution stack at 0xeeb6a0: 0xed7798: 0x0f oper --F---e-- 0x0000 0x00483040 = %interp_exit 0xed77a8: 0x0d name --S---e-- 0x0302 0x00f34258 = .runexec2 0xed77b8: 0x03 file --G-rx--- 0x0001 0x0109cdb8 0xed77c8: 0x05 mpry --G-rxe-- 0x0006 0x00f3af32 0xed77d8: 0x0e null --F---e-- 0x0003 0x0048f040 0xed77e8: 0x0e null --F------ 0x00ea 0x00000001 0xed77f8: 0x0b int --F------ 0x0000 0x00000002 = 2 0xed7808: 0x0f oper --F---e-- 0x0000 0x0048efe0 = %stopped_push 0xed7818: 0x03 file --G-rxe-- 0x0001 0x0109cdb8 0xed7828: 0x05 mpry --G-rxe-- 0x0002 0x00f3bc08 0xed7838: 0x06 spry --G-rxe-- 0x0002 0x00f3bbaa 0xed7848: 0x04 arry --L-rxe-- 0x0004 0x010a8978 0xed7858: 0x04 arry --L-rxe-- 0x000a 0x010a8828 0xed7868: 0x04 arry --L-rxe-- 0x0004 0x010a84a8 0xed7878: 0x04 arry --L-rxe-- 0x0003 0x010a82c8 0xed7888: 0x05 mpry --G-rxe-- 0x0039 0x00f3c352 Dictionary stack at 0xeeb608: 0xeeb0d8: 0x02 dict --Gwrx--- 0x0000 0x00eb5ec8 0xeeb0e8: 0x02 dict --Gwrx--- 0x0000 0x00f5e9e8 0xeeb0f8: 0x02 dict --Lwrx--- 0x0000 0x00ecf3a8 0xeeb108: 0x02 dict --Gwrx--- 0x0000 0x00eb5ec8 0xeeb118: 0x02 dict --Lwrx--- 0x0000 0x00ed06c8 0xeeb128: 0x02 dict --Lwrx--- 0x0000 0x010a89d8 Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/