* ical2org.py
@ 2013-05-12 10:04 aitor
2013-05-14 8:37 ` ical2org.py Bastien
2013-05-21 11:19 ` ical2org.py Eric S Fraga
0 siblings, 2 replies; 11+ messages in thread
From: aitor @ 2013-05-12 10:04 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I've implemented a little script which converts ics files to
org-mode. You can find the script here:
https://github.com/asoroa/ical2org.py
It is equivalent to the awk script from Eric S. Fraga located here:
http://orgmode.org/worg/org-tutorials/org-google-sync.html
It's main differences being:
- it only converts the events which fall into a timeframe (by default 3
months before and after the current day)
- it handles recurrent events of 'dayly', 'weekly' and 'yearly' types.
- it also deals correctly with timezones etc.
best,
aitor
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ical2org.py
2013-05-12 10:04 ical2org.py aitor
@ 2013-05-14 8:37 ` Bastien
2013-05-14 20:40 ` ical2org.py Simon Thum
2013-05-21 11:19 ` ical2org.py Eric S Fraga
1 sibling, 1 reply; 11+ messages in thread
From: Bastien @ 2013-05-14 8:37 UTC (permalink / raw)
To: aitor; +Cc: emacs-orgmode
aitor <aitors2005@gmail.org> writes:
> I've implemented a little script which converts ics files to
> org-mode. You can find the script here:
>
> https://github.com/asoroa/ical2org.py
Great -- would be nice to add this to Worg!
--
Bastien
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ical2org.py
2013-05-14 8:37 ` ical2org.py Bastien
@ 2013-05-14 20:40 ` Simon Thum
2013-05-14 22:56 ` ical2org.py Bastien
0 siblings, 1 reply; 11+ messages in thread
From: Simon Thum @ 2013-05-14 20:40 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode, aitor
On 05/14/2013 10:37 AM, Bastien wrote:
> aitor <aitors2005@gmail.org> writes:
>
>> I've implemented a little script which converts ics files to
>> org-mode. You can find the script here:
>>
>> https://github.com/asoroa/ical2org.py
>
> Great -- would be nice to add this to Worg!
Yes, more or less.
We now have (if I did not miscount someting) 3 python, 2 elisp and one
ruby implementation of ical2org. I did not even look for those named in
less obvious ways, although I know there is at least one.
It's going to be confusing if we add them all.
Cheers,
Simon
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ical2org.py
2013-05-14 20:40 ` ical2org.py Simon Thum
@ 2013-05-14 22:56 ` Bastien
2013-05-15 8:01 ` ical2org.py aitor
0 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2013-05-14 22:56 UTC (permalink / raw)
To: Simon Thum; +Cc: emacs-orgmode, aitor
Hi Simon,
Simon Thum <simon.thum@gmx.de> writes:
> It's going to be confusing if we add them all.
On the contrary -- I think collecting all the information about
various solutions in the same place is the only way to encourage
comparisons, which is the best way to let one solution emerge,
if needed.
2 cts of course,
--
Bastien
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ical2org.py
2013-05-14 22:56 ` ical2org.py Bastien
@ 2013-05-15 8:01 ` aitor
2013-05-16 19:41 ` ical2org.py Simon Thum
0 siblings, 1 reply; 11+ messages in thread
From: aitor @ 2013-05-15 8:01 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Bastien, Simon Thum
Hi,
On Wed, May 15, 2013 at 12:56:02AM +0200, Bastien wrote:
> Hi Simon,
>
> Simon Thum <simon.thum@gmx.de> writes:
>
> > It's going to be confusing if we add them all.
>
> On the contrary -- I think collecting all the information about
> various solutions in the same place is the only way to encourage
> comparisons, which is the best way to let one solution emerge,
> if needed.
indeed. Should I've known there were already so many implementations of
ical2org I wouldn't have created mine! Silly thing is, it never ocurred
to me to just search "ical2org" on google.
best,
aitor
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ical2org.py
2013-05-15 8:01 ` ical2org.py aitor
@ 2013-05-16 19:41 ` Simon Thum
2013-05-16 19:47 ` ical2org.py Bastien
0 siblings, 1 reply; 11+ messages in thread
From: Simon Thum @ 2013-05-16 19:41 UTC (permalink / raw)
To: aitor; +Cc: Bastien, emacs-orgmode
On 05/15/2013 10:01 AM, aitor wrote:
> Hi,
>
> On Wed, May 15, 2013 at 12:56:02AM +0200, Bastien wrote:
>> Hi Simon,
>>
>> Simon Thum <simon.thum@gmx.de> writes:
>>
>>> It's going to be confusing if we add them all.
>>
>> On the contrary -- I think collecting all the information about
>> various solutions in the same place is the only way to encourage
>> comparisons, which is the best way to let one solution emerge,
>> if needed.
>
> indeed. Should I've known there were already so many implementations of
> ical2org I wouldn't have created mine! Silly thing is, it never ocurred
> to me to just search "ical2org" on google.
Similar here, I just checked Worg. However I had some special wishes
unlikely to be covered, so I was prepared to hack anyway.
I recall to have lost my worg pushability, Bastien can you check? I
would reorganize this a bit to make it clearer, and do not want to push
something just to know.
@aitor if you have some info how your impl compares let the list know.
Cheers,
Simon
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ical2org.py
2013-05-12 10:04 ical2org.py aitor
2013-05-14 8:37 ` ical2org.py Bastien
@ 2013-05-21 11:19 ` Eric S Fraga
2013-05-21 11:54 ` ical2org.py François Pinard
2013-05-21 13:10 ` ical2org.py Guido Van Hoecke
1 sibling, 2 replies; 11+ messages in thread
From: Eric S Fraga @ 2013-05-21 11:19 UTC (permalink / raw)
To: aitor; +Cc: emacs-orgmode
aitor <aitors2005@gmail.org> writes:
> Hi,
>
> I've implemented a little script which converts ics files to
> org-mode. You can find the script here:
>
> https://github.com/asoroa/ical2org.py
Aitor,
I would like to try this out but, as I am not a python user, I have no
idea how to get the two bits you indicate being necessary (icalendar,
pytz) installed. I have installed python-dateutil and python-pycalendar
as these looked the most obvious candidates for icalendar but no
luck. Searching the repositories for pytz draws a blank as well.
,----
| $ ~/git/ical2org.py/ical2org.py
| Traceback (most recent call last):
| File "/home/ucecesf/git/ical2org.py/ical2org.py", line 5, in <module>
| from icalendar import Calendar
| ImportError: No module named icalendar
| $
`----
I am using Ubuntu.
Anyway help would be most welcome.
thanks,
eric
--
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_8.0.2-94-g5a1400
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ical2org.py
2013-05-21 11:19 ` ical2org.py Eric S Fraga
@ 2013-05-21 11:54 ` François Pinard
2013-05-21 13:10 ` ical2org.py Guido Van Hoecke
1 sibling, 0 replies; 11+ messages in thread
From: François Pinard @ 2013-05-21 11:54 UTC (permalink / raw)
To: emacs-orgmode
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> I am not a python user [...]
Hi, Eric. Nobody is perfect :-). Regards, François
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ical2org.py
2013-05-21 11:19 ` ical2org.py Eric S Fraga
2013-05-21 11:54 ` ical2org.py François Pinard
@ 2013-05-21 13:10 ` Guido Van Hoecke
2013-05-21 15:09 ` ical2org.py aitor
1 sibling, 1 reply; 11+ messages in thread
From: Guido Van Hoecke @ 2013-05-21 13:10 UTC (permalink / raw)
To: Eric S Fraga; +Cc: emacs-orgmode, aitors2005
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> aitor <aitors2005@gmail.org> writes:
>
>> Hi,
>>
>> I've implemented a little script which converts ics files to
>> org-mode. You can find the script here:
>>
>> https://github.com/asoroa/ical2org.py
>
> Aitor,
>
> I would like to try this out but, as I am not a python user, I have no
> idea how to get the two bits you indicate being necessary (icalendar,
> pytz) installed. I have installed python-dateutil and python-pycalendar
> as these looked the most obvious candidates for icalendar but no
> luck. Searching the repositories for pytz draws a blank as well.
I got iCalendar from https://pypi.python.org/pypi/icalendar, untarred it
and ran `sudo python setup.py install'
Got pytz from https://pypi.python.org/pypi/pytz/. It comes as an egg
file so you just run `sudo easy-install pytz-2013b-py2.7.egg'
This command should get you going:
`./ical2org.py input.ics > output.org
Hope this helps,
Guido
--
Ever since prehistoric times, wise men have tried to understand what,
exactly, make people laugh. That's why they were called "wise men."
All the other prehistoric people were out puncturing each other with
spears, and the wise men were back in the cave saying: "How about:
Would you please take my wife? No. How about: Here is my wife, please
take her right now. No. How about: Would you like to take something?
My wife is available. No. How about ..."
-- Dave Barry, "Why Humor is Funny"
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-05-21 15:10 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-12 10:04 ical2org.py aitor
2013-05-14 8:37 ` ical2org.py Bastien
2013-05-14 20:40 ` ical2org.py Simon Thum
2013-05-14 22:56 ` ical2org.py Bastien
2013-05-15 8:01 ` ical2org.py aitor
2013-05-16 19:41 ` ical2org.py Simon Thum
2013-05-16 19:47 ` ical2org.py Bastien
2013-05-21 11:19 ` ical2org.py Eric S Fraga
2013-05-21 11:54 ` ical2org.py François Pinard
2013-05-21 13:10 ` ical2org.py Guido Van Hoecke
2013-05-21 15:09 ` ical2org.py aitor
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).