emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Some %elements in org-html-postamble-format became too "generous"
Date: Sun, 07 Apr 2013 18:26:44 +0200	[thread overview]
Message-ID: <87txnixq63.fsf@duenenhof-wilhelm.de> (raw)
In-Reply-To: <87ppy6xzjf.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 07 Apr 2013 15:04:20 +0200")

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:
>
>> before 8pre it was better possible to translate the Org/Emacs information in the
>> postamble.  If I'm using
>>
>>  ("fr" "<p class=\"author\">Auteur: %a (%e)</p>\n<p class=\"date\">Date
>>  de la modification: %d </p>\n<p class=\"creator\">Produit par %c
>>  </p>\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 <a href=\"http://orgmode.org\">Org</a> mode 8.0-pre in <a href=\"http://www.gnu.org/software/emacs/\">Emacs</a> 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:

"<a href=\"http://orgmode.org\">Org</a> mode 8.0-pre / <a href=\"http://www.gnu.org/software/emacs/\">Emacs</a> 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

  reply	other threads:[~2013-04-07 16:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 11:52 Some %elements in org-html-postamble-format became too "generous" Dieter Wilhelm
2013-04-07 13:04 ` Nicolas Goaziou
2013-04-07 16:26   ` Dieter Wilhelm [this message]
2013-04-07 17:35     ` Dieter Wilhelm
2013-04-07 18:35       ` Nicolas Goaziou
2013-04-07 18:32     ` Nicolas Goaziou
2013-04-07 18:51       ` Rick Frankel
2013-04-07 19:00         ` Nicolas Goaziou
2013-04-09  1:55           ` Rick Frankel
2013-04-10 12:44             ` Nicolas Goaziou
2013-04-10 13:15               ` [PATCH] org-contacts.el, add alias properties Feng Shu
2013-04-10 13:18                 ` Bastien
2013-04-09  5:46           ` Some %elements in org-html-postamble-format became too "generous" Dieter Wilhelm
2013-04-09  9:54             ` Bastien
2013-04-10 18:13           ` Dieter Wilhelm
2013-04-07 20:52       ` Dieter Wilhelm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txnixq63.fsf@duenenhof-wilhelm.de \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).