Formatted text prompts

The MIME type text/x-prompt is not an official MIME type. This type is only defined and usable in SpeechRecorder to display formatted text prompts.

The formatted text is described by a structure of some XML elements. The DTD definitions of this elements defined in DTD (since version 4) are:

<!ELEMENT promptdoc (body?)>

<!ELEMENT body (p)*>

<!ELEMENT p (text | font | br)*>

<!ELEMENT text (#PCDATA)>
<!ATTLIST text decoration CDATA #IMPLIED>
<!ATTLIST text color CDATA #IMPLIED>

<!ELEMENT font (text)>
<!ATTLIST font size CDATA #IMPLIED>
<!ATTLIST font style CDATA #IMPLIED>
<!ATTLIST font weight CDATA #IMPLIED>

<!ELEMENT br EMPTY>

The root element <promptdoc> of the prompt text document must be a child element of the <mediaitem> element. the <body> element contains the document structure: A paragraph is represented by the <p> element. Text must always be encapsulated by <text> elements. To use different font settings as the default settings defined by the project configuration the <text> elements can be enclosed by <font> elements. The attributes size,style and weight define the font to use. The lien break <br/> element forces a new line.