From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Basic WYSIWYG printing in GNU Emacs Date: Sun, 13 Jun 2021 14:04:17 +0300 Message-ID: References: <87sg1mjbuu.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9880"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.7+183 (3d24855) (2021-05-28) Cc: Dov Grobgeld , Anand Tamariya , emacs-devel To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 13 13:06:47 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 1lsNx1-0002Ig-7S for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Jun 2021 13:06:47 +0200 Original-Received: from localhost ([::1]:36974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsNwz-0006tq-Gi for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Jun 2021 07:06:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsNwA-00065Z-EZ for emacs-devel@gnu.org; Sun, 13 Jun 2021 07:05:54 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:54807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsNw8-0000cB-Mb for emacs-devel@gnu.org; Sun, 13 Jun 2021 07:05:54 -0400 Original-Received: from localhost ([::ffff:197.157.0.23]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000076064.0000000060C5E68D.00007FB2; Sun, 13 Jun 2021 04:05:48 -0700 Mail-Followup-To: "Basil L. Contovounesios" , Dov Grobgeld , emacs-devel , Anand Tamariya Content-Disposition: inline In-Reply-To: <87sg1mjbuu.fsf@tcd.ie> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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:270794 Archived-At: * Basil L. Contovounesios [2021-06-13 13:31]: > Jean Louis writes: > > > * Dov Grobgeld [2021-06-13 11:02]: > >> I think you would get much better international support if you combine > >> the emacs printing with my utf8-to-ps (or pdf or svg) program paps. > >> See: https://github.com/dov/paps . paps support "Pango Markup" so if > >> you convert emacs faces to pango markup, you can multi face and color > >> output. > >> > >> Thinking about it since emacs is gtk based these days, it has pango > >> and cairo as implicit dependencies, so if these libraries were exposed > >> through the emacs lisp api, it would be possible to write a > >> replacement for paps in emacs. :-) > > > > Such good idea. > > > > I would like proper printing in Emacs, I guess that I have to research > > the function `ps-mule-begin-job' to see how it converts faces to PS > > first, to convert it to pango markup. > > FWIW, when Emacs is built against an appropriately configured Cairo, the > function x-export-frames can export visible Emacs frames (not just the > buffer contents) to PDF, PS, PNG, or SVG. Nice function and useful for screenshots. Just that it is not related to printing buffer text. It shows only the frame as image. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/