emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Exporting calender to ical
@ 2015-08-10 15:29 Benny Simonsen
  2015-08-13  2:45 ` Matt Lundin
  0 siblings, 1 reply; 3+ messages in thread
From: Benny Simonsen @ 2015-08-10 15:29 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 5272 bytes --]

Hi
I use org-mode for exporting to ical files, but the "new" exporter in
org-mode v. 8 gives me problems.

I have used Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @
/usr/share/emacs/24.3/lisp/org/). In that version the export of the .org
file listed below works fine.

Using Org-mode version 8.2.10 I have seen those issues:
- All subjects have got the timestamp in the subject
- Duration is the default duration even for even for events with a
time-interval
   - Events with time-interval is show double
 This is a minor issue if I can specify duration in another way
- Location is missing
- UID format changed from starting with "UID: TS-" to "UID:TS<number>-"
  - Not an issue, if I remove old events before next export.

Should I format the org-file in another way? - I can't find any examples.

I would like to upgrade to the new org-mode for exporting calendar entries
to get rid of the old org-mode and because there are needed some work
arounds using the old exporter.

I normally uses it for importing into various google calenders. ... maybe I
should do it in another way.

Br,
Benny

Shown below:
- Org-mode file
- ics file exported with 7.9.3f
- ics file exported with 8.2.10

*Org-mode file:*
#+TITLE:    Test
#+DESCRIPTION:  Show what worked in org-mode 7.9.3f
#+CATEGORY:    Test
#+PROPERTY: LOCATION Default Location that is included in ics events,
Denmark

# Exporting using org-mode 7.9.3f
# #######################################################################
# open in emacs -q, Append old org-mode to load path:
# Eval: (add-to-list 'load-path "~/git/
github.com/repo.or.cz/org-mode.release_7.9.3f-17-g7524ef/lisp")
# org-version: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @
/usr/share/emacs/24.3/lisp/org/)
# To create .ics file: Type C-c C-e i (2 times to get location info).

# Exporting using org-mode 8.2.10
# #######################################################################
# open in emacs -q (no init file),
# org-version: Org-mode version 8.2.10
# To create .ics file: Type C-c C-e c f (tried several times).


* Test
  :PROPERTIES:
  :ID:       9d651619-1322-4619-89bc-4855c769e124
  :END:
** <2015-08-11 12:00> Simple event, default duration
   :PROPERTIES:
   :ID:       71def5c6-2f7e-4560-88d9-f13187bfd9f8
   :END:
** <2015-08-12 12:00>-<2015-08-12 12:59> Event with specified duration
   :PROPERTIES:
   :ID:       d8056b59-c841-451c-b0b7-bbf8e8695838
   :END:
** <2015-08-13 12:00> Event at non-default location
   :PROPERTIES:
   :LOCATION: My home, Vodskov, Denmark
   :ID:       873a07ed-e059-41f9-8d76-c9c943a6afc6
   :END:
** <2015-08-13 12:00> Event with description
   :PROPERTIES:
   :ID:       3f182ce8-f8e2-4495-8749-e9f84b0a7aa7
   :END:
Some text description

* Local variables
  :PROPERTIES:
  :ID:       deb438aa-d0e5-435b-8fa7-7c7ddc5a85a3
  :END:
# Local Variables:
# org-icalendar-store-UID: t
# org-icalendar-include-body: t
# org-agenda-default-appointment-duration: 180
# End:

*ics file exported with 7.9.3f:*
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Test
PRODID:-//Benny Simonsen//Emacs with Org-mode//EN
X-WR-TIMEZONE:CEST
X-WR-CALDESC:nil
CALSCALE:GREGORIAN
BEGIN:VEVENT
UID: TS-71def5c6-2f7e-4560-88d9-f13187bfd9f8
DTSTART:20150811T120000
DTEND:20150811T150000
SUMMARY: Simple event\, default duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
UID: TS-d8056b59-c841-451c-b0b7-bbf8e8695838
DTSTART:20150812T120000
DTEND:20150812T125900
SUMMARY: Event with specified duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
UID: TS-873a07ed-e059-41f9-8d76-c9c943a6afc6
DTSTART:20150813T120000
DTEND:20150813T150000
SUMMARY: Event at non-default location
LOCATION: My home\, Vodskov\, Denmark
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
UID: TS-3f182ce8-f8e2-4495-8749-e9f84b0a7aa7
DTSTART:20150813T120000
DTEND:20150813T150000
SUMMARY: Event with description
DESCRIPTION: Some text description
CATEGORIES:Test
END:VEVENT
END:VCALENDAR

*ics file exported with 8.2.10:*
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:test
PRODID:-//Benny Simonsen//Emacs with Org mode//EN
X-WR-TIMEZONE:CEST
X-WR-CALDESC:Test
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-71def5c6-2f7e-4560-88d9-f13187bfd9f8
DTSTART:20150811T120000
DTEND:20150811T150000
SUMMARY:<2015-08-11 12:00> Simple event, default duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-d8056b59-c841-451c-b0b7-bbf8e8695838
DTSTART:20150812T120000
DTEND:20150812T150000
SUMMARY:<2015-08-12 12:00>-<2015-08-12 12:59> Event with specified duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS2-d8056b59-c841-451c-b0b7-bbf8e8695838
DTSTART:20150812T125900
DTEND:20150812T155900
SUMMARY:<2015-08-12 12:00>-<2015-08-12 12:59> Event with specified duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-873a07ed-e059-41f9-8d76-c9c943a6afc6
DTSTART:20150813T120000
DTEND:20150813T150000
SUMMARY:<2015-08-13 12:00> Event at non-default location
LOCATION:My home, Vodskov, Denmark
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-3f182ce8-f8e2-4495-8749-e9f84b0a7aa7
DTSTART:20150813T120000
DTEND:20150813T150000
SUMMARY:<2015-08-13 12:00> Event with description
DESCRIPTION:Some text description
CATEGORIES:Test
END:VEVENT
END:VCALENDAR

[-- Attachment #2: Type: text/html, Size: 7300 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Exporting calender to ical
  2015-08-10 15:29 Exporting calender to ical Benny Simonsen
@ 2015-08-13  2:45 ` Matt Lundin
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Lundin @ 2015-08-13  2:45 UTC (permalink / raw)
  To: Benny Simonsen; +Cc: emacs-orgmode

Benny Simonsen <benny@slbs.dk> writes:

> ** <2015-08-11 12:00> Simple event, default duration
> :PROPERTIES:
> :ID: 71def5c6-2f7e-4560-88d9-f13187bfd9f8
> :END:

How did you produce these timestamps? Org-mode always includes a day of
week when it generates a timestamp. E.g., if I adjust the timestamp with
shift-up or shift-right, org-mode automatically fixes it to:

* <2015-08-11 Tue 12:00> Simple event, default duration

> - All subjects have got the timestamp in the subject

That said, even with the correct timestamp syntax, I can confirm that
org-icalendar-export-to-ics leaves the timestamp in the
headline/summary. However, placing the timestamp beneath the headline
works fine:

* Simple event, default duration
  <2015-08-11 Tue 12:00>

...results in...

--8<---------------cut here---------------start------------->8---
BEGIN:VEVENT
DTSTAMP:20150813T023625Z
UID:TS1-baefe3e9-6317-4d41-b609-98787e373c81
DTSTART:20150811T120000
DTEND:20150811T140000
SUMMARY:Simple event, default duration
DESCRIPTION:<2015-08-11 Tue 12:00>
CATEGORIES:inbox
END:VEVENT
--8<---------------cut here---------------end--------------->8---

> - Duration is the default duration even for even for events with a
> time-interval
> - Events with time-interval is show double

[...]

> ** <2015-08-12 12:00>-<2015-08-12 12:59> Event with specified duration
> :PROPERTIES:
> :ID: d8056b59-c841-451c-b0b7-bbf8e8695838
> :END:

I believe this syntax for duration is incorrect. It does not even work
with org-mode's agenda. E.g., the agenda line looks like this:

  inbox:      12:00...... <2015-08-12 >-<2015-08-12 12:59> Event with specified duration

The correct syntax for duration is...

<2015-08-12 Wed 12:00-12:59>

When I use that, the duration exports correctly to ics. See
http://orgmode.org/manual/Timestamps.html for more details.

Hope this helps.
Matt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Exporting calender to ical
@ 2015-08-13  5:08 Benny Simonsen
  0 siblings, 0 replies; 3+ messages in thread
From: Benny Simonsen @ 2015-08-13  5:08 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Matt Lundin

[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]

2015-08-13 4:45 GMT+02:00 Matt Lundin <mdl@imapmail.org>:

> Benny Simonsen <benny@slbs.dk> writes:
>
> > ** <2015-08-11 12:00> Simple event, default duration
> > :PROPERTIES:
> > :ID: 71def5c6-2f7e-4560-88d9-f13187bfd9f8
> > :END:
>
> How did you produce these timestamps?


I have made the timestamp by hand and I propably found that it didn't
change anything, so it was faster not including the day of week.



> * Simple event, default duration
>   <2015-08-11 Tue 12:00>
>
> ...results in...
>
> DESCRIPTION:<2015-08-11 Tue 12:00>
>

We still have the timestamp but just moved to DESCRIPTION.

I would normally like to get it completely removed.

Maybe I should make an option for removing active timestamps in the header
or postprocess the ics file for my special usage.


<2015-08-12 Wed 12:00-12:59>
>
[cut]

>
> When I use that, the duration exports correctly to ics. See
> http://orgmode.org/manual/Timestamps.html for more details.
>


Great - Much easer to read.


>
> Hope this helps.
> Matt
>

Yes, thank you.

[-- Attachment #2: Type: text/html, Size: 2382 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-13  5:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10 15:29 Exporting calender to ical Benny Simonsen
2015-08-13  2:45 ` Matt Lundin
  -- strict thread matches above, loose matches on Subject: below --
2015-08-13  5:08 Benny Simonsen

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