Difference between revisions of "Markup"

From Telstar Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Markup ==
== Markup ==
[[file:Screenshot_2022-04-15_at_08.46.51.png|thumb|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.
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.
The markup definitions are shown below.
Line 32: Line 38:
     [_+] = CURON
     [_+] = CURON
     [_-] = CUROFF
     [_-] = CUROFF
[[file:Screenshot_2022-04-15_at_08.46.51.png|thumb]Double Height Yellow writing on a blue background.]
The following example shows the definition for Double Height Yellow writing on a blue background.
    "[B][n][Y][D]Hello World"


== Alpha Graphics ==
== Alpha Graphics ==


[[file:Screenshot_2022-04-15_at_08.46.51.png|thumb]]
[[File:Screenshot 2022-04-15 at 08.53.03.png|thumb|Yellow Alphagraphics]]
[[File:Screenshot 2022-04-15 at 09.01.22.png|thumb|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.
Alpha-graphics can be defined in markup using a special markup syntax using double square brackets e.g.


     [b[Welcome to Telstar]]
     [y[Welcome to Telstar]]


The character between the first and second bracket, i.e. the 'b' in the above exampple represents the colour to be used. Note that Alpha-graphics take up four row, therefore, sat least 4 linefeeds will be required to position the cursor to the next row.
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.
e.g.


     [b[Welcome to Telstar]]\n\n\n\r\n
     [y[Welcome to Telstar]][c][m.]

Latest revision as of 08:02, 15 April 2022

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.]