[Laszlo-dev] Subtitles system

Henry Minsky hminsky at laszlosystems.com
Mon Jun 2 17:16:12 PDT 2008


Sounds like you want to build some sort of a "timeline" data structure,
which would be
a kind of hash table or array that you can index quickly with a key to find
out
all events that occur closest before and after that key. I'm not sure what
the best data structure for
this would be, but some sort of comparison tree  with linked pointers from
event to event maybe.


On Mon, Jun 2, 2008 at 5:46 PM, Yannick Warnier <ywarnier at beeznest.org>
wrote:

> Hello,
>
> I would like to implement a kind of subtitles feature for an animated
> character. I'm trying to get my head around the problem, but the only
> type of solution I got so far is to make a timer check every tenth of
> second if there is something new to display.
>
> My idea of the subtitles file is to have an XML structure of this kind:
> <subtitles>
>  <subtitle time="00:00:00.0">Welcome</subtitle>
>  <subtitle time="00:00:00.0">This animation will take you
> through ...</subtitle>
>  ...
> </subtitles>
>
> However, considering how easy it is, in OpenLaszlo, to use datasets from
> XML files, I was wondering if there would be any special mechanism to
> build an "animation" (in the OpenLaszlo sense) based on a dataset's time
> markers, somehow, and that would make this little project far easier to
> implement.
>
> I'm open to any interesting suggestion...
>
> Yannick
>
>


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080602/dde76ea3/attachment.html


More information about the Laszlo-dev mailing list