emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
To: emacs-orgmode@gnu.org
Subject: R: Problems with iCalendar export of my Calendar
Date: Tue, 11 Nov 2008 14:38:28 +0000 (GMT)	[thread overview]
Message-ID: <860153.85437.qm@web28304.mail.ukl.yahoo.com> (raw)
In-Reply-To: <87vduuwlfd.fsf@katana.lair>

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

--- Mar 11/11/08, Georg C. F. Greve <greve@fsfeurope.org> ha scritto:
> I still have problems when trying to
> share my information with others or other devices --
> especially in terms  of Calendar entries.
> 
> Below I have attached a (real) example of my trip to FSCONS
> in Sweden in Org mode format. In agenda view, I see the 
> following:
> 
> Friday      7 December 2007
>  example:         10:40...... Flight SK 602 Zurich to
> Copenhagen --[2007-12-07 Fri 12:25]
>  example:         14:10...... Flight SK 438 Copenhagen to
> Gothenburg --[2007-12-07 Fri 14:55]
>  example:         Gothenburg, Sweden --[2007-12-09 Sun]
>  example:         FSCONS conference --[2007-12-08 Sat]
> Saturday    8 December 2007
>  example:         17:15...... Speech at closing ceremony 
> Sunday      9 December 2007
>  example:         15:30...... Flight SK 439 Gothenburg to
> Copenhagen --[2007-12-09 Sun 16:15]
>  example:         17:40...... Flight SK 609 Copenhagen to
> Zurich --[2007-12-09 Sun 19:25]
> 
> Note how I am using the inactive tags to delimit periods,
> which makes sure that things covering more than one 
> day (e.g. being in a city, or a conference) only show up 
> on their first day with information on when they'll end.
> This is pretty much how I like it.

Well, don't you like the "default" org-mode:
with the number of days (1/3)  ?
[abba.org is the name of the file where I copied your setup]

----------------------------Agenda view---------------------
Week-agenda (W49):
Monday      3 December 2007 W49
Tuesday     4 December 2007
Wednesday   5 December 2007
Thursday    6 December 2007
Friday      7 December 2007
  abba:       10:40-12:25 Flight SK 602 Zurich to Copenhagen 
  abba:       14:10-14:55 Flight SK 438 Copenhagen to Gothenburg 
  abba:       (1/3):  Gothenburg, Sweden 
            ^^^^^^^^^

  abba:       (1/2):  FSCONS conference
Saturday    8 December 2007
  abba:       17:15...... Speech at closing ceremony
  abba:       (2/3):  Gothenburg, Sweden 
  abba:       (2/2):  FSCONS conference
Sunday      9 December 2007
  abba:       15:30-16:15 Flight SK 439 Gothenburg to Copenhagen
  abba:       17:40-19:25 Flight SK 609 Copenhagen to Zurich
  abba:       (3/3):  Gothenburg, Sweden 
-------------------------------------------------------
> 
> Now I want to share this with another application or
> device, and do an export to iCalendar. 
[...]
> they are not necessarily what one would call bugs of 
> Org Mode, but rather issues resulting from the way
> the file is structured.
[...]
> The question at hand is: How to improve the structure of
> the file,

I think your org file should be structured better
exploiting the :PROPERTIES: 

-------------- abba.org.-----------
    -*- mode: org; -*-
* Gothenburg, Sweden 
:PROPERTIES:
CLOCK:   <2007-12-07 Fri>--<2007-12-09 Sun>
:DESCRIPTION:  FSCONS conference & trip
:END:
** Flight SK 602 Zurich to Copenhagen 
CLOCK: <2007-12-07 Fri 10:40>--<2007-12-07 Fri 12:25>
** Flight SK 438 Copenhagen to Gothenburg 
CLOCK: <2007-12-07 Fri 14:10>--<2007-12-07 Fri 14:55>
** Taxi waiting at airport arrival gate in Gothenburg
** FSCONS conference
:PROPERTIES:
CLOCK: <2007-12-07 Fr>--<2007-12-08 Sat>
:LOCATION: Accomodation: Hotel Riverton  Stora Badhusgatan 26   411 21 Goteborg, Sverige  Telefon    +46 31 750 10 00   Fax    +46(31)7501001
:END:
** Speech at closing ceremony
CLOCK:  <2007-12-08 Sat 17:15>
** Flight SK 439 Gothenburg to Copenhagen
CLOCK:  <2007-12-09 Sun 15:30>--<2007-12-09 Sun 16:15>
** Flight SK 609 Copenhagen to Zurich
CLOCK:  <2007-12-09 Sun 17:40>--<2007-12-09 Sun 19:25>
---------------------------

this file produces a correct iCal output (uploaded correctly 
to WebCal) (see attached file)

> can we put this into the documentation so users get an 
> idea of the canonical structure for calendars in Org Mode?

The documentation:

12.9 iCalendar export

appears quite clear to me:

"The export will honor SUMMARY, DESCRIPTION and LOCATION 

   properties 
^^^^^^^^^^^^^

if the selected entries have them.  If not, the summary will be derived
from the headline, and the description from the body (limited to
`org-icalendar-include-body' characters). "


cheers,
Giovanni


      Unisciti alla community di Io fotografo e video, il nuovo corso di fotografia di Gazzetta dello sport:
http://www.flickr.com/groups/iofotografoevideo

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: abba.ics --]
[-- Type: text/calendar; name="abba.ics", Size: 1507 bytes --]

BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:abba
PRODID:-//Giovanni Ridolfi//Emacs with Org-mode//EN
X-WR-TIMEZONE:+0100
CALSCALE:GREGORIAN
BEGIN:VEVENT
UID: TS-0uxhsjq0tfe0@cencerbo.it
DTSTART;VALUE=DATE:20071207
DTEND;VALUE=DATE:20071210
SUMMARY:Gothenburg\, Sweden
DESCRIPTION: FSCONS conference & trip
CATEGORIES:abba
END:VEVENT
BEGIN:VEVENT
UID: TS-0uxhsjq0tfe0@cencerbo.it
DTSTART:20071207T104000
DTEND:20071207T122500
SUMMARY:Flight SK 602 Zurich to Copenhagen
CATEGORIES:abba
END:VEVENT
BEGIN:VEVENT
UID: TS-0uxhsjq0tfe0@cencerbo.it
DTSTART:20071207T141000
DTEND:20071207T145500
SUMMARY:Flight SK 438 Copenhagen to Gothenburg
CATEGORIES:abba
END:VEVENT
BEGIN:VEVENT
UID: TS-ge50tjq0tfe0@cencerbo.it
DTSTART;VALUE=DATE:20071207
DTEND;VALUE=DATE:20071209
SUMMARY:FSCONS conference
LOCATION: Accomodation: Hotel Riverton  Stora Badhusgatan 26   411 21 Goteborg\, Sverige  Telefon    +46 31 750 10 00   Fax    +46(31)7501001
CATEGORIES:abba
END:VEVENT
BEGIN:VEVENT
UID: TS-ge50tjq0tfe0@cencerbo.it
DTSTART:20071208T171500
DTEND:20071208T191500
SUMMARY:Speech at closing ceremony
CATEGORIES:abba
END:VEVENT
BEGIN:VEVENT
UID: TS-ge50tjq0tfe0@cencerbo.it
DTSTART:20071209T153000
DTEND:20071209T161500
SUMMARY:Flight SK 439 Gothenburg to Copenhagen
CATEGORIES:abba
END:VEVENT
BEGIN:VEVENT
UID: TS-ge50tjq0tfe0@cencerbo.it
DTSTART:20071209T174000
DTEND:20071209T192500
SUMMARY:Flight SK 609 Copenhagen to Zurich
CATEGORIES:abba
END:VEVENT
END:VCALENDAR

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2008-11-11 14:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-11 11:29 Problems with iCalendar export of my Calendar Georg C. F. Greve
2008-11-11 14:38 ` Giovanni Ridolfi [this message]
2008-11-11 18:19   ` R: " Georg C. F. Greve
2008-11-11 19:31     ` Carsten Dominik
2008-11-12 10:49       ` Georg C. F. Greve
2008-11-12 16:44         ` RFC 2445 compliance of org mode (was: Re: R: Problems with iCalendar export of my Calendar) Georg C. F. Greve

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=860153.85437.qm@web28304.mail.ukl.yahoo.com \
    --to=giovanni.ridolfi@yahoo.it \
    --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).