From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: Basic WYSIWYG printing in GNU Emacs Date: Sun, 13 Jun 2021 11:30:17 +0100 Message-ID: <87sg1mjbuu.fsf@tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38697"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel , Anand Tamariya To: Dov Grobgeld Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 13 12:31:54 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 1lsNPG-0009jX-En for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Jun 2021 12:31:54 +0200 Original-Received: from localhost ([::1]:57846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsNPF-0007as-1G for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Jun 2021 06:31:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsNNv-0006oA-GE for emacs-devel@gnu.org; Sun, 13 Jun 2021 06:30:31 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:51038) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsNNl-0003EQ-HD for emacs-devel@gnu.org; Sun, 13 Jun 2021 06:30:26 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id d184so10434853wmd.0 for ; Sun, 13 Jun 2021 03:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=J2BqsMsYIw/5wjaUjwv/nJCoHlLtm1YxGosTCaCIs+0=; b=BCmm+PWfDN7Ms7T+yFxzdq2lg8o5zK62nDTbW+jux7uBxUlDlf2gy0Lr9Oihp9R/fg Ca0xQWqHXUyukOv+9CLW2ilo8vF+iaB63QD6nPw6jfI/2FI+XPKlusljA8zLjNCEM3RB Gvs2Us08BVYTTVz0zJTMWB0NIi9LH1BuGpMneeqmAswXoFRDkxrwLRaZ21rWJsxrFHMe 4ebVloCzSecdEHsJlS1pWPiMaNmsmCzVRjLfzyK1OgWYU3QWvy/pYA089yVlIZomBUbd VvS1ZTjk0Ubv6fIUJ2rSLf85TXAIFPgFcMJFqs4SZoxvHmrEmw50tIDO3ipvlxYLakRl sAZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=J2BqsMsYIw/5wjaUjwv/nJCoHlLtm1YxGosTCaCIs+0=; b=D2JsS44OngL3f4U5nnuM067Ai37xUIMqUfoI7Jd9CvknxZEthOQdb7jw9GreEjbx94 ScuhhOkd5CcfD86utZ42JmlI8KQOLvrds5LsiPdMCvPVomBPodfafBIMWIdT7dwGIITu q9k5JbXobk3GLvH2V8gvOhox8xv6uj9btxuGq3N3V8jrkzF/+mdJ68cbo9Xf6BCWE4Bu UHz7t09wE6mz6Hf/92/TaNKcvaQf3Oz2dxnIF+6nnRYnI0OPQI8VS7mBeOtXjW5bMWdk fgtzcCuf1kZd0u+1RR+vUGsjM2mnPkhPhk9AMK1l8bCEAkyea3fxsVlZGfQo2cZbB+BH n9Bg== X-Gm-Message-State: AOAM5337C1Wvq4UbB4TSxCtz8ratX8N8vyZxJid+3kwwhHsEIFgyFtLs PGMQ6mDVmL2T8IopIRYoH6wOJA== X-Google-Smtp-Source: ABdhPJwxIgBKCgHmVKqEJDULMAb4zJRv8MnInCQWbH/MyUwtdIV2m9kAUXFunhZYIlHK2JbX3PXPZw== X-Received: by 2002:a7b:cd9a:: with SMTP id y26mr27223234wmj.81.1623580219441; Sun, 13 Jun 2021 03:30:19 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id b188sm22089779wmh.18.2021.06.13.03.30.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 03:30:18 -0700 (PDT) In-Reply-To: (Jean Louis's message of "Sun, 13 Jun 2021 12:43:50 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=contovob@tcd.ie; helo=mail-wm1-x332.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, 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:270793 Archived-At: 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. -- Basil