From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dieter Wilhelm Subject: Re: Some %elements in org-html-postamble-format became too "generous" Date: Sun, 07 Apr 2013 19:35:03 +0200 Message-ID: <877gkexn08.fsf@duenenhof-wilhelm.de> 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]:44170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOtV3-0001wl-Bb for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 13:35:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOtUy-0000Fy-35 for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 13:35:29 -0400 Received: from mail-ea0-x229.google.com ([2a00:1450:4013:c01::229]:41165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOtUx-0000Fi-S5 for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 13:35:24 -0400 Received: by mail-ea0-f169.google.com with SMTP id n15so2012549ead.0 for ; Sun, 07 Apr 2013 10:35:23 -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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Dieter Wilhelm writes: > Nicolas Goaziou writes: > >> Hello, >> >> Dieter Wilhelm writes: >> >>> before 8pre it was better possible to translate the Org/Emacs information in the >>> postamble. If I'm using >>> >>> ("fr" "

Auteur: %a (%e)

\n

Date >>> de la modification: %d

\n

Produit par %c >>>

\n") >>> >>> The result looks like: >>> >>> Produit par Generated by Org mode 8.0-pre in Emacs 24.3.3 >>> >>> which also contradicts the documentation string of >>> org-html-postamble-format... >> >> I fixed this. "%c" equals to `org-html-creator-string' (#+CREATOR:) >> value. You are responsible for the translation. > > Thank you, you're very helpful. > > 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 / Emacs 24.3.3." > > Then one would be done with just translating > org-html-postamble-format... > >>> By the way, I think the creation Time (%T) capability of the postamble >>> is rather pointless, could you please change it to the modification time >>> or add something (like %C)? This would save the hassle of putting >>> everywhere #+DATE: {{{modification-time(%Y-%m-%d)}}} into the files. >>> One could just change the %d to %C... >> >> I added %C. > > Thank you. > > 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... > > Or just using a default time string format which is language > independent, like %Y-%m-%d. Shouldn't %C not adhere to org-export-date-timestamp-format which is in fact "%Y-%m-%d"? -- Sorry for the hassle Dieter >>> Moreover, I think the documentation string is not really precise about >>> the creation time. We have on Linux atime, mtime and ctime (Access, >>> Modification and in effect the inode "Change" time), probably the modern >>> file systems store additionally the "true Creation" time. >> >> This was about the creation time of the /output/, which is, in fact, the >> time of export. I changed the docstring to make it clear. > > Sorry for the confusion, now I understand. > > 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? -- Best wishes H. Dieter Wilhelm Darmstadt Germany