From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.devel Subject: Re: htmlize/Hrvoje Niksic Date: Fri, 15 Jan 2016 23:41:08 +0100 Message-ID: <87a8o6ea9n.fsf@gmx.us> References: <87si25tkfr.fsf@russet.org.uk> <20160112121527.30703bf2@anarchist.wooz.org> <87oacmv79r.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1452897844 29703 80.91.229.3 (15 Jan 2016 22:44:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Jan 2016 22:44:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 15 23:43:56 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 1aKD63-000788-MG for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2016 23:43:55 +0100 Original-Received: from localhost ([::1]:49248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKD63-0006qp-1t for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2016 17:43:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKD3c-0002sM-3h for emacs-devel@gnu.org; Fri, 15 Jan 2016 17:41:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKD3Y-0007fX-SZ for emacs-devel@gnu.org; Fri, 15 Jan 2016 17:41:24 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKD3Y-0007fQ-M6 for emacs-devel@gnu.org; Fri, 15 Jan 2016 17:41:20 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aKD3V-0004yr-6H for emacs-devel@gnu.org; Fri, 15 Jan 2016 23:41:17 +0100 Original-Received: from 46.166.188.226 ([46.166.188.226]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jan 2016 23:41:17 +0100 Original-Received: from rasmus by 46.166.188.226 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jan 2016 23:41:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 57 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 46.166.188.226 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAmJLR0QA/4ePzL8AAAAJcEhZ cwAAAEgAAABIAEbJaz4AAAHKSURBVEjHlZTLlexACENnf3NRLiRCLmSiUBQR5y08v3Z73P1Y2nWr EAg+9iZ88e3j5nzqfwHlXeDIxbwN9OzuNn4bqN1EeDd5Byit25Ck/AKY7BpFXZRlXgBduxHTtBhp 6HsA7Q4yjKrRULdAwDPUgKsahXqUfX6hqCr3oGQaPC3fihZNxTC7A+1+VPEEmIYEDvXYemj4cx+q oVcwG8FsvwDc0BFoB5i17oEIKlTRqsI+jHUDIFXTDaQwk3vAjCRmoKI+W/bqBRcQQ5niNBRXGmag Nx4PvDLf7pbSjsfOPrn7CshkhCSp5p2Jy0jjHD2pvASsrzSyu65XI+o+TsQFnSfiCfiyZgMg79Tt APUcqaQ4wtt/2zvzq01uAZB9KO3H47ih37wbqMeV+Rs4fp+2TtWxSq6AuQAORZrrlFrnLfTt4FxX yVfrd3e36rpKZ+/kx/O5TKkfalyi8klJF8Dvac9nF/BuPCWegZ+Esj5mFNBXA8+AC8q7G7ta0F/m +IwTYJgB1bR6nBHcAUFZAQMV+8sXfwKmNwDHxYp7T4+cAWVbqq4qdTKu+5S+TTH+Xpj8PPkseqA9 MzPjJE/3P5e1eREnDeL/AHgX+Ac1wLS1jG2Y1gAAAABJRU5ErkJggg== User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:ZhXGj87IeiAGl3RULlmcqwbcNj0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:198182 Archived-At: phillip.lord@russet.org.uk (Phillip Lord) writes: > > 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 ] So just to understand correctly, would htmlfontify be able to chose correct colors for a buffer even if run via batch mode where text is not colored? Or would it "just" allow be to match against a style sheet? > 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. I also hadn’t heard of it before now... > 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. It would be great to have a built-in alternative to htmlize in Org. Just today I ran into the issue of not having htmlize bundled... > 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. Thanks for checking this. I agree that CSS declaration support is important (see org-html-htmlize-output-type). BTW: what you mean by inline fonts? As for htmlize-region, I guess it’s easy to replace using with-temp-buffer, so I wouldn’t worry about it from the point of view of Org, though it’s really handy to have in any case. > 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). I know you don’t want to use external files, but if you can relax this requirement you could generate a stylesheet with org-html-htmlize-generate-css. Rasmus -- To err is human. To screw up 10⁶ times per second, you need a computer