VOS Object Type Definition

text

OTD #010; Revision 1.

Group: text.

The "text" object type contains written text of some kind to be displayed. It has one subproperty containing the text, as well as optional subproperties for translations to other languages.

Authors

Reed Hedges, (http://zerohour.net/~reed) (reed@zerohour.net)

Child Objects

 

text:* [property:property] (optional.)

Any number of translations may be provided for the primary text. The first subproperty shall be considered to be the "primary" text, and the rest to be translations. A user-agent (display application) may either display the primary text, and give the user a command to display an alternative translation, or it may always display the user's preferred language. The names of the properties containing the primary text and its translations and are formed by prepending the "text:" prefix to a language identifier as described in RFC 3066/BCP 47 ("Tags for the Identification of Languages" by H. Alvestrand; http://www.rfc-editor.org/rfc/rfc3066.txt) or ISO standard 639-2 or 639-1 ("Codes for the representation of names of languages") (e.g. "eng" (English, 639-2), "en" (English, 639-1), "fr" (French, 639-1), "egy" (Ancient Egyptian)). Information related to ISO 639-2 (including a list of language codes) is available at http://www.loc.gov/standards/iso639-2/langhome.html. The datatype identifier may also include the language of the text as a parameter to the final type (e.g. "text/html(language=en)") The character set may also be indicated in the datatype parameters.

Messages

this type defines no new messages.

History of this document

Revision 0 (25 March 2002):
created by Reed.
Revision 1 (Thu Dec 26 18:22:13 EST 2002):
Added group prefixes, changed "property" to "property:property".