help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PostScript printing Latin-N (with N != 1) (was: Printing from WindowXP v


From: Reiner Steib
Subject: PostScript printing Latin-N (with N != 1) (was: Printing from WindowXP version of emacs)
Date: Tue, 10 Jan 2006 18:37:54 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

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. <http://article.gmane.org/gmane.emacs.pretest.bugs/9536>,
<http://thread.gmane.org/gmane.emacs.pretest.bugs/9433>),
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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]