emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
Cc: "n.goaziou@gmail.com" <n.goaziou@gmail.com>,
	Orgmode <emacs-orgmode@gnu.org>
Subject: Re: New exporter: no custom timestamps
Date: Tue, 18 Sep 2012 00:19:50 +0530	[thread overview]
Message-ID: <877grs32nl.fsf@gmail.com> (raw)
In-Reply-To: <1347889740.96406.YahooMailNeo@web29802.mail.ird.yahoo.com> (Giovanni Ridolfi's message of "Mon, 17 Sep 2012 14:49:00 +0100 (BST)")


> Hello everybody,
>
> I am not able to export with custiom timestamps with the new
> exporter. 

`org-translate-time' expects "<>" and "[]" to be passed to it.

I am not sure whether (all) the exporters should be changed or just the
API needs to be fixed.

    ,----
    | *** Welcome to IELM ***  Type (describe-mode) for help.
    | ELISP> org-display-custom-times
    | t
    | ELISP> org-time-stamp-custom-formats
    | ("<%d/%m/%Y %A>" . "<%d/%m/%Y %A %H:%M>")
    | 
    | ELISP> (setq T '(timestamp
    | 	  (:type inactive :value "2012-09-17 lun" :range-end nil)))
    | (timestamp
    |  (:type inactive :value "2012-09-17 lun" :range-end nil))
    | 
    | ELISP> (org-translate-time (org-element-property :value T))
    | "2012-09-17 lun"
    | ELISP> (org-translate-time (format "[%s]" (org-element-property :value T)))
    | "[17/09/2012 Monday]"
    | ELISP> 
    `----

> file:
> ---------------------------
> * [2012-09-17 lun]
> ** [2013-04-28 dom] sunday
> * COMMENT s
> # Local Variables:
> # org-display-custom-times: t
> # org-time-stamp-custom-formats: ("<%d/%m/%Y %A>" . "<%d/%m/%Y %A %H:%M>")
> # End:
> ----------------------

Use #+BIND:

> If I open the file the local variables are set. I toggle the timestamp format 
>
> C-c C-x C-t and C-c C-e H exports to HTML with my custom timestamp in
> the headline:
>
> <h2 id="sec-1"><span class="section-number-2">1</span> <span
> class="timestamp-wrapper"> <span class="timestamp">17/09/2012
> lunedì</span></span></h2>
>
> Whereas with the new exporter
>
> M-x org-export-dispatch h H
>
> I get the ISO format:
> <h2 id="sec-1"><span class="section-number-2">1</span> <span
> class="timestamp-wrapper"><span class="timestamp">2012-09-17
> lun</span></span></h2>
>
> cheers,
> Giovanni
>
>
>

-- 

  reply	other threads:[~2012-09-17 18:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 13:49 New exporter: no custom timestamps Giovanni Ridolfi
2012-09-17 18:49 ` Jambunathan K [this message]
2012-09-18 11:15   ` Bastien
2012-09-19 20:28     ` Nicolas Goaziou
2012-09-22 16:40       ` Bastien
2012-10-28 15:44       ` Nicolas Goaziou
2012-10-29  5:39         ` Bastien
2012-09-22 16:44     ` Bastien

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=877grs32nl.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=giovanni.ridolfi@yahoo.it \
    --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).