RealText provides many mark-up tags that define how the streaming text looks and operates. A tag's default value applies if you do not specify a tag value. You can place mark-up tags anywhere on a line.
![]() |
Note |
---|
When you are familiar with the tags, you can refer to "Summary of Text Tags". |
The following tags affect when and where the text appears within the window.
The <time/>
tags control the RealText presentation timeline by determining when a text component appears and disappears, respectively, relative to the start of the presentation. They are meant primarily for window text that does not scroll or crawl. If you do not specify begin times, RealPlayer displays all text as quickly as it can.
The <time/>
tag values are in 24-hour format, where dd
is days, hh
is hours, mm
is minutes, ss
is seconds, x
is tenths of seconds, y
is hundredths of seconds, and z
is milliseconds.Only the ss
field is required. When the time value does not include a decimal point, the last field is read as the seconds. For example, 1:30
means 1 minute and 30 seconds, whereas 1:30:00
means 1 hour and 30 minutes. Note that all the following values are equivalent. They all start the text component 90 minutes after the stream begins:
<time begin="1:30:00.0"/>
<time begin="90:00"/>
<time begin="5400"/>
Text with an end value is erased when the specified end value is reached. Otherwise it stays active until the presentation ends or the entire window is erased with <clear/>
. Note that you can combine the begin and end attributes in a single <time/>
tag as shown here:
<time begin="23" end="55.5"/>This text displays 23 seconds into the presentation and disappears at 55.5 seconds.
All text following a <time/>
tag has the specified begin and end values until new values are given. Once you specify an end time for a text component, you must specify an end time for all following components. For example, the following text would not display properly:
<time begin="23" end="55.5"/>Display at 23 seconds in.
<time begin="56"/>Display at 56 seconds in.
Because the second line does not include an end value, the previous end value of 55.5
still applies. The second line cannot be displayed because its begin time is later than its end time.
Here are some times on using <time/>
tags:
<time/>
tags are not necessary in a window with a non-zero scroll rate or crawl rate unless you want text to become visible after it has moved into the window, or to disappear before it moves out of the window.
<window>
tag's duration
has elapsed, do not set an end time. Or, have the end time exceed the window's duration:
<window duration="30">
...(some text elements)...
<time begin="25" end="31"/>Text that stays frozen onscreen.
</window>
<clear/>
tag.
This tag clears the existing text buffers to remove all text from the window. The text that follows this tag is then displayed starting at the window's normal starting point.
In a window that does not scroll or crawl, you can add <clear/>
after <time begin="..."/>
to erase existing text when new text arrives. For example, you would specify the following to clear old text and display "Hello!" at 3 minutes into the stream:
<time begin="3:00"/><clear/>Hello!
However, a <clear/>
tag does not remove text that has an end time that has not yet elapsed. Consider this example:
<time begin="5"/>They all lived happily.
<time begin="10" time end="20"/>And so our story ends.
<time begin="15"/><clear/>Goodbye!
The second line of text is set to end at 20 seconds. The <clear/>
tag, which begins at 15 seconds, does not clear this line because the line's end time has not elapsed. The <clear/>
tag removes the first line of text, though, which has no end time.
These tags position the text horizontally and vertically, respectively. The <pos y/>
tag moves the upper, left corner of the subsequent text block the specified number of pixels down from the window's top edge. The <pos x/>
tag indents the text block the specified number of pixels in addition to the two-pixel default padding that applies to all text blocks. You can combine both tags in a single tag like this:
<pos x="10" y="55"/>
![]() |
Note |
---|
These tags work only if scroll rate and crawl rate are both 0 (zero). |
These tags function only with TickerTape windows. They display the enclosed text at the window's upper (<tu>
) or lower (<tl>
) edge. When a tag specifies a color with the color option, the color applies to text enclosed by all subsequent tags of that type until another tag of that type changes the color. However, color specified for <tu>
elements does not affect color for <tl>
elements, and vice versa.
![]() |
Additional Information |
---|
Refer to "Colors" for a list of available colors. |
Much as in HTML, the following tags let you define the layout of RealText in the RealPlayer window.
Adds space between text. In TickerTape and Marquee windows, it moves the "cursor" to the right edge of the window. In all other window types, the <p>
and </p>
each cause the next text to display two lines down.
Adds space between text. In TickerTape and Marquee windows, it moves the "cursor" to the right edge of the window. In all other window types, this tag causes the text that follows to display on the next line.
For compatibility with HTML lists. Text between these tags is indented, but not numbered.
For compatibility with HTML lists. Text between these tags is indented, but not bulleted.
For compatibility with HTML lists. Acts like a <br/>
tag.
For compatibility with HTML horizontal rules. Acts as two <br/>
tags.
Used to center the enclosed text. Text is centered according to the actual window width, which may differ from the width attribute. These tags behave the same as HTML centering tags. The <center>
tag forces a line break if and only if a line break caused by a tag such as <br/>
, <p>
, or <hr/>
does not immediately precede it. The </center>
tag always causes a line break.
Works the same as in HTML. Text tagged with <pre>
uses the Courier font at the current size. For example, a preceding <font size="+1">
makes the preformatted text one size larger than the default font size. Line breaks, spaces, and tabs are preserved, with tabs defaulting to 64 pixels for 16 point text (the normal point size). Tab spaces are determined by dividing the text height by 2, then multiplying by 8.
![]() |
Additional Information |
---|
For information on text heights, see the "Font Sizes"
table. See also the <window> tag attribute
extraspaces="use|ignore" .
|
You can use the following set of tags to change the appearance of text.
These tags display the enclosed text bolded.
These tags display the enclosed text italicized.
These tags strike through the enclosed text.
These tags display the enclosed text underlined.
The <font>
tag lets you specify text characteristics. Like the HTML <FONT>
tag, it uses an end tag, </font>
, and can contain several attributes. For example:
<font size="+4" face="courier">...text...
</font>
RealText supports the following <font>
attributes:
bgcolor="
color
"
Use this <font>
tag attribute to set the text background color. The default is bgcolor="transparent"
.
![]() |
Additional Information |
---|
See "Colors". |
charset="
character set
"
With this <font>
tag attribute you can control the character set used to display the text:
"us-ascii"
-Default character set used with most RealText fonts.
"x-sjis"
-Character set for Kanji and the Osaka font.
"gb2312"
-Character set for Simplified Chinese.
"big5"
-Character set for Traditional Chinese.
color="
color
"
This <font>
tag attribute lets you control the font color. It supports all color values available in HTML. For TickerTape windows, however, this attribute has no effect. The <tu>
and <tl>
tags set the TickerTape text colors.
face="
font name
"
This <font>
tag attribute controls the text font. Use a font name from the "Windows Font Name" column of the following table, which lists fonts using the us-ascii
character set. If you specify no font, RealText uses Times New Roman. It also uses this font if the user's machine does not have the specified font. In this case, however, the text still uses the specified font's letter spacing, so display results will vary.
![]() |
Note |
---|
Macintosh and UNIX mappings subject to change before the final release of RealPlayer G2 on those platforms. |
RealText also supports the following font faces that use character sets other than us-ascii
.
size="n"
This <font>
tag attribute lets you control the font size. You can use relative sizes or absolute sizes as shown in the table below. This table also lists the height in pixels for each size. The pixel sizes are for reference only. You cannot specify a pixel size directly in RealText.
Relative Size | Absolute Size | Pixel Size Reference |
---|---|---|
-2 |
1 |
12 pixels |
-1 |
2 |
14 pixels |
+0 (default) |
3 |
16 pixels |
+1 |
4 |
20 pixels |
+2 |
5 |
24 pixels |
+3 |
6 |
36 pixels |
+4 |
7 |
48 pixels |
![]() |
Note |
---|
You can also specify relative sizes smaller than -2 or larger than +4, but they are treated as -2 and +4, respectively. |
Keep in mind that the RealText <font>
tag works like the HTML <FONT>
tag. How you nest tags, which attributes you include, and where you place </font>
tags affects the outcome. For example, compare these RealText samples (bolding used for emphasis only) and the illustrations of how this mark-up affects the text when the clip plays in RealPlayer:
Start with normal text.<font color="red">
Make text red.<font size="+1">
Make red text one size larger.</font>
Turn off larger size for red text.</font>
Turn off color.
Start with normal text.
Make text red.
Make red text one size larger.
Turn off larger size for red text.
Turn off color.
Start with normal text.<font color="red">
Make text red.</font>
Turn off color.<font size="+1">
Make text one size larger.</font>
Turn off larger size.
Start with normal text.
Make text red.
Turn off color.
Make text one size larger.
Turn off larger size.
Start with normal text.<font color="red" size="+2">
Make text red and two sizes larger.<font color="blue" size="+1">
Make text blue and one size smaller.</font></font><font size=+1">
Turn off color but keep text the same size.</font>
Reduce text to normal.
Start with normal text.
Make text red and two sizes larger.
Make text blue and one size smaller.
Turn off color but keep text the same size.
Reduce text to normal.
The following tags let you embed RealPlayer commands in your presentation or modify the default streaming behavior.
This tag makes the enclosed text a hyperlink to the specified URL, which should begin with a protocol designation such as http://
or rtsp://
. For static files, you can also specify URLs relative to the location of the RealText source file. For example, the link <a href="more.htm">...</a>
opens the file more.htm in the same directory as the RealText file. Relative links follow the HTML directory syntax.
![]() |
Additional Information |
---|
SMIL files can also define hypertext links that may override the link you set here. For more information, see the SMIL chapter in RealSystem G2 Production Guide. |
You can also include the target="_player"
attribute to launch the new stream in the current RealPlayer window. If you do not use the target attribute or you specify target="_browser"
, the linked URL opens in a Web browser window.
![]() |
Note |
---|
The link text is the color specified in the link attribute
of the <window> tag. The link is underlined unless the
<window> tag includes underline_hyperlinks="false" .
|
This tag turns the enclosed text into an e-mail hyperlink. When the viewer clicks the link, RealText passes the e-mail address to the viewer's browser. Use an address in the standard form, such as name@company.com
. If the browser is configured for e-mail, the e-mail client opens a new message with the defined address in the "to" line.
This tag makes the enclosed text a hyperlink that, when clicked, executes a RealPlayer command. The commands are case-sensitive and must be enclosed in double quotes. The target="_player"
attribute is required. The following command instructs RealPlayer to seek to the specified time in the current text stream:
<a href="command:seek(time)" target="_player">
For example, the following instructs RealPlayer to seek to 1:35.4 in the stream:
<a href="command:seek(1:35.4)" target="_player">
When clicked, the following link causes RealPlayer to pause the stream:
<a href="command:pause()" target="_player">
When clicked, the following link causes RealPlayer to begin or resume playing the stream:
<a href="command:play()" target="_player">
![]() |
Note |
---|
The link text is the color specified in the link attribute
of the <window> tag. The link is underlined unless the
<window> tag includes underline_hyperlinks="false" .
|
Use these tags to enclose text that must be delivered to RealPlayer under any circumstance. During extremely adverse network conditions, RealSystem will halt the presentation if necessary rather than drop the text. You can use these tags sparingly, though, because RealSystem ensures that very little data loss occurs in transmission.
For the RealText color options, you can use any colors available through the HTML <FONT COLOR>
tag. This includes Red/Green/Blue hexadecimal values (#RRGGBB), as well as these predefined color names, listed here with their corresponding hexadecimal values:
You can also use "transparent"
as a color. For example, <font bgcolor="transparent">
means that each following word does not have a rectangle drawn behind it. This lets you draw text on top of previous text (using the <pos/>
tags) without "erasing" the previous text.
![]() |
Note |
---|
Transparency is not currently supported as a window background color. |
The following table lists the character codes you can include in a RealText source file. Codes begin with an ampersand ("&"
) and end with a semicolon (";"
). RealText interprets these characters the same way as popular Web browsers.
Code | Displays as |
---|---|
< |
< |
> |
> |
& |
& |
|
(nonbreaking space) |
  to ÿ |
ISO Latin-1 characters. For a list of these characters, visit the W3C reference at http://www.w3.org/MarkUp/html-spec/html-spec_13.html. Or click here for a list generated through JavaScript. (This may take a few seconds.) |
For example, the following RealText source text:
This is a bold tag: "<b>".
is displayed in a RealText window as:
This is a bold tag: "<b>".