From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii Subject: bug#32722: bug#32722: bug#32722: 26.1; Org-publish depend on non-free platform ? Date: Wed, 19 Sep 2018 10:22:36 +0300 Message-ID: <83woridk8z.fsf__21825.6351574839$1537341711$gmane$org@gnu.org> References: <531a7f93882cc0d5d09700457d06ea082f47569b.camel@flqt.fr> <83sh2ck42e.fsf@gnu.org> <87va73gn90.fsf@nicolasgoaziou.fr> <83zhwff2k8.fsf@gnu.org> <20180918141427.55178577@lt70.mpip-mainz.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2WpN-0000pA-Kk for emacs-orgmode@gnu.org; Wed, 19 Sep 2018 03:23:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2WpJ-0000i9-4m for emacs-orgmode@gnu.org; Wed, 19 Sep 2018 03:23:13 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20180918141427.55178577@lt70.mpip-mainz.mpg.de> (message from Robert Klein on Tue, 18 Sep 2018 14:14:27 +0200) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Robert Klein Cc: n@flqt.fr, kaushal.modi@gmail.com, rms@gnu.org, 32722@debbugs.gnu.org > Date: Tue, 18 Sep 2018 14:14:27 +0200 > From: Robert Klein > Cc: Nicolas Goaziou , n@flqt.fr, > kaushal.modi@gmail.com, 32722@debbugs.gnu.org, rms@gnu.org > > > From my POV, the immediate problem is to switch Org-publish from using > > htmlize to htmlfontify. Can this be done, please? > > Not easily, no. Afaik htmlfontify always creates a complete HTML > document, which htmlize doesn't. Also, htmlize can format parts of a > buffer. which htmlfontify can't. This should be very easy to fix, by using temporary buffers with a copy of the region to produce HTML for. Right? > Additionally htmlfontify also requires several external tools > (according to the man page) which might not be available on all > platform Emacs and org-mode is used on: > > - a copy of “find” which provides the “-path” predicate > - a copy of “sed” > - a copy of the “file” command These are only needed if one invokes htmlfontify-copy-and-link-dir to produce HTML for files in a directory. Is that an important use case for the issue at hand? E.g., if you need to produce HTML for a region of a buffer, these facilities seem to not be relevant, AFAIU. Did I miss something? > A switch to htmlfontify might end up in rewriting a good part of > htmlfontify or some very ugly hacks. I wonder whether we could begin by just supporting the immediate use case(s) in point, maybe that is possible without too much rewriting. > If Hrvoje Niksic has or is willing to sign the copyright assignment > documents it will be easier to put htmlize.el into Emacs. We've been through this several times in the past: it isn't going to happen. I think htmlfontify was added to Emacs for that rteason, among others.