From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Export Org checkboxes in ox-html using UTF-8 symbols Date: Fri, 28 Mar 2014 09:55:00 -0400 Message-ID: <19ffca4dc5566c701621e99313b336cd@mail.rickster.com> References: <8738i4t4jc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTXFQ-0001pN-QB for emacs-orgmode@gnu.org; Fri, 28 Mar 2014 09:55:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTXFM-0003pr-7T for emacs-orgmode@gnu.org; Fri, 28 Mar 2014 09:55:04 -0400 Received: from mail.rickster.com ([204.62.15.78]:51194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTXFM-0003pm-40 for emacs-orgmode@gnu.org; Fri, 28 Mar 2014 09:55:00 -0400 In-Reply-To: <8738i4t4jc.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 2014-03-27 04:43, Nicolas Goaziou wrote: > Hello, > > Grant Rettke writes: > > Sacha Chua made a nice hack to export checkboxes as unicode symbols to > HTML here: > > http://sachachua.com/blog/2014/03/emacs-tweaks-export-org-checkboxes-using-utf-8-symbols/?shareadraft=baba27119_533313c944f64 > > (defun sacha/org-html-checkbox (checkbox) > "Format CHECKBOX into HTML." > (case checkbox (on "") ; > checkbox (checked) > (off "") > (trans "[-]") > (t ""))) > (defadvice org-html-checkbox (around sacha activate) > (setq ad-return-value (sacha/org-html-checkbox (ad-get-arg 0)))) > > Thanks Sacha. > > There is also: > > (setq org-html-checkbox-type 'unicode) > > > You need a recent Org, though (maybe development version, I didn't > check). I didn't apply it in maint, so it's only in master. BTW, i used "[ ]" for the unchecked box (we use the same for checked and trans)... I think i'll change the unchecked box to ☐ to match the checked box (same as sachua). rick