W3C home > Mailing lists > Public > www-rdf-calendar@w3.org > January 2004

Re: cal2rdf.pl > v1.13 does not like X-WR-CALNAME before PRODID

From: Libby Miller <Libby.Miller@bristol.ac.uk>
Date: Tue, 20 Jan 2004 10:14:20 +0000 (GMT)
To: olivier Thereaux <ot@zoy.org>
Cc: www-rdf-calendar@w3.org, Libby Miller <Libby.Miller@bristol.ac.uk>
Message-ID: <Pine.GSO.4.58.0401201013110.16661@mail.ilrt.bris.ac.uk>




On Tue, 20 Jan 2004, olivier Thereaux wrote:

>
>
> On Jan 19, 2004, at 6:14, Libby Miller wrote:
> > I've done a quick fix for this, but my perl is very bad and I'm sure
> > others can suggest a better way of doing it - I open and close the file
> > twice.
>
> I am yet to familiarize with the code, but I think I found a way to do
> that without opening the file twice...
>
> If I am not mistaken you take all the output in a string and output it
> all once the whole file has been parsed. (cf sub printstr{} line 602).
> It means you could as well parse the whole file, and save the PRODID
> when it appears.
> Then at the EOF make the necessary subtitutions (you may have to use a
> "dummy" prodid during the parsing) in the output string.
>

That sounds good.

> I suppose that would be faster if the ics file is really big. If you
> want (and time permitting) I can send you a patch.

If you have time that would be fantastic (or just update the code and
I'll test it).

Thanks olivier,

Libby
Received on Tuesday, 20 January 2004 05:25:23 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Friday, 25 March 2005 11:20:43 GMT