* icalender export: limited number of repeated events
@ 2008-06-16 9:07 knubee
2008-06-16 15:57 ` Carsten Dominik
0 siblings, 1 reply; 4+ messages in thread
From: knubee @ 2008-06-16 9:07 UTC (permalink / raw)
To: emacs-orgmode
I need to share some of my calendar data with co-workers. One of
the biggest limitations I encounter with emacs/icalender is that
it does not seem to support a limited number of repeated events.
As far as I can tell, the way to specify this is with regular
expressions. Example:
* TODO Something every Sunday, 10:00-12:00, for 2 months
SCHEDULED: <%%(and (= (calendar-day-of-week date) 7)
(diary-block 1 6 200 31 7 2008)) 10:00-12:00>
I have not been able to figure out how to export these to an .ics
file.
Google calendar, on the other hand, will export something like
the following:
BEGIN:VEVENT
DTSTART:20080601T100000
DTEND:20080601T120000
RRULE:FREQ=DAILY;UNTIL=20080731
Has anyone else managed to get a limited number of repeating
tasks/events to export correctly to .ics format?
thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: icalender export: limited number of repeated events
2008-06-16 9:07 icalender export: limited number of repeated events knubee
@ 2008-06-16 15:57 ` Carsten Dominik
2008-06-17 1:35 ` knubee
0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2008-06-16 15:57 UTC (permalink / raw)
To: knubee; +Cc: emacs-orgmode
Hi,
On Jun 16, 2008, at 11:07 AM, knubee wrote:
> I need to share some of my calendar data with co-workers. One of
> the biggest limitations I encounter with emacs/icalender is that
> it does not seem to support a limited number of repeated events.
>
> As far as I can tell, the way to specify this is with regular
> expressions. Example:
>
> * TODO Something every Sunday, 10:00-12:00, for 2 months
> SCHEDULED: <%%(and (= (calendar-day-of-week date) 7)
> (diary-block 1 6 200 31 7 2008)) 10:00-12:00>
>
> I have not been able to figure out how to export these to an .ics
> file.
Since iCal interpreters usually do not have access to Emacs lisp, it is
obviously impossible that the Emacs icalendar exporter could tranlate
sexp diary entries of arbitrary complexity. We can be happy that it
does handle the most common ones.
However, I did not know that the icalendar format actually supported
something like UNTIL in the RRULE line. So maybe we could teach the Org
exporter a syntax for this and export it properly. However, I don't
have a good idea for a syntax, and not much time to implement it now.
One way to hack this yourself would be the following:
- Add some UNTIL:20080610 or smilar cookie to the entry, either
to the headline or early in the body, so that it will end up
in the summary field. Make sure it does end up there, check the raw
.ics file that Org is producing.
- Use the new org-before-save-iCalendar-file-hook to find these
in the iCalendar file and turn them into an UNTIL field in
the RRULE line of the entry.
- When you are done, share this with us!
HTH
- Carsten
>
>
> Google calendar, on the other hand, will export something like
> the following:
>
> BEGIN:VEVENT
> DTSTART:20080601T100000
> DTEND:20080601T120000
> RRULE:FREQ=DAILY;UNTIL=20080731
>
> Has anyone else managed to get a limited number of repeating
> tasks/events to export correctly to .ics format?
>
> thanks.
>
>
>
>
>
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: icalender export: limited number of repeated events
2008-06-16 15:57 ` Carsten Dominik
@ 2008-06-17 1:35 ` knubee
2008-06-17 10:39 ` Richard G Riley
0 siblings, 1 reply; 4+ messages in thread
From: knubee @ 2008-06-17 1:35 UTC (permalink / raw)
To: emacs-orgmode
> However, I did not know that the icalendar format actually supported
> something like UNTIL in the RRULE line. So maybe we could teach the Org
> exporter a syntax for this and export it properly. However, I don't
> have a good idea for a syntax, and not much time to implement it now.
ok. it does seem like a fairly standard thing to do with calendars (ie, to have
repeating events that end after a certain number -- or after a certain date).
perhaps, in the future, it is worth implementing something that allows org-mode
user to specify something lik:
SCHEDULED: <2008-06-01 Sun +1w~10> ;repeats until 10 weeks after starting date
or
SCHEDULED: <2008-06-01 Sun +1w~2008-08-03> ;repeats until august 3
the actual symbols ("~") and syntax used above are probably bad, but hopefully
it captures the idea.
> - When you are done, share this with us!
it may be a bit beyond my abilities, but if i get something to work, i will
share it ;-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: icalender export: limited number of repeated events
2008-06-17 1:35 ` knubee
@ 2008-06-17 10:39 ` Richard G Riley
0 siblings, 0 replies; 4+ messages in thread
From: Richard G Riley @ 2008-06-17 10:39 UTC (permalink / raw)
To: knubee; +Cc: emacs-orgmode
knubee <knubee@gmail.com> writes:
>> However, I did not know that the icalendar format actually supported
>> something like UNTIL in the RRULE line. So maybe we could teach the Org
>> exporter a syntax for this and export it properly. However, I don't
>> have a good idea for a syntax, and not much time to implement it now.
>
> ok. it does seem like a fairly standard thing to do with calendars (ie, to have
> repeating events that end after a certain number -- or after a certain date).
> perhaps, in the future, it is worth implementing something that allows org-mode
> user to specify something lik:
>
> SCHEDULED: <2008-06-01 Sun +1w~10> ;repeats until 10 weeks after starting date
>
Possibly easier to bracket the extensions to the commonly understood
date syntax.
SCHEDULED: <2008-06-01 Sun +1w [*10]> ; 10 times at weekly intervals
> or
>
> SCHEDULED: <2008-06-01 Sun +1w~2008-08-03> ;repeats until august 3
SCHEDULED: <2008-06-01 Sun +1w [->2008-08-03] > ;repeats upto and
including until august 3
>
> the actual symbols ("~") and syntax used above are probably bad, but hopefully
> it captures the idea.
>
>> - When you are done, share this with us!
>
> it may be a bit beyond my abilities, but if i get something to work, i will
> share it ;-)
>
>
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-06-17 12:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 9:07 icalender export: limited number of repeated events knubee
2008-06-16 15:57 ` Carsten Dominik
2008-06-17 1:35 ` knubee
2008-06-17 10:39 ` Richard G Riley
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).