Presentation mostly consist of motions of sections
(specified by movement of two their ends),
and also of changes of colours of nodes and sections and colours of other objects.
It's necessary to group not only two motions (two ends of line),
but also motion of many lines through different time interval.
It's more comfortable to write this finite automaton by listing
saments,
instead of writing functions by JavaScript
(by the way, only not attached points of broken line
can execute sament dot
,
i.e. all intermediate points and, if it is not attached, one of end's points).
Let's write down all presentations in a separate file,
for example, "b.txt", and add following tag inside tag
head
event(instead of
ns), that it's possible to change reaction on event in one file of transition sheet, instead in many server's scripts.
browserserver | presentation, browserserver |
<dot name= id= event= os= ns= x= y= > <dot name= id= event=del> <dad name= id= onname= onid= > <section name= id= event= os= ns= > <_ name= event= arg= arg2= > <obj name= event= os= ns= > <pres name= event= os= exec= > |
<dot name= id= event= x= y= time= > <dot name= id= event= x= y= speed= > <dot name= id= event=del time= > <dot name= id= event=del speed= > <section name= id= ns= > <_ name= event= arg= arg2= > <obj name= ns= > <pres name= exec= > <sound src= > <say type= data= class= > |
When it's necessary, that location of point will changed not by jump,
but smoothly, during some time, attribute time
is used,
which defines time of moving.
If not time, but speed is need to be set, then atribute
speed
is used in millimeters per second
(mm/sec).
Absence of both these parameters is equivalent to
time
= 0 and speed
= ∞
Parameters time
and speed
are exclusive mutually.
It's necessary in some cases, that browser announce a speech comment or play a sound file. There are following sources of a sound:
saywith parameters: source type, source, style (of aural style sheet) and name they as
type,
data,
class. Values of
typeare the following:
data. It's default value.
id
of which is equal to specified in attribute
data
datain seconds
class:
volume
,
pitch
, pitch-rate
,
voice-family
, richness
,
azimuth
, elevation
,
speech-rate
,
speech-punctation
, speech-numeral
,
play-during
.
soundwith attribute
src- it's necessary to pronounce contents of sound file, which path is specified in attribute
src
Browser executes saments consistently. It executes saments simultaneously, which are inside sament <<>>. It execute consistently such saments inside simultaneous part of execution, which are inside sament <>. When change of a state, of a location and playing a sound occur simultaneously, then duration of this simultaneous event is equal to greatest of duration.
<pn> <<>> <dot name=B id=10 x=50 y=70> <dot name=C id=20 x=80 y=90> <</>> <<>> <obj name=D ns=style-n> <obj name=E ns=style-p> <</>> </pn> |
<pn> <<>> <<>> <dot name=B id=10 x=50 y=70> <dot name=C id=20 x=80 y=90> <</>> <obj name=D ns=style-n> <</>> <obj name=E ns=style-p> </pn> |
Presentation has facultative attribute class
,
which refers to usual css-file, attached to html-document.
doze), synchronism (
sync), cycleness (
cycle), listed in a separate file.
Parameter doze
specifies, how presentation should react,
if it will be started once more by
user or server
during execution time.
Browser don't pay attention at other presentations during that.
Parameter sync
specifies,
when other presentation should be executed, which is started during executing of this presentation.
Parameter cycle
specifies quantity of repetitions of executing.
It can be an integer or value
loop, specifing to repeat indefinitely.
Parameter is equal to one by default (play one time).
If object, which call presentation, is inside tag form
,
then browser informs server about performance of a presentation.
Form sends data only after executing of presentation.
Browser does not check possibility of performance of all commands in presentation
before a beginning of performance.