From: "Eli Zaretskii" <eliz@is.elta.co.il>
Cc: handa@etl.go.jp, vinicius@cpqd.com.br
Subject: Print eight-bit-* characters with ps-print
Date: Sun, 12 May 2002 19:31:42 +0300 [thread overview]
Message-ID: <7263-Sun12May2002193141+0300-eliz@is.elta.co.il> (raw)
I use ps-print a lot, and it annoys me that it whines about
eight-bit-control and eight-bit-graphic characters not having fonts to
print them with. (These charsets are Emacs's invention, so there's no
chance anyone will ever have a font for them.)
So I came up with the change below. It doesn't really print the same
glyphs you see on your screen--that's impossible without knowing what
fonts are available to your printer or PostScript interpreter. But at
least the whining is gone, and for many cases, such as those \222
characters and Latin-1 email messages sent as ``charset=US-ASCII'', it
does DTRT.
Opinions?
(Btw, it looks like iso-safe can safely encode eight-bit-* characters.
If that's true, I think we should update its doc string. Handa-san,
can you please comment on this?)
2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
* ps-mule.el (ps-mule-font-info-database-ps-eight-bit): New defconst.
(ps-mule-font-info-database-ps-bdf): Print eight-bit-* characters
through ps-mule-font-info-database-ps-eight-bit.
*** lisp/ps-mule.e~1 Sun May 5 09:58:10 2002
--- lisp/ps-mule.el Sun May 12 13:34:00 2002
***************
*** 439,447 ****
See also `ps-mule-font-info-database-ps-bdf'.")
(defconst ps-mule-font-info-database-ps-bdf
! (cons (car ps-mule-font-info-database-latin)
! (cdr (cdr ps-mule-font-info-database-bdf)))
"Sample setting of the `ps-mule-font-info-database' to use BDF fonts.
Current default value list for BDF fonts is included in `intlfonts-1.2'
--- 439,456 ----
See also `ps-mule-font-info-database-ps-bdf'.")
+ (defconst ps-mule-font-info-database-ps-eight-bit
+ '((eight-bit-control
+ (normal nil nil iso-safe))
+ (eight-bit-graphic
+ (normal nil nil iso-safe)))
+ "Sample setting of `ps-mule-font-info-database' for random 8-bit bytes.")
+
(defconst ps-mule-font-info-database-ps-bdf
! (list (car ps-mule-font-info-database-latin)
! (car (cdr (cdr ps-mule-font-info-database-bdf)))
! (car ps-mule-font-info-database-ps-eight-bit)
! (car (cdr ps-mule-font-info-database-ps-eight-bit)))
"Sample setting of the `ps-mule-font-info-database' to use BDF fonts.
Current default value list for BDF fonts is included in `intlfonts-1.2'
next reply other threads:[~2002-05-12 16:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-12 16:31 Eli Zaretskii [this message]
2002-05-13 14:19 ` Print eight-bit-* characters with ps-print Richard Stallman
2002-05-13 14:19 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2002-05-13 6:23 Kenichi Handa
2002-05-17 14:21 ` Eli Zaretskii
2002-05-20 0:32 Kenichi Handa
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7263-Sun12May2002193141+0300-eliz@is.elta.co.il \
--to=eliz@is.elta.co.il \
--cc=handa@etl.go.jp \
--cc=vinicius@cpqd.com.br \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.