From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Some %elements in org-html-postamble-format became too "generous" Date: Sun, 07 Apr 2013 20:32:34 +0200 Message-ID: <87li8uxkcd.fsf@gmail.com> References: <8761zyzhf5.fsf@duenenhof-wilhelm.de> <87ppy6xzjf.fsf@gmail.com> <87txnixq63.fsf@duenenhof-wilhelm.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOuOT-0003PK-Jt for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 14:32:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOuON-0004Lm-Bh for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 14:32:45 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:45878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOuON-0004Lc-5Z for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 14:32:39 -0400 Received: by mail-wg0-f52.google.com with SMTP id n12so5196397wgh.19 for ; Sun, 07 Apr 2013 11:32:38 -0700 (PDT) In-Reply-To: <87txnixq63.fsf@duenenhof-wilhelm.de> (Dieter Wilhelm's message of "Sun, 07 Apr 2013 18:26:44 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dieter Wilhelm Cc: emacs-orgmode@gnu.org Dieter Wilhelm writes: > Even though I'm not yet happy with this because the > org-html-creator-string default: > > "Generated by Org mode 8.0-pre in Emacs 24.3.3." > > is in my opinion too much language dependent! It requires the user who > wants to translate the preamble to change 2 places, > org-html-postamble-format *and* org-html-creator-string. > > Why not simply making org-html-creator-string "name oriented", like: > > "Org mode 8.0-pre / href=\"http://www.gnu.org/software/emacs/\">Emacs 24.3.3." Agreed. Done. > Works wonderfully for English, sorry I forgot the more general case. > The default time string format has a day name included. Wouldn't it be > possible for the exporters to look for the language keyword e.g.: > #+LANGUAGE: fr and set the time string translated accordingly? I've no > idea how much work it is but I imagine org asking the OS under some > locale argument might do... This is no trivial task. Patches welcome. ;) > Or just using a default time string format which is language > independent, like %Y-%m-%d. There's `org-html--timestamp-format', which is used for all timestamps in preamble, postamble and metadata. It's clearly an internal variable. I don't know if it is used because the format is required or because it saves copying over the same format string. Since I don't know the intent behind this, I can't tell if it could be made a defcustom. > By the way, is it normal that org-html-postamble-format and > org-html-creator-string are not loaded before an html export is > triggered? Yes, by default, the export framework is not loaded at startup (as specified in `org-export-backends'). You can use `eval-after-load' or simply (require 'ox-html) if needed. Regards, -- Nicolas Goaziou