From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: [RFC] htmlize and htmlfontify comparison Date: Sat, 06 Oct 2018 18:58:23 +0200 Message-ID: <874ldzovv4.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8puQ-0007dS-Gv for emacs-orgmode@gnu.org; Sat, 06 Oct 2018 12:58:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8puM-0002Lq-Gf for emacs-orgmode@gnu.org; Sat, 06 Oct 2018 12:58:30 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:49881) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g8puL-0002KK-Pk for emacs-orgmode@gnu.org; Sat, 06 Oct 2018 12:58:26 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 0F1B740005 for ; Sat, 6 Oct 2018 16:58:23 +0000 (UTC) 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: Org Mode List --=-=-= Content-Type: text/plain Hello, I'm in the process of moving Org from htmlize to htmlfontify. I'm starting out with a low hanging fruit, which is the call to `htmlize-buffer' in `org-org-publish-to-org'. I created a simple Org file and published it once using htmlfontify and another time with htmlize. I'm attaching the two HTML files obtained. My CSS/HTML/Javascript-fu is rusty. Could someone tell me if there is anything wrong with the result? Is it a drop-in replacement or does it need more clean-up? Thank you. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/html Content-Disposition: attachment; filename=htmlfontify-x.org.html Content-Description: HTML with Htmlfontify wip-html.org
# Time-stamp: <2018-10-06 18:06:43 ngz>
* Headline

#+begin_src emacs-lisp
(defun test (&rest _) nil)
#+end_src

*bold*

/italic/

--=-=-= Content-Type: text/html Content-Disposition: attachment; filename=htmlize-x-org.html Content-Description: HTML with htmlize wip-html.org
# Time-stamp: <2018-10-06 18:06:43 ngz>
* Headline

#+begin_src emacs-lisp
(defun test (&rest _) nil)
#+end_src

*bold*

/italic/

--=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [RFC] htmlize and htmlfontify comparison Date: Sun, 07 Oct 2018 14:05:53 +0100 Message-ID: <87woqtnbym.fsf@gmail.com> References: <874ldzovv4.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g98ky-0004L3-2B for emacs-orgmode@gnu.org; Sun, 07 Oct 2018 09:06:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g98ku-0005Tt-UF for emacs-orgmode@gnu.org; Sun, 07 Oct 2018 09:06:00 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:53365) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g98ku-0005Tb-N7 for emacs-orgmode@gnu.org; Sun, 07 Oct 2018 09:05:56 -0400 Received: by mail-wm1-x32e.google.com with SMTP id y11-v6so2663064wma.3 for ; Sun, 07 Oct 2018 06:05:56 -0700 (PDT) Received: from t3610 ([95.151.192.176]) by smtp.gmail.com with ESMTPSA id t82-v6sm9027530wme.30.2018.10.07.06.05.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Oct 2018 06:05:53 -0700 (PDT) In-Reply-To: <874ldzovv4.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 06 Oct 2018 18:58:23 +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: Org Mode List On Saturday, 6 Oct 2018 at 18:58, Nicolas Goaziou wrote: > My CSS/HTML/Javascript-fu is rusty. Could someone tell me if there is > anything wrong with the result? Is it a drop-in replacement or does it > need more clean-up? I am not keen on the css used by htmlfontify in your example output. It is much too specific (font-family and particularly font-size). I would rather have as simple a set of style definitions as possible, leaving much of the main styling information to the viewer (my main use case for converting to HTML is for email for some infrequent needs). However, having never used htmlfontify, I don't know how much control I have over this so maybe it's a non-worry. -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-783-g97fac4