Markup

From Telstar Wiki
Revision as of 08:02, 15 April 2022 by John (talk | contribs) (→‎Alpha Graphics)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Markup

Double Height Yellow writing on a blue background.

Markup can be used in the content and title data fields and is a quick and easy way to create viewdata frame content.

The following example shows the definition for Double Height Yellow writing on a blue background.

   "[B][n][Y][D]Hello World"

The markup definitions are shown below.

   [R] = ALPHA_RED
   [G] = ALPHA_GREEN
   [Y] = ALPHA_YELLOW
   [B] = ALPHA_BLUE
   [M] = ALPHA_MAGENTA
   [C] = ALPHA_CYAN
   [W] = ALPHA_WHITE
   [F] = FLASH
   [S] = STEADY
   [N] = NORMAL_HEIGHT
   [-] = BLACK_BACKGROUND
   [n] = NEW_BACKGROUND
   [r] = MOSAIC_RED
   [g] = MOSAIC_GREEN
   [y] = MOSAIC_YELLOW
   [b] = MOSAIC_BLUE
   [m] = MOSAIC_MAGENTA
   [c] = MOSAIC_CYAN
   [w] = MOSAIC_WHITE
   [h.] = SEPARATOR_GRAPHIC_DOTS_HIGH)
   [m.] = SEPARATOR_GRAPHIC_DOTS_MID)
   [l.] = SEPARATOR_GRAPHIC_DOTS_LOW)
   [h-] = SEPARATOR_GRAPHIC_SOLID_HIGH)
   [m-] = SEPARATOR_GRAPHIC_SOLID_MID)
   [l-] = SEPARATOR_GRAPHIC_SOLID_LOW)
   [_+] = CURON
   [_-] = CUROFF

Alpha Graphics

Yellow Alphagraphics
Yellow Alphagraphics with horizontal row of dots.

Alpha-graphics can be defined in markup using a special markup syntax using double square brackets e.g.

   [y[Welcome to Telstar]]

The character between the first and second bracket, i.e. the 'y' in the above exampple represents the colour to be used. Here is an example that includes a horozontal row of dots.

e.g.

   [y[Welcome to Telstar]][c][m.]