unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: PostScript printing Latin-N (with N != 1) (was: Printing from WindowXP version of emacs)
Date: Tue, 10 Jan 2006 18:37:54 +0100	[thread overview]
Message-ID: <v9psn0rnkd.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: uk6ddiwh4.fsf@gnu.org

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.

\f
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

  parent reply	other threads:[~2006-01-10 17:37 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-04  0:34 Printing from WindowXP version of emacs BRUCE INGALLS
2006-01-04 10:00 ` Peter Dyballa
2006-01-05  1:56   ` BRUCE INGALLS
2006-01-05 13:01     ` Peter Dyballa
2006-01-05 15:41       ` Lennart Borgman
2006-01-05 21:17         ` Peter Dyballa
2006-01-06  8:39           ` Eli Zaretskii
2006-01-05 20:44       ` Eli Zaretskii
2006-01-05 21:18         ` Peter Dyballa
2006-01-06  8:36           ` Eli Zaretskii
2006-01-06 11:59             ` Peter Dyballa
2006-01-06 14:07               ` Eli Zaretskii
2006-01-10 17:37             ` Reiner Steib [this message]
2006-01-10 19:35               ` PostScript printing Latin-N (with N != 1) (was: Printing from WindowXP version of emacs) Eli Zaretskii
2006-01-11 15:55                 ` PostScript printing Latin-N (with N != 1) Reiner Steib
2006-01-11 19:59                   ` Eli Zaretskii
2006-01-12 20:35                     ` Reiner Steib
2006-01-13  8:10                       ` Eli Zaretskii
2006-01-13 17:09                         ` Reiner Steib
2006-01-11 21:55                   ` Peter Dyballa
2006-01-05 16:05     ` translation software (was: Printing from WindowXP version of emacs) Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9psn0rnkd.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).