HiSoftwareŽ
Hi-Caption™ SE for
use with MacromediaŽ
Flash™ - XML
Captioning File DTD
The Hi-Caption
extension for Flash
allows you to
provide a captioning
control panel for
your flash
presentations and
movies. This
extension can read a
XML file to provide
the Captioning. This
file is created
(optionally) by
Hi-Caption SE.
The Hi-Caption
SE XML Format DTD
Download the DTD:
http://www.hisoftware.com/public/hicaptionxml.dtd
Hi-Caption SE
XML Caption File
Example:
http://www.hisoftware.com/hmccflash/seattle.xml
DTD
Multi Language
Example XML
Captioning File
Example
DTD
<!--
Copyright 2003
HiSoftware, Inc.
All Rights
Reserved. -->
<!ELEMENT
HiCaptionCC (hmccheader,captionset+)>
<!ELEMENT
hmccheader (ccCopyright?,ccMedia?,ccMetrics,ccStyles)>
<!ELEMENT
ccCopyright
EMPTY>
<!ATTLIST
ccCopyright
copyrightVal
CDATA #REQUIRED
>
<!ELEMENT
ccMedia EMPTY>
<!ATTLIST
ccMedia
mediaFile CDATA
#REQUIRED
>
<!ELEMENT
ccMetrics EMPTY>
<!ATTLIST
ccMetrics
timing (ms|frames)
#REQUIRED
duration CDATA
#REQUIRED
>
<!ELEMENT
ccStyles (ccStyle+)>
<!ELEMENT
ccStyle (#PCDATA)>
<!ATTLIST
ccStyle
ccStyleName
CDATA #REQUIRED
ccStyleType (caption|id|tag)
#REQUIRED
ccLang CDATA
#IMPLIED
ccName CDATA
#IMPLIED
>
<!ELEMENT
captionset
(cc+)>
<!ATTLIST
captionset
styleClass CDATA
#REQUIRED
>
<!ELEMENT cc (speaker,caption)>
<!ATTLIST cc
start CDATA
#REQUIRED
>
<!ELEMENT
speaker (#PCDATA)>
<!ATTLIST
speaker
styleId CDATA
#REQUIRED
>
<!ELEMENT
caption (#PCDATA)>
top
Sample XML
<HiCaptionCC>
<hmccheader>
<ccMedia
mediaFile="seattle.wmv"
/>
<ccMetrics
timing="ms"
duration="34216"
/>
<ccStyles>
<ccStyle
ccStyleName="P"
ccStyleType="tag">
margin-top:3pt;
margin-left:5pt;
font-size:
10pt;
font-family:
tahoma,
sans-serif;
font-weight:
normal;
color:
white;
</ccStyle>
<ccStyle
ccStyleName="ENUSCC"
ccStyleType="caption"
ccLang="en-US"
ccName="'English
Captions'
lang:
en-US">
Name:'English
Captions'
lang: en-US;
SAMIType:CC;
</ccStyle>
<ccStyle
ccStyleName="escc-blanca"
ccStyleType="caption"
ccLang="es"
ccName="escc-blanca">
name:escc-blanca;
lang:es;
font-family:Verdana;
font-style:normal;
font-weight:normal;
font-size:10pt;
text-align:left;
</ccStyle>
</ccStyles>
</hmccheader>
<captionset
styleClass="ENUSCC">
<cc
start="1000">
<speaker
styleId="Source"></speaker>
<caption>Great
reason to
visit
Seattle,
brought to
you by two
out-of-staters.</caption>
</cc>
<cc
start="4000">
<speaker
styleId="Source"></speaker>
<caption>So
you know,
there's
lots of
great
reasons to
come visit
Seattle.</caption>
</cc>
<cc
start="7000">
<speaker
styleId="Source"></speaker>
<caption>That's
right, I
came here
because of
the
coffee.</caption>
</cc>
<cc
start="9000">
<speaker
styleId="Source"></speaker>
<caption>Yah,
everyone
knows the
coffee.</caption>
</cc>
<cc
start="12000">
<speaker
styleId="Source"></speaker>
<caption>And
I heard
about the
drivers.</caption>
</cc>
<cc
start="14000">
<speaker
styleId="Source"></speaker>
<caption>Well,
you know,
but then it
rains...and
it's
bad,
it's
bad.</caption>
</cc>
<cc
start="19000">
<speaker
styleId="Source"></speaker>
<caption>But
the traffic
in general
is...</caption>
</cc>
<cc
start="21000">
<speaker
styleId="Source"></speaker>
<caption>Terrible.</caption>
</cc>
<cc
start="23000">
<speaker
styleId="Source"></speaker>
<caption>OK,
yah, yah.
But, the
weather!</caption>
</cc>
<cc
start="26500">
<speaker
styleId="Source"></speaker>
<caption>It
doesn't
rain all the
time...yes,
it
does.</caption>
</cc>
<cc
start="30000">
<speaker
styleId="Source"></speaker>
<caption>Yah.
Nevermind.</caption>
</cc>
<cc
start="34000">
<speaker
styleId="Source"></speaker>
<caption>End
of
Stream.</caption>
</cc>
</captionset>
<captionset
styleClass="escc-blanca">
<cc
start="1000">
<speaker
styleId="Source"></speaker>
<caption>Una
buena razón
para visitar
Seattle, que
te presentan
dos
foráneos</caption>
</cc>
<cc
start="4000">
<speaker
styleId="Source"></speaker>
<caption>Sabes,
hay montones
de buenas
razones para
venir a
visitar
Seattle.</caption>
</cc>
<cc
start="7000">
<speaker
styleId="Source"></speaker>
<caption>Es
verdad, yo
vengo por el
café.</caption>
</cc>
<cc
start="9000">
<speaker
styleId="Source"></speaker>
<caption>Sí,
todo el
mundo conoce
el
café.</caption>
</cc>
<cc
start="12000">
<speaker
styleId="Source"></speaker>
<caption>Y
he oído
hablar sobre
lo
conductores.</caption>
</cc>
<cc
start="14000">
<speaker
styleId="Source"></speaker>
<caption>Bien,
sabes, pero
entonces
llueve...y
es una pena.
es una
pena.</caption>
</cc>
<cc
start="19000">
<speaker
styleId="Source"></speaker>
<caption>Pero
el
tráfico
en general
es...</caption>
</cc>
<cc
start="21000">
<speaker
styleId="Source"></speaker>
<caption>Terrible.</caption>
</cc>
<cc
start="23000">
<speaker
styleId="Source"></speaker>
<caption>De
acuerdo,
sí,
sí.
Pero,
¡el
tiempo!</caption>
</cc>
<cc
start="26500">
<speaker
styleId="Source"></speaker>
<caption>No
llueve todo
el
tiempo...sí,
llueve.</caption>
</cc>
<cc
start="30000">
<speaker
styleId="Source"></speaker>
<caption>Si.
Da
igual.</caption>
</cc>
<cc
start="34000">
<speaker
styleId="Source"></speaker>
<caption>Fin.</caption>
</cc>
</captionset>
</HiCaptionCC>
top |