all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: grischka <grishka@gmx.de>
To: David De La Harpe Golden <david@harpegolden.net>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Printing
Date: Wed, 01 Apr 2009 22:51:42 +0200	[thread overview]
Message-ID: <49D3D3DE.1020901@gmx.de> (raw)
In-Reply-To: <49D3B88A.4000809@harpegolden.net>

Well, I agree with most you wrote.

Just, if BMP is raw graphical data then Postscript isn't much more than
a sophisticated compression method to encode it.

With higher data capacities nowadays such compressions become more or
less obsolete, also because at the same time accurate WYSIWYG becomes
more important.

So my guess is that anyway the "Postcript experts" are a dying out
species and once they have gone nobody will want to fix that part of
the "toolkit onto itself" in question here.  Admittedly, whether this
happens sooner or later may vary depending on the OS.

--- grischka

David De La Harpe Golden wrote:
> 
> 
>> If that were so then only postscript experts would be able to teach
>> their application to print something.
>>
> 
> Application developers use toolkits, toolkit developers target the 
> printing system.  /Except/ on windows, that printing subsystem tends to 
> involve postscript:  A toolkit, like gtk+ with cairo, draws vectors to a 
> postscript document [1] instead of rasterising (or sending trapezoids 
> (xrandr) or general polys (opengl) to the display driver in the modern 
> era) to the screen when it wants to print, then sends that postscript 
> document to the printing daemon which does whatever is necessary to 
> print it (for cheap printers, maybe rasterising it fully to 
> device-specific bitmap data with ghostscript, for postscript printers, 
> maybe munging it a bit to the postscript level the printer wants and 
> passing it on).  i.e. a hypothetical "pure gtk+ stack" emacs at the 
> application level  might well use gtk+ and cairo for both screen display 
> and printing and abstract over the individual platform and indeed screen 
> vs. print differences, but cairo is still probably just going to be 
> drawing to postscript underneath for printing purposes on free or even 
> nonfree but unixy platforms.
> 
> Since emacs is currently a "toolkit unto itself" for the most part, as 
> Stefan has already pointed out, it kind of makes sense for it to 
> generate its own postscript.  Though maybe just saving out and 
> "enscript"ing text files might currently work about as well...
> 
> On windows, the toolkit uses win32 drawing commands on a printer device 
> context [2] instead of postscript drawing on a postscript document. 
> Typically they might internally rasterise to a high-res DIB (.bmp) then 
> printed with basically just one such win32 drawing command consisting of 
> "draw this enormous .bmp please".
> 
> So, if you squint *a lot*, .bmp in the windows printing world is a 
> *little* like .ps in the nonwindows printing world.  Maybe windows 
> people might be conceptualising .ps as device-specific thing that things 
> are printed _to_ (and it is that _too_ I guess), but it is /also/ a 
> quasistandard intermediate format for printing in the relevant OS apis 
> on nonwindows.
> 
> Mind you, PDF would work just as well or better than postscript for that 
> purpose, but the current de-facto standard is for OSes to expose an 
> interface that accepts postscript documents for printing. Windows is the 
> only vaguely relevant one that _doesn't_, pretty much, and it's only a 
> ghostscript installation away anyway, it provides mswinpr2 to rasterise
> postscript to .bmps sent to native windows printers (which may then of 
> course inefficiently convert them back to postscript to send  to native 
> postscript printers, but anyway...)
> 
> 
> 
> [1] http://cairographics.org/manual/cairo-ps-surface.html
> [2] http://cairographics.org/manual/cairo-win32-surface.html
> 
> 
> 
> 
> 
> 
> 
> 
> 









  parent reply	other threads:[~2009-04-01 20:51 UTC|newest]

Thread overview: 119+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-01 17:22 Printing grischka
2009-04-01 18:55 ` Printing David De La Harpe Golden
2009-04-01 18:58   ` Printing David De La Harpe Golden
2009-04-01 20:51   ` grischka [this message]
2009-04-01 21:19   ` Printing Lennart Borgman
2009-04-02  0:09   ` Printing David De La Harpe Golden
2009-04-01 23:32 ` Printing Stefan Monnier
2009-04-02  2:33   ` Printing grischka
2009-04-02  3:05     ` Printing Samuel Bronson
2009-04-02 13:41       ` Printing grischka
2009-04-02 13:31     ` Printing Stefan Monnier
2009-04-02 18:39       ` Printing grischka
2009-04-02 18:53         ` Printing Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2022-12-17 12:31 printing Gottfried
2022-12-17 13:09 ` printing tomas
2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2022-12-14 17:27 ` Philip Kaludercic
2022-12-16 15:27   ` printing Gottfried
2022-12-16 22:26     ` printing Michael Heerdegen
2022-12-17  6:29       ` printing tomas
2022-12-17  7:41         ` printing Emanuel Berg
2022-12-17 13:48     ` printing Gottfried
2022-12-17 16:30       ` printing tomas
2016-03-03 14:35 Printing Sharon Kimble
2016-03-03 20:22 ` Printing tomas
2016-03-05 13:40 ` Printing Robert Thorpe
2009-03-28 10:31 Printing Андрей Парамонов
2009-03-28 14:56 ` Printing Jan Djärv
2009-03-31  2:13   ` Printing YAMAMOTO Mitsuharu
2009-04-02  9:39     ` Printing YAMAMOTO Mitsuharu
2009-04-04  2:44       ` Printing YAMAMOTO Mitsuharu
2009-04-04  6:54         ` Printing Lennart Borgman
2009-04-04  7:25           ` Printing YAMAMOTO Mitsuharu
2009-04-04  9:40         ` Printing Leo
2009-04-04 22:00         ` Printing Richard M Stallman
2009-04-05  1:07           ` Printing YAMAMOTO Mitsuharu
2009-04-06  8:03         ` Printing Kenichi Handa
2009-04-06  8:45           ` Printing YAMAMOTO Mitsuharu
2009-04-06 11:47             ` Printing Kenichi Handa
2009-04-06 23:47               ` Printing YAMAMOTO Mitsuharu
2009-04-07  1:01                 ` Printing Kenichi Handa
2009-04-07  1:14                   ` Printing YAMAMOTO Mitsuharu
2009-04-07  9:46         ` Printing YAMAMOTO Mitsuharu
2009-04-08  1:33           ` Printing Kenichi Handa
2009-05-01 23:30             ` Printing YAMAMOTO Mitsuharu
2009-04-19 10:21           ` Printing YAMAMOTO Mitsuharu
2012-05-05  3:06             ` Printing Stefan Monnier
2012-05-07  3:38               ` Printing YAMAMOTO Mitsuharu
2012-05-07 11:25                 ` Printing Lennart Borgman
2012-05-08  1:04                   ` Printing YAMAMOTO Mitsuharu
2012-05-08  1:25                     ` Printing Lennart Borgman
2012-05-08  2:15                       ` Printing YAMAMOTO Mitsuharu
2012-05-08 10:59                         ` Printing Lennart Borgman
2012-05-09 14:50                   ` Printing Jason Rumney
2012-05-09 14:58                     ` Printing Lennart Borgman
2012-05-07 12:46                 ` Printing Stefan Monnier
2012-05-07 13:07                   ` Printing joakim
2012-05-07 17:20                   ` Printing Simon Leinen
2012-05-08  1:11                     ` Printing YAMAMOTO Mitsuharu
2009-03-28 15:46 ` Printing Michael Ekstrand
2009-03-28 18:37 ` Printing Stefan Monnier
2009-03-28 20:52   ` Printing Андрей Парамонов
2009-03-30 13:06     ` Printing Michael Ekstrand
2009-03-30 15:24       ` Printing Stefan Monnier
2009-03-30 18:38         ` Printing Eli Zaretskii
2009-03-31  1:56           ` Printing Stefan Monnier
2009-03-31  3:15             ` Printing Eli Zaretskii
2009-04-01  0:52               ` Printing Stefan Monnier
2009-04-01  3:14                 ` Printing Eli Zaretskii
2009-04-01  4:17                   ` Printing Miles Bader
2009-04-01 17:53                     ` Printing Eli Zaretskii
2009-04-01  4:24                   ` Printing Jason Rumney
2009-04-01 17:56                     ` Printing Eli Zaretskii
2009-04-01  8:11                   ` Printing Stephen J. Turnbull
2009-04-01 14:36                   ` Printing Stefan Monnier
2009-04-01 18:16                     ` Printing Eli Zaretskii
2009-04-01 23:42                       ` Printing Stefan Monnier
2009-04-02 13:02                       ` Printing Richard M Stallman
2009-04-02 19:37                         ` Printing Eli Zaretskii
2009-04-02 10:08                   ` Printing tomas
2009-04-02 10:52                     ` Printing Lennart Borgman
2009-04-02 11:51                       ` Printing tomas
2009-04-02 11:49                         ` Printing Lennart Borgman
2009-04-02 13:37                           ` Printing Stefan Monnier
2009-04-02 13:47                             ` Printing Óscar Fuentes
2009-04-02 13:55                               ` Printing Samuel Bronson
2009-04-02 14:24                                 ` Printing Óscar Fuentes
2009-04-02 14:34                                   ` Printing Lennart Borgman
2009-04-02 14:00                             ` Printing Lennart Borgman
2009-04-02 16:15                               ` Printing Stefan Monnier
2009-04-02 16:47                                 ` Printing Reiner Steib
2009-04-02 19:44                                 ` Printing Eli Zaretskii
2009-04-03  0:43                                   ` Printing Stefan Monnier
2009-04-02 20:56                                 ` Printing Lennart Borgman
2009-04-04  0:00                                   ` Printing Lennart Borgman
2009-04-04  0:36                                     ` Printing Stefan Monnier
2009-04-04  0:45                                       ` Printing Lennart Borgman
2009-04-04  1:05                                         ` Printing Óscar Fuentes
2009-04-04  6:52                                           ` Printing Lennart Borgman
2009-04-04  8:57                                     ` Printing Eli Zaretskii
2009-04-04  9:22                                       ` Printing Lennart Borgman
2009-04-04  9:49                                         ` Printing Eli Zaretskii
2009-03-28 20:30 ` Printing James Cloos
2009-03-29  2:15 ` Printing Richard M Stallman
2009-03-29  3:20   ` Printing Eli Zaretskii
2009-03-30  1:17     ` Printing Richard M Stallman
2009-03-30  3:10       ` Printing Eli Zaretskii
2009-03-30  6:36         ` Printing Lennart Borgman
2009-03-30 18:41           ` Printing Eli Zaretskii
2009-03-30 19:04             ` Printing Lennart Borgman
2009-03-30 20:48               ` Printing Eli Zaretskii
2009-03-30 20:53                 ` Printing Lennart Borgman
2009-03-30 20:59                   ` Printing Eli Zaretskii
2009-03-30 21:27                     ` Printing Lennart Borgman
2009-03-31  3:19                       ` Printing Eli Zaretskii
2009-03-30 21:46                   ` Printing Óscar Fuentes
2009-03-30 21:50         ` Printing Richard M Stallman
2009-03-31  3:18           ` Printing Eli Zaretskii
2009-03-31 19:14             ` Printing Richard M Stallman
2009-03-30 18:03   ` Printing Андрей Парамонов
2003-03-18 21:18 printing Kevin Reeder

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=49D3D3DE.1020901@gmx.de \
    --to=grishka@gmx.de \
    --cc=david@harpegolden.net \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.