MHEG-5

MHEG-5 is a standard devised for the middleware of digital teletext services in the United Kingdom. Officially ISO/IEC 13522-5 it was evolved from the standards devised by the Multimedia and Hypermedia information coding Expert Group (MHEG) and specifies the classes of multimedia objects available and their interchange. The ISO standard is now enhanced by a European standard to be published by ETSI ES 202 184, which is an MHEG-5 Broadcast Profile based on the work in the UK.

Being based on the multimedia standard, MHEG allows for much more than simple page display of teletext, for example MHEG-3 covers scripting and MHEG-6 interactive applications. It is an object orientated language with visible objects, groups, inheritance, links and programs. A MHEG-5 presentation is initialised by an application which loads a scene which includes the ingredients list of visibles and also the non-visible links, programs and variables.

// 'Hello world' written in MHEG-5
// Originally from http://www.digvid.info

{:Application
    ( '/startup' 0 )        // Application content reference
    :Items (
        {:Link
            1
            :EventSource 0          // Check this application...
            :EventType IsRunning    // ... for the IsRunning event
            :LinkEffect (
                // Load the scene
                :TransitionTo (( '~/hello.mhg' 0 ) )
            )
        }
    )
    :BackgroundColour '=FF=FF=FF=00'    // White
    :TextCHook 10                       // Default text content hook
    :TextColour '=00=00=00=00'          // Black
    :Font "rec://font/uk1"              // Font to use for text rendering
    :FontAttributes "plain.26.32.0"     // Default font attributes
    :BitmapCHook 4                      // Default bitmap content hook
}


{:Scene
    ( "~/hello.mhg" 0 )
    :Items
    (
        // Declare a background Rectangle that covers the screen.
        {:Rectangle
            1
            :OrigBoxSize 720 576                // Size of rectangle
            :OrigPosition 0 0                   // Position at top left
            :OrigRefLineColour '=ff=ff=ff=00'   // White
            :OrigRefFillColour '=ff=ff=ff=00'   // White
        }

        // Place a Text box on the screen
        {:Text
            2
            :OrigContent "Hello World!"         // Text to display
            :OrigBoxSize 300 50                 // Size of text box
            :OrigPosition 200 100               // X,Y position
            :FontAttributes "plain.36.42.0"     // Use large characters
            :TextColour '=ff=00=00=00'          // Red
        }

        // Define a Link that triggers when the user presses the Blue key to
        // Quit the application.
        {:Link
            3
            :EventSource 0          // Source is this scene
            :EventType UserInput    // Event type that we are looking for
            :EventData 103          // 103 for the blue key
            :LinkEffect (
                :Quit ( ( '~/startup' 0 ) )
            )
        }
    )

    :InputEventReg 3
    :SceneCS 720 576
}

External links

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools