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

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

> 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."

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

  parent reply	other threads:[~2013-04-07 18:32 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
2013-04-07 17:35     ` Dieter Wilhelm
2013-04-07 18:35       ` Nicolas Goaziou
2013-04-07 18:32     ` Nicolas Goaziou [this message]
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=87li8uxkcd.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=dieter@duenenhof-wilhelm.de \
    --cc=emacs-orgmode@gnu.org \
    /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).