[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading time-events and time groups



"Fiona M Richardson" <F.1.Richardson@herts.ac.uk> writes:
> I am currently working in rbp and am using time environments. Quite a few
> months back I found that the readtext function in the time_environment
> doesn't seem to work properly, in that it creates
> normal groups instead of time_groups which have an associated end-time.
> Anyway, I adapted the make-event-groups.css file so that it would create
> time events and time_event_mgroups and add the apropriate time for each
> time-event. However, another thing I want to be able to do is to
> have two different event-specs which can be associated with different
> time-events within a group. I was wondering what the easiest way to do this
> is, given that my environments are pretty large.

I would just modify your script to set the event spec for each event,
as indicated by a tag in your file or perhaps just by the time, or
whatever.  Here's a code fragment:

Event* ev = <cur event>;
EventSpec* es = environment.event_specs.<SpecName>;
ev->SetSpec(es);


				- Randy