From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshinari Nomura Subject: Re: Add figure/table numbers to HTML captions Date: Fri, 28 Jun 2013 20:51:36 +0900 (JST) Message-ID: <20130628.205136.624109309513966186.nom@quickhack.net> References: <87li5vsjb8.fsf@gmail.com> <20130628.101530.1683355082328893107.nom@quickhack.net> <87ppv6r3ky.fsf@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsXDQ-0005LM-1Z for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 07:51:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsXDN-0005Sf-Ht for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 07:51:47 -0400 Received: from vintage.swlab.cs.okayama-u.ac.jp ([150.46.8.117]:60259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsXDN-0005S4-01 for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 07:51:45 -0400 In-Reply-To: <87ppv6r3ky.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: n.goaziou@gmail.com Cc: emacs-orgmode@gnu.org Hi Nicolas, On Fri, 28 Jun 2013 11:23:41 +0200, Nicolas Goaziou said: > (setq caption-predicate > (if (org-element-property :caption destination) > (lambda (elem &optional info) > (org-element-property :caption elem)) > (lambda (elem &optional info) > (not (org-element-property :caption elem))))) > = > I suggest to drop the "else" part. If destination hasn't got any > caption, numbering doesn't make much sense anyway. You can re-use > `org-html--has-caption-p'. Ah, you are right. I was a little bit paranoia. My intention was: if a destination of link hasn't got any destination, the link should express= the *nth* non-caption figure. >> Let me confirm, do you mean I should have add :default value to the = ``ja'' >> entry like: ("ja" :default "=E5=9B=B3" :html "図" :utf-8 "=E5=9B= =B3")? In this >> case, is the `:utf-8' meaning-less? Also, can I put UTF-8 word in >> `:default'? > = > :utf-8 will be used for ODT export and UTF-8 export. LaTeX export wil= l > try to use, in this order, :latex, :default and "Figure %d:". Plain > ASCII will use, in this order, :ascii, :default and "Figure %d:". > = > I suggest to use a simple entry for :default, maybe romanji, if it ma= kes > sense. You can also use UTF-8 encoding as :default, and provide some > meaningful translation for :ascii. Thanks for your clear explanation. For many Japanese, :default value should be "Figure: %d:", even though we are not good at English :) I want this left blank. Regards, -- Yoshinari Nomura https://github.com/yoshinari-nomura