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 18:26:44 +0200 Message-ID: <87txnixq63.fsf@duenenhof-wilhelm.de> References: <8761zyzhf5.fsf@duenenhof-wilhelm.de> <87ppy6xzjf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOsQw-0003oq-W6 for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 12:27:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOsQq-0007nf-Gs for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 12:27:10 -0400 Received: from mail-ee0-f44.google.com ([74.125.83.44]:56156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOsQq-0007md-AJ for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 12:27:04 -0400 Received: by mail-ee0-f44.google.com with SMTP id c41so1008548eek.17 for ; Sun, 07 Apr 2013 09:27:03 -0700 (PDT) In-Reply-To: <87ppy6xzjf.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 07 Apr 2013 15:04:20 +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 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. >> 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