From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: htmlize/Hrvoje Niksic Date: Fri, 15 Jan 2016 21:53:52 +0000 Message-ID: <87oacmv79r.fsf@russet.org.uk> References: <87si25tkfr.fsf@russet.org.uk> <20160112121527.30703bf2@anarchist.wooz.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452894853 15596 80.91.229.3 (15 Jan 2016 21:54:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Jan 2016 21:54:13 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 15 22:54:08 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aKCJr-000097-KR for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2016 22:54:07 +0100 Original-Received: from localhost ([::1]:49052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKCJq-0004Rv-O1 for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2016 16:54:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKCJn-0004Rd-J7 for emacs-devel@gnu.org; Fri, 15 Jan 2016 16:54:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKCJi-0004bT-IW for emacs-devel@gnu.org; Fri, 15 Jan 2016 16:54:03 -0500 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:37229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKCJi-0004b8-Cw for emacs-devel@gnu.org; Fri, 15 Jan 2016 16:53:58 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1aKCJd-00030p-A8 for emacs-devel@gnu.org; Fri, 15 Jan 2016 21:53:53 +0000 Original-Received: from cpc1-benw10-2-0-cust373.gate.cable.virginm.net ([77.98.219.118] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1aKCJd-0002w9-0O for emacs-devel@gnu.org; Fri, 15 Jan 2016 21:53:53 +0000 In-Reply-To: <20160112121527.30703bf2@anarchist.wooz.org> (Barry Warsaw's message of "Tue, 12 Jan 2016 12:15:27 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198181 Archived-At: > Out of interest, was there a particular reson or feature which led you > to use htmlize rather than htmlfontify (which has been merged for a > while)? > [ I am curious as I wrote htmlfontify, which can already choose the colours > emacs would use for a different display class, which sounds similar to > what you are describing here ] Good question. So, first, I didn't know about htmlfontify (or rather I didn't know what it did, even though I changed it recently!). I found out about it a couple of days ago on Emacs wiki, and was thinking of seeing whether it would serve. The second reason is that org-mode uses htmlize, and it was for use within org-mode that I am interested. I don't know why it does this, esp given that htmlfontify is available. A quick investigation of htmlfontify suggests that it is missing two features. I need to be able to publish using inline fonts, and not CSS -- I need to produce HTML snippets that I am embedding in a page that I don't control. And, in term of org-mode, it uses htmlize-region, which at first glance htmlfontify lacks an equivalent for. The display class feature you describe would be useful: at the moment, running Emacs in batch generates the terminal fonts in html. But I'd also like to be able to say "this face is this colour, this face is that, and every other face just ignore". This is for when I am generating HTML to embed in a page I do not otherwise control, with a white background (I use dark). Phil