From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anand Tamariya Newsgroups: gmane.emacs.devel Subject: Re: [Patch] Basic WYSIWYG printing in GNU Emacs Date: Thu, 12 Aug 2021 12:15:53 +0530 Message-ID: References: <83y299fpmh.fsf@gnu.org> <83zgtodx8j.fsf@gnu.org> <83lf57exgd.fsf@gnu.org> <83czqjdwgb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c5761805c95716b4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2790"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 12 08:47:35 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mE4V4-0000QH-Hb for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Aug 2021 08:47:34 +0200 Original-Received: from localhost ([::1]:45162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mE4V3-0003AN-6v for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Aug 2021 02:47:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mE4Tg-0001ne-96 for emacs-devel@gnu.org; Thu, 12 Aug 2021 02:46:08 -0400 Original-Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:45875) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mE4Te-0005R6-9v; Thu, 12 Aug 2021 02:46:07 -0400 Original-Received: by mail-io1-xd29.google.com with SMTP id e186so6932719iof.12; Wed, 11 Aug 2021 23:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=esyL1FjCzq2IktWCyy5vxZrYB1FL9QbSkZAhe0g+d7U=; b=ndVywV3IzJW91s2yJ5vumNAQaRNBWIDll2QtmukA8AJeEmcWn85uN98U6mib8BsaQF SEnSjSC0FUKHToXLm7ZCsV3avhDSrl+f86o8B62UR/RP9+rp+LUEJi6QNYYlCxQyqAxy vlDIitscP3TbtJny/7kBF8cDE2TRy6V0NcjDT6j962FT1gMXgYSXNXsdZ/s0ANA3eorh lfID/J3kKWjbaMAh+oGVrGMiMUr2/7EewweitSvhHgHq4ZKYyvTL0NRNVNtJgZ3vvTqp yeHYUwD1ycfTrHQX2eOJdUPuCOCOkmgERsBjsoSDIy8/Q+Qc5TmUJUC9zq1CPwIXajaw f7UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=esyL1FjCzq2IktWCyy5vxZrYB1FL9QbSkZAhe0g+d7U=; b=iO4i2TFS6LKVKoD2YEB+F3UnrkucJSp0KQJ1v1nmVUd+1h1LxlrUoaDkPAFeGNhHSk kd/r4jmVncrDKFpeyRg/ofdTyiHQyV90YcFObBxhL1w6gaRrB+vjCT8440hpOw2hnTWp SdSmLskFtMe89D/IfxQgu+S3NBr499P1SmOXb2XCQND3eWhI3m4lB6FsfRFySrXqJgRk 09PCBsqD2J2JSsVq7chf4g4w4yrEtsip4Ru8aV/o/RJvONOhxKO1MEbAtPKpQNATVK9u q6VXnS3KsLXK22nLLunFeLm+CXVC6e/mE687aWbFd1ma0vf7y1Vd86dG1CoFkIJqzEgu nikA== X-Gm-Message-State: AOAM533HefYSMY3Zvp8llTG814bF396Jh4myJNlrq4NjwvwMivm+q3cJ dHktyIW83r3HMYNwmKGGxg3i8H1r3uQcMOK8kREkdmfe X-Google-Smtp-Source: ABdhPJxqPzKAZrOAbVayMcl7mdQjSWs5+MfeLyxvnSHg+yEukrhEGKBIyb7jhql9QjuDstaAh+tYL0yc6nqvNie572c= X-Received: by 2002:a5d:9d9a:: with SMTP id ay26mr1919311iob.41.1628750764929; Wed, 11 Aug 2021 23:46:04 -0700 (PDT) In-Reply-To: <83czqjdwgb.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::d29; envelope-from=atamariya@gmail.com; helo=mail-io1-xd29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272344 Archived-At: --000000000000c5761805c95716b4 Content-Type: text/plain; charset="UTF-8" On Thu, Aug 12, 2021 at 11:41 AM Eli Zaretskii wrote: > > From: Anand Tamariya > > Date: Thu, 12 Aug 2021 11:04:39 +0530 > > Cc: emacs-devel@gnu.org > > > > > Correction is in order - the screenshot/ rendering within Emacs > requires Ghostscript. Printing to > > printer > > > would use OS specific print commands e.g. lpr on *nix. > > > > Now I'm even more confused. How does one "render within Emacs with > > Ghostscript"? Emacs display rendering uses our display engine, which > > doesn't need Ghostscript, and AFAIK cannot use it. I guess I'm > > misunderstanding something very basic here... > > > > The screenshots linked in OP shows split windows - one with original > text and another with PS file. The PS > > file section is actually a PNG image generated with Ghostscript from the > PS file. The PS file itself is > > generated by my code. > > OK, that takes care of my confusion, thanks. > > But the original question still stands: where do you make use of > Ghostscript in your code which generates the PS file? I don't. > Or maybe you > don't use Ghostscript for that (which would be good news), and I just > misunderstood you did? IOW, is Ghostscript a prerequisite for using > your WYSIWYG printing code to produce the PS stuff (as opposed to > sending the PS to the printer)? > It's not. It is only required if one wants to visualize (print preview) it within Emacs. Of course, for development and testing, it's irreplaceable unless you want to waste reams of paper. Hence, I count it as a dependency. --000000000000c5761805c95716b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Thu, Aug 12, 2021 at 11:41 AM Eli = Zaretskii <eliz@gnu.org> wrote:
> From: Anand = Tamariya <atama= riya@gmail.com>
> Date: Thu, 12 Aug 2021 11:04:39 +0530
> Cc: emacs-dev= el@gnu.org
>
>=C2=A0 > Correction is in order - the screenshot/ rendering within E= macs requires Ghostscript. Printing to
>=C2=A0 printer
>=C2=A0 > would use OS specific print commands e.g. lpr on *nix.
>
>=C2=A0 Now I'm even more confused.=C2=A0 How does one "render = within Emacs with
>=C2=A0 Ghostscript"?=C2=A0 Emacs display rendering uses our displa= y engine, which
>=C2=A0 doesn't need Ghostscript, and AFAIK cannot use it.=C2=A0 I g= uess I'm
>=C2=A0 misunderstanding something very basic here...
>
> The screenshots linked in OP shows split windows - one with original t= ext and another with PS file. The PS
> file section is actually a PNG image generated with Ghostscript from t= he PS file. The PS file itself is
> generated by my code.

OK, that takes care of my confusion, thanks.

But the original question still stands: where do you make use of
Ghostscript in your code which generates the PS file?
I do= n't.
=C2=A0= Or maybe you
don't use Ghostscript for that (which would be good news), and I just misunderstood you did?=C2=A0 IOW, is Ghostscript a prerequisite for using your WYSIWYG printing code to produce the PS stuff (as opposed to
sending the PS to the printer)?
It's not. It is on= ly required if one wants to visualize (print preview) it within Emacs. Of c= ourse, for development and testing, it's irreplaceable unless you want = to waste reams of paper. Hence, I count it as a dependency.
=
--000000000000c5761805c95716b4--