all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Pretty multilingual PostScript printing?
@ 2009-01-18 18:38 cmr.Pent
  2009-01-19 18:32 ` Eli Zaretskii
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: cmr.Pent @ 2009-01-18 18:38 UTC (permalink / raw)
  To: help-gnu-emacs

Hello group!

I'm enjoying Emacs 23.1 under Debian GNU/Linux testing, my locale is
ru_RU.UTF-8, and I use CUPS for printing. My problem is that I can't
get non-latin text printed nicely.

To reproduce:

1) C-h h; the 'Hello' buffer shows up. I see *all* the characters (I
  have the TTF version of unifont installed).

2) M-x ps-print-buffer-faces; the buffer is printed, but every
  non-latin character is replaced with '?'.

I've tried installing BDF fonts, and it helps meaning that at least
cyrillic characters get printed. But the quality of the BDF fonts is
unacceptably bad (because of low resolution it seems) and the printed
text is pain to read.

On the other hand, if the 'Hello' buffer contents are printed via
GEdit, all the characters appear smooth and nice.

I expect Emacs to be at least as good as GEdit ;-) Is the a way to
make Emacs use the installed *vector* fonts for PostScript printing,
like GEdit does?

I'm ready to provide any additional info,
Andrey


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
  2009-01-18 18:38 Pretty multilingual PostScript printing? cmr.Pent
@ 2009-01-19 18:32 ` Eli Zaretskii
       [not found] ` <mailman.5262.1232389966.26697.help-gnu-emacs@gnu.org>
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2009-01-19 18:32 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "cmr.Pent@gmail.com" <cmr.Pent@gmail.com>
> Date: Sun, 18 Jan 2009 10:38:16 -0800 (PST)
> 
> 1) C-h h; the 'Hello' buffer shows up. I see *all* the characters (I
>   have the TTF version of unifont installed).
> 
> 2) M-x ps-print-buffer-faces; the buffer is printed, but every
>   non-latin character is replaced with '?'.
> 
> I've tried installing BDF fonts, and it helps meaning that at least
> cyrillic characters get printed. But the quality of the BDF fonts is
> unacceptably bad (because of low resolution it seems) and the printed
> text is pain to read.

Did you read the commentary in ps-mule.el and tried to follow its
advice?  There are several relevant options to customize that are
described there; perhaps one of them will solve your problem.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
       [not found] ` <mailman.5262.1232389966.26697.help-gnu-emacs@gnu.org>
@ 2009-01-21 18:27   ` cmr.Pent
  2009-01-22  4:04     ` Eli Zaretskii
       [not found]     ` <mailman.5483.1232597084.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 13+ messages in thread
From: cmr.Pent @ 2009-01-21 18:27 UTC (permalink / raw)
  To: help-gnu-emacs

On 19 янв, 21:32, Eli Zaretskii <e...@gnu.org> wrote:
> Did you read the commentary in ps-mule.el and tried to follow its
> advice?  There are several relevant options to customize that are
> described there; perhaps one of them will solve your problem.

No I didn't, but now I've spent some time studying the file; it didn't
help me at all though :-( There are indeed much explanations there but
I don't see how any of it is applicable to my problem. The thing I
fail to see is why all that complications are needed (the GEdit didn't
ask me *anything* about fonts, and has printed the text nicely).

Please note that I'm very bad at elisp and even worse at PostScript,
so I readily believe that there may be no problem at all for more
experienced people. I also do bevieve there may be a reason for such
non-trivial printing configuration system.

I think my problem is quite common. Does anybody in this group have
his/her Emacs printing system configured in such a way that (at least
the most of) the 'Hello' buffer prints nicely, not worse than in
GEdit?

Andrey


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
  2009-01-18 18:38 Pretty multilingual PostScript printing? cmr.Pent
  2009-01-19 18:32 ` Eli Zaretskii
       [not found] ` <mailman.5262.1232389966.26697.help-gnu-emacs@gnu.org>
@ 2009-01-22  2:23 ` Kevin Rodgers
       [not found] ` <mailman.5478.1232590966.26697.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 13+ messages in thread
From: Kevin Rodgers @ 2009-01-22  2:23 UTC (permalink / raw)
  To: help-gnu-emacs

cmr.Pent@gmail.com wrote:
> I expect Emacs to be at least as good as GEdit ;-) Is the a way to
> make Emacs use the installed *vector* fonts for PostScript printing,
> like GEdit does?

I don't know -- how does GEdit do it?

-- 
Kevin Rodgers
Denver, Colorado, USA





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
  2009-01-21 18:27   ` cmr.Pent
@ 2009-01-22  4:04     ` Eli Zaretskii
       [not found]     ` <mailman.5483.1232597084.26697.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2009-01-22  4:04 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "cmr.Pent@gmail.com" <cmr.Pent@gmail.com>
> Date: Wed, 21 Jan 2009 10:27:22 -0800 (PST)
> 
> Please note that I'm very bad at elisp and even worse at PostScript,
> so I readily believe that there may be no problem at all for more
> experienced people.

Can you tell what scripts are supported by your PostScript printer?




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
       [not found]     ` <mailman.5483.1232597084.26697.help-gnu-emacs@gnu.org>
@ 2009-01-22 17:12       ` cmr.Pent
  2009-01-23 11:59         ` Eli Zaretskii
       [not found]         ` <mailman.5572.1232711978.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 13+ messages in thread
From: cmr.Pent @ 2009-01-22 17:12 UTC (permalink / raw)
  To: help-gnu-emacs

On 22 янв, 07:04, Eli Zaretskii <e...@gnu.org> wrote:
> Can you tell what scripts are supported by your PostScript printer?

I'm not sure what do you mean by "scripts"? I've printed the test
example we are discussing on my HP LaserJet 1018 and on a virtual PDF
printer (the latter is only available in GNOME print dialog, not via
CUPS). In both cases, GEdit was able to produce very smooth output.

Andrey


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
       [not found] ` <mailman.5478.1232590966.26697.help-gnu-emacs@gnu.org>
@ 2009-01-22 19:44   ` cmr.Pent
  0 siblings, 0 replies; 13+ messages in thread
From: cmr.Pent @ 2009-01-22 19:44 UTC (permalink / raw)
  To: help-gnu-emacs

On 22 янв, 05:23, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> cmr.P...@gmail.com wrote:
> > I expect Emacs to be at least as good as GEdit ;-) Is the a way to
> > make Emacs use the installed *vector* fonts for PostScript printing,
> > like GEdit does?
>
> I don't know -- how does GEdit do it?
>
> --
> Kevin Rodgers
> Denver, Colorado, USA

I've looked through the GEdit code, and it turns out that it uses
standard GTK+ printing facilities. Emacs is built with GTK+ interface
for quite some time now, so I suppose there should be no architectural
problem in using GTK+ for printing as well. Please correct me if I'm
wrong.

Do you think it is feasible to implement GTK+ printing in Emacs? I
believe it will deliver great user experience improvement, for many
users.

Andrey


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
  2009-01-22 17:12       ` cmr.Pent
@ 2009-01-23 11:59         ` Eli Zaretskii
       [not found]         ` <mailman.5572.1232711978.26697.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2009-01-23 11:59 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "cmr.Pent@gmail.com" <cmr.Pent@gmail.com>
> Date: Thu, 22 Jan 2009 09:12:28 -0800 (PST)
> 
> > Can you tell what scripts are supported by your PostScript printer?
> 
> I'm not sure what do you mean by "scripts"?

A "script" is the way a language is represented in writing, or a
system of characters used to write on or more languages.  Example of
scripts include: Cyrillic, Devanagari, Ethiopic, Greek, Han, Hangul,
Hebrew, and IPA.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
       [not found]         ` <mailman.5572.1232711978.26697.help-gnu-emacs@gnu.org>
@ 2009-01-23 19:13           ` cmr.Pent
  2009-01-23 22:46             ` Eli Zaretskii
       [not found]             ` <mailman.5611.1232750919.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 13+ messages in thread
From: cmr.Pent @ 2009-01-23 19:13 UTC (permalink / raw)
  To: help-gnu-emacs

On 23 янв, 14:59, Eli Zaretskii <e...@gnu.org> wrote:
> > From: "cmr.P...@gmail.com" <cmr.P...@gmail.com>
> > Date: Thu, 22 Jan 2009 09:12:28 -0800 (PST)
>
> > > Can you tell what scripts are supported by your PostScript printer?
>
> > I'm not sure what do you mean by "scripts"?
>
> A "script" is the way a language is represented in writing, or a
> system of characters used to write on or more languages.  Example of
> scripts include: Cyrillic, Devanagari, Ethiopic, Greek, Han, Hangul,
> Hebrew, and IPA.

Maybe I'm missing something, but I think the answer can be found in
the very first message in this thread. I can print symbols from *any*
script found in Emacs 'Hello' buffer via GEdit (I have Unifont
installed). Thus, my printer supports *any* script.

Here are some facts that may be relevant to your question:

1) My HP LaserJet 1018 printer uses foo2zjs driver (http://
foo2zjs.rkkda.com/). This driver utilizes Ghostscript to perform all
of the image processing.

2) Ghostscript can use the character rasterizer provided by the
underlying operating system and window system; specifically, Adobe
Type Manager (ATM) or a TrueType rasterizer under MS Windows, or the
facilities provided by X Windows. (excerpt from the Ghostscript
manual)

Looking forward to your reply,
Andrey


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
  2009-01-23 19:13           ` cmr.Pent
@ 2009-01-23 22:46             ` Eli Zaretskii
       [not found]             ` <mailman.5611.1232750919.26697.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2009-01-23 22:46 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "cmr.Pent@gmail.com" <cmr.Pent@gmail.com>
> Date: Fri, 23 Jan 2009 11:13:15 -0800 (PST)
> 
> Maybe I'm missing something, but I think the answer can be found in
> the very first message in this thread. I can print symbols from *any*
> script found in Emacs 'Hello' buffer via GEdit (I have Unifont
> installed). Thus, my printer supports *any* script.
> 
> Here are some facts that may be relevant to your question:
> 
> 1) My HP LaserJet 1018 printer uses foo2zjs driver (http://
> foo2zjs.rkkda.com/). This driver utilizes Ghostscript to perform all
> of the image processing.
> 
> 2) Ghostscript can use the character rasterizer provided by the
> underlying operating system and window system; specifically, Adobe
> Type Manager (ATM) or a TrueType rasterizer under MS Windows, or the
> facilities provided by X Windows. (excerpt from the Ghostscript
> manual)
> 
> Looking forward to your reply,

I don't know how to solve the problem of *any* script, and the above
information unfortunately doesn't help me help you.  If you can start
with a single script, I can try telling you how to customize variables
in ps-mule.el to have that script printed, assuming your printer has
the necessary fonts built into it.

Alternatively, you could set up ps-print to pipe its output into
Ghostscript by customizing ps-lpr-command and ps-lpr-switches to
invoke Ghostscript.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
       [not found]             ` <mailman.5611.1232750919.26697.help-gnu-emacs@gnu.org>
@ 2009-01-24  6:33               ` cmr.Pent
  2009-01-24  9:55                 ` Eli Zaretskii
       [not found]                 ` <mailman.5629.1232790934.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 13+ messages in thread
From: cmr.Pent @ 2009-01-24  6:33 UTC (permalink / raw)
  To: help-gnu-emacs

On 24 янв, 01:46, Eli Zaretskii <e...@gnu.org> wrote:
> Alternatively, you could set up ps-print to pipe its output into
> Ghostscript by customizing ps-lpr-command and ps-lpr-switches to
> invoke Ghostscript.

This sounds like a more feasible approach. Could you be so kind to
tell me what values of 'ps-lpr-command' and 'ps-lpr-switches' should I
use? If not, any link to the relevant documentation appreciated.

Thanks for your patience,
Andrey


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
  2009-01-24  6:33               ` cmr.Pent
@ 2009-01-24  9:55                 ` Eli Zaretskii
       [not found]                 ` <mailman.5629.1232790934.26697.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2009-01-24  9:55 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "cmr.Pent@gmail.com" <cmr.Pent@gmail.com>
> Date: Fri, 23 Jan 2009 22:33:05 -0800 (PST)
> 
> > Alternatively, you could set up ps-print to pipe its output into
> > Ghostscript by customizing ps-lpr-command and ps-lpr-switches to
> > invoke Ghostscript.
> 
> This sounds like a more feasible approach. Could you be so kind to
> tell me what values of 'ps-lpr-command' and 'ps-lpr-switches' should I
> use? If not, any link to the relevant documentation appreciated.

The Emacs manual includes in the node "Windows Printing" an example of
how to set this up.  That description is Windows-oriented, but I think
you will need only minimal changes to adapt it to your system,
probably just the name and full path to the Ghostscript executable.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Pretty multilingual PostScript printing?
       [not found]                 ` <mailman.5629.1232790934.26697.help-gnu-emacs@gnu.org>
@ 2009-01-24 22:03                   ` cmr.Pent
  0 siblings, 0 replies; 13+ messages in thread
From: cmr.Pent @ 2009-01-24 22:03 UTC (permalink / raw)
  To: help-gnu-emacs

On 24 янв, 12:55, Eli Zaretskii <e...@gnu.org> wrote:
> > From: "cmr.P...@gmail.com" <cmr.P...@gmail.com>
> > Date: Fri, 23 Jan 2009 22:33:05 -0800 (PST)
>
> > > Alternatively, you could set up ps-print to pipe its output into
> > > Ghostscript by customizing ps-lpr-command and ps-lpr-switches to
> > > invoke Ghostscript.
>
> > This sounds like a more feasible approach. Could you be so kind to
> > tell me what values of 'ps-lpr-command' and 'ps-lpr-switches' should I
> > use? If not, any link to the relevant documentation appreciated.
>
> The Emacs manual includes in the node "Windows Printing" an example of
> how to set this up.  That description is Windows-oriented, but I think
> you will need only minimal changes to adapt it to your system,
> probably just the name and full path to the Ghostscript executable.

I've followed your advice, but unfortunately it didn't help. The
problem remains even if I just dump the Emacs output to a ps file via
cat-like 'ps-lpr-command'. So, the problem has nothing to do with the
printer. It seems that GEdit performs the rasterization of the image
on the "client" side, while Emacs always relies on the printer
capabilities.

Well, anyway, thanks for the support. I think I'll be able to survive
without Emacs printing :-) At least, I could live without it
before ;-) Thanks to the Unicode, one can always use some external
application like GEdit for the hardcopy production (well, in case he/
she doesn't need Emacs font-lock). I just hoped that someone already
has a solution.

Good luck,
Andrey


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-01-24 22:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-18 18:38 Pretty multilingual PostScript printing? cmr.Pent
2009-01-19 18:32 ` Eli Zaretskii
     [not found] ` <mailman.5262.1232389966.26697.help-gnu-emacs@gnu.org>
2009-01-21 18:27   ` cmr.Pent
2009-01-22  4:04     ` Eli Zaretskii
     [not found]     ` <mailman.5483.1232597084.26697.help-gnu-emacs@gnu.org>
2009-01-22 17:12       ` cmr.Pent
2009-01-23 11:59         ` Eli Zaretskii
     [not found]         ` <mailman.5572.1232711978.26697.help-gnu-emacs@gnu.org>
2009-01-23 19:13           ` cmr.Pent
2009-01-23 22:46             ` Eli Zaretskii
     [not found]             ` <mailman.5611.1232750919.26697.help-gnu-emacs@gnu.org>
2009-01-24  6:33               ` cmr.Pent
2009-01-24  9:55                 ` Eli Zaretskii
     [not found]                 ` <mailman.5629.1232790934.26697.help-gnu-emacs@gnu.org>
2009-01-24 22:03                   ` cmr.Pent
2009-01-22  2:23 ` Kevin Rodgers
     [not found] ` <mailman.5478.1232590966.26697.help-gnu-emacs@gnu.org>
2009-01-22 19:44   ` cmr.Pent

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.