Re: [Flashcoders] parsing newlines in textdocuments

2008-09-24 Thread EECOLOR
I think I would go for this:

Replace the \r\n with \n and then split on \n.


Greetz Erik


On 9/8/08, Martin Klasson <[EMAIL PROTECTED]> wrote:
> Hi Coders,
>
> I am gonna to make a parser for the MicroDVD subtitle format,
> but I am not being able to find the documentation, yet a simple example for
> how it looks.
>
> but the problem I know I will have is how to parse a text-file that are
> having linebreaks,
> since they appearantly are different if the textfile has been on a
> mac/unix/windows
>
> I hope anyone here can point out for me how to deal with this.
>
> Why I am using the MicroDVD is that the time-codes is being in frames and
> not seconds,
> which will make it easier for the one producing the swf's which will be
> loaded as our "movies",
> to be able to synch that together with the animations and so on.
>
> but any input is welcome of course!
>
>
> --
>
> Martin Klasson
> Flash Developer
> Parkgatan 9-11
> S-411 24 Göteborg
> Sweden
> Office +46 (0) 31 711 54 50
> Cell +46 (0) 730 964 561
> [EMAIL PROTECTED]
> www.kokokaka.com
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] parsing newlines in textdocuments

2008-09-08 Thread Martin Klasson
Hi Coders,

I am gonna to make a parser for the MicroDVD subtitle format,
but I am not being able to find the documentation, yet a simple example for
how it looks.

but the problem I know I will have is how to parse a text-file that are
having linebreaks,
since they appearantly are different if the textfile has been on a
mac/unix/windows

I hope anyone here can point out for me how to deal with this.

Why I am using the MicroDVD is that the time-codes is being in frames and
not seconds,
which will make it easier for the one producing the swf's which will be
loaded as our "movies",
to be able to synch that together with the animations and so on.

but any input is welcome of course!


-- 

Martin Klasson
Flash Developer
Parkgatan 9-11
S-411 24 Göteborg
Sweden
Office +46 (0) 31 711 54 50
Cell +46 (0) 730 964 561
[EMAIL PROTECTED]
www.kokokaka.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders